diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 87038bdd2..000000000 --- a/.drone.yml +++ /dev/null @@ -1,223 +0,0 @@ ---- -### Drone configuration file for GoToSocial. -### Connects to https://drone.superseriousbusiness.org to perform testing, linting, and automatic builds/pushes to docker. -### -### For documentation on drone, see: https://docs.drone.io/ -### For documentation on drone docker pipelines in particular: https://docs.drone.io/pipeline/docker/overview/ -kind: pipeline -type: docker -name: default - -steps: - # We use golangci-lint for linting. - # See: https://golangci-lint.run/ - - name: lint - image: golangci/golangci-lint:v1.62.0 - volumes: - - name: go-build-cache - path: /root/.cache/go-build - - name: golangci-lint-cache - path: /root/.cache/golangci-lint - - name: go-src - path: /go - commands: - - golangci-lint run - when: - event: - include: - - pull_request - - - name: test - image: golang:1.23-alpine - volumes: - - name: go-build-cache - path: /root/.cache/go-build - - name: go-src - path: /go - - name: wazero-compilation-cache - path: /root/.cache/wazero - environment: - CGO_ENABLED: "0" - GTS_WAZERO_COMPILATION_CACHE: "/root/.cache/wazero" - commands: - - apk update --no-cache && apk add git - - >- - go test - -failfast - -timeout=20m - -tags "netgo osusergo static_build kvformat timetzdata" - ./... - - ./test/envparsing.sh - - ./test/swagger.sh - depends_on: - - lint - when: - event: - include: - - pull_request - - - name: web-setup - image: node:18-alpine - volumes: - - name: yarn_cache - path: /tmp/cache - commands: - - yarn --cwd ./web/source install --frozen-lockfile --cache-folder /tmp/cache - - yarn --cwd ./web/source ts-patch install # https://typia.io/docs/setup/#manual-setup - depends_on: - - test - when: - event: - include: - - pull_request - - - name: web-lint - image: node:18-alpine - commands: - - yarn --cwd ./web/source lint - depends_on: - - web-setup - when: - event: - include: - - pull_request - - - name: web-build - image: node:18-alpine - commands: - - yarn --cwd ./web/source build - depends_on: - - web-setup - when: - event: - include: - - pull_request - - - name: snapshot - image: superseriousbusiness/gotosocial-drone-build:0.8.0 # https://github.com/superseriousbusiness/gotosocial-drone-build - volumes: - - name: go-build-cache - path: /root/.cache/go-build - - name: docker - path: /var/run/docker.sock - environment: - DOCKER_USERNAME: gotosocial - DOCKER_PASSWORD: - from_secret: gts_docker_password - S3_ACCESS_KEY_ID: - from_secret: gts_s3_access_key_id - S3_SECRET_ACCESS_KEY: - from_secret: gts_s3_secret_access_key - S3_HOSTNAME: "https://s3.superseriousbusiness.org" - S3_BUCKET_NAME: "gotosocial-snapshots" - commands: - # Create a snapshot build with GoReleaser. - - git fetch --tags - - goreleaser release --clean --snapshot - - # Login to Docker, push Docker image snapshots + manifests. - - /go/dockerlogin.sh - - docker push superseriousbusiness/gotosocial:snapshot-arm64v8 - - docker push superseriousbusiness/gotosocial:snapshot-amd64 - - | - docker manifest create superseriousbusiness/gotosocial:snapshot \ - superseriousbusiness/gotosocial:snapshot-amd64 \ - superseriousbusiness/gotosocial:snapshot-arm64v8 - - docker manifest push superseriousbusiness/gotosocial:snapshot - - # Publish binary .tar.gz snapshots to S3. - - /go/snapshot_publish.sh - when: - event: - include: - - push - branch: - include: - - main - - - name: release - image: superseriousbusiness/gotosocial-drone-build:0.8.0 # https://github.com/superseriousbusiness/gotosocial-drone-build - volumes: - - name: go-build-cache - path: /root/.cache/go-build - - name: docker - path: /var/run/docker.sock - environment: - DOCKER_USERNAME: gotosocial - DOCKER_PASSWORD: - from_secret: gts_docker_password - GITHUB_TOKEN: - from_secret: github_token - commands: - - git fetch --tags - - /go/dockerlogin.sh - - # When releasing, compare commits to the most recent tag that is not the - # current one AND is not a release candidate tag (ie., no "rc" in the name). - # - # The DRONE_TAG env var should point to the tag that triggered this build. - # See: https://docs.drone.io/pipeline/environment/reference/drone-tag/ - # - # Note, this may cause annoyances when doing backport releases, for example, - # releasing v0.10.1 when we've already released v0.15.0 or whatever, but - # they should only be superficial annoyances related to the release notes. - - GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v "rc\|${DRONE_TAG}" | sort -V -r | head -n 1) goreleaser release --clean - when: - event: - include: - - tag - -# We can speed up builds significantly by caching build artifacts between runs. -# See: https://docs.drone.io/pipeline/docker/syntax/volumes/host/ -volumes: - - name: go-build-cache - host: - path: /drone/gotosocial/go-build - - name: golangci-lint-cache - host: - path: /drone/gotosocial/golangci-lint - - name: go-src - host: - path: /drone/gotosocial/go - - name: docker - host: - path: /var/run/docker.sock - -trigger: - repo: - - superseriousbusiness/gotosocial - - NyaaaWhatsUpDoc/gotosocial - - f0x52/gotosocial - ---- -kind: pipeline -type: docker -name: cron - -trigger: - event: - - cron - cron: - - nightly - -clone: - disable: true - -steps: - - name: mirror - image: superseriousbusiness/gotosocial-drone-build:0.8.0 - environment: - ORIGIN_REPO: https://github.com/superseriousbusiness/gotosocial - TARGET_REPO: https://codeberg.org/superseriousbusiness/gotosocial - CODEBERG_USER: gotosocialbot - CODEBERG_EMAIL: admin@gotosocial.org - CODEBERG_TOKEN: - from_secret: gts_codeberg_token - commands: - - /go/codeberg_clone.sh - ---- -kind: signature -hmac: 64ce0d466c7a48b6aa24a8836cfad7eae71faeae0b2e5342beb6428233a65eee - -... diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.gitea/issue_template/bug.yaml similarity index 99% rename from .github/ISSUE_TEMPLATE/bug_report.yaml rename to .gitea/issue_template/bug.yaml index a233c6e76..02d4f9981 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.gitea/issue_template/bug.yaml @@ -73,4 +73,4 @@ body: attributes: label: Anything else we need to know? validations: - required: false \ No newline at end of file + required: false diff --git a/.gitea/issue_template/config.yaml b/.gitea/issue_template/config.yaml new file mode 100644 index 000000000..3ba13e0ce --- /dev/null +++ b/.gitea/issue_template/config.yaml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.gitea/issue_template/feature.yaml similarity index 98% rename from .github/ISSUE_TEMPLATE/feature_request.yaml rename to .gitea/issue_template/feature.yaml index 0b07560ac..1ef75cfe9 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.gitea/issue_template/feature.yaml @@ -41,4 +41,4 @@ body: label: Additional context. description: Add any other context or screenshots about the feature request here. validations: - required: false \ No newline at end of file + required: false diff --git a/.github/ISSUE_TEMPLATE/bug_frontend.yaml b/.gitea/issue_template/frontend.yaml similarity index 98% rename from .github/ISSUE_TEMPLATE/bug_frontend.yaml rename to .gitea/issue_template/frontend.yaml index 23ddb4d31..d313f885f 100644 --- a/.github/ISSUE_TEMPLATE/bug_frontend.yaml +++ b/.gitea/issue_template/frontend.yaml @@ -64,4 +64,4 @@ body: attributes: label: Anything else we need to know? validations: - required: false \ No newline at end of file + required: false diff --git a/.gitea/issue_template/other.md b/.gitea/issue_template/other.md new file mode 100644 index 000000000..1878dd2e2 --- /dev/null +++ b/.gitea/issue_template/other.md @@ -0,0 +1,6 @@ +--- +name: Other +about: A different type of issue or question. +labels: + - question +--- diff --git a/.github/pull_request_template.md b/.gitea/pull_request_template.md similarity index 93% rename from .github/pull_request_template.md rename to .gitea/pull_request_template.md index b6a399dae..2898128ae 100644 --- a/.github/pull_request_template.md +++ b/.gitea/pull_request_template.md @@ -15,7 +15,7 @@ Please put an x inside each checkbox to indicate that you've read and followed i If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want). -- [ ] I/we have read the [GoToSocial contribution guidelines](https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md). +- [ ] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md). - [ ] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat. - [ ] I/we have not leveraged AI to create the proposed changes. - [ ] I/we have performed a self-review of added code. diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index e468f77f8..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -open_collective: gotosocial -liberapay: GoToSocial diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md deleted file mode 100644 index 003a76f2d..000000000 --- a/.github/ISSUE_TEMPLATE/custom.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: Custom issue template -about: Describe this issue template's purpose here. -title: '' -labels: '' -assignees: '' - ---- \ No newline at end of file diff --git a/.github/README.md b/.github/README.md new file mode 100644 index 000000000..2e7b6aa0a --- /dev/null +++ b/.github/README.md @@ -0,0 +1,3 @@ +# GoToSocial + +This is a mirror. You can find us on https://codeberg.org/superseriousbusiness/gotosocial. diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index a636b39f7..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "gomod" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "weekly" - commit-message: - prefix: "[chore]" - labels: - - "chore" diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml new file mode 100644 index 000000000..39de87428 --- /dev/null +++ b/.github/workflows/autoclose.yaml @@ -0,0 +1,30 @@ +on: + issues: + types: [opened] + pull_request_target: + types: [opened] + +permissions: + issues: write + pull-requests: write + +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: issue + if: ${{ github.event.issue.id != '' }} + run: | + gh issue close $ISSUE --comment "This repository is a mirror. Please open issues on https://codeberg.org/superseriousbusiness/gotosocial." --reason "not planned" + gh issue lock $ISSUE + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE: ${{ github.event.issue.html_url }} + - name: pr + if: ${{ github.event.pull_request.id != '' }} + run: | + gh pr close $PULL_REQUEST --comment "This repository is a mirror. Please open PRs on https://codeberg.org/superseriousbusiness/gotosocial." + gh pr lock $PULL_REQUEST + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PULL_REQUEST: ${{ github.event.pull_request.html_url }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 30d57b296..52ad9e06f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,6 +2,11 @@ version: 2 project_name: gotosocial +# https://goreleaser.com/scm/gitea/#urls +gitea_urls: + api: https://codeberg.org/api/v1 + download: https://codeberg.org + # https://goreleaser.com/customization/hooks/ before: hooks: @@ -112,7 +117,7 @@ dockers: - "--label=org.opencontainers.image.description=Fast, fun, small ActivityPub server." - "--label=org.opencontainers.image.url=https://docs.gotosocial.org" - "--label=org.opencontainers.image.documentation=https://docs.gotosocial.org/en/latest/getting_started/installation/container/" - - "--label=org.opencontainers.image.source=https://github.com/superseriousbusiness/gotosocial" + - "--label=org.opencontainers.image.source=https://codeberg.org/superseriousbusiness/gotosocial" - "--label=org.opencontainers.image.version={{.Version}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - "--label=org.opencontainers.image.created={{.Date}}" @@ -141,7 +146,7 @@ dockers: - "--label=org.opencontainers.image.description=Fast, fun, small ActivityPub server." - "--label=org.opencontainers.image.url=https://docs.gotosocial.org" - "--label=org.opencontainers.image.documentation=https://docs.gotosocial.org/en/latest/getting_started/installation/container/" - - "--label=org.opencontainers.image.source=https://github.com/superseriousbusiness/gotosocial" + - "--label=org.opencontainers.image.source=https://codeberg.org/superseriousbusiness/gotosocial" - "--label=org.opencontainers.image.version={{.Version}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - "--label=org.opencontainers.image.created={{.Date}}" @@ -232,6 +237,10 @@ source: # https://goreleaser.com/customization/release/ release: + # https://goreleaser.com/customization/release/#gitea + gitea: + owner: superseriousbusiness + name: gotosocial draft: true prerelease: auto header: | @@ -278,7 +287,7 @@ release: - Changed `pee pee` to `poo poo`. - Changed `wee wee` to `more wee wee`. - You can see a diff of the config file here: https://github.com/superseriousbusiness/gotosocial/compare/{{ .PreviousTag }}...{{ .Tag }}#diff-c071e03510b2c57e193a44503fd9528a785f0f411497cc75841a9f8d0b1ac622 + You can see a diff of the config file here: https://codeberg.org/superseriousbusiness/gotosocial/compare/{{ .PreviousTag }}...{{ .Tag }}#diff-c071e03510b2c57e193a44503fd9528a785f0f411497cc75841a9f8d0b1ac622 ### Database Migrations @@ -300,12 +309,12 @@ release: | OS | Architecture | Support level | Binary archive | Docker | | ------- | ----------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | - | Linux | x86-64/AMD64 (64-bit) | 🟢 Full | [linux_amd64.tar.gz](https://github.com/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_linux_amd64.tar.gz) | `superseriousbusiness/gotosocial:{{ .Version }}` | - | Linux | Armv8/ARM64 (64-bit) | 🟢 Full | [linux_arm64.tar.gz](https://github.com/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_linux_arm64.tar.gz) | `superseriousbusiness/gotosocial:{{ .Version }}` | - | FreeBSD | x86-64/AMD64 (64-bit) | 🟢 Full | [freebsd_amd64.tar.gz](https://github.com/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_freebsd_amd64.tar.gz) | Not provided | - | FreeBSD | Armv8/ARM64 (64-bit) | 🟢 Full | [freebsd_arm64.tar.gz](https://github.com/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_freebsd_arm64.tar.gz) | Not provided | - | NetBSD | x86-64/AMD64 (64-bit) | 🟢 Full | [netbsd_amd64.tar.gz](https://github.com/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_netbsd_amd64.tar.gz) | Not provided | - | NetBSD | Armv8/ARM64 (64-bit) | 🟢 Full | [netbsd_arm64.tar.gz](https://github.com/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_netbsd_arm64.tar.gz) | Not provided | + | Linux | x86-64/AMD64 (64-bit) | 🟢 Full | [linux_amd64.tar.gz](https://codeberg.org/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_linux_amd64.tar.gz) | `superseriousbusiness/gotosocial:{{ .Version }}` | + | Linux | Armv8/ARM64 (64-bit) | 🟢 Full | [linux_arm64.tar.gz](https://codeberg.org/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_linux_arm64.tar.gz) | `superseriousbusiness/gotosocial:{{ .Version }}` | + | FreeBSD | x86-64/AMD64 (64-bit) | 🟢 Full | [freebsd_amd64.tar.gz](https://codeberg.org/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_freebsd_amd64.tar.gz) | Not provided | + | FreeBSD | Armv8/ARM64 (64-bit) | 🟢 Full | [freebsd_arm64.tar.gz](https://codeberg.org/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_freebsd_arm64.tar.gz) | Not provided | + | NetBSD | x86-64/AMD64 (64-bit) | 🟢 Full | [netbsd_amd64.tar.gz](https://codeberg.org/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_netbsd_amd64.tar.gz) | Not provided | + | NetBSD | Armv8/ARM64 (64-bit) | 🟢 Full | [netbsd_arm64.tar.gz](https://codeberg.org/superseriousbusiness/gotosocial/releases/download/{{ .Tag }}/gotosocial_{{ .Version }}_netbsd_arm64.tar.gz) | Not provided | #### `nowasm` @@ -319,7 +328,7 @@ release: # https://goreleaser.com/customization/changelog/ changelog: - use: github + use: gitea groups: - title: Features and performance regexp: '^.*\[(?:feature|performance).*\].*$' diff --git a/.woodpecker/pr.yaml b/.woodpecker/pr.yaml new file mode 100644 index 000000000..78c7ccc43 --- /dev/null +++ b/.woodpecker/pr.yaml @@ -0,0 +1,146 @@ +# https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions +when: + - event: pull_request + +steps: + # Lint the Go code only if + # some Go files have changed. + # + # CI_PIPELINE_FILES is undefined if + # files changed > 500, and empty on + # force pushes, so account for this + # and run step to be safe. + lint: + when: + # https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate + # https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables + - evaluate: >- + (not ("CI_PIPELINE_FILES" in $env)) || + len(CI_PIPELINE_FILES) == 0 || + any(fromJSON(CI_PIPELINE_FILES), { + # startsWith "internal/" || + # startsWith "cmd/" || + # startsWith "testrig/" + }) + + # We use golangci-lint for linting. + # See: https://golangci-lint.run/ + image: golangci/golangci-lint:v1.62.0 + pull: true + + # https://woodpecker-ci.org/docs/administration/configuration/backends/docker#run-user + backend_options: + docker: + user: 1000:1000 + + # https://woodpecker-ci.org/docs/usage/volumes + volumes: + - /woodpecker/gotosocial/go-build-cache:/.cache/go-build + - /woodpecker/gotosocial/go-pkg-cache:/go/pkg + - /woodpecker/gotosocial/golangci-lint-cache:/.cache/golangci-lint + + # https://woodpecker-ci.org/docs/usage/environment + environment: + GOFLAGS: "-buildvcs=false" + + # https://woodpecker-ci.org/docs/usage/workflow-syntax#commands + commands: + - golangci-lint run + + # Test the Go code only if + # some Go files have changed. + # + # CI_PIPELINE_FILES is undefined if + # files changed > 500, and empty on + # force pushes, so account for this + # and run step to be safe. + test: + when: + # https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate + # https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables + - evaluate: >- + (not ("CI_PIPELINE_FILES" in $env)) || + len(CI_PIPELINE_FILES) == 0 || + any(fromJSON(CI_PIPELINE_FILES), { + # startsWith "internal/" || + # startsWith "cmd/" || + # startsWith "testrig/" || + # startsWith "vendor/" + }) + + image: golang:1.23-alpine + pull: true + + # https://woodpecker-ci.org/docs/administration/configuration/backends/docker#run-user + backend_options: + docker: + user: 1000:1000 + + # https://woodpecker-ci.org/docs/usage/volumes + volumes: + - /woodpecker/gotosocial/go-build-cache:/.cache/go-build + - /woodpecker/gotosocial/go-pkg-cache:/go/pkg + - /woodpecker/gotosocial/wazero-compilation-cache:/.cache/wazero + - /woodpecker/gotosocial/test-tmp:/tmp + + # https://woodpecker-ci.org/docs/usage/environment + environment: + CGO_ENABLED: "0" + GTS_WAZERO_COMPILATION_CACHE: "/.cache/wazero" + + # https://woodpecker-ci.org/docs/usage/workflow-syntax#commands + commands: + - >- + go test + -ldflags="-s -w -extldflags '-static'" + -tags="netgo osusergo static_build kvformat timetzdata" + -failfast + -timeout=30m + ./... + - ./test/envparsing.sh + - ./test/swagger.sh + + # https://woodpecker-ci.org/docs/usage/workflow-syntax#depends_on + depends_on: [lint] + + # Validate the web code only + # if web source has changed. + # + # CI_PIPELINE_FILES is undefined if + # files changed > 500, and empty on + # force pushes, so account for this + # and run step to be safe. + web: + when: + # https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate + # https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables + - evaluate: >- + (not ("CI_PIPELINE_FILES" in $env)) || + len(CI_PIPELINE_FILES) == 0 || + any(fromJSON(CI_PIPELINE_FILES), { # startsWith "web/source/" }) + + image: node:lts-alpine + pull: true + + # https://woodpecker-ci.org/docs/administration/configuration/backends/docker#run-user + backend_options: + docker: + user: 1000:1000 + + # https://woodpecker-ci.org/docs/usage/volumes + volumes: + - /woodpecker/gotosocial/node_modules:/woodpecker/src/codeberg.org/superseriousbusiness/gotosocial/web/source/node_modules + - /woodpecker/gotosocial/yarn-cache:/.cache/yarn + - /woodpecker/gotosocial/web-dist-test:/woodpecker/src/codeberg.org/superseriousbusiness/gotosocial/web/assets/dist + + # https://woodpecker-ci.org/docs/usage/workflow-syntax#commands + commands: + # Install web dependencies. + - yarn --cwd ./web/source install --frozen-lockfile --cache-folder /.cache/yarn + - yarn --cwd ./web/source ts-patch install # https://typia.io/docs/setup/#manual-setup + + # Lint web source. + - yarn --cwd ./web/source lint + + # Ensure build works. + - yarn --cwd ./web/source build diff --git a/.woodpecker/release.yaml b/.woodpecker/release.yaml new file mode 100644 index 000000000..23f42cb8f --- /dev/null +++ b/.woodpecker/release.yaml @@ -0,0 +1,54 @@ +# https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions +when: + - event: tag + +# https://goreleaser.com/ci/woodpecker/ +# https://woodpecker-ci.org/docs/usage/workflow-syntax#clone +clone: + git: + image: woodpeckerci/plugin-git + settings: + tags: true + +steps: + release: + # https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build + image: superseriousbusiness/gotosocial-woodpecker-build:0.11.0 + pull: true + + # https://woodpecker-ci.org/docs/usage/volumes + volumes: + - /woodpecker/gotosocial/go-build-cache-root:/root/.cache/go-build + - /woodpecker/gotosocial/go-pkg-cache-root:/go/pkg + - /var/run/docker.sock:/var/run/docker.sock + + # https://woodpecker-ci.org/docs/usage/environment + # https://woodpecker-ci.org/docs/usage/secrets#usage + environment: + # Needed for goreleaser to + # push manifests + containers. + DOCKER_USERNAME: gotosocial + DOCKER_PASSWORD: + from_secret: gts_docker_password + + # Needed for goreleaser + # to publish the release. + # https://goreleaser.com/scm/gitea/ + GITEA_TOKEN: + from_secret: codeberg_token + + # https://woodpecker-ci.org/docs/usage/workflow-syntax#commands + commands: + - git fetch --tags + - /go/dockerlogin.sh + + # When releasing, compare commits to the most recent tag that is not the + # current one AND is not a release candidate tag (ie., no "rc" in the name). + # + # The CI_COMMIT_TAG env var should point to the tag that triggered this build. + # See: https://woodpecker-ci.org/docs/usage/environment + # + # Note, this may cause annoyances when doing backport releases, for example, + # releasing v0.10.1 when we've already released v0.15.0 or whatever, but + # they should only be superficial annoyances related to the release notes. + - GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v "rc\|${CI_COMMIT_TAG}" | sort -V -r | head -n 1) goreleaser release --clean diff --git a/.woodpecker/snapshot.yaml b/.woodpecker/snapshot.yaml new file mode 100644 index 000000000..de1e9f57f --- /dev/null +++ b/.woodpecker/snapshot.yaml @@ -0,0 +1,81 @@ +# https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions +when: + - event: push + branch: main + +# https://goreleaser.com/ci/woodpecker/ +# https://woodpecker-ci.org/docs/usage/workflow-syntax#clone +clone: + git: + image: woodpeckerci/plugin-git + settings: + tags: true + +steps: + snapshot: + # Snapshot only if some interesting + # source code files have changed. + # + # CI_PIPELINE_FILES is undefined if + # files changed > 500, so account for + # this and snapshot anyway if so. + when: + # https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate + # https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables + - evaluate: >- + (not ("CI_PIPELINE_FILES" in $env)) || + any(fromJSON(CI_PIPELINE_FILES), { + # startsWith "internal/" || + # startsWith "cmd/" || + # startsWith "testrig/" || + # startsWith "vendor/" || + # startsWith "web/" || + # == "Dockerfile" + }) + + # https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build + image: superseriousbusiness/gotosocial-woodpecker-build:0.11.0 + pull: true + + # https://woodpecker-ci.org/docs/usage/volumes + volumes: + - /woodpecker/gotosocial/go-build-cache-root:/root/.cache/go-build + - /woodpecker/gotosocial/go-pkg-cache-root:/go/pkg + - /var/run/docker.sock:/var/run/docker.sock + + # https://woodpecker-ci.org/docs/usage/environment + # https://woodpecker-ci.org/docs/usage/secrets#usage + environment: + # Needed to push snapshot + # manifests + containers. + DOCKER_USERNAME: gotosocial + DOCKER_PASSWORD: + from_secret: gts_docker_password + + # Needed for snapshot script + # to publish artifacts to S3. + S3_ACCESS_KEY_ID: + from_secret: gts_s3_access_key_id + S3_SECRET_ACCESS_KEY: + from_secret: gts_s3_secret_access_key + S3_HOSTNAME: "https://s3.superseriousbusiness.org" + S3_BUCKET_NAME: "gotosocial-snapshots" + + # https://woodpecker-ci.org/docs/usage/workflow-syntax#commands + commands: + # Create a snapshot build with GoReleaser. + - git fetch --tags + - goreleaser release --clean --snapshot + + # Login to Docker, push Docker image snapshots + manifests. + - /go/dockerlogin.sh + - docker push superseriousbusiness/gotosocial:snapshot-arm64v8 + - docker push superseriousbusiness/gotosocial:snapshot-amd64 + - | + docker manifest create superseriousbusiness/gotosocial:snapshot \ + superseriousbusiness/gotosocial:snapshot-amd64 \ + superseriousbusiness/gotosocial:snapshot-arm64v8 + - docker manifest push superseriousbusiness/gotosocial:snapshot + + # Publish binary .tar.gz snapshots to S3. + - /go/snapshot_publish.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ee8023012..2f95fa614 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -32,8 +32,6 @@ These contribution guidelines were adapted from / inspired by those of Gitea (ht - [Federation](#federation) - [Updating Swagger docs](#updating-swagger-docs) - [CI/CD configuration](#cicd-configuration) - - [Release Checklist](#release-checklist) - - [What if something goes wrong?](#what-if-something-goes-wrong) ## Introduction @@ -41,11 +39,11 @@ This document contains important information that will help you to write a succe ## Bug reports and feature requests -Currently, we use Github's issue system for tracking bug reports and feature requests. +Currently, we use Codeberg's issue system for tracking bug reports and feature requests. -You can view all open issues [here](https://github.com/superseriousbusiness/gotosocial/issues "The Github Issues page for GoToSocial"). +You can view all open issues [here](https://codeberg.org/superseriousbusiness/gotosocial/issues "The Codeberg Issues page for GoToSocial"). -Before opening a new issue, whether bug or feature request, **please search carefully through both open and closed issues to make sure it hasn't been addressed already**. You can use Github's keyword issue search for this. If your issue is a duplicate of an existing issue, it will be closed. +Before opening a new issue, whether bug or feature request, **please search carefully through both open and closed issues to make sure it hasn't been addressed already**. You can use Codeberg's keyword issue search for this. If your issue is a duplicate of an existing issue, it will be closed. Before you open a feature request issue, please consider the following: @@ -122,26 +120,22 @@ Beware that `conda env export` will add a `prefix` entry to the environment.yml ### Golang forking quirks -One of the quirks of Golang is that it relies on the source management path being the same as the one used within `go.mod` and in package imports within individual Go files. This makes working with forks a bit awkward. - -Let's say you fork GoToSocial to `github.com/yourgithubname/gotosocial`, and then clone that repository to `~/go/src/github.com/yourgithubname/gotosocial`. You will probably run into errors trying to run tests or build, so you might change your `go.mod` file so that the module is called `github.com/yourgithubname/gotosocial` instead of `github.com/superseriousbusiness/gotosocial`. But then this breaks all the imports within the project. Nightmare! So now you have to go through the source files and painstakingly replace `github.com/superseriousbusiness/gotosocial` with `github.com/yourgithubname/gotosocial`. This works OK, but when you decide to make a pull request against the original repo, all the changed paths are included! Argh! - -The correct solution to this is to fork, then clone the upstream repository, then set `origin` of the upstream repository to that of your fork. +One of the quirks of Golang is that it relies on the source management path being the same as the one used within `go.mod` and in package imports within individual Go files. This makes working with forks a bit awkward. The solution to this is to fork, then clone the upstream repository, then set `origin` of the upstream repository to that of your fork. See [this blog post](https://blog.sgmansfield.com/2016/06/working-with-forks-in-go/) for more details. In case this post disappears, here are the steps (slightly modified): > -> Fork the repository on GitHub or set up whatever other remote git repo you will be using. In this case, I would go to GitHub and fork the repository. +> Fork the repository on Codeberg or set up whatever other remote git repo you will be using. In this case, I would go to Codeberg and fork the repository. > > Now clone the upstream repo (not the fork): > -> `mkdir -p ~/go/src/github.com/superseriousbusiness && git clone git@github.com:superseriousbusiness/gotosocial ~/go/src/github.com/superseriousbusiness/gotosocial` +> `mkdir -p ~/go/src/code.superseriousbusiness.org && git clone git@codeberg.org:superseriousbusiness/gotosocial ~/go/src/code.superseriousbusiness.org/gotosocial` > > Navigate to the top level of the upstream repository on your computer: > -> `cd ~/go/src/github.com/superseriousbusiness/gotosocial` +> `cd ~/go/src/code.superseriousbusiness.org/gotosocial` > > Rename the current origin remote to upstream: > @@ -149,7 +143,7 @@ In case this post disappears, here are the steps (slightly modified): > > Add your fork as origin: > -> `git remote add origin git@github.com:yourgithubname/gotosocial` +> `git remote add origin git@codeberg.org:username/gotosocial` > Be sure to run `git fetch` before building the project for the first time. @@ -160,7 +154,7 @@ Be sure to run `git fetch` before building the project for the first time. To get started, you first need to have Go installed. Check the top of the `go.mod` file to see which version of Go you need to install, and see [here](https://golang.org/doc/install) for installation instructions. -Once you've got Go installed, clone this repository into your Go path. Normally, this should be `~/go/src/github.com/superseriousbusiness/gotosocial`. +Once you've got Go installed, clone this repository into your Go path. Normally, this should be `~/go/src/code.superseriousbusiness.org/gotosocial`. Once you've installed the prerequisites, you can try building the project: `./scripts/build.sh`. This will build the `gotosocial` binary. @@ -397,7 +391,7 @@ If there's no output, great! It passed :) ### Testing -GoToSocial provides a [testrig](https://github.com/superseriousbusiness/gotosocial/tree/main/testrig) with a number of mock packages you can use in integration tests. +GoToSocial provides a [testrig](https://codeberg.org/superseriousbusiness/gotosocial/tree/main/testrig) with a number of mock packages you can use in integration tests. One thing that *isn't* mocked is the Database interface because it's just easier to use an in-memory SQLite database than to mock everything out. @@ -496,55 +490,12 @@ You shouldn't need to install go-swagger to run this command, as it's already in ### CI/CD configuration -GoToSocial uses [Drone](https://www.drone.io/) for CI/CD tasks like running tests, linting, and building Docker containers. +GoToSocial uses [Woodpecker CI](https://woodpecker-ci.org/) for CI/CD tasks like running tests, linting, and building Docker containers. -These runs are integrated with GitHub, and will be run on opening a pull request or merging into main. +These runs are integrated with Codeberg, and will be run on opening a pull request or merging into main. -The Drone instance for GoToSocial is [here](https://drone.superseriousbusiness.org/superseriousbusiness/gotosocial). +The `woodpecker` pipeline files are in the `.woodpecker` directory of this repository — these define how and when Woodpecker should run. -The `drone.yml` file is [here](./.drone.yml) — this defines how and when Drone should run. Documentation for Drone is [here](https://docs.drone.io/). +The Woodpecker instance for GoToSocial is [here](https://woodpecker.superseriousbusiness.org/repos/2). -It is worth noting that the `drone.yml` file must be signed by the Drone admin account to be considered valid. This must be done every time the file is changed. This is to prevent tampering and hijacking of the Drone instance. See [here](https://docs.drone.io/signature/). - -To sign the file, first install and setup the [drone cli tool](https://docs.drone.io/cli/install/). Then, run: - -```bash -drone -t PUT_YOUR_DRONE_ADMIN_TOKEN_HERE -s https://drone.superseriousbusiness.org sign superseriousbusiness/gotosocial --save -``` - -### Release Checklist - -First things first: If this is a security hot-fix, we'll probably rush through this list, and make a prettier release a few days later. - -Now, with that out of the way, here's our Checklist. - -GoToSocial follows [Semantic Versioning](https://semver.org/). -So our first concern on the Checklist is: - -- What version are we releasing? - -Next we need to check: - -- Do the assets have to be rebuilt and committed to the repository. -- Do the swagger docs have to be rebuilt? - -On the project management side: - -- Are there any issues that have to be moved to a different milestone? -- Are there any things on the [Roadmap](./ROADMAP.md) that can be ticked off? - -Once we're happy with our Checklist, we can create the tag, and push it. -And the rest [is automation](./.drone.yml). - -We can now head to GitHub, and add some personality to the release notes. -Finally, we make announcements on the all our channels that the release is out! - -#### What if something goes wrong? - -Sometimes things go awry. -We release a buggy release, we forgot something something important. - -If the release is so bad that it's unusable or dangerous! to a great part of our user-base, we can pull. -That is: Delete the tag. - -Either way, once we've resolved the issue, we just start from the top of this list again. Version numbers are cheap. It's cheap to burn them. +Documentation for Woodpecker is [here](https://woodpecker-ci.org/docs/intro). diff --git a/Dockerfile b/Dockerfile index 184be41cd..56cea6e31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Dockerfile reference: https://docs.docker.com/engine/reference/builder/ # stage 1: generate the web/assets/dist bundles -FROM --platform=${BUILDPLATFORM} node:18-alpine AS bundler +FROM --platform=${BUILDPLATFORM} node:lts-alpine AS bundler COPY web web RUN yarn --cwd ./web/source install && \ @@ -11,7 +11,7 @@ RUN yarn --cwd ./web/source install && \ rm -rf ./web/source # stage 2: build the executor container -FROM --platform=${TARGETPLATFORM} alpine:3.20 as executor +FROM --platform=${TARGETPLATFORM} alpine:3.21 AS executor # switch to non-root user:group for GtS USER 1000:1000 diff --git a/README.md b/README.md index 23209336d..e3d906dd1 100644 --- a/README.md +++ b/README.md @@ -3,23 +3,23 @@ **Update regarding corporate sponsors: we are open to sponsorship arrangements with organizations that align with our values; see the conditions below** -GoToSocial is an [ActivityPub](https://activitypub.rocks/) social network server, written in Golang. +🏳️🌈 GoToSocial is an [ActivityPub](https://activitypub.rocks/) social network server, written in Golang. 🏳️⚧️ With GoToSocial, you can keep in touch with your friends, post, read, and share images and articles. All without being tracked or advertised to!
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig and https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
This is the GoToSocial testrig. It doesn't federate or anything.
When the testrig is shut down, all data on it will be deleted.
Don't use this in production!
", "short_description_text": "This is the GoToSocial testrig. It doesn't federate or anything.\n\nWhen the testrig is shut down, all data on it will be deleted.\n\nDon't use this in production!", "email": "someone@example.org", @@ -228,8 +228,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch2() { "uri": "localhost:8080", "account_domain": "localhost:8080", "title": "Geoff's Instance", - "description": "Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig and https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
This is the GoToSocial testrig. It doesn't federate or anything.
When the testrig is shut down, all data on it will be deleted.
Don't use this in production!
", "short_description_text": "This is the GoToSocial testrig. It doesn't federate or anything.\n\nWhen the testrig is shut down, all data on it will be deleted.\n\nDon't use this in production!", "email": "admin@example.org", @@ -371,8 +371,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch3() { "uri": "localhost:8080", "account_domain": "localhost:8080", "title": "GoToSocial Testrig Instance", - "description": "Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig and https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
This is some html, which is allowed in short descriptions.
", "short_description_text": "This is some html, which is allowed in short descriptions.", "email": "admin@example.org", @@ -565,8 +565,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch6() { "uri": "localhost:8080", "account_domain": "localhost:8080", "title": "GoToSocial Testrig Instance", - "description": "Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig and https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
This is the GoToSocial testrig. It doesn't federate or anything.
When the testrig is shut down, all data on it will be deleted.
Don't use this in production!
", "short_description_text": "This is the GoToSocial testrig. It doesn't federate or anything.\n\nWhen the testrig is shut down, all data on it will be deleted.\n\nDon't use this in production!", "email": "", @@ -730,8 +730,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch8() { "uri": "localhost:8080", "account_domain": "localhost:8080", "title": "GoToSocial Testrig Instance", - "description": "Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig and https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
This is the GoToSocial testrig. It doesn't federate or anything.
When the testrig is shut down, all data on it will be deleted.
Don't use this in production!
", "short_description_text": "This is the GoToSocial testrig. It doesn't federate or anything.\n\nWhen the testrig is shut down, all data on it will be deleted.\n\nDon't use this in production!", "email": "admin@example.org", @@ -914,8 +914,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch9() { "uri": "localhost:8080", "account_domain": "localhost:8080", "title": "GoToSocial Testrig Instance", - "description": "Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig and https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
This is the GoToSocial testrig. It doesn't federate or anything.
When the testrig is shut down, all data on it will be deleted.
Don't use this in production!
", "short_description_text": "This is the GoToSocial testrig. It doesn't federate or anything.\n\nWhen the testrig is shut down, all data on it will be deleted.\n\nDon't use this in production!", "email": "admin@example.org", diff --git a/internal/api/client/instance/instancepeersget.go b/internal/api/client/instance/instancepeersget.go index 0b32a87e9..7afeb7104 100644 --- a/internal/api/client/instance/instancepeersget.go +++ b/internal/api/client/instance/instancepeersget.go @@ -22,9 +22,9 @@ import ( "net/http" "strings" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" ) diff --git a/internal/api/client/instance/instancepeersget_test.go b/internal/api/client/instance/instancepeersget_test.go index 2421205f7..a18e30875 100644 --- a/internal/api/client/instance/instancepeersget_test.go +++ b/internal/api/client/instance/instancepeersget_test.go @@ -27,13 +27,13 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/instance" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin/render" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/instance" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type InstancePeersGetTestSuite struct { diff --git a/internal/api/client/instance/instancerulesget.go b/internal/api/client/instance/instancerulesget.go index 9df1b8fbe..8daedec74 100644 --- a/internal/api/client/instance/instancerulesget.go +++ b/internal/api/client/instance/instancerulesget.go @@ -20,9 +20,9 @@ package instance import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // instanceRulesGETHandler swagger:operation GET /api/v1/instance/rules rules diff --git a/internal/api/client/interactionpolicies/getdefaults.go b/internal/api/client/interactionpolicies/getdefaults.go index 870425e8d..a5890fc8b 100644 --- a/internal/api/client/interactionpolicies/getdefaults.go +++ b/internal/api/client/interactionpolicies/getdefaults.go @@ -20,9 +20,9 @@ package interactionpolicies import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // PoliciesDefaultsGETHandler swagger:operation GET /api/v1/interaction_policies/defaults policiesDefaultsGet diff --git a/internal/api/client/interactionpolicies/policies.go b/internal/api/client/interactionpolicies/policies.go index 9b34a8c80..304218496 100644 --- a/internal/api/client/interactionpolicies/policies.go +++ b/internal/api/client/interactionpolicies/policies.go @@ -20,8 +20,8 @@ package interactionpolicies import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/interactionpolicies/updatedefaults.go b/internal/api/client/interactionpolicies/updatedefaults.go index 8496b00aa..1b3c0bc7a 100644 --- a/internal/api/client/interactionpolicies/updatedefaults.go +++ b/internal/api/client/interactionpolicies/updatedefaults.go @@ -21,12 +21,12 @@ import ( "fmt" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" "github.com/go-playground/form/v4" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // PoliciesDefaultsPATCHHandler swagger:operation PATCH /api/v1/interaction_policies/defaults policiesDefaultsUpdate diff --git a/internal/api/client/interactionrequests/authorize.go b/internal/api/client/interactionrequests/authorize.go index 8191923ba..81a612e7a 100644 --- a/internal/api/client/interactionrequests/authorize.go +++ b/internal/api/client/interactionrequests/authorize.go @@ -20,9 +20,9 @@ package interactionrequests import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // InteractionRequestAuthorizePOSTHandler swagger:operation POST /api/v1/interaction_requests/{id}/authorize authorizeInteractionRequest diff --git a/internal/api/client/interactionrequests/get.go b/internal/api/client/interactionrequests/get.go index d1d5f5eb4..a4f09f490 100644 --- a/internal/api/client/interactionrequests/get.go +++ b/internal/api/client/interactionrequests/get.go @@ -20,9 +20,9 @@ package interactionrequests import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // InteractionRequestGETHandler swagger:operation GET /api/v1/interaction_requests/{id} getInteractionRequest diff --git a/internal/api/client/interactionrequests/getpage.go b/internal/api/client/interactionrequests/getpage.go index f3f1251cc..d938b220f 100644 --- a/internal/api/client/interactionrequests/getpage.go +++ b/internal/api/client/interactionrequests/getpage.go @@ -21,10 +21,10 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) // InteractionRequestsGETHandler swagger:operation GET /api/v1/interaction_requests getInteractionRequests diff --git a/internal/api/client/interactionrequests/interactionrequests.go b/internal/api/client/interactionrequests/interactionrequests.go index 172951817..b443a4f68 100644 --- a/internal/api/client/interactionrequests/interactionrequests.go +++ b/internal/api/client/interactionrequests/interactionrequests.go @@ -20,9 +20,9 @@ package interactionrequests import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/interactionrequests/reject.go b/internal/api/client/interactionrequests/reject.go index 0102d872a..2f87643a1 100644 --- a/internal/api/client/interactionrequests/reject.go +++ b/internal/api/client/interactionrequests/reject.go @@ -20,9 +20,9 @@ package interactionrequests import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // InteractionRequestRejectPOSTHandler swagger:operation POST /api/v1/interaction_requests/{id}/reject rejectInteractionRequest diff --git a/internal/api/client/lists/list.go b/internal/api/client/lists/list.go index 515075271..c3432c6b5 100644 --- a/internal/api/client/lists/list.go +++ b/internal/api/client/lists/list.go @@ -20,8 +20,8 @@ package lists import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/lists/listaccounts.go b/internal/api/client/lists/listaccounts.go index 4c6c00292..ac3f21ef5 100644 --- a/internal/api/client/lists/listaccounts.go +++ b/internal/api/client/lists/listaccounts.go @@ -21,10 +21,10 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) // ListAccountsGETHandler swagger:operation GET /api/v1/lists/{id}/accounts listAccounts diff --git a/internal/api/client/lists/listaccounts_test.go b/internal/api/client/lists/listaccounts_test.go index e0a16e29f..f71055aaf 100644 --- a/internal/api/client/lists/listaccounts_test.go +++ b/internal/api/client/lists/listaccounts_test.go @@ -25,14 +25,14 @@ import ( "strconv" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/lists" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/lists" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ListAccountsTestSuite struct { diff --git a/internal/api/client/lists/listaccountsadd.go b/internal/api/client/lists/listaccountsadd.go index b27cd1e92..b89b9100b 100644 --- a/internal/api/client/lists/listaccountsadd.go +++ b/internal/api/client/lists/listaccountsadd.go @@ -21,10 +21,10 @@ import ( "errors" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ListAccountsPOSTHandler swagger:operation POST /api/v1/lists/{id}/accounts addListAccounts diff --git a/internal/api/client/lists/listaccountsadd_test.go b/internal/api/client/lists/listaccountsadd_test.go index e71cf0992..a20796f51 100644 --- a/internal/api/client/lists/listaccountsadd_test.go +++ b/internal/api/client/lists/listaccountsadd_test.go @@ -25,12 +25,12 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/lists" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "codeberg.org/gruf/go-bytes" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/lists" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ListAccountsAddTestSuite struct { diff --git a/internal/api/client/lists/listaccountsremove.go b/internal/api/client/lists/listaccountsremove.go index 160552d62..fc4cb0344 100644 --- a/internal/api/client/lists/listaccountsremove.go +++ b/internal/api/client/lists/listaccountsremove.go @@ -21,10 +21,10 @@ import ( "errors" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ListAccountsDELETEHandler swagger:operation DELETE /api/v1/lists/{id}/accounts removeListAccounts diff --git a/internal/api/client/lists/listcreate.go b/internal/api/client/lists/listcreate.go index 5d3daf2ed..75ad48b0c 100644 --- a/internal/api/client/lists/listcreate.go +++ b/internal/api/client/lists/listcreate.go @@ -21,12 +21,12 @@ import ( "net/http" "strings" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/validate" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // ListCreatePOSTHandler swagger:operation POST /api/v1/lists listCreate diff --git a/internal/api/client/lists/listdelete.go b/internal/api/client/lists/listdelete.go index 33c0add70..7e5b58b58 100644 --- a/internal/api/client/lists/listdelete.go +++ b/internal/api/client/lists/listdelete.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ListDELETEHandler swagger:operation DELETE /api/v1/lists/{id} listDelete diff --git a/internal/api/client/lists/listget.go b/internal/api/client/lists/listget.go index 008d516ba..e8e2759a8 100644 --- a/internal/api/client/lists/listget.go +++ b/internal/api/client/lists/listget.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ListGETHandler swagger:operation GET /api/v1/lists/{id} list diff --git a/internal/api/client/lists/lists_test.go b/internal/api/client/lists/lists_test.go index a4afa24bb..da3f72c42 100644 --- a/internal/api/client/lists/lists_test.go +++ b/internal/api/client/lists/lists_test.go @@ -18,20 +18,20 @@ package lists_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/lists" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/lists" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ListsStandardTestSuite struct { diff --git a/internal/api/client/lists/listsget.go b/internal/api/client/lists/listsget.go index 9a40702b8..1cd4d33e0 100644 --- a/internal/api/client/lists/listsget.go +++ b/internal/api/client/lists/listsget.go @@ -20,9 +20,9 @@ package lists import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ListsGETHandler swagger:operation GET /api/v1/lists lists diff --git a/internal/api/client/lists/listupdate.go b/internal/api/client/lists/listupdate.go index 388d878a9..e4258b013 100644 --- a/internal/api/client/lists/listupdate.go +++ b/internal/api/client/lists/listupdate.go @@ -22,12 +22,12 @@ import ( "net/http" "strings" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/validate" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // ListUpdatePUTHandler swagger:operation PUT /api/v1/lists/{id} listUpdate diff --git a/internal/api/client/markers/markers.go b/internal/api/client/markers/markers.go index fcf584d12..b6369b797 100644 --- a/internal/api/client/markers/markers.go +++ b/internal/api/client/markers/markers.go @@ -20,8 +20,8 @@ package markers import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/markers/markersget.go b/internal/api/client/markers/markersget.go index f5b70ca68..5706e74cd 100644 --- a/internal/api/client/markers/markersget.go +++ b/internal/api/client/markers/markersget.go @@ -20,11 +20,11 @@ package markers import ( "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/validate" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // MarkersGETHandler swagger:operation GET /api/v1/markers markersGet diff --git a/internal/api/client/markers/markerspost.go b/internal/api/client/markers/markerspost.go index e2fffa265..199d370d3 100644 --- a/internal/api/client/markers/markerspost.go +++ b/internal/api/client/markers/markerspost.go @@ -20,11 +20,11 @@ package markers import ( "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // MarkersPOSTHandler swagger:operation POST /api/v1/markers markersPost diff --git a/internal/api/client/media/media.go b/internal/api/client/media/media.go index dc640d380..fe9a2c158 100644 --- a/internal/api/client/media/media.go +++ b/internal/api/client/media/media.go @@ -20,9 +20,9 @@ package media import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/media/mediacreate.go b/internal/api/client/media/mediacreate.go index 4abcb8b22..5b71dd527 100644 --- a/internal/api/client/media/mediacreate.go +++ b/internal/api/client/media/mediacreate.go @@ -22,11 +22,11 @@ import ( "fmt" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // MediaCreatePOSTHandler swagger:operation POST /api/{api_version}/media mediaCreate diff --git a/internal/api/client/media/mediacreate_test.go b/internal/api/client/media/mediacreate_test.go index 6f7bf781f..51faf2603 100644 --- a/internal/api/client/media/mediacreate_test.go +++ b/internal/api/client/media/mediacreate_test.go @@ -28,23 +28,23 @@ import ( "net/http/httptest" "testing" + mediamodule "code.superseriousbusiness.org/gotosocial/internal/api/client/media" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - mediamodule "github.com/superseriousbusiness/gotosocial/internal/api/client/media" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type MediaCreateTestSuite struct { diff --git a/internal/api/client/media/mediaget.go b/internal/api/client/media/mediaget.go index 8428e202f..e08ef6bfa 100644 --- a/internal/api/client/media/mediaget.go +++ b/internal/api/client/media/mediaget.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // MediaGETHandler swagger:operation GET /api/v1/media/{id} mediaGet diff --git a/internal/api/client/media/mediaupdate.go b/internal/api/client/media/mediaupdate.go index b71b0c5f1..d10fc97b1 100644 --- a/internal/api/client/media/mediaupdate.go +++ b/internal/api/client/media/mediaupdate.go @@ -22,11 +22,11 @@ import ( "fmt" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // MediaPUTHandler swagger:operation PUT /api/v1/media/{id} mediaUpdate diff --git a/internal/api/client/media/mediaupdate_test.go b/internal/api/client/media/mediaupdate_test.go index 8e033f367..903ba9414 100644 --- a/internal/api/client/media/mediaupdate_test.go +++ b/internal/api/client/media/mediaupdate_test.go @@ -26,23 +26,23 @@ import ( "net/http/httptest" "testing" + mediamodule "code.superseriousbusiness.org/gotosocial/internal/api/client/media" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - mediamodule "github.com/superseriousbusiness/gotosocial/internal/api/client/media" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type MediaUpdateTestSuite struct { diff --git a/internal/api/client/mutes/mutes.go b/internal/api/client/mutes/mutes.go index 217c08f91..95f3c575d 100644 --- a/internal/api/client/mutes/mutes.go +++ b/internal/api/client/mutes/mutes.go @@ -20,8 +20,8 @@ package mutes import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/mutes/mutes_test.go b/internal/api/client/mutes/mutes_test.go index fdfca4414..4af1063ad 100644 --- a/internal/api/client/mutes/mutes_test.go +++ b/internal/api/client/mutes/mutes_test.go @@ -23,23 +23,23 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/mutes" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/mutes" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type MutesTestSuite struct { diff --git a/internal/api/client/mutes/mutesget.go b/internal/api/client/mutes/mutesget.go index 76c31ebc6..5aa4f99eb 100644 --- a/internal/api/client/mutes/mutesget.go +++ b/internal/api/client/mutes/mutesget.go @@ -20,10 +20,10 @@ package mutes import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) // MutesGETHandler swagger:operation GET /api/v1/mutes mutesGet diff --git a/internal/api/client/mutes/mutesget_test.go b/internal/api/client/mutes/mutesget_test.go index f9cfe5d9c..978c1a845 100644 --- a/internal/api/client/mutes/mutesget_test.go +++ b/internal/api/client/mutes/mutesget_test.go @@ -25,13 +25,13 @@ import ( "net/http/httptest" "time" - "github.com/superseriousbusiness/gotosocial/internal/api/client/mutes" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" + "code.superseriousbusiness.org/gotosocial/internal/api/client/mutes" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *MutesTestSuite) getMutedAccounts( diff --git a/internal/api/client/notifications/notificationget.go b/internal/api/client/notifications/notificationget.go index 0c15cf937..e9265d1bc 100644 --- a/internal/api/client/notifications/notificationget.go +++ b/internal/api/client/notifications/notificationget.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // NotificationGETHandler swagger:operation GET /api/v1/notification/{id} notification diff --git a/internal/api/client/notifications/notifications.go b/internal/api/client/notifications/notifications.go index cb1edf3ff..c8edbc8f2 100644 --- a/internal/api/client/notifications/notifications.go +++ b/internal/api/client/notifications/notifications.go @@ -20,8 +20,8 @@ package notifications import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/notifications/notifications_test.go b/internal/api/client/notifications/notifications_test.go index b84e7d768..66dd92b30 100644 --- a/internal/api/client/notifications/notifications_test.go +++ b/internal/api/client/notifications/notifications_test.go @@ -18,20 +18,20 @@ package notifications_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/notifications" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/notifications" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type NotificationsTestSuite struct { diff --git a/internal/api/client/notifications/notificationsclear.go b/internal/api/client/notifications/notificationsclear.go index 3742f7eba..58c2c7f70 100644 --- a/internal/api/client/notifications/notificationsclear.go +++ b/internal/api/client/notifications/notificationsclear.go @@ -20,9 +20,9 @@ package notifications import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // NotificationsClearPOSTHandler swagger:operation POST /api/v1/notifications/clear clearNotifications diff --git a/internal/api/client/notifications/notificationsget.go b/internal/api/client/notifications/notificationsget.go index e02ca23d8..e6f0d342b 100644 --- a/internal/api/client/notifications/notificationsget.go +++ b/internal/api/client/notifications/notificationsget.go @@ -21,12 +21,12 @@ import ( "context" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) // NotificationsGETHandler swagger:operation GET /api/v1/notifications notifications diff --git a/internal/api/client/notifications/notificationsget_test.go b/internal/api/client/notifications/notificationsget_test.go index 5a6f83959..78e746f79 100644 --- a/internal/api/client/notifications/notificationsget_test.go +++ b/internal/api/client/notifications/notificationsget_test.go @@ -27,15 +27,15 @@ import ( "strconv" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/notifications" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/notifications" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) func (suite *NotificationsTestSuite) getNotifications( diff --git a/internal/api/client/polls/polls.go b/internal/api/client/polls/polls.go index a2c176449..ed5396361 100644 --- a/internal/api/client/polls/polls.go +++ b/internal/api/client/polls/polls.go @@ -20,9 +20,9 @@ package polls import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/polls/polls_get.go b/internal/api/client/polls/polls_get.go index e432b1f8e..dd3892abc 100644 --- a/internal/api/client/polls/polls_get.go +++ b/internal/api/client/polls/polls_get.go @@ -20,9 +20,9 @@ package polls import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // PollGETHandler swagger:operation GET /api/v1/polls/{id} poll diff --git a/internal/api/client/polls/polls_test.go b/internal/api/client/polls/polls_test.go index 5df5cf88d..0e05c045d 100644 --- a/internal/api/client/polls/polls_test.go +++ b/internal/api/client/polls/polls_test.go @@ -18,20 +18,20 @@ package polls_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/polls" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/polls" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type PollsStandardTestSuite struct { diff --git a/internal/api/client/polls/polls_vote.go b/internal/api/client/polls/polls_vote.go index 0c857e2d8..62352fbb0 100644 --- a/internal/api/client/polls/polls_vote.go +++ b/internal/api/client/polls/polls_vote.go @@ -22,10 +22,10 @@ import ( "net/http" "strconv" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // PollVotePOSTHandler swagger:operation POST /api/v1/polls/{id}/votes pollVote diff --git a/internal/api/client/polls/polls_vote_test.go b/internal/api/client/polls/polls_vote_test.go index 54f98c192..eadfe1007 100644 --- a/internal/api/client/polls/polls_vote_test.go +++ b/internal/api/client/polls/polls_vote_test.go @@ -26,13 +26,13 @@ import ( "strconv" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/polls" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/polls" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type PollCreateTestSuite struct { diff --git a/internal/api/client/preferences/preferences.go b/internal/api/client/preferences/preferences.go index 4a1ba8fe6..4a185388d 100644 --- a/internal/api/client/preferences/preferences.go +++ b/internal/api/client/preferences/preferences.go @@ -20,8 +20,8 @@ package preferences import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/preferences/preferencesget.go b/internal/api/client/preferences/preferencesget.go index 20cfc7d36..06485f53a 100644 --- a/internal/api/client/preferences/preferencesget.go +++ b/internal/api/client/preferences/preferencesget.go @@ -20,9 +20,9 @@ package preferences import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // PreferencesGETHandler swagger:operation GET /api/v1/preferences preferencesGet diff --git a/internal/api/client/push/push.go b/internal/api/client/push/push.go index 33b974efa..fa0decb2c 100644 --- a/internal/api/client/push/push.go +++ b/internal/api/client/push/push.go @@ -20,8 +20,8 @@ package push import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/push/push_test.go b/internal/api/client/push/push_test.go index 6a3754546..7a1d3e2b9 100644 --- a/internal/api/client/push/push_test.go +++ b/internal/api/client/push/push_test.go @@ -20,18 +20,18 @@ package push_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/push" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/push" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/testrig" ) type PushTestSuite struct { diff --git a/internal/api/client/push/pushsubscriptiondelete.go b/internal/api/client/push/pushsubscriptiondelete.go index c82222248..8cafa3e39 100644 --- a/internal/api/client/push/pushsubscriptiondelete.go +++ b/internal/api/client/push/pushsubscriptiondelete.go @@ -20,8 +20,8 @@ package push import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // PushSubscriptionDELETEHandler swagger:operation DELETE /api/v1/push/subscription pushSubscriptionDelete diff --git a/internal/api/client/push/pushsubscriptiondelete_test.go b/internal/api/client/push/pushsubscriptiondelete_test.go index 2548f2fb7..87f27647a 100644 --- a/internal/api/client/push/pushsubscriptiondelete_test.go +++ b/internal/api/client/push/pushsubscriptiondelete_test.go @@ -22,10 +22,10 @@ import ( "net/http" "net/http/httptest" - "github.com/superseriousbusiness/gotosocial/internal/api/client/push" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" + "code.superseriousbusiness.org/gotosocial/internal/api/client/push" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" ) // deleteSubscription deletes the push subscription for the named account and token. diff --git a/internal/api/client/push/pushsubscriptionget.go b/internal/api/client/push/pushsubscriptionget.go index d48e43108..2a3e69e3d 100644 --- a/internal/api/client/push/pushsubscriptionget.go +++ b/internal/api/client/push/pushsubscriptionget.go @@ -20,8 +20,8 @@ package push import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // PushSubscriptionGETHandler swagger:operation GET /api/v1/push/subscription pushSubscriptionGet diff --git a/internal/api/client/push/pushsubscriptionget_test.go b/internal/api/client/push/pushsubscriptionget_test.go index 80f387195..523b62936 100644 --- a/internal/api/client/push/pushsubscriptionget_test.go +++ b/internal/api/client/push/pushsubscriptionget_test.go @@ -24,11 +24,11 @@ import ( "net/http" "net/http/httptest" - "github.com/superseriousbusiness/gotosocial/internal/api/client/push" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" + "code.superseriousbusiness.org/gotosocial/internal/api/client/push" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" ) // getSubscription gets the push subscription for the named account and token. diff --git a/internal/api/client/push/pushsubscriptionpost.go b/internal/api/client/push/pushsubscriptionpost.go index 9893d7fe1..1929ae714 100644 --- a/internal/api/client/push/pushsubscriptionpost.go +++ b/internal/api/client/push/pushsubscriptionpost.go @@ -25,10 +25,10 @@ import ( "net/http" "net/url" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // PushSubscriptionPOSTHandler swagger:operation POST /api/v1/push/subscription pushSubscriptionPost diff --git a/internal/api/client/push/pushsubscriptionpost_test.go b/internal/api/client/push/pushsubscriptionpost_test.go index 251dde1f9..ecb387464 100644 --- a/internal/api/client/push/pushsubscriptionpost_test.go +++ b/internal/api/client/push/pushsubscriptionpost_test.go @@ -27,11 +27,11 @@ import ( "strconv" "strings" - "github.com/superseriousbusiness/gotosocial/internal/api/client/push" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" + "code.superseriousbusiness.org/gotosocial/internal/api/client/push" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" ) // postSubscription creates or replaces the push subscription for the named account and token. diff --git a/internal/api/client/push/pushsubscriptionput.go b/internal/api/client/push/pushsubscriptionput.go index 53e6a72e9..1a2b51cb7 100644 --- a/internal/api/client/push/pushsubscriptionput.go +++ b/internal/api/client/push/pushsubscriptionput.go @@ -20,11 +20,11 @@ package push import ( "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // PushSubscriptionPUTHandler swagger:operation PUT /api/v1/push/subscription pushSubscriptionPut diff --git a/internal/api/client/push/pushsubscriptionput_test.go b/internal/api/client/push/pushsubscriptionput_test.go index 8b86add9e..584714221 100644 --- a/internal/api/client/push/pushsubscriptionput_test.go +++ b/internal/api/client/push/pushsubscriptionput_test.go @@ -27,11 +27,11 @@ import ( "strconv" "strings" - "github.com/superseriousbusiness/gotosocial/internal/api/client/push" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" + "code.superseriousbusiness.org/gotosocial/internal/api/client/push" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" ) // putSubscription updates the push subscription for the named account and token. diff --git a/internal/api/client/reports/reportcreate.go b/internal/api/client/reports/reportcreate.go index b9a4666ee..51e29a1b5 100644 --- a/internal/api/client/reports/reportcreate.go +++ b/internal/api/client/reports/reportcreate.go @@ -22,11 +22,11 @@ import ( "fmt" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/regexes" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/regexes" ) // ReportPOSTHandler swagger:operation POST /api/v1/reports reportCreate diff --git a/internal/api/client/reports/reportcreate_test.go b/internal/api/client/reports/reportcreate_test.go index 35dc3d015..a94f46fa9 100644 --- a/internal/api/client/reports/reportcreate_test.go +++ b/internal/api/client/reports/reportcreate_test.go @@ -26,13 +26,13 @@ import ( "strconv" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/reports" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/reports" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ReportCreateTestSuite struct { diff --git a/internal/api/client/reports/reportget.go b/internal/api/client/reports/reportget.go index 1219e4a12..abb677a31 100644 --- a/internal/api/client/reports/reportget.go +++ b/internal/api/client/reports/reportget.go @@ -20,9 +20,9 @@ package reports import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ReportGETHandler swagger:operation GET /api/v1/reports/{id} reportGet diff --git a/internal/api/client/reports/reportget_test.go b/internal/api/client/reports/reportget_test.go index 51b80703d..59ee097cf 100644 --- a/internal/api/client/reports/reportget_test.go +++ b/internal/api/client/reports/reportget_test.go @@ -24,13 +24,13 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/reports" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/reports" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ReportGetTestSuite struct { diff --git a/internal/api/client/reports/reports.go b/internal/api/client/reports/reports.go index b10697c1f..40ff5a988 100644 --- a/internal/api/client/reports/reports.go +++ b/internal/api/client/reports/reports.go @@ -20,9 +20,9 @@ package reports import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/reports/reports_test.go b/internal/api/client/reports/reports_test.go index da39c78e1..b4a02d6a0 100644 --- a/internal/api/client/reports/reports_test.go +++ b/internal/api/client/reports/reports_test.go @@ -18,20 +18,20 @@ package reports_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/reports" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/reports" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ReportsStandardTestSuite struct { diff --git a/internal/api/client/reports/reportsget.go b/internal/api/client/reports/reportsget.go index 65adf664f..7d35fbd03 100644 --- a/internal/api/client/reports/reportsget.go +++ b/internal/api/client/reports/reportsget.go @@ -20,10 +20,10 @@ package reports import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) // ReportsGETHandler swagger:operation GET /api/v1/reports reports diff --git a/internal/api/client/reports/reportsget_test.go b/internal/api/client/reports/reportsget_test.go index b6c3a0662..ffca6295c 100644 --- a/internal/api/client/reports/reportsget_test.go +++ b/internal/api/client/reports/reportsget_test.go @@ -26,15 +26,15 @@ import ( "strconv" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/reports" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/reports" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ReportsGetTestSuite struct { diff --git a/internal/api/client/search/search.go b/internal/api/client/search/search.go index d413aff91..076d91cb1 100644 --- a/internal/api/client/search/search.go +++ b/internal/api/client/search/search.go @@ -20,9 +20,9 @@ package search import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/search/search_test.go b/internal/api/client/search/search_test.go index 9eb7f08fe..1c336d228 100644 --- a/internal/api/client/search/search_test.go +++ b/internal/api/client/search/search_test.go @@ -22,23 +22,23 @@ import ( "net/http" "net/http/httptest" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/search" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/search" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type SearchStandardTestSuite struct { diff --git a/internal/api/client/search/searchget.go b/internal/api/client/search/searchget.go index 05a64f244..a5dc2527f 100644 --- a/internal/api/client/search/searchget.go +++ b/internal/api/client/search/searchget.go @@ -20,10 +20,10 @@ package search import ( "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // SearchGETHandler swagger:operation GET /api/{api_version}/search searchGet diff --git a/internal/api/client/search/searchget_test.go b/internal/api/client/search/searchget_test.go index 7d5b73572..b978c0d3f 100644 --- a/internal/api/client/search/searchget_test.go +++ b/internal/api/client/search/searchget_test.go @@ -30,16 +30,16 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/search" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/search" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type SearchGetTestSuite struct { diff --git a/internal/api/client/statuses/status.go b/internal/api/client/statuses/status.go index 88b34cbf5..77b295bcd 100644 --- a/internal/api/client/statuses/status.go +++ b/internal/api/client/statuses/status.go @@ -20,8 +20,8 @@ package statuses import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/statuses/status_test.go b/internal/api/client/statuses/status_test.go index 2b916125e..e8eafc2e8 100644 --- a/internal/api/client/statuses/status_test.go +++ b/internal/api/client/statuses/status_test.go @@ -24,21 +24,21 @@ import ( "net/http/httptest" "strings" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusStandardTestSuite struct { diff --git a/internal/api/client/statuses/statusbookmark.go b/internal/api/client/statuses/statusbookmark.go index 059ed7e57..804044763 100644 --- a/internal/api/client/statuses/statusbookmark.go +++ b/internal/api/client/statuses/statusbookmark.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusBookmarkPOSTHandler swagger:operation POST /api/v1/statuses/{id}/bookmark statusBookmark diff --git a/internal/api/client/statuses/statusbookmark_test.go b/internal/api/client/statuses/statusbookmark_test.go index 6899831e9..5ef4fbe3f 100644 --- a/internal/api/client/statuses/statusbookmark_test.go +++ b/internal/api/client/statuses/statusbookmark_test.go @@ -24,12 +24,12 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusBookmarkTestSuite struct { diff --git a/internal/api/client/statuses/statusboost.go b/internal/api/client/statuses/statusboost.go index fb4c5e5ee..5e8418dec 100644 --- a/internal/api/client/statuses/statusboost.go +++ b/internal/api/client/statuses/statusboost.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusBoostPOSTHandler swagger:operation POST /api/v1/statuses/{id}/reblog statusReblog diff --git a/internal/api/client/statuses/statusboost_test.go b/internal/api/client/statuses/statusboost_test.go index a9fee34f7..4c8d41a99 100644 --- a/internal/api/client/statuses/statusboost_test.go +++ b/internal/api/client/statuses/statusboost_test.go @@ -22,13 +22,13 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusBoostTestSuite struct { diff --git a/internal/api/client/statuses/statusboostedby.go b/internal/api/client/statuses/statusboostedby.go index 9ee82c709..70111afcc 100644 --- a/internal/api/client/statuses/statusboostedby.go +++ b/internal/api/client/statuses/statusboostedby.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusBoostedByGETHandler swagger:operation GET /api/v1/statuses/{id}/reblogged_by statusBoostedBy diff --git a/internal/api/client/statuses/statusboostedby_test.go b/internal/api/client/statuses/statusboostedby_test.go index 881f4808e..f5cd657be 100644 --- a/internal/api/client/statuses/statusboostedby_test.go +++ b/internal/api/client/statuses/statusboostedby_test.go @@ -24,11 +24,11 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusBoostedByTestSuite struct { diff --git a/internal/api/client/statuses/statuscontext.go b/internal/api/client/statuses/statuscontext.go index cae48e938..4a5e8abf3 100644 --- a/internal/api/client/statuses/statuscontext.go +++ b/internal/api/client/statuses/statuscontext.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusContextGETHandler swagger:operation GET /api/v1/statuses/{id}/context threadContext diff --git a/internal/api/client/statuses/statuscreate.go b/internal/api/client/statuses/statuscreate.go index 686e29ec4..048acd421 100644 --- a/internal/api/client/statuses/statuscreate.go +++ b/internal/api/client/statuses/statuscreate.go @@ -22,13 +22,13 @@ import ( "fmt" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" "github.com/go-playground/form/v4" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // StatusCreatePOSTHandler swagger:operation POST /api/v1/statuses statusCreate diff --git a/internal/api/client/statuses/statuscreate_test.go b/internal/api/client/statuses/statuscreate_test.go index aba39ba23..514109223 100644 --- a/internal/api/client/statuses/statuscreate_test.go +++ b/internal/api/client/statuses/statuscreate_test.go @@ -28,12 +28,12 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusCreateTestSuite struct { diff --git a/internal/api/client/statuses/statusdelete.go b/internal/api/client/statuses/statusdelete.go index c5ff046f7..006b6e601 100644 --- a/internal/api/client/statuses/statusdelete.go +++ b/internal/api/client/statuses/statusdelete.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusDELETEHandler swagger:operation DELETE /api/v1/statuses/{id} statusDelete diff --git a/internal/api/client/statuses/statusdelete_test.go b/internal/api/client/statuses/statusdelete_test.go index d7efd5725..2cf40213f 100644 --- a/internal/api/client/statuses/statusdelete_test.go +++ b/internal/api/client/statuses/statusdelete_test.go @@ -25,13 +25,13 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusDeleteTestSuite struct { diff --git a/internal/api/client/statuses/statusedit.go b/internal/api/client/statuses/statusedit.go index 5c58c5098..22d22da71 100644 --- a/internal/api/client/statuses/statusedit.go +++ b/internal/api/client/statuses/statusedit.go @@ -22,12 +22,12 @@ import ( "fmt" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // StatusEditPUTHandler swagger:operation PUT /api/v1/statuses/{id} statusEdit diff --git a/internal/api/client/statuses/statusfave.go b/internal/api/client/statuses/statusfave.go index 23ff2d7a1..54d717ddd 100644 --- a/internal/api/client/statuses/statusfave.go +++ b/internal/api/client/statuses/statusfave.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusFavePOSTHandler swagger:operation POST /api/v1/statuses/{id}/favourite statusFave diff --git a/internal/api/client/statuses/statusfave_test.go b/internal/api/client/statuses/statusfave_test.go index 983935184..11ac4fc5f 100644 --- a/internal/api/client/statuses/statusfave_test.go +++ b/internal/api/client/statuses/statusfave_test.go @@ -24,15 +24,15 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" ) type StatusFaveTestSuite struct { diff --git a/internal/api/client/statuses/statusfavedby.go b/internal/api/client/statuses/statusfavedby.go index a4a0611ce..baa1bcf0d 100644 --- a/internal/api/client/statuses/statusfavedby.go +++ b/internal/api/client/statuses/statusfavedby.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusFavedByGETHandler swagger:operation GET /api/v1/statuses/{id}/favourited_by statusFavedBy diff --git a/internal/api/client/statuses/statusfavedby_test.go b/internal/api/client/statuses/statusfavedby_test.go index a51c06421..15d38e5e8 100644 --- a/internal/api/client/statuses/statusfavedby_test.go +++ b/internal/api/client/statuses/statusfavedby_test.go @@ -26,13 +26,13 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusFavedByTestSuite struct { diff --git a/internal/api/client/statuses/statusget.go b/internal/api/client/statuses/statusget.go index f8fb2cb50..ac91f6e44 100644 --- a/internal/api/client/statuses/statusget.go +++ b/internal/api/client/statuses/statusget.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusGETHandler swagger:operation GET /api/v1/statuses/{id} statusGet diff --git a/internal/api/client/statuses/statushistory.go b/internal/api/client/statuses/statushistory.go index d493b6ffe..2f94d38d1 100644 --- a/internal/api/client/statuses/statushistory.go +++ b/internal/api/client/statuses/statushistory.go @@ -20,9 +20,9 @@ package statuses import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusHistoryGETHandler swagger:operation GET /api/v1/statuses/{id}/history statusHistoryGet diff --git a/internal/api/client/statuses/statushistory_test.go b/internal/api/client/statuses/statushistory_test.go index fe650402f..3f6d56493 100644 --- a/internal/api/client/statuses/statushistory_test.go +++ b/internal/api/client/statuses/statushistory_test.go @@ -27,11 +27,11 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusHistoryTestSuite struct { diff --git a/internal/api/client/statuses/statusmute.go b/internal/api/client/statuses/statusmute.go index 42df112a3..a73029f7c 100644 --- a/internal/api/client/statuses/statusmute.go +++ b/internal/api/client/statuses/statusmute.go @@ -20,9 +20,9 @@ package statuses import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusMutePOSTHandler swagger:operation POST /api/v1/statuses/{id}/mute statusMute diff --git a/internal/api/client/statuses/statusmute_test.go b/internal/api/client/statuses/statusmute_test.go index a98eff78a..d3c880f09 100644 --- a/internal/api/client/statuses/statusmute_test.go +++ b/internal/api/client/statuses/statusmute_test.go @@ -27,12 +27,12 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusMuteTestSuite struct { diff --git a/internal/api/client/statuses/statuspin.go b/internal/api/client/statuses/statuspin.go index 0c4c681a6..b12842ef2 100644 --- a/internal/api/client/statuses/statuspin.go +++ b/internal/api/client/statuses/statuspin.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusPinPOSTHandler swagger:operation POST /api/v1/statuses/{id}/pin statusPin diff --git a/internal/api/client/statuses/statuspin_test.go b/internal/api/client/statuses/statuspin_test.go index e9b65bd37..87650dd43 100644 --- a/internal/api/client/statuses/statuspin_test.go +++ b/internal/api/client/statuses/statuspin_test.go @@ -27,17 +27,17 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusPinTestSuite struct { diff --git a/internal/api/client/statuses/statussource.go b/internal/api/client/statuses/statussource.go index fd15e8719..aed57098f 100644 --- a/internal/api/client/statuses/statussource.go +++ b/internal/api/client/statuses/statussource.go @@ -20,9 +20,9 @@ package statuses import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusSourceGETHandler swagger:operation GET /api/v1/statuses/{id}/source statusSourceGet diff --git a/internal/api/client/statuses/statussource_test.go b/internal/api/client/statuses/statussource_test.go index e36a939ef..8439f12fa 100644 --- a/internal/api/client/statuses/statussource_test.go +++ b/internal/api/client/statuses/statussource_test.go @@ -27,11 +27,11 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusSourceTestSuite struct { diff --git a/internal/api/client/statuses/statusunbookmark.go b/internal/api/client/statuses/statusunbookmark.go index ca4e669a7..695600edf 100644 --- a/internal/api/client/statuses/statusunbookmark.go +++ b/internal/api/client/statuses/statusunbookmark.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusUnbookmarkPOSTHandler swagger:operation POST /api/v1/statuses/{id}/unbookmark statusUnbookmark diff --git a/internal/api/client/statuses/statusunbookmark_test.go b/internal/api/client/statuses/statusunbookmark_test.go index e62219913..cf95dab6d 100644 --- a/internal/api/client/statuses/statusunbookmark_test.go +++ b/internal/api/client/statuses/statusunbookmark_test.go @@ -24,12 +24,12 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusUnbookmarkTestSuite struct { diff --git a/internal/api/client/statuses/statusunboost.go b/internal/api/client/statuses/statusunboost.go index c7fd00ab7..7863696df 100644 --- a/internal/api/client/statuses/statusunboost.go +++ b/internal/api/client/statuses/statusunboost.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusUnboostPOSTHandler swagger:operation POST /api/v1/statuses/{id}/unreblog statusUnreblog diff --git a/internal/api/client/statuses/statusunfave.go b/internal/api/client/statuses/statusunfave.go index d7dbe10ce..a19c56eed 100644 --- a/internal/api/client/statuses/statusunfave.go +++ b/internal/api/client/statuses/statusunfave.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusUnfavePOSTHandler swagger:operation POST /api/v1/statuses/{id}/unfavourite statusUnfave diff --git a/internal/api/client/statuses/statusunfave_test.go b/internal/api/client/statuses/statusunfave_test.go index d02de47a5..004f4d892 100644 --- a/internal/api/client/statuses/statusunfave_test.go +++ b/internal/api/client/statuses/statusunfave_test.go @@ -26,13 +26,13 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusUnfaveTestSuite struct { diff --git a/internal/api/client/statuses/statusunmute.go b/internal/api/client/statuses/statusunmute.go index 76018fd27..e1e89da3b 100644 --- a/internal/api/client/statuses/statusunmute.go +++ b/internal/api/client/statuses/statusunmute.go @@ -20,9 +20,9 @@ package statuses import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusUnmutePOSTHandler swagger:operation POST /api/v1/statuses/{id}/unmute statusUnmute diff --git a/internal/api/client/statuses/statusunpin.go b/internal/api/client/statuses/statusunpin.go index 32cb913e0..90d1e7b7f 100644 --- a/internal/api/client/statuses/statusunpin.go +++ b/internal/api/client/statuses/statusunpin.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // StatusUnpinPOSTHandler swagger:operation POST /api/v1/statuses/{id}/unpin statusUnpin diff --git a/internal/api/client/statuses/statusunpin_test.go b/internal/api/client/statuses/statusunpin_test.go index 14253f804..b9e600c4f 100644 --- a/internal/api/client/statuses/statusunpin_test.go +++ b/internal/api/client/statuses/statusunpin_test.go @@ -24,13 +24,13 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusUnpinTestSuite struct { diff --git a/internal/api/client/streaming/stream.go b/internal/api/client/streaming/stream.go index 8fafed7c2..7bb65f7a1 100644 --- a/internal/api/client/streaming/stream.go +++ b/internal/api/client/streaming/stream.go @@ -24,12 +24,12 @@ import ( "slices" "time" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - streampkg "github.com/superseriousbusiness/gotosocial/internal/stream" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + streampkg "code.superseriousbusiness.org/gotosocial/internal/stream" "github.com/gin-gonic/gin" "github.com/gorilla/websocket" diff --git a/internal/api/client/streaming/streaming.go b/internal/api/client/streaming/streaming.go index 303e16cd3..3a8426fe3 100644 --- a/internal/api/client/streaming/streaming.go +++ b/internal/api/client/streaming/streaming.go @@ -21,9 +21,9 @@ import ( "net/http" "time" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" "github.com/gorilla/websocket" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/streaming/streaming_test.go b/internal/api/client/streaming/streaming_test.go index 4cc5dc1b2..ef11f44b2 100644 --- a/internal/api/client/streaming/streaming_test.go +++ b/internal/api/client/streaming/streaming_test.go @@ -29,22 +29,22 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/streaming" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/streaming" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StreamingTestSuite struct { diff --git a/internal/api/client/tags/follow.go b/internal/api/client/tags/follow.go index 07804013a..f8b81780a 100644 --- a/internal/api/client/tags/follow.go +++ b/internal/api/client/tags/follow.go @@ -20,8 +20,8 @@ package tags import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // FollowTagPOSTHandler swagger:operation POST /api/v1/tags/{tag_name}/follow followTag diff --git a/internal/api/client/tags/follow_test.go b/internal/api/client/tags/follow_test.go index d3b08cf5c..87f903452 100644 --- a/internal/api/client/tags/follow_test.go +++ b/internal/api/client/tags/follow_test.go @@ -21,8 +21,8 @@ import ( "context" "net/http" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tags" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tags" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" ) func (suite *TagsTestSuite) follow( diff --git a/internal/api/client/tags/get.go b/internal/api/client/tags/get.go index a6a433d7d..0a88a418d 100644 --- a/internal/api/client/tags/get.go +++ b/internal/api/client/tags/get.go @@ -20,8 +20,8 @@ package tags import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // TagGETHandler swagger:operation GET /api/v1/tags/{tag_name} getTag diff --git a/internal/api/client/tags/get_test.go b/internal/api/client/tags/get_test.go index fa31bce7d..d8052822e 100644 --- a/internal/api/client/tags/get_test.go +++ b/internal/api/client/tags/get_test.go @@ -21,8 +21,8 @@ import ( "context" "net/http" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tags" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tags" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" ) // tagAction follows or unfollows a tag. diff --git a/internal/api/client/tags/tags.go b/internal/api/client/tags/tags.go index 281859547..34a88abfc 100644 --- a/internal/api/client/tags/tags.go +++ b/internal/api/client/tags/tags.go @@ -20,9 +20,9 @@ package tags import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/tags/tags_test.go b/internal/api/client/tags/tags_test.go index 4718d5f34..a09d07861 100644 --- a/internal/api/client/tags/tags_test.go +++ b/internal/api/client/tags/tags_test.go @@ -24,23 +24,23 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tags" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tags" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/testrig" ) type TagsTestSuite struct { diff --git a/internal/api/client/tags/unfollow.go b/internal/api/client/tags/unfollow.go index 49ebd463e..1dd0e6a9d 100644 --- a/internal/api/client/tags/unfollow.go +++ b/internal/api/client/tags/unfollow.go @@ -20,8 +20,8 @@ package tags import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // UnfollowTagPOSTHandler swagger:operation POST /api/v1/tags/{tag_name}/unfollow unfollowTag diff --git a/internal/api/client/tags/unfollow_test.go b/internal/api/client/tags/unfollow_test.go index 51bc34797..5b748a8aa 100644 --- a/internal/api/client/tags/unfollow_test.go +++ b/internal/api/client/tags/unfollow_test.go @@ -21,8 +21,8 @@ import ( "context" "net/http" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tags" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tags" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" ) func (suite *TagsTestSuite) unfollow( diff --git a/internal/api/client/timelines/home.go b/internal/api/client/timelines/home.go index 8e957d498..ad12c38a4 100644 --- a/internal/api/client/timelines/home.go +++ b/internal/api/client/timelines/home.go @@ -20,9 +20,9 @@ package timelines import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // HomeTimelineGETHandler swagger:operation GET /api/v1/timelines/home homeTimeline diff --git a/internal/api/client/timelines/list.go b/internal/api/client/timelines/list.go index b02489d6c..3ea276c5b 100644 --- a/internal/api/client/timelines/list.go +++ b/internal/api/client/timelines/list.go @@ -20,9 +20,9 @@ package timelines import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ListTimelineGETHandler swagger:operation GET /api/v1/timelines/list/{id} listTimeline diff --git a/internal/api/client/timelines/public.go b/internal/api/client/timelines/public.go index d6df36f09..f438244a7 100644 --- a/internal/api/client/timelines/public.go +++ b/internal/api/client/timelines/public.go @@ -20,10 +20,10 @@ package timelines import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // PublicTimelineGETHandler swagger:operation GET /api/v1/timelines/public publicTimeline diff --git a/internal/api/client/timelines/tag.go b/internal/api/client/timelines/tag.go index 8c3a86f81..daf88f528 100644 --- a/internal/api/client/timelines/tag.go +++ b/internal/api/client/timelines/tag.go @@ -20,9 +20,9 @@ package timelines import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // TagTimelineGETHandler swagger:operation GET /api/v1/timelines/tag/{tag_name} tagTimeline diff --git a/internal/api/client/timelines/timeline.go b/internal/api/client/timelines/timeline.go index 2362ca47e..86e0597d0 100644 --- a/internal/api/client/timelines/timeline.go +++ b/internal/api/client/timelines/timeline.go @@ -20,9 +20,9 @@ package timelines import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/tokens/tokenget.go b/internal/api/client/tokens/tokenget.go index c88b78743..c0ef980a3 100644 --- a/internal/api/client/tokens/tokenget.go +++ b/internal/api/client/tokens/tokenget.go @@ -20,9 +20,9 @@ package tokens import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // TokenInfoGETHandler swagger:operation GET /api/v1/tokens/{id} tokenInfoGet diff --git a/internal/api/client/tokens/tokenget_test.go b/internal/api/client/tokens/tokenget_test.go index c7cbf3022..89ad7a642 100644 --- a/internal/api/client/tokens/tokenget_test.go +++ b/internal/api/client/tokens/tokenget_test.go @@ -21,8 +21,8 @@ import ( "net/http" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tokens" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tokens" ) type TokenGetTestSuite struct { diff --git a/internal/api/client/tokens/tokeninvalidate.go b/internal/api/client/tokens/tokeninvalidate.go index 192bbf33b..e705e2635 100644 --- a/internal/api/client/tokens/tokeninvalidate.go +++ b/internal/api/client/tokens/tokeninvalidate.go @@ -20,9 +20,9 @@ package tokens import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // TokenInvalidatePOSTHandler swagger:operation POST /api/v1/tokens/{id}/invalidate tokenInvalidatePost @@ -73,10 +73,9 @@ func (m *Module) TokenInvalidatePOSTHandler(c *gin.Context) { return } - if authed.Account.IsMoving() { - apiutil.ForbiddenAfterMove(c) - return - } + // Note that we don't perform a move check, + // as even moved accounts should be able to + // invalidate their old tokens. if _, err := apiutil.NegotiateAccept(c, apiutil.JSONAcceptHeaders...); err != nil { apiutil.ErrorHandler(c, gtserror.NewErrorNotAcceptable(err, err.Error()), m.processor.InstanceGetV1) diff --git a/internal/api/client/tokens/tokeninvalidate_test.go b/internal/api/client/tokens/tokeninvalidate_test.go index 281f9b96d..2e726bd50 100644 --- a/internal/api/client/tokens/tokeninvalidate_test.go +++ b/internal/api/client/tokens/tokeninvalidate_test.go @@ -22,9 +22,9 @@ import ( "net/http" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tokens" + "code.superseriousbusiness.org/gotosocial/internal/db" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tokens" - "github.com/superseriousbusiness/gotosocial/internal/db" ) type TokenInvalidateTestSuite struct { diff --git a/internal/api/client/tokens/tokens.go b/internal/api/client/tokens/tokens.go index aadaf72c2..0e7b5399e 100644 --- a/internal/api/client/tokens/tokens.go +++ b/internal/api/client/tokens/tokens.go @@ -20,9 +20,9 @@ package tokens import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/tokens/tokens_test.go b/internal/api/client/tokens/tokens_test.go index bae140194..852723978 100644 --- a/internal/api/client/tokens/tokens_test.go +++ b/internal/api/client/tokens/tokens_test.go @@ -23,12 +23,12 @@ import ( "io" "net/http/httptest" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tokens" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tokens" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type TokensStandardTestSuite struct { diff --git a/internal/api/client/tokens/tokensget.go b/internal/api/client/tokens/tokensget.go index 5c92beccc..ee85c730f 100644 --- a/internal/api/client/tokens/tokensget.go +++ b/internal/api/client/tokens/tokensget.go @@ -20,10 +20,10 @@ package tokens import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) // TokensInfoGETHandler swagger:operation GET /api/v1/tokens tokensInfoGet diff --git a/internal/api/client/tokens/tokensget_test.go b/internal/api/client/tokens/tokensget_test.go index 0164c0379..acf05cb70 100644 --- a/internal/api/client/tokens/tokensget_test.go +++ b/internal/api/client/tokens/tokensget_test.go @@ -21,8 +21,8 @@ import ( "net/http" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tokens" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tokens" ) type TokensGetTestSuite struct { diff --git a/internal/api/client/user/emailchange.go b/internal/api/client/user/emailchange.go index 09d5e8fde..d0238824d 100644 --- a/internal/api/client/user/emailchange.go +++ b/internal/api/client/user/emailchange.go @@ -21,10 +21,10 @@ import ( "errors" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // EmailChangePOSTHandler swagger:operation POST /api/v1/user/email_change userEmailChange diff --git a/internal/api/client/user/emailchange_test.go b/internal/api/client/user/emailchange_test.go index 868ad766c..bdd052ca6 100644 --- a/internal/api/client/user/emailchange_test.go +++ b/internal/api/client/user/emailchange_test.go @@ -23,11 +23,11 @@ import ( "net/http" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/user" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/user" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/testrig" ) type EmailChangeTestSuite struct { diff --git a/internal/api/client/user/passwordchange.go b/internal/api/client/user/passwordchange.go index 8b1c7e29a..caa90583f 100644 --- a/internal/api/client/user/passwordchange.go +++ b/internal/api/client/user/passwordchange.go @@ -21,11 +21,11 @@ import ( "errors" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) const OIDCPasswordHelp = "password change request cannot be processed by GoToSocial as this instance is running with OIDC enabled; you must change password using your OIDC provider" diff --git a/internal/api/client/user/passwordchange_test.go b/internal/api/client/user/passwordchange_test.go index baf6f6b8d..8fee821c0 100644 --- a/internal/api/client/user/passwordchange_test.go +++ b/internal/api/client/user/passwordchange_test.go @@ -23,10 +23,10 @@ import ( "net/http" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/user" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "codeberg.org/gruf/go-byteutil" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/user" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/api/client/user/twofactor.go b/internal/api/client/user/twofactor.go index f6e2bffc2..a359607e4 100644 --- a/internal/api/client/user/twofactor.go +++ b/internal/api/client/user/twofactor.go @@ -21,11 +21,11 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) const OIDCTwoFactorHelp = "two factor authentication request cannot be processed by GoToSocial as this instance is running with OIDC enabled; you must use 2FA provided by your OIDC provider" diff --git a/internal/api/client/user/user.go b/internal/api/client/user/user.go index 7a95c5e33..d150173df 100644 --- a/internal/api/client/user/user.go +++ b/internal/api/client/user/user.go @@ -20,8 +20,8 @@ package user import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/client/user/user_test.go b/internal/api/client/user/user_test.go index 8f54c82a0..87dd0d8ae 100644 --- a/internal/api/client/user/user_test.go +++ b/internal/api/client/user/user_test.go @@ -22,21 +22,21 @@ import ( "net/http/httptest" "net/url" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/user" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/user" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type UserStandardTestSuite struct { diff --git a/internal/api/client/user/userget.go b/internal/api/client/user/userget.go index c82a6d644..ff92815b6 100644 --- a/internal/api/client/user/userget.go +++ b/internal/api/client/user/userget.go @@ -20,9 +20,9 @@ package user import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // UserGETHandler swagger:operation GET /api/v1/user getUser diff --git a/internal/api/fileserver.go b/internal/api/fileserver.go index e0377b0e6..11aad2b42 100644 --- a/internal/api/fileserver.go +++ b/internal/api/fileserver.go @@ -18,13 +18,13 @@ package api import ( + "code.superseriousbusiness.org/gotosocial/internal/api/fileserver" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/fileserver" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type Fileserver struct { diff --git a/internal/api/fileserver/fileserver.go b/internal/api/fileserver/fileserver.go index db15ce2e0..bbf178404 100644 --- a/internal/api/fileserver/fileserver.go +++ b/internal/api/fileserver/fileserver.go @@ -20,8 +20,8 @@ package fileserver import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/fileserver/fileserver_test.go b/internal/api/fileserver/fileserver_test.go index 9ba647ff3..87e9c7246 100644 --- a/internal/api/fileserver/fileserver_test.go +++ b/internal/api/fileserver/fileserver_test.go @@ -18,22 +18,22 @@ package fileserver_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/fileserver" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/fileserver" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FileserverTestSuite struct { diff --git a/internal/api/fileserver/servefile.go b/internal/api/fileserver/servefile.go index 56285ea48..04cbe10f6 100644 --- a/internal/api/fileserver/servefile.go +++ b/internal/api/fileserver/servefile.go @@ -25,12 +25,12 @@ import ( "strings" "time" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-fastcopy" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) // ServeFile is for serving attachments, headers, and avatars to the requester from instance storage. diff --git a/internal/api/fileserver/servefile_test.go b/internal/api/fileserver/servefile_test.go index 33afe34d0..cfaa73515 100644 --- a/internal/api/fileserver/servefile_test.go +++ b/internal/api/fileserver/servefile_test.go @@ -24,12 +24,12 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/fileserver" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/fileserver" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ServeFileTestSuite struct { diff --git a/internal/api/health.go b/internal/api/health.go index e1dfd1924..8ea9446b2 100644 --- a/internal/api/health.go +++ b/internal/api/health.go @@ -20,10 +20,10 @@ package api import ( "context" + "code.superseriousbusiness.org/gotosocial/internal/api/health" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/health" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type Health struct { diff --git a/internal/api/health/ready.go b/internal/api/health/ready.go index 70e3a324a..04efea17c 100644 --- a/internal/api/health/ready.go +++ b/internal/api/health/ready.go @@ -20,7 +20,7 @@ package health import ( "net/http" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" ) diff --git a/internal/api/metrics.go b/internal/api/metrics.go index 5d97b9610..add14b0bb 100644 --- a/internal/api/metrics.go +++ b/internal/api/metrics.go @@ -18,11 +18,11 @@ package api import ( + "code.superseriousbusiness.org/gotosocial/internal/api/metrics" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/metrics" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type Metrics struct { diff --git a/internal/api/model/content.go b/internal/api/model/content.go index 5af81b11b..ec8d4652a 100644 --- a/internal/api/model/content.go +++ b/internal/api/model/content.go @@ -20,7 +20,7 @@ package model import ( "io" - "github.com/superseriousbusiness/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/storage" ) // Content wraps everything needed to serve a blob of content (some kind of media) through the API. diff --git a/internal/api/model/instance.go b/internal/api/model/instance.go index aaa01d837..2a085c082 100644 --- a/internal/api/model/instance.go +++ b/internal/api/model/instance.go @@ -60,7 +60,7 @@ type InstanceConfigurationAccounts struct { // Currently not implemented, so this is hardcoded to 10. MaxFeaturedTags int `json:"max_featured_tags"` // The maximum number of profile fields allowed for each account. - // Currently not configurable, so this is hardcoded to 6. (https://github.com/superseriousbusiness/gotosocial/issues/1876) + // Currently not configurable, so this is hardcoded to 6. (https://codeberg.org/superseriousbusiness/gotosocial/issues/1876) MaxProfileFields int `json:"max_profile_fields"` } diff --git a/internal/api/model/instancev2.go b/internal/api/model/instancev2.go index 96399ea06..5aad6f015 100644 --- a/internal/api/model/instancev2.go +++ b/internal/api/model/instancev2.go @@ -43,7 +43,7 @@ type InstanceV2 struct { // Whether or not instance is running in DEBUG mode. Omitted if false. Debug *bool `json:"debug,omitempty"` // The URL for the source code of the software running on this instance, in keeping with AGPL license requirements. - // example: https://github.com/superseriousbusiness/gotosocial + // example: https://codeberg.org/superseriousbusiness/gotosocial SourceURL string `json:"source_url"` // Description of the instance. // diff --git a/internal/api/model/poll.go b/internal/api/model/poll.go index 089dfc0f0..0fd8c02ea 100644 --- a/internal/api/model/poll.go +++ b/internal/api/model/poll.go @@ -17,7 +17,7 @@ package model -import "github.com/superseriousbusiness/gotosocial/internal/language" +import "code.superseriousbusiness.org/gotosocial/internal/language" // Poll represents a poll attached to a status. // diff --git a/internal/api/model/status.go b/internal/api/model/status.go index bcd0c0f93..4561996ad 100644 --- a/internal/api/model/status.go +++ b/internal/api/model/status.go @@ -20,7 +20,7 @@ package model import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/language" + "code.superseriousbusiness.org/gotosocial/internal/language" ) // Status models a status or post. diff --git a/internal/api/nodeinfo.go b/internal/api/nodeinfo.go index 2f0c234fd..9a65b4038 100644 --- a/internal/api/nodeinfo.go +++ b/internal/api/nodeinfo.go @@ -18,12 +18,12 @@ package api import ( + "code.superseriousbusiness.org/gotosocial/internal/api/nodeinfo" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/nodeinfo" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type NodeInfo struct { diff --git a/internal/api/nodeinfo/nodeinfo.go b/internal/api/nodeinfo/nodeinfo.go index 96adbc956..55f871f3f 100644 --- a/internal/api/nodeinfo/nodeinfo.go +++ b/internal/api/nodeinfo/nodeinfo.go @@ -20,8 +20,8 @@ package nodeinfo import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/nodeinfo/nodeinfoget.go b/internal/api/nodeinfo/nodeinfoget.go index 28a60cff9..b8f2d7e4f 100644 --- a/internal/api/nodeinfo/nodeinfoget.go +++ b/internal/api/nodeinfo/nodeinfoget.go @@ -21,9 +21,9 @@ import ( "errors" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // NodeInfo2GETHandler swagger:operation GET /nodeinfo/{schema_version} nodeInfoGet diff --git a/internal/api/robots.go b/internal/api/robots.go index 29e2823ef..bbf1bd3fb 100644 --- a/internal/api/robots.go +++ b/internal/api/robots.go @@ -18,10 +18,10 @@ package api import ( + "code.superseriousbusiness.org/gotosocial/internal/api/robots" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/robots" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type Robots struct { diff --git a/internal/api/robots/robots.go b/internal/api/robots/robots.go index b72a01ed6..c4dfa1da2 100644 --- a/internal/api/robots/robots.go +++ b/internal/api/robots/robots.go @@ -20,9 +20,9 @@ package robots import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" ) type Module struct{} diff --git a/internal/api/util/auth.go b/internal/api/util/auth.go index fccdf38e1..f224c1d2e 100644 --- a/internal/api/util/auth.go +++ b/internal/api/util/auth.go @@ -22,11 +22,11 @@ import ( "slices" "strings" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/oauth2/v4" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" ) // Auth wraps an authorized token, application, user, and account. diff --git a/internal/api/util/errorhandling.go b/internal/api/util/errorhandling.go index d2b9171c8..3341e7399 100644 --- a/internal/api/util/errorhandling.go +++ b/internal/api/util/errorhandling.go @@ -22,12 +22,12 @@ import ( "errors" "net/http" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) // TODO: add more templated html pages here for different error types diff --git a/internal/api/util/mime_test.go b/internal/api/util/mime_test.go index 6b12d1436..25b5fb0d1 100644 --- a/internal/api/util/mime_test.go +++ b/internal/api/util/mime_test.go @@ -3,7 +3,7 @@ package util_test import ( "testing" - "github.com/superseriousbusiness/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/api/util" ) func TestIsASContentType(t *testing.T) { diff --git a/internal/api/util/opengraph.go b/internal/api/util/opengraph.go index 770bada83..321b0f92d 100644 --- a/internal/api/util/opengraph.go +++ b/internal/api/util/opengraph.go @@ -22,8 +22,8 @@ import ( "strconv" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/text" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/text" ) const maxOGDescriptionLength = 300 diff --git a/internal/api/util/opengraph_test.go b/internal/api/util/opengraph_test.go index 4e94d78ef..821aabaff 100644 --- a/internal/api/util/opengraph_test.go +++ b/internal/api/util/opengraph_test.go @@ -21,8 +21,8 @@ import ( "fmt" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" ) type OpenGraphTestSuite struct { diff --git a/internal/api/util/parseform.go b/internal/api/util/parseform.go index 8bb10012c..a2fbe9ee9 100644 --- a/internal/api/util/parseform.go +++ b/internal/api/util/parseform.go @@ -23,9 +23,9 @@ import ( "strconv" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // ParseFocus parses a media attachment focus parameters from incoming API string. diff --git a/internal/api/util/parsequery.go b/internal/api/util/parsequery.go index 9f4c02aed..fc2c16c15 100644 --- a/internal/api/util/parsequery.go +++ b/internal/api/util/parsequery.go @@ -22,7 +22,7 @@ import ( "strconv" "strings" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) const ( diff --git a/internal/api/util/response.go b/internal/api/util/response.go index 01f15ccfb..105537f36 100644 --- a/internal/api/util/response.go +++ b/internal/api/util/response.go @@ -26,10 +26,10 @@ import ( "strconv" "sync" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-byteutil" "codeberg.org/gruf/go-fastcopy" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/log" ) var ( diff --git a/internal/api/util/scopes_test.go b/internal/api/util/scopes_test.go index 72f6b57aa..2e1df8ca9 100644 --- a/internal/api/util/scopes_test.go +++ b/internal/api/util/scopes_test.go @@ -20,7 +20,7 @@ package util_test import ( "testing" - "github.com/superseriousbusiness/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/api/util" ) func TestScopes(t *testing.T) { diff --git a/internal/api/util/template.go b/internal/api/util/template.go index 86d179cdc..67aeb7033 100644 --- a/internal/api/util/template.go +++ b/internal/api/util/template.go @@ -21,10 +21,10 @@ import ( "net/http" "net/netip" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/gin-gonic/gin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" ) // WebPage encapsulates variables for diff --git a/internal/api/wellknown.go b/internal/api/wellknown.go index 90e18d637..4f793e4cc 100644 --- a/internal/api/wellknown.go +++ b/internal/api/wellknown.go @@ -18,13 +18,13 @@ package api import ( + "code.superseriousbusiness.org/gotosocial/internal/api/wellknown/hostmeta" + "code.superseriousbusiness.org/gotosocial/internal/api/wellknown/nodeinfo" + "code.superseriousbusiness.org/gotosocial/internal/api/wellknown/webfinger" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/wellknown/hostmeta" - "github.com/superseriousbusiness/gotosocial/internal/api/wellknown/nodeinfo" - "github.com/superseriousbusiness/gotosocial/internal/api/wellknown/webfinger" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type WellKnown struct { diff --git a/internal/api/wellknown/hostmeta/hostmeta.go b/internal/api/wellknown/hostmeta/hostmeta.go index 43c6b161e..b0967bfb1 100644 --- a/internal/api/wellknown/hostmeta/hostmeta.go +++ b/internal/api/wellknown/hostmeta/hostmeta.go @@ -20,9 +20,9 @@ package hostmeta import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/wellknown/hostmeta/hostmetaget.go b/internal/api/wellknown/hostmeta/hostmetaget.go index 131e2ac58..c6676cabe 100644 --- a/internal/api/wellknown/hostmeta/hostmetaget.go +++ b/internal/api/wellknown/hostmeta/hostmetaget.go @@ -20,9 +20,9 @@ package hostmeta import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // HostMetaGETHandler swagger:operation GET /.well-known/host-meta hostMetaGet diff --git a/internal/api/wellknown/nodeinfo/nodeinfo.go b/internal/api/wellknown/nodeinfo/nodeinfo.go index 270dde2b1..7b266bab7 100644 --- a/internal/api/wellknown/nodeinfo/nodeinfo.go +++ b/internal/api/wellknown/nodeinfo/nodeinfo.go @@ -20,12 +20,12 @@ package nodeinfo import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/wellknown/webfinger/webfinger.go b/internal/api/wellknown/webfinger/webfinger.go index c70afab9d..d60b0bfc3 100644 --- a/internal/api/wellknown/webfinger/webfinger.go +++ b/internal/api/wellknown/webfinger/webfinger.go @@ -20,9 +20,9 @@ package webfinger import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) const ( diff --git a/internal/api/wellknown/webfinger/webfinger_test.go b/internal/api/wellknown/webfinger/webfinger_test.go index d6521aff0..b9db9b556 100644 --- a/internal/api/wellknown/webfinger/webfinger_test.go +++ b/internal/api/wellknown/webfinger/webfinger_test.go @@ -18,21 +18,21 @@ package webfinger_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/wellknown/webfinger" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/wellknown/webfinger" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type WebfingerStandardTestSuite struct { diff --git a/internal/api/wellknown/webfinger/webfingerget.go b/internal/api/wellknown/webfinger/webfingerget.go index 74cb8fefe..e277622fd 100644 --- a/internal/api/wellknown/webfinger/webfingerget.go +++ b/internal/api/wellknown/webfinger/webfingerget.go @@ -22,11 +22,11 @@ import ( "fmt" "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // WebfingerGETRequest swagger:operation GET /.well-known/webfinger webfingerGet diff --git a/internal/api/wellknown/webfinger/webfingerget_test.go b/internal/api/wellknown/webfinger/webfingerget_test.go index 94c084146..a0a8aa22f 100644 --- a/internal/api/wellknown/webfinger/webfingerget_test.go +++ b/internal/api/wellknown/webfinger/webfingerget_test.go @@ -29,17 +29,17 @@ import ( "net/http/httptest" "testing" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/api/wellknown/webfinger" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/filter/interaction" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/api/wellknown/webfinger" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/filter/interaction" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/subscriptions" - "github.com/superseriousbusiness/gotosocial/testrig" ) type WebfingerGetTestSuite struct { diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 7844c03f8..3fd9b4593 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -20,11 +20,11 @@ package cache import ( "time" + "code.superseriousbusiness.org/gotosocial/internal/cache/headerfilter" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-cache/v3/ttl" - "github.com/superseriousbusiness/gotosocial/internal/cache/headerfilter" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) type Caches struct { diff --git a/internal/cache/db.go b/internal/cache/db.go index 82cd9ac5f..ac16e26c5 100644 --- a/internal/cache/db.go +++ b/internal/cache/db.go @@ -20,11 +20,11 @@ package cache import ( "sync/atomic" + "code.superseriousbusiness.org/gotosocial/internal/cache/domain" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-structr" - "github.com/superseriousbusiness/gotosocial/internal/cache/domain" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" ) type DBCaches struct { @@ -1083,6 +1083,12 @@ func (c *Caches) initMention() { m2.OriginAccount = nil m2.TargetAccount = nil + // Zero non-db fields. + m2.NameString = "" + m2.IsNew = false + m2.TargetAccountURI = "" + m2.TargetAccountURL = "" + return m2 } diff --git a/internal/cache/domain/domain_test.go b/internal/cache/domain/domain_test.go index 974425b7c..a3cbbca78 100644 --- a/internal/cache/domain/domain_test.go +++ b/internal/cache/domain/domain_test.go @@ -21,7 +21,7 @@ import ( "errors" "testing" - "github.com/superseriousbusiness/gotosocial/internal/cache/domain" + "code.superseriousbusiness.org/gotosocial/internal/cache/domain" ) func TestCache(t *testing.T) { diff --git a/internal/cache/headerfilter/filter.go b/internal/cache/headerfilter/filter.go index 96b6e757f..afab0b3f7 100644 --- a/internal/cache/headerfilter/filter.go +++ b/internal/cache/headerfilter/filter.go @@ -22,8 +22,8 @@ import ( "net/http" "sync/atomic" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/headerfilter" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/headerfilter" ) // Cache provides a means of caching headerfilter.Filters in diff --git a/internal/cache/invalidate.go b/internal/cache/invalidate.go index 949238ec6..3512bb51e 100644 --- a/internal/cache/invalidate.go +++ b/internal/cache/invalidate.go @@ -18,8 +18,8 @@ package cache import ( - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // Below are cache invalidation hooks between other caches, diff --git a/internal/cache/size.go b/internal/cache/size.go index 9a30d5f08..b08a62a85 100644 --- a/internal/cache/size.go +++ b/internal/cache/size.go @@ -23,13 +23,13 @@ import ( "time" "unsafe" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-cache/v3/simple" "github.com/DmitriyVTitov/size" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" ) const ( @@ -549,9 +549,7 @@ func sizeofMention() uintptr { OriginAccountID: exampleURI, OriginAccountURI: exampleURI, TargetAccountID: exampleID, - NameString: exampleUsername, - TargetAccountURI: exampleURI, - TargetAccountURL: exampleURI, + Silent: util.Ptr(false), })) } diff --git a/internal/cache/util.go b/internal/cache/util.go index ceb053e34..783fc2e24 100644 --- a/internal/cache/util.go +++ b/internal/cache/util.go @@ -20,8 +20,8 @@ package cache import ( "errors" + "code.superseriousbusiness.org/gotosocial/internal/db" errorsv2 "codeberg.org/gruf/go-errors/v2" - "github.com/superseriousbusiness/gotosocial/internal/db" ) // SentinelError is an error that can be returned and checked against to indicate a non-permanent diff --git a/internal/cache/visibility.go b/internal/cache/visibility.go index a424ca5ac..63927cf08 100644 --- a/internal/cache/visibility.go +++ b/internal/cache/visibility.go @@ -18,9 +18,9 @@ package cache import ( + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-structr" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" ) type VisibilityCache struct { diff --git a/internal/cleaner/cleaner.go b/internal/cleaner/cleaner.go index 62e84a09b..7e32566ee 100644 --- a/internal/cleaner/cleaner.go +++ b/internal/cleaner/cleaner.go @@ -21,12 +21,12 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" ) const ( diff --git a/internal/cleaner/cleaner_test.go b/internal/cleaner/cleaner_test.go index 42006611b..b3c38abdd 100644 --- a/internal/cleaner/cleaner_test.go +++ b/internal/cleaner/cleaner_test.go @@ -20,11 +20,11 @@ package cleaner_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/testrig" ) type CleanerTestSuite struct { diff --git a/internal/cleaner/emoji.go b/internal/cleaner/emoji.go index 05588ccb2..245dfac27 100644 --- a/internal/cleaner/emoji.go +++ b/internal/cleaner/emoji.go @@ -22,12 +22,12 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Emoji encompasses a set of diff --git a/internal/cleaner/emoji_test.go b/internal/cleaner/emoji_test.go index 30642a818..b789d2d5a 100644 --- a/internal/cleaner/emoji_test.go +++ b/internal/cleaner/emoji_test.go @@ -5,11 +5,11 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" ) func copyMap(in map[string]*gtsmodel.Emoji) map[string]*gtsmodel.Emoji { diff --git a/internal/cleaner/media.go b/internal/cleaner/media.go index 9a6855ab2..6384ba368 100644 --- a/internal/cleaner/media.go +++ b/internal/cleaner/media.go @@ -22,15 +22,15 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/regexes" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/regexes" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // Media encompasses a set of diff --git a/internal/cleaner/media_test.go b/internal/cleaner/media_test.go index afa015783..b3dec7d12 100644 --- a/internal/cleaner/media_test.go +++ b/internal/cleaner/media_test.go @@ -25,19 +25,19 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type MediaTestSuite struct { diff --git a/internal/config/config.go b/internal/config/config.go index d4b3901e7..07676627d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -21,9 +21,9 @@ import ( "reflect" "time" + "code.superseriousbusiness.org/gotosocial/internal/language" "codeberg.org/gruf/go-bytesize" "github.com/mitchellh/mapstructure" - "github.com/superseriousbusiness/gotosocial/internal/language" ) // cfgtype is the reflected type information of Configuration{}. diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 5f41cbe08..006d4a449 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -23,10 +23,10 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/stretchr/testify/assert" - "github.com/superseriousbusiness/gotosocial/internal/config" "gopkg.in/yaml.v3" ) diff --git a/internal/config/defaults.go b/internal/config/defaults.go index 9a507b421..f07aeb41b 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -20,9 +20,9 @@ package config import ( "time" + "code.superseriousbusiness.org/gotosocial/internal/language" "codeberg.org/gruf/go-bytesize" "github.com/coreos/go-oidc/v3/oidc" - "github.com/superseriousbusiness/gotosocial/internal/language" ) // Defaults contains a populated Configuration with reasonable defaults. Note that diff --git a/internal/config/gen/gen.go b/internal/config/gen/gen.go index 9130f8606..dda321e7c 100644 --- a/internal/config/gen/gen.go +++ b/internal/config/gen/gen.go @@ -26,7 +26,7 @@ import ( "reflect" "strings" - "github.com/superseriousbusiness/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/config" ) const license = `// GoToSocial @@ -67,7 +67,7 @@ func main() { fmt.Fprint(output, "import (\n") fmt.Fprint(output, "\t\"time\"\n\n") fmt.Fprint(output, "\t\"codeberg.org/gruf/go-bytesize\"\n") - fmt.Fprint(output, "\t\"github.com/superseriousbusiness/gotosocial/internal/language\"\n") + fmt.Fprint(output, "\t\"code.superseriousbusiness.org/gotosocial/internal/language\"\n") fmt.Fprint(output, ")\n\n") generateFields(output, nil, reflect.TypeOf(config.Configuration{})) _ = output.Close() diff --git a/internal/config/helpers.gen.go b/internal/config/helpers.gen.go index ac41a73e9..56eb0e3e8 100644 --- a/internal/config/helpers.gen.go +++ b/internal/config/helpers.gen.go @@ -21,8 +21,8 @@ package config import ( "time" + "code.superseriousbusiness.org/gotosocial/internal/language" "codeberg.org/gruf/go-bytesize" - "github.com/superseriousbusiness/gotosocial/internal/language" ) // GetLogLevel safely fetches the Configuration value for state's 'LogLevel' field diff --git a/internal/config/validate.go b/internal/config/validate.go index d36d18ba4..f1c50e4a1 100644 --- a/internal/config/validate.go +++ b/internal/config/validate.go @@ -22,10 +22,10 @@ import ( "net/url" "strings" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/language" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/miekg/dns" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/language" - "github.com/superseriousbusiness/gotosocial/internal/log" ) // Validate validates global config settings. diff --git a/internal/config/validate_test.go b/internal/config/validate_test.go index 1ae3d6c78..fb20ea0fb 100644 --- a/internal/config/validate_test.go +++ b/internal/config/validate_test.go @@ -20,9 +20,9 @@ package config_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ConfigValidateTestSuite struct { diff --git a/internal/db/account.go b/internal/db/account.go index 0caac3453..59ea9ff1a 100644 --- a/internal/db/account.go +++ b/internal/db/account.go @@ -21,8 +21,8 @@ import ( "context" "net/netip" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Account contains functions related to account getting/setting/creation. diff --git a/internal/db/admin.go b/internal/db/admin.go index 1f24c7932..d33917547 100644 --- a/internal/db/admin.go +++ b/internal/db/admin.go @@ -21,7 +21,7 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Admin contains functions related to instance administration (new signups etc). diff --git a/internal/db/advancedmigration.go b/internal/db/advancedmigration.go index 2b4601bdb..13ccf1835 100644 --- a/internal/db/advancedmigration.go +++ b/internal/db/advancedmigration.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type AdvancedMigration interface { diff --git a/internal/db/application.go b/internal/db/application.go index 76948b0fd..4781c9a95 100644 --- a/internal/db/application.go +++ b/internal/db/application.go @@ -20,8 +20,8 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) type Application interface { diff --git a/internal/db/bundb/account.go b/internal/db/bundb/account.go index 88a923ecf..66dc3b307 100644 --- a/internal/db/bundb/account.go +++ b/internal/db/bundb/account.go @@ -26,17 +26,17 @@ import ( "strings" "time" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/account_test.go b/internal/db/bundb/account_test.go index ffd44de79..bb842415c 100644 --- a/internal/db/bundb/account_test.go +++ b/internal/db/bundb/account_test.go @@ -29,13 +29,13 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type AccountTestSuite struct { diff --git a/internal/db/bundb/admin.go b/internal/db/bundb/admin.go index 12cb6a6f7..0666cf8a8 100644 --- a/internal/db/bundb/admin.go +++ b/internal/db/bundb/admin.go @@ -27,16 +27,16 @@ import ( "strings" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/google/uuid" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" "github.com/uptrace/bun" "golang.org/x/crypto/bcrypt" ) @@ -165,15 +165,11 @@ func (a *adminDB) NewSignup(ctx context.Context, newSignup gtsmodel.NewSignup) ( return nil, err } - defer func() { - // Pin account to (new) - // user before returning. - user.Account = account - }() - + // If there's already a + // user for this account, + // just pin acct + return. if user != nil { - // Already had a user for this - // account, just return that. + user.Account = account return user, nil } @@ -194,13 +190,21 @@ func (a *adminDB) NewSignup(ctx context.Context, newSignup gtsmodel.NewSignup) ( } // If no app ID was set, - // use the instance app ID. + // get the instance app + // and use its ID. if newSignup.AppID == "" { instanceApp, err := a.state.DB.GetInstanceApplication(ctx) - if err != nil { + if err != nil && !errors.Is(err, db.ErrNoEntries) { err := gtserror.Newf("db error getting instance app: %w", err) return nil, err } + + if instanceApp == nil { + const errText = "instance application not yet created, run the server at least once *before* creating users" + err := gtserror.New(errText) + return nil, err + } + newSignup.AppID = instanceApp.ID } diff --git a/internal/db/bundb/admin_test.go b/internal/db/bundb/admin_test.go index 8018ef3fa..247431e87 100644 --- a/internal/db/bundb/admin_test.go +++ b/internal/db/bundb/admin_test.go @@ -21,9 +21,9 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20211113114307_init" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AdminTestSuite struct { @@ -92,6 +92,27 @@ func (suite *AdminTestSuite) TestCreateInstanceAccount() { suite.NotNil(acct) } +func (suite *AdminTestSuite) TestNewSignupWithNoInstanceApp() { + ctx := context.Background() + + // Delete the instance app. + if err := suite.state.DB.DeleteApplicationByID( + ctx, + suite.testApplications["instance_application"].ID, + ); err != nil { + suite.FailNow(err.Error()) + } + + // Try to create a new signup with no provided app ID, + // it should fail as it can't fetch the instance app. + _, err := suite.state.DB.NewSignup(ctx, gtsmodel.NewSignup{ + Username: "whatever", + Email: "whatever@wherever.org", + Password: "really_good_password", + }) + suite.EqualError(err, "NewSignup: instance application not yet created, run the server at least once *before* creating users") +} + func TestAdminTestSuite(t *testing.T) { suite.Run(t, new(AdminTestSuite)) } diff --git a/internal/db/bundb/advancedmigration.go b/internal/db/bundb/advancedmigration.go index 2a0ec93e6..d8e6e66d2 100644 --- a/internal/db/bundb/advancedmigration.go +++ b/internal/db/bundb/advancedmigration.go @@ -20,8 +20,8 @@ package bundb import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/application.go b/internal/db/bundb/application.go index 562614e5e..9df4b54c7 100644 --- a/internal/db/bundb/application.go +++ b/internal/db/bundb/application.go @@ -22,12 +22,12 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/application_test.go b/internal/db/bundb/application_test.go index 540c632b5..858cb15b6 100644 --- a/internal/db/bundb/application_test.go +++ b/internal/db/bundb/application_test.go @@ -23,9 +23,9 @@ import ( "reflect" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type ApplicationTestSuite struct { diff --git a/internal/db/bundb/basic.go b/internal/db/bundb/basic.go index 82212fc42..2384ee9b7 100644 --- a/internal/db/bundb/basic.go +++ b/internal/db/bundb/basic.go @@ -21,8 +21,8 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/basic_test.go b/internal/db/bundb/basic_test.go index 4c5ea8d18..bdda1cad3 100644 --- a/internal/db/bundb/basic_test.go +++ b/internal/db/bundb/basic_test.go @@ -24,9 +24,9 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type BasicTestSuite struct { diff --git a/internal/db/bundb/bundb.go b/internal/db/bundb/bundb.go index 18fe5384c..8a3108ef2 100644 --- a/internal/db/bundb/bundb.go +++ b/internal/db/bundb/bundb.go @@ -32,17 +32,17 @@ import ( "strings" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/observability" + "code.superseriousbusiness.org/gotosocial/internal/state" "codeberg.org/gruf/go-bytesize" "github.com/google/uuid" "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/stdlib" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/observability" - "github.com/superseriousbusiness/gotosocial/internal/state" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" "github.com/uptrace/bun/dialect/pgdialect" diff --git a/internal/db/bundb/bundb_test.go b/internal/db/bundb/bundb_test.go index c128eca27..5154b6bf2 100644 --- a/internal/db/bundb/bundb_test.go +++ b/internal/db/bundb/bundb_test.go @@ -18,13 +18,13 @@ package bundb_test import ( + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type BunDBStandardTestSuite struct { diff --git a/internal/db/bundb/bundbnew_test.go b/internal/db/bundb/bundbnew_test.go index e05c21ef3..6dbe2120b 100644 --- a/internal/db/bundb/bundbnew_test.go +++ b/internal/db/bundb/bundbnew_test.go @@ -21,9 +21,9 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" ) type BundbNewTestSuite struct { diff --git a/internal/db/bundb/conversation.go b/internal/db/bundb/conversation.go index 354463111..0946ed23b 100644 --- a/internal/db/bundb/conversation.go +++ b/internal/db/bundb/conversation.go @@ -23,15 +23,15 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/conversation_test.go b/internal/db/bundb/conversation_test.go index 24d35d482..15cdf8b3c 100644 --- a/internal/db/bundb/conversation_test.go +++ b/internal/db/bundb/conversation_test.go @@ -22,10 +22,10 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db/test" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/db/test" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type ConversationTestSuite struct { diff --git a/internal/db/bundb/domain.go b/internal/db/bundb/domain.go index 23b9abc74..3d9ab41d0 100644 --- a/internal/db/bundb/domain.go +++ b/internal/db/bundb/domain.go @@ -22,12 +22,12 @@ import ( "net/url" "time" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/domain_test.go b/internal/db/bundb/domain_test.go index a56f469c4..553cdeb80 100644 --- a/internal/db/bundb/domain_test.go +++ b/internal/db/bundb/domain_test.go @@ -23,8 +23,8 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type DomainTestSuite struct { diff --git a/internal/db/bundb/domainpermissiondraft.go b/internal/db/bundb/domainpermissiondraft.go index 281db1224..0fe0eb2b1 100644 --- a/internal/db/bundb/domainpermissiondraft.go +++ b/internal/db/bundb/domainpermissiondraft.go @@ -22,13 +22,13 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/domainpermissiondraft_test.go b/internal/db/bundb/domainpermissiondraft_test.go index e4f255483..b3bb20d00 100644 --- a/internal/db/bundb/domainpermissiondraft_test.go +++ b/internal/db/bundb/domainpermissiondraft_test.go @@ -22,10 +22,10 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type DomainPermissionDraftTestSuite struct { diff --git a/internal/db/bundb/domainpermissionexclude.go b/internal/db/bundb/domainpermissionexclude.go index 1527a584b..ee8c13c81 100644 --- a/internal/db/bundb/domainpermissionexclude.go +++ b/internal/db/bundb/domainpermissionexclude.go @@ -22,14 +22,14 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/domainpermissionexclude_test.go b/internal/db/bundb/domainpermissionexclude_test.go index 47af710f9..dd55d7add 100644 --- a/internal/db/bundb/domainpermissionexclude_test.go +++ b/internal/db/bundb/domainpermissionexclude_test.go @@ -22,10 +22,10 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type DomainPermissionExcludeTestSuite struct { diff --git a/internal/db/bundb/domainpermissionsubscription.go b/internal/db/bundb/domainpermissionsubscription.go index be22b96a3..1f7e609e8 100644 --- a/internal/db/bundb/domainpermissionsubscription.go +++ b/internal/db/bundb/domainpermissionsubscription.go @@ -22,12 +22,12 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/domainpermissionsubscription_test.go b/internal/db/bundb/domainpermissionsubscription_test.go index 7a5cf8685..b05330138 100644 --- a/internal/db/bundb/domainpermissionsubscription_test.go +++ b/internal/db/bundb/domainpermissionsubscription_test.go @@ -21,8 +21,8 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type DomainPermissionSubscriptionTestSuite struct { diff --git a/internal/db/bundb/drivers.go b/internal/db/bundb/drivers.go index f39189c9d..e4f60ff6c 100644 --- a/internal/db/bundb/drivers.go +++ b/internal/db/bundb/drivers.go @@ -20,8 +20,8 @@ package bundb import ( "database/sql" - "github.com/superseriousbusiness/gotosocial/internal/db/postgres" - "github.com/superseriousbusiness/gotosocial/internal/db/sqlite" + "code.superseriousbusiness.org/gotosocial/internal/db/postgres" + "code.superseriousbusiness.org/gotosocial/internal/db/sqlite" ) func init() { diff --git a/internal/db/bundb/emoji.go b/internal/db/bundb/emoji.go index ee564317e..bea96f6bf 100644 --- a/internal/db/bundb/emoji.go +++ b/internal/db/bundb/emoji.go @@ -24,14 +24,14 @@ import ( "strings" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/emoji_test.go b/internal/db/bundb/emoji_test.go index a4bf18f6e..a71678eac 100644 --- a/internal/db/bundb/emoji_test.go +++ b/internal/db/bundb/emoji_test.go @@ -21,10 +21,10 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) type EmojiTestSuite struct { diff --git a/internal/db/bundb/errors_test.go b/internal/db/bundb/errors_test.go index 400780196..a235e185b 100644 --- a/internal/db/bundb/errors_test.go +++ b/internal/db/bundb/errors_test.go @@ -22,9 +22,9 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type ErrorsTestSuite struct { diff --git a/internal/db/bundb/filter.go b/internal/db/bundb/filter.go index fe23bb405..24208b1f3 100644 --- a/internal/db/bundb/filter.go +++ b/internal/db/bundb/filter.go @@ -23,11 +23,11 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/filter_test.go b/internal/db/bundb/filter_test.go index fbb2a6bfb..faa2957d6 100644 --- a/internal/db/bundb/filter_test.go +++ b/internal/db/bundb/filter_test.go @@ -22,10 +22,10 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type FilterTestSuite struct { diff --git a/internal/db/bundb/filterkeyword.go b/internal/db/bundb/filterkeyword.go index 0e1d8daeb..1c80061e9 100644 --- a/internal/db/bundb/filterkeyword.go +++ b/internal/db/bundb/filterkeyword.go @@ -22,11 +22,11 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/filterkeyword_test.go b/internal/db/bundb/filterkeyword_test.go index 91c8d192c..e1482a225 100644 --- a/internal/db/bundb/filterkeyword_test.go +++ b/internal/db/bundb/filterkeyword_test.go @@ -21,9 +21,9 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // TestFilterKeywordCRUD tests CRUD and read-all operations on filter keywords. diff --git a/internal/db/bundb/filterstatus.go b/internal/db/bundb/filterstatus.go index 1cd924d13..a14e2a7b4 100644 --- a/internal/db/bundb/filterstatus.go +++ b/internal/db/bundb/filterstatus.go @@ -22,10 +22,10 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/filterstatus_test.go b/internal/db/bundb/filterstatus_test.go index 48ddb1bed..e5dceb7f1 100644 --- a/internal/db/bundb/filterstatus_test.go +++ b/internal/db/bundb/filterstatus_test.go @@ -21,9 +21,9 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // TestFilterStatusCRD tests CRD (no U) and read-all operations on filter statuses. diff --git a/internal/db/bundb/headerfilter.go b/internal/db/bundb/headerfilter.go index b02d9249e..ffd08a787 100644 --- a/internal/db/bundb/headerfilter.go +++ b/internal/db/bundb/headerfilter.go @@ -23,8 +23,8 @@ import ( "time" "unsafe" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/headerfilter_test.go b/internal/db/bundb/headerfilter_test.go index d7e2b26ee..85a2dd03e 100644 --- a/internal/db/bundb/headerfilter_test.go +++ b/internal/db/bundb/headerfilter_test.go @@ -21,9 +21,9 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type HeaderFilterTestSuite struct { diff --git a/internal/db/bundb/hook.go b/internal/db/bundb/hook.go index 16de74f11..798868ccb 100644 --- a/internal/db/bundb/hook.go +++ b/internal/db/bundb/hook.go @@ -21,8 +21,8 @@ import ( "context" "time" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/instance.go b/internal/db/bundb/instance.go index 154c1d34e..824adeff4 100644 --- a/internal/db/bundb/instance.go +++ b/internal/db/bundb/instance.go @@ -21,15 +21,15 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/instance_test.go b/internal/db/bundb/instance_test.go index c0d63003d..c6f177821 100644 --- a/internal/db/bundb/instance_test.go +++ b/internal/db/bundb/instance_test.go @@ -21,11 +21,11 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type InstanceTestSuite struct { diff --git a/internal/db/bundb/interaction.go b/internal/db/bundb/interaction.go index 9fbe00711..3de75ded1 100644 --- a/internal/db/bundb/interaction.go +++ b/internal/db/bundb/interaction.go @@ -22,14 +22,14 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/interaction_test.go b/internal/db/bundb/interaction_test.go index 1eb8154c1..4518f7ac9 100644 --- a/internal/db/bundb/interaction_test.go +++ b/internal/db/bundb/interaction_test.go @@ -23,13 +23,13 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type InteractionTestSuite struct { diff --git a/internal/db/bundb/list.go b/internal/db/bundb/list.go index f81c59c42..61109fe83 100644 --- a/internal/db/bundb/list.go +++ b/internal/db/bundb/list.go @@ -24,14 +24,14 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/list_test.go b/internal/db/bundb/list_test.go index 3952a87c0..dde336c46 100644 --- a/internal/db/bundb/list_test.go +++ b/internal/db/bundb/list_test.go @@ -22,9 +22,9 @@ import ( "slices" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type ListTestSuite struct { diff --git a/internal/db/bundb/marker.go b/internal/db/bundb/marker.go index 80b87e232..14ce60e1c 100644 --- a/internal/db/bundb/marker.go +++ b/internal/db/bundb/marker.go @@ -23,9 +23,9 @@ import ( "fmt" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/markers_test.go b/internal/db/bundb/markers_test.go index eb0a43437..618fb3383 100644 --- a/internal/db/bundb/markers_test.go +++ b/internal/db/bundb/markers_test.go @@ -22,9 +22,9 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // MarkersTestSuite uses home timelines for Get tests diff --git a/internal/db/bundb/media.go b/internal/db/bundb/media.go index 09c8188f0..845844980 100644 --- a/internal/db/bundb/media.go +++ b/internal/db/bundb/media.go @@ -23,12 +23,12 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/mention.go b/internal/db/bundb/mention.go index 04aa5d76e..e3c36bf0c 100644 --- a/internal/db/bundb/mention.go +++ b/internal/db/bundb/mention.go @@ -22,13 +22,13 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) @@ -64,6 +64,39 @@ func (m *mentionDB) GetMention(ctx context.Context, id string) (*gtsmodel.Mentio return mention, nil } +func (m *mentionDB) GetMentionByTargetAcctStatus( + ctx context.Context, + targetAcctID string, + statusID string, +) (*gtsmodel.Mention, error) { + // Get the status first. + status, err := m.state.DB.GetStatusByID(ctx, statusID) + if err != nil { + return nil, err + } + + // Populate mentions if necessary. + if !status.MentionsPopulated() { + status.Mentions, err = m.GetMentions(ctx, status.MentionIDs) + if err != nil { + return nil, err + } + } + + // See if the mention is there. + mention, ok := status.GetMentionByTargetID(targetAcctID) + if !ok { + return nil, db.ErrNoEntries + } + + // Further populate the mention fields where applicable. + if err := m.PopulateMention(ctx, mention); err != nil { + return nil, err + } + + return mention, nil +} + func (m *mentionDB) GetMentions(ctx context.Context, ids []string) ([]*gtsmodel.Mention, error) { // Load all mention IDs via cache loader callbacks. mentions, err := m.state.Caches.DB.Mention.LoadIDs("ID", diff --git a/internal/db/bundb/migrations/20211113114307_init.go b/internal/db/bundb/migrations/20211113114307_init.go index 63783beb8..061cd99ab 100644 --- a/internal/db/bundb/migrations/20211113114307_init.go +++ b/internal/db/bundb/migrations/20211113114307_init.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20211113114307_init" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20211113114307_init" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220214175650_media_cleanup.go b/internal/db/bundb/migrations/20220214175650_media_cleanup.go index 3a8ec7b5a..f1691dca0 100644 --- a/internal/db/bundb/migrations/20220214175650_media_cleanup.go +++ b/internal/db/bundb/migrations/20220214175650_media_cleanup.go @@ -22,8 +22,8 @@ import ( "database/sql" "time" - previousgtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20211113114307_init" - newgtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20220214175650_media_cleanup" + previousgtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20211113114307_init" + newgtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20220214175650_media_cleanup" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220305130328_database_optimizations.go b/internal/db/bundb/migrations/20220305130328_database_optimizations.go index 897e4f91f..cfabfe2ac 100644 --- a/internal/db/bundb/migrations/20220305130328_database_optimizations.go +++ b/internal/db/bundb/migrations/20220305130328_database_optimizations.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220315160814_admin_account_actions.go b/internal/db/bundb/migrations/20220315160814_admin_account_actions.go index 5fcbfc127..83a06e7b8 100644 --- a/internal/db/bundb/migrations/20220315160814_admin_account_actions.go +++ b/internal/db/bundb/migrations/20220315160814_admin_account_actions.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20220315160814_admin_account_actions" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20220315160814_admin_account_actions" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220502113806_add_missing_indexes.go b/internal/db/bundb/migrations/20220502113806_add_missing_indexes.go index 601f26e77..7cbdada60 100644 --- a/internal/db/bundb/migrations/20220502113806_add_missing_indexes.go +++ b/internal/db/bundb/migrations/20220502113806_add_missing_indexes.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220518123621_additional_indexing.go b/internal/db/bundb/migrations/20220518123621_additional_indexing.go index 4aa3450a9..08198b0c0 100644 --- a/internal/db/bundb/migrations/20220518123621_additional_indexing.go +++ b/internal/db/bundb/migrations/20220518123621_additional_indexing.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220612091800_duplicated_media_cleanup.go b/internal/db/bundb/migrations/20220612091800_duplicated_media_cleanup.go index 6c280fb11..fd714aa5c 100644 --- a/internal/db/bundb/migrations/20220612091800_duplicated_media_cleanup.go +++ b/internal/db/bundb/migrations/20220612091800_duplicated_media_cleanup.go @@ -23,11 +23,11 @@ import ( "errors" "fmt" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-storage" "codeberg.org/gruf/go-storage/disk" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220710153020_fix_slow_web_profile_queries.go b/internal/db/bundb/migrations/20220710153020_fix_slow_web_profile_queries.go index 02d591158..5765908f0 100644 --- a/internal/db/bundb/migrations/20220710153020_fix_slow_web_profile_queries.go +++ b/internal/db/bundb/migrations/20220710153020_fix_slow_web_profile_queries.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220827085121_assign_missing_in_reply_to_uris.go b/internal/db/bundb/migrations/20220827085121_assign_missing_in_reply_to_uris.go index c7a4dce78..e12a44632 100644 --- a/internal/db/bundb/migrations/20220827085121_assign_missing_in_reply_to_uris.go +++ b/internal/db/bundb/migrations/20220827085121_assign_missing_in_reply_to_uris.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220830014732_regenerate_indexes_for_follows.go b/internal/db/bundb/migrations/20220830014732_regenerate_indexes_for_follows.go index ff618878f..fd8ab66c0 100644 --- a/internal/db/bundb/migrations/20220830014732_regenerate_indexes_for_follows.go +++ b/internal/db/bundb/migrations/20220830014732_regenerate_indexes_for_follows.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20220905150505_custom_emoji_updates.go b/internal/db/bundb/migrations/20220905150505_custom_emoji_updates.go index 1d2f764fc..5767ceca8 100644 --- a/internal/db/bundb/migrations/20220905150505_custom_emoji_updates.go +++ b/internal/db/bundb/migrations/20220905150505_custom_emoji_updates.go @@ -21,7 +21,7 @@ import ( "context" "database/sql" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20211113114307_init" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20211113114307_init" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20220916122701_emojis_in_accounts.go b/internal/db/bundb/migrations/20220916122701_emojis_in_accounts.go index ef533f57b..0c19a8135 100644 --- a/internal/db/bundb/migrations/20220916122701_emojis_in_accounts.go +++ b/internal/db/bundb/migrations/20220916122701_emojis_in_accounts.go @@ -20,8 +20,8 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20220926115233_indexes.go b/internal/db/bundb/migrations/20220926115233_indexes.go index 1fecb3bac..b565eb85a 100644 --- a/internal/db/bundb/migrations/20220926115233_indexes.go +++ b/internal/db/bundb/migrations/20220926115233_indexes.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20221011125732_refetch_updated_emojis.go b/internal/db/bundb/migrations/20221011125732_refetch_updated_emojis.go index 60756579a..bcac19045 100644 --- a/internal/db/bundb/migrations/20221011125732_refetch_updated_emojis.go +++ b/internal/db/bundb/migrations/20221011125732_refetch_updated_emojis.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20221031145649_emoji_categories.go b/internal/db/bundb/migrations/20221031145649_emoji_categories.go index bdec3bd6e..5d1bb1d57 100644 --- a/internal/db/bundb/migrations/20221031145649_emoji_categories.go +++ b/internal/db/bundb/migrations/20221031145649_emoji_categories.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20221108142419_create_account_tombstones.go b/internal/db/bundb/migrations/20221108142419_create_account_tombstones.go index a08b83244..6d3619b2c 100644 --- a/internal/db/bundb/migrations/20221108142419_create_account_tombstones.go +++ b/internal/db/bundb/migrations/20221108142419_create_account_tombstones.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230105171144_report_model.go b/internal/db/bundb/migrations/20230105171144_report_model.go index 44b80727c..7a51fbcf7 100644 --- a/internal/db/bundb/migrations/20230105171144_report_model.go +++ b/internal/db/bundb/migrations/20230105171144_report_model.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230221150957_status_pin_client_api.go b/internal/db/bundb/migrations/20230221150957_status_pin_client_api.go index 5c4d5218b..2ec53f321 100644 --- a/internal/db/bundb/migrations/20230221150957_status_pin_client_api.go +++ b/internal/db/bundb/migrations/20230221150957_status_pin_client_api.go @@ -21,7 +21,7 @@ import ( "context" "strings" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230328203024_migration_fix.go b/internal/db/bundb/migrations/20230328203024_migration_fix.go index 3b64fb618..2cbb3896d 100644 --- a/internal/db/bundb/migrations/20230328203024_migration_fix.go +++ b/internal/db/bundb/migrations/20230328203024_migration_fix.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20230328203024_migration_fix" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20230328203024_migration_fix" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230405130021_status_fave_unique_constraints.go b/internal/db/bundb/migrations/20230405130021_status_fave_unique_constraints.go index c1d4ef2ac..e4c3f3a8a 100644 --- a/internal/db/bundb/migrations/20230405130021_status_fave_unique_constraints.go +++ b/internal/db/bundb/migrations/20230405130021_status_fave_unique_constraints.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230515173919_lists.go b/internal/db/bundb/migrations/20230515173919_lists.go index e0ea5c7b6..2f8bb3a88 100644 --- a/internal/db/bundb/migrations/20230515173919_lists.go +++ b/internal/db/bundb/migrations/20230515173919_lists.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230521105850_emoji_empty_domain_fix.go b/internal/db/bundb/migrations/20230521105850_emoji_empty_domain_fix.go index efb9f6ce6..12020e69e 100644 --- a/internal/db/bundb/migrations/20230521105850_emoji_empty_domain_fix.go +++ b/internal/db/bundb/migrations/20230521105850_emoji_empty_domain_fix.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20230521105850_emoji_empty_domain_fix" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20230521105850_emoji_empty_domain_fix" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20230620103932_search_updates.go b/internal/db/bundb/migrations/20230620103932_search_updates.go index 0e26069a8..98c92f5c2 100644 --- a/internal/db/bundb/migrations/20230620103932_search_updates.go +++ b/internal/db/bundb/migrations/20230620103932_search_updates.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230711214815_account_notes.go b/internal/db/bundb/migrations/20230711214815_account_notes.go index 49d60745b..a88b2827f 100644 --- a/internal/db/bundb/migrations/20230711214815_account_notes.go +++ b/internal/db/bundb/migrations/20230711214815_account_notes.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230713025939_markers_api.go b/internal/db/bundb/migrations/20230713025939_markers_api.go index b2ace6856..acb235f81 100644 --- a/internal/db/bundb/migrations/20230713025939_markers_api.go +++ b/internal/db/bundb/migrations/20230713025939_markers_api.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230815164500_rules_model.go b/internal/db/bundb/migrations/20230815164500_rules_model.go index 9b202ede9..579e56386 100644 --- a/internal/db/bundb/migrations/20230815164500_rules_model.go +++ b/internal/db/bundb/migrations/20230815164500_rules_model.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230821075342_attachment_cleanup_updates.go b/internal/db/bundb/migrations/20230821075342_attachment_cleanup_updates.go index 2ee0a0c7d..182459237 100644 --- a/internal/db/bundb/migrations/20230821075342_attachment_cleanup_updates.go +++ b/internal/db/bundb/migrations/20230821075342_attachment_cleanup_updates.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20230828101322_admin_action_locking.go b/internal/db/bundb/migrations/20230828101322_admin_action_locking.go index 29c29a747..0af01cfa4 100644 --- a/internal/db/bundb/migrations/20230828101322_admin_action_locking.go +++ b/internal/db/bundb/migrations/20230828101322_admin_action_locking.go @@ -22,9 +22,9 @@ import ( "github.com/uptrace/bun" - oldmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20220315160814_admin_account_actions" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" + oldmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20220315160814_admin_account_actions" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" ) func init() { diff --git a/internal/db/bundb/migrations/20230908083121_allowlist.go.go b/internal/db/bundb/migrations/20230908083121_allowlist.go.go index 2d86f8c03..0b3469680 100644 --- a/internal/db/bundb/migrations/20230908083121_allowlist.go.go +++ b/internal/db/bundb/migrations/20230908083121_allowlist.go.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20231002153327_add_status_polls.go b/internal/db/bundb/migrations/20231002153327_add_status_polls.go index 019a369d4..956bf9750 100644 --- a/internal/db/bundb/migrations/20231002153327_add_status_polls.go +++ b/internal/db/bundb/migrations/20231002153327_add_status_polls.go @@ -21,7 +21,7 @@ import ( "context" "strings" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20231002153327_add_status_polls" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20231002153327_add_status_polls" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20231016113235_mute_status_thread.go b/internal/db/bundb/migrations/20231016113235_mute_status_thread.go index c4a4a4fe7..44eed5c1d 100644 --- a/internal/db/bundb/migrations/20231016113235_mute_status_thread.go +++ b/internal/db/bundb/migrations/20231016113235_mute_status_thread.go @@ -21,8 +21,8 @@ import ( "context" "strings" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20231128140847_remove_duplicate_indices.go b/internal/db/bundb/migrations/20231128140847_remove_duplicate_indices.go index 673c45209..486a42229 100644 --- a/internal/db/bundb/migrations/20231128140847_remove_duplicate_indices.go +++ b/internal/db/bundb/migrations/20231128140847_remove_duplicate_indices.go @@ -21,7 +21,7 @@ import ( "context" "strings" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20231130103643_fix_index_whoopsie.go b/internal/db/bundb/migrations/20231130103643_fix_index_whoopsie.go index 3b0d6c6db..7bb4a3ec9 100644 --- a/internal/db/bundb/migrations/20231130103643_fix_index_whoopsie.go +++ b/internal/db/bundb/migrations/20231130103643_fix_index_whoopsie.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20231208152242_sqlite_analyze.go b/internal/db/bundb/migrations/20231208152242_sqlite_analyze.go index 94cd5632d..ea9a836ec 100644 --- a/internal/db/bundb/migrations/20231208152242_sqlite_analyze.go +++ b/internal/db/bundb/migrations/20231208152242_sqlite_analyze.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20231212144715_add_header_filters.go b/internal/db/bundb/migrations/20231212144715_add_header_filters.go index 2d671bf46..c7cda5224 100644 --- a/internal/db/bundb/migrations/20231212144715_add_header_filters.go +++ b/internal/db/bundb/migrations/20231212144715_add_header_filters.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240114112637_postgres_header_filter_fix.go b/internal/db/bundb/migrations/20240114112637_postgres_header_filter_fix.go index 92e19fe34..29a442196 100644 --- a/internal/db/bundb/migrations/20240114112637_postgres_header_filter_fix.go +++ b/internal/db/bundb/migrations/20240114112637_postgres_header_filter_fix.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20240126064004_add_filters.go b/internal/db/bundb/migrations/20240126064004_add_filters.go index 3ea9ae63c..d7fd6a19c 100644 --- a/internal/db/bundb/migrations/20240126064004_add_filters.go +++ b/internal/db/bundb/migrations/20240126064004_add_filters.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20240126064004_add_filters" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20240126064004_add_filters" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240129170725_moved_to_also_known_as.go b/internal/db/bundb/migrations/20240129170725_moved_to_also_known_as.go index 9a2cabdfc..9cce031aa 100644 --- a/internal/db/bundb/migrations/20240129170725_moved_to_also_known_as.go +++ b/internal/db/bundb/migrations/20240129170725_moved_to_also_known_as.go @@ -21,7 +21,7 @@ import ( "context" "strings" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go b/internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go index fb09d6b12..3b3518af6 100644 --- a/internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go +++ b/internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go @@ -20,8 +20,8 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20240228113608_readd_statuses_account_id_id_idx.go b/internal/db/bundb/migrations/20240228113608_readd_statuses_account_id_id_idx.go index 6df74fc4d..3529da20c 100644 --- a/internal/db/bundb/migrations/20240228113608_readd_statuses_account_id_id_idx.go +++ b/internal/db/bundb/migrations/20240228113608_readd_statuses_account_id_id_idx.go @@ -20,8 +20,8 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240318115336_account_settings.go b/internal/db/bundb/migrations/20240318115336_account_settings.go index 3bf58e21e..125698ed3 100644 --- a/internal/db/bundb/migrations/20240318115336_account_settings.go +++ b/internal/db/bundb/migrations/20240318115336_account_settings.go @@ -20,10 +20,10 @@ package migrations import ( "context" - oldgtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20230328203024_migration_fix" - newgtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20240318115336_account_settings" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util" + oldgtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20230328203024_migration_fix" + newgtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20240318115336_account_settings" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240401130338_sign_up.go b/internal/db/bundb/migrations/20240401130338_sign_up.go index 51317fd9f..deed272a9 100644 --- a/internal/db/bundb/migrations/20240401130338_sign_up.go +++ b/internal/db/bundb/migrations/20240401130338_sign_up.go @@ -21,7 +21,7 @@ import ( "context" "strings" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240414122348_account_stats_model.go b/internal/db/bundb/migrations/20240414122348_account_stats_model.go index 450ca04d4..bfa4268b7 100644 --- a/internal/db/bundb/migrations/20240414122348_account_stats_model.go +++ b/internal/db/bundb/migrations/20240414122348_account_stats_model.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240426122821_pageable_admin_accounts.go b/internal/db/bundb/migrations/20240426122821_pageable_admin_accounts.go index 00465cc85..872006cae 100644 --- a/internal/db/bundb/migrations/20240426122821_pageable_admin_accounts.go +++ b/internal/db/bundb/migrations/20240426122821_pageable_admin_accounts.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20240528071620_add_user_mutes.go b/internal/db/bundb/migrations/20240528071620_add_user_mutes.go index e92e4df5b..6f29b844e 100644 --- a/internal/db/bundb/migrations/20240528071620_add_user_mutes.go +++ b/internal/db/bundb/migrations/20240528071620_add_user_mutes.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240611190733_add_conversations.go b/internal/db/bundb/migrations/20240611190733_add_conversations.go index 25b226aff..59cc5b816 100644 --- a/internal/db/bundb/migrations/20240611190733_add_conversations.go +++ b/internal/db/bundb/migrations/20240611190733_add_conversations.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240613091853_drop_unused_media_columns.go b/internal/db/bundb/migrations/20240613091853_drop_unused_media_columns.go index e13845fd2..831b2c831 100644 --- a/internal/db/bundb/migrations/20240613091853_drop_unused_media_columns.go +++ b/internal/db/bundb/migrations/20240613091853_drop_unused_media_columns.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240617134210_add_worker_tasks_table.go b/internal/db/bundb/migrations/20240617134210_add_worker_tasks_table.go index 3b0ebcfd8..a099fd266 100644 --- a/internal/db/bundb/migrations/20240617134210_add_worker_tasks_table.go +++ b/internal/db/bundb/migrations/20240617134210_add_worker_tasks_table.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240620074530_interaction_policy.go b/internal/db/bundb/migrations/20240620074530_interaction_policy.go index 7678af7ed..33f2c184f 100644 --- a/internal/db/bundb/migrations/20240620074530_interaction_policy.go +++ b/internal/db/bundb/migrations/20240620074530_interaction_policy.go @@ -20,10 +20,10 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" - oldmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20240620074530_interaction_policy" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + oldmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20240620074530_interaction_policy" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240712005536_add_advanced_migrations.go b/internal/db/bundb/migrations/20240712005536_add_advanced_migrations.go index 183065285..f1c00b6dc 100644 --- a/internal/db/bundb/migrations/20240712005536_add_advanced_migrations.go +++ b/internal/db/bundb/migrations/20240712005536_add_advanced_migrations.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go b/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go index 9bf948bed..a3f3e1503 100644 --- a/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go +++ b/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go @@ -20,9 +20,9 @@ package migrations import ( "context" - old_gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements" - new_gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + old_gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements" + new_gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240722222556_remove_boost_content.go b/internal/db/bundb/migrations/20240722222556_remove_boost_content.go index a7764e2f7..c8a0eaf82 100644 --- a/internal/db/bundb/migrations/20240722222556_remove_boost_content.go +++ b/internal/db/bundb/migrations/20240722222556_remove_boost_content.go @@ -20,8 +20,8 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240725211933_add_followed_tags.go b/internal/db/bundb/migrations/20240725211933_add_followed_tags.go index f86b7d070..037f9b260 100644 --- a/internal/db/bundb/migrations/20240725211933_add_followed_tags.go +++ b/internal/db/bundb/migrations/20240725211933_add_followed_tags.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240809134448_interaction_requests_client_api.go b/internal/db/bundb/migrations/20240809134448_interaction_requests_client_api.go index a3fb8675e..391322f3e 100644 --- a/internal/db/bundb/migrations/20240809134448_interaction_requests_client_api.go +++ b/internal/db/bundb/migrations/20240809134448_interaction_requests_client_api.go @@ -20,8 +20,8 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240904084406_fedi_api_reject_interaction.go b/internal/db/bundb/migrations/20240904084406_fedi_api_reject_interaction.go index d3c0f49a4..74276a6f5 100644 --- a/internal/db/bundb/migrations/20240904084406_fedi_api_reject_interaction.go +++ b/internal/db/bundb/migrations/20240904084406_fedi_api_reject_interaction.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20240904084406_fedi_api_reject_interaction" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20240904084406_fedi_api_reject_interaction" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20240906144432_unauthed_visibility.go.go b/internal/db/bundb/migrations/20240906144432_unauthed_visibility.go.go index 473783790..4810a4fc3 100644 --- a/internal/db/bundb/migrations/20240906144432_unauthed_visibility.go.go +++ b/internal/db/bundb/migrations/20240906144432_unauthed_visibility.go.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20241011115713_pending_approval_fix.go b/internal/db/bundb/migrations/20241011115713_pending_approval_fix.go index c6d3e288f..fae74a3e9 100644 --- a/internal/db/bundb/migrations/20241011115713_pending_approval_fix.go +++ b/internal/db/bundb/migrations/20241011115713_pending_approval_fix.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20241018151036_filter_unique_fix.go b/internal/db/bundb/migrations/20241018151036_filter_unique_fix.go index f2ead0b92..c8fc7ecb2 100644 --- a/internal/db/bundb/migrations/20241018151036_filter_unique_fix.go +++ b/internal/db/bundb/migrations/20241018151036_filter_unique_fix.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20241022153016_domain_permission_draft_exclude.go b/internal/db/bundb/migrations/20241022153016_domain_permission_draft_exclude.go index 32485ec64..a5308a4ff 100644 --- a/internal/db/bundb/migrations/20241022153016_domain_permission_draft_exclude.go +++ b/internal/db/bundb/migrations/20241022153016_domain_permission_draft_exclude.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20241022153016_domain_permission_draft_exclude" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20241022153016_domain_permission_draft_exclude" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20241113151042_remove_mention_updated_at.go b/internal/db/bundb/migrations/20241113151042_remove_mention_updated_at.go index ba6e0bd3a..7ecdbcb5d 100644 --- a/internal/db/bundb/migrations/20241113151042_remove_mention_updated_at.go +++ b/internal/db/bundb/migrations/20241113151042_remove_mention_updated_at.go @@ -20,8 +20,8 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20241113152126_add_status_edits.go b/internal/db/bundb/migrations/20241113152126_add_status_edits.go index 5d4fb7b3e..64654ca30 100644 --- a/internal/db/bundb/migrations/20241113152126_add_status_edits.go +++ b/internal/db/bundb/migrations/20241113152126_add_status_edits.go @@ -21,8 +21,8 @@ import ( "context" "reflect" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20241113152126_add_status_edits" - "github.com/superseriousbusiness/gotosocial/internal/log" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20241113152126_add_status_edits" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20241113152126_add_status_edits/status.go b/internal/db/bundb/migrations/20241113152126_add_status_edits/status.go index 1b7d93f70..d9e1052a4 100644 --- a/internal/db/bundb/migrations/20241113152126_add_status_edits/status.go +++ b/internal/db/bundb/migrations/20241113152126_add_status_edits/status.go @@ -20,7 +20,7 @@ package gtsmodel import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Status represents a user-created 'post' or 'status' in the database, either remote or local diff --git a/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints.go b/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints.go index 113958437..532178f25 100644 --- a/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints.go +++ b/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints.go @@ -20,10 +20,10 @@ package migrations import ( "context" - old_gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints" - new_gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util" + old_gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints" + new_gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/accountsettings.go b/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/accountsettings.go index 9a9cfd8e1..7745f19b9 100644 --- a/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/accountsettings.go +++ b/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/accountsettings.go @@ -20,7 +20,7 @@ package gtsmodel import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // AccountSettings models settings / preferences for a local, non-instance account. diff --git a/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/notification.go b/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/notification.go index 77166a35d..318649073 100644 --- a/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/notification.go +++ b/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/notification.go @@ -20,7 +20,7 @@ package gtsmodel import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Notification models an alert/notification sent to an account about something like a reblog, like, new follow request, etc. diff --git a/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/status.go b/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/status.go index 38583c7fc..90f609d80 100644 --- a/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/status.go +++ b/internal/db/bundb/migrations/20241121121623_enum_strings_to_ints/status.go @@ -20,7 +20,7 @@ package gtsmodel import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Status represents a user-created 'post' or 'status' in the database, either remote or local diff --git a/internal/db/bundb/migrations/20241124012635_add_vapid_key_pairs.go b/internal/db/bundb/migrations/20241124012635_add_vapid_key_pairs.go index c1a32f6be..02382e271 100644 --- a/internal/db/bundb/migrations/20241124012635_add_vapid_key_pairs.go +++ b/internal/db/bundb/migrations/20241124012635_add_vapid_key_pairs.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20241124012636_add_web_push_subscriptions.go b/internal/db/bundb/migrations/20241124012636_add_web_push_subscriptions.go index 87d966903..c9b419c5c 100644 --- a/internal/db/bundb/migrations/20241124012636_add_web_push_subscriptions.go +++ b/internal/db/bundb/migrations/20241124012636_add_web_push_subscriptions.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20241203124608_remove_media_attachment_updated_at.go b/internal/db/bundb/migrations/20241203124608_remove_media_attachment_updated_at.go index 63e5d5f90..699f0c505 100644 --- a/internal/db/bundb/migrations/20241203124608_remove_media_attachment_updated_at.go +++ b/internal/db/bundb/migrations/20241203124608_remove_media_attachment_updated_at.go @@ -20,8 +20,8 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250106114512_replace_statuses_updatedat_with_editedat.go b/internal/db/bundb/migrations/20250106114512_replace_statuses_updatedat_with_editedat.go index fa28c7ce3..8b362c96d 100644 --- a/internal/db/bundb/migrations/20250106114512_replace_statuses_updatedat_with_editedat.go +++ b/internal/db/bundb/migrations/20250106114512_replace_statuses_updatedat_with_editedat.go @@ -22,9 +22,9 @@ import ( "fmt" "reflect" - oldmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250106114512_replace_statuses_updatedat_with_editedat" - newmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + oldmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250106114512_replace_statuses_updatedat_with_editedat" + newmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20250106165529_cleanup_dropped_edits.go b/internal/db/bundb/migrations/20250106165529_cleanup_dropped_edits.go index cdc5db632..bb98bd3e4 100644 --- a/internal/db/bundb/migrations/20250106165529_cleanup_dropped_edits.go +++ b/internal/db/bundb/migrations/20250106165529_cleanup_dropped_edits.go @@ -22,9 +22,9 @@ import ( "fmt" "slices" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250119112745_domain_permission_subscriptions.go b/internal/db/bundb/migrations/20250119112745_domain_permission_subscriptions.go index 7d2bd085c..64473c814 100644 --- a/internal/db/bundb/migrations/20250119112745_domain_permission_subscriptions.go +++ b/internal/db/bundb/migrations/20250119112745_domain_permission_subscriptions.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20241022153016_domain_permission_subscriptions" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20241022153016_domain_permission_subscriptions" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250119112746_domain_perm_sub_caching_tweaks.go b/internal/db/bundb/migrations/20250119112746_domain_perm_sub_caching_tweaks.go index c37e4aa7f..5023e0379 100644 --- a/internal/db/bundb/migrations/20250119112746_domain_perm_sub_caching_tweaks.go +++ b/internal/db/bundb/migrations/20250119112746_domain_perm_sub_caching_tweaks.go @@ -22,8 +22,8 @@ import ( "fmt" "reflect" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250124164400_domain_perm_sub_migration_fix.go b/internal/db/bundb/migrations/20250124164400_domain_perm_sub_migration_fix.go index 5914c752a..50546cd42 100644 --- a/internal/db/bundb/migrations/20250124164400_domain_perm_sub_migration_fix.go +++ b/internal/db/bundb/migrations/20250124164400_domain_perm_sub_migration_fix.go @@ -20,7 +20,7 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20241022153016_domain_permission_subscriptions" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20241022153016_domain_permission_subscriptions" "github.com/uptrace/bun" ) @@ -30,7 +30,7 @@ import ( // which will be a noop in most cases, but will fix some issues for those who // were running snapshots between GtS v0.17.0 and GtS v0.18.0. // -// See https://github.com/superseriousbusiness/gotosocial/pull/3679. +// See https://codeberg.org/superseriousbusiness/gotosocial/pulls/3679. func init() { up := func(ctx context.Context, db *bun.DB) error { return db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error { diff --git a/internal/db/bundb/migrations/20250126162825_top_level_mention_replies_fix.go b/internal/db/bundb/migrations/20250126162825_top_level_mention_replies_fix.go index 0b198f17b..5ca4a054b 100644 --- a/internal/db/bundb/migrations/20250126162825_top_level_mention_replies_fix.go +++ b/internal/db/bundb/migrations/20250126162825_top_level_mention_replies_fix.go @@ -20,8 +20,8 @@ package migrations import ( "context" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20250131184755_add_web_push_subscription_policy.go b/internal/db/bundb/migrations/20250131184755_add_web_push_subscription_policy.go index d833a669f..b849e850b 100644 --- a/internal/db/bundb/migrations/20250131184755_add_web_push_subscription_policy.go +++ b/internal/db/bundb/migrations/20250131184755_add_web_push_subscription_policy.go @@ -22,7 +22,7 @@ import ( "reflect" "strings" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/migrations/20250224105654_token_app_client_refactor.go b/internal/db/bundb/migrations/20250224105654_token_app_client_refactor.go index 4ceef0808..68fbbb151 100644 --- a/internal/db/bundb/migrations/20250224105654_token_app_client_refactor.go +++ b/internal/db/bundb/migrations/20250224105654_token_app_client_refactor.go @@ -20,10 +20,10 @@ package migrations import ( "context" - oldmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20211113114307_init" - newmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250224105654_token_app_client_refactor" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" + oldmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20211113114307_init" + newmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250224105654_token_app_client_refactor" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250226013442_add_status_content_type.go b/internal/db/bundb/migrations/20250226013442_add_status_content_type.go index ba9584ac2..684341ebc 100644 --- a/internal/db/bundb/migrations/20250226013442_add_status_content_type.go +++ b/internal/db/bundb/migrations/20250226013442_add_status_content_type.go @@ -21,7 +21,7 @@ import ( "context" "reflect" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250226013442_add_status_content_type" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250226013442_add_status_content_type" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250226013442_add_status_content_type/status.go b/internal/db/bundb/migrations/20250226013442_add_status_content_type/status.go index 93b747a62..cebf9cb85 100644 --- a/internal/db/bundb/migrations/20250226013442_add_status_content_type/status.go +++ b/internal/db/bundb/migrations/20250226013442_add_status_content_type/status.go @@ -20,7 +20,7 @@ package gtsmodel import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Status represents a user-created 'post' or 'status' in the database, either remote or local diff --git a/internal/db/bundb/migrations/20250226013442_add_status_content_type/statusedit.go b/internal/db/bundb/migrations/20250226013442_add_status_content_type/statusedit.go index c69e6ea7a..01e14e61a 100644 --- a/internal/db/bundb/migrations/20250226013442_add_status_content_type/statusedit.go +++ b/internal/db/bundb/migrations/20250226013442_add_status_content_type/statusedit.go @@ -20,7 +20,7 @@ package gtsmodel import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // StatusEdit represents a **historical** view of a Status diff --git a/internal/db/bundb/migrations/20250305205820_content_warning_fixes.go b/internal/db/bundb/migrations/20250305205820_content_warning_fixes.go index cf4de834c..4f6237026 100644 --- a/internal/db/bundb/migrations/20250305205820_content_warning_fixes.go +++ b/internal/db/bundb/migrations/20250305205820_content_warning_fixes.go @@ -22,8 +22,8 @@ import ( "fmt" "reflect" - newmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250305205820_content_warning_fixes" - "github.com/superseriousbusiness/gotosocial/internal/log" + newmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250305205820_content_warning_fixes" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250310094108_statuses_count_query_optimize.go b/internal/db/bundb/migrations/20250310094108_statuses_count_query_optimize.go index b20340f32..80ce409ce 100644 --- a/internal/db/bundb/migrations/20250310094108_statuses_count_query_optimize.go +++ b/internal/db/bundb/migrations/20250310094108_statuses_count_query_optimize.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250310144102_application_management.go b/internal/db/bundb/migrations/20250310144102_application_management.go index e20cd2921..3b5fb6a4d 100644 --- a/internal/db/bundb/migrations/20250310144102_application_management.go +++ b/internal/db/bundb/migrations/20250310144102_application_management.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/config" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250314120945_add_gallery_web_layout.go b/internal/db/bundb/migrations/20250314120945_add_gallery_web_layout.go index 64b133cd5..a2418ddf8 100644 --- a/internal/db/bundb/migrations/20250314120945_add_gallery_web_layout.go +++ b/internal/db/bundb/migrations/20250314120945_add_gallery_web_layout.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250318093828_statuses_public_timeline_reindex.go b/internal/db/bundb/migrations/20250318093828_statuses_public_timeline_reindex.go index f1f5b71b4..37bcc6ff9 100644 --- a/internal/db/bundb/migrations/20250318093828_statuses_public_timeline_reindex.go +++ b/internal/db/bundb/migrations/20250318093828_statuses_public_timeline_reindex.go @@ -20,7 +20,7 @@ package migrations import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness.go b/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness.go index acc37529d..7be070bee 100644 --- a/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness.go +++ b/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness.go @@ -23,11 +23,12 @@ import ( "fmt" "strings" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - new_gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/new" - old_gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/old" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + new_gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/new" + old_gtsmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/old" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" @@ -188,13 +189,27 @@ func init() { for _, oldAccount := range oldAccounts { var actorType new_gtsmodel.AccountActorType - if oldAccount.Domain == "" && oldAccount.Username == host { + switch { + + case oldAccount.Domain != "": + // Not our account, just parse new actor type. + actorType = new_gtsmodel.ParseAccountActorType(oldAccount.ActorType) + + case oldAccount.Username == host: // This is our instance account, override actor // type to Service, as previously it was just person. actorType = new_gtsmodel.AccountActorTypeService - } else { - // Not our instance account, just parse new actor type. - actorType = new_gtsmodel.ParseAccountActorType(oldAccount.ActorType) + + default: + // Not our instance account. Use old + // *Bot flag to determine actor type. + if util.PtrOrZero(oldAccount.Bot) { + // It's a bot. + actorType = new_gtsmodel.AccountActorTypeApplication + } else { + // Just normal men, just innocent men. + actorType = new_gtsmodel.AccountActorTypePerson + } } if actorType == new_gtsmodel.AccountActorTypeUnknown { diff --git a/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/new/account.go b/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/new/account.go index 55fa7f1b4..0fb891813 100644 --- a/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/new/account.go +++ b/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/new/account.go @@ -22,7 +22,7 @@ import ( "strings" "time" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/common" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/common" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/old/account.go b/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/old/account.go index a630805d4..549691c89 100644 --- a/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/old/account.go +++ b/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/old/account.go @@ -21,7 +21,7 @@ import ( "crypto/rsa" "time" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/common" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250321131230_relax_account_uri_uniqueness/common" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/20250324173534_2fa.go b/internal/db/bundb/migrations/20250324173534_2fa.go index 64393ee94..b7bdcbeae 100644 --- a/internal/db/bundb/migrations/20250324173534_2fa.go +++ b/internal/db/bundb/migrations/20250324173534_2fa.go @@ -22,8 +22,8 @@ import ( "fmt" "reflect" - newmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20250324173534_2fa" - "github.com/superseriousbusiness/gotosocial/internal/log" + newmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250324173534_2fa" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/migrations/util.go b/internal/db/bundb/migrations/util.go index b8a60417d..3219a8aa7 100644 --- a/internal/db/bundb/migrations/util.go +++ b/internal/db/bundb/migrations/util.go @@ -26,10 +26,10 @@ import ( "strconv" "strings" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-byteutil" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" "github.com/uptrace/bun/dialect/feature" diff --git a/internal/db/bundb/move.go b/internal/db/bundb/move.go index 23e5c6d27..0d0f24101 100644 --- a/internal/db/bundb/move.go +++ b/internal/db/bundb/move.go @@ -24,10 +24,10 @@ import ( "net/url" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/move_test.go b/internal/db/bundb/move_test.go index 1e1a0613f..c3e0dce3d 100644 --- a/internal/db/bundb/move_test.go +++ b/internal/db/bundb/move_test.go @@ -22,9 +22,9 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type MoveTestSuite struct { diff --git a/internal/db/bundb/notification.go b/internal/db/bundb/notification.go index d4f8799bd..77d4861b2 100644 --- a/internal/db/bundb/notification.go +++ b/internal/db/bundb/notification.go @@ -22,14 +22,14 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/notification_test.go b/internal/db/bundb/notification_test.go index 8cc778071..a6dcdd407 100644 --- a/internal/db/bundb/notification_test.go +++ b/internal/db/bundb/notification_test.go @@ -23,13 +23,13 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" ) func (suite *NotificationTestSuite) spamNotifs() { diff --git a/internal/db/bundb/poll.go b/internal/db/bundb/poll.go index d21945377..e0989e571 100644 --- a/internal/db/bundb/poll.go +++ b/internal/db/bundb/poll.go @@ -22,13 +22,13 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/poll_test.go b/internal/db/bundb/poll_test.go index 8af9295d9..04c8609e8 100644 --- a/internal/db/bundb/poll_test.go +++ b/internal/db/bundb/poll_test.go @@ -24,11 +24,11 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type PollTestSuite struct { diff --git a/internal/db/bundb/relationship.go b/internal/db/bundb/relationship.go index 69b91f161..c8dcd5a50 100644 --- a/internal/db/bundb/relationship.go +++ b/internal/db/bundb/relationship.go @@ -22,12 +22,12 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/relationship_block.go b/internal/db/bundb/relationship_block.go index 9578b0e3e..9724166df 100644 --- a/internal/db/bundb/relationship_block.go +++ b/internal/db/bundb/relationship_block.go @@ -22,12 +22,12 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/relationship_follow.go b/internal/db/bundb/relationship_follow.go index aea36f39c..f37efa94b 100644 --- a/internal/db/bundb/relationship_follow.go +++ b/internal/db/bundb/relationship_follow.go @@ -23,12 +23,12 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/relationship_follow_req.go b/internal/db/bundb/relationship_follow_req.go index f36d626ca..513f5abb0 100644 --- a/internal/db/bundb/relationship_follow_req.go +++ b/internal/db/bundb/relationship_follow_req.go @@ -23,12 +23,12 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/relationship_mute.go b/internal/db/bundb/relationship_mute.go index b7b7e109e..3b5601f49 100644 --- a/internal/db/bundb/relationship_mute.go +++ b/internal/db/bundb/relationship_mute.go @@ -22,13 +22,13 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/relationship_note.go b/internal/db/bundb/relationship_note.go index 5c75bcdd9..4f05f945a 100644 --- a/internal/db/bundb/relationship_note.go +++ b/internal/db/bundb/relationship_note.go @@ -21,9 +21,9 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/relationship_test.go b/internal/db/bundb/relationship_test.go index 7aa749c90..50f790a42 100644 --- a/internal/db/bundb/relationship_test.go +++ b/internal/db/bundb/relationship_test.go @@ -24,11 +24,11 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type RelationshipTestSuite struct { diff --git a/internal/db/bundb/report.go b/internal/db/bundb/report.go index 582584988..661cffc8d 100644 --- a/internal/db/bundb/report.go +++ b/internal/db/bundb/report.go @@ -23,13 +23,13 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/report_test.go b/internal/db/bundb/report_test.go index 57828890d..910a5c370 100644 --- a/internal/db/bundb/report_test.go +++ b/internal/db/bundb/report_test.go @@ -21,13 +21,13 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ReportTestSuite struct { diff --git a/internal/db/bundb/rule.go b/internal/db/bundb/rule.go index b20f869cf..774f603ff 100644 --- a/internal/db/bundb/rule.go +++ b/internal/db/bundb/rule.go @@ -22,12 +22,12 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/rule_test.go b/internal/db/bundb/rule_test.go index 822f92fca..deaf7c14c 100644 --- a/internal/db/bundb/rule_test.go +++ b/internal/db/bundb/rule_test.go @@ -21,10 +21,10 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" ) type RuleTestSuite struct { diff --git a/internal/db/bundb/search.go b/internal/db/bundb/search.go index e54cb78e7..0de0891b9 100644 --- a/internal/db/bundb/search.go +++ b/internal/db/bundb/search.go @@ -21,10 +21,10 @@ import ( "context" "strings" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/search_test.go b/internal/db/bundb/search_test.go index cf24b2881..5ce1a6064 100644 --- a/internal/db/bundb/search_test.go +++ b/internal/db/bundb/search_test.go @@ -21,8 +21,8 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" ) type SearchTestSuite struct { diff --git a/internal/db/bundb/session.go b/internal/db/bundb/session.go index 2177a57ae..1b06f18ee 100644 --- a/internal/db/bundb/session.go +++ b/internal/db/bundb/session.go @@ -22,8 +22,8 @@ import ( "crypto/rand" "io" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/sinbinstatus.go b/internal/db/bundb/sinbinstatus.go index dd2c17f67..c827a7040 100644 --- a/internal/db/bundb/sinbinstatus.go +++ b/internal/db/bundb/sinbinstatus.go @@ -22,9 +22,9 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/status.go b/internal/db/bundb/status.go index 8383a9c01..f33362a3d 100644 --- a/internal/db/bundb/status.go +++ b/internal/db/bundb/status.go @@ -22,13 +22,13 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/status_test.go b/internal/db/bundb/status_test.go index b64177c32..3ee494213 100644 --- a/internal/db/bundb/status_test.go +++ b/internal/db/bundb/status_test.go @@ -22,9 +22,9 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type StatusTestSuite struct { @@ -193,7 +193,7 @@ func (suite *StatusTestSuite) TestDeleteStatus() { // To run this test for postgres specifically, start a postgres container on localhost // and then run: // -// GTS_DB_TYPE=postgres GTS_DB_ADDRESS=localhost go test ./internal/db/bundb -run '^TestStatusTestSuite$' -testify.m '^(TestUpdateStatus)$' github.com/superseriousbusiness/gotosocial/internal/db/bundb +// GTS_DB_TYPE=postgres GTS_DB_ADDRESS=localhost go test ./internal/db/bundb -run '^TestStatusTestSuite$' -testify.m '^(TestUpdateStatus)$' code.superseriousbusiness.org/gotosocial/internal/db/bundb func (suite *StatusTestSuite) TestUpdateStatus() { // Take a copy of the status. targetStatus := >smodel.Status{} diff --git a/internal/db/bundb/statusbookmark.go b/internal/db/bundb/statusbookmark.go index 6cbd7f583..eebd4c10f 100644 --- a/internal/db/bundb/statusbookmark.go +++ b/internal/db/bundb/statusbookmark.go @@ -22,13 +22,13 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/statusbookmark_test.go b/internal/db/bundb/statusbookmark_test.go index 104b090fe..c2977fdfb 100644 --- a/internal/db/bundb/statusbookmark_test.go +++ b/internal/db/bundb/statusbookmark_test.go @@ -22,9 +22,9 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type StatusBookmarkTestSuite struct { diff --git a/internal/db/bundb/statusedit.go b/internal/db/bundb/statusedit.go index c932968fd..ed62c64f1 100644 --- a/internal/db/bundb/statusedit.go +++ b/internal/db/bundb/statusedit.go @@ -22,13 +22,13 @@ import ( "errors" "slices" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/statusedit_test.go b/internal/db/bundb/statusedit_test.go index b6a15e825..639e5ba9b 100644 --- a/internal/db/bundb/statusedit_test.go +++ b/internal/db/bundb/statusedit_test.go @@ -25,8 +25,8 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type StatusEditTestSuite struct { diff --git a/internal/db/bundb/statusfave.go b/internal/db/bundb/statusfave.go index c1fa375aa..e97c3751a 100644 --- a/internal/db/bundb/statusfave.go +++ b/internal/db/bundb/statusfave.go @@ -25,13 +25,13 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/statusfave_test.go b/internal/db/bundb/statusfave_test.go index 5d83369a6..88f10e146 100644 --- a/internal/db/bundb/statusfave_test.go +++ b/internal/db/bundb/statusfave_test.go @@ -22,9 +22,9 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type StatusFaveTestSuite struct { diff --git a/internal/db/bundb/tag.go b/internal/db/bundb/tag.go index dfb80e829..631e05f6c 100644 --- a/internal/db/bundb/tag.go +++ b/internal/db/bundb/tag.go @@ -23,12 +23,12 @@ import ( "slices" "strings" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/tag_test.go b/internal/db/bundb/tag_test.go index 3647c92de..62d6e8543 100644 --- a/internal/db/bundb/tag_test.go +++ b/internal/db/bundb/tag_test.go @@ -22,10 +22,10 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" ) type TagTestSuite struct { diff --git a/internal/db/bundb/thread.go b/internal/db/bundb/thread.go index 2b44b6fa5..cf2dbf924 100644 --- a/internal/db/bundb/thread.go +++ b/internal/db/bundb/thread.go @@ -21,9 +21,9 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/thread_test.go b/internal/db/bundb/thread_test.go index 4d14f73e2..d8b8d0b3b 100644 --- a/internal/db/bundb/thread_test.go +++ b/internal/db/bundb/thread_test.go @@ -21,8 +21,8 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type ThreadTestSuite struct { diff --git a/internal/db/bundb/timeline.go b/internal/db/bundb/timeline.go index 404cb6601..2c294165f 100644 --- a/internal/db/bundb/timeline.go +++ b/internal/db/bundb/timeline.go @@ -24,12 +24,12 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/timeline_test.go b/internal/db/bundb/timeline_test.go index 4988ab362..cda2c397f 100644 --- a/internal/db/bundb/timeline_test.go +++ b/internal/db/bundb/timeline_test.go @@ -22,13 +22,13 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-kv" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type TimelineTestSuite struct { diff --git a/internal/db/bundb/tombstone.go b/internal/db/bundb/tombstone.go index 773702323..4e31af4ec 100644 --- a/internal/db/bundb/tombstone.go +++ b/internal/db/bundb/tombstone.go @@ -20,9 +20,9 @@ package bundb import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/upsert.go b/internal/db/bundb/upsert.go index 4a6395179..9667766f4 100644 --- a/internal/db/bundb/upsert.go +++ b/internal/db/bundb/upsert.go @@ -23,7 +23,7 @@ import ( "reflect" "strings" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/user.go b/internal/db/bundb/user.go index fc8effa91..2800a32e9 100644 --- a/internal/db/bundb/user.go +++ b/internal/db/bundb/user.go @@ -21,10 +21,10 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/user_test.go b/internal/db/bundb/user_test.go index 870a1af91..f5ece561d 100644 --- a/internal/db/bundb/user_test.go +++ b/internal/db/bundb/user_test.go @@ -21,8 +21,8 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type UserTestSuite struct { diff --git a/internal/db/bundb/util.go b/internal/db/bundb/util.go index c7a2b96c2..6c743ffe9 100644 --- a/internal/db/bundb/util.go +++ b/internal/db/bundb/util.go @@ -23,10 +23,10 @@ import ( "slices" "strings" - "github.com/superseriousbusiness/gotosocial/internal/cache" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/cache" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) diff --git a/internal/db/bundb/webpush.go b/internal/db/bundb/webpush.go index c61209573..8d3510f30 100644 --- a/internal/db/bundb/webpush.go +++ b/internal/db/bundb/webpush.go @@ -21,12 +21,12 @@ import ( "context" "errors" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" webpushgo "github.com/SherClockHolmes/webpush-go" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) diff --git a/internal/db/bundb/workertask.go b/internal/db/bundb/workertask.go index eec51530d..1ac0cb71b 100644 --- a/internal/db/bundb/workertask.go +++ b/internal/db/bundb/workertask.go @@ -21,7 +21,7 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/uptrace/bun" ) diff --git a/internal/db/conversation.go b/internal/db/conversation.go index 3d0b4213e..eaf76bcd7 100644 --- a/internal/db/conversation.go +++ b/internal/db/conversation.go @@ -20,8 +20,8 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) type Conversation interface { diff --git a/internal/db/domain.go b/internal/db/domain.go index 95a2f0755..0c1fb97b3 100644 --- a/internal/db/domain.go +++ b/internal/db/domain.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Domain contains DB functions related to domains and domain blocks. diff --git a/internal/db/emoji.go b/internal/db/emoji.go index 26a881dbc..11a98de67 100644 --- a/internal/db/emoji.go +++ b/internal/db/emoji.go @@ -21,8 +21,8 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // EmojiAllDomains can be used as the `domain` value in a GetEmojis diff --git a/internal/db/filter.go b/internal/db/filter.go index eee61a99d..4962aa1de 100644 --- a/internal/db/filter.go +++ b/internal/db/filter.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Filter contains methods for creating, reading, updating, and deleting filters and their keyword and status entries. diff --git a/internal/db/headerfilter.go b/internal/db/headerfilter.go index 5fe8a5b17..4704f627f 100644 --- a/internal/db/headerfilter.go +++ b/internal/db/headerfilter.go @@ -21,7 +21,7 @@ import ( "context" "net/http" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type HeaderFilter interface { diff --git a/internal/db/instance.go b/internal/db/instance.go index 23a2fc8dc..9ac0a3439 100644 --- a/internal/db/instance.go +++ b/internal/db/instance.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Instance contains functions for instance-level actions (counting instance users etc.). diff --git a/internal/db/interaction.go b/internal/db/interaction.go index a3a3afde9..4e58e1db3 100644 --- a/internal/db/interaction.go +++ b/internal/db/interaction.go @@ -20,8 +20,8 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) type Interaction interface { diff --git a/internal/db/list.go b/internal/db/list.go index 4ce0ff988..e46442970 100644 --- a/internal/db/list.go +++ b/internal/db/list.go @@ -20,8 +20,8 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) type List interface { diff --git a/internal/db/marker.go b/internal/db/marker.go index 14502865b..803602a83 100644 --- a/internal/db/marker.go +++ b/internal/db/marker.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type Marker interface { diff --git a/internal/db/media.go b/internal/db/media.go index a41f8970a..a6b992b89 100644 --- a/internal/db/media.go +++ b/internal/db/media.go @@ -21,8 +21,8 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Media contains functions related to creating/getting/removing media attachments. diff --git a/internal/db/mention.go b/internal/db/mention.go index 994ec04b5..b53c45b8f 100644 --- a/internal/db/mention.go +++ b/internal/db/mention.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Mention contains functions for getting/creating mentions in the database. @@ -28,6 +28,9 @@ type Mention interface { // GetMention gets a single mention by ID GetMention(ctx context.Context, id string) (*gtsmodel.Mention, error) + // GetMentionByTargetAcctStatus returns a mention by targetAccountID and statusID. + GetMentionByTargetAcctStatus(ctx context.Context, targetAcctID string, statusID string) (*gtsmodel.Mention, error) + // GetMentions gets multiple mentions. GetMentions(ctx context.Context, ids []string) ([]*gtsmodel.Mention, error) diff --git a/internal/db/move.go b/internal/db/move.go index 42357627b..07a3019f3 100644 --- a/internal/db/move.go +++ b/internal/db/move.go @@ -21,7 +21,7 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type Move interface { diff --git a/internal/db/notification.go b/internal/db/notification.go index c608261dc..029a3bc62 100644 --- a/internal/db/notification.go +++ b/internal/db/notification.go @@ -20,8 +20,8 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Notification contains functions for creating and getting notifications. diff --git a/internal/db/poll.go b/internal/db/poll.go index 2b92bd4d7..6927db543 100644 --- a/internal/db/poll.go +++ b/internal/db/poll.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type Poll interface { diff --git a/internal/db/postgres/driver.go b/internal/db/postgres/driver.go index 994c9ffba..3fbd04c00 100644 --- a/internal/db/postgres/driver.go +++ b/internal/db/postgres/driver.go @@ -21,8 +21,8 @@ import ( "context" "database/sql/driver" + "code.superseriousbusiness.org/gotosocial/internal/db" pgx "github.com/jackc/pgx/v5/stdlib" - "github.com/superseriousbusiness/gotosocial/internal/db" ) var ( diff --git a/internal/db/postgres/errors.go b/internal/db/postgres/errors.go index cb8989a73..0c614599c 100644 --- a/internal/db/postgres/errors.go +++ b/internal/db/postgres/errors.go @@ -20,8 +20,8 @@ package postgres import ( "fmt" + "code.superseriousbusiness.org/gotosocial/internal/db" "github.com/jackc/pgx/v5/pgconn" - "github.com/superseriousbusiness/gotosocial/internal/db" ) // processPostgresError processes an error, replacing any diff --git a/internal/db/relationship.go b/internal/db/relationship.go index e121f07bd..b63e911e6 100644 --- a/internal/db/relationship.go +++ b/internal/db/relationship.go @@ -20,8 +20,8 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Relationship contains functions for getting or modifying the relationship between two accounts. diff --git a/internal/db/report.go b/internal/db/report.go index 605d6d80b..396d96050 100644 --- a/internal/db/report.go +++ b/internal/db/report.go @@ -20,8 +20,8 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Report handles getting/creation/deletion/updating of user reports/flags. diff --git a/internal/db/rule.go b/internal/db/rule.go index 651b8bced..eea6d4903 100644 --- a/internal/db/rule.go +++ b/internal/db/rule.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Rule handles getting/creation/deletion/updating of instance rules. diff --git a/internal/db/search.go b/internal/db/search.go index bdfd3a8e6..abe1bd70f 100644 --- a/internal/db/search.go +++ b/internal/db/search.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type Search interface { diff --git a/internal/db/session.go b/internal/db/session.go index 944fa4215..0f7a50807 100644 --- a/internal/db/session.go +++ b/internal/db/session.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Session handles getting/creation of router sessions. diff --git a/internal/db/sinbinstatus.go b/internal/db/sinbinstatus.go index 16abcf8bd..ab1d94382 100644 --- a/internal/db/sinbinstatus.go +++ b/internal/db/sinbinstatus.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type SinBinStatus interface { diff --git a/internal/db/sqlite/driver.go b/internal/db/sqlite/driver.go index 203edaff3..2c384718d 100644 --- a/internal/db/sqlite/driver.go +++ b/internal/db/sqlite/driver.go @@ -23,7 +23,7 @@ import ( "context" "database/sql/driver" - "github.com/superseriousbusiness/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db" sqlite3driver "github.com/ncruces/go-sqlite3/driver" _ "github.com/ncruces/go-sqlite3/embed" // embed wasm binary diff --git a/internal/db/sqlite/driver_moderncsqlite3.go b/internal/db/sqlite/driver_moderncsqlite3.go index 2ba11cea4..5f01f10e8 100644 --- a/internal/db/sqlite/driver_moderncsqlite3.go +++ b/internal/db/sqlite/driver_moderncsqlite3.go @@ -25,7 +25,7 @@ import ( "modernc.org/sqlite" - "github.com/superseriousbusiness/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db" ) // Driver is our own wrapper around the diff --git a/internal/db/sqlite/errors.go b/internal/db/sqlite/errors.go index 9429a1bcd..4f986aaf4 100644 --- a/internal/db/sqlite/errors.go +++ b/internal/db/sqlite/errors.go @@ -23,8 +23,8 @@ import ( "database/sql/driver" "fmt" + "code.superseriousbusiness.org/gotosocial/internal/db" "github.com/ncruces/go-sqlite3" - "github.com/superseriousbusiness/gotosocial/internal/db" ) // processSQLiteError processes an sqlite3.Error to diff --git a/internal/db/sqlite/errors_moderncsqlite3.go b/internal/db/sqlite/errors_moderncsqlite3.go index c490f514e..c01d0a3ae 100644 --- a/internal/db/sqlite/errors_moderncsqlite3.go +++ b/internal/db/sqlite/errors_moderncsqlite3.go @@ -26,7 +26,7 @@ import ( "modernc.org/sqlite" sqlite3 "modernc.org/sqlite/lib" - "github.com/superseriousbusiness/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db" ) // processSQLiteError processes an sqlite3.Error to diff --git a/internal/db/status.go b/internal/db/status.go index 6bf9653c8..adb31d391 100644 --- a/internal/db/status.go +++ b/internal/db/status.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Status contains functions for getting statuses, creating statuses, and checking various other fields on statuses. diff --git a/internal/db/statusbookmark.go b/internal/db/statusbookmark.go index d16bbcd7c..8e222caba 100644 --- a/internal/db/statusbookmark.go +++ b/internal/db/statusbookmark.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type StatusBookmark interface { diff --git a/internal/db/statusedit.go b/internal/db/statusedit.go index 32e770fb9..c25275c59 100644 --- a/internal/db/statusedit.go +++ b/internal/db/statusedit.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type StatusEdit interface { diff --git a/internal/db/statusfave.go b/internal/db/statusfave.go index 192ef436b..5c701bffb 100644 --- a/internal/db/statusfave.go +++ b/internal/db/statusfave.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type StatusFave interface { diff --git a/internal/db/tag.go b/internal/db/tag.go index 66c880e86..300d0b528 100644 --- a/internal/db/tag.go +++ b/internal/db/tag.go @@ -20,8 +20,8 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Tag contains functions for getting/creating tags in the database. diff --git a/internal/db/test/conversation.go b/internal/db/test/conversation.go index 50bca5308..5f221e05e 100644 --- a/internal/db/test/conversation.go +++ b/internal/db/test/conversation.go @@ -22,11 +22,11 @@ import ( "crypto/rand" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/oklog/ulid" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type testSuite interface { diff --git a/internal/db/thread.go b/internal/db/thread.go index dd494167a..d285c8ba3 100644 --- a/internal/db/thread.go +++ b/internal/db/thread.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Thread contains functions for getting/creating diff --git a/internal/db/timeline.go b/internal/db/timeline.go index 43ac655d0..f767a7314 100644 --- a/internal/db/timeline.go +++ b/internal/db/timeline.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Timeline contains functionality for retrieving home/public/faved etc timelines for an account. diff --git a/internal/db/tombstone.go b/internal/db/tombstone.go index 362b6747d..6a7fc2429 100644 --- a/internal/db/tombstone.go +++ b/internal/db/tombstone.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Tombstone contains functionality for storing + retrieving tombstones for remote AP Activities + Objects. diff --git a/internal/db/user.go b/internal/db/user.go index 28fa59130..c8f33ee44 100644 --- a/internal/db/user.go +++ b/internal/db/user.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // User contains functions related to user getting/setting/creation. diff --git a/internal/db/webpush.go b/internal/db/webpush.go index 22bf449de..04b281ce6 100644 --- a/internal/db/webpush.go +++ b/internal/db/webpush.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // WebPush contains functions related to Web Push notifications. diff --git a/internal/db/workertask.go b/internal/db/workertask.go index 0276f231a..ea16c4af1 100644 --- a/internal/db/workertask.go +++ b/internal/db/workertask.go @@ -20,7 +20,7 @@ package db import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type WorkerTask interface { diff --git a/internal/email/common.go b/internal/email/common.go index 68e3b429b..1d8a585ce 100644 --- a/internal/email/common.go +++ b/internal/email/common.go @@ -28,10 +28,10 @@ import ( "text/template" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/google/uuid" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/util" ) func (s *sender) sendTemplate(template string, subject string, data any, toAddresses ...string) error { diff --git a/internal/email/email_test.go b/internal/email/email_test.go index ce1ae177f..9087f7d09 100644 --- a/internal/email/email_test.go +++ b/internal/email/email_test.go @@ -21,10 +21,10 @@ import ( "regexp" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/testrig" ) type EmailTestSuite struct { diff --git a/internal/email/noopsender.go b/internal/email/noopsender.go index bd9b1206e..2702b3a8b 100644 --- a/internal/email/noopsender.go +++ b/internal/email/noopsender.go @@ -21,8 +21,8 @@ import ( "bytes" "text/template" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // NewNoopSender returns a no-op email sender that will just execute the given sendCallback diff --git a/internal/email/sender.go b/internal/email/sender.go index 2bcc6086f..2c7c79256 100644 --- a/internal/email/sender.go +++ b/internal/email/sender.go @@ -22,7 +22,7 @@ import ( "net/smtp" "text/template" - "github.com/superseriousbusiness/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/config" ) // Sender contains functions for sending emails to instance users/new signups. diff --git a/internal/federation/authenticate.go b/internal/federation/authenticate.go index 363568f8b..2355aaa03 100644 --- a/internal/federation/authenticate.go +++ b/internal/federation/authenticate.go @@ -28,17 +28,17 @@ import ( "net/url" "time" + "code.superseriousbusiness.org/activity/streams" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/httpsig" "codeberg.org/gruf/go-kv" - "codeberg.org/superseriousbusiness/activity/streams" - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - "codeberg.org/superseriousbusiness/httpsig" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" ) var ( diff --git a/internal/federation/clock.go b/internal/federation/clock.go index b0b1c24bd..d580c21bf 100644 --- a/internal/federation/clock.go +++ b/internal/federation/clock.go @@ -20,7 +20,7 @@ package federation import ( "time" - "codeberg.org/superseriousbusiness/activity/pub" + "code.superseriousbusiness.org/activity/pub" ) /* diff --git a/internal/federation/commonbehavior.go b/internal/federation/commonbehavior.go index b9e0efbb4..4c94f084f 100644 --- a/internal/federation/commonbehavior.go +++ b/internal/federation/commonbehavior.go @@ -21,8 +21,8 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) /* diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go index f882eb7c3..6c9afc665 100644 --- a/internal/federation/dereferencing/account.go +++ b/internal/federation/dereferencing/account.go @@ -24,18 +24,18 @@ import ( "net/url" "time" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/util" errorsv2 "codeberg.org/gruf/go-errors/v2" - "codeberg.org/superseriousbusiness/activity/pub" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // accountFresh returns true if the given account is diff --git a/internal/federation/dereferencing/account_test.go b/internal/federation/dereferencing/account_test.go index 4af885468..24ee16f82 100644 --- a/internal/federation/dereferencing/account_test.go +++ b/internal/federation/dereferencing/account_test.go @@ -31,15 +31,15 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/dereferencing" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AccountTestSuite struct { diff --git a/internal/federation/dereferencing/announce.go b/internal/federation/dereferencing/announce.go index eb949f159..5d83b48a9 100644 --- a/internal/federation/dereferencing/announce.go +++ b/internal/federation/dereferencing/announce.go @@ -22,11 +22,11 @@ import ( "errors" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // EnrichAnnounce enriches the given boost wrapper status diff --git a/internal/federation/dereferencing/authenticate.go b/internal/federation/dereferencing/authenticate.go index 7c5946202..db9e5ef71 100644 --- a/internal/federation/dereferencing/authenticate.go +++ b/internal/federation/dereferencing/authenticate.go @@ -20,7 +20,7 @@ package dereferencing import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // verifyAccountKeysOnUpdate verifies that account's public key hasn't changed on update from diff --git a/internal/federation/dereferencing/collection.go b/internal/federation/dereferencing/collection.go index 38f6aae9a..9ba0aad2c 100644 --- a/internal/federation/dereferencing/collection.go +++ b/internal/federation/dereferencing/collection.go @@ -21,10 +21,10 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // dereferenceCollectionPage returns the activitystreams Collection at the specified IRI, or an error if something goes wrong. diff --git a/internal/federation/dereferencing/dereferencer.go b/internal/federation/dereferencing/dereferencer.go index 5e7b2b9c0..94e0cf053 100644 --- a/internal/federation/dereferencing/dereferencer.go +++ b/internal/federation/dereferencing/dereferencer.go @@ -22,13 +22,13 @@ import ( "sync" "time" - "github.com/superseriousbusiness/gotosocial/internal/filter/interaction" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/filter/interaction" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // FreshnessWindow represents a duration in which a diff --git a/internal/federation/dereferencing/dereferencer_test.go b/internal/federation/dereferencing/dereferencer_test.go index 668f9aeaa..a97ada80a 100644 --- a/internal/federation/dereferencing/dereferencer_test.go +++ b/internal/federation/dereferencing/dereferencer_test.go @@ -18,19 +18,19 @@ package dereferencing_test import ( - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/dereferencing" + "code.superseriousbusiness.org/gotosocial/internal/filter/interaction" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" - "github.com/superseriousbusiness/gotosocial/internal/filter/interaction" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type DereferencerStandardTestSuite struct { diff --git a/internal/federation/dereferencing/emoji.go b/internal/federation/dereferencing/emoji.go index 0a117f762..fbe2e4d98 100644 --- a/internal/federation/dereferencing/emoji.go +++ b/internal/federation/dereferencing/emoji.go @@ -23,13 +23,13 @@ import ( "io" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // GetEmoji fetches the emoji with given shortcode, diff --git a/internal/federation/dereferencing/emoji_test.go b/internal/federation/dereferencing/emoji_test.go index 12965207c..3c77d5108 100644 --- a/internal/federation/dereferencing/emoji_test.go +++ b/internal/federation/dereferencing/emoji_test.go @@ -23,8 +23,8 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/media" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/media" ) type EmojiTestSuite struct { diff --git a/internal/federation/dereferencing/finger.go b/internal/federation/dereferencing/finger.go index d11950a1e..f0f79aee3 100644 --- a/internal/federation/dereferencing/finger.go +++ b/internal/federation/dereferencing/finger.go @@ -22,12 +22,12 @@ import ( "encoding/json" "net/url" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // fingerRemoteAccount performs a webfinger call for the diff --git a/internal/federation/dereferencing/instance.go b/internal/federation/dereferencing/instance.go index 66d0a21be..0a1caedb2 100644 --- a/internal/federation/dereferencing/instance.go +++ b/internal/federation/dereferencing/instance.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) func (d *Dereferencer) GetRemoteInstance(ctx context.Context, username string, remoteInstanceURI *url.URL) (*gtsmodel.Instance, error) { diff --git a/internal/federation/dereferencing/instance_test.go b/internal/federation/dereferencing/instance_test.go index c07490d4b..614e49035 100644 --- a/internal/federation/dereferencing/instance_test.go +++ b/internal/federation/dereferencing/instance_test.go @@ -22,9 +22,9 @@ import ( "net/url" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/testrig" ) type InstanceTestSuite struct { diff --git a/internal/federation/dereferencing/media.go b/internal/federation/dereferencing/media.go index 7fc9f9aef..776279572 100644 --- a/internal/federation/dereferencing/media.go +++ b/internal/federation/dereferencing/media.go @@ -22,11 +22,11 @@ import ( "io" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // GetMedia fetches the media at given remote URL by diff --git a/internal/federation/dereferencing/status.go b/internal/federation/dereferencing/status.go index d99bae15b..3a0a10333 100644 --- a/internal/federation/dereferencing/status.go +++ b/internal/federation/dereferencing/status.go @@ -25,17 +25,17 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" ) // statusFresh returns true if the given status is still @@ -670,9 +670,9 @@ func (d *Dereferencer) fetchStatusMentions( alreadyExists bool ) - // Search existing status for a mention already stored, + // Search existing status + db for a mention already stored, // else ensure new mention's target account is populated. - mention, alreadyExists, err = d.populateMentionTarget(ctx, + mention, alreadyExists, err = d.newOrExistingMention(ctx, requestUser, existing, mention, @@ -683,8 +683,8 @@ func (d *Dereferencer) fetchStatusMentions( } if alreadyExists { - // This mention was already attached - // to the status, use it and continue. + // This mention was already + // stored, use it and continue. status.Mentions[i] = mention status.MentionIDs[i] = mention.ID continue @@ -708,6 +708,7 @@ func (d *Dereferencer) fetchStatusMentions( mention.TargetAccountURL = mention.TargetAccount.URL mention.StatusID = status.ID mention.Status = status + mention.IsNew = true // Place the new mention into the database. if err := d.state.DB.PutMention(ctx, mention); err != nil { @@ -1291,14 +1292,15 @@ func (d *Dereferencer) handleStatusEdit( return cols, nil } -// populateMentionTarget tries to populate the given +// newOrExistingMention tries to populate the given // mention with the correct TargetAccount and (if not // yet set) TargetAccountURI, returning the populated // mention. // -// Will check on the existing status if the mention -// is already there and populated; if so, existing -// mention will be returned along with `true`. +// Will check on the existing status and in the db +// if the mention is already there and populated; +// if so, existing mention will be returned along +// with `true` to indicate that it already existed. // // Otherwise, this function will try to parse first // the Href of the mention, and then the namestring, @@ -1309,7 +1311,7 @@ func (d *Dereferencer) handleStatusEdit( // rather than a URI, but because some remotes do // silly things like only provide `@username` instead // of `@username@domain`, we try by URI first. -func (d *Dereferencer) populateMentionTarget( +func (d *Dereferencer) newOrExistingMention( ctx context.Context, requestUser string, existing *gtsmodel.Status, @@ -1322,11 +1324,13 @@ func (d *Dereferencer) populateMentionTarget( // Mentions can be created using `name` or `href`. // // Prefer `href` (TargetAccountURI), fall back to Name. - if mention.TargetAccountURI != "" { - - // Look for existing mention with target account's URI, if so use this. + switch { + case mention.TargetAccountURI != "": + // Look on the status for existing mention with target account's URI. existingMention, ok := existing.GetMentionByTargetURI(mention.TargetAccountURI) if ok && existingMention.ID != "" { + // Already populated + // mention, use this. return existingMention, true, nil } @@ -1351,8 +1355,25 @@ func (d *Dereferencer) populateMentionTarget( err := gtserror.Newf("failed to dereference account %s: %w", targetAccountURI, err) return nil, false, err } - } else { + // Look in the db for this existing mention. + existingMention, err = d.state.DB.GetMentionByTargetAcctStatus( + ctx, + mention.TargetAccount.ID, + existing.ID, + ) + if err != nil && !errors.Is(err, db.ErrNoEntries) { + err := gtserror.Newf("db error looking for existing mention: %w", err) + return nil, false, err + } + + if existingMention != nil { + // Already had stored + // mention, use this. + return existingMention, true, nil + } + + case mention.NameString != "": // Href wasn't set, extract the username and domain parts from namestring. username, domain, err := util.ExtractNamestringParts(mention.NameString) if err != nil { @@ -1360,9 +1381,11 @@ func (d *Dereferencer) populateMentionTarget( return nil, false, err } - // Look for existing mention with username domain target, if so use this. + // Look on the status for existing mention with username domain target. existingMention, ok := existing.GetMentionByUsernameDomain(username, domain) if ok && existingMention.ID != "" { + // Already populated + // mention, use this. return existingMention, true, nil } @@ -1392,11 +1415,34 @@ func (d *Dereferencer) populateMentionTarget( return nil, false, err } - // Look for existing mention with target account's URI, if so use this. + // Look on the status for existing mention with target account's URI. existingMention, ok = existing.GetMentionByTargetURI(mention.TargetAccountURI) if ok && existingMention.ID != "" { + // Already populated + // mention, use this. return existingMention, true, nil } + + // Look in the db for this existing mention. + existingMention, err = d.state.DB.GetMentionByTargetAcctStatus( + ctx, + mention.TargetAccount.ID, + existing.ID, + ) + if err != nil && !errors.Is(err, db.ErrNoEntries) { + err := gtserror.Newf("db error looking for existing mention: %w", err) + return nil, false, err + } + + if existingMention != nil { + // Already had stored + // mention, use this. + return existingMention, true, nil + } + + default: + const errText = "neither target uri nor namestring were set on mention, cannot process it" + return nil, false, gtserror.New(errText) } // At this point, mention.TargetAccountURI diff --git a/internal/federation/dereferencing/status_permitted.go b/internal/federation/dereferencing/status_permitted.go index 86d391a59..65251ed55 100644 --- a/internal/federation/dereferencing/status_permitted.go +++ b/internal/federation/dereferencing/status_permitted.go @@ -23,15 +23,15 @@ import ( "net/url" "time" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // isPermittedStatus returns whether the given status diff --git a/internal/federation/dereferencing/status_test.go b/internal/federation/dereferencing/status_test.go index 6bda5a9bc..6f9ee9359 100644 --- a/internal/federation/dereferencing/status_test.go +++ b/internal/federation/dereferencing/status_test.go @@ -23,14 +23,14 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/dereferencing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) // instantFreshness is the shortest possible freshness window. diff --git a/internal/federation/dereferencing/thread.go b/internal/federation/dereferencing/thread.go index e774d24d4..f9d6adb99 100644 --- a/internal/federation/dereferencing/thread.go +++ b/internal/federation/dereferencing/thread.go @@ -22,13 +22,13 @@ import ( "net/http" "net/url" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" - "codeberg.org/superseriousbusiness/activity/pub" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" ) // maxIter defines how many iterations of descendants or diff --git a/internal/federation/dereferencing/util.go b/internal/federation/dereferencing/util.go index 208117660..fa7c9a9ae 100644 --- a/internal/federation/dereferencing/util.go +++ b/internal/federation/dereferencing/util.go @@ -20,7 +20,7 @@ package dereferencing import ( "slices" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // getEmojiByShortcodeDomain searches input slice diff --git a/internal/federation/federatingactor.go b/internal/federation/federatingactor.go index 0bd6cdf28..56bc0a416 100644 --- a/internal/federation/federatingactor.go +++ b/internal/federation/federatingactor.go @@ -25,17 +25,17 @@ import ( "net/url" "slices" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" errorsv2 "codeberg.org/gruf/go-errors/v2" "codeberg.org/gruf/go-kv" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/uris" ) // federatingActor wraps the pub.FederatingActor diff --git a/internal/federation/federatingactor_test.go b/internal/federation/federatingactor_test.go index af12b409a..c08ddcbcf 100644 --- a/internal/federation/federatingactor_test.go +++ b/internal/federation/federatingactor_test.go @@ -26,13 +26,13 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/interaction" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/interaction" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FederatingActorTestSuite struct { diff --git a/internal/federation/federatingdb/accept.go b/internal/federation/federatingdb/accept.go index 39c099b79..273b9255f 100644 --- a/internal/federation/federatingdb/accept.go +++ b/internal/federation/federatingdb/accept.go @@ -23,16 +23,16 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" ) func (f *federatingDB) GetAccept( diff --git a/internal/federation/federatingdb/announce.go b/internal/federation/federatingdb/announce.go index 84aa3dad0..2d467ea8c 100644 --- a/internal/federation/federatingdb/announce.go +++ b/internal/federation/federatingdb/announce.go @@ -22,11 +22,11 @@ import ( "net/url" "slices" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (f *federatingDB) Announce(ctx context.Context, announce vocab.ActivityStreamsAnnounce) error { diff --git a/internal/federation/federatingdb/announce_test.go b/internal/federation/federatingdb/announce_test.go index 5dd4c441e..efb8c2381 100644 --- a/internal/federation/federatingdb/announce_test.go +++ b/internal/federation/federatingdb/announce_test.go @@ -21,11 +21,11 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" ) type AnnounceTestSuite struct { diff --git a/internal/federation/federatingdb/block.go b/internal/federation/federatingdb/block.go index 4f9132391..54da2030a 100644 --- a/internal/federation/federatingdb/block.go +++ b/internal/federation/federatingdb/block.go @@ -21,12 +21,12 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (f *federatingDB) Block(ctx context.Context, blockable vocab.ActivityStreamsBlock) error { diff --git a/internal/federation/federatingdb/create.go b/internal/federation/federatingdb/create.go index d43909e12..2cfbb1d4c 100644 --- a/internal/federation/federatingdb/create.go +++ b/internal/federation/federatingdb/create.go @@ -22,15 +22,15 @@ import ( "errors" "slices" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) // Create adds a new entry to the database which must be able to be diff --git a/internal/federation/federatingdb/create_test.go b/internal/federation/federatingdb/create_test.go index 0ca1c55bc..2061c6be1 100644 --- a/internal/federation/federatingdb/create_test.go +++ b/internal/federation/federatingdb/create_test.go @@ -23,13 +23,13 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type CreateTestSuite struct { diff --git a/internal/federation/federatingdb/db.go b/internal/federation/federatingdb/db.go index e246e2da5..539305204 100644 --- a/internal/federation/federatingdb/db.go +++ b/internal/federation/federatingdb/db.go @@ -21,15 +21,15 @@ import ( "context" "net/url" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/filter/interaction" + "code.superseriousbusiness.org/gotosocial/internal/filter/spam" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" "codeberg.org/gruf/go-cache/v3/simple" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/filter/interaction" - "github.com/superseriousbusiness/gotosocial/internal/filter/spam" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" ) // DB wraps the pub.Database interface with diff --git a/internal/federation/federatingdb/delete.go b/internal/federation/federatingdb/delete.go index c628bd2d1..fb967fce9 100644 --- a/internal/federation/federatingdb/delete.go +++ b/internal/federation/federatingdb/delete.go @@ -22,12 +22,12 @@ import ( "errors" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) // Delete removes the entry with the given id. diff --git a/internal/federation/federatingdb/federatingdb_test.go b/internal/federation/federatingdb/federatingdb_test.go index ee8f84e55..b8d2c513f 100644 --- a/internal/federation/federatingdb/federatingdb_test.go +++ b/internal/federation/federatingdb/federatingdb_test.go @@ -21,17 +21,17 @@ import ( "context" "time" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/federatingdb" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FederatingDBTestSuite struct { diff --git a/internal/federation/federatingdb/flag.go b/internal/federation/federatingdb/flag.go index 48e3eef07..1198e688a 100644 --- a/internal/federation/federatingdb/flag.go +++ b/internal/federation/federatingdb/flag.go @@ -21,13 +21,13 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" "github.com/miekg/dns" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" ) func (f *federatingDB) Flag(ctx context.Context, flaggable vocab.ActivityStreamsFlag) error { diff --git a/internal/federation/federatingdb/follow.go b/internal/federation/federatingdb/follow.go index 8db850e42..f8ae8c580 100644 --- a/internal/federation/federatingdb/follow.go +++ b/internal/federation/federatingdb/follow.go @@ -21,12 +21,12 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (f *federatingDB) Follow(ctx context.Context, followable vocab.ActivityStreamsFollow) error { diff --git a/internal/federation/federatingdb/followers.go b/internal/federation/federatingdb/followers.go index eb224960e..4f8aaf459 100644 --- a/internal/federation/federatingdb/followers.go +++ b/internal/federation/federatingdb/followers.go @@ -22,8 +22,8 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // Followers obtains the Followers Collection for an actor with the diff --git a/internal/federation/federatingdb/followers_test.go b/internal/federation/federatingdb/followers_test.go index f6297ec8c..2c40c0a8c 100644 --- a/internal/federation/federatingdb/followers_test.go +++ b/internal/federation/federatingdb/followers_test.go @@ -22,9 +22,9 @@ import ( "encoding/json" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FollowersTestSuite struct { diff --git a/internal/federation/federatingdb/following.go b/internal/federation/federatingdb/following.go index 793bdc9d5..6f65930bc 100644 --- a/internal/federation/federatingdb/following.go +++ b/internal/federation/federatingdb/following.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // Following obtains the Following Collection for an actor with the diff --git a/internal/federation/federatingdb/following_test.go b/internal/federation/federatingdb/following_test.go index 83d1a72b5..ff8c11160 100644 --- a/internal/federation/federatingdb/following_test.go +++ b/internal/federation/federatingdb/following_test.go @@ -22,9 +22,9 @@ import ( "encoding/json" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FollowingTestSuite struct { diff --git a/internal/federation/federatingdb/get.go b/internal/federation/federatingdb/get.go index e6d016688..92c2d1d8d 100644 --- a/internal/federation/federatingdb/get.go +++ b/internal/federation/federatingdb/get.go @@ -19,46 +19,91 @@ package federatingdb import ( "context" - "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // Get returns the database entry for the specified id. // // The library makes this call only after acquiring a lock first. +// +// Implementation notes: in GoToSocial this function should *only* +// be used for internal dereference calls. Everything coming from the +// outside goes via the handlers defined in internal/api/activitypub. +// +// Normally with go-fed this function would get used in lots of +// places for the side effect callback handlers, but since we override +// everything and handle side effects ourselves, the only two places +// this function actually ends up getting called are: +// +// - vendor/code.superseriousbusiness.org/activity/pub/side_effect_actor.go +// to get outbox actor inside the prepare function. +// - internal/transport/controller.go to try to shortcut deref a local item. +// +// It may be useful in future to add more matching here so that more +// stuff can be shortcutted by the dereferencer, saving HTTP calls. func (f *federatingDB) Get(ctx context.Context, id *url.URL) (value vocab.Type, err error) { log.DebugKV(ctx, "id", id) - switch { + // Ensure our host, for safety. + if id.Host != config.GetHost() { + return nil, gtserror.Newf("%s was not for our host", id.String()) + } - case uris.IsUserPath(id): - acct, err := f.state.DB.GetAccountByURI(ctx, id.String()) + if username, err := uris.ParseUserPath(id); err == nil && username != "" { + acct, err := f.state.DB.GetAccountByUsernameDomain(ctx, username, "") if err != nil { return nil, err } return f.converter.AccountToAS(ctx, acct) - case uris.IsStatusesPath(id): - status, err := f.state.DB.GetStatusByURI(ctx, id.String()) + } else if _, statusID, err := uris.ParseStatusesPath(id); err == nil && statusID != "" { + status, err := f.state.DB.GetStatusByID(ctx, statusID) if err != nil { return nil, err } return f.converter.StatusToAS(ctx, status) - case uris.IsFollowersPath(id): - return f.Followers(ctx, id) + } else if username, err := uris.ParseFollowersPath(id); err == nil && username != "" { + acct, err := f.state.DB.GetAccountByUsernameDomain(ctx, username, "") + if err != nil { + return nil, err + } - case uris.IsFollowingPath(id): - return f.Following(ctx, id) + acctURI, err := url.Parse(acct.URI) + if err != nil { + return nil, err + } - case uris.IsAcceptsPath(id): + return f.Followers(ctx, acctURI) + + } else if username, err := uris.ParseFollowingPath(id); err == nil && username != "" { + acct, err := f.state.DB.GetAccountByUsernameDomain(ctx, username, "") + if err != nil { + return nil, err + } + + acctURI, err := url.Parse(acct.URI) + if err != nil { + return nil, err + } + + return f.Following(ctx, acctURI) + + } else if uris.IsAcceptsPath(id) { return f.GetAccept(ctx, id) - - default: - return nil, fmt.Errorf("federatingDB: could not Get %s", id.String()) } + + // Nothing found, the caller + // will have to deal with this. + return nil, gtserror.Newf( + "not implemented for %s: %w", + id.String(), db.ErrNoEntries, + ) } diff --git a/internal/federation/federatingdb/inbox.go b/internal/federation/federatingdb/inbox.go index 8c5977074..2fb0ebad9 100644 --- a/internal/federation/federatingdb/inbox.go +++ b/internal/federation/federatingdb/inbox.go @@ -22,11 +22,11 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // InboxContains returns true if the OrderedCollection at 'inbox' diff --git a/internal/federation/federatingdb/inbox_test.go b/internal/federation/federatingdb/inbox_test.go index 36595ce04..d8c308a10 100644 --- a/internal/federation/federatingdb/inbox_test.go +++ b/internal/federation/federatingdb/inbox_test.go @@ -21,8 +21,8 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/testrig" ) type InboxTestSuite struct { diff --git a/internal/federation/federatingdb/like.go b/internal/federation/federatingdb/like.go index 90fce4c61..76ae19a52 100644 --- a/internal/federation/federatingdb/like.go +++ b/internal/federation/federatingdb/like.go @@ -22,13 +22,13 @@ import ( "errors" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (f *federatingDB) Like(ctx context.Context, likeable vocab.ActivityStreamsLike) error { diff --git a/internal/federation/federatingdb/liked.go b/internal/federation/federatingdb/liked.go index 4fa17e5b8..9db3341f1 100644 --- a/internal/federation/federatingdb/liked.go +++ b/internal/federation/federatingdb/liked.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) // Liked obtains the Liked Collection for an actor with the diff --git a/internal/federation/federatingdb/move.go b/internal/federation/federatingdb/move.go index 5e296a25d..2740d0de9 100644 --- a/internal/federation/federatingdb/move.go +++ b/internal/federation/federatingdb/move.go @@ -27,12 +27,12 @@ import ( "errors" "fmt" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (f *federatingDB) Move(ctx context.Context, move vocab.ActivityStreamsMove) error { diff --git a/internal/federation/federatingdb/move_test.go b/internal/federation/federatingdb/move_test.go index 5baaa2bdc..38a869f15 100644 --- a/internal/federation/federatingdb/move_test.go +++ b/internal/federation/federatingdb/move_test.go @@ -22,11 +22,11 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type MoveTestSuite struct { diff --git a/internal/federation/federatingdb/outbox.go b/internal/federation/federatingdb/outbox.go index 116dde56f..8098dfa34 100644 --- a/internal/federation/federatingdb/outbox.go +++ b/internal/federation/federatingdb/outbox.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) // GetOutbox returns the first ordered collection page of the outbox diff --git a/internal/federation/federatingdb/owns.go b/internal/federation/federatingdb/owns.go index 3da41dd61..7d08a877f 100644 --- a/internal/federation/federatingdb/owns.go +++ b/internal/federation/federatingdb/owns.go @@ -23,12 +23,12 @@ import ( "fmt" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // Owns returns true if the IRI belongs to this instance, and if diff --git a/internal/federation/federatingdb/reject.go b/internal/federation/federatingdb/reject.go index 186bb009a..1c657a5a9 100644 --- a/internal/federation/federatingdb/reject.go +++ b/internal/federation/federatingdb/reject.go @@ -22,15 +22,15 @@ import ( "errors" "time" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) func (f *federatingDB) Reject(ctx context.Context, reject vocab.ActivityStreamsReject) error { diff --git a/internal/federation/federatingdb/reject_test.go b/internal/federation/federatingdb/reject_test.go index b209232a0..28a46eaad 100644 --- a/internal/federation/federatingdb/reject_test.go +++ b/internal/federation/federatingdb/reject_test.go @@ -21,13 +21,13 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/testrig" ) type RejectTestSuite struct { diff --git a/internal/federation/federatingdb/undo.go b/internal/federation/federatingdb/undo.go index 9c7635846..0e7b5491c 100644 --- a/internal/federation/federatingdb/undo.go +++ b/internal/federation/federatingdb/undo.go @@ -22,14 +22,14 @@ import ( "errors" "fmt" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (f *federatingDB) Undo(ctx context.Context, undo vocab.ActivityStreamsUndo) error { diff --git a/internal/federation/federatingdb/update.go b/internal/federation/federatingdb/update.go index 2eac9ed04..94471c33a 100644 --- a/internal/federation/federatingdb/update.go +++ b/internal/federation/federatingdb/update.go @@ -21,14 +21,14 @@ import ( "context" "errors" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) // Update sets an existing entry to the database based on the value's diff --git a/internal/federation/federatingdb/update_test.go b/internal/federation/federatingdb/update_test.go new file mode 100644 index 000000000..3c2d54fc7 --- /dev/null +++ b/internal/federation/federatingdb/update_test.go @@ -0,0 +1,76 @@ +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, seehello <3 old friend <3 i loved u </3 :(( you stole my heart
" mdWithStrikethrough = "I have ~~mdae~~ made an error" mdWithStrikethroughExpected = "I have mdae made an error
Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial
" - mdWithLinkBasicExpected = "Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial" + mdWithLink = "Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial" + mdWithLinkExpected = "Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial
" + mdWithLinkBasicExpected = "Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial" mdObjectInCodeBlock = "@foss_satan@fossbros-anonymous.io this is how to mention a user\n```\n@the_mighty_zork hey bud! nice #ObjectOrientedProgramming software you've been writing lately! :rainbow:\n```\nhope that helps" mdObjectInCodeBlockExpected = "@foss_satan this is how to mention a user
@the_mighty_zork hey bud! nice #ObjectOrientedProgramming software you've been writing lately! :rainbow:\nhope that helps
" // Hashtags can be italicized but only with *, not _. @@ -125,7 +125,7 @@ func (suite *MarkdownTestSuite) TestParseWithHashtag() { suite.Equal(withHashtagExpected, formatted.HTML) } -// Regressiom test for https://github.com/superseriousbusiness/gotosocial/issues/3618 +// Regressiom test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3618 func (suite *MarkdownTestSuite) TestParseWithTamilHashtag() { formatted := suite.FromMarkdown(withTamilHashtag) suite.Equal(withTamilHashtagExpected, formatted.HTML) diff --git a/internal/text/minify.go b/internal/text/minify.go index da61bdcf9..3903b71e5 100644 --- a/internal/text/minify.go +++ b/internal/text/minify.go @@ -18,7 +18,7 @@ package text import ( - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/tdewolff/minify/v2" "github.com/tdewolff/minify/v2/html" ) diff --git a/internal/text/plain.go b/internal/text/plain.go index 17e2800ec..232a1b338 100644 --- a/internal/text/plain.go +++ b/internal/text/plain.go @@ -23,11 +23,11 @@ import ( gohtml "html" "strings" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/regexes" "codeberg.org/gruf/go-byteutil" "github.com/k3a/html2text" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/regexes" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" "github.com/yuin/goldmark/parser" diff --git a/internal/text/plain_test.go b/internal/text/plain_test.go index cb8f4677e..dbc675908 100644 --- a/internal/text/plain_test.go +++ b/internal/text/plain_test.go @@ -20,8 +20,8 @@ package text_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/text" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/text" ) const ( @@ -216,10 +216,10 @@ i will not be ashamed!`, }, { // Check newlines, links, lists still more or less readable as such. - html: "Hello everyone, after a week or two down the release candidate mines, we've emerged blinking into the light carrying with us #GoToSocial v0.18.0 Scroingly Sloth!
https://github.com/superseriousbusiness/gotosocial/releases/tag/v0.18.0
Please read the migration notes carefully for instructions on how to upgrade to this version. This version contains several very long migrations so you will need to be patient when upgrading, and backup your database first!!
Release highlights
instance-stats-mode setting, admins can now choose if and how their instance serves stats via the nodeinfo endpoints. Existing behavior from v0.17.0 is the default.prefers-color-scheme preference: there's now a light mode default theme to complement our trusty dark mode theme, and the theme will switch based on a visitor's prefers-color-scheme configuration. This applies to all page and profiles, with the exception of some custom themes. Works in the settings panel too!Thanks for reading! And seriously back up your database.
", + html: "Hello everyone, after a week or two down the release candidate mines, we've emerged blinking into the light carrying with us #GoToSocial v0.18.0 Scroingly Sloth!
https://codeberg.org/superseriousbusiness/gotosocial/releases/tag/v0.18.0
Please read the migration notes carefully for instructions on how to upgrade to this version. This version contains several very long migrations so you will need to be patient when upgrading, and backup your database first!!
Release highlights
instance-stats-mode setting, admins can now choose if and how their instance serves stats via the nodeinfo endpoints. Existing behavior from v0.17.0 is the default.prefers-color-scheme preference: there's now a light mode default theme to complement our trusty dark mode theme, and the theme will switch based on a visitor's prefers-color-scheme configuration. This applies to all page and profiles, with the exception of some custom themes. Works in the settings panel too!Thanks for reading! And seriously back up your database.
", expectedPlain: `Hello everyone, after a week or two down the release candidate mines, we've emerged blinking into the light carrying with us #GoToSocial@zlatko currently we used modernc/sqlite3 for our sqlite driver, but we've been experimenting with wasm sqlite, and will likely move to that permanently in future; in the meantime, both options are available (the latter with a build tag)
https://github.com/superseriousbusiness/gotosocial/pull/2863
`, + Content: `@zlatko currently we used modernc/sqlite3 for our sqlite driver, but we've been experimenting with wasm sqlite, and will likely move to that permanently in future; in the meantime, both options are available (the latter with a build tag)
https://codeberg.org/superseriousbusiness/gotosocial/pulls/2863
`, }, expectedFields: []string{ - "@zlatkoLatest graphs for #GoToSocial on Wasm sqlite3 with embedded Wasm ffmpeg, both running on Wazero, and configured with a 50MiB db cache target. This is the version we'll be releasing soonish, now we're happy with how we've tamed everything.
`, + Content: `Latest graphs for #GoToSocial on Wasm sqlite3 with embedded Wasm ffmpeg, both running on Wazero, and configured with a 50MiB db cache target. This is the version we'll be releasing soonish, now we're happy with how we've tamed everything.
`, Attachments: []*gtsmodel.MediaAttachment{ { Description: `Graph showing GtS using between 150-300 MiB of memory, steadily, over a few days.`, @@ -206,7 +206,7 @@ func TestFilterableText(t *testing.T) { }, expectedFields: []string{ "Nerd stuff", - "Latest graphs for #GoToSocialThis is the GoToSocial testrig. It doesn't federate or anything.
When the testrig is shut down, all data on it will be deleted.
Don't use this in production!
", ShortDescriptionText: "This is the GoToSocial testrig. It doesn't federate or anything.\n\nWhen the testrig is shut down, all data on it will be deleted.\n\nDon't use this in production!", - Description: "Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
Here's a fuller description of the GoToSocial testrig instance.
This instance is for testing purposes only. It doesn't federate at all. Go check out https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig and https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing
Users on this instance:
If you need to edit the models for the testrig, you can do so at internal/testmodels.go.
This is where a list of terms and conditions might go.
For example:
If you want to sign up on this instance, you oughta know that we:
password wherever possible.hi @admin here's some media for ya, @the_mighty_zork you might like this too
`, + "some unknown media included
", + URLMustParse("http://example.org/users/Some_User"), + []*url.URL{ + ap.PublicURI(), + }, + []*url.URL{ + URLMustParse("http://example.org/users/Some_User/followers"), + URLMustParse("http://localhost:8080/users/admin"), + URLMustParse("http://localhost:8080/users/the_mighty_zork"), + }, + true, + []vocab.ActivityStreamsMention{ + newAPMention( + URLMustParse("http://localhost:8080/users/admin"), + "@admin@localhost:8080", + ), + newAPMention( + URLMustParse("http://localhost:8080/users/the_mighty_zork"), + "@the_mighty_zork@localhost:8080", + ), + }, + nil, + nil, + ) + update := WrapAPNoteInUpdate( + URLMustParse("http://example.org/users/Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5/update1"), + URLMustParse("http://example.org/users/Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5"), + URLMustParse("http://example.org/users/Some_User"), + TimeMustParse("2023-11-02T12:46:25+02:00"), + remoteAccount2Status1Updated, + ) + updateSig, updateDigest, updateDate := GetSignatureForActivity( + update, + accounts["remote_account_2"].PublicKeyURI, + accounts["remote_account_2"].PrivateKey, + URLMustParse(accounts["local_account_1"].InboxURI), + ) + return map[string]ActivityWithSignature{ "dm_for_zork": { Activity: createDmForZork, @@ -3557,6 +3600,12 @@ func NewTestActivities(accounts map[string]*gtsmodel.Account) map[string]Activit DigestHeader: deleteForRemoteAccount3Digest, DateHeader: deleteForRemoteAccount3Date, }, + "remote_account_2_status_1_update": { + Activity: update, + SignatureHeader: updateSig, + DigestHeader: updateDigest, + DateHeader: updateDate, + }, } } @@ -5180,6 +5229,27 @@ func WrapAPNoteInCreate(createID *url.URL, createActor *url.URL, createPublished return create } +func WrapAPNoteInUpdate( + updateID *url.URL, + updateTarget *url.URL, + updateActor *url.URL, + updatePublished time.Time, + updateNote vocab.ActivityStreamsNote, +) vocab.ActivityStreamsUpdate { + update := streams.NewActivityStreamsUpdate() + + ap.SetJSONLDId(update, updateID) + ap.AppendTargetIRIs(update, updateTarget) + ap.AppendActorIRIs(update, updateActor) + ap.SetPublished(update, updatePublished) + + objectProp := streams.NewActivityStreamsObjectProperty() + objectProp.AppendActivityStreamsNote(updateNote) + update.SetActivityStreamsObject(objectProp) + + return update +} + func newAPAnnounce(announceID *url.URL, announceActor *url.URL, announcePublished time.Time, announceTo *url.URL, announceNote vocab.ActivityStreamsNote) vocab.ActivityStreamsAnnounce { announce := streams.NewActivityStreamsAnnounce() diff --git a/testrig/teststructs.go b/testrig/teststructs.go index f8eb1b3ed..edba34263 100644 --- a/testrig/teststructs.go +++ b/testrig/teststructs.go @@ -18,17 +18,17 @@ package testrig import ( - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/filter/interaction" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/filter/interaction" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // TestStructs encapsulates structs needed to diff --git a/testrig/transportcontroller.go b/testrig/transportcontroller.go index d66c71179..34ed35255 100644 --- a/testrig/transportcontroller.go +++ b/testrig/transportcontroller.go @@ -26,17 +26,17 @@ import ( "strings" "sync" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/transport" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/transport" ) const ( @@ -410,7 +410,7 @@ func NodeInfoResponse(req *http.Request) ( Software: apimodel.NodeInfoSoftware{ Name: "GoToSocial", Version: "1.3.1.2", - Repository: "https://github.com/superseriousbusiness/gotosocial", + Repository: "https://codeberg.org/superseriousbusiness/gotosocial", Homepage: "https://docs.gotosocial.org", }, Protocols: []string{"activitypub"}, @@ -421,7 +421,7 @@ func NodeInfoResponse(req *http.Request) ( Software: apimodel.NodeInfoSoftware{ Name: "GoToSocial", Version: "1.3.1.2", - Repository: "https://github.com/superseriousbusiness/gotosocial", + Repository: "https://codeberg.org/superseriousbusiness/gotosocial", Homepage: "https://docs.gotosocial.org", }, Protocols: []string{"activitypub"}, diff --git a/testrig/util.go b/testrig/util.go index a4bf1bea4..c4a1b0acc 100644 --- a/testrig/util.go +++ b/testrig/util.go @@ -28,16 +28,16 @@ import ( "path" "time" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" + tlprocessor "code.superseriousbusiness.org/gotosocial/internal/processing/timeline" + "code.superseriousbusiness.org/gotosocial/internal/processing/workers" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/timeline" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" "codeberg.org/gruf/go-byteutil" "codeberg.org/gruf/go-kv/format" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" - tlprocessor "github.com/superseriousbusiness/gotosocial/internal/processing/timeline" - "github.com/superseriousbusiness/gotosocial/internal/processing/workers" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/timeline" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" ) // Starts workers on the provided state using noop processing functions. diff --git a/testrig/webpush.go b/testrig/webpush.go index 4cd5d7a81..d4752ae90 100644 --- a/testrig/webpush.go +++ b/testrig/webpush.go @@ -20,9 +20,9 @@ package testrig import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/webpush" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/webpush" ) // WebPushMockSender collects a map of notifications sent to each account ID. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/LICENSE b/vendor/code.superseriousbusiness.org/activity/LICENSE similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/LICENSE rename to vendor/code.superseriousbusiness.org/activity/LICENSE diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/README.md b/vendor/code.superseriousbusiness.org/activity/pub/README.md similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/README.md rename to vendor/code.superseriousbusiness.org/activity/pub/README.md index bb9a49b05..37261e712 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/README.md +++ b/vendor/code.superseriousbusiness.org/activity/pub/README.md @@ -18,7 +18,7 @@ implement a few interfaces: ```golang import ( - "codeberg.org/superseriousbusiness/activity/pub" + "code.superseriousbusiness.org/activity/pub" ) type myActivityPubApp struct { /* ... */ } diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/activity.go b/vendor/code.superseriousbusiness.org/activity/pub/activity.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/activity.go rename to vendor/code.superseriousbusiness.org/activity/pub/activity.go index 8b3d5b486..35d667749 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/activity.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/activity.go @@ -1,7 +1,7 @@ package pub import ( - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // Activity represents any ActivityStreams Activity type. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/actor.go b/vendor/code.superseriousbusiness.org/activity/pub/actor.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/actor.go rename to vendor/code.superseriousbusiness.org/activity/pub/actor.go index a9b19d1c1..860325f5d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/actor.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/actor.go @@ -5,7 +5,7 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // Actor represents ActivityPub's actor concept. It conceptually has an inbox diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/base_actor.go b/vendor/code.superseriousbusiness.org/activity/pub/base_actor.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/base_actor.go rename to vendor/code.superseriousbusiness.org/activity/pub/base_actor.go index c509383d6..248fbd361 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/base_actor.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/base_actor.go @@ -7,8 +7,8 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) // baseActor must satisfy the Actor interface. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/clock.go b/vendor/code.superseriousbusiness.org/activity/pub/clock.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/clock.go rename to vendor/code.superseriousbusiness.org/activity/pub/clock.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/common_behavior.go b/vendor/code.superseriousbusiness.org/activity/pub/common_behavior.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/common_behavior.go rename to vendor/code.superseriousbusiness.org/activity/pub/common_behavior.go index e33dce842..aaa6cf8b2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/common_behavior.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/common_behavior.go @@ -5,7 +5,7 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // Common contains functions required for both the Social API and Federating diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/database.go b/vendor/code.superseriousbusiness.org/activity/pub/database.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/database.go rename to vendor/code.superseriousbusiness.org/activity/pub/database.go index 5e25455d5..af7756c34 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/database.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/database.go @@ -4,7 +4,7 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) type Database interface { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/delegate_actor.go b/vendor/code.superseriousbusiness.org/activity/pub/delegate_actor.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/delegate_actor.go rename to vendor/code.superseriousbusiness.org/activity/pub/delegate_actor.go index 0250f62ee..28a225b24 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/delegate_actor.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/delegate_actor.go @@ -5,7 +5,7 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // DelegateActor contains the detailed interface an application must satisfy in diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/doc.go b/vendor/code.superseriousbusiness.org/activity/pub/doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/doc.go rename to vendor/code.superseriousbusiness.org/activity/pub/doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_protocol.go b/vendor/code.superseriousbusiness.org/activity/pub/federating_protocol.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/federating_protocol.go rename to vendor/code.superseriousbusiness.org/activity/pub/federating_protocol.go index 62bcf44c1..302e4f5ca 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_protocol.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/federating_protocol.go @@ -5,7 +5,7 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // FederatingProtocol contains behaviors an application needs to satisfy for the diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_wrapped_callbacks.go b/vendor/code.superseriousbusiness.org/activity/pub/federating_wrapped_callbacks.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/federating_wrapped_callbacks.go rename to vendor/code.superseriousbusiness.org/activity/pub/federating_wrapped_callbacks.go index 9af4f86f1..8a8f32aaa 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_wrapped_callbacks.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/federating_wrapped_callbacks.go @@ -5,8 +5,8 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) // OnFollowBehavior enumerates the different default actions that the go-fed diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/handlers.go b/vendor/code.superseriousbusiness.org/activity/pub/handlers.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/handlers.go rename to vendor/code.superseriousbusiness.org/activity/pub/handlers.go index 688b8158f..53c44c6fc 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/handlers.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/handlers.go @@ -7,7 +7,7 @@ import ( "fmt" "net/http" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" ) var ErrNotFound = errors.New("go-fed/activity: ActivityStreams data not found") diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/property_interfaces.go b/vendor/code.superseriousbusiness.org/activity/pub/property_interfaces.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/property_interfaces.go rename to vendor/code.superseriousbusiness.org/activity/pub/property_interfaces.go index abec7ad53..3da014c70 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/property_interfaces.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/property_interfaces.go @@ -3,7 +3,7 @@ package pub import ( "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // inReplyToer is an ActivityStreams type with an 'inReplyTo' property diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/side_effect_actor.go b/vendor/code.superseriousbusiness.org/activity/pub/side_effect_actor.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/side_effect_actor.go rename to vendor/code.superseriousbusiness.org/activity/pub/side_effect_actor.go index d98abfdb3..820dca403 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/side_effect_actor.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/side_effect_actor.go @@ -6,8 +6,8 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) // sideEffectActor must satisfy the DelegateActor interface. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/social_protocol.go b/vendor/code.superseriousbusiness.org/activity/pub/social_protocol.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/social_protocol.go rename to vendor/code.superseriousbusiness.org/activity/pub/social_protocol.go index 1f882b284..515947d15 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/social_protocol.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/social_protocol.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // SocialProtocol contains behaviors an application needs to satisfy for the diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/social_wrapped_callbacks.go b/vendor/code.superseriousbusiness.org/activity/pub/social_wrapped_callbacks.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/social_wrapped_callbacks.go rename to vendor/code.superseriousbusiness.org/activity/pub/social_wrapped_callbacks.go index 9f93a9c65..d1c53fcaf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/social_wrapped_callbacks.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/social_wrapped_callbacks.go @@ -5,8 +5,8 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) // SocialWrappedCallbacks lists the callback functions that already have some diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/transport.go b/vendor/code.superseriousbusiness.org/activity/pub/transport.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/transport.go rename to vendor/code.superseriousbusiness.org/activity/pub/transport.go index 101ff5c07..b74bfedbf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/transport.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/transport.go @@ -11,7 +11,7 @@ import ( "strings" "sync" - "github.com/go-fed/httpsig" + "code.superseriousbusiness.org/httpsig" ) const ( diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/util.go b/vendor/code.superseriousbusiness.org/activity/pub/util.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/util.go rename to vendor/code.superseriousbusiness.org/activity/pub/util.go index 1a5ea7640..dc78bb964 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/util.go +++ b/vendor/code.superseriousbusiness.org/activity/pub/util.go @@ -14,8 +14,8 @@ import ( "strings" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) var ( diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/version.go b/vendor/code.superseriousbusiness.org/activity/pub/version.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/pub/version.go rename to vendor/code.superseriousbusiness.org/activity/pub/version.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/README.md b/vendor/code.superseriousbusiness.org/activity/streams/README.md similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/README.md rename to vendor/code.superseriousbusiness.org/activity/streams/README.md diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_consts.go similarity index 92% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_consts.go index 3bda64dc7..4c40dabb3 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_consts.go @@ -20,6 +20,12 @@ var ActivityStreamsAnnounceName string = "Announce" // GoToSocialAnnounceApprovalName is the string literal of the name for the AnnounceApproval type in the GoToSocial vocabulary. var GoToSocialAnnounceApprovalName string = "AnnounceApproval" +// GoToSocialAnnounceAuthorizationName is the string literal of the name for the AnnounceAuthorization type in the GoToSocial vocabulary. +var GoToSocialAnnounceAuthorizationName string = "AnnounceAuthorization" + +// GoToSocialAnnounceRequestName is the string literal of the name for the AnnounceRequest type in the GoToSocial vocabulary. +var GoToSocialAnnounceRequestName string = "AnnounceRequest" + // ActivityStreamsApplicationName is the string literal of the name for the Application type in the ActivityStreams vocabulary. var ActivityStreamsApplicationName string = "Application" @@ -44,6 +50,9 @@ var GoToSocialCanAnnounceName string = "CanAnnounce" // GoToSocialCanLikeName is the string literal of the name for the CanLike type in the GoToSocial vocabulary. var GoToSocialCanLikeName string = "CanLike" +// GoToSocialCanQuoteName is the string literal of the name for the CanQuote type in the GoToSocial vocabulary. +var GoToSocialCanQuoteName string = "CanQuote" + // GoToSocialCanReplyName is the string literal of the name for the CanReply type in the GoToSocial vocabulary. var GoToSocialCanReplyName string = "CanReply" @@ -119,6 +128,12 @@ var ActivityStreamsLikeName string = "Like" // GoToSocialLikeApprovalName is the string literal of the name for the LikeApproval type in the GoToSocial vocabulary. var GoToSocialLikeApprovalName string = "LikeApproval" +// GoToSocialLikeAuthorizationName is the string literal of the name for the LikeAuthorization type in the GoToSocial vocabulary. +var GoToSocialLikeAuthorizationName string = "LikeAuthorization" + +// GoToSocialLikeRequestName is the string literal of the name for the LikeRequest type in the GoToSocial vocabulary. +var GoToSocialLikeRequestName string = "LikeRequest" + // ActivityStreamsLinkName is the string literal of the name for the Link type in the ActivityStreams vocabulary. var ActivityStreamsLinkName string = "Link" @@ -185,6 +200,12 @@ var ActivityStreamsRemoveName string = "Remove" // GoToSocialReplyApprovalName is the string literal of the name for the ReplyApproval type in the GoToSocial vocabulary. var GoToSocialReplyApprovalName string = "ReplyApproval" +// GoToSocialReplyAuthorizationName is the string literal of the name for the ReplyAuthorization type in the GoToSocial vocabulary. +var GoToSocialReplyAuthorizationName string = "ReplyAuthorization" + +// GoToSocialReplyRequestName is the string literal of the name for the ReplyRequest type in the GoToSocial vocabulary. +var GoToSocialReplyRequestName string = "ReplyRequest" + // ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary. var ActivityStreamsServiceName string = "Service" @@ -248,6 +269,9 @@ var ActivityStreamsAttributedToPropertyName string = "attributedTo" // ActivityStreamsAudiencePropertyName is the string literal of the name for the audience property in the ActivityStreams vocabulary. var ActivityStreamsAudiencePropertyName string = "audience" +// GoToSocialAutomaticApprovalPropertyName is the string literal of the name for the automaticApproval property in the GoToSocial vocabulary. +var GoToSocialAutomaticApprovalPropertyName string = "automaticApproval" + // ActivityStreamsBccPropertyName is the string literal of the name for the bcc property in the ActivityStreams vocabulary. var ActivityStreamsBccPropertyName string = "bcc" @@ -263,6 +287,9 @@ var GoToSocialCanAnnouncePropertyName string = "canAnnounce" // GoToSocialCanLikePropertyName is the string literal of the name for the canLike property in the GoToSocial vocabulary. var GoToSocialCanLikePropertyName string = "canLike" +// GoToSocialCanQuotePropertyName is the string literal of the name for the canQuote property in the GoToSocial vocabulary. +var GoToSocialCanQuotePropertyName string = "canQuote" + // GoToSocialCanReplyPropertyName is the string literal of the name for the canReply property in the GoToSocial vocabulary. var GoToSocialCanReplyPropertyName string = "canReply" @@ -308,6 +335,9 @@ var TootFeaturedPropertyName string = "featured" // ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary. var ActivityStreamsFirstPropertyName string = "first" +// TootFocalPointPropertyName is the string literal of the name for the focalPoint property in the Toot vocabulary. +var TootFocalPointPropertyName string = "focalPoint" + // ActivityStreamsFollowersPropertyName is the string literal of the name for the followers property in the ActivityStreams vocabulary. var ActivityStreamsFollowersPropertyName string = "followers" @@ -341,12 +371,21 @@ var ActivityStreamsInReplyToPropertyName string = "inReplyTo" // ActivityStreamsInboxPropertyName is the string literal of the name for the inbox property in the ActivityStreams vocabulary. var ActivityStreamsInboxPropertyName string = "inbox" +// TootIndexablePropertyName is the string literal of the name for the indexable property in the Toot vocabulary. +var TootIndexablePropertyName string = "indexable" + // ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary. var ActivityStreamsInstrumentPropertyName string = "instrument" +// GoToSocialInteractingObjectPropertyName is the string literal of the name for the interactingObject property in the GoToSocial vocabulary. +var GoToSocialInteractingObjectPropertyName string = "interactingObject" + // GoToSocialInteractionPolicyPropertyName is the string literal of the name for the interactionPolicy property in the GoToSocial vocabulary. var GoToSocialInteractionPolicyPropertyName string = "interactionPolicy" +// GoToSocialInteractionTargetPropertyName is the string literal of the name for the interactionTarget property in the GoToSocial vocabulary. +var GoToSocialInteractionTargetPropertyName string = "interactionTarget" + // ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary. var ActivityStreamsItemsPropertyName string = "items" @@ -368,6 +407,9 @@ var ActivityStreamsLocationPropertyName string = "location" // ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary. var ActivityStreamsLongitudePropertyName string = "longitude" +// GoToSocialManualApprovalPropertyName is the string literal of the name for the manualApproval property in the GoToSocial vocabulary. +var GoToSocialManualApprovalPropertyName string = "manualApproval" + // ActivityStreamsManuallyApprovesFollowersPropertyName is the string literal of the name for the manuallyApprovesFollowers property in the ActivityStreams vocabulary. var ActivityStreamsManuallyApprovesFollowersPropertyName string = "manuallyApprovesFollowers" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_doc.go diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_init.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_init.go new file mode 100644 index 000000000..ecc0b4d86 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_init.go @@ -0,0 +1,457 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyaccuracy "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy" + propertyactor "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor" + propertyalsoknownas "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas" + propertyaltitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude" + propertyanyof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof" + propertyattachment "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment" + propertyattributedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto" + propertyaudience "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience" + propertybcc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc" + propertybto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto" + propertycc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc" + propertyclosed "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed" + propertycontent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content" + propertycontext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context" + propertycurrent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current" + propertydeleted "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted" + propertydescribes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes" + propertyduration "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration" + propertyendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints" + propertyendtime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime" + propertyfirst "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first" + propertyfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers" + propertyfollowing "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following" + propertyformertype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype" + propertygenerator "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator" + propertyheight "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height" + propertyhref "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href" + propertyhreflang "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang" + propertyicon "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon" + propertyimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image" + propertyinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox" + propertyinreplyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto" + propertyinstrument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument" + propertyitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items" + propertylast "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last" + propertylatitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude" + propertyliked "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked" + propertylikes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes" + propertylocation "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location" + propertylongitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude" + propertymanuallyapprovesfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" + propertymediatype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype" + propertymovedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto" + propertyname "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name" + propertynext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next" + propertyobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object" + propertyoneof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof" + propertyordereditems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems" + propertyorigin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin" + propertyoutbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox" + propertypartof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof" + propertypreferredusername "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername" + propertyprev "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev" + propertypreview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview" + propertypublished "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published" + propertyradius "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius" + propertyrel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel" + propertyrelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship" + propertyreplies "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies" + propertyresult "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result" + propertysensitive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive" + propertysharedinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox" + propertyshares "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares" + propertysource "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source" + propertystartindex "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex" + propertystarttime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime" + propertystreams "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams" + propertysubject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject" + propertysummary "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary" + propertytag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag" + propertytarget "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target" + propertyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to" + propertytotalitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems" + propertyunits "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units" + propertyupdated "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated" + propertyurl "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url" + propertywidth "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + propertyalways "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always" + propertyapprovalrequired "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired" + propertyapprovedby "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby" + propertyautomaticapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval" + propertycanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce" + propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike" + propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote" + propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply" + propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject" + propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy" + propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget" + propertymanualapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval" + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + propertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/property_value" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + propertyblurhash "code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash" + propertydiscoverable "code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable" + propertyfeatured "code.superseriousbusiness.org/activity/streams/impl/toot/property_featured" + propertyfocalpoint "code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint" + propertyindexable "code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable" + propertysignaturealgorithm "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm" + propertysignaturevalue "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue" + propertyvoterscount "code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + propertyowner "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner" + propertypublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey" + propertypublickeypem "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" +) + +var mgr *Manager + +// init handles the 'magic' of creating a Manager and dependency-injecting it into +// every other code-generated package. This gives the implementations access +// to create any type needed to deserialize, without relying on the other +// specific concrete implementations. In order to replace a go-fed created +// type with your own, be sure to have the manager call your own +// implementation's deserialize functions instead of the built-in type. +// Finally, each implementation views the Manager as an interface with only a +// subset of funcitons available. This means this Manager implements the union +// of those interfaces. +func init() { + mgr = &Manager{} + propertyaccuracy.SetManager(mgr) + propertyactor.SetManager(mgr) + propertyalsoknownas.SetManager(mgr) + propertyaltitude.SetManager(mgr) + propertyanyof.SetManager(mgr) + propertyattachment.SetManager(mgr) + propertyattributedto.SetManager(mgr) + propertyaudience.SetManager(mgr) + propertybcc.SetManager(mgr) + propertybto.SetManager(mgr) + propertycc.SetManager(mgr) + propertyclosed.SetManager(mgr) + propertycontent.SetManager(mgr) + propertycontext.SetManager(mgr) + propertycurrent.SetManager(mgr) + propertydeleted.SetManager(mgr) + propertydescribes.SetManager(mgr) + propertyduration.SetManager(mgr) + propertyendpoints.SetManager(mgr) + propertyendtime.SetManager(mgr) + propertyfirst.SetManager(mgr) + propertyfollowers.SetManager(mgr) + propertyfollowing.SetManager(mgr) + propertyformertype.SetManager(mgr) + propertygenerator.SetManager(mgr) + propertyheight.SetManager(mgr) + propertyhref.SetManager(mgr) + propertyhreflang.SetManager(mgr) + propertyicon.SetManager(mgr) + propertyimage.SetManager(mgr) + propertyinbox.SetManager(mgr) + propertyinreplyto.SetManager(mgr) + propertyinstrument.SetManager(mgr) + propertyitems.SetManager(mgr) + propertylast.SetManager(mgr) + propertylatitude.SetManager(mgr) + propertyliked.SetManager(mgr) + propertylikes.SetManager(mgr) + propertylocation.SetManager(mgr) + propertylongitude.SetManager(mgr) + propertymanuallyapprovesfollowers.SetManager(mgr) + propertymediatype.SetManager(mgr) + propertymovedto.SetManager(mgr) + propertyname.SetManager(mgr) + propertynext.SetManager(mgr) + propertyobject.SetManager(mgr) + propertyoneof.SetManager(mgr) + propertyordereditems.SetManager(mgr) + propertyorigin.SetManager(mgr) + propertyoutbox.SetManager(mgr) + propertypartof.SetManager(mgr) + propertypreferredusername.SetManager(mgr) + propertyprev.SetManager(mgr) + propertypreview.SetManager(mgr) + propertypublished.SetManager(mgr) + propertyradius.SetManager(mgr) + propertyrel.SetManager(mgr) + propertyrelationship.SetManager(mgr) + propertyreplies.SetManager(mgr) + propertyresult.SetManager(mgr) + propertysensitive.SetManager(mgr) + propertysharedinbox.SetManager(mgr) + propertyshares.SetManager(mgr) + propertysource.SetManager(mgr) + propertystartindex.SetManager(mgr) + propertystarttime.SetManager(mgr) + propertystreams.SetManager(mgr) + propertysubject.SetManager(mgr) + propertysummary.SetManager(mgr) + propertytag.SetManager(mgr) + propertytarget.SetManager(mgr) + propertyto.SetManager(mgr) + propertytotalitems.SetManager(mgr) + propertyunits.SetManager(mgr) + propertyupdated.SetManager(mgr) + propertyurl.SetManager(mgr) + propertywidth.SetManager(mgr) + typeaccept.SetManager(mgr) + typeactivity.SetManager(mgr) + typeadd.SetManager(mgr) + typeannounce.SetManager(mgr) + typeapplication.SetManager(mgr) + typearrive.SetManager(mgr) + typearticle.SetManager(mgr) + typeaudio.SetManager(mgr) + typeblock.SetManager(mgr) + typecollection.SetManager(mgr) + typecollectionpage.SetManager(mgr) + typecreate.SetManager(mgr) + typedelete.SetManager(mgr) + typedislike.SetManager(mgr) + typedocument.SetManager(mgr) + typeendpoints.SetManager(mgr) + typeevent.SetManager(mgr) + typeflag.SetManager(mgr) + typefollow.SetManager(mgr) + typegroup.SetManager(mgr) + typeignore.SetManager(mgr) + typeimage.SetManager(mgr) + typeintransitiveactivity.SetManager(mgr) + typeinvite.SetManager(mgr) + typejoin.SetManager(mgr) + typeleave.SetManager(mgr) + typelike.SetManager(mgr) + typelink.SetManager(mgr) + typelisten.SetManager(mgr) + typemention.SetManager(mgr) + typemove.SetManager(mgr) + typenote.SetManager(mgr) + typeobject.SetManager(mgr) + typeoffer.SetManager(mgr) + typeorderedcollection.SetManager(mgr) + typeorderedcollectionpage.SetManager(mgr) + typeorganization.SetManager(mgr) + typepage.SetManager(mgr) + typeperson.SetManager(mgr) + typeplace.SetManager(mgr) + typeprofile.SetManager(mgr) + typequestion.SetManager(mgr) + typeread.SetManager(mgr) + typereject.SetManager(mgr) + typerelationship.SetManager(mgr) + typeremove.SetManager(mgr) + typeservice.SetManager(mgr) + typetentativeaccept.SetManager(mgr) + typetentativereject.SetManager(mgr) + typetombstone.SetManager(mgr) + typetravel.SetManager(mgr) + typeundo.SetManager(mgr) + typeupdate.SetManager(mgr) + typevideo.SetManager(mgr) + typeview.SetManager(mgr) + typealbum.SetManager(mgr) + typeartist.SetManager(mgr) + typelibrary.SetManager(mgr) + typetrack.SetManager(mgr) + propertyalways.SetManager(mgr) + propertyapprovalrequired.SetManager(mgr) + propertyapprovedby.SetManager(mgr) + propertyautomaticapproval.SetManager(mgr) + propertycanannounce.SetManager(mgr) + propertycanlike.SetManager(mgr) + propertycanquote.SetManager(mgr) + propertycanreply.SetManager(mgr) + propertyinteractingobject.SetManager(mgr) + propertyinteractionpolicy.SetManager(mgr) + propertyinteractiontarget.SetManager(mgr) + propertymanualapproval.SetManager(mgr) + typeannounceapproval.SetManager(mgr) + typeannounceauthorization.SetManager(mgr) + typeannouncerequest.SetManager(mgr) + typecanannounce.SetManager(mgr) + typecanlike.SetManager(mgr) + typecanquote.SetManager(mgr) + typecanreply.SetManager(mgr) + typeinteractionpolicy.SetManager(mgr) + typelikeapproval.SetManager(mgr) + typelikeauthorization.SetManager(mgr) + typelikerequest.SetManager(mgr) + typereplyapproval.SetManager(mgr) + typereplyauthorization.SetManager(mgr) + typereplyrequest.SetManager(mgr) + propertyvalue.SetManager(mgr) + typepropertyvalue.SetManager(mgr) + propertyblurhash.SetManager(mgr) + propertydiscoverable.SetManager(mgr) + propertyfeatured.SetManager(mgr) + propertyfocalpoint.SetManager(mgr) + propertyindexable.SetManager(mgr) + propertysignaturealgorithm.SetManager(mgr) + propertysignaturevalue.SetManager(mgr) + propertyvoterscount.SetManager(mgr) + typeemoji.SetManager(mgr) + typehashtag.SetManager(mgr) + typeidentityproof.SetManager(mgr) + propertyowner.SetManager(mgr) + propertypublickey.SetManager(mgr) + propertypublickeypem.SetManager(mgr) + typepublickey.SetManager(mgr) + typeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeadd.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeapplication.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typearrive.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typearticle.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeaudio.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeblock.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecreate.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typedelete.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typedislike.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typedocument.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeendpoints.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeevent.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeflag.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typefollow.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typegroup.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeignore.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeimage.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeintransitiveactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeinvite.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typejoin.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeleave.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelike.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelink.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelisten.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typemention.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typemove.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typenote.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeobject.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeoffer.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeorderedcollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeorderedcollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeorganization.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typepage.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeperson.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeplace.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeprofile.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typequestion.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeread.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typerelationship.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeremove.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeservice.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetentativeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetentativereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetombstone.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetravel.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeundo.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typealbum.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeartist.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelibrary.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetrack.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeannounceapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeannounceauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeannouncerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecanannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecanlike.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecanquote.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecanreply.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeinteractionpolicy.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelikeapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelikeauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelikerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typereplyapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typereplyauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typereplyrequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typepropertyvalue.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typehashtag.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_json_resolver.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_json_resolver.go index fc30ea78d..6ec189262 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_json_resolver.go @@ -3,7 +3,7 @@ package streams import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "context" "errors" "fmt" @@ -43,6 +43,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialAnnounceApproval) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceRequest) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsApplication) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsArrive) error: @@ -59,6 +63,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialCanLike) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanQuote) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialCanReply) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsCollection) error: @@ -109,6 +115,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialLikeApproval) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeRequest) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsLink) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsListen) error: @@ -153,6 +163,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialReplyApproval) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyRequest) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsService) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: @@ -354,6 +368,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"AnnounceAuthorization" { + v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"AnnounceRequest" { + v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Application" { v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap) if err != nil { @@ -442,6 +478,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"CanQuote" { + v, err := mgr.DeserializeCanQuoteGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == GoToSocialAlias+"CanReply" { v, err := mgr.DeserializeCanReplyGoToSocial()(m, aliasMap) if err != nil { @@ -717,6 +764,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"LikeAuthorization" { + v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"LikeRequest" { + v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Link" { v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap) if err != nil { @@ -959,6 +1028,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"ReplyAuthorization" { + v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"ReplyRequest" { + v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Service" { v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap) if err != nil { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_manager.go similarity index 78% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_manager.go index 6c5377097..c46d50808 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_manager.go @@ -3,174 +3,188 @@ package streams import ( - propertyaccuracy "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor" - propertyalsoknownas "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas" - propertyaltitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience" - propertybcc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc" - propertybto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto" - propertycc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc" - propertyclosed "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed" - propertycontent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content" - propertycontext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context" - propertycurrent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current" - propertydeleted "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes" - propertyduration "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration" - propertyendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints" - propertyendtime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first" - propertyfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following" - propertyformertype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator" - propertyheight "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height" - propertyhref "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href" - propertyhreflang "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon" - propertyimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image" - propertyinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument" - propertyitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items" - propertylast "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last" - propertylatitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude" - propertyliked "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked" - propertylikes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes" - propertylocation "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location" - propertylongitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype" - propertymovedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto" - propertyname "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name" - propertynext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next" - propertyobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object" - propertyoneof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox" - propertypartof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev" - propertypreview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview" - propertypublished "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published" - propertyradius "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius" - propertyrel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies" - propertyresult "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result" - propertysensitive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive" - propertysharedinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox" - propertyshares "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares" - propertysource "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source" - propertystartindex "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime" - propertystreams "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams" - propertysubject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject" - propertysummary "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary" - propertytag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag" - propertytarget "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target" - propertyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to" - propertytotalitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units" - propertyupdated "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated" - propertyurl "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url" - propertywidth "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width" - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always" - propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired" - propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby" - propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce" - propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike" - propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply" - propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy" - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - propertyid "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id" - propertytype "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type" - propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value" - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable" - propertyfeatured "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured" - propertysignaturealgorithm "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount" - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - propertyowner "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem" - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + propertyaccuracy "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy" + propertyactor "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor" + propertyalsoknownas "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas" + propertyaltitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude" + propertyanyof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof" + propertyattachment "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment" + propertyattributedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto" + propertyaudience "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience" + propertybcc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc" + propertybto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto" + propertycc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc" + propertyclosed "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed" + propertycontent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content" + propertycontext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context" + propertycurrent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current" + propertydeleted "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted" + propertydescribes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes" + propertyduration "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration" + propertyendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints" + propertyendtime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime" + propertyfirst "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first" + propertyfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers" + propertyfollowing "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following" + propertyformertype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype" + propertygenerator "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator" + propertyheight "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height" + propertyhref "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href" + propertyhreflang "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang" + propertyicon "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon" + propertyimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image" + propertyinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox" + propertyinreplyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto" + propertyinstrument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument" + propertyitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items" + propertylast "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last" + propertylatitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude" + propertyliked "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked" + propertylikes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes" + propertylocation "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location" + propertylongitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude" + propertymanuallyapprovesfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" + propertymediatype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype" + propertymovedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto" + propertyname "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name" + propertynext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next" + propertyobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object" + propertyoneof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof" + propertyordereditems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems" + propertyorigin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin" + propertyoutbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox" + propertypartof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof" + propertypreferredusername "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername" + propertyprev "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev" + propertypreview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview" + propertypublished "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published" + propertyradius "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius" + propertyrel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel" + propertyrelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship" + propertyreplies "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies" + propertyresult "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result" + propertysensitive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive" + propertysharedinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox" + propertyshares "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares" + propertysource "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source" + propertystartindex "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex" + propertystarttime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime" + propertystreams "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams" + propertysubject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject" + propertysummary "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary" + propertytag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag" + propertytarget "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target" + propertyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to" + propertytotalitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems" + propertyunits "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units" + propertyupdated "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated" + propertyurl "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url" + propertywidth "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + propertyalways "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always" + propertyapprovalrequired "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired" + propertyapprovedby "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby" + propertyautomaticapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval" + propertycanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce" + propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike" + propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote" + propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply" + propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject" + propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy" + propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget" + propertymanualapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval" + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + propertyid "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id" + propertytype "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type" + propertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/property_value" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + propertyblurhash "code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash" + propertydiscoverable "code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable" + propertyfeatured "code.superseriousbusiness.org/activity/streams/impl/toot/property_featured" + propertyfocalpoint "code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint" + propertyindexable "code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable" + propertysignaturealgorithm "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm" + propertysignaturevalue "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue" + propertyvoterscount "code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + propertyowner "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner" + propertypublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey" + propertypublickeypem "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // Manager manages interface types and deserializations for use by generated code. @@ -321,6 +335,32 @@ func (this Manager) DeserializeAnnounceApprovalGoToSocial() func(map[string]inte } } +// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization method +// for the "GoToSocialAnnounceAuthorization" non-functional property in the +// vocabulary "GoToSocial" +func (this Manager) DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) { + i, err := typeannounceauthorization.DeserializeAnnounceAuthorization(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAnnounceRequestGoToSocial returns the deserialization method for the +// "GoToSocialAnnounceRequest" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceRequest, error) { + i, err := typeannouncerequest.DeserializeAnnounceRequest(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeAnyOfPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsAnyOfProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -463,6 +503,19 @@ func (this Manager) DeserializeAudioActivityStreams() func(map[string]interface{ } } +// DeserializeAutomaticApprovalPropertyGoToSocial returns the deserialization +// method for the "GoToSocialAutomaticApprovalProperty" non-functional +// property in the vocabulary "GoToSocial" +func (this Manager) DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { + i, err := propertyautomaticapproval.DeserializeAutomaticApprovalProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeBccPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsBccProperty" non-functional property in the vocabulary // "ActivityStreams" @@ -565,6 +618,31 @@ func (this Manager) DeserializeCanLikePropertyGoToSocial() func(map[string]inter } } +// DeserializeCanQuoteGoToSocial returns the deserialization method for the +// "GoToSocialCanQuote" non-functional property in the vocabulary "GoToSocial" +func (this Manager) DeserializeCanQuoteGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuote, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuote, error) { + i, err := typecanquote.DeserializeCanQuote(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanQuotePropertyGoToSocial returns the deserialization method for +// the "GoToSocialCanQuoteProperty" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeCanQuotePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { + i, err := propertycanquote.DeserializeCanQuoteProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeCanReplyGoToSocial returns the deserialization method for the // "GoToSocialCanReply" non-functional property in the vocabulary "GoToSocial" func (this Manager) DeserializeCanReplyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReply, error) { @@ -886,6 +964,18 @@ func (this Manager) DeserializeFlagActivityStreams() func(map[string]interface{} } } +// DeserializeFocalPointPropertyToot returns the deserialization method for the +// "TootFocalPointProperty" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFocalPointProperty, error) { + i, err := propertyfocalpoint.DeserializeFocalPointProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeFollowActivityStreams returns the deserialization method for the // "ActivityStreamsFollow" non-functional property in the vocabulary // "ActivityStreams" @@ -1117,6 +1207,18 @@ func (this Manager) DeserializeInboxPropertyActivityStreams() func(map[string]in } } +// DeserializeIndexablePropertyToot returns the deserialization method for the +// "TootIndexableProperty" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootIndexableProperty, error) { + i, err := propertyindexable.DeserializeIndexableProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeInstrumentPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsInstrumentProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -1130,6 +1232,19 @@ func (this Manager) DeserializeInstrumentPropertyActivityStreams() func(map[stri } } +// DeserializeInteractingObjectPropertyGoToSocial returns the deserialization +// method for the "GoToSocialInteractingObjectProperty" non-functional +// property in the vocabulary "GoToSocial" +func (this Manager) DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { + i, err := propertyinteractingobject.DeserializeInteractingObjectProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeInteractionPolicyGoToSocial returns the deserialization method for // the "GoToSocialInteractionPolicy" non-functional property in the vocabulary // "GoToSocial" @@ -1156,6 +1271,19 @@ func (this Manager) DeserializeInteractionPolicyPropertyGoToSocial() func(map[st } } +// DeserializeInteractionTargetPropertyGoToSocial returns the deserialization +// method for the "GoToSocialInteractionTargetProperty" non-functional +// property in the vocabulary "GoToSocial" +func (this Manager) DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { + i, err := propertyinteractiontarget.DeserializeInteractionTargetProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeIntransitiveActivityActivityStreams returns the deserialization // method for the "ActivityStreamsIntransitiveActivity" non-functional // property in the vocabulary "ActivityStreams" @@ -1285,6 +1413,32 @@ func (this Manager) DeserializeLikeApprovalGoToSocial() func(map[string]interfac } } +// DeserializeLikeAuthorizationGoToSocial returns the deserialization method for +// the "GoToSocialLikeAuthorization" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeAuthorization, error) { + i, err := typelikeauthorization.DeserializeLikeAuthorization(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLikeRequestGoToSocial returns the deserialization method for the +// "GoToSocialLikeRequest" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeRequest, error) { + i, err := typelikerequest.DeserializeLikeRequest(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeLikedPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsLikedProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -1363,6 +1517,19 @@ func (this Manager) DeserializeLongitudePropertyActivityStreams() func(map[strin } } +// DeserializeManualApprovalPropertyGoToSocial returns the deserialization method +// for the "GoToSocialManualApprovalProperty" non-functional property in the +// vocabulary "GoToSocial" +func (this Manager) DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { + i, err := propertymanualapproval.DeserializeManualApprovalProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the // deserialization method for the // "ActivityStreamsManuallyApprovesFollowersProperty" non-functional property @@ -1909,6 +2076,32 @@ func (this Manager) DeserializeReplyApprovalGoToSocial() func(map[string]interfa } } +// DeserializeReplyAuthorizationGoToSocial returns the deserialization method for +// the "GoToSocialReplyAuthorization" non-functional property in the +// vocabulary "GoToSocial" +func (this Manager) DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyAuthorization, error) { + i, err := typereplyauthorization.DeserializeReplyAuthorization(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeReplyRequestGoToSocial returns the deserialization method for the +// "GoToSocialReplyRequest" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyRequest, error) { + i, err := typereplyrequest.DeserializeReplyRequest(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeResultPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsResultProperty" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_disjoint.go similarity index 68% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_disjoint.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_disjoint.go index e89f26763..e1aace85c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_disjoint.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_disjoint.go @@ -3,62 +3,62 @@ package streams import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // ActivityStreamsAcceptIsDisjointWith returns true if Accept is disjoint with the diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extendedby.go similarity index 75% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extendedby.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extendedby.go index 22cf4171c..ff05ceaf5 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extendedby.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extendedby.go @@ -3,62 +3,62 @@ package streams import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // ActivityStreamsAcceptIsExtendedBy returns true if the other's type extends from diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extends.go similarity index 70% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extends.go index 9f665727d..c84420913 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extends.go @@ -3,62 +3,62 @@ package streams import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // ActivityStreamsActivityStreamsAcceptExtends returns true if Accept extends from diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_isorextends.go similarity index 71% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_isorextends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_isorextends.go index 68de190bf..6de450700 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_isorextends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_isorextends.go @@ -3,62 +3,62 @@ package streams import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // IsOrExtendsActivityStreamsAccept returns true if the other provided type is the diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_property_constructors.go similarity index 69% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_property_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_property_constructors.go index c11dbc101..d9a949eac 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_property_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_property_constructors.go @@ -3,84 +3,84 @@ package streams import ( - propertyaccuracy "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor" - propertyalsoknownas "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas" - propertyaltitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience" - propertybcc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc" - propertybto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto" - propertycc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc" - propertyclosed "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed" - propertycontent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content" - propertycontext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context" - propertycurrent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current" - propertydeleted "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes" - propertyduration "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration" - propertyendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints" - propertyendtime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first" - propertyfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following" - propertyformertype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator" - propertyheight "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height" - propertyhref "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href" - propertyhreflang "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon" - propertyimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image" - propertyinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument" - propertyitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items" - propertylast "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last" - propertylatitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude" - propertyliked "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked" - propertylikes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes" - propertylocation "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location" - propertylongitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype" - propertymovedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto" - propertyname "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name" - propertynext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next" - propertyobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object" - propertyoneof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox" - propertypartof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev" - propertypreview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview" - propertypublished "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published" - propertyradius "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius" - propertyrel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies" - propertyresult "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result" - propertysensitive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive" - propertysharedinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox" - propertyshares "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares" - propertysource "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source" - propertystartindex "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime" - propertystreams "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams" - propertysubject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject" - propertysummary "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary" - propertytag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag" - propertytarget "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target" - propertyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to" - propertytotalitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units" - propertyupdated "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated" - propertyurl "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url" - propertywidth "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + propertyaccuracy "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy" + propertyactor "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor" + propertyalsoknownas "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas" + propertyaltitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude" + propertyanyof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof" + propertyattachment "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment" + propertyattributedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto" + propertyaudience "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience" + propertybcc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc" + propertybto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto" + propertycc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc" + propertyclosed "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed" + propertycontent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content" + propertycontext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context" + propertycurrent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current" + propertydeleted "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted" + propertydescribes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes" + propertyduration "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration" + propertyendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints" + propertyendtime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime" + propertyfirst "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first" + propertyfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers" + propertyfollowing "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following" + propertyformertype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype" + propertygenerator "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator" + propertyheight "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height" + propertyhref "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href" + propertyhreflang "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang" + propertyicon "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon" + propertyimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image" + propertyinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox" + propertyinreplyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto" + propertyinstrument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument" + propertyitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items" + propertylast "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last" + propertylatitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude" + propertyliked "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked" + propertylikes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes" + propertylocation "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location" + propertylongitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude" + propertymanuallyapprovesfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" + propertymediatype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype" + propertymovedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto" + propertyname "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name" + propertynext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next" + propertyobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object" + propertyoneof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof" + propertyordereditems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems" + propertyorigin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin" + propertyoutbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox" + propertypartof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof" + propertypreferredusername "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername" + propertyprev "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev" + propertypreview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview" + propertypublished "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published" + propertyradius "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius" + propertyrel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel" + propertyrelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship" + propertyreplies "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies" + propertyresult "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result" + propertysensitive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive" + propertysharedinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox" + propertyshares "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares" + propertysource "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source" + propertystartindex "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex" + propertystarttime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime" + propertystreams "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams" + propertysubject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject" + propertysummary "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary" + propertytag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag" + propertytarget "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target" + propertyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to" + propertytotalitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems" + propertyunits "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units" + propertyupdated "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated" + propertyurl "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url" + propertywidth "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewActivityStreamsActivityStreamsAccuracyProperty creates a new diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_type_constructors.go similarity index 64% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_type_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_type_constructors.go index 49922115d..0e5c3c8ab 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_type_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_type_constructors.go @@ -3,62 +3,62 @@ package streams import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewActivityStreamsAccept creates a new ActivityStreamsAccept diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_disjoint.go similarity index 67% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_disjoint.go index 74336617f..4314ba096 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_disjoint.go @@ -3,11 +3,11 @@ package streams import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // FunkwhaleAlbumIsDisjointWith returns true if Album is disjoint with the other's diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extendedby.go similarity index 73% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extendedby.go index 1559df467..3e5e4d04e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extendedby.go @@ -3,11 +3,11 @@ package streams import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // FunkwhaleAlbumIsExtendedBy returns true if the other's type extends from Album. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extends.go similarity index 67% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extends.go index 7a34e4b7f..714671a21 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extends.go @@ -3,11 +3,11 @@ package streams import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // FunkwhaleFunkwhaleAlbumExtends returns true if Album extends from the other's diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_isorextends.go similarity index 69% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_isorextends.go index d8153b83a..44ec0858c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_isorextends.go @@ -3,11 +3,11 @@ package streams import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // IsOrExtendsFunkwhaleAlbum returns true if the other provided type is the Album diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_type_constructors.go similarity index 59% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_type_constructors.go index ec7d76fe1..50155575c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_type_constructors.go @@ -3,11 +3,11 @@ package streams import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewFunkwhaleAlbum creates a new FunkwhaleAlbum diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_disjoint.go new file mode 100644 index 000000000..31c55a559 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_disjoint.go @@ -0,0 +1,105 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// GoToSocialAnnounceApprovalIsDisjointWith returns true if AnnounceApproval is +// disjoint with the other's type. +func GoToSocialAnnounceApprovalIsDisjointWith(other vocab.Type) bool { + return typeannounceapproval.AnnounceApprovalIsDisjointWith(other) +} + +// GoToSocialAnnounceAuthorizationIsDisjointWith returns true if +// AnnounceAuthorization is disjoint with the other's type. +func GoToSocialAnnounceAuthorizationIsDisjointWith(other vocab.Type) bool { + return typeannounceauthorization.AnnounceAuthorizationIsDisjointWith(other) +} + +// GoToSocialAnnounceRequestIsDisjointWith returns true if AnnounceRequest is +// disjoint with the other's type. +func GoToSocialAnnounceRequestIsDisjointWith(other vocab.Type) bool { + return typeannouncerequest.AnnounceRequestIsDisjointWith(other) +} + +// GoToSocialCanAnnounceIsDisjointWith returns true if CanAnnounce is disjoint +// with the other's type. +func GoToSocialCanAnnounceIsDisjointWith(other vocab.Type) bool { + return typecanannounce.CanAnnounceIsDisjointWith(other) +} + +// GoToSocialCanLikeIsDisjointWith returns true if CanLike is disjoint with the +// other's type. +func GoToSocialCanLikeIsDisjointWith(other vocab.Type) bool { + return typecanlike.CanLikeIsDisjointWith(other) +} + +// GoToSocialCanQuoteIsDisjointWith returns true if CanQuote is disjoint with the +// other's type. +func GoToSocialCanQuoteIsDisjointWith(other vocab.Type) bool { + return typecanquote.CanQuoteIsDisjointWith(other) +} + +// GoToSocialCanReplyIsDisjointWith returns true if CanReply is disjoint with the +// other's type. +func GoToSocialCanReplyIsDisjointWith(other vocab.Type) bool { + return typecanreply.CanReplyIsDisjointWith(other) +} + +// GoToSocialInteractionPolicyIsDisjointWith returns true if InteractionPolicy is +// disjoint with the other's type. +func GoToSocialInteractionPolicyIsDisjointWith(other vocab.Type) bool { + return typeinteractionpolicy.InteractionPolicyIsDisjointWith(other) +} + +// GoToSocialLikeApprovalIsDisjointWith returns true if LikeApproval is disjoint +// with the other's type. +func GoToSocialLikeApprovalIsDisjointWith(other vocab.Type) bool { + return typelikeapproval.LikeApprovalIsDisjointWith(other) +} + +// GoToSocialLikeAuthorizationIsDisjointWith returns true if LikeAuthorization is +// disjoint with the other's type. +func GoToSocialLikeAuthorizationIsDisjointWith(other vocab.Type) bool { + return typelikeauthorization.LikeAuthorizationIsDisjointWith(other) +} + +// GoToSocialLikeRequestIsDisjointWith returns true if LikeRequest is disjoint +// with the other's type. +func GoToSocialLikeRequestIsDisjointWith(other vocab.Type) bool { + return typelikerequest.LikeRequestIsDisjointWith(other) +} + +// GoToSocialReplyApprovalIsDisjointWith returns true if ReplyApproval is disjoint +// with the other's type. +func GoToSocialReplyApprovalIsDisjointWith(other vocab.Type) bool { + return typereplyapproval.ReplyApprovalIsDisjointWith(other) +} + +// GoToSocialReplyAuthorizationIsDisjointWith returns true if ReplyAuthorization +// is disjoint with the other's type. +func GoToSocialReplyAuthorizationIsDisjointWith(other vocab.Type) bool { + return typereplyauthorization.ReplyAuthorizationIsDisjointWith(other) +} + +// GoToSocialReplyRequestIsDisjointWith returns true if ReplyRequest is disjoint +// with the other's type. +func GoToSocialReplyRequestIsDisjointWith(other vocab.Type) bool { + return typereplyrequest.ReplyRequestIsDisjointWith(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extendedby.go new file mode 100644 index 000000000..6fabac79f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extendedby.go @@ -0,0 +1,119 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// GoToSocialAnnounceApprovalIsExtendedBy returns true if the other's type extends +// from AnnounceApproval. Note that it returns false if the types are the +// same; see the "IsOrExtends" variant instead. +func GoToSocialAnnounceApprovalIsExtendedBy(other vocab.Type) bool { + return typeannounceapproval.AnnounceApprovalIsExtendedBy(other) +} + +// GoToSocialAnnounceAuthorizationIsExtendedBy returns true if the other's type +// extends from AnnounceAuthorization. Note that it returns false if the types +// are the same; see the "IsOrExtends" variant instead. +func GoToSocialAnnounceAuthorizationIsExtendedBy(other vocab.Type) bool { + return typeannounceauthorization.AnnounceAuthorizationIsExtendedBy(other) +} + +// GoToSocialAnnounceRequestIsExtendedBy returns true if the other's type extends +// from AnnounceRequest. Note that it returns false if the types are the same; +// see the "IsOrExtends" variant instead. +func GoToSocialAnnounceRequestIsExtendedBy(other vocab.Type) bool { + return typeannouncerequest.AnnounceRequestIsExtendedBy(other) +} + +// GoToSocialCanAnnounceIsExtendedBy returns true if the other's type extends from +// CanAnnounce. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialCanAnnounceIsExtendedBy(other vocab.Type) bool { + return typecanannounce.CanAnnounceIsExtendedBy(other) +} + +// GoToSocialCanLikeIsExtendedBy returns true if the other's type extends from +// CanLike. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialCanLikeIsExtendedBy(other vocab.Type) bool { + return typecanlike.CanLikeIsExtendedBy(other) +} + +// GoToSocialCanQuoteIsExtendedBy returns true if the other's type extends from +// CanQuote. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialCanQuoteIsExtendedBy(other vocab.Type) bool { + return typecanquote.CanQuoteIsExtendedBy(other) +} + +// GoToSocialCanReplyIsExtendedBy returns true if the other's type extends from +// CanReply. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialCanReplyIsExtendedBy(other vocab.Type) bool { + return typecanreply.CanReplyIsExtendedBy(other) +} + +// GoToSocialInteractionPolicyIsExtendedBy returns true if the other's type +// extends from InteractionPolicy. Note that it returns false if the types are +// the same; see the "IsOrExtends" variant instead. +func GoToSocialInteractionPolicyIsExtendedBy(other vocab.Type) bool { + return typeinteractionpolicy.InteractionPolicyIsExtendedBy(other) +} + +// GoToSocialLikeApprovalIsExtendedBy returns true if the other's type extends +// from LikeApproval. Note that it returns false if the types are the same; +// see the "IsOrExtends" variant instead. +func GoToSocialLikeApprovalIsExtendedBy(other vocab.Type) bool { + return typelikeapproval.LikeApprovalIsExtendedBy(other) +} + +// GoToSocialLikeAuthorizationIsExtendedBy returns true if the other's type +// extends from LikeAuthorization. Note that it returns false if the types are +// the same; see the "IsOrExtends" variant instead. +func GoToSocialLikeAuthorizationIsExtendedBy(other vocab.Type) bool { + return typelikeauthorization.LikeAuthorizationIsExtendedBy(other) +} + +// GoToSocialLikeRequestIsExtendedBy returns true if the other's type extends from +// LikeRequest. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialLikeRequestIsExtendedBy(other vocab.Type) bool { + return typelikerequest.LikeRequestIsExtendedBy(other) +} + +// GoToSocialReplyApprovalIsExtendedBy returns true if the other's type extends +// from ReplyApproval. Note that it returns false if the types are the same; +// see the "IsOrExtends" variant instead. +func GoToSocialReplyApprovalIsExtendedBy(other vocab.Type) bool { + return typereplyapproval.ReplyApprovalIsExtendedBy(other) +} + +// GoToSocialReplyAuthorizationIsExtendedBy returns true if the other's type +// extends from ReplyAuthorization. Note that it returns false if the types +// are the same; see the "IsOrExtends" variant instead. +func GoToSocialReplyAuthorizationIsExtendedBy(other vocab.Type) bool { + return typereplyauthorization.ReplyAuthorizationIsExtendedBy(other) +} + +// GoToSocialReplyRequestIsExtendedBy returns true if the other's type extends +// from ReplyRequest. Note that it returns false if the types are the same; +// see the "IsOrExtends" variant instead. +func GoToSocialReplyRequestIsExtendedBy(other vocab.Type) bool { + return typereplyrequest.ReplyRequestIsExtendedBy(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extends.go new file mode 100644 index 000000000..7401c2d51 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extends.go @@ -0,0 +1,105 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// GoToSocialGoToSocialAnnounceApprovalExtends returns true if AnnounceApproval +// extends from the other's type. +func GoToSocialGoToSocialAnnounceApprovalExtends(other vocab.Type) bool { + return typeannounceapproval.GoToSocialAnnounceApprovalExtends(other) +} + +// GoToSocialGoToSocialAnnounceAuthorizationExtends returns true if +// AnnounceAuthorization extends from the other's type. +func GoToSocialGoToSocialAnnounceAuthorizationExtends(other vocab.Type) bool { + return typeannounceauthorization.GoToSocialAnnounceAuthorizationExtends(other) +} + +// GoToSocialGoToSocialAnnounceRequestExtends returns true if AnnounceRequest +// extends from the other's type. +func GoToSocialGoToSocialAnnounceRequestExtends(other vocab.Type) bool { + return typeannouncerequest.GoToSocialAnnounceRequestExtends(other) +} + +// GoToSocialGoToSocialCanAnnounceExtends returns true if CanAnnounce extends from +// the other's type. +func GoToSocialGoToSocialCanAnnounceExtends(other vocab.Type) bool { + return typecanannounce.GoToSocialCanAnnounceExtends(other) +} + +// GoToSocialGoToSocialCanLikeExtends returns true if CanLike extends from the +// other's type. +func GoToSocialGoToSocialCanLikeExtends(other vocab.Type) bool { + return typecanlike.GoToSocialCanLikeExtends(other) +} + +// GoToSocialGoToSocialCanQuoteExtends returns true if CanQuote extends from the +// other's type. +func GoToSocialGoToSocialCanQuoteExtends(other vocab.Type) bool { + return typecanquote.GoToSocialCanQuoteExtends(other) +} + +// GoToSocialGoToSocialCanReplyExtends returns true if CanReply extends from the +// other's type. +func GoToSocialGoToSocialCanReplyExtends(other vocab.Type) bool { + return typecanreply.GoToSocialCanReplyExtends(other) +} + +// GoToSocialGoToSocialInteractionPolicyExtends returns true if InteractionPolicy +// extends from the other's type. +func GoToSocialGoToSocialInteractionPolicyExtends(other vocab.Type) bool { + return typeinteractionpolicy.GoToSocialInteractionPolicyExtends(other) +} + +// GoToSocialGoToSocialLikeApprovalExtends returns true if LikeApproval extends +// from the other's type. +func GoToSocialGoToSocialLikeApprovalExtends(other vocab.Type) bool { + return typelikeapproval.GoToSocialLikeApprovalExtends(other) +} + +// GoToSocialGoToSocialLikeAuthorizationExtends returns true if LikeAuthorization +// extends from the other's type. +func GoToSocialGoToSocialLikeAuthorizationExtends(other vocab.Type) bool { + return typelikeauthorization.GoToSocialLikeAuthorizationExtends(other) +} + +// GoToSocialGoToSocialLikeRequestExtends returns true if LikeRequest extends from +// the other's type. +func GoToSocialGoToSocialLikeRequestExtends(other vocab.Type) bool { + return typelikerequest.GoToSocialLikeRequestExtends(other) +} + +// GoToSocialGoToSocialReplyApprovalExtends returns true if ReplyApproval extends +// from the other's type. +func GoToSocialGoToSocialReplyApprovalExtends(other vocab.Type) bool { + return typereplyapproval.GoToSocialReplyApprovalExtends(other) +} + +// GoToSocialGoToSocialReplyAuthorizationExtends returns true if +// ReplyAuthorization extends from the other's type. +func GoToSocialGoToSocialReplyAuthorizationExtends(other vocab.Type) bool { + return typereplyauthorization.GoToSocialReplyAuthorizationExtends(other) +} + +// GoToSocialGoToSocialReplyRequestExtends returns true if ReplyRequest extends +// from the other's type. +func GoToSocialGoToSocialReplyRequestExtends(other vocab.Type) bool { + return typereplyrequest.GoToSocialReplyRequestExtends(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_isorextends.go new file mode 100644 index 000000000..829a770b6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_isorextends.go @@ -0,0 +1,106 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// IsOrExtendsGoToSocialAnnounceApproval returns true if the other provided type +// is the AnnounceApproval type or extends from the AnnounceApproval type. +func IsOrExtendsGoToSocialAnnounceApproval(other vocab.Type) bool { + return typeannounceapproval.IsOrExtendsAnnounceApproval(other) +} + +// IsOrExtendsGoToSocialAnnounceAuthorization returns true if the other provided +// type is the AnnounceAuthorization type or extends from the +// AnnounceAuthorization type. +func IsOrExtendsGoToSocialAnnounceAuthorization(other vocab.Type) bool { + return typeannounceauthorization.IsOrExtendsAnnounceAuthorization(other) +} + +// IsOrExtendsGoToSocialAnnounceRequest returns true if the other provided type is +// the AnnounceRequest type or extends from the AnnounceRequest type. +func IsOrExtendsGoToSocialAnnounceRequest(other vocab.Type) bool { + return typeannouncerequest.IsOrExtendsAnnounceRequest(other) +} + +// IsOrExtendsGoToSocialCanAnnounce returns true if the other provided type is the +// CanAnnounce type or extends from the CanAnnounce type. +func IsOrExtendsGoToSocialCanAnnounce(other vocab.Type) bool { + return typecanannounce.IsOrExtendsCanAnnounce(other) +} + +// IsOrExtendsGoToSocialCanLike returns true if the other provided type is the +// CanLike type or extends from the CanLike type. +func IsOrExtendsGoToSocialCanLike(other vocab.Type) bool { + return typecanlike.IsOrExtendsCanLike(other) +} + +// IsOrExtendsGoToSocialCanQuote returns true if the other provided type is the +// CanQuote type or extends from the CanQuote type. +func IsOrExtendsGoToSocialCanQuote(other vocab.Type) bool { + return typecanquote.IsOrExtendsCanQuote(other) +} + +// IsOrExtendsGoToSocialCanReply returns true if the other provided type is the +// CanReply type or extends from the CanReply type. +func IsOrExtendsGoToSocialCanReply(other vocab.Type) bool { + return typecanreply.IsOrExtendsCanReply(other) +} + +// IsOrExtendsGoToSocialInteractionPolicy returns true if the other provided type +// is the InteractionPolicy type or extends from the InteractionPolicy type. +func IsOrExtendsGoToSocialInteractionPolicy(other vocab.Type) bool { + return typeinteractionpolicy.IsOrExtendsInteractionPolicy(other) +} + +// IsOrExtendsGoToSocialLikeApproval returns true if the other provided type is +// the LikeApproval type or extends from the LikeApproval type. +func IsOrExtendsGoToSocialLikeApproval(other vocab.Type) bool { + return typelikeapproval.IsOrExtendsLikeApproval(other) +} + +// IsOrExtendsGoToSocialLikeAuthorization returns true if the other provided type +// is the LikeAuthorization type or extends from the LikeAuthorization type. +func IsOrExtendsGoToSocialLikeAuthorization(other vocab.Type) bool { + return typelikeauthorization.IsOrExtendsLikeAuthorization(other) +} + +// IsOrExtendsGoToSocialLikeRequest returns true if the other provided type is the +// LikeRequest type or extends from the LikeRequest type. +func IsOrExtendsGoToSocialLikeRequest(other vocab.Type) bool { + return typelikerequest.IsOrExtendsLikeRequest(other) +} + +// IsOrExtendsGoToSocialReplyApproval returns true if the other provided type is +// the ReplyApproval type or extends from the ReplyApproval type. +func IsOrExtendsGoToSocialReplyApproval(other vocab.Type) bool { + return typereplyapproval.IsOrExtendsReplyApproval(other) +} + +// IsOrExtendsGoToSocialReplyAuthorization returns true if the other provided type +// is the ReplyAuthorization type or extends from the ReplyAuthorization type. +func IsOrExtendsGoToSocialReplyAuthorization(other vocab.Type) bool { + return typereplyauthorization.IsOrExtendsReplyAuthorization(other) +} + +// IsOrExtendsGoToSocialReplyRequest returns true if the other provided type is +// the ReplyRequest type or extends from the ReplyRequest type. +func IsOrExtendsGoToSocialReplyRequest(other vocab.Type) bool { + return typereplyrequest.IsOrExtendsReplyRequest(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_property_constructors.go new file mode 100644 index 000000000..152beb5a4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_property_constructors.go @@ -0,0 +1,87 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyalways "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always" + propertyapprovalrequired "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired" + propertyapprovedby "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby" + propertyautomaticapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval" + propertycanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce" + propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike" + propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote" + propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply" + propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject" + propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy" + propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget" + propertymanualapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewGoToSocialGoToSocialAlwaysProperty creates a new GoToSocialAlwaysProperty +func NewGoToSocialAlwaysProperty() vocab.GoToSocialAlwaysProperty { + return propertyalways.NewGoToSocialAlwaysProperty() +} + +// NewGoToSocialGoToSocialApprovalRequiredProperty creates a new +// GoToSocialApprovalRequiredProperty +func NewGoToSocialApprovalRequiredProperty() vocab.GoToSocialApprovalRequiredProperty { + return propertyapprovalrequired.NewGoToSocialApprovalRequiredProperty() +} + +// NewGoToSocialGoToSocialApprovedByProperty creates a new +// GoToSocialApprovedByProperty +func NewGoToSocialApprovedByProperty() vocab.GoToSocialApprovedByProperty { + return propertyapprovedby.NewGoToSocialApprovedByProperty() +} + +// NewGoToSocialGoToSocialAutomaticApprovalProperty creates a new +// GoToSocialAutomaticApprovalProperty +func NewGoToSocialAutomaticApprovalProperty() vocab.GoToSocialAutomaticApprovalProperty { + return propertyautomaticapproval.NewGoToSocialAutomaticApprovalProperty() +} + +// NewGoToSocialGoToSocialCanAnnounceProperty creates a new +// GoToSocialCanAnnounceProperty +func NewGoToSocialCanAnnounceProperty() vocab.GoToSocialCanAnnounceProperty { + return propertycanannounce.NewGoToSocialCanAnnounceProperty() +} + +// NewGoToSocialGoToSocialCanLikeProperty creates a new GoToSocialCanLikeProperty +func NewGoToSocialCanLikeProperty() vocab.GoToSocialCanLikeProperty { + return propertycanlike.NewGoToSocialCanLikeProperty() +} + +// NewGoToSocialGoToSocialCanQuoteProperty creates a new GoToSocialCanQuoteProperty +func NewGoToSocialCanQuoteProperty() vocab.GoToSocialCanQuoteProperty { + return propertycanquote.NewGoToSocialCanQuoteProperty() +} + +// NewGoToSocialGoToSocialCanReplyProperty creates a new GoToSocialCanReplyProperty +func NewGoToSocialCanReplyProperty() vocab.GoToSocialCanReplyProperty { + return propertycanreply.NewGoToSocialCanReplyProperty() +} + +// NewGoToSocialGoToSocialInteractingObjectProperty creates a new +// GoToSocialInteractingObjectProperty +func NewGoToSocialInteractingObjectProperty() vocab.GoToSocialInteractingObjectProperty { + return propertyinteractingobject.NewGoToSocialInteractingObjectProperty() +} + +// NewGoToSocialGoToSocialInteractionPolicyProperty creates a new +// GoToSocialInteractionPolicyProperty +func NewGoToSocialInteractionPolicyProperty() vocab.GoToSocialInteractionPolicyProperty { + return propertyinteractionpolicy.NewGoToSocialInteractionPolicyProperty() +} + +// NewGoToSocialGoToSocialInteractionTargetProperty creates a new +// GoToSocialInteractionTargetProperty +func NewGoToSocialInteractionTargetProperty() vocab.GoToSocialInteractionTargetProperty { + return propertyinteractiontarget.NewGoToSocialInteractionTargetProperty() +} + +// NewGoToSocialGoToSocialManualApprovalProperty creates a new +// GoToSocialManualApprovalProperty +func NewGoToSocialManualApprovalProperty() vocab.GoToSocialManualApprovalProperty { + return propertymanualapproval.NewGoToSocialManualApprovalProperty() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_type_constructors.go new file mode 100644 index 000000000..98400d004 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_type_constructors.go @@ -0,0 +1,91 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewGoToSocialAnnounceApproval creates a new GoToSocialAnnounceApproval +func NewGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return typeannounceapproval.NewGoToSocialAnnounceApproval() +} + +// NewGoToSocialAnnounceAuthorization creates a new GoToSocialAnnounceAuthorization +func NewGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return typeannounceauthorization.NewGoToSocialAnnounceAuthorization() +} + +// NewGoToSocialAnnounceRequest creates a new GoToSocialAnnounceRequest +func NewGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return typeannouncerequest.NewGoToSocialAnnounceRequest() +} + +// NewGoToSocialCanAnnounce creates a new GoToSocialCanAnnounce +func NewGoToSocialCanAnnounce() vocab.GoToSocialCanAnnounce { + return typecanannounce.NewGoToSocialCanAnnounce() +} + +// NewGoToSocialCanLike creates a new GoToSocialCanLike +func NewGoToSocialCanLike() vocab.GoToSocialCanLike { + return typecanlike.NewGoToSocialCanLike() +} + +// NewGoToSocialCanQuote creates a new GoToSocialCanQuote +func NewGoToSocialCanQuote() vocab.GoToSocialCanQuote { + return typecanquote.NewGoToSocialCanQuote() +} + +// NewGoToSocialCanReply creates a new GoToSocialCanReply +func NewGoToSocialCanReply() vocab.GoToSocialCanReply { + return typecanreply.NewGoToSocialCanReply() +} + +// NewGoToSocialInteractionPolicy creates a new GoToSocialInteractionPolicy +func NewGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicy { + return typeinteractionpolicy.NewGoToSocialInteractionPolicy() +} + +// NewGoToSocialLikeApproval creates a new GoToSocialLikeApproval +func NewGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return typelikeapproval.NewGoToSocialLikeApproval() +} + +// NewGoToSocialLikeAuthorization creates a new GoToSocialLikeAuthorization +func NewGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return typelikeauthorization.NewGoToSocialLikeAuthorization() +} + +// NewGoToSocialLikeRequest creates a new GoToSocialLikeRequest +func NewGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return typelikerequest.NewGoToSocialLikeRequest() +} + +// NewGoToSocialReplyApproval creates a new GoToSocialReplyApproval +func NewGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return typereplyapproval.NewGoToSocialReplyApproval() +} + +// NewGoToSocialReplyAuthorization creates a new GoToSocialReplyAuthorization +func NewGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return typereplyauthorization.NewGoToSocialReplyAuthorization() +} + +// NewGoToSocialReplyRequest creates a new GoToSocialReplyRequest +func NewGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return typereplyrequest.NewGoToSocialReplyRequest() +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_jsonld_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_jsonld_property_constructors.go similarity index 61% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_jsonld_property_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_jsonld_property_constructors.go index 724bbb2c2..7ed424159 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_jsonld_property_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_jsonld_property_constructors.go @@ -3,9 +3,9 @@ package streams import ( - propertyid "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id" - propertytype "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + propertyid "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id" + propertytype "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewJSONLDJSONLDTypeProperty creates a new JSONLDTypeProperty diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_disjoint.go similarity index 64% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_disjoint.go index 16cf4bdac..5b92c9948 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_disjoint.go @@ -3,8 +3,8 @@ package streams import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // SchemaPropertyValueIsDisjointWith returns true if PropertyValue is disjoint diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extendedby.go similarity index 69% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extendedby.go index 57ebdcc93..fb590453c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extendedby.go @@ -3,8 +3,8 @@ package streams import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // SchemaPropertyValueIsExtendedBy returns true if the other's type extends from diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extends.go similarity index 63% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extends.go index 47114f26c..2ad4f4621 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extends.go @@ -3,8 +3,8 @@ package streams import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // SchemaSchemaPropertyValueExtends returns true if PropertyValue extends from the diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_isorextends.go similarity index 66% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_isorextends.go index 094df9979..66efa613a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_isorextends.go @@ -3,8 +3,8 @@ package streams import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // IsOrExtendsSchemaPropertyValue returns true if the other provided type is the diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_property_constructors.go similarity index 60% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_property_constructors.go index 24b478213..93bb0e292 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_property_constructors.go @@ -3,8 +3,8 @@ package streams import ( - propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + propertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/property_value" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewSchemaSchemaValueProperty creates a new SchemaValueProperty diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_type_constructors.go similarity index 58% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_type_constructors.go index eb3dcd7ec..37f5ce7e8 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_type_constructors.go @@ -3,8 +3,8 @@ package streams import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewSchemaPropertyValue creates a new SchemaPropertyValue diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_disjoint.go similarity index 66% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_disjoint.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_disjoint.go index 49673fbc5..b0368fcab 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_disjoint.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_disjoint.go @@ -3,10 +3,10 @@ package streams import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // TootEmojiIsDisjointWith returns true if Emoji is disjoint with the other's type. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extendedby.go similarity index 73% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extendedby.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extendedby.go index d0d4ed71d..400671c03 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extendedby.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extendedby.go @@ -3,10 +3,10 @@ package streams import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // TootEmojiIsExtendedBy returns true if the other's type extends from Emoji. Note diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extends.go similarity index 65% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extends.go index 4fcd0eb6e..2c4fa1dd1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extends.go @@ -3,10 +3,10 @@ package streams import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // TootTootEmojiExtends returns true if Emoji extends from the other's type. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_isorextends.go similarity index 69% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_isorextends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_isorextends.go index 565e5c80d..75425f5ea 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_isorextends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_isorextends.go @@ -3,10 +3,10 @@ package streams import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // IsOrExtendsTootEmoji returns true if the other provided type is the Emoji type diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_property_constructors.go similarity index 50% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_property_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_property_constructors.go index a3136eacf..dc193534f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_property_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_property_constructors.go @@ -3,13 +3,15 @@ package streams import ( - propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable" - propertyfeatured "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured" - propertysignaturealgorithm "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + propertyblurhash "code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash" + propertydiscoverable "code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable" + propertyfeatured "code.superseriousbusiness.org/activity/streams/impl/toot/property_featured" + propertyfocalpoint "code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint" + propertyindexable "code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable" + propertysignaturealgorithm "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm" + propertysignaturevalue "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue" + propertyvoterscount "code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewTootTootBlurhashProperty creates a new TootBlurhashProperty @@ -27,6 +29,16 @@ func NewTootFeaturedProperty() vocab.TootFeaturedProperty { return propertyfeatured.NewTootFeaturedProperty() } +// NewTootTootFocalPointProperty creates a new TootFocalPointProperty +func NewTootFocalPointProperty() vocab.TootFocalPointProperty { + return propertyfocalpoint.NewTootFocalPointProperty() +} + +// NewTootTootIndexableProperty creates a new TootIndexableProperty +func NewTootIndexableProperty() vocab.TootIndexableProperty { + return propertyindexable.NewTootIndexableProperty() +} + // NewTootTootSignatureAlgorithmProperty creates a new // TootSignatureAlgorithmProperty func NewTootSignatureAlgorithmProperty() vocab.TootSignatureAlgorithmProperty { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_type_constructors.go similarity index 58% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_type_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_type_constructors.go index ea63802a9..1dbe5fa0d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_type_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_type_constructors.go @@ -3,10 +3,10 @@ package streams import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewTootEmoji creates a new TootEmoji diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go similarity index 63% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go index fd46ac737..465a14b20 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go @@ -3,8 +3,8 @@ package streams import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // W3IDSecurityV1PublicKeyIsDisjointWith returns true if PublicKey is disjoint diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go similarity index 69% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go index 43373b0b5..3ca0fddee 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go @@ -3,8 +3,8 @@ package streams import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // W3IDSecurityV1PublicKeyIsExtendedBy returns true if the other's type extends diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extends.go similarity index 65% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extends.go index 821880885..781d8ac48 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extends.go @@ -3,8 +3,8 @@ package streams import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // W3IDSecurityV1W3IDSecurityV1PublicKeyExtends returns true if PublicKey extends diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go similarity index 65% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go index 98e66a47e..f77aeac21 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go @@ -3,8 +3,8 @@ package streams import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // IsOrExtendsW3IDSecurityV1PublicKey returns true if the other provided type is diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go similarity index 67% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go index 6711a6907..fa9f7bab8 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go @@ -3,10 +3,10 @@ package streams import ( - propertyowner "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + propertyowner "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner" + propertypublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey" + propertypublickeypem "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewW3IDSecurityV1W3IDSecurityV1OwnerProperty creates a new diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go similarity index 60% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go index 668767232..72200cd82 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go @@ -3,8 +3,8 @@ package streams import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" ) // NewW3IDSecurityV1PublicKey creates a new W3IDSecurityV1PublicKey diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_resolver_utils.go similarity index 92% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_resolver_utils.go index 6e90035e7..9a3f74a55 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_resolver_utils.go @@ -3,7 +3,7 @@ package streams import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "context" "errors" ) @@ -64,6 +64,12 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.GoToSocialAnnounceApproval) error { t = i return nil + }, func(ctx context.Context, i vocab.GoToSocialAnnounceAuthorization) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialAnnounceRequest) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsApplication) error { t = i return nil @@ -88,6 +94,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.GoToSocialCanLike) error { t = i return nil + }, func(ctx context.Context, i vocab.GoToSocialCanQuote) error { + t = i + return nil }, func(ctx context.Context, i vocab.GoToSocialCanReply) error { t = i return nil @@ -163,6 +172,12 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.GoToSocialLikeApproval) error { t = i return nil + }, func(ctx context.Context, i vocab.GoToSocialLikeAuthorization) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialLikeRequest) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsLink) error { t = i return nil @@ -229,6 +244,12 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.GoToSocialReplyApproval) error { t = i return nil + }, func(ctx context.Context, i vocab.GoToSocialReplyAuthorization) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialReplyRequest) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsService) error { t = i return nil diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_type_predicated_resolver.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_type_predicated_resolver.go index ab64ef497..4edf517e7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_type_predicated_resolver.go @@ -3,7 +3,7 @@ package streams import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "context" "errors" ) @@ -41,6 +41,10 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.GoToSocialAnnounceApproval) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceAuthorization) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceRequest) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsApplication) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsArrive) (bool, error): @@ -57,6 +61,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.GoToSocialCanLike) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialCanQuote) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.GoToSocialCanReply) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsCollection) (bool, error): @@ -107,6 +113,10 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.GoToSocialLikeApproval) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialLikeAuthorization) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialLikeRequest) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsLink) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsListen) (bool, error): @@ -151,6 +161,10 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.GoToSocialReplyApproval) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialReplyAuthorization) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialReplyRequest) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsService) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error): @@ -256,6 +270,28 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceRequest) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsApplication) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsApplication); ok { @@ -344,6 +380,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanQuote) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialCanQuote); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" { if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanReply) (bool, error)); ok { if v, ok := o.(vocab.GoToSocialCanReply); ok { @@ -619,6 +666,28 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeAuthorization) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeRequest) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialLikeRequest); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLink) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsLink); ok { @@ -861,6 +930,28 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyAuthorization) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyRequest) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialReplyRequest); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsService) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsService); ok { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_type_resolver.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go rename to vendor/code.superseriousbusiness.org/activity/streams/gen_type_resolver.go index c7592e951..07ff63a21 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_type_resolver.go @@ -3,7 +3,7 @@ package streams import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "context" "errors" ) @@ -40,6 +40,10 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialAnnounceApproval) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceRequest) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsApplication) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsArrive) error: @@ -56,6 +60,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialCanLike) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanQuote) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialCanReply) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsCollection) error: @@ -106,6 +112,10 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialLikeApproval) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeRequest) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsLink) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsListen) error: @@ -150,6 +160,10 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialReplyApproval) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyRequest) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsService) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: @@ -239,6 +253,24 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok { + if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok { + if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok { if v, ok := o.(vocab.ActivityStreamsApplication); ok { @@ -311,6 +343,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok { + if v, ok := o.(vocab.GoToSocialCanQuote); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" { if fn, ok := i.(func(context.Context, vocab.GoToSocialCanReply) error); ok { if v, ok := o.(vocab.GoToSocialCanReply); ok { @@ -536,6 +577,24 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok { + if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok { + if v, ok := o.(vocab.GoToSocialLikeRequest); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok { if v, ok := o.(vocab.ActivityStreamsLink); ok { @@ -734,6 +793,24 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok { + if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok { + if v, ok := o.(vocab.GoToSocialReplyRequest); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok { if v, ok := o.(vocab.ActivityStreamsService); ok { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go index dc8f617bc..1f51475f1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go @@ -3,8 +3,8 @@ package propertyaccuracy import ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go index cc07f6107..75edcc679 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go @@ -2,7 +2,7 @@ package propertyactor -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go index a9d81afdd..9ebcc6db4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go @@ -3,7 +3,7 @@ package propertyactor import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsActorPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsActorPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsActorPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeApproval() voc return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyApproval() vo return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsActorPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeApproval() bool return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyApproval() boo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsActorPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsActorPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceApproval( this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeApproval(v vo this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyApproval(v v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3887,6 +4164,30 @@ func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceApproval(v voc }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "actor". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "actor". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "actor". Invalidates iterators that are traversing using // Prev. @@ -3899,6 +4200,30 @@ func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeApproval(v vocab.G }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "actor". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "actor". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "actor". Invalidates iterators that are traversing // using Prev. @@ -3911,6 +4236,30 @@ func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyApproval(v vocab. }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "actor". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "actor". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "actor" func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ @@ -5014,6 +5363,40 @@ func (this *ActivityStreamsActorProperty) InsertGoToSocialAnnounceApproval(idx i } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "actor". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "actor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "actor". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5031,6 +5414,40 @@ func (this *ActivityStreamsActorProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "actor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "actor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "actor". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5048,6 +5465,40 @@ func (this *ActivityStreamsActorProperty) InsertGoToSocialReplyApproval(idx int, } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "actor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "actor". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "actor". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5227,230 +5678,254 @@ func (this ActivityStreamsActorProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6321,6 +6796,34 @@ func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceApproval(v vo } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "actor". Invalidates all iterators. func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6335,6 +6838,34 @@ func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeApproval(v vocab. } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "actor". Invalidates all iterators. func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6349,6 +6880,34 @@ func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyApproval(v vocab } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "actor". func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsActorPropertyIterator{{ @@ -7237,6 +7796,32 @@ func (this *ActivityStreamsActorProperty) SetGoToSocialAnnounceApproval(idx int, } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "actor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "actor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "actor". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7250,6 +7835,32 @@ func (this *ActivityStreamsActorProperty) SetGoToSocialLikeApproval(idx int, v v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "actor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "actor". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsActorProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "actor". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7263,6 +7874,32 @@ func (this *ActivityStreamsActorProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "actor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "actor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsActorProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "actor". // Panics if the index is out of bounds. func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go index 70672357c..fb8cb302b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go @@ -3,8 +3,8 @@ package propertyalsoknownas import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go index 1be7eaa71..025cd61c7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go @@ -3,8 +3,8 @@ package propertyaltitude import ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go index 362cb0825..ad2be2ce6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go @@ -2,7 +2,7 @@ package propertyanyof -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go index 080f9e57c..d4a22f0d4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go @@ -3,7 +3,7 @@ package propertyanyof import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsAnyOfPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsAnyOfPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsAnyOfPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeApproval() voc return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyApproval() vo return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAnyOfPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeApproval() bool return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyApproval() boo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAnyOfPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceApproval( this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeApproval(v vo this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyApproval(v v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3887,6 +4164,30 @@ func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceApproval(v voc }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "anyOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "anyOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "anyOf". Invalidates iterators that are traversing using // Prev. @@ -3899,6 +4200,30 @@ func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeApproval(v vocab.G }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "anyOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "anyOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "anyOf". Invalidates iterators that are traversing // using Prev. @@ -3911,6 +4236,30 @@ func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyApproval(v vocab. }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "anyOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "anyOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "anyOf" func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ @@ -5014,6 +5363,40 @@ func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialAnnounceApproval(idx i } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "anyOf". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "anyOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "anyOf". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5031,6 +5414,40 @@ func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "anyOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "anyOf". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "anyOf". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5048,6 +5465,40 @@ func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialReplyApproval(idx int, } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "anyOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "anyOf". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "anyOf". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5227,230 +5678,254 @@ func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6321,6 +6796,34 @@ func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceApproval(v vo } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "anyOf". Invalidates all iterators. func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6335,6 +6838,34 @@ func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeApproval(v vocab. } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "anyOf". Invalidates all iterators. func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6349,6 +6880,34 @@ func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyApproval(v vocab } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "anyOf". func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ @@ -7237,6 +7796,32 @@ func (this *ActivityStreamsAnyOfProperty) SetGoToSocialAnnounceApproval(idx int, } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "anyOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "anyOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "anyOf". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7250,6 +7835,32 @@ func (this *ActivityStreamsAnyOfProperty) SetGoToSocialLikeApproval(idx int, v v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "anyOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "anyOf". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAnyOfProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "anyOf". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7263,6 +7874,32 @@ func (this *ActivityStreamsAnyOfProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "anyOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "anyOf". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "anyOf". // Panics if the index is out of bounds. func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go index c055e7544..29fb6634d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go @@ -2,7 +2,7 @@ package propertyattachment -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go index 711f53ab7..81f56f071 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go @@ -3,7 +3,7 @@ package propertyattachment import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsAttachmentPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsAttachmentPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsAttachmentPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceAppro return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeApproval( return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyApproval return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAttachmentPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceApprov return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyApproval( return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAttachmentPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceAppr this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeApproval this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyApprova this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3896,6 +4173,30 @@ func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceApproval( }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "attachment". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "attachment". Invalidates iterators that are traversing // using Prev. @@ -3908,6 +4209,30 @@ func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeApproval(v vo }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "attachment". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "attachment". Invalidates iterators that are // traversing using Prev. @@ -3920,6 +4245,30 @@ func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyApproval(v v }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "attachment". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "attachment" func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) { @@ -5026,6 +5375,40 @@ func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialAnnounceApproval( } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "attachment". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "attachment". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "attachment". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5043,6 +5426,40 @@ func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialLikeApproval(idx } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "attachment". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "attachment". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5060,6 +5477,40 @@ func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialReplyApproval(idx } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "attachment". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "attachment". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "attachment". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5239,230 +5690,254 @@ func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6333,6 +6808,35 @@ func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceApproval } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "attachment". Invalidates all +// iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "attachment". Invalidates all iterators. func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6347,6 +6851,34 @@ func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeApproval(v v } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "attachment". Invalidates all iterators. func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6361,6 +6893,34 @@ func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyApproval(v } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "attachment". func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) { @@ -7250,6 +7810,32 @@ func (this *ActivityStreamsAttachmentProperty) SetGoToSocialAnnounceApproval(idx } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "attachment". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "attachment". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "attachment". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7263,6 +7849,32 @@ func (this *ActivityStreamsAttachmentProperty) SetGoToSocialLikeApproval(idx int } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "attachment". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "attachment". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "attachment". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7276,6 +7888,32 @@ func (this *ActivityStreamsAttachmentProperty) SetGoToSocialReplyApproval(idx in } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "attachment". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "attachment". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "attachment". Panics if the index is out of bounds. func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go index 2918f2260..9755352c6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go @@ -2,7 +2,7 @@ package propertyattributedto -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go index acb72e3a7..04267548b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go @@ -3,7 +3,7 @@ package propertyattributedto import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsAttributedToPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsAttributedToPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsAttributedToPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceApp return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeApprova return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyApprov return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAttributedToPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceAppr return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeApproval return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyApprova return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAttributedToPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceAp this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeApprov this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyAppro this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3936,6 +4213,30 @@ func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceApprova }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "attributedTo". Invalidates iterators +// that are traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "attributedTo". Invalidates iterators that are traversing // using Prev. @@ -3948,6 +4249,30 @@ func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeApproval(v }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "attributedTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "attributedTo". Invalidates iterators that are // traversing using Prev. @@ -3960,6 +4285,30 @@ func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyApproval(v }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "attributedTo". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "attributedTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "attributedTo" func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) { @@ -5067,6 +5416,40 @@ func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialAnnounceApprova } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "attributedTo". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "attributedTo". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "attributedTo". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5084,6 +5467,40 @@ func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialLikeApproval(id } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "attributedTo". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "attributedTo". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "attributedTo". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5101,6 +5518,40 @@ func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialReplyApproval(i } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "attributedTo". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "attributedTo". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "attributedTo". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -5280,230 +5731,254 @@ func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6375,6 +6850,35 @@ func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceApprov } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "attributedTo". Invalidates all +// iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "attributedTo". Invalidates all iterators. func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6389,6 +6893,34 @@ func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeApproval(v } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "attributedTo". Invalidates all iterators. func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6403,6 +6935,34 @@ func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyApproval( } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "attributedTo". func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) { @@ -7292,6 +7852,32 @@ func (this *ActivityStreamsAttributedToProperty) SetGoToSocialAnnounceApproval(i } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "attributedTo". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "attributedTo". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "attributedTo". Panics if the index is out of // bounds. Invalidates all iterators. @@ -7305,6 +7891,32 @@ func (this *ActivityStreamsAttributedToProperty) SetGoToSocialLikeApproval(idx i } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "attributedTo". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "attributedTo". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "attributedTo". Panics if the index is out of // bounds. Invalidates all iterators. @@ -7318,6 +7930,32 @@ func (this *ActivityStreamsAttributedToProperty) SetGoToSocialReplyApproval(idx } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "attributedTo". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "attributedTo". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "attributedTo". Panics if the index is out of bounds. func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go index 5b983aadf..3e8f4ddcc 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go @@ -2,7 +2,7 @@ package propertyaudience -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go index 70d441900..70280dd94 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go @@ -3,7 +3,7 @@ package propertyaudience import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsAudiencePropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsAudiencePropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsAudiencePropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceApprova return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyApproval() return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAudiencePropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceApproval return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeApproval() b return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyApproval() return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAudiencePropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceApprov this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeApproval(v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyApproval( this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3896,6 +4173,30 @@ func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceApproval(v }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "audience". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "audience". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4209,30 @@ func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeApproval(v voca }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "audience". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "audience". Invalidates iterators that are traversing // using Prev. @@ -3920,6 +4245,30 @@ func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyApproval(v voc }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "audience". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "audience" func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ @@ -5024,6 +5373,40 @@ func (this *ActivityStreamsAudienceProperty) InsertGoToSocialAnnounceApproval(id } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "audience". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "audience". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "audience". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5041,6 +5424,40 @@ func (this *ActivityStreamsAudienceProperty) InsertGoToSocialLikeApproval(idx in } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "audience". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "audience". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "audience". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5058,6 +5475,40 @@ func (this *ActivityStreamsAudienceProperty) InsertGoToSocialReplyApproval(idx i } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "audience". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "audience". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "audience". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5237,230 +5688,254 @@ func (this ActivityStreamsAudienceProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6331,6 +6806,35 @@ func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceApproval(v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "audience". Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "audience". Invalidates all iterators. func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6345,6 +6849,34 @@ func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeApproval(v voc } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "audience". Invalidates all iterators. func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6359,6 +6891,34 @@ func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyApproval(v vo } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "audience". func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) { @@ -7248,6 +7808,32 @@ func (this *ActivityStreamsAudienceProperty) SetGoToSocialAnnounceApproval(idx i } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "audience". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "audience". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "audience". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7261,6 +7847,32 @@ func (this *ActivityStreamsAudienceProperty) SetGoToSocialLikeApproval(idx int, } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "audience". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "audience". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "audience". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7274,6 +7886,32 @@ func (this *ActivityStreamsAudienceProperty) SetGoToSocialReplyApproval(idx int, } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "audience". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "audience". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "audience". Panics if the index is out of bounds. func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go index 1c491fec9..e3e71450c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go @@ -2,7 +2,7 @@ package propertybcc -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go index 9d8c0fd8a..476472d9f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go @@ -3,7 +3,7 @@ package propertybcc import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsBccPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsBccPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsBccPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -159,6 +165,18 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsApplicationMember: v, @@ -327,6 +345,18 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsListenMember: v, @@ -441,6 +471,18 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsServiceMember: v, @@ -919,6 +961,20 @@ func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceApproval() v return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -926,6 +982,20 @@ func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeApproval() vocab return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -933,6 +1003,20 @@ func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyApproval() voca return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsBccPropertyIterator) GetIRI() *url.URL { @@ -992,6 +1076,12 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1076,6 +1166,12 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1133,6 +1229,12 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1177,6 +1279,8 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1205,6 +1309,8 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1224,6 +1330,8 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1655,6 +1763,21 @@ func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceApproval() bo return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1662,6 +1785,20 @@ func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeApproval() bool { return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1669,6 +1806,20 @@ func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyApproval() bool return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsBccPropertyIterator) IsIRI() bool { @@ -1724,6 +1875,10 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1780,6 +1935,10 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1818,6 +1977,10 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1878,177 +2041,195 @@ func (this ActivityStreamsBccPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2082,6 +2263,10 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2138,6 +2323,10 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2176,6 +2365,10 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2642,6 +2835,20 @@ func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceApproval(v this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2649,6 +2856,20 @@ func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeApproval(v voca this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2656,6 +2877,20 @@ func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyApproval(v voc this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2725,6 +2960,14 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2837,6 +3080,14 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2913,6 +3164,14 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2968,6 +3227,8 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2996,6 +3257,8 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3015,6 +3278,8 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3050,6 +3315,10 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3106,6 +3375,10 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3144,6 +3417,10 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3885,6 +4162,30 @@ func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceApproval(v vocab }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "bcc". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "bcc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "bcc". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -3896,6 +4197,29 @@ func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeApproval(v vocab.GoT }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "bcc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "bcc". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4232,29 @@ func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyApproval(v vocab.Go }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "bcc". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "bcc" func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ @@ -5010,6 +5357,40 @@ func (this *ActivityStreamsBccProperty) InsertGoToSocialAnnounceApproval(idx int } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "bcc". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "bcc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "bcc". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5027,6 +5408,40 @@ func (this *ActivityStreamsBccProperty) InsertGoToSocialLikeApproval(idx int, v } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "bcc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "bcc". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "bcc". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5044,6 +5459,40 @@ func (this *ActivityStreamsBccProperty) InsertGoToSocialReplyApproval(idx int, v } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "bcc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "bcc". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "bcc". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5223,230 +5672,254 @@ func (this ActivityStreamsBccProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6317,6 +6790,34 @@ func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceApproval(v voca } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "bcc". Invalidates all iterators. func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6331,6 +6832,34 @@ func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeApproval(v vocab.Go } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "bcc". Invalidates all iterators. func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6345,6 +6874,34 @@ func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyApproval(v vocab.G } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "bcc". func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsBccPropertyIterator{{ @@ -7233,6 +7790,32 @@ func (this *ActivityStreamsBccProperty) SetGoToSocialAnnounceApproval(idx int, v } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "bcc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "bcc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "bcc". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7246,6 +7829,32 @@ func (this *ActivityStreamsBccProperty) SetGoToSocialLikeApproval(idx int, v voc } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "bcc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "bcc". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsBccProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "bcc". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7259,6 +7868,32 @@ func (this *ActivityStreamsBccProperty) SetGoToSocialReplyApproval(idx int, v vo } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "bcc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "bcc". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsBccProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "bcc". // Panics if the index is out of bounds. func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go index 19cb8ba79..d2b265bcb 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go @@ -2,7 +2,7 @@ package propertybto -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go index c8e0e7733..5bdb72cac 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go @@ -3,7 +3,7 @@ package propertybto import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsBtoPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsBtoPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsBtoPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -159,6 +165,18 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsApplicationMember: v, @@ -327,6 +345,18 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsListenMember: v, @@ -441,6 +471,18 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsServiceMember: v, @@ -919,6 +961,20 @@ func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceApproval() v return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -926,6 +982,20 @@ func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeApproval() vocab return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -933,6 +1003,20 @@ func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyApproval() voca return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsBtoPropertyIterator) GetIRI() *url.URL { @@ -992,6 +1076,12 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1076,6 +1166,12 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1133,6 +1229,12 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1177,6 +1279,8 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1205,6 +1309,8 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1224,6 +1330,8 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1655,6 +1763,21 @@ func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceApproval() bo return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1662,6 +1785,20 @@ func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeApproval() bool { return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1669,6 +1806,20 @@ func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyApproval() bool return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsBtoPropertyIterator) IsIRI() bool { @@ -1724,6 +1875,10 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1780,6 +1935,10 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1818,6 +1977,10 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1878,177 +2041,195 @@ func (this ActivityStreamsBtoPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2082,6 +2263,10 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2138,6 +2323,10 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2176,6 +2365,10 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2642,6 +2835,20 @@ func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceApproval(v this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2649,6 +2856,20 @@ func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeApproval(v voca this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2656,6 +2877,20 @@ func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyApproval(v voc this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2725,6 +2960,14 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2837,6 +3080,14 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2913,6 +3164,14 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2968,6 +3227,8 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2996,6 +3257,8 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3015,6 +3278,8 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3050,6 +3315,10 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3106,6 +3375,10 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3144,6 +3417,10 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3885,6 +4162,30 @@ func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceApproval(v vocab }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "bto". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "bto". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "bto". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -3896,6 +4197,29 @@ func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeApproval(v vocab.GoT }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "bto". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "bto". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4232,29 @@ func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyApproval(v vocab.Go }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "bto". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "bto" func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ @@ -5010,6 +5357,40 @@ func (this *ActivityStreamsBtoProperty) InsertGoToSocialAnnounceApproval(idx int } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "bto". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "bto". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "bto". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5027,6 +5408,40 @@ func (this *ActivityStreamsBtoProperty) InsertGoToSocialLikeApproval(idx int, v } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "bto". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "bto". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "bto". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5044,6 +5459,40 @@ func (this *ActivityStreamsBtoProperty) InsertGoToSocialReplyApproval(idx int, v } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "bto". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "bto". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "bto". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5223,230 +5672,254 @@ func (this ActivityStreamsBtoProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6317,6 +6790,34 @@ func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceApproval(v voca } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "bto". Invalidates all iterators. func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6331,6 +6832,34 @@ func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeApproval(v vocab.Go } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "bto". Invalidates all iterators. func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6345,6 +6874,34 @@ func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyApproval(v vocab.G } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "bto". func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ @@ -7233,6 +7790,32 @@ func (this *ActivityStreamsBtoProperty) SetGoToSocialAnnounceApproval(idx int, v } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "bto". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "bto". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "bto". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7246,6 +7829,32 @@ func (this *ActivityStreamsBtoProperty) SetGoToSocialLikeApproval(idx int, v voc } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "bto". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "bto". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsBtoProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "bto". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7259,6 +7868,32 @@ func (this *ActivityStreamsBtoProperty) SetGoToSocialReplyApproval(idx int, v vo } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "bto". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "bto". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "bto". // Panics if the index is out of bounds. func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go index a7f80de8a..e0ba13656 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go @@ -2,7 +2,7 @@ package propertycc -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go index 65f85417e..930063768 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go @@ -3,7 +3,7 @@ package propertycc import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsCcPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsCcPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsCcPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -159,6 +165,18 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsApplicationMember: v, @@ -327,6 +345,18 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsListenMember: v, @@ -441,6 +471,18 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsServiceMember: v, @@ -919,6 +961,20 @@ func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceApproval() vo return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -926,6 +982,20 @@ func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeApproval() vocab. return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -933,6 +1003,20 @@ func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyApproval() vocab return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsCcPropertyIterator) GetIRI() *url.URL { @@ -992,6 +1076,12 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1076,6 +1166,12 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1133,6 +1229,12 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1177,6 +1279,8 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1205,6 +1309,8 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1224,6 +1330,8 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1655,6 +1763,21 @@ func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceApproval() boo return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1662,6 +1785,20 @@ func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeApproval() bool { return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1669,6 +1806,20 @@ func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyApproval() bool { return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsCcPropertyIterator) IsIRI() bool { @@ -1724,6 +1875,10 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1780,6 +1935,10 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1818,6 +1977,10 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1878,177 +2041,195 @@ func (this ActivityStreamsCcPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2082,6 +2263,10 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2138,6 +2323,10 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2176,6 +2365,10 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2642,6 +2835,20 @@ func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceApproval(v v this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2649,6 +2856,20 @@ func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeApproval(v vocab this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2656,6 +2877,20 @@ func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyApproval(v voca this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2725,6 +2960,14 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2837,6 +3080,14 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2913,6 +3164,14 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2968,6 +3227,8 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2996,6 +3257,8 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3015,6 +3278,8 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3050,6 +3315,10 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3106,6 +3375,10 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3144,6 +3417,10 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3885,6 +4162,30 @@ func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceApproval(v vocab. }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "cc". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "cc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "cc". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -3896,6 +4197,29 @@ func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeApproval(v vocab.GoTo }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "cc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "cc". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4232,29 @@ func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyApproval(v vocab.GoT }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "cc". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "cc" func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ @@ -5010,6 +5357,40 @@ func (this *ActivityStreamsCcProperty) InsertGoToSocialAnnounceApproval(idx int, } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "cc". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "cc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "cc". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5027,6 +5408,40 @@ func (this *ActivityStreamsCcProperty) InsertGoToSocialLikeApproval(idx int, v v } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "cc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "cc". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "cc". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5044,6 +5459,40 @@ func (this *ActivityStreamsCcProperty) InsertGoToSocialReplyApproval(idx int, v } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "cc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "cc". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "cc". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5223,230 +5672,254 @@ func (this ActivityStreamsCcProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6317,6 +6790,34 @@ func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceApproval(v vocab } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "cc". Invalidates all iterators. func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6331,6 +6832,34 @@ func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeApproval(v vocab.GoT } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "cc". Invalidates all iterators. func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6345,6 +6874,34 @@ func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyApproval(v vocab.Go } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "cc". func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsCcPropertyIterator{{ @@ -7233,6 +7790,32 @@ func (this *ActivityStreamsCcProperty) SetGoToSocialAnnounceApproval(idx int, v } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "cc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "cc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "cc". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7246,6 +7829,32 @@ func (this *ActivityStreamsCcProperty) SetGoToSocialLikeApproval(idx int, v voca } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "cc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "cc". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsCcProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "cc". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7259,6 +7868,32 @@ func (this *ActivityStreamsCcProperty) SetGoToSocialReplyApproval(idx int, v voc } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "cc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "cc". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsCcProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "cc". // Panics if the index is out of bounds. func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go index ea795aad4..1dfcf9653 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go @@ -2,7 +2,7 @@ package propertyclosed -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go index 65e4d87d2..d2ed32d7a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go @@ -3,9 +3,9 @@ package propertyclosed import ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" "time" @@ -29,6 +29,8 @@ type ActivityStreamsClosedPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -57,6 +59,8 @@ type ActivityStreamsClosedPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -76,6 +80,8 @@ type ActivityStreamsClosedPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -167,6 +173,18 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsApplicationMember: v, @@ -335,6 +353,18 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsListenMember: v, @@ -449,6 +479,18 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsServiceMember: v, @@ -942,6 +984,20 @@ func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceApproval( return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -949,6 +1005,20 @@ func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeApproval() vo return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -956,6 +1026,20 @@ func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyApproval() v return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsClosedPropertyIterator) GetIRI() *url.URL { @@ -1015,6 +1099,12 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1099,6 +1189,12 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1156,6 +1252,12 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1215,6 +1317,8 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1243,6 +1347,8 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1262,6 +1368,8 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1693,6 +1801,21 @@ func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1700,6 +1823,20 @@ func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeApproval() boo return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1707,6 +1844,20 @@ func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyApproval() bo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsClosedPropertyIterator) IsIRI() bool { @@ -1776,6 +1927,10 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1832,6 +1987,10 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1870,6 +2029,10 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1936,177 +2099,195 @@ func (this ActivityStreamsClosedPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 9 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 10 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 11 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 12 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 13 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 14 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 15 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 16 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 17 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 18 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 19 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 20 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 21 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 27 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 37 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 38 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 39 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 40 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 41 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 42 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 43 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 44 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 45 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 46 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 47 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 48 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 49 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 50 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 51 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 52 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 53 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 54 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 55 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 56 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 57 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 58 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 59 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 60 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 61 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 62 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 63 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 64 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 65 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 66 } + if this.IsFunkwhaleTrack() { + return 67 + } + if this.IsActivityStreamsTravel() { + return 68 + } + if this.IsActivityStreamsUndo() { + return 69 + } + if this.IsActivityStreamsUpdate() { + return 70 + } + if this.IsActivityStreamsVideo() { + return 71 + } + if this.IsActivityStreamsView() { + return 72 + } if this.IsIRI() { return -2 } @@ -2144,6 +2325,10 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2200,6 +2385,10 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2238,6 +2427,10 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2704,6 +2897,20 @@ func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceApproval this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2711,6 +2918,20 @@ func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeApproval(v v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2718,6 +2939,20 @@ func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyApproval(v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2787,6 +3022,14 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2899,6 +3142,14 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2975,6 +3226,14 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -3048,6 +3307,8 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -3076,6 +3337,8 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3095,6 +3358,8 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3134,6 +3399,10 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3190,6 +3459,10 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3228,6 +3501,10 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3970,6 +4247,30 @@ func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceApproval(v vo }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "closed". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "closed". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "closed". Invalidates iterators that are traversing using // Prev. @@ -3982,6 +4283,30 @@ func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeApproval(v vocab. }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "closed". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "closed". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "closed". Invalidates iterators that are traversing // using Prev. @@ -3994,6 +4319,30 @@ func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyApproval(v vocab }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "closed". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "closed". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "closed" func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ @@ -5121,6 +5470,40 @@ func (this *ActivityStreamsClosedProperty) InsertGoToSocialAnnounceApproval(idx } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "closed". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "closed". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "closed". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5138,6 +5521,40 @@ func (this *ActivityStreamsClosedProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "closed". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "closed". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "closed". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5155,6 +5572,40 @@ func (this *ActivityStreamsClosedProperty) InsertGoToSocialReplyApproval(idx int } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "closed". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "closed". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "closed". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5378,230 +5829,254 @@ func (this ActivityStreamsClosedProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 10 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 72 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6472,6 +6947,34 @@ func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceApproval(v v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "closed". Invalidates all iterators. func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6486,6 +6989,34 @@ func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeApproval(v vocab } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "closed". Invalidates all iterators. func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6500,6 +7031,34 @@ func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyApproval(v voca } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "closed". func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) { @@ -7419,6 +7978,32 @@ func (this *ActivityStreamsClosedProperty) SetGoToSocialAnnounceApproval(idx int } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "closed". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "closed". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "closed". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7432,6 +8017,32 @@ func (this *ActivityStreamsClosedProperty) SetGoToSocialLikeApproval(idx int, v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "closed". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "closed". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "closed". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7445,6 +8056,32 @@ func (this *ActivityStreamsClosedProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "closed". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "closed". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "closed". Panics if the index is out of bounds. func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go index e66435b21..e75a1daf9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go @@ -3,9 +3,9 @@ package propertycontent import ( - langstring "codeberg.org/superseriousbusiness/activity/streams/values/langString" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + langstring "code.superseriousbusiness.org/activity/streams/values/langString" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go index 28f3ce9d6..cf30a8655 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go @@ -2,7 +2,7 @@ package propertycontext -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go index cdbd05549..590719bcd 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go @@ -3,7 +3,7 @@ package propertycontext import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsContextPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsContextPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsContextPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceApproval return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeApproval() v return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyApproval() return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceApproval( return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeApproval() bo return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyApproval() b return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsContextPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceApprova this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeApproval(v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyApproval(v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3896,6 +4173,30 @@ func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceApproval(v v }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "context". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "context". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "context". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4209,30 @@ func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeApproval(v vocab }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "context". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "context". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "context". Invalidates iterators that are traversing // using Prev. @@ -3920,6 +4245,30 @@ func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyApproval(v voca }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "context". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "context". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "context" func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ @@ -5024,6 +5373,40 @@ func (this *ActivityStreamsContextProperty) InsertGoToSocialAnnounceApproval(idx } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "context". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "context". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "context". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5041,6 +5424,40 @@ func (this *ActivityStreamsContextProperty) InsertGoToSocialLikeApproval(idx int } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "context". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "context". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "context". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5058,6 +5475,40 @@ func (this *ActivityStreamsContextProperty) InsertGoToSocialReplyApproval(idx in } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "context". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "context". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "context". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5237,230 +5688,254 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6331,6 +6806,34 @@ func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceApproval(v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "context". Invalidates all iterators. func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6345,6 +6848,34 @@ func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeApproval(v voca } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "context". Invalidates all iterators. func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6359,6 +6890,34 @@ func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyApproval(v voc } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "context". func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) { @@ -7248,6 +7807,32 @@ func (this *ActivityStreamsContextProperty) SetGoToSocialAnnounceApproval(idx in } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "context". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "context". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "context". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7261,6 +7846,32 @@ func (this *ActivityStreamsContextProperty) SetGoToSocialLikeApproval(idx int, v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "context". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "context". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "context". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7274,6 +7885,32 @@ func (this *ActivityStreamsContextProperty) SetGoToSocialReplyApproval(idx int, } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "context". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "context". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "context". Panics if the index is out of bounds. func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_pkg.go index 7a73b70a6..7bd714c9b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_pkg.go @@ -2,7 +2,7 @@ package propertycurrent -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go index 73f9e6d83..5dc583750 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go @@ -3,7 +3,7 @@ package propertycurrent import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go index 2a4b5067e..52c15ca73 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go @@ -3,8 +3,8 @@ package propertydeleted import ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" "time" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go similarity index 90% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go index ea9e6cc22..5127ea951 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go @@ -2,7 +2,7 @@ package propertydescribes -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -140,6 +148,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeListenActivityStreams returns the deserialization method for // the "ActivityStreamsListen" non-functional property in the // vocabulary "ActivityStreams" @@ -217,6 +233,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go similarity index 90% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go index c0be22be1..139e0a8b9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go @@ -3,7 +3,7 @@ package propertydescribes import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -21,6 +21,8 @@ type ActivityStreamsDescribesProperty struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -48,6 +50,8 @@ type ActivityStreamsDescribesProperty struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMoveMember vocab.ActivityStreamsMove activitystreamsNoteMember vocab.ActivityStreamsNote @@ -66,6 +70,8 @@ type ActivityStreamsDescribesProperty struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -151,6 +157,18 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsApplicationMember: v, @@ -313,6 +331,18 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsListenMember: v, @@ -421,6 +451,18 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsServiceMember: v, @@ -507,6 +549,8 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -534,6 +578,8 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMoveMember = nil this.activitystreamsNoteMember = nil @@ -552,6 +598,8 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -961,6 +1009,20 @@ func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceApproval() voc return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -968,6 +1030,20 @@ func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeApproval() vocab.G return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -975,6 +1051,20 @@ func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyApproval() vocab. return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL { @@ -1025,6 +1115,12 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1106,6 +1202,12 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1160,6 +1262,12 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1203,6 +1311,8 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1230,6 +1340,8 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMove() || this.IsActivityStreamsNote() || @@ -1248,6 +1360,8 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1665,6 +1779,21 @@ func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceApproval() bool return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1672,6 +1801,20 @@ func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeApproval() bool { return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1679,6 +1822,20 @@ func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyApproval() bool { return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsDescribesProperty) IsIRI() bool { @@ -1725,6 +1882,10 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1779,6 +1940,10 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMove() { @@ -1815,6 +1980,10 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1872,171 +2041,189 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 9 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 10 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 11 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 12 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 13 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 14 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 15 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 16 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 17 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 18 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 19 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 20 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 21 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 22 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeAuthorization() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsGoToSocialLikeRequest() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsListen() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 55 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 56 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 57 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 58 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 59 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 60 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 61 } + if this.IsFunkwhaleTrack() { + return 62 + } + if this.IsActivityStreamsTravel() { + return 63 + } + if this.IsActivityStreamsUndo() { + return 64 + } + if this.IsActivityStreamsUpdate() { + return 65 + } + if this.IsActivityStreamsVideo() { + return 66 + } + if this.IsActivityStreamsView() { + return 67 + } if this.IsIRI() { return -2 } @@ -2068,6 +2255,10 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2122,6 +2313,10 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMove() { @@ -2158,6 +2353,10 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2212,6 +2411,10 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2266,6 +2469,10 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMove() { @@ -2302,6 +2509,10 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -2727,6 +2938,20 @@ func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceApproval(v vo this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.Clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.Clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2734,6 +2959,20 @@ func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeApproval(v vocab. this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.Clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.Clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2741,6 +2980,20 @@ func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyApproval(v vocab this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.Clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.Clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) { this.Clear() @@ -2799,6 +3052,14 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2907,6 +3168,14 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2979,6 +3248,14 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go index 94674eb5f..a25557352 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go @@ -3,8 +3,8 @@ package propertyduration import ( - duration "codeberg.org/superseriousbusiness/activity/streams/values/duration" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + duration "code.superseriousbusiness.org/activity/streams/values/duration" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" "time" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go index 68c30a1fa..23f9aa498 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go @@ -2,7 +2,7 @@ package propertyendpoints -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go index 63dedf006..dcdd5878e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go @@ -3,7 +3,7 @@ package propertyendpoints import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go index ea3210c02..267ddb7fe 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go @@ -3,8 +3,8 @@ package propertyendtime import ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" "time" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_pkg.go index d22ff83d4..d6655f96d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_pkg.go @@ -2,7 +2,7 @@ package propertyfirst -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go index 02fbf6b43..7dacd3082 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go @@ -3,7 +3,7 @@ package propertyfirst import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_pkg.go index d12a5eb09..afb41bc45 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_pkg.go @@ -2,7 +2,7 @@ package propertyfollowers -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go index 953f055bc..d34c0f919 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go @@ -3,7 +3,7 @@ package propertyfollowers import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_pkg.go index 05eb97f28..a8a5f0239 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_pkg.go @@ -2,7 +2,7 @@ package propertyfollowing -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go index 5d26efa95..31f6b9a9c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go @@ -3,7 +3,7 @@ package propertyfollowing import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go similarity index 90% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go index 2c3c0589d..f6d4de64e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go @@ -2,7 +2,7 @@ package propertyformertype -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -140,6 +148,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeListenActivityStreams returns the deserialization method for // the "ActivityStreamsListen" non-functional property in the // vocabulary "ActivityStreams" @@ -217,6 +233,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go index 640028ff1..66a784524 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go @@ -3,8 +3,8 @@ package propertyformertype import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -24,6 +24,8 @@ type ActivityStreamsFormerTypePropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -51,6 +53,8 @@ type ActivityStreamsFormerTypePropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMoveMember vocab.ActivityStreamsMove activitystreamsNoteMember vocab.ActivityStreamsNote @@ -69,6 +73,8 @@ type ActivityStreamsFormerTypePropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -154,6 +160,18 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsApplicationMember: v, @@ -316,6 +334,18 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsListenMember: v, @@ -424,6 +454,18 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsServiceMember: v, @@ -896,6 +938,20 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceAppro return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -903,6 +959,20 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeApproval( return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -910,6 +980,20 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyApproval return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsFormerTypePropertyIterator) GetIRI() *url.URL { @@ -960,6 +1044,12 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1041,6 +1131,12 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1095,6 +1191,12 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1145,6 +1247,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1172,6 +1276,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMove() || this.IsActivityStreamsNote() || @@ -1190,6 +1296,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1607,6 +1715,21 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceApprov return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1614,6 +1737,20 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1621,6 +1758,20 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyApproval( return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsFormerTypePropertyIterator) IsIRI() bool { @@ -1674,6 +1825,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1728,6 +1883,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMove() { @@ -1764,6 +1923,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1824,171 +1987,189 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 27 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 28 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 29 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 30 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 31 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 32 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 33 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 34 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 35 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 36 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeAuthorization() { return 37 } - if this.IsActivityStreamsOffer() { + if this.IsGoToSocialLikeRequest() { return 38 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsListen() { return 39 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 40 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 41 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 42 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 43 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 44 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 45 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 46 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 47 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 48 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 49 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 50 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 51 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 52 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 53 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 54 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 55 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 56 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 57 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 58 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 59 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 60 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 61 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 62 } + if this.IsFunkwhaleTrack() { + return 63 + } + if this.IsActivityStreamsTravel() { + return 64 + } + if this.IsActivityStreamsUndo() { + return 65 + } + if this.IsActivityStreamsUpdate() { + return 66 + } + if this.IsActivityStreamsVideo() { + return 67 + } + if this.IsActivityStreamsView() { + return 68 + } if this.IsIRI() { return -2 } @@ -2022,6 +2203,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2076,6 +2261,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMove() { @@ -2112,6 +2301,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2564,6 +2757,20 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceAppr this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2571,6 +2778,20 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeApproval this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2578,6 +2799,20 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyApprova this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2636,6 +2871,14 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2744,6 +2987,14 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2816,6 +3067,14 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2879,6 +3138,8 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2906,6 +3167,8 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMoveMember = nil this.activitystreamsNoteMember = nil @@ -2924,6 +3187,8 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2959,6 +3224,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3013,6 +3282,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMove() { @@ -3049,6 +3322,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3777,6 +4054,30 @@ func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceApproval( }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "formerType". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "formerType". Invalidates iterators that are traversing // using Prev. @@ -3789,6 +4090,30 @@ func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeApproval(v vo }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "formerType". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "formerType". Invalidates iterators that are // traversing using Prev. @@ -3801,6 +4126,30 @@ func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyApproval(v v }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "formerType". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "formerType" func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) { @@ -4874,6 +5223,40 @@ func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialAnnounceApproval( } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "formerType". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "formerType". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "formerType". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4891,6 +5274,40 @@ func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialLikeApproval(idx } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "formerType". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "formerType". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4908,6 +5325,40 @@ func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialReplyApproval(idx } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "formerType". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "formerType". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "formerType". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5088,222 +5539,246 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6146,6 +6621,35 @@ func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceApproval } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "formerType". Invalidates all +// iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "formerType". Invalidates all iterators. func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6160,6 +6664,34 @@ func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeApproval(v v } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "formerType". Invalidates all iterators. func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6174,6 +6706,34 @@ func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyApproval(v } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "formerType". func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) { @@ -7038,6 +7598,32 @@ func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialAnnounceApproval(idx } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "formerType". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "formerType". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "formerType". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7051,6 +7637,32 @@ func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialLikeApproval(idx int } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "formerType". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "formerType". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "formerType". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7064,6 +7676,32 @@ func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialReplyApproval(idx in } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "formerType". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "formerType". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "formerType". Panics if the index is out of bounds. func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go index f95bf1def..c0a57ce1c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go @@ -2,7 +2,7 @@ package propertygenerator -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go index 853cfe0ed..0fead0258 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go @@ -3,7 +3,7 @@ package propertygenerator import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsGeneratorPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsGeneratorPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsGeneratorPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceApprov return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyApproval( return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsGeneratorPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceApprova return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyApproval() return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsGeneratorPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceAppro this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeApproval( this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyApproval this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3896,6 +4173,30 @@ func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceApproval(v }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "generator". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "generator". Invalidates iterators that are traversing // using Prev. @@ -3908,6 +4209,30 @@ func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeApproval(v voc }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "generator". Invalidates iterators that are traversing // using Prev. @@ -3920,6 +4245,30 @@ func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyApproval(v vo }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "generator" func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ @@ -5024,6 +5373,40 @@ func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialAnnounceApproval(i } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "generator". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "generator". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "generator". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5041,6 +5424,40 @@ func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialLikeApproval(idx i } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "generator". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "generator". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5058,6 +5475,40 @@ func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialReplyApproval(idx } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "generator". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "generator". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "generator". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5237,230 +5688,254 @@ func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6331,6 +6806,35 @@ func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceApproval( } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "generator". Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "generator". Invalidates all iterators. func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6345,6 +6849,34 @@ func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeApproval(v vo } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "generator". Invalidates all iterators. func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6359,6 +6891,34 @@ func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyApproval(v v } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "generator". func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) { @@ -7248,6 +7808,32 @@ func (this *ActivityStreamsGeneratorProperty) SetGoToSocialAnnounceApproval(idx } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "generator". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "generator". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "generator". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7261,6 +7847,32 @@ func (this *ActivityStreamsGeneratorProperty) SetGoToSocialLikeApproval(idx int, } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "generator". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "generator". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "generator". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7274,6 +7886,32 @@ func (this *ActivityStreamsGeneratorProperty) SetGoToSocialReplyApproval(idx int } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "generator". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "generator". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "generator". Panics if the index is out of bounds. func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go index f77084a68..9c5536c7f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go @@ -3,8 +3,8 @@ package propertyheight import ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go index 9ed6a4197..c357f050e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go @@ -3,8 +3,8 @@ package propertyhref import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go index 43d41bb70..7e93125ed 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go @@ -3,8 +3,8 @@ package propertyhreflang import ( - bcp47 "codeberg.org/superseriousbusiness/activity/streams/values/bcp47" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + bcp47 "code.superseriousbusiness.org/activity/streams/values/bcp47" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_pkg.go similarity index 95% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_pkg.go index f643f6375..bae50173f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_pkg.go @@ -2,7 +2,7 @@ package propertyicon -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go index cefc12899..cf19197ec 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go @@ -3,7 +3,7 @@ package propertyicon import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_pkg.go similarity index 95% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_pkg.go index c98579e4f..70565bb83 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_pkg.go @@ -2,7 +2,7 @@ package propertyimage -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go index 3d47b3aa2..93797ffe6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go @@ -3,7 +3,7 @@ package propertyimage import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go similarity index 94% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go index aa464556f..1abd51c4c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go @@ -2,7 +2,7 @@ package propertyinbox -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go index ffc020203..fe3bdf210 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go @@ -3,7 +3,7 @@ package propertyinbox import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go index 02fbf08be..4a3e2ec55 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go @@ -2,7 +2,7 @@ package propertyinreplyto -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go index d7ad7dae1..3e03a769f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go @@ -3,7 +3,7 @@ package propertyinreplyto import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsInReplyToPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsInReplyToPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsInReplyToPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceApprov return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyApproval( return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsInReplyToPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceApprova return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyApproval() return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsInReplyToPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceAppro this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeApproval( this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyApproval this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3896,6 +4173,30 @@ func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceApproval(v }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "inReplyTo". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "inReplyTo". Invalidates iterators that are traversing // using Prev. @@ -3908,6 +4209,30 @@ func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeApproval(v voc }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "inReplyTo". Invalidates iterators that are traversing // using Prev. @@ -3920,6 +4245,30 @@ func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyApproval(v vo }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "inReplyTo" func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ @@ -5024,6 +5373,40 @@ func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialAnnounceApproval(i } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "inReplyTo". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "inReplyTo". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "inReplyTo". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5041,6 +5424,40 @@ func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialLikeApproval(idx i } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "inReplyTo". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "inReplyTo". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5058,6 +5475,40 @@ func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialReplyApproval(idx } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "inReplyTo". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "inReplyTo". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "inReplyTo". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5237,230 +5688,254 @@ func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6331,6 +6806,35 @@ func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceApproval( } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "inReplyTo". Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "inReplyTo". Invalidates all iterators. func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6345,6 +6849,34 @@ func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeApproval(v vo } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "inReplyTo". Invalidates all iterators. func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6359,6 +6891,34 @@ func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyApproval(v v } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "inReplyTo". func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) { @@ -7248,6 +7808,32 @@ func (this *ActivityStreamsInReplyToProperty) SetGoToSocialAnnounceApproval(idx } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "inReplyTo". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "inReplyTo". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "inReplyTo". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7261,6 +7847,32 @@ func (this *ActivityStreamsInReplyToProperty) SetGoToSocialLikeApproval(idx int, } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "inReplyTo". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "inReplyTo". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "inReplyTo". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7274,6 +7886,32 @@ func (this *ActivityStreamsInReplyToProperty) SetGoToSocialReplyApproval(idx int } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "inReplyTo". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "inReplyTo". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "inReplyTo". Panics if the index is out of bounds. func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go index b3d433ce9..9d6fe156b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go @@ -2,7 +2,7 @@ package propertyinstrument -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go index 09ae36386..234d3f3a6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go @@ -3,7 +3,7 @@ package propertyinstrument import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsInstrumentPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsInstrumentPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsInstrumentPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceAppro return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeApproval( return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyApproval return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsInstrumentPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceApprov return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyApproval( return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsInstrumentPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceAppr this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeApproval this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyApprova this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3896,6 +4173,30 @@ func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceApproval( }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "instrument". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "instrument". Invalidates iterators that are traversing // using Prev. @@ -3908,6 +4209,30 @@ func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeApproval(v vo }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "instrument". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "instrument". Invalidates iterators that are // traversing using Prev. @@ -3920,6 +4245,30 @@ func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyApproval(v v }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "instrument". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "instrument" func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) { @@ -5026,6 +5375,40 @@ func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialAnnounceApproval( } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "instrument". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "instrument". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "instrument". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5043,6 +5426,40 @@ func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialLikeApproval(idx } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "instrument". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "instrument". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5060,6 +5477,40 @@ func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialReplyApproval(idx } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "instrument". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "instrument". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "instrument". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5239,230 +5690,254 @@ func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6333,6 +6808,35 @@ func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceApproval } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "instrument". Invalidates all +// iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "instrument". Invalidates all iterators. func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6347,6 +6851,34 @@ func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeApproval(v v } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "instrument". Invalidates all iterators. func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6361,6 +6893,34 @@ func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyApproval(v } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "instrument". func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) { @@ -7250,6 +7810,32 @@ func (this *ActivityStreamsInstrumentProperty) SetGoToSocialAnnounceApproval(idx } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "instrument". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "instrument". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "instrument". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7263,6 +7849,32 @@ func (this *ActivityStreamsInstrumentProperty) SetGoToSocialLikeApproval(idx int } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "instrument". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "instrument". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "instrument". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7276,6 +7888,32 @@ func (this *ActivityStreamsInstrumentProperty) SetGoToSocialReplyApproval(idx in } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "instrument". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "instrument". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "instrument". Panics if the index is out of bounds. func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go index 3289ac3f3..1ab2dc2ad 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go @@ -2,7 +2,7 @@ package propertyitems -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go index f2cdb668f..554c9d113 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go @@ -3,7 +3,7 @@ package propertyitems import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsItemsPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsItemsPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsItemsPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeApproval() voc return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyApproval() vo return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsItemsPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeApproval() bool return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyApproval() boo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsItemsPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsItemsPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceApproval( this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeApproval(v vo this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyApproval(v v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3887,6 +4164,30 @@ func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceApproval(v voc }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "items". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "items". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "items". Invalidates iterators that are traversing using // Prev. @@ -3899,6 +4200,30 @@ func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeApproval(v vocab.G }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "items". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "items". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "items". Invalidates iterators that are traversing // using Prev. @@ -3911,6 +4236,30 @@ func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyApproval(v vocab. }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "items". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "items". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "items" func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ @@ -5014,6 +5363,40 @@ func (this *ActivityStreamsItemsProperty) InsertGoToSocialAnnounceApproval(idx i } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "items". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "items". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "items". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5031,6 +5414,40 @@ func (this *ActivityStreamsItemsProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "items". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "items". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "items". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5048,6 +5465,40 @@ func (this *ActivityStreamsItemsProperty) InsertGoToSocialReplyApproval(idx int, } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "items". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "items". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "items". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5227,230 +5678,254 @@ func (this ActivityStreamsItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6321,6 +6796,34 @@ func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceApproval(v vo } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "items". Invalidates all iterators. func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6335,6 +6838,34 @@ func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeApproval(v vocab. } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "items". Invalidates all iterators. func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6349,6 +6880,34 @@ func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyApproval(v vocab } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "items". func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ @@ -7237,6 +7796,32 @@ func (this *ActivityStreamsItemsProperty) SetGoToSocialAnnounceApproval(idx int, } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "items". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "items". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "items". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7250,6 +7835,32 @@ func (this *ActivityStreamsItemsProperty) SetGoToSocialLikeApproval(idx int, v v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "items". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "items". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsItemsProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "items". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7263,6 +7874,32 @@ func (this *ActivityStreamsItemsProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "items". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "items". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "items". // Panics if the index is out of bounds. func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_pkg.go index 961251f31..2d65e62c2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_pkg.go @@ -2,7 +2,7 @@ package propertylast -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go index 75abb3171..a8c710acf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go @@ -3,7 +3,7 @@ package propertylast import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go index fdc140e8f..fd5bd467f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go @@ -3,8 +3,8 @@ package propertylatitude import ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_pkg.go index 1aa6df052..face6b248 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_pkg.go @@ -2,7 +2,7 @@ package propertyliked -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go index 8af9e0746..ce532ec27 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go @@ -3,7 +3,7 @@ package propertyliked import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_pkg.go index 17a7f454c..5f5ef3344 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_pkg.go @@ -2,7 +2,7 @@ package propertylikes -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go index a41122301..8fd0cfa36 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go @@ -3,7 +3,7 @@ package propertylikes import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go index feba0ecc9..d1cbcc55a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go @@ -2,7 +2,7 @@ package propertylocation -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go index 19e93d6cf..714b5de87 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go @@ -3,7 +3,7 @@ package propertylocation import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsLocationPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsLocationPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsLocationPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceApprova return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeApproval() return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyApproval() return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsLocationPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceApproval return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeApproval() b return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyApproval() return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsLocationPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsLocationPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceApprov this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeApproval(v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyApproval( this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3896,6 +4173,30 @@ func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceApproval(v }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "location". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "location". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4209,30 @@ func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeApproval(v voca }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "location". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "location". Invalidates iterators that are traversing // using Prev. @@ -3920,6 +4245,30 @@ func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyApproval(v voc }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "location". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "location" func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ @@ -5024,6 +5373,40 @@ func (this *ActivityStreamsLocationProperty) InsertGoToSocialAnnounceApproval(id } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "location". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "location". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "location". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5041,6 +5424,40 @@ func (this *ActivityStreamsLocationProperty) InsertGoToSocialLikeApproval(idx in } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "location". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "location". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "location". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5058,6 +5475,40 @@ func (this *ActivityStreamsLocationProperty) InsertGoToSocialReplyApproval(idx i } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "location". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "location". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "location". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5237,230 +5688,254 @@ func (this ActivityStreamsLocationProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6331,6 +6806,35 @@ func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceApproval(v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "location". Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "location". Invalidates all iterators. func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6345,6 +6849,34 @@ func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeApproval(v voc } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "location". Invalidates all iterators. func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6359,6 +6891,34 @@ func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyApproval(v vo } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "location". func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) { @@ -7248,6 +7808,32 @@ func (this *ActivityStreamsLocationProperty) SetGoToSocialAnnounceApproval(idx i } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "location". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "location". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "location". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7261,6 +7847,32 @@ func (this *ActivityStreamsLocationProperty) SetGoToSocialLikeApproval(idx int, } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "location". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "location". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "location". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7274,6 +7886,32 @@ func (this *ActivityStreamsLocationProperty) SetGoToSocialReplyApproval(idx int, } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "location". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "location". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "location". Panics if the index is out of bounds. func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go index 4729fdba6..0a30856f7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go @@ -3,8 +3,8 @@ package propertylongitude import ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go index 502977773..228469a33 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go @@ -3,8 +3,8 @@ package propertymanuallyapprovesfollowers import ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go index 7762ba8eb..f1c1f7ad6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go @@ -3,8 +3,8 @@ package propertymediatype import ( - rfc2045 "codeberg.org/superseriousbusiness/activity/streams/values/rfc2045" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + rfc2045 "code.superseriousbusiness.org/activity/streams/values/rfc2045" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go index 8d01ff273..63431b29a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go @@ -3,8 +3,8 @@ package propertymovedto import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go index d348af97e..b61f976f4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go @@ -3,9 +3,9 @@ package propertyname import ( - langstring "codeberg.org/superseriousbusiness/activity/streams/values/langString" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + langstring "code.superseriousbusiness.org/activity/streams/values/langString" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_pkg.go index 7bd07af61..be6b27efa 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_pkg.go @@ -2,7 +2,7 @@ package propertynext -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go index 88d8a767c..05312045b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go @@ -3,7 +3,7 @@ package propertynext import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go index 8487a5a75..77ff4c192 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go @@ -2,7 +2,7 @@ package propertyobject -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go index 2a9ad14dd..74fe58c0b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go @@ -3,7 +3,7 @@ package propertyobject import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsObjectPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsObjectPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsObjectPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceApproval( return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeApproval() vo return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyApproval() v return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsObjectPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeApproval() boo return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyApproval() bo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsObjectPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsObjectPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceApproval this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeApproval(v v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyApproval(v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3887,6 +4164,30 @@ func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceApproval(v vo }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "object". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "object". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "object". Invalidates iterators that are traversing using // Prev. @@ -3899,6 +4200,30 @@ func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeApproval(v vocab. }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "object". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "object". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "object". Invalidates iterators that are traversing // using Prev. @@ -3911,6 +4236,30 @@ func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyApproval(v vocab }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "object". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "object". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "object" func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ @@ -5014,6 +5363,40 @@ func (this *ActivityStreamsObjectProperty) InsertGoToSocialAnnounceApproval(idx } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "object". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "object". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "object". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5031,6 +5414,40 @@ func (this *ActivityStreamsObjectProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "object". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "object". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "object". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5048,6 +5465,40 @@ func (this *ActivityStreamsObjectProperty) InsertGoToSocialReplyApproval(idx int } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "object". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "object". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "object". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5227,230 +5678,254 @@ func (this ActivityStreamsObjectProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6321,6 +6796,34 @@ func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceApproval(v v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "object". Invalidates all iterators. func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6335,6 +6838,34 @@ func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeApproval(v vocab } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "object". Invalidates all iterators. func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6349,6 +6880,34 @@ func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyApproval(v voca } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "object". func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) { @@ -7238,6 +7797,32 @@ func (this *ActivityStreamsObjectProperty) SetGoToSocialAnnounceApproval(idx int } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "object". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "object". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "object". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7251,6 +7836,32 @@ func (this *ActivityStreamsObjectProperty) SetGoToSocialLikeApproval(idx int, v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "object". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "object". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "object". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7264,6 +7875,32 @@ func (this *ActivityStreamsObjectProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "object". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "object". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "object". Panics if the index is out of bounds. func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go index e6ac8fb90..c3777073e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go @@ -2,7 +2,7 @@ package propertyoneof -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go index 42b8aff52..99bc8de63 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go @@ -3,7 +3,7 @@ package propertyoneof import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsOneOfPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsOneOfPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsOneOfPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeApproval() voc return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyApproval() vo return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOneOfPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeApproval() bool return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyApproval() boo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOneOfPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceApproval( this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeApproval(v vo this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyApproval(v v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3887,6 +4164,30 @@ func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceApproval(v voc }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "oneOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "oneOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "oneOf". Invalidates iterators that are traversing using // Prev. @@ -3899,6 +4200,30 @@ func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeApproval(v vocab.G }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "oneOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "oneOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "oneOf". Invalidates iterators that are traversing // using Prev. @@ -3911,6 +4236,30 @@ func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyApproval(v vocab. }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "oneOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "oneOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "oneOf" func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ @@ -5014,6 +5363,40 @@ func (this *ActivityStreamsOneOfProperty) InsertGoToSocialAnnounceApproval(idx i } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "oneOf". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "oneOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "oneOf". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5031,6 +5414,40 @@ func (this *ActivityStreamsOneOfProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "oneOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "oneOf". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "oneOf". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5048,6 +5465,40 @@ func (this *ActivityStreamsOneOfProperty) InsertGoToSocialReplyApproval(idx int, } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "oneOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "oneOf". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "oneOf". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5227,230 +5678,254 @@ func (this ActivityStreamsOneOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6321,6 +6796,34 @@ func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceApproval(v vo } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "oneOf". Invalidates all iterators. func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6335,6 +6838,34 @@ func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeApproval(v vocab. } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "oneOf". Invalidates all iterators. func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6349,6 +6880,34 @@ func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyApproval(v vocab } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "oneOf". func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ @@ -7237,6 +7796,32 @@ func (this *ActivityStreamsOneOfProperty) SetGoToSocialAnnounceApproval(idx int, } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "oneOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "oneOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "oneOf". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7250,6 +7835,32 @@ func (this *ActivityStreamsOneOfProperty) SetGoToSocialLikeApproval(idx int, v v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "oneOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "oneOf". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOneOfProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "oneOf". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7263,6 +7874,32 @@ func (this *ActivityStreamsOneOfProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "oneOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "oneOf". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "oneOf". // Panics if the index is out of bounds. func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go index c32a38460..e0808ddd9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go @@ -2,7 +2,7 @@ package propertyordereditems -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go index d3e6cdef4..0fbdb709a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go @@ -3,7 +3,7 @@ package propertyordereditems import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceApp return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeApprova return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyApprov return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOrderedItemsPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceAppr return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeApproval return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyApprova return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOrderedItemsPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceAp this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeApprov this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyAppro this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3936,6 +4213,30 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceApprova }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "orderedItems". Invalidates iterators +// that are traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "orderedItems". Invalidates iterators that are traversing // using Prev. @@ -3948,6 +4249,30 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeApproval(v }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "orderedItems". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "orderedItems". Invalidates iterators that are // traversing using Prev. @@ -3960,6 +4285,30 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyApproval(v }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "orderedItems". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "orderedItems". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "orderedItems" func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) { @@ -5067,6 +5416,40 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialAnnounceApprova } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "orderedItems". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "orderedItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "orderedItems". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5084,6 +5467,40 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialLikeApproval(id } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "orderedItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "orderedItems". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "orderedItems". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -5101,6 +5518,40 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialReplyApproval(i } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "orderedItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "orderedItems". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "orderedItems". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -5280,230 +5731,254 @@ func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6375,6 +6850,35 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceApprov } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "orderedItems". Invalidates all +// iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "orderedItems". Invalidates all iterators. func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6389,6 +6893,34 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeApproval(v } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "orderedItems". Invalidates all iterators. func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6403,6 +6935,34 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyApproval( } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "orderedItems". func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) { @@ -7292,6 +7852,32 @@ func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialAnnounceApproval(i } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "orderedItems". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "orderedItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "orderedItems". Panics if the index is out of // bounds. Invalidates all iterators. @@ -7305,6 +7891,32 @@ func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialLikeApproval(idx i } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "orderedItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "orderedItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "orderedItems". Panics if the index is out of // bounds. Invalidates all iterators. @@ -7318,6 +7930,32 @@ func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialReplyApproval(idx } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "orderedItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "orderedItems". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "orderedItems". Panics if the index is out of bounds. func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go index 783f51b19..36c215a9f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go @@ -2,7 +2,7 @@ package propertyorigin -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go index 95f3ddc4e..7913548be 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go @@ -3,7 +3,7 @@ package propertyorigin import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsOriginPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsOriginPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsOriginPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceApproval( return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeApproval() vo return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyApproval() v return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOriginPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeApproval() boo return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyApproval() bo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOriginPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsOriginPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceApproval this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeApproval(v v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyApproval(v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3887,6 +4164,30 @@ func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceApproval(v vo }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "origin". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "origin". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "origin". Invalidates iterators that are traversing using // Prev. @@ -3899,6 +4200,30 @@ func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeApproval(v vocab. }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "origin". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "origin". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "origin". Invalidates iterators that are traversing // using Prev. @@ -3911,6 +4236,30 @@ func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyApproval(v vocab }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "origin". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "origin". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "origin" func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ @@ -5014,6 +5363,40 @@ func (this *ActivityStreamsOriginProperty) InsertGoToSocialAnnounceApproval(idx } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "origin". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "origin". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "origin". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5031,6 +5414,40 @@ func (this *ActivityStreamsOriginProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "origin". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "origin". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "origin". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5048,6 +5465,40 @@ func (this *ActivityStreamsOriginProperty) InsertGoToSocialReplyApproval(idx int } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "origin". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "origin". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "origin". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5227,230 +5678,254 @@ func (this ActivityStreamsOriginProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6321,6 +6796,34 @@ func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceApproval(v v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "origin". Invalidates all iterators. func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6335,6 +6838,34 @@ func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeApproval(v vocab } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "origin". Invalidates all iterators. func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6349,6 +6880,34 @@ func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyApproval(v voca } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "origin". func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) { @@ -7238,6 +7797,32 @@ func (this *ActivityStreamsOriginProperty) SetGoToSocialAnnounceApproval(idx int } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "origin". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "origin". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "origin". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7251,6 +7836,32 @@ func (this *ActivityStreamsOriginProperty) SetGoToSocialLikeApproval(idx int, v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "origin". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "origin". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "origin". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7264,6 +7875,32 @@ func (this *ActivityStreamsOriginProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "origin". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "origin". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "origin". Panics if the index is out of bounds. func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go similarity index 94% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go index 70c130144..bcf2213d5 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go @@ -2,7 +2,7 @@ package propertyoutbox -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go index 637252637..b443f80bf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go @@ -3,7 +3,7 @@ package propertyoutbox import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_pkg.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_pkg.go index 408fd8d45..ec6c22486 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_pkg.go @@ -2,7 +2,7 @@ package propertypartof -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go index 215fcd55b..6cf2a869a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go @@ -3,7 +3,7 @@ package propertypartof import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go index 9eaa06ed2..fc8c9d85e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go @@ -3,9 +3,9 @@ package propertypreferredusername import ( - langstring "codeberg.org/superseriousbusiness/activity/streams/values/langString" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + langstring "code.superseriousbusiness.org/activity/streams/values/langString" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_pkg.go index 718b12385..04224b627 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_pkg.go @@ -2,7 +2,7 @@ package propertyprev -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go index 035d7aaf2..b37fe7b42 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go @@ -3,7 +3,7 @@ package propertyprev import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go index f16e6ecaf..a599471f9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go @@ -2,7 +2,7 @@ package propertypreview -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go index 4810f32ff..40e30d94e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go @@ -3,7 +3,7 @@ package propertypreview import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsPreviewPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsPreviewPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsPreviewPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceApproval return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeApproval() v return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyApproval() return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsPreviewPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceApproval( return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeApproval() bo return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyApproval() b return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsPreviewPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceApprova this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeApproval(v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyApproval(v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3896,6 +4173,30 @@ func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceApproval(v v }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "preview". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "preview". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "preview". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4209,30 @@ func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeApproval(v vocab }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "preview". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "preview". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "preview". Invalidates iterators that are traversing // using Prev. @@ -3920,6 +4245,30 @@ func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyApproval(v voca }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "preview". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "preview". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "preview" func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ @@ -5024,6 +5373,40 @@ func (this *ActivityStreamsPreviewProperty) InsertGoToSocialAnnounceApproval(idx } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "preview". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "preview". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "preview". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5041,6 +5424,40 @@ func (this *ActivityStreamsPreviewProperty) InsertGoToSocialLikeApproval(idx int } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "preview". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "preview". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "preview". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5058,6 +5475,40 @@ func (this *ActivityStreamsPreviewProperty) InsertGoToSocialReplyApproval(idx in } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "preview". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "preview". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "preview". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5237,230 +5688,254 @@ func (this ActivityStreamsPreviewProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6331,6 +6806,34 @@ func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceApproval(v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "preview". Invalidates all iterators. func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6345,6 +6848,34 @@ func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeApproval(v voca } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "preview". Invalidates all iterators. func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6359,6 +6890,34 @@ func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyApproval(v voc } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "preview". func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) { @@ -7248,6 +7807,32 @@ func (this *ActivityStreamsPreviewProperty) SetGoToSocialAnnounceApproval(idx in } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "preview". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "preview". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "preview". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7261,6 +7846,32 @@ func (this *ActivityStreamsPreviewProperty) SetGoToSocialLikeApproval(idx int, v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "preview". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "preview". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "preview". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7274,6 +7885,32 @@ func (this *ActivityStreamsPreviewProperty) SetGoToSocialReplyApproval(idx int, } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "preview". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "preview". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "preview". Panics if the index is out of bounds. func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go index 6ab505e91..48d40c24e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go @@ -3,8 +3,8 @@ package propertypublished import ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" "time" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go index 6140f14c0..a4aefc919 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go @@ -3,8 +3,8 @@ package propertyradius import ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go index ab0a3b551..96b4cdd5c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go @@ -3,8 +3,8 @@ package propertyrel import ( - rfc5988 "codeberg.org/superseriousbusiness/activity/streams/values/rfc5988" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + rfc5988 "code.superseriousbusiness.org/activity/streams/values/rfc5988" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go similarity index 90% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go index 83f7b36c6..fa834843b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go @@ -2,7 +2,7 @@ package propertyrelationship -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -140,6 +148,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeListenActivityStreams returns the deserialization method for // the "ActivityStreamsListen" non-functional property in the // vocabulary "ActivityStreams" @@ -217,6 +233,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go index a35c51eaf..ff4e90a08 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go @@ -3,7 +3,7 @@ package propertyrelationship import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -21,6 +21,8 @@ type ActivityStreamsRelationshipPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -48,6 +50,8 @@ type ActivityStreamsRelationshipPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMoveMember vocab.ActivityStreamsMove activitystreamsNoteMember vocab.ActivityStreamsNote @@ -66,6 +70,8 @@ type ActivityStreamsRelationshipPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -151,6 +157,18 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsApplicationMember: v, @@ -313,6 +331,18 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsListenMember: v, @@ -421,6 +451,18 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsServiceMember: v, @@ -885,6 +927,20 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceApp return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -892,6 +948,20 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeApprova return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -899,6 +969,20 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyApprov return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsRelationshipPropertyIterator) GetIRI() *url.URL { @@ -949,6 +1033,12 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1030,6 +1120,12 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1084,6 +1180,12 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1127,6 +1229,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1154,6 +1258,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMove() || this.IsActivityStreamsNote() || @@ -1172,6 +1278,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1589,6 +1697,21 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceAppr return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1596,6 +1719,20 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeApproval return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1603,6 +1740,20 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyApprova return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsRelationshipPropertyIterator) IsIRI() bool { @@ -1649,6 +1800,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1703,6 +1858,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMove() { @@ -1739,6 +1898,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1796,171 +1959,189 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 9 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 10 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 11 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 12 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 13 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 14 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 15 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 16 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 17 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 18 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 19 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 20 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 21 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 22 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeAuthorization() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsGoToSocialLikeRequest() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsListen() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 55 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 56 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 57 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 58 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 59 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 60 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 61 } + if this.IsFunkwhaleTrack() { + return 62 + } + if this.IsActivityStreamsTravel() { + return 63 + } + if this.IsActivityStreamsUndo() { + return 64 + } + if this.IsActivityStreamsUpdate() { + return 65 + } + if this.IsActivityStreamsVideo() { + return 66 + } + if this.IsActivityStreamsView() { + return 67 + } if this.IsIRI() { return -2 } @@ -1992,6 +2173,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2046,6 +2231,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMove() { @@ -2082,6 +2271,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2534,6 +2727,20 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceAp this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2541,6 +2748,20 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeApprov this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2548,6 +2769,20 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyAppro this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2606,6 +2841,14 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2714,6 +2957,14 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2786,6 +3037,14 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2840,6 +3099,8 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2867,6 +3128,8 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMoveMember = nil this.activitystreamsNoteMember = nil @@ -2885,6 +3148,8 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2918,6 +3183,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2972,6 +3241,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMove() { @@ -3008,6 +3281,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3775,6 +4052,30 @@ func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceApprova }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "relationship". Invalidates iterators +// that are traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "relationship". Invalidates iterators that are traversing // using Prev. @@ -3787,6 +4088,30 @@ func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeApproval(v }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "relationship". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "relationship". Invalidates iterators that are // traversing using Prev. @@ -3799,6 +4124,30 @@ func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyApproval(v }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "relationship". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "relationship". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "relationship" func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) { @@ -4861,6 +5210,40 @@ func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialAnnounceApprova } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "relationship". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "relationship". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "relationship". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4878,6 +5261,40 @@ func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialLikeApproval(id } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "relationship". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "relationship". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "relationship". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4895,6 +5312,40 @@ func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialReplyApproval(i } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "relationship". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "relationship". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "relationship". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -5053,222 +5504,246 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6112,6 +6587,35 @@ func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceApprov } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "relationship". Invalidates all +// iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "relationship". Invalidates all iterators. func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6126,6 +6630,34 @@ func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeApproval(v } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "relationship". Invalidates all iterators. func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6140,6 +6672,34 @@ func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyApproval( } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "relationship". func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) { @@ -6989,6 +7549,32 @@ func (this *ActivityStreamsRelationshipProperty) SetGoToSocialAnnounceApproval(i } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "relationship". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "relationship". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "relationship". Panics if the index is out of // bounds. Invalidates all iterators. @@ -7002,6 +7588,32 @@ func (this *ActivityStreamsRelationshipProperty) SetGoToSocialLikeApproval(idx i } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "relationship". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "relationship". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "relationship". Panics if the index is out of // bounds. Invalidates all iterators. @@ -7015,6 +7627,32 @@ func (this *ActivityStreamsRelationshipProperty) SetGoToSocialReplyApproval(idx } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "relationship". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "relationship". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "relationship". Panics if the index is out of bounds. func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_pkg.go index 88d42f643..2cba2fbf7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_pkg.go @@ -2,7 +2,7 @@ package propertyreplies -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go index c177d1a70..c3b8978aa 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go @@ -3,7 +3,7 @@ package propertyreplies import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go index ad5b2ff62..69cb742e7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go @@ -2,7 +2,7 @@ package propertyresult -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go index 9a20d2f01..79c332078 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go @@ -3,7 +3,7 @@ package propertyresult import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsResultPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsResultPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsResultPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceApproval( return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeApproval() vo return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyApproval() v return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsResultPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeApproval() boo return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyApproval() bo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsResultPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsResultPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceApproval this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeApproval(v v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyApproval(v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3887,6 +4164,30 @@ func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceApproval(v vo }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "result". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "result". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "result". Invalidates iterators that are traversing using // Prev. @@ -3899,6 +4200,30 @@ func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeApproval(v vocab. }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "result". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "result". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "result". Invalidates iterators that are traversing // using Prev. @@ -3911,6 +4236,30 @@ func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyApproval(v vocab }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "result". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "result". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "result" func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ @@ -5014,6 +5363,40 @@ func (this *ActivityStreamsResultProperty) InsertGoToSocialAnnounceApproval(idx } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "result". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "result". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "result". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5031,6 +5414,40 @@ func (this *ActivityStreamsResultProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "result". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "result". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "result". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5048,6 +5465,40 @@ func (this *ActivityStreamsResultProperty) InsertGoToSocialReplyApproval(idx int } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "result". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "result". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "result". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5227,230 +5678,254 @@ func (this ActivityStreamsResultProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6321,6 +6796,34 @@ func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceApproval(v v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "result". Invalidates all iterators. func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6335,6 +6838,34 @@ func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeApproval(v vocab } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "result". Invalidates all iterators. func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6349,6 +6880,34 @@ func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyApproval(v voca } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "result". func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) { @@ -7238,6 +7797,32 @@ func (this *ActivityStreamsResultProperty) SetGoToSocialAnnounceApproval(idx int } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "result". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "result". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "result". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7251,6 +7836,32 @@ func (this *ActivityStreamsResultProperty) SetGoToSocialLikeApproval(idx int, v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "result". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "result". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "result". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7264,6 +7875,32 @@ func (this *ActivityStreamsResultProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "result". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "result". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "result". Panics if the index is out of bounds. func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go index 7068b8751..c46f830da 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go @@ -3,8 +3,8 @@ package propertysensitive import ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go index b0acf65c6..9c8092422 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go @@ -3,8 +3,8 @@ package propertysharedinbox import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_pkg.go index 901ed09b1..4f14099e0 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_pkg.go @@ -2,7 +2,7 @@ package propertyshares -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go index 9d73da24c..9a420cedc 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go @@ -3,7 +3,7 @@ package propertyshares import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go index 269814323..605afc62b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go @@ -2,7 +2,7 @@ package propertysource -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go index 488beedae..adf02f58c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go @@ -3,7 +3,7 @@ package propertysource import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsSourceProperty struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsSourceProperty struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsSourceProperty struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsServiceMember: v, @@ -529,6 +571,8 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -557,6 +601,8 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -576,6 +622,8 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -999,6 +1047,20 @@ func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceApproval() vocab. return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -1006,6 +1068,20 @@ func (this ActivityStreamsSourceProperty) GetGoToSocialLikeApproval() vocab.GoTo return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -1013,6 +1089,20 @@ func (this ActivityStreamsSourceProperty) GetGoToSocialReplyApproval() vocab.GoT return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsSourceProperty) GetIRI() *url.URL { @@ -1072,6 +1162,12 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1156,6 +1252,12 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1213,6 +1315,12 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1257,6 +1365,8 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1285,6 +1395,8 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1304,6 +1416,8 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1735,6 +1849,21 @@ func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceApproval() bool { return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1742,6 +1871,20 @@ func (this ActivityStreamsSourceProperty) IsGoToSocialLikeApproval() bool { return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1749,6 +1892,20 @@ func (this ActivityStreamsSourceProperty) IsGoToSocialReplyApproval() bool { return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsSourceProperty) IsIRI() bool { @@ -1804,6 +1961,10 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1860,6 +2021,10 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1898,6 +2063,10 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1958,177 +2127,195 @@ func (this ActivityStreamsSourceProperty) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2162,6 +2349,10 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2218,6 +2409,10 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2256,6 +2451,10 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2312,6 +2511,10 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2368,6 +2571,10 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2406,6 +2613,10 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -2845,6 +3056,20 @@ func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceApproval(v vocab this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.Clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.Clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2852,6 +3077,20 @@ func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeApproval(v vocab.GoT this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.Clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.Clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2859,6 +3098,20 @@ func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyApproval(v vocab.Go this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.Clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.Clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) { this.Clear() @@ -2928,6 +3181,14 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -3040,6 +3301,14 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -3116,6 +3385,14 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go index 82488ffd9..7cbda5373 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go @@ -3,8 +3,8 @@ package propertystartindex import ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go index e04b171fb..19db8eadb 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go @@ -3,8 +3,8 @@ package propertystarttime import ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" "time" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_pkg.go index 06a31655f..a9840f160 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_pkg.go @@ -2,7 +2,7 @@ package propertystreams -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go index e8123edfe..c8f61fb4e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go @@ -3,7 +3,7 @@ package propertystreams import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go index 79f2ae5c9..a74fd272a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go @@ -2,7 +2,7 @@ package propertysubject -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go index 2fa8b44a3..8ca25935f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go @@ -3,7 +3,7 @@ package propertysubject import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsSubjectProperty struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsSubjectProperty struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsSubjectProperty struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsServiceMember: v, @@ -529,6 +571,8 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -557,6 +601,8 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -576,6 +622,8 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -999,6 +1047,20 @@ func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceApproval() vocab return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -1006,6 +1068,20 @@ func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeApproval() vocab.GoT return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -1013,6 +1089,20 @@ func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyApproval() vocab.Go return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsSubjectProperty) GetIRI() *url.URL { @@ -1072,6 +1162,12 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1156,6 +1252,12 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1213,6 +1315,12 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1257,6 +1365,8 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1285,6 +1395,8 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1304,6 +1416,8 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1735,6 +1849,21 @@ func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceApproval() bool { return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1742,6 +1871,20 @@ func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeApproval() bool { return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1749,6 +1892,20 @@ func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyApproval() bool { return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsSubjectProperty) IsIRI() bool { @@ -1804,6 +1961,10 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1860,6 +2021,10 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1898,6 +2063,10 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1958,177 +2127,195 @@ func (this ActivityStreamsSubjectProperty) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2162,6 +2349,10 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2218,6 +2409,10 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2256,6 +2451,10 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2312,6 +2511,10 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2368,6 +2571,10 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2406,6 +2613,10 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -2845,6 +3056,20 @@ func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceApproval(v voca this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.Clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.Clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2852,6 +3077,20 @@ func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeApproval(v vocab.Go this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.Clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.Clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2859,6 +3098,20 @@ func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyApproval(v vocab.G this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.Clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.Clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) { this.Clear() @@ -2928,6 +3181,14 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -3040,6 +3301,14 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -3116,6 +3385,14 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go index 924c968ad..2c273f6b5 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go @@ -3,9 +3,9 @@ package propertysummary import ( - langstring "codeberg.org/superseriousbusiness/activity/streams/values/langString" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + langstring "code.superseriousbusiness.org/activity/streams/values/langString" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go index 35257972b..431e72b0d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go @@ -2,7 +2,7 @@ package propertytag -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go index 5bd53153f..e619deeef 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go @@ -3,7 +3,7 @@ package propertytag import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsTagPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsTagPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsTagPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -159,6 +165,18 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsApplicationMember: v, @@ -327,6 +345,18 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsListenMember: v, @@ -441,6 +471,18 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsServiceMember: v, @@ -919,6 +961,20 @@ func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceApproval() v return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -926,6 +982,20 @@ func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeApproval() vocab return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -933,6 +1003,20 @@ func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyApproval() voca return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsTagPropertyIterator) GetIRI() *url.URL { @@ -992,6 +1076,12 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1076,6 +1166,12 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1133,6 +1229,12 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1177,6 +1279,8 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1205,6 +1309,8 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1224,6 +1330,8 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1655,6 +1763,21 @@ func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceApproval() bo return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1662,6 +1785,20 @@ func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeApproval() bool { return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1669,6 +1806,20 @@ func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyApproval() bool return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsTagPropertyIterator) IsIRI() bool { @@ -1724,6 +1875,10 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1780,6 +1935,10 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1818,6 +1977,10 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1878,177 +2041,195 @@ func (this ActivityStreamsTagPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2082,6 +2263,10 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2138,6 +2323,10 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2176,6 +2365,10 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2642,6 +2835,20 @@ func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceApproval(v this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2649,6 +2856,20 @@ func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeApproval(v voca this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2656,6 +2877,20 @@ func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyApproval(v voc this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2725,6 +2960,14 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2837,6 +3080,14 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2913,6 +3164,14 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2968,6 +3227,8 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2996,6 +3257,8 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3015,6 +3278,8 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3050,6 +3315,10 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3106,6 +3375,10 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3144,6 +3417,10 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3885,6 +4162,30 @@ func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceApproval(v vocab }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "tag". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "tag". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "tag". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -3896,6 +4197,29 @@ func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeApproval(v vocab.GoT }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "tag". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "tag". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4232,29 @@ func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyApproval(v vocab.Go }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "tag". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "tag" func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ @@ -5010,6 +5357,40 @@ func (this *ActivityStreamsTagProperty) InsertGoToSocialAnnounceApproval(idx int } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "tag". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "tag". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "tag". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5027,6 +5408,40 @@ func (this *ActivityStreamsTagProperty) InsertGoToSocialLikeApproval(idx int, v } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "tag". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "tag". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "tag". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5044,6 +5459,40 @@ func (this *ActivityStreamsTagProperty) InsertGoToSocialReplyApproval(idx int, v } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "tag". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "tag". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "tag". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5223,230 +5672,254 @@ func (this ActivityStreamsTagProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6317,6 +6790,34 @@ func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceApproval(v voca } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "tag". Invalidates all iterators. func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6331,6 +6832,34 @@ func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeApproval(v vocab.Go } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "tag". Invalidates all iterators. func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6345,6 +6874,34 @@ func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyApproval(v vocab.G } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "tag". func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsTagPropertyIterator{{ @@ -7233,6 +7790,32 @@ func (this *ActivityStreamsTagProperty) SetGoToSocialAnnounceApproval(idx int, v } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "tag". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "tag". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "tag". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7246,6 +7829,32 @@ func (this *ActivityStreamsTagProperty) SetGoToSocialLikeApproval(idx int, v voc } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "tag". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "tag". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsTagProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "tag". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7259,6 +7868,32 @@ func (this *ActivityStreamsTagProperty) SetGoToSocialReplyApproval(idx int, v vo } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "tag". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "tag". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsTagProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "tag". // Panics if the index is out of bounds. func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go index 48446301e..fb97befb1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go @@ -2,7 +2,7 @@ package propertytarget -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go index 1d0821938..e86bdff83 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go @@ -3,7 +3,7 @@ package propertytarget import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsTargetPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsTargetPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsTargetPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -160,6 +166,18 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsApplicationMember: v, @@ -328,6 +346,18 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsListenMember: v, @@ -442,6 +472,18 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsServiceMember: v, @@ -920,6 +962,20 @@ func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceApproval( return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -927,6 +983,20 @@ func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeApproval() vo return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -934,6 +1004,20 @@ func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyApproval() v return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsTargetPropertyIterator) GetIRI() *url.URL { @@ -993,6 +1077,12 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1077,6 +1167,12 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1134,6 +1230,12 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1178,6 +1280,8 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1206,6 +1310,8 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1225,6 +1331,8 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1656,6 +1764,21 @@ func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceApproval() return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1663,6 +1786,20 @@ func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeApproval() boo return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1670,6 +1807,20 @@ func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyApproval() bo return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsTargetPropertyIterator) IsIRI() bool { @@ -1725,6 +1876,10 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1781,6 +1936,10 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1819,6 +1978,10 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1879,177 +2042,195 @@ func (this ActivityStreamsTargetPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2083,6 +2264,10 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2139,6 +2324,10 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2177,6 +2366,10 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2643,6 +2836,20 @@ func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceApproval this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2650,6 +2857,20 @@ func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeApproval(v v this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2657,6 +2878,20 @@ func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyApproval(v this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2726,6 +2961,14 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2838,6 +3081,14 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2914,6 +3165,14 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2969,6 +3228,8 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2997,6 +3258,8 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3016,6 +3279,8 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3051,6 +3316,10 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3107,6 +3376,10 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3145,6 +3418,10 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3887,6 +4164,30 @@ func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceApproval(v vo }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "target". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "target". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "target". Invalidates iterators that are traversing using // Prev. @@ -3899,6 +4200,30 @@ func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeApproval(v vocab. }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "target". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "target". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "target". Invalidates iterators that are traversing // using Prev. @@ -3911,6 +4236,30 @@ func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyApproval(v vocab }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "target". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "target". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "target" func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ @@ -5014,6 +5363,40 @@ func (this *ActivityStreamsTargetProperty) InsertGoToSocialAnnounceApproval(idx } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "target". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "target". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "target". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5031,6 +5414,40 @@ func (this *ActivityStreamsTargetProperty) InsertGoToSocialLikeApproval(idx int, } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "target". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "target". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "target". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5048,6 +5465,40 @@ func (this *ActivityStreamsTargetProperty) InsertGoToSocialReplyApproval(idx int } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "target". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "target". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "target". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5227,230 +5678,254 @@ func (this ActivityStreamsTargetProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6321,6 +6796,34 @@ func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceApproval(v v } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "target". Invalidates all iterators. func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6335,6 +6838,34 @@ func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeApproval(v vocab } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "target". Invalidates all iterators. func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6349,6 +6880,34 @@ func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyApproval(v voca } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "target". func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) { @@ -7238,6 +7797,32 @@ func (this *ActivityStreamsTargetProperty) SetGoToSocialAnnounceApproval(idx int } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "target". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "target". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "target". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7251,6 +7836,32 @@ func (this *ActivityStreamsTargetProperty) SetGoToSocialLikeApproval(idx int, v } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "target". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "target". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "target". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7264,6 +7875,32 @@ func (this *ActivityStreamsTargetProperty) SetGoToSocialReplyApproval(idx int, v } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "target". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "target". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "target". Panics if the index is out of bounds. func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go index 73cd3ce6a..af7cbcb2e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go @@ -2,7 +2,7 @@ package propertyto -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -33,6 +33,14 @@ type privateManager interface { // method for the "GoToSocialAnnounceApproval" non-functional property // in the vocabulary "GoToSocial" DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -143,6 +151,14 @@ type privateManager interface { // for the "GoToSocialLikeApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -228,6 +244,14 @@ type privateManager interface { // for the "GoToSocialReplyApproval" non-functional property in the // vocabulary "GoToSocial" DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go index 76d4195ce..5c290d0f2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go @@ -3,7 +3,7 @@ package propertyto import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) @@ -22,6 +22,8 @@ type ActivityStreamsToPropertyIterator struct { funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -50,6 +52,8 @@ type ActivityStreamsToPropertyIterator struct { funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -69,6 +73,8 @@ type ActivityStreamsToPropertyIterator struct { activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -159,6 +165,18 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st gotosocialAnnounceApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsApplicationMember: v, @@ -327,6 +345,18 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st gotosocialLikeApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsListenMember: v, @@ -441,6 +471,18 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st gotosocialReplyApprovalMember: v, } return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsServiceMember: v, @@ -919,6 +961,20 @@ func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceApproval() vo return this.gotosocialAnnounceApprovalMember } +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will // return an arbitrary value. @@ -926,6 +982,20 @@ func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeApproval() vocab. return this.gotosocialLikeApprovalMember } +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will // return an arbitrary value. @@ -933,6 +1003,20 @@ func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyApproval() vocab return this.gotosocialReplyApprovalMember } +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsToPropertyIterator) GetIRI() *url.URL { @@ -992,6 +1076,12 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval() } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1076,6 +1166,12 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval() } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1133,6 +1229,12 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval() } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1177,6 +1279,8 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1205,6 +1309,8 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1224,6 +1330,8 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1655,6 +1763,21 @@ func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceApproval() boo return this.gotosocialAnnounceApprovalMember != nil } +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. @@ -1662,6 +1785,20 @@ func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeApproval() bool { return this.gotosocialLikeApprovalMember != nil } +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. @@ -1669,6 +1806,20 @@ func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyApproval() bool { return this.gotosocialReplyApprovalMember != nil } +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsToPropertyIterator) IsIRI() bool { @@ -1724,6 +1875,10 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1780,6 +1935,10 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1818,6 +1977,10 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRemove().JSONLDContext() } else if this.IsGoToSocialReplyApproval() { child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1878,177 +2041,195 @@ func (this ActivityStreamsToPropertyIterator) KindIndex() int { if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceAuthorization() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsGoToSocialAnnounceRequest() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsFunkwhaleArtist() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMention() { return 41 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsMove() { return 42 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsNote() { return 43 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOffer() { return 44 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollection() { return 45 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrderedCollectionPage() { return 46 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsOrganization() { return 47 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPage() { return 48 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPerson() { return 49 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsPlace() { return 50 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsProfile() { return 51 } - if this.IsActivityStreamsRelationship() { + if this.IsSchemaPropertyValue() { return 52 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsQuestion() { return 53 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRead() { return 54 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 55 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 56 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 57 } - if this.IsActivityStreamsTombstone() { + if this.IsGoToSocialReplyApproval() { return 58 } - if this.IsFunkwhaleTrack() { + if this.IsGoToSocialReplyAuthorization() { return 59 } - if this.IsActivityStreamsTravel() { + if this.IsGoToSocialReplyRequest() { return 60 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsService() { return 61 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeAccept() { return 62 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTentativeReject() { return 63 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTombstone() { return 64 } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } if this.IsIRI() { return -2 } @@ -2082,6 +2263,10 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -2138,6 +2323,10 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2176,6 +2365,10 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2642,6 +2835,20 @@ func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceApproval(v v this.gotosocialAnnounceApprovalMember = v } +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -2649,6 +2856,20 @@ func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeApproval(v vocab this.gotosocialLikeApprovalMember = v } +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -2656,6 +2877,20 @@ func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyApproval(v voca this.gotosocialReplyApprovalMember = v } +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2725,6 +2960,14 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialAnnounceApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2837,6 +3080,14 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialLikeApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2913,6 +3164,14 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetGoToSocialReplyApproval(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2968,6 +3227,8 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2996,6 +3257,8 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -3015,6 +3278,8 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -3050,6 +3315,10 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -3106,6 +3375,10 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -3144,6 +3417,10 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsRemove().Serialize() } else if this.IsGoToSocialReplyApproval() { return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3885,6 +4162,30 @@ func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceApproval(v vocab. }) } +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "to". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "to". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list // of the property "to". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -3896,6 +4197,29 @@ func (this *ActivityStreamsToProperty) AppendGoToSocialLikeApproval(v vocab.GoTo }) } +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "to". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a // list of the property "to". Invalidates iterators that are traversing using // Prev. @@ -3908,6 +4232,29 @@ func (this *ActivityStreamsToProperty) AppendGoToSocialReplyApproval(v vocab.GoT }) } +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "to". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "to" func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ @@ -5010,6 +5357,40 @@ func (this *ActivityStreamsToProperty) InsertGoToSocialAnnounceApproval(idx int, } } +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization value at +// the specified index for a property "to". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the +// specified index for a property "to". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the specified // index for a property "to". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5027,6 +5408,40 @@ func (this *ActivityStreamsToProperty) InsertGoToSocialLikeApproval(idx int, v v } } +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at the +// specified index for a property "to". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest value at the specified index +// for a property "to". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the specified // index for a property "to". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5044,6 +5459,40 @@ func (this *ActivityStreamsToProperty) InsertGoToSocialReplyApproval(idx int, v } } +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value at the +// specified index for a property "to". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest value at the specified +// index for a property "to". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "to". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -5223,230 +5672,254 @@ func (this ActivityStreamsToProperty) Less(i, j int) bool { rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetFunkwhaleArtist() rhs := this.properties[j].GetFunkwhaleArtist() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 65 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6317,6 +6790,34 @@ func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceApproval(v vocab } } +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a // list of the property "to". Invalidates all iterators. func (this *ActivityStreamsToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { @@ -6331,6 +6832,34 @@ func (this *ActivityStreamsToProperty) PrependGoToSocialLikeApproval(v vocab.GoT } } +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a // list of the property "to". Invalidates all iterators. func (this *ActivityStreamsToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { @@ -6345,6 +6874,34 @@ func (this *ActivityStreamsToProperty) PrependGoToSocialReplyApproval(v vocab.Go } } +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "to". func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsToPropertyIterator{{ @@ -7233,6 +7790,32 @@ func (this *ActivityStreamsToProperty) SetGoToSocialAnnounceApproval(idx int, v } } +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value to be at +// the specified index for the property "to". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsToProperty) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the +// specified index for the property "to". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsToProperty) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the specified // index for the property "to". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7246,6 +7829,32 @@ func (this *ActivityStreamsToProperty) SetGoToSocialLikeApproval(idx int, v voca } } +// SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at the +// specified index for the property "to". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsToProperty) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest value to be at the specified index +// for the property "to". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsToProperty) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the specified // index for the property "to". Panics if the index is out of bounds. // Invalidates all iterators. @@ -7259,6 +7868,32 @@ func (this *ActivityStreamsToProperty) SetGoToSocialReplyApproval(idx int, v voc } } +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be at the +// specified index for the property "to". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsToProperty) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest value to be at the specified +// index for the property "to". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsToProperty) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "to". // Panics if the index is out of bounds. func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go index b95a56630..8d4b8230f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go @@ -3,8 +3,8 @@ package propertytotalitems import ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go index 1e1a7c4b1..d72ae1241 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go @@ -3,9 +3,9 @@ package propertyunits import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go index b5c505636..f225c1657 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go @@ -3,8 +3,8 @@ package propertyupdated import ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" "time" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_pkg.go similarity index 94% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_pkg.go index 14e9bbd24..cf4108603 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_pkg.go @@ -2,7 +2,7 @@ package propertyurl -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go index 46c09b04e..90838e25e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go @@ -3,8 +3,8 @@ package propertyurl import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go index d6d4098ad..ae4fe95af 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go @@ -3,8 +3,8 @@ package propertywidth import ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_pkg.go index 07a2fdfbb..af3ba581c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_pkg.go @@ -2,7 +2,7 @@ package typeaccept -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go index 64c5d89f0..3371ab721 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go @@ -3,7 +3,7 @@ package typeaccept import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_pkg.go index 6f4418cb0..4a314f164 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_pkg.go @@ -2,7 +2,7 @@ package typeactivity -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go index 00f8acaa5..7592749e4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go @@ -3,7 +3,7 @@ package typeactivity import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -88,7 +88,7 @@ func ActivityIsDisjointWith(other vocab.Type) bool { // Activity type. Note that it returns false if the types are the same; see // the "IsOrExtendsActivity" variant instead. func ActivityIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Add", "Announce", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"} + extensions := []string{"Accept", "Add", "Announce", "AnnounceRequest", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeRequest", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "ReplyRequest", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"} for _, ext := range extensions { if ext == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_pkg.go index 0843b5bf3..9d1365735 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_pkg.go @@ -2,7 +2,7 @@ package typeadd -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go index 7a6c462c9..2d7c63514 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go @@ -3,7 +3,7 @@ package typeadd import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_pkg.go index 26871dffa..7ecd4121b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_pkg.go @@ -2,7 +2,7 @@ package typeannounce -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go index ee69d3f18..0851dfa94 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go @@ -3,7 +3,7 @@ package typeannounce import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go index 7fb8998c6..b1c70d6fb 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go @@ -2,7 +2,7 @@ package typeapplication -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -104,6 +104,10 @@ type privateManager interface { // method for the "ActivityStreamsInboxProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, error) // DeserializeLikedPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsLikedProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go index 92550fa6e..2b73bfaff 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go @@ -3,7 +3,7 @@ package typeapplication import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -40,6 +40,7 @@ type ActivityStreamsApplication struct { ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty + TootIndexable vocab.TootIndexableProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty @@ -253,6 +254,11 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string } else if p != nil { this.ActivityStreamsInbox = p } + if p, err := mgr.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = p + } if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -431,6 +437,8 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string continue } else if k == "inbox" { continue + } else if k == "indexable" { + continue } else if k == "liked" { continue } else if k == "likes" { @@ -793,6 +801,12 @@ func (this ActivityStreamsApplication) GetTootFeatured() vocab.TootFeaturedPrope return this.TootFeatured } +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsApplication) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + // GetTypeName returns the name of this type. func (this ActivityStreamsApplication) GetTypeName() string { return "Application" @@ -847,6 +861,7 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsImage, m) m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) + m = this.helperJSONLDContext(this.TootIndexable, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) @@ -1202,6 +1217,20 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "liked" if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1759,6 +1788,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro m[this.ActivityStreamsInbox.Name()] = i } } + // Maybe serialize property "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.Name()] = i + } + } // Maybe serialize property "liked" if this.ActivityStreamsLiked != nil { if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { @@ -2209,6 +2246,11 @@ func (this *ActivityStreamsApplication) SetTootFeatured(i vocab.TootFeaturedProp this.TootFeatured = i } +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsApplication) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = i +} + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. func (this *ActivityStreamsApplication) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { this.W3IDSecurityV1PublicKey = i diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go index 182f99120..1443a0639 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go @@ -2,7 +2,7 @@ package typearrive -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go index c924888e5..487f6dd8c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go @@ -3,7 +3,7 @@ package typearrive import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_pkg.go index effa7ea19..e3ebfdb94 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_pkg.go @@ -2,7 +2,7 @@ package typearticle -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go index a9ba8238f..8a0229af7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go @@ -3,7 +3,7 @@ package typearticle import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_pkg.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_pkg.go index 649e13d05..729435fbd 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_pkg.go @@ -2,7 +2,7 @@ package typeaudio -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -64,6 +64,10 @@ type privateManager interface { // method for the "ActivityStreamsEndTimeProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, error) // DeserializeGeneratorPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go index df38202ed..bb6664c2c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go @@ -3,7 +3,7 @@ package typeaudio import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -35,6 +35,7 @@ type ActivityStreamsAudio struct { ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + TootFocalPoint vocab.TootFocalPointProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty @@ -197,6 +198,11 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsEndTime = p } + if p, err := mgr.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = p + } if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -350,6 +356,8 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "endTime" { continue + } else if k == "focalPoint" { + continue } else if k == "generator" { continue } else if k == "icon" { @@ -648,6 +656,12 @@ func (this ActivityStreamsAudio) GetTootBlurhash() vocab.TootBlurhashProperty { return this.TootBlurhash } +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsAudio) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + // GetTypeName returns the name of this type. func (this ActivityStreamsAudio) GetTypeName() string { return "Audio" @@ -686,6 +700,7 @@ func (this ActivityStreamsAudio) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsContext, m) m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.TootFocalPoint, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) @@ -900,6 +915,20 @@ func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "generator" if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1363,6 +1392,14 @@ func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsEndTime.Name()] = i } } + // Maybe serialize property "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.Name()] = i + } + } // Maybe serialize property "generator" if this.ActivityStreamsGenerator != nil { if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { @@ -1754,6 +1791,11 @@ func (this *ActivityStreamsAudio) SetTootBlurhash(i vocab.TootBlurhashProperty) this.TootBlurhash = i } +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsAudio) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = i +} + // VocabularyURI returns the vocabulary's URI as a string. func (this ActivityStreamsAudio) VocabularyURI() string { return "https://www.w3.org/ns/activitystreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_pkg.go index 21eda333a..1712c97ad 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_pkg.go @@ -2,7 +2,7 @@ package typeblock -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go index c35750469..8e9729127 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go @@ -3,7 +3,7 @@ package typeblock import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_pkg.go index c4ecc5bb3..7f73e6d67 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_pkg.go @@ -2,7 +2,7 @@ package typecollection -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go index 84e13245c..7bdedaa06 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go @@ -3,7 +3,7 @@ package typecollection import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go index 0cba5775e..9ee4193f8 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go @@ -2,7 +2,7 @@ package typecollectionpage -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go index eb8018855..4d958f14f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go @@ -3,7 +3,7 @@ package typecollectionpage import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_pkg.go index 196ce0e12..e49c505b4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_pkg.go @@ -2,7 +2,7 @@ package typecreate -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go index 283cc2fe8..95465b3a9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go @@ -3,7 +3,7 @@ package typecreate import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_pkg.go index be71a456d..1d19e2223 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_pkg.go @@ -2,7 +2,7 @@ package typedelete -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go index 9c598a7c1..1f24effb6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go @@ -3,7 +3,7 @@ package typedelete import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go index 601f9c443..56b53bfcb 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go @@ -2,7 +2,7 @@ package typedislike -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go index 24f378990..fd08b8d41 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go @@ -3,7 +3,7 @@ package typedislike import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_pkg.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_pkg.go index c36d68080..98036d6d1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_pkg.go @@ -2,7 +2,7 @@ package typedocument -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -64,6 +64,10 @@ type privateManager interface { // method for the "ActivityStreamsEndTimeProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, error) // DeserializeGeneratorPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go index ed7d701fe..0d2d06780 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go @@ -3,7 +3,7 @@ package typedocument import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -31,6 +31,7 @@ type ActivityStreamsDocument struct { ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + TootFocalPoint vocab.TootFocalPointProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty @@ -173,6 +174,11 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) ( } else if p != nil { this.ActivityStreamsEndTime = p } + if p, err := mgr.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = p + } if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -326,6 +332,8 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) ( continue } else if k == "endTime" { continue + } else if k == "focalPoint" { + continue } else if k == "generator" { continue } else if k == "icon" { @@ -649,6 +657,12 @@ func (this ActivityStreamsDocument) GetTootBlurhash() vocab.TootBlurhashProperty return this.TootBlurhash } +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsDocument) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + // GetTypeName returns the name of this type. func (this ActivityStreamsDocument) GetTypeName() string { return "Document" @@ -687,6 +701,7 @@ func (this ActivityStreamsDocument) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsContext, m) m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.TootFocalPoint, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) @@ -901,6 +916,20 @@ func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "generator" if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1364,6 +1393,14 @@ func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsEndTime.Name()] = i } } + // Maybe serialize property "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.Name()] = i + } + } // Maybe serialize property "generator" if this.ActivityStreamsGenerator != nil { if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { @@ -1755,6 +1792,11 @@ func (this *ActivityStreamsDocument) SetTootBlurhash(i vocab.TootBlurhashPropert this.TootBlurhash = i } +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsDocument) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = i +} + // VocabularyURI returns the vocabulary's URI as a string. func (this ActivityStreamsDocument) VocabularyURI() string { return "https://www.w3.org/ns/activitystreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go index ce810c10b..6c1b8ab8c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go @@ -2,7 +2,7 @@ package typeendpoints -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go index 1a35bf3e9..53fa0901a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go @@ -2,7 +2,7 @@ package typeendpoints -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" // A json object which maps additional (typically server/domain-wide) endpoints // which may be useful either for this actor or someone referencing this diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_pkg.go index 72a8bac19..6ec762ae5 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_pkg.go @@ -2,7 +2,7 @@ package typeevent -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go index bc63264ff..1ce5e55ba 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go @@ -3,7 +3,7 @@ package typeevent import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_pkg.go index 7f02ce250..59155cca3 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_pkg.go @@ -2,7 +2,7 @@ package typeflag -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go index 48401463d..27d3c84e2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go @@ -3,7 +3,7 @@ package typeflag import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_pkg.go index 375680188..197658b04 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_pkg.go @@ -2,7 +2,7 @@ package typefollow -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go index 830930ce3..f55576aa2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go @@ -3,7 +3,7 @@ package typefollow import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go index 41a90ead5..5f7803be3 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go @@ -2,7 +2,7 @@ package typegroup -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -104,6 +104,10 @@ type privateManager interface { // method for the "ActivityStreamsInboxProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, error) // DeserializeLikedPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsLikedProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go index a488ddde8..19e2875d9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go @@ -3,7 +3,7 @@ package typegroup import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -40,6 +40,7 @@ type ActivityStreamsGroup struct { ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty + TootIndexable vocab.TootIndexableProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty @@ -233,6 +234,11 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsInbox = p } + if p, err := mgr.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = p + } if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -411,6 +417,8 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "inbox" { continue + } else if k == "indexable" { + continue } else if k == "liked" { continue } else if k == "likes" { @@ -793,6 +801,12 @@ func (this ActivityStreamsGroup) GetTootFeatured() vocab.TootFeaturedProperty { return this.TootFeatured } +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsGroup) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + // GetTypeName returns the name of this type. func (this ActivityStreamsGroup) GetTypeName() string { return "Group" @@ -847,6 +861,7 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsImage, m) m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) + m = this.helperJSONLDContext(this.TootIndexable, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) @@ -1202,6 +1217,20 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "liked" if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1759,6 +1788,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsInbox.Name()] = i } } + // Maybe serialize property "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.Name()] = i + } + } // Maybe serialize property "liked" if this.ActivityStreamsLiked != nil { if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { @@ -2209,6 +2246,11 @@ func (this *ActivityStreamsGroup) SetTootFeatured(i vocab.TootFeaturedProperty) this.TootFeatured = i } +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsGroup) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = i +} + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. func (this *ActivityStreamsGroup) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { this.W3IDSecurityV1PublicKey = i diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go index 8983eac25..2bc323c6c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go @@ -2,7 +2,7 @@ package typeignore -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go index d07892a47..88e6abb85 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go @@ -3,7 +3,7 @@ package typeignore import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_pkg.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_pkg.go index cd8b58fb2..4ab62e8ae 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_pkg.go @@ -2,7 +2,7 @@ package typeimage -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -64,6 +64,10 @@ type privateManager interface { // method for the "ActivityStreamsEndTimeProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, error) // DeserializeGeneratorPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go index 00a22c403..23274172e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go @@ -3,7 +3,7 @@ package typeimage import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -42,6 +42,7 @@ type ActivityStreamsImage struct { ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + TootFocalPoint vocab.TootFocalPointProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsHeight vocab.ActivityStreamsHeightProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty @@ -186,6 +187,11 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsEndTime = p } + if p, err := mgr.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = p + } if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -349,6 +355,8 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "endTime" { continue + } else if k == "focalPoint" { + continue } else if k == "generator" { continue } else if k == "height" { @@ -683,6 +691,12 @@ func (this ActivityStreamsImage) GetTootBlurhash() vocab.TootBlurhashProperty { return this.TootBlurhash } +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsImage) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + // GetTypeName returns the name of this type. func (this ActivityStreamsImage) GetTypeName() string { return "Image" @@ -721,6 +735,7 @@ func (this ActivityStreamsImage) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsContext, m) m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.TootFocalPoint, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) m = this.helperJSONLDContext(this.ActivityStreamsHeight, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) @@ -937,6 +952,20 @@ func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "generator" if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1428,6 +1457,14 @@ func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsEndTime.Name()] = i } } + // Maybe serialize property "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.Name()] = i + } + } // Maybe serialize property "generator" if this.ActivityStreamsGenerator != nil { if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { @@ -1845,6 +1882,11 @@ func (this *ActivityStreamsImage) SetTootBlurhash(i vocab.TootBlurhashProperty) this.TootBlurhash = i } +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsImage) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = i +} + // VocabularyURI returns the vocabulary's URI as a string. func (this ActivityStreamsImage) VocabularyURI() string { return "https://www.w3.org/ns/activitystreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go index 121ec9027..e25c07eb5 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go @@ -2,7 +2,7 @@ package typeintransitiveactivity -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go index 13c5df20c..866ab4fdd 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go @@ -3,7 +3,7 @@ package typeintransitiveactivity import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_pkg.go index df713a4ca..370f0f23e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_pkg.go @@ -2,7 +2,7 @@ package typeinvite -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go index 35c9ccc87..b127019a3 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go @@ -3,7 +3,7 @@ package typeinvite import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_pkg.go index 145bc89a3..bb75e8c3a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_pkg.go @@ -2,7 +2,7 @@ package typejoin -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go index 24fe34adf..272c628f9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go @@ -3,7 +3,7 @@ package typejoin import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_pkg.go index 3a85897f4..8ae071e4e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_pkg.go @@ -2,7 +2,7 @@ package typeleave -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go index c27ac821e..dcbd90aa6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go @@ -3,7 +3,7 @@ package typeleave import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_pkg.go index 13442101c..2c681db43 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_pkg.go @@ -2,7 +2,7 @@ package typelike -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go index 11875c88b..f1f0ac6a7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go @@ -3,7 +3,7 @@ package typelike import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_pkg.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_pkg.go index 258906124..76afe4e2e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_pkg.go @@ -2,7 +2,7 @@ package typelink -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go index 0dd7b1ee9..27f927e71 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go @@ -3,7 +3,7 @@ package typelink import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -200,7 +200,7 @@ func IsOrExtendsLink(other vocab.Type) bool { // LinkIsDisjointWith returns true if the other provided type is disjoint with the // Link type. func LinkIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_pkg.go index ad73c521e..79e3eee27 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_pkg.go @@ -2,7 +2,7 @@ package typelisten -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go index e4ea6cd51..51e0e4adb 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go @@ -3,7 +3,7 @@ package typelisten import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_pkg.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_pkg.go index 0106d11cd..a7f9a03ca 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_pkg.go @@ -2,7 +2,7 @@ package typemention -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go index 7b0af6770..537c95b34 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go @@ -3,7 +3,7 @@ package typemention import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -198,7 +198,7 @@ func IsOrExtendsMention(other vocab.Type) bool { // MentionIsDisjointWith returns true if the other provided type is disjoint with // the Mention type. func MentionIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_pkg.go index 2d16a6b05..4f39b43ac 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_pkg.go @@ -2,7 +2,7 @@ package typemove -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go index 73431ddbd..01fe051e1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go @@ -3,7 +3,7 @@ package typemove import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_pkg.go index 9a01cb4c5..31280fdfd 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_pkg.go @@ -2,7 +2,7 @@ package typenote -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go index cba8256ac..15989dd87 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go @@ -3,7 +3,7 @@ package typenote import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_pkg.go index b0924dbab..12c506250 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_pkg.go @@ -2,7 +2,7 @@ package typeobject -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go index ba9ba9d12..7def5af57 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go @@ -3,7 +3,7 @@ package typeobject import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -397,7 +397,7 @@ func ObjectIsDisjointWith(other vocab.Type) bool { // Object type. Note that it returns false if the types are the same; see the // "IsOrExtendsObject" variant instead. func ObjectIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + extensions := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, ext := range extensions { if ext == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_pkg.go index afbb73c7a..4db2248b1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_pkg.go @@ -2,7 +2,7 @@ package typeoffer -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go index 52f52ae2a..6a20b59e5 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go @@ -3,7 +3,7 @@ package typeoffer import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go index 4d46965e0..23812102b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go @@ -2,7 +2,7 @@ package typeorderedcollection -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go index f4c9e90b5..cbbf5e3b6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go @@ -3,7 +3,7 @@ package typeorderedcollection import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go index 73e5b152d..d907ed26b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go @@ -2,7 +2,7 @@ package typeorderedcollectionpage -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go index 0ad858691..e2e82c966 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go @@ -3,7 +3,7 @@ package typeorderedcollectionpage import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go index d07eadafc..a3b2e4496 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go @@ -2,7 +2,7 @@ package typeorganization -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -104,6 +104,10 @@ type privateManager interface { // method for the "ActivityStreamsInboxProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, error) // DeserializeLikedPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsLikedProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go index 26d37e535..8784a0157 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go @@ -3,7 +3,7 @@ package typeorganization import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -40,6 +40,7 @@ type ActivityStreamsOrganization struct { ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty + TootIndexable vocab.TootIndexableProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty @@ -233,6 +234,11 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin } else if p != nil { this.ActivityStreamsInbox = p } + if p, err := mgr.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = p + } if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -411,6 +417,8 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin continue } else if k == "inbox" { continue + } else if k == "indexable" { + continue } else if k == "liked" { continue } else if k == "likes" { @@ -793,6 +801,12 @@ func (this ActivityStreamsOrganization) GetTootFeatured() vocab.TootFeaturedProp return this.TootFeatured } +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsOrganization) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + // GetTypeName returns the name of this type. func (this ActivityStreamsOrganization) GetTypeName() string { return "Organization" @@ -847,6 +861,7 @@ func (this ActivityStreamsOrganization) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsImage, m) m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) + m = this.helperJSONLDContext(this.TootIndexable, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) @@ -1202,6 +1217,20 @@ func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganiza // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "liked" if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1759,6 +1788,14 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err m[this.ActivityStreamsInbox.Name()] = i } } + // Maybe serialize property "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.Name()] = i + } + } // Maybe serialize property "liked" if this.ActivityStreamsLiked != nil { if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { @@ -2209,6 +2246,11 @@ func (this *ActivityStreamsOrganization) SetTootFeatured(i vocab.TootFeaturedPro this.TootFeatured = i } +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsOrganization) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = i +} + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. func (this *ActivityStreamsOrganization) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { this.W3IDSecurityV1PublicKey = i diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_pkg.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_pkg.go index 7e9ad6eef..6ea71e27e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_pkg.go @@ -2,7 +2,7 @@ package typepage -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -64,6 +64,10 @@ type privateManager interface { // method for the "ActivityStreamsEndTimeProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, error) // DeserializeGeneratorPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go index 147a5cfbe..2ba55241d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go @@ -3,7 +3,7 @@ package typepage import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -31,6 +31,7 @@ type ActivityStreamsPage struct { ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + TootFocalPoint vocab.TootFocalPointProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty @@ -173,6 +174,11 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsEndTime = p } + if p, err := mgr.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = p + } if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -326,6 +332,8 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "endTime" { continue + } else if k == "focalPoint" { + continue } else if k == "generator" { continue } else if k == "icon" { @@ -644,6 +652,12 @@ func (this ActivityStreamsPage) GetTootBlurhash() vocab.TootBlurhashProperty { return this.TootBlurhash } +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsPage) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + // GetTypeName returns the name of this type. func (this ActivityStreamsPage) GetTypeName() string { return "Page" @@ -682,6 +696,7 @@ func (this ActivityStreamsPage) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsContext, m) m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.TootFocalPoint, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) @@ -896,6 +911,20 @@ func (this ActivityStreamsPage) LessThan(o vocab.ActivityStreamsPage) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "generator" if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1359,6 +1388,14 @@ func (this ActivityStreamsPage) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsEndTime.Name()] = i } } + // Maybe serialize property "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.Name()] = i + } + } // Maybe serialize property "generator" if this.ActivityStreamsGenerator != nil { if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { @@ -1750,6 +1787,11 @@ func (this *ActivityStreamsPage) SetTootBlurhash(i vocab.TootBlurhashProperty) { this.TootBlurhash = i } +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsPage) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = i +} + // VocabularyURI returns the vocabulary's URI as a string. func (this ActivityStreamsPage) VocabularyURI() string { return "https://www.w3.org/ns/activitystreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go index c2fe15622..8b72acc8c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go @@ -2,7 +2,7 @@ package typeperson -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -104,6 +104,10 @@ type privateManager interface { // method for the "ActivityStreamsInboxProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, error) // DeserializeLikedPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsLikedProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go index 418201f28..bad346077 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go @@ -3,7 +3,7 @@ package typeperson import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -40,6 +40,7 @@ type ActivityStreamsPerson struct { ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty + TootIndexable vocab.TootIndexableProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty @@ -233,6 +234,11 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsInbox = p } + if p, err := mgr.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = p + } if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -411,6 +417,8 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "inbox" { continue + } else if k == "indexable" { + continue } else if k == "liked" { continue } else if k == "likes" { @@ -793,6 +801,12 @@ func (this ActivityStreamsPerson) GetTootFeatured() vocab.TootFeaturedProperty { return this.TootFeatured } +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsPerson) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + // GetTypeName returns the name of this type. func (this ActivityStreamsPerson) GetTypeName() string { return "Person" @@ -847,6 +861,7 @@ func (this ActivityStreamsPerson) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsImage, m) m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) + m = this.helperJSONLDContext(this.TootIndexable, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) @@ -1202,6 +1217,20 @@ func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "liked" if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1759,6 +1788,14 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsInbox.Name()] = i } } + // Maybe serialize property "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.Name()] = i + } + } // Maybe serialize property "liked" if this.ActivityStreamsLiked != nil { if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { @@ -2209,6 +2246,11 @@ func (this *ActivityStreamsPerson) SetTootFeatured(i vocab.TootFeaturedProperty) this.TootFeatured = i } +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsPerson) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = i +} + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. func (this *ActivityStreamsPerson) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { this.W3IDSecurityV1PublicKey = i diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_pkg.go index 4d532745c..e87a1ca33 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_pkg.go @@ -2,7 +2,7 @@ package typeplace -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go index 8e311fc6c..2c7f96e8d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go @@ -3,7 +3,7 @@ package typeplace import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_pkg.go index a265e2dfc..dbd20143d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_pkg.go @@ -2,7 +2,7 @@ package typeprofile -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go index c16d1bb12..7eed51390 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go @@ -3,7 +3,7 @@ package typeprofile import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_pkg.go index b421c378e..f2ce80982 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_pkg.go @@ -2,7 +2,7 @@ package typequestion -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go index f3e191663..f2ef016f1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go @@ -3,7 +3,7 @@ package typequestion import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_pkg.go index 7a704e215..c29565001 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_pkg.go @@ -2,7 +2,7 @@ package typeread -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go index 7fdb8ca48..22471ce7b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go @@ -3,7 +3,7 @@ package typeread import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_pkg.go index 63779881b..61bc5e24b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_pkg.go @@ -2,7 +2,7 @@ package typereject -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go index bc21d6da9..d994b8b13 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go @@ -3,7 +3,7 @@ package typereject import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go index d70f29598..f15b751fe 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go @@ -2,7 +2,7 @@ package typerelationship -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go index afc54e75d..2b56986a6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go @@ -3,7 +3,7 @@ package typerelationship import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_pkg.go index 711563e2c..542ea7b25 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_pkg.go @@ -2,7 +2,7 @@ package typeremove -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go index 10e1dbac0..94907f218 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go @@ -3,7 +3,7 @@ package typeremove import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go index 31765e76c..c06ee9999 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go @@ -2,7 +2,7 @@ package typeservice -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -104,6 +104,10 @@ type privateManager interface { // method for the "ActivityStreamsInboxProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, error) // DeserializeLikedPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsLikedProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go index b2fcb4765..1d9083026 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go @@ -3,7 +3,7 @@ package typeservice import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -40,6 +40,7 @@ type ActivityStreamsService struct { ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty + TootIndexable vocab.TootIndexableProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty @@ -233,6 +234,11 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (* } else if p != nil { this.ActivityStreamsInbox = p } + if p, err := mgr.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = p + } if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -411,6 +417,8 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (* continue } else if k == "inbox" { continue + } else if k == "indexable" { + continue } else if k == "liked" { continue } else if k == "likes" { @@ -793,6 +801,12 @@ func (this ActivityStreamsService) GetTootFeatured() vocab.TootFeaturedProperty return this.TootFeatured } +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsService) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + // GetTypeName returns the name of this type. func (this ActivityStreamsService) GetTypeName() string { return "Service" @@ -847,6 +861,7 @@ func (this ActivityStreamsService) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsImage, m) m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) + m = this.helperJSONLDContext(this.TootIndexable, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) @@ -1202,6 +1217,20 @@ func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "liked" if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1759,6 +1788,14 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsInbox.Name()] = i } } + // Maybe serialize property "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.Name()] = i + } + } // Maybe serialize property "liked" if this.ActivityStreamsLiked != nil { if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { @@ -2209,6 +2246,11 @@ func (this *ActivityStreamsService) SetTootFeatured(i vocab.TootFeaturedProperty this.TootFeatured = i } +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsService) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = i +} + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. func (this *ActivityStreamsService) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { this.W3IDSecurityV1PublicKey = i diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go index 9cc8d343b..5cbb5afc4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go @@ -2,7 +2,7 @@ package typetentativeaccept -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go index c76c66d85..b48b208dc 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go @@ -3,7 +3,7 @@ package typetentativeaccept import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go index bff37cd93..5be093eba 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go @@ -2,7 +2,7 @@ package typetentativereject -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go index a7804f3b9..bc94345b2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go @@ -3,7 +3,7 @@ package typetentativereject import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go index d8442e5ad..5c6b2bd53 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go @@ -2,7 +2,7 @@ package typetombstone -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go index 57c18b5db..9a560c48c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go @@ -3,7 +3,7 @@ package typetombstone import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_pkg.go index f64de152d..27bf35131 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_pkg.go @@ -2,7 +2,7 @@ package typetravel -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go index c4c18eaf0..ce16e6495 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go @@ -3,7 +3,7 @@ package typetravel import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_pkg.go index 0a99064a2..6f9f614df 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_pkg.go @@ -2,7 +2,7 @@ package typeundo -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go index 8501a17d7..8ddd31301 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go @@ -3,7 +3,7 @@ package typeundo import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_pkg.go index 7c13f1f04..6382d816e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_pkg.go @@ -2,7 +2,7 @@ package typeupdate -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go index 6cf462b8e..583f7fa45 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go @@ -3,7 +3,7 @@ package typeupdate import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_pkg.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_pkg.go index 5033b47fc..b03980b2a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_pkg.go @@ -2,7 +2,7 @@ package typevideo -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -64,6 +64,10 @@ type privateManager interface { // method for the "ActivityStreamsEndTimeProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, error) // DeserializeGeneratorPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go index 328357c52..c8a93e70f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go @@ -3,7 +3,7 @@ package typevideo import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -32,6 +32,7 @@ type ActivityStreamsVideo struct { ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + TootFocalPoint vocab.TootFocalPointProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty @@ -174,6 +175,11 @@ func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsEndTime = p } + if p, err := mgr.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = p + } if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -327,6 +333,8 @@ func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "endTime" { continue + } else if k == "focalPoint" { + continue } else if k == "generator" { continue } else if k == "icon" { @@ -645,6 +653,12 @@ func (this ActivityStreamsVideo) GetTootBlurhash() vocab.TootBlurhashProperty { return this.TootBlurhash } +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsVideo) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + // GetTypeName returns the name of this type. func (this ActivityStreamsVideo) GetTypeName() string { return "Video" @@ -683,6 +697,7 @@ func (this ActivityStreamsVideo) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsContext, m) m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.TootFocalPoint, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) @@ -897,6 +912,20 @@ func (this ActivityStreamsVideo) LessThan(o vocab.ActivityStreamsVideo) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "generator" if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1360,6 +1389,14 @@ func (this ActivityStreamsVideo) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsEndTime.Name()] = i } } + // Maybe serialize property "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.Name()] = i + } + } // Maybe serialize property "generator" if this.ActivityStreamsGenerator != nil { if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { @@ -1751,6 +1788,11 @@ func (this *ActivityStreamsVideo) SetTootBlurhash(i vocab.TootBlurhashProperty) this.TootBlurhash = i } +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsVideo) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = i +} + // VocabularyURI returns the vocabulary's URI as a string. func (this ActivityStreamsVideo) VocabularyURI() string { return "https://www.w3.org/ns/activitystreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_pkg.go index dac5e3241..c859ee06b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_pkg.go @@ -2,7 +2,7 @@ package typeview -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go index a986885bd..b3c84ffa4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go @@ -3,7 +3,7 @@ package typeview import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_pkg.go index 9e64bce65..c77f4bc95 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_pkg.go @@ -2,7 +2,7 @@ package typealbum -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go index 6cfdc3978..a872432c6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go @@ -3,7 +3,7 @@ package typealbum import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_pkg.go index 80cbc2134..4577939d5 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_pkg.go @@ -2,7 +2,7 @@ package typeartist -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go index 3bf9d521c..ef3295d36 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go @@ -3,7 +3,7 @@ package typeartist import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_pkg.go index 3fc267b3e..d7c7a3e9a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_pkg.go @@ -2,7 +2,7 @@ package typelibrary -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go index 5f3793b82..883265801 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go @@ -3,7 +3,7 @@ package typelibrary import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_pkg.go index bc5a0d86c..e049ae958 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_pkg.go @@ -2,7 +2,7 @@ package typetrack -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go index af5779872..1ac1f1bb1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go @@ -3,7 +3,7 @@ package typetrack import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go index 0ce20d3f7..952e21c23 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go @@ -3,8 +3,8 @@ package propertyalways import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go index ec2b7ce20..1aa43f893 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go @@ -3,8 +3,8 @@ package propertyapprovalrequired import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go index 05da30c07..b7215ffbb 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go @@ -3,8 +3,8 @@ package propertyapprovedby import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go new file mode 100644 index 000000000..70135362b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyautomaticapproval contains the implementation for the +// automaticApproval property. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyautomaticapproval diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go new file mode 100644 index 000000000..d46f7b30a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyautomaticapproval + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go new file mode 100644 index 000000000..9714339f5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go @@ -0,0 +1,511 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyautomaticapproval + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialAutomaticApprovalPropertyIterator is an iterator for a property. It +// is permitted to be a single nilable value type. +type GoToSocialAutomaticApprovalPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialAutomaticApprovalProperty +} + +// NewGoToSocialAutomaticApprovalPropertyIterator creates a new +// GoToSocialAutomaticApproval property. +func NewGoToSocialAutomaticApprovalPropertyIterator() *GoToSocialAutomaticApprovalPropertyIterator { + return &GoToSocialAutomaticApprovalPropertyIterator{alias: ""} +} + +// deserializeGoToSocialAutomaticApprovalPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialAutomaticApprovalPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialAutomaticApprovalPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialAutomaticApprovalPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialAutomaticApprovalPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialAutomaticApprovalPropertyIterator) Get() *url.URL { + return this.xmlschemaAnyURIMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialAutomaticApprovalPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialAutomaticApprovalPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialAutomaticApprovalPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialAutomaticApprovalPropertyIterator) IsXMLSchemaAnyURI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialAutomaticApprovalPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialAutomaticApprovalPropertyIterator) KindIndex() int { + if this.IsXMLSchemaAnyURI() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialAutomaticApprovalPropertyIterator) LessThan(o vocab.GoToSocialAutomaticApprovalPropertyIterator) bool { + if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return anyuri.LessAnyURI(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialAutomaticApproval". +func (this GoToSocialAutomaticApprovalPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialAutomaticApproval" + } else { + return "GoToSocialAutomaticApproval" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialAutomaticApprovalPropertyIterator) Next() vocab.GoToSocialAutomaticApprovalPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this GoToSocialAutomaticApprovalPropertyIterator) Prev() vocab.GoToSocialAutomaticApprovalPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialAutomaticApprovalPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialAutomaticApprovalPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialAutomaticApprovalPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialAutomaticApprovalPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialAutomaticApprovalProperty is the non-functional property +// "automaticApproval". It is permitted to have one or more values, and of +// different value types. +type GoToSocialAutomaticApprovalProperty struct { + properties []*GoToSocialAutomaticApprovalPropertyIterator + alias string +} + +// DeserializeAutomaticApprovalProperty creates a "automaticApproval" property +// from an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeAutomaticApprovalProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "automaticApproval" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "automaticApproval") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialAutomaticApprovalProperty{ + alias: alias, + properties: []*GoToSocialAutomaticApprovalPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialAutomaticApprovalPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialAutomaticApprovalPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewGoToSocialAutomaticApprovalProperty creates a new automaticApproval property. +func NewGoToSocialAutomaticApprovalProperty() *GoToSocialAutomaticApprovalProperty { + return &GoToSocialAutomaticApprovalProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "automaticApproval" +func (this *GoToSocialAutomaticApprovalProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "automaticApproval". Invalidates iterators that are traversing +// using Prev. +func (this *GoToSocialAutomaticApprovalProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this GoToSocialAutomaticApprovalProperty) At(index int) vocab.GoToSocialAutomaticApprovalPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this GoToSocialAutomaticApprovalProperty) Begin() vocab.GoToSocialAutomaticApprovalPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialAutomaticApprovalProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this GoToSocialAutomaticApprovalProperty) End() vocab.GoToSocialAutomaticApprovalPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "automaticApproval". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialAutomaticApprovalProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "automaticApproval". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *GoToSocialAutomaticApprovalProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialAutomaticApprovalProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialAutomaticApprovalProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "automaticApproval" +// property. +func (this GoToSocialAutomaticApprovalProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this GoToSocialAutomaticApprovalProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return anyuri.LessAnyURI(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialAutomaticApprovalProperty) LessThan(o vocab.GoToSocialAutomaticApprovalProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("automaticApproval") with any alias. +func (this GoToSocialAutomaticApprovalProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "automaticApproval" + } else { + return "automaticApproval" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "automaticApproval". +func (this *GoToSocialAutomaticApprovalProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialAutomaticApprovalPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "automaticApproval". Invalidates all iterators. +func (this *GoToSocialAutomaticApprovalProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialAutomaticApprovalPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "automaticApproval", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialAutomaticApprovalProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialAutomaticApprovalPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialAutomaticApprovalProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a anyURI value to be at the specified index for the property +// "automaticApproval". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialAutomaticApprovalProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "automaticApproval". Panics if the index is out of bounds. +func (this *GoToSocialAutomaticApprovalProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "automaticApproval" +// property. +func (this GoToSocialAutomaticApprovalProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go index 4ae112975..e77983b60 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go @@ -2,7 +2,7 @@ package propertycanannounce -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go index c6cc7402e..e587f6008 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go @@ -3,7 +3,7 @@ package propertycanannounce import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go similarity index 90% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go index 3439b7d42..3543ebc98 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go @@ -2,7 +2,7 @@ package propertycanlike -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go index cd60dafe4..3de1db3b0 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go @@ -3,7 +3,7 @@ package propertycanlike import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_doc.go new file mode 100644 index 000000000..21077ff16 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertycanquote contains the implementation for the canQuote property. +// All applications are strongly encouraged to use the interface instead of +// this concrete definition. The interfaces allow applications to consume only +// the types and properties needed and be independent of the go-fed +// implementation if another alternative implementation is created. This +// package is code-generated and subject to the same license as the go-fed +// tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertycanquote diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go new file mode 100644 index 000000000..601945cee --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanquote + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeCanQuoteGoToSocial returns the deserialization method for + // the "GoToSocialCanQuote" non-functional property in the vocabulary + // "GoToSocial" + DeserializeCanQuoteGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuote, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go new file mode 100644 index 000000000..19f1dfa51 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go @@ -0,0 +1,618 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanquote + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialCanQuotePropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type GoToSocialCanQuotePropertyIterator struct { + gotosocialCanQuoteMember vocab.GoToSocialCanQuote + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.GoToSocialCanQuoteProperty +} + +// NewGoToSocialCanQuotePropertyIterator creates a new GoToSocialCanQuote property. +func NewGoToSocialCanQuotePropertyIterator() *GoToSocialCanQuotePropertyIterator { + return &GoToSocialCanQuotePropertyIterator{alias: ""} +} + +// deserializeGoToSocialCanQuotePropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialCanQuotePropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanQuotePropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &GoToSocialCanQuotePropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeCanQuoteGoToSocial()(m, aliasMap); err == nil { + this := &GoToSocialCanQuotePropertyIterator{ + alias: alias, + gotosocialCanQuoteMember: v, + } + return this, nil + } + } + this := &GoToSocialCanQuotePropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsGoToSocialCanQuote returns +// false, Get will return any arbitrary value. +func (this GoToSocialCanQuotePropertyIterator) Get() vocab.GoToSocialCanQuote { + return this.gotosocialCanQuoteMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialCanQuotePropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this GoToSocialCanQuotePropertyIterator) GetType() vocab.Type { + if this.IsGoToSocialCanQuote() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialCanQuotePropertyIterator) HasAny() bool { + return this.IsGoToSocialCanQuote() || this.iri != nil +} + +// IsGoToSocialCanQuote returns true if this property is set and not an IRI. +func (this GoToSocialCanQuotePropertyIterator) IsGoToSocialCanQuote() bool { + return this.gotosocialCanQuoteMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialCanQuotePropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialCanQuotePropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + if this.IsGoToSocialCanQuote() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialCanQuotePropertyIterator) KindIndex() int { + if this.IsGoToSocialCanQuote() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialCanQuotePropertyIterator) LessThan(o vocab.GoToSocialCanQuotePropertyIterator) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsGoToSocialCanQuote() && !o.IsGoToSocialCanQuote() { + // Both are unknowns. + return false + } else if this.IsGoToSocialCanQuote() && !o.IsGoToSocialCanQuote() { + // Values are always greater than unknown values. + return false + } else if !this.IsGoToSocialCanQuote() && o.IsGoToSocialCanQuote() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialCanQuote". +func (this GoToSocialCanQuotePropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialCanQuote" + } else { + return "GoToSocialCanQuote" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialCanQuotePropertyIterator) Next() vocab.GoToSocialCanQuotePropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this GoToSocialCanQuotePropertyIterator) Prev() vocab.GoToSocialCanQuotePropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsGoToSocialCanQuote afterwards +// will return true. +func (this *GoToSocialCanQuotePropertyIterator) Set(v vocab.GoToSocialCanQuote) { + this.clear() + this.gotosocialCanQuoteMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialCanQuotePropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *GoToSocialCanQuotePropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.GoToSocialCanQuote); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on GoToSocialCanQuote property: %T", t) +} + +// clear ensures no value of this property is set. Calling IsGoToSocialCanQuote +// afterwards will return false. +func (this *GoToSocialCanQuotePropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.gotosocialCanQuoteMember = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialCanQuotePropertyIterator) serialize() (interface{}, error) { + if this.IsGoToSocialCanQuote() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// GoToSocialCanQuoteProperty is the non-functional property "canQuote". It is +// permitted to have one or more values, and of different value types. +type GoToSocialCanQuoteProperty struct { + properties []*GoToSocialCanQuotePropertyIterator + alias string +} + +// DeserializeCanQuoteProperty creates a "canQuote" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeCanQuoteProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "canQuote" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "canQuote") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialCanQuoteProperty{ + alias: alias, + properties: []*GoToSocialCanQuotePropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialCanQuotePropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialCanQuotePropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewGoToSocialCanQuoteProperty creates a new canQuote property. +func NewGoToSocialCanQuoteProperty() *GoToSocialCanQuoteProperty { + return &GoToSocialCanQuoteProperty{alias: ""} +} + +// AppendGoToSocialCanQuote appends a CanQuote value to the back of a list of the +// property "canQuote". Invalidates iterators that are traversing using Prev. +func (this *GoToSocialCanQuoteProperty) AppendGoToSocialCanQuote(v vocab.GoToSocialCanQuote) { + this.properties = append(this.properties, &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + gotosocialCanQuoteMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property "canQuote" +func (this *GoToSocialCanQuoteProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "canQuote". Invalidates iterators that are traversing using Prev. +// Returns an error if the type is not a valid one to set for this property. +func (this *GoToSocialCanQuoteProperty) AppendType(t vocab.Type) error { + n := &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, n) + return nil +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this GoToSocialCanQuoteProperty) At(index int) vocab.GoToSocialCanQuotePropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this GoToSocialCanQuoteProperty) Begin() vocab.GoToSocialCanQuotePropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialCanQuoteProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this GoToSocialCanQuoteProperty) End() vocab.GoToSocialCanQuotePropertyIterator { + return nil +} + +// InsertGoToSocialCanQuote inserts a CanQuote value at the specified index for a +// property "canQuote". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) InsertGoToSocialCanQuote(idx int, v vocab.GoToSocialCanQuote) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + gotosocialCanQuoteMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Insert inserts an IRI value at the specified index for a property "canQuote". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "canQuote". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *GoToSocialCanQuoteProperty) InsertType(idx int, t vocab.Type) error { + n := &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = n + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialCanQuoteProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialCanQuoteProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "canQuote" property. +func (this GoToSocialCanQuoteProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this GoToSocialCanQuoteProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialCanQuoteProperty) LessThan(o vocab.GoToSocialCanQuoteProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("canQuote") with any alias. +func (this GoToSocialCanQuoteProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "canQuote" + } else { + return "canQuote" + } +} + +// PrependGoToSocialCanQuote prepends a CanQuote value to the front of a list of +// the property "canQuote". Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) PrependGoToSocialCanQuote(v vocab.GoToSocialCanQuote) { + this.properties = append([]*GoToSocialCanQuotePropertyIterator{{ + alias: this.alias, + gotosocialCanQuoteMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "canQuote". +func (this *GoToSocialCanQuoteProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialCanQuotePropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "canQuote". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *GoToSocialCanQuoteProperty) PrependType(t vocab.Type) error { + n := &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*GoToSocialCanQuotePropertyIterator{n}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// Remove deletes an element at the specified index from a list of the property +// "canQuote", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialCanQuotePropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialCanQuoteProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a CanQuote value to be at the specified index for the property +// "canQuote". Panics if the index is out of bounds. Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) Set(idx int, v vocab.GoToSocialCanQuote) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + gotosocialCanQuoteMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "canQuote". Panics if the index is out of bounds. +func (this *GoToSocialCanQuoteProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "canQuote". Invalidates all iterators. Returns an error if the type is not +// a valid one to set for this property. Panics if the index is out of bounds. +func (this *GoToSocialCanQuoteProperty) SetType(idx int, t vocab.Type) error { + n := &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + (this.properties)[idx] = n + return nil +} + +// Swap swaps the location of values at two indices for the "canQuote" property. +func (this GoToSocialCanQuoteProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go similarity index 90% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go index 0059bf5ea..8546b6a73 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go @@ -2,7 +2,7 @@ package propertycanreply -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go index cf6cda87c..38ddfc11e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go @@ -3,7 +3,7 @@ package propertycanreply import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go new file mode 100644 index 000000000..742c63349 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyinteractingobject contains the implementation for the +// interactingObject property. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyinteractingobject diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go new file mode 100644 index 000000000..20cb4d776 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractingobject + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go new file mode 100644 index 000000000..f4c8fd221 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go @@ -0,0 +1,511 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractingobject + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialInteractingObjectPropertyIterator is an iterator for a property. It +// is permitted to be a single nilable value type. +type GoToSocialInteractingObjectPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialInteractingObjectProperty +} + +// NewGoToSocialInteractingObjectPropertyIterator creates a new +// GoToSocialInteractingObject property. +func NewGoToSocialInteractingObjectPropertyIterator() *GoToSocialInteractingObjectPropertyIterator { + return &GoToSocialInteractingObjectPropertyIterator{alias: ""} +} + +// deserializeGoToSocialInteractingObjectPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialInteractingObjectPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialInteractingObjectPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialInteractingObjectPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialInteractingObjectPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialInteractingObjectPropertyIterator) Get() *url.URL { + return this.xmlschemaAnyURIMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialInteractingObjectPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialInteractingObjectPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialInteractingObjectPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialInteractingObjectPropertyIterator) IsXMLSchemaAnyURI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialInteractingObjectPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialInteractingObjectPropertyIterator) KindIndex() int { + if this.IsXMLSchemaAnyURI() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialInteractingObjectPropertyIterator) LessThan(o vocab.GoToSocialInteractingObjectPropertyIterator) bool { + if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return anyuri.LessAnyURI(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialInteractingObject". +func (this GoToSocialInteractingObjectPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialInteractingObject" + } else { + return "GoToSocialInteractingObject" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialInteractingObjectPropertyIterator) Next() vocab.GoToSocialInteractingObjectPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this GoToSocialInteractingObjectPropertyIterator) Prev() vocab.GoToSocialInteractingObjectPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialInteractingObjectPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialInteractingObjectPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialInteractingObjectPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialInteractingObjectPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialInteractingObjectProperty is the non-functional property +// "interactingObject". It is permitted to have one or more values, and of +// different value types. +type GoToSocialInteractingObjectProperty struct { + properties []*GoToSocialInteractingObjectPropertyIterator + alias string +} + +// DeserializeInteractingObjectProperty creates a "interactingObject" property +// from an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeInteractingObjectProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "interactingObject" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "interactingObject") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialInteractingObjectProperty{ + alias: alias, + properties: []*GoToSocialInteractingObjectPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialInteractingObjectPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialInteractingObjectPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewGoToSocialInteractingObjectProperty creates a new interactingObject property. +func NewGoToSocialInteractingObjectProperty() *GoToSocialInteractingObjectProperty { + return &GoToSocialInteractingObjectProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "interactingObject" +func (this *GoToSocialInteractingObjectProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "interactingObject". Invalidates iterators that are traversing +// using Prev. +func (this *GoToSocialInteractingObjectProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this GoToSocialInteractingObjectProperty) At(index int) vocab.GoToSocialInteractingObjectPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this GoToSocialInteractingObjectProperty) Begin() vocab.GoToSocialInteractingObjectPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialInteractingObjectProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this GoToSocialInteractingObjectProperty) End() vocab.GoToSocialInteractingObjectPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "interactingObject". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialInteractingObjectProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "interactingObject". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *GoToSocialInteractingObjectProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialInteractingObjectProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialInteractingObjectProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "interactingObject" +// property. +func (this GoToSocialInteractingObjectProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this GoToSocialInteractingObjectProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return anyuri.LessAnyURI(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialInteractingObjectProperty) LessThan(o vocab.GoToSocialInteractingObjectProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("interactingObject") with any alias. +func (this GoToSocialInteractingObjectProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "interactingObject" + } else { + return "interactingObject" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "interactingObject". +func (this *GoToSocialInteractingObjectProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialInteractingObjectPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "interactingObject". Invalidates all iterators. +func (this *GoToSocialInteractingObjectProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialInteractingObjectPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "interactingObject", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialInteractingObjectProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialInteractingObjectPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialInteractingObjectProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a anyURI value to be at the specified index for the property +// "interactingObject". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialInteractingObjectProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "interactingObject". Panics if the index is out of bounds. +func (this *GoToSocialInteractingObjectProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "interactingObject" +// property. +func (this GoToSocialInteractingObjectProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go index 9305232c6..9db21b98d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go @@ -2,7 +2,7 @@ package propertyinteractionpolicy -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go index daada41e1..0836aed04 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go @@ -3,7 +3,7 @@ package propertyinteractionpolicy import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go new file mode 100644 index 000000000..b7633ec1a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyinteractiontarget contains the implementation for the +// interactionTarget property. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyinteractiontarget diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go new file mode 100644 index 000000000..c957dc08e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractiontarget + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go new file mode 100644 index 000000000..dc268a79b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go @@ -0,0 +1,511 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractiontarget + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialInteractionTargetPropertyIterator is an iterator for a property. It +// is permitted to be a single nilable value type. +type GoToSocialInteractionTargetPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialInteractionTargetProperty +} + +// NewGoToSocialInteractionTargetPropertyIterator creates a new +// GoToSocialInteractionTarget property. +func NewGoToSocialInteractionTargetPropertyIterator() *GoToSocialInteractionTargetPropertyIterator { + return &GoToSocialInteractionTargetPropertyIterator{alias: ""} +} + +// deserializeGoToSocialInteractionTargetPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialInteractionTargetPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialInteractionTargetPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialInteractionTargetPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialInteractionTargetPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialInteractionTargetPropertyIterator) Get() *url.URL { + return this.xmlschemaAnyURIMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialInteractionTargetPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialInteractionTargetPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialInteractionTargetPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialInteractionTargetPropertyIterator) IsXMLSchemaAnyURI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialInteractionTargetPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialInteractionTargetPropertyIterator) KindIndex() int { + if this.IsXMLSchemaAnyURI() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialInteractionTargetPropertyIterator) LessThan(o vocab.GoToSocialInteractionTargetPropertyIterator) bool { + if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return anyuri.LessAnyURI(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialInteractionTarget". +func (this GoToSocialInteractionTargetPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialInteractionTarget" + } else { + return "GoToSocialInteractionTarget" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialInteractionTargetPropertyIterator) Next() vocab.GoToSocialInteractionTargetPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this GoToSocialInteractionTargetPropertyIterator) Prev() vocab.GoToSocialInteractionTargetPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialInteractionTargetPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialInteractionTargetPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialInteractionTargetPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialInteractionTargetPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialInteractionTargetProperty is the non-functional property +// "interactionTarget". It is permitted to have one or more values, and of +// different value types. +type GoToSocialInteractionTargetProperty struct { + properties []*GoToSocialInteractionTargetPropertyIterator + alias string +} + +// DeserializeInteractionTargetProperty creates a "interactionTarget" property +// from an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeInteractionTargetProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "interactionTarget" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "interactionTarget") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialInteractionTargetProperty{ + alias: alias, + properties: []*GoToSocialInteractionTargetPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialInteractionTargetPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialInteractionTargetPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewGoToSocialInteractionTargetProperty creates a new interactionTarget property. +func NewGoToSocialInteractionTargetProperty() *GoToSocialInteractionTargetProperty { + return &GoToSocialInteractionTargetProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "interactionTarget" +func (this *GoToSocialInteractionTargetProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "interactionTarget". Invalidates iterators that are traversing +// using Prev. +func (this *GoToSocialInteractionTargetProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this GoToSocialInteractionTargetProperty) At(index int) vocab.GoToSocialInteractionTargetPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this GoToSocialInteractionTargetProperty) Begin() vocab.GoToSocialInteractionTargetPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialInteractionTargetProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this GoToSocialInteractionTargetProperty) End() vocab.GoToSocialInteractionTargetPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "interactionTarget". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialInteractionTargetProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "interactionTarget". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *GoToSocialInteractionTargetProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialInteractionTargetProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialInteractionTargetProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "interactionTarget" +// property. +func (this GoToSocialInteractionTargetProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this GoToSocialInteractionTargetProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return anyuri.LessAnyURI(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialInteractionTargetProperty) LessThan(o vocab.GoToSocialInteractionTargetProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("interactionTarget") with any alias. +func (this GoToSocialInteractionTargetProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "interactionTarget" + } else { + return "interactionTarget" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "interactionTarget". +func (this *GoToSocialInteractionTargetProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialInteractionTargetPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "interactionTarget". Invalidates all iterators. +func (this *GoToSocialInteractionTargetProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialInteractionTargetPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "interactionTarget", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialInteractionTargetProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialInteractionTargetPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialInteractionTargetProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a anyURI value to be at the specified index for the property +// "interactionTarget". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialInteractionTargetProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "interactionTarget". Panics if the index is out of bounds. +func (this *GoToSocialInteractionTargetProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "interactionTarget" +// property. +func (this GoToSocialInteractionTargetProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go new file mode 100644 index 000000000..19ff2b245 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertymanualapproval contains the implementation for the +// manualApproval property. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertymanualapproval diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go new file mode 100644 index 000000000..e9ee735e2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertymanualapproval + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go new file mode 100644 index 000000000..6256d481b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go @@ -0,0 +1,510 @@ +// Code generated by astool. DO NOT EDIT. + +package propertymanualapproval + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialManualApprovalPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type GoToSocialManualApprovalPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialManualApprovalProperty +} + +// NewGoToSocialManualApprovalPropertyIterator creates a new +// GoToSocialManualApproval property. +func NewGoToSocialManualApprovalPropertyIterator() *GoToSocialManualApprovalPropertyIterator { + return &GoToSocialManualApprovalPropertyIterator{alias: ""} +} + +// deserializeGoToSocialManualApprovalPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialManualApprovalPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialManualApprovalPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialManualApprovalPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialManualApprovalPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialManualApprovalPropertyIterator) Get() *url.URL { + return this.xmlschemaAnyURIMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialManualApprovalPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialManualApprovalPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialManualApprovalPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialManualApprovalPropertyIterator) IsXMLSchemaAnyURI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialManualApprovalPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialManualApprovalPropertyIterator) KindIndex() int { + if this.IsXMLSchemaAnyURI() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialManualApprovalPropertyIterator) LessThan(o vocab.GoToSocialManualApprovalPropertyIterator) bool { + if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return anyuri.LessAnyURI(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialManualApproval". +func (this GoToSocialManualApprovalPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialManualApproval" + } else { + return "GoToSocialManualApproval" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialManualApprovalPropertyIterator) Next() vocab.GoToSocialManualApprovalPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this GoToSocialManualApprovalPropertyIterator) Prev() vocab.GoToSocialManualApprovalPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialManualApprovalPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialManualApprovalPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialManualApprovalPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialManualApprovalPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialManualApprovalProperty is the non-functional property +// "manualApproval". It is permitted to have one or more values, and of +// different value types. +type GoToSocialManualApprovalProperty struct { + properties []*GoToSocialManualApprovalPropertyIterator + alias string +} + +// DeserializeManualApprovalProperty creates a "manualApproval" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeManualApprovalProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "manualApproval" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "manualApproval") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialManualApprovalProperty{ + alias: alias, + properties: []*GoToSocialManualApprovalPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialManualApprovalPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialManualApprovalPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewGoToSocialManualApprovalProperty creates a new manualApproval property. +func NewGoToSocialManualApprovalProperty() *GoToSocialManualApprovalProperty { + return &GoToSocialManualApprovalProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "manualApproval" +func (this *GoToSocialManualApprovalProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "manualApproval". Invalidates iterators that are traversing using +// Prev. +func (this *GoToSocialManualApprovalProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this GoToSocialManualApprovalProperty) At(index int) vocab.GoToSocialManualApprovalPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this GoToSocialManualApprovalProperty) Begin() vocab.GoToSocialManualApprovalPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialManualApprovalProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this GoToSocialManualApprovalProperty) End() vocab.GoToSocialManualApprovalPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "manualApproval". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialManualApprovalProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "manualApproval". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *GoToSocialManualApprovalProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this GoToSocialManualApprovalProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialManualApprovalProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "manualApproval" property. +func (this GoToSocialManualApprovalProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this GoToSocialManualApprovalProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return anyuri.LessAnyURI(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialManualApprovalProperty) LessThan(o vocab.GoToSocialManualApprovalProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("manualApproval") with any alias. +func (this GoToSocialManualApprovalProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "manualApproval" + } else { + return "manualApproval" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "manualApproval". +func (this *GoToSocialManualApprovalProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialManualApprovalPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "manualApproval". Invalidates all iterators. +func (this *GoToSocialManualApprovalProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialManualApprovalPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "manualApproval", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialManualApprovalProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialManualApprovalPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialManualApprovalProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a anyURI value to be at the specified index for the property +// "manualApproval". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialManualApprovalProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "manualApproval". Panics if the index is out of bounds. +func (this *GoToSocialManualApprovalProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "manualApproval" +// property. +func (this GoToSocialManualApprovalProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go index a4a32652a..ed10e7294 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go @@ -2,7 +2,7 @@ package typeannounceapproval -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go index 49deeb0ad..a97e92be5 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go @@ -3,11 +3,12 @@ package typeannounceapproval import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) +// DEPRECATED: Use `AnnounceAuthorization` instead. type GoToSocialAnnounceApproval struct { ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go new file mode 100644 index 000000000..549e0ed59 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeannounceauthorization contains the implementation for the +// AnnounceAuthorization type. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typeannounceauthorization diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go new file mode 100644 index 000000000..8f83248ea --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go @@ -0,0 +1,189 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannounceauthorization + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeInteractingObjectPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractingObjectProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) + // DeserializeInteractionTargetPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionTargetProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go new file mode 100644 index 000000000..47892251e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go @@ -0,0 +1,1726 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannounceauthorization + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialAnnounceAuthorization struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty + GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// AnnounceAuthorizationIsDisjointWith returns true if the other provided type is +// disjoint with the AnnounceAuthorization type. +func AnnounceAuthorizationIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// AnnounceAuthorizationIsExtendedBy returns true if the other provided type +// extends from the AnnounceAuthorization type. Note that it returns false if +// the types are the same; see the "IsOrExtendsAnnounceAuthorization" variant +// instead. +func AnnounceAuthorizationIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeAnnounceAuthorization creates a AnnounceAuthorization from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeAnnounceAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialAnnounceAuthorization, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialAnnounceAuthorization{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "AnnounceAuthorization" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "AnnounceAuthorization", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "AnnounceAuthorization" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "AnnounceAuthorization") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractingObject = p + } + if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionTarget = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "interactingObject" { + continue + } else if k == "interactionTarget" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialAnnounceAuthorizationExtends returns true if the +// AnnounceAuthorization type extends from the other type. +func GoToSocialAnnounceAuthorizationExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsAnnounceAuthorization returns true if the other provided type is the +// AnnounceAuthorization type or extends from the AnnounceAuthorization type. +func IsOrExtendsAnnounceAuthorization(other vocab.Type) bool { + if other.GetTypeName() == "AnnounceAuthorization" { + return true + } + return AnnounceAuthorizationIsExtendedBy(other) +} + +// NewGoToSocialAnnounceAuthorization creates a new AnnounceAuthorization type +func NewGoToSocialAnnounceAuthorization() *GoToSocialAnnounceAuthorization { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("AnnounceAuthorization") + return &GoToSocialAnnounceAuthorization{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetGoToSocialInteractingObject returns the "interactingObject" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { + return this.GoToSocialInteractingObject +} + +// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { + return this.GoToSocialInteractionTarget +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialAnnounceAuthorization) GetTypeName() string { + return "AnnounceAuthorization" +} + +// GetUnknownProperties returns the unknown properties for the +// AnnounceAuthorization type. Note that this should not be used by app +// developers. It is only used to help determine which implementation is +// LessThan the other. Developers who are creating a different implementation +// of this type's interface can use this method in their LessThan +// implementation, but routine ActivityPub applications should not use this to +// bypass the code generation tool. +func (this GoToSocialAnnounceAuthorization) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the AnnounceAuthorization type extends from the +// other type. +func (this GoToSocialAnnounceAuthorization) IsExtending(other vocab.Type) bool { + return GoToSocialAnnounceAuthorizationExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this GoToSocialAnnounceAuthorization) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) + m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this AnnounceAuthorization is lesser, with an arbitrary +// but stable determination. +func (this GoToSocialAnnounceAuthorization) LessThan(o vocab.GoToSocialAnnounceAuthorization) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactingObject" + if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactionTarget" + if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this GoToSocialAnnounceAuthorization) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "AnnounceAuthorization" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "AnnounceAuthorization" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "interactingObject" + if this.GoToSocialInteractingObject != nil { + if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractingObject.Name()] = i + } + } + // Maybe serialize property "interactionTarget" + if this.GoToSocialInteractionTarget != nil { + if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionTarget.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetGoToSocialInteractingObject sets the "interactingObject" property. +func (this *GoToSocialAnnounceAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { + this.GoToSocialInteractingObject = i +} + +// SetGoToSocialInteractionTarget sets the "interactionTarget" property. +func (this *GoToSocialAnnounceAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { + this.GoToSocialInteractionTarget = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialAnnounceAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialAnnounceAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialAnnounceAuthorization) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialAnnounceAuthorization) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go new file mode 100644 index 000000000..b615c2d3d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeannouncerequest contains the implementation for the AnnounceRequest +// type. All applications are strongly encouraged to use the interface instead +// of this concrete definition. The interfaces allow applications to consume +// only the types and properties needed and be independent of the go-fed +// implementation if another alternative implementation is created. This +// package is code-generated and subject to the same license as the go-fed +// tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typeannouncerequest diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go new file mode 100644 index 000000000..6b1864061 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannouncerequest + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeActorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsActorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeInstrumentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsInstrumentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializeOriginPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsOriginProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeResultPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsResultProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTargetPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTargetProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go new file mode 100644 index 000000000..24f1ec236 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go @@ -0,0 +1,1850 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannouncerequest + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialAnnounceRequest struct { + ActivityStreamsActor vocab.ActivityStreamsActorProperty + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsResult vocab.ActivityStreamsResultProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// AnnounceRequestIsDisjointWith returns true if the other provided type is +// disjoint with the AnnounceRequest type. +func AnnounceRequestIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// AnnounceRequestIsExtendedBy returns true if the other provided type extends +// from the AnnounceRequest type. Note that it returns false if the types are +// the same; see the "IsOrExtendsAnnounceRequest" variant instead. +func AnnounceRequestIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeAnnounceRequest creates a AnnounceRequest from a map representation +// that has been unmarshalled from a text or binary format. +func DeserializeAnnounceRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialAnnounceRequest, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialAnnounceRequest{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "AnnounceRequest" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "AnnounceRequest", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "AnnounceRequest" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "AnnounceRequest") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsActor = p + } + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInstrument = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsOrigin = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsResult = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTarget = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "actor" { + continue + } else if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "instrument" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "origin" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "result" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "target" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialAnnounceRequestExtends returns true if the AnnounceRequest type +// extends from the other type. +func GoToSocialAnnounceRequestExtends(other vocab.Type) bool { + extensions := []string{"Activity", "Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsAnnounceRequest returns true if the other provided type is the +// AnnounceRequest type or extends from the AnnounceRequest type. +func IsOrExtendsAnnounceRequest(other vocab.Type) bool { + if other.GetTypeName() == "AnnounceRequest" { + return true + } + return AnnounceRequestIsExtendedBy(other) +} + +// NewGoToSocialAnnounceRequest creates a new AnnounceRequest type +func NewGoToSocialAnnounceRequest() *GoToSocialAnnounceRequest { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("AnnounceRequest") + return &GoToSocialAnnounceRequest{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsActor returns the "actor" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { + return this.ActivityStreamsActor +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsInstrument returns the "instrument" property if it exists, +// and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { + return this.ActivityStreamsInstrument +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { + return this.ActivityStreamsOrigin +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsResult returns the "result" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { + return this.ActivityStreamsResult +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTarget returns the "target" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { + return this.ActivityStreamsTarget +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialAnnounceRequest) GetTypeName() string { + return "AnnounceRequest" +} + +// GetUnknownProperties returns the unknown properties for the AnnounceRequest +// type. Note that this should not be used by app developers. It is only used +// to help determine which implementation is LessThan the other. Developers +// who are creating a different implementation of this type's interface can +// use this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this GoToSocialAnnounceRequest) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the AnnounceRequest type extends from the other +// type. +func (this GoToSocialAnnounceRequest) IsExtending(other vocab.Type) bool { + return GoToSocialAnnounceRequestExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this GoToSocialAnnounceRequest) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsActor, m) + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsResult, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this AnnounceRequest is lesser, with an arbitrary but +// stable determination. +func (this GoToSocialAnnounceRequest) LessThan(o vocab.GoToSocialAnnounceRequest) bool { + // Begin: Compare known properties + // Compare property "actor" + if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "instrument" + if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "origin" + if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "result" + if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "target" + if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this GoToSocialAnnounceRequest) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "AnnounceRequest" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "AnnounceRequest" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "actor" + if this.ActivityStreamsActor != nil { + if i, err := this.ActivityStreamsActor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsActor.Name()] = i + } + } + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "instrument" + if this.ActivityStreamsInstrument != nil { + if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInstrument.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "origin" + if this.ActivityStreamsOrigin != nil { + if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsOrigin.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "result" + if this.ActivityStreamsResult != nil { + if i, err := this.ActivityStreamsResult.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsResult.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "target" + if this.ActivityStreamsTarget != nil { + if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTarget.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsActor sets the "actor" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { + this.ActivityStreamsActor = i +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsInstrument sets the "instrument" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { + this.ActivityStreamsInstrument = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsOrigin sets the "origin" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { + this.ActivityStreamsOrigin = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsResult sets the "result" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { + this.ActivityStreamsResult = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTarget sets the "target" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { + this.ActivityStreamsTarget = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialAnnounceRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialAnnounceRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialAnnounceRequest) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialAnnounceRequest) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go similarity index 76% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go index c67cbe257..d74919c5b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go @@ -2,7 +2,7 @@ package typecanannounce -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -19,10 +19,19 @@ type privateManager interface { // deserialization method for the "GoToSocialApprovalRequiredProperty" // non-functional property in the vocabulary "GoToSocial" DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) + // DeserializeAutomaticApprovalPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialAutomaticApprovalProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) // DeserializeIdPropertyJSONLD returns the deserialization method for the // "JSONLDIdProperty" non-functional property in the vocabulary // "JSONLD" DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeManualApprovalPropertyGoToSocial returns the deserialization + // method for the "GoToSocialManualApprovalProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, error) } // jsonldContexter is a private interface to determine the JSON-LD contexts and diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go similarity index 72% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go index 9100c87db..835e2c577 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go @@ -2,14 +2,16 @@ package typecanannounce -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" type GoToSocialCanAnnounce struct { - GoToSocialAlways vocab.GoToSocialAlwaysProperty - GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty - JSONLDId vocab.JSONLDIdProperty - alias string - unknown map[string]interface{} + GoToSocialAlways vocab.GoToSocialAlwaysProperty + GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty + GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty + JSONLDId vocab.JSONLDIdProperty + GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty + alias string + unknown map[string]interface{} } // CanAnnounceIsDisjointWith returns true if the other provided type is disjoint @@ -50,11 +52,21 @@ func DeserializeCanAnnounce(m map[string]interface{}, aliasMap map[string]string } else if p != nil { this.GoToSocialApprovalRequired = p } + if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAutomaticApproval = p + } if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.JSONLDId = p } + if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialManualApproval = p + } // End: Known property deserialization // Begin: Unknown deserialization @@ -64,8 +76,12 @@ func DeserializeCanAnnounce(m map[string]interface{}, aliasMap map[string]string continue } else if k == "approvalRequired" { continue + } else if k == "automaticApproval" { + continue } else if k == "id" { continue + } else if k == "manualApproval" { + continue } // End: Code that ensures a property name is unknown this.unknown[k] = v @@ -111,6 +127,18 @@ func (this GoToSocialCanAnnounce) GetGoToSocialApprovalRequired() vocab.GoToSoci return this.GoToSocialApprovalRequired } +// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it +// exists, and nil otherwise. +func (this GoToSocialCanAnnounce) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { + return this.GoToSocialAutomaticApproval +} + +// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, +// and nil otherwise. +func (this GoToSocialCanAnnounce) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { + return this.GoToSocialManualApproval +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this GoToSocialCanAnnounce) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -143,7 +171,9 @@ func (this GoToSocialCanAnnounce) JSONLDContext() map[string]string { m := map[string]string{"https://gotosocial.org/ns": this.alias} m = this.helperJSONLDContext(this.GoToSocialAlways, m) m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) + m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) return m } @@ -180,6 +210,20 @@ func (this GoToSocialCanAnnounce) LessThan(o vocab.GoToSocialCanAnnounce) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "automaticApproval" + if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "id" if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -194,6 +238,20 @@ func (this GoToSocialCanAnnounce) LessThan(o vocab.GoToSocialCanAnnounce) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "manualApproval" + if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // End: Compare known properties // Begin: Compare unknown properties (only by number of them) @@ -228,6 +286,14 @@ func (this GoToSocialCanAnnounce) Serialize() (map[string]interface{}, error) { m[this.GoToSocialApprovalRequired.Name()] = i } } + // Maybe serialize property "automaticApproval" + if this.GoToSocialAutomaticApproval != nil { + if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAutomaticApproval.Name()] = i + } + } // Maybe serialize property "id" if this.JSONLDId != nil { if i, err := this.JSONLDId.Serialize(); err != nil { @@ -236,6 +302,14 @@ func (this GoToSocialCanAnnounce) Serialize() (map[string]interface{}, error) { m[this.JSONLDId.Name()] = i } } + // Maybe serialize property "manualApproval" + if this.GoToSocialManualApproval != nil { + if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialManualApproval.Name()] = i + } + } // End: Serialize known properties // Begin: Serialize unknown properties @@ -260,6 +334,16 @@ func (this *GoToSocialCanAnnounce) SetGoToSocialApprovalRequired(i vocab.GoToSoc this.GoToSocialApprovalRequired = i } +// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. +func (this *GoToSocialCanAnnounce) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { + this.GoToSocialAutomaticApproval = i +} + +// SetGoToSocialManualApproval sets the "manualApproval" property. +func (this *GoToSocialCanAnnounce) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { + this.GoToSocialManualApproval = i +} + // SetJSONLDId sets the "id" property. func (this *GoToSocialCanAnnounce) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go similarity index 76% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go index 325b69b1f..b79e14f64 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go @@ -2,7 +2,7 @@ package typecanlike -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -19,10 +19,19 @@ type privateManager interface { // deserialization method for the "GoToSocialApprovalRequiredProperty" // non-functional property in the vocabulary "GoToSocial" DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) + // DeserializeAutomaticApprovalPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialAutomaticApprovalProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) // DeserializeIdPropertyJSONLD returns the deserialization method for the // "JSONLDIdProperty" non-functional property in the vocabulary // "JSONLD" DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeManualApprovalPropertyGoToSocial returns the deserialization + // method for the "GoToSocialManualApprovalProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, error) } // jsonldContexter is a private interface to determine the JSON-LD contexts and diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go similarity index 72% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go index 3c7d0666b..890039f50 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go @@ -2,14 +2,16 @@ package typecanlike -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" type GoToSocialCanLike struct { - GoToSocialAlways vocab.GoToSocialAlwaysProperty - GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty - JSONLDId vocab.JSONLDIdProperty - alias string - unknown map[string]interface{} + GoToSocialAlways vocab.GoToSocialAlwaysProperty + GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty + GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty + JSONLDId vocab.JSONLDIdProperty + GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty + alias string + unknown map[string]interface{} } // CanLikeIsDisjointWith returns true if the other provided type is disjoint with @@ -50,11 +52,21 @@ func DeserializeCanLike(m map[string]interface{}, aliasMap map[string]string) (* } else if p != nil { this.GoToSocialApprovalRequired = p } + if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAutomaticApproval = p + } if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.JSONLDId = p } + if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialManualApproval = p + } // End: Known property deserialization // Begin: Unknown deserialization @@ -64,8 +76,12 @@ func DeserializeCanLike(m map[string]interface{}, aliasMap map[string]string) (* continue } else if k == "approvalRequired" { continue + } else if k == "automaticApproval" { + continue } else if k == "id" { continue + } else if k == "manualApproval" { + continue } // End: Code that ensures a property name is unknown this.unknown[k] = v @@ -111,6 +127,18 @@ func (this GoToSocialCanLike) GetGoToSocialApprovalRequired() vocab.GoToSocialAp return this.GoToSocialApprovalRequired } +// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it +// exists, and nil otherwise. +func (this GoToSocialCanLike) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { + return this.GoToSocialAutomaticApproval +} + +// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, +// and nil otherwise. +func (this GoToSocialCanLike) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { + return this.GoToSocialManualApproval +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this GoToSocialCanLike) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -143,7 +171,9 @@ func (this GoToSocialCanLike) JSONLDContext() map[string]string { m := map[string]string{"https://gotosocial.org/ns": this.alias} m = this.helperJSONLDContext(this.GoToSocialAlways, m) m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) + m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) return m } @@ -180,6 +210,20 @@ func (this GoToSocialCanLike) LessThan(o vocab.GoToSocialCanLike) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "automaticApproval" + if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "id" if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -194,6 +238,20 @@ func (this GoToSocialCanLike) LessThan(o vocab.GoToSocialCanLike) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "manualApproval" + if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // End: Compare known properties // Begin: Compare unknown properties (only by number of them) @@ -228,6 +286,14 @@ func (this GoToSocialCanLike) Serialize() (map[string]interface{}, error) { m[this.GoToSocialApprovalRequired.Name()] = i } } + // Maybe serialize property "automaticApproval" + if this.GoToSocialAutomaticApproval != nil { + if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAutomaticApproval.Name()] = i + } + } // Maybe serialize property "id" if this.JSONLDId != nil { if i, err := this.JSONLDId.Serialize(); err != nil { @@ -236,6 +302,14 @@ func (this GoToSocialCanLike) Serialize() (map[string]interface{}, error) { m[this.JSONLDId.Name()] = i } } + // Maybe serialize property "manualApproval" + if this.GoToSocialManualApproval != nil { + if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialManualApproval.Name()] = i + } + } // End: Serialize known properties // Begin: Serialize unknown properties @@ -260,6 +334,16 @@ func (this *GoToSocialCanLike) SetGoToSocialApprovalRequired(i vocab.GoToSocialA this.GoToSocialApprovalRequired = i } +// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. +func (this *GoToSocialCanLike) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { + this.GoToSocialAutomaticApproval = i +} + +// SetGoToSocialManualApproval sets the "manualApproval" property. +func (this *GoToSocialCanLike) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { + this.GoToSocialManualApproval = i +} + // SetJSONLDId sets the "id" property. func (this *GoToSocialCanLike) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_doc.go new file mode 100644 index 000000000..99859f18c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typecanquote contains the implementation for the CanQuote type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typecanquote diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go new file mode 100644 index 000000000..f82f2fe3e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanquote + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAlwaysPropertyGoToSocial returns the deserialization method + // for the "GoToSocialAlwaysProperty" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) + // DeserializeApprovalRequiredPropertyGoToSocial returns the + // deserialization method for the "GoToSocialApprovalRequiredProperty" + // non-functional property in the vocabulary "GoToSocial" + DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) + // DeserializeAutomaticApprovalPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialAutomaticApprovalProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeManualApprovalPropertyGoToSocial returns the deserialization + // method for the "GoToSocialManualApprovalProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go new file mode 100644 index 000000000..74aa41c76 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go @@ -0,0 +1,372 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanquote + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +type GoToSocialCanQuote struct { + GoToSocialAlways vocab.GoToSocialAlwaysProperty + GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty + GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty + JSONLDId vocab.JSONLDIdProperty + GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty + alias string + unknown map[string]interface{} +} + +// CanQuoteIsDisjointWith returns true if the other provided type is disjoint with +// the CanQuote type. +func CanQuoteIsDisjointWith(other vocab.Type) bool { + // Shortcut implementation: is not disjoint with anything. + return false +} + +// CanQuoteIsExtendedBy returns true if the other provided type extends from the +// CanQuote type. Note that it returns false if the types are the same; see +// the "IsOrExtendsCanQuote" variant instead. +func CanQuoteIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeCanQuote creates a CanQuote from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeCanQuote(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanQuote, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + this := &GoToSocialCanQuote{ + alias: alias, + unknown: make(map[string]interface{}), + } + + // Begin: Known property deserialization + if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAlways = p + } + if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovalRequired = p + } + if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAutomaticApproval = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialManualApproval = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "always" { + continue + } else if k == "approvalRequired" { + continue + } else if k == "automaticApproval" { + continue + } else if k == "id" { + continue + } else if k == "manualApproval" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialCanQuoteExtends returns true if the CanQuote type extends from the +// other type. +func GoToSocialCanQuoteExtends(other vocab.Type) bool { + // Shortcut implementation: this does not extend anything. + return false +} + +// IsOrExtendsCanQuote returns true if the other provided type is the CanQuote +// type or extends from the CanQuote type. +func IsOrExtendsCanQuote(other vocab.Type) bool { + if other.GetTypeName() == "CanQuote" { + return true + } + return CanQuoteIsExtendedBy(other) +} + +// NewGoToSocialCanQuote creates a new CanQuote type +func NewGoToSocialCanQuote() *GoToSocialCanQuote { + return &GoToSocialCanQuote{ + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetGoToSocialAlways returns the "always" property if it exists, and nil +// otherwise. +func (this GoToSocialCanQuote) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { + return this.GoToSocialAlways +} + +// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it +// exists, and nil otherwise. +func (this GoToSocialCanQuote) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { + return this.GoToSocialApprovalRequired +} + +// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it +// exists, and nil otherwise. +func (this GoToSocialCanQuote) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { + return this.GoToSocialAutomaticApproval +} + +// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, +// and nil otherwise. +func (this GoToSocialCanQuote) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { + return this.GoToSocialManualApproval +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialCanQuote) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetTypeName returns the name of this type. +func (this GoToSocialCanQuote) GetTypeName() string { + return "CanQuote" +} + +// GetUnknownProperties returns the unknown properties for the CanQuote type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this GoToSocialCanQuote) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the CanQuote type extends from the other type. +func (this GoToSocialCanQuote) IsExtending(other vocab.Type) bool { + return GoToSocialCanQuoteExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this GoToSocialCanQuote) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.GoToSocialAlways, m) + m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) + m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) + + return m +} + +// LessThan computes if this CanQuote is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialCanQuote) LessThan(o vocab.GoToSocialCanQuote) bool { + // Begin: Compare known properties + // Compare property "always" + if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "approvalRequired" + if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "automaticApproval" + if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "manualApproval" + if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this GoToSocialCanQuote) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + // Begin: Serialize known properties + // Maybe serialize property "always" + if this.GoToSocialAlways != nil { + if i, err := this.GoToSocialAlways.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAlways.Name()] = i + } + } + // Maybe serialize property "approvalRequired" + if this.GoToSocialApprovalRequired != nil { + if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovalRequired.Name()] = i + } + } + // Maybe serialize property "automaticApproval" + if this.GoToSocialAutomaticApproval != nil { + if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAutomaticApproval.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "manualApproval" + if this.GoToSocialManualApproval != nil { + if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialManualApproval.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetGoToSocialAlways sets the "always" property. +func (this *GoToSocialCanQuote) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { + this.GoToSocialAlways = i +} + +// SetGoToSocialApprovalRequired sets the "approvalRequired" property. +func (this *GoToSocialCanQuote) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { + this.GoToSocialApprovalRequired = i +} + +// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. +func (this *GoToSocialCanQuote) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { + this.GoToSocialAutomaticApproval = i +} + +// SetGoToSocialManualApproval sets the "manualApproval" property. +func (this *GoToSocialCanQuote) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { + this.GoToSocialManualApproval = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialCanQuote) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialCanQuote) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialCanQuote) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go similarity index 76% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go index e90fff4fa..99c922168 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go @@ -2,7 +2,7 @@ package typecanreply -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -19,10 +19,19 @@ type privateManager interface { // deserialization method for the "GoToSocialApprovalRequiredProperty" // non-functional property in the vocabulary "GoToSocial" DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) + // DeserializeAutomaticApprovalPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialAutomaticApprovalProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) // DeserializeIdPropertyJSONLD returns the deserialization method for the // "JSONLDIdProperty" non-functional property in the vocabulary // "JSONLD" DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeManualApprovalPropertyGoToSocial returns the deserialization + // method for the "GoToSocialManualApprovalProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, error) } // jsonldContexter is a private interface to determine the JSON-LD contexts and diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go similarity index 72% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go index ec0834274..1bf232d48 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go @@ -2,14 +2,16 @@ package typecanreply -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" type GoToSocialCanReply struct { - GoToSocialAlways vocab.GoToSocialAlwaysProperty - GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty - JSONLDId vocab.JSONLDIdProperty - alias string - unknown map[string]interface{} + GoToSocialAlways vocab.GoToSocialAlwaysProperty + GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty + GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty + JSONLDId vocab.JSONLDIdProperty + GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty + alias string + unknown map[string]interface{} } // CanReplyIsDisjointWith returns true if the other provided type is disjoint with @@ -50,11 +52,21 @@ func DeserializeCanReply(m map[string]interface{}, aliasMap map[string]string) ( } else if p != nil { this.GoToSocialApprovalRequired = p } + if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAutomaticApproval = p + } if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.JSONLDId = p } + if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialManualApproval = p + } // End: Known property deserialization // Begin: Unknown deserialization @@ -64,8 +76,12 @@ func DeserializeCanReply(m map[string]interface{}, aliasMap map[string]string) ( continue } else if k == "approvalRequired" { continue + } else if k == "automaticApproval" { + continue } else if k == "id" { continue + } else if k == "manualApproval" { + continue } // End: Code that ensures a property name is unknown this.unknown[k] = v @@ -111,6 +127,18 @@ func (this GoToSocialCanReply) GetGoToSocialApprovalRequired() vocab.GoToSocialA return this.GoToSocialApprovalRequired } +// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it +// exists, and nil otherwise. +func (this GoToSocialCanReply) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { + return this.GoToSocialAutomaticApproval +} + +// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, +// and nil otherwise. +func (this GoToSocialCanReply) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { + return this.GoToSocialManualApproval +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this GoToSocialCanReply) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -143,7 +171,9 @@ func (this GoToSocialCanReply) JSONLDContext() map[string]string { m := map[string]string{"https://gotosocial.org/ns": this.alias} m = this.helperJSONLDContext(this.GoToSocialAlways, m) m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) + m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) return m } @@ -180,6 +210,20 @@ func (this GoToSocialCanReply) LessThan(o vocab.GoToSocialCanReply) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "automaticApproval" + if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "id" if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -194,6 +238,20 @@ func (this GoToSocialCanReply) LessThan(o vocab.GoToSocialCanReply) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "manualApproval" + if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // End: Compare known properties // Begin: Compare unknown properties (only by number of them) @@ -228,6 +286,14 @@ func (this GoToSocialCanReply) Serialize() (map[string]interface{}, error) { m[this.GoToSocialApprovalRequired.Name()] = i } } + // Maybe serialize property "automaticApproval" + if this.GoToSocialAutomaticApproval != nil { + if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAutomaticApproval.Name()] = i + } + } // Maybe serialize property "id" if this.JSONLDId != nil { if i, err := this.JSONLDId.Serialize(); err != nil { @@ -236,6 +302,14 @@ func (this GoToSocialCanReply) Serialize() (map[string]interface{}, error) { m[this.JSONLDId.Name()] = i } } + // Maybe serialize property "manualApproval" + if this.GoToSocialManualApproval != nil { + if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialManualApproval.Name()] = i + } + } // End: Serialize known properties // Begin: Serialize unknown properties @@ -260,6 +334,16 @@ func (this *GoToSocialCanReply) SetGoToSocialApprovalRequired(i vocab.GoToSocial this.GoToSocialApprovalRequired = i } +// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. +func (this *GoToSocialCanReply) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { + this.GoToSocialAutomaticApproval = i +} + +// SetGoToSocialManualApproval sets the "manualApproval" property. +func (this *GoToSocialCanReply) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { + this.GoToSocialManualApproval = i +} + // SetJSONLDId sets the "id" property. func (this *GoToSocialCanReply) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go similarity index 88% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go index bba9d6912..c52acaf33 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go @@ -2,7 +2,7 @@ package typeinteractionpolicy -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager @@ -19,6 +19,10 @@ type privateManager interface { // for the "GoToSocialCanLikeProperty" non-functional property in the // vocabulary "GoToSocial" DeserializeCanLikePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLikeProperty, error) + // DeserializeCanQuotePropertyGoToSocial returns the deserialization + // method for the "GoToSocialCanQuoteProperty" non-functional property + // in the vocabulary "GoToSocial" + DeserializeCanQuotePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuoteProperty, error) // DeserializeCanReplyPropertyGoToSocial returns the deserialization // method for the "GoToSocialCanReplyProperty" non-functional property // in the vocabulary "GoToSocial" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go similarity index 88% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go index ae2725f28..838c0b0f8 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go @@ -2,12 +2,13 @@ package typeinteractionpolicy -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" // InteractionPolicy for an ActivityStreams Object. type GoToSocialInteractionPolicy struct { GoToSocialCanAnnounce vocab.GoToSocialCanAnnounceProperty GoToSocialCanLike vocab.GoToSocialCanLikeProperty + GoToSocialCanQuote vocab.GoToSocialCanQuoteProperty GoToSocialCanReply vocab.GoToSocialCanReplyProperty JSONLDId vocab.JSONLDIdProperty alias string @@ -37,6 +38,11 @@ func DeserializeInteractionPolicy(m map[string]interface{}, aliasMap map[string] } else if p != nil { this.GoToSocialCanLike = p } + if p, err := mgr.DeserializeCanQuotePropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialCanQuote = p + } if p, err := mgr.DeserializeCanReplyPropertyGoToSocial()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -56,6 +62,8 @@ func DeserializeInteractionPolicy(m map[string]interface{}, aliasMap map[string] continue } else if k == "canLike" { continue + } else if k == "canQuote" { + continue } else if k == "canReply" { continue } else if k == "id" { @@ -120,6 +128,12 @@ func (this GoToSocialInteractionPolicy) GetGoToSocialCanLike() vocab.GoToSocialC return this.GoToSocialCanLike } +// GetGoToSocialCanQuote returns the "canQuote" property if it exists, and nil +// otherwise. +func (this GoToSocialInteractionPolicy) GetGoToSocialCanQuote() vocab.GoToSocialCanQuoteProperty { + return this.GoToSocialCanQuote +} + // GetGoToSocialCanReply returns the "canReply" property if it exists, and nil // otherwise. func (this GoToSocialInteractionPolicy) GetGoToSocialCanReply() vocab.GoToSocialCanReplyProperty { @@ -159,6 +173,7 @@ func (this GoToSocialInteractionPolicy) JSONLDContext() map[string]string { m := map[string]string{"https://gotosocial.org/ns": this.alias} m = this.helperJSONLDContext(this.GoToSocialCanAnnounce, m) m = this.helperJSONLDContext(this.GoToSocialCanLike, m) + m = this.helperJSONLDContext(this.GoToSocialCanQuote, m) m = this.helperJSONLDContext(this.GoToSocialCanReply, m) m = this.helperJSONLDContext(this.JSONLDId, m) @@ -197,6 +212,20 @@ func (this GoToSocialInteractionPolicy) LessThan(o vocab.GoToSocialInteractionPo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "canQuote" + if lhs, rhs := this.GoToSocialCanQuote, o.GetGoToSocialCanQuote(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "canReply" if lhs, rhs := this.GoToSocialCanReply, o.GetGoToSocialCanReply(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -259,6 +288,14 @@ func (this GoToSocialInteractionPolicy) Serialize() (map[string]interface{}, err m[this.GoToSocialCanLike.Name()] = i } } + // Maybe serialize property "canQuote" + if this.GoToSocialCanQuote != nil { + if i, err := this.GoToSocialCanQuote.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialCanQuote.Name()] = i + } + } // Maybe serialize property "canReply" if this.GoToSocialCanReply != nil { if i, err := this.GoToSocialCanReply.Serialize(); err != nil { @@ -299,6 +336,11 @@ func (this *GoToSocialInteractionPolicy) SetGoToSocialCanLike(i vocab.GoToSocial this.GoToSocialCanLike = i } +// SetGoToSocialCanQuote sets the "canQuote" property. +func (this *GoToSocialInteractionPolicy) SetGoToSocialCanQuote(i vocab.GoToSocialCanQuoteProperty) { + this.GoToSocialCanQuote = i +} + // SetGoToSocialCanReply sets the "canReply" property. func (this *GoToSocialInteractionPolicy) SetGoToSocialCanReply(i vocab.GoToSocialCanReplyProperty) { this.GoToSocialCanReply = i diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go index 8b9bb070d..beffac0cf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go @@ -2,7 +2,7 @@ package typelikeapproval -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go index 96db9c645..e0da25bfb 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go @@ -3,11 +3,12 @@ package typelikeapproval import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) +// DEPRECATED: Use `LikeAuthorization` instead. type GoToSocialLikeApproval struct { ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go new file mode 100644 index 000000000..b40a8815a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typelikeauthorization contains the implementation for the +// LikeAuthorization type. All applications are strongly encouraged to use the +// interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typelikeauthorization diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go new file mode 100644 index 000000000..7e75770f4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go @@ -0,0 +1,189 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikeauthorization + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeInteractingObjectPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractingObjectProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) + // DeserializeInteractionTargetPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionTargetProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go new file mode 100644 index 000000000..57701074a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go @@ -0,0 +1,1724 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikeauthorization + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialLikeAuthorization struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty + GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeLikeAuthorization creates a LikeAuthorization from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeLikeAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialLikeAuthorization, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialLikeAuthorization{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "LikeAuthorization" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "LikeAuthorization", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "LikeAuthorization" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "LikeAuthorization") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractingObject = p + } + if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionTarget = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "interactingObject" { + continue + } else if k == "interactionTarget" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialLikeAuthorizationExtends returns true if the LikeAuthorization type +// extends from the other type. +func GoToSocialLikeAuthorizationExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsLikeAuthorization returns true if the other provided type is the +// LikeAuthorization type or extends from the LikeAuthorization type. +func IsOrExtendsLikeAuthorization(other vocab.Type) bool { + if other.GetTypeName() == "LikeAuthorization" { + return true + } + return LikeAuthorizationIsExtendedBy(other) +} + +// LikeAuthorizationIsDisjointWith returns true if the other provided type is +// disjoint with the LikeAuthorization type. +func LikeAuthorizationIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// LikeAuthorizationIsExtendedBy returns true if the other provided type extends +// from the LikeAuthorization type. Note that it returns false if the types +// are the same; see the "IsOrExtendsLikeAuthorization" variant instead. +func LikeAuthorizationIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// NewGoToSocialLikeAuthorization creates a new LikeAuthorization type +func NewGoToSocialLikeAuthorization() *GoToSocialLikeAuthorization { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("LikeAuthorization") + return &GoToSocialLikeAuthorization{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetGoToSocialInteractingObject returns the "interactingObject" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { + return this.GoToSocialInteractingObject +} + +// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { + return this.GoToSocialInteractionTarget +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialLikeAuthorization) GetTypeName() string { + return "LikeAuthorization" +} + +// GetUnknownProperties returns the unknown properties for the LikeAuthorization +// type. Note that this should not be used by app developers. It is only used +// to help determine which implementation is LessThan the other. Developers +// who are creating a different implementation of this type's interface can +// use this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this GoToSocialLikeAuthorization) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the LikeAuthorization type extends from the other +// type. +func (this GoToSocialLikeAuthorization) IsExtending(other vocab.Type) bool { + return GoToSocialLikeAuthorizationExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this GoToSocialLikeAuthorization) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) + m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this LikeAuthorization is lesser, with an arbitrary but +// stable determination. +func (this GoToSocialLikeAuthorization) LessThan(o vocab.GoToSocialLikeAuthorization) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactingObject" + if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactionTarget" + if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this GoToSocialLikeAuthorization) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "LikeAuthorization" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "LikeAuthorization" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "interactingObject" + if this.GoToSocialInteractingObject != nil { + if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractingObject.Name()] = i + } + } + // Maybe serialize property "interactionTarget" + if this.GoToSocialInteractionTarget != nil { + if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionTarget.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetGoToSocialInteractingObject sets the "interactingObject" property. +func (this *GoToSocialLikeAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { + this.GoToSocialInteractingObject = i +} + +// SetGoToSocialInteractionTarget sets the "interactionTarget" property. +func (this *GoToSocialLikeAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { + this.GoToSocialInteractionTarget = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialLikeAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialLikeAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialLikeAuthorization) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialLikeAuthorization) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go new file mode 100644 index 000000000..c646e390d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typelikerequest contains the implementation for the LikeRequest type. +// All applications are strongly encouraged to use the interface instead of +// this concrete definition. The interfaces allow applications to consume only +// the types and properties needed and be independent of the go-fed +// implementation if another alternative implementation is created. This +// package is code-generated and subject to the same license as the go-fed +// tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typelikerequest diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go new file mode 100644 index 000000000..fae49e187 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikerequest + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeActorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsActorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeInstrumentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsInstrumentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializeOriginPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsOriginProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeResultPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsResultProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTargetPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTargetProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go new file mode 100644 index 000000000..cfef76bd2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go @@ -0,0 +1,1849 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikerequest + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialLikeRequest struct { + ActivityStreamsActor vocab.ActivityStreamsActorProperty + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsResult vocab.ActivityStreamsResultProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeLikeRequest creates a LikeRequest from a map representation that has +// been unmarshalled from a text or binary format. +func DeserializeLikeRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialLikeRequest, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialLikeRequest{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "LikeRequest" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "LikeRequest", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "LikeRequest" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "LikeRequest") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsActor = p + } + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInstrument = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsOrigin = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsResult = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTarget = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "actor" { + continue + } else if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "instrument" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "origin" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "result" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "target" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialLikeRequestExtends returns true if the LikeRequest type extends from +// the other type. +func GoToSocialLikeRequestExtends(other vocab.Type) bool { + extensions := []string{"Activity", "Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsLikeRequest returns true if the other provided type is the +// LikeRequest type or extends from the LikeRequest type. +func IsOrExtendsLikeRequest(other vocab.Type) bool { + if other.GetTypeName() == "LikeRequest" { + return true + } + return LikeRequestIsExtendedBy(other) +} + +// LikeRequestIsDisjointWith returns true if the other provided type is disjoint +// with the LikeRequest type. +func LikeRequestIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// LikeRequestIsExtendedBy returns true if the other provided type extends from +// the LikeRequest type. Note that it returns false if the types are the same; +// see the "IsOrExtendsLikeRequest" variant instead. +func LikeRequestIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// NewGoToSocialLikeRequest creates a new LikeRequest type +func NewGoToSocialLikeRequest() *GoToSocialLikeRequest { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("LikeRequest") + return &GoToSocialLikeRequest{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsActor returns the "actor" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { + return this.ActivityStreamsActor +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsInstrument returns the "instrument" property if it exists, +// and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { + return this.ActivityStreamsInstrument +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { + return this.ActivityStreamsOrigin +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsResult returns the "result" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { + return this.ActivityStreamsResult +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTarget returns the "target" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { + return this.ActivityStreamsTarget +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialLikeRequest) GetTypeName() string { + return "LikeRequest" +} + +// GetUnknownProperties returns the unknown properties for the LikeRequest type. +// Note that this should not be used by app developers. It is only used to +// help determine which implementation is LessThan the other. Developers who +// are creating a different implementation of this type's interface can use +// this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this GoToSocialLikeRequest) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the LikeRequest type extends from the other type. +func (this GoToSocialLikeRequest) IsExtending(other vocab.Type) bool { + return GoToSocialLikeRequestExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this GoToSocialLikeRequest) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsActor, m) + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsResult, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this LikeRequest is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialLikeRequest) LessThan(o vocab.GoToSocialLikeRequest) bool { + // Begin: Compare known properties + // Compare property "actor" + if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "instrument" + if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "origin" + if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "result" + if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "target" + if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this GoToSocialLikeRequest) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "LikeRequest" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "LikeRequest" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "actor" + if this.ActivityStreamsActor != nil { + if i, err := this.ActivityStreamsActor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsActor.Name()] = i + } + } + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "instrument" + if this.ActivityStreamsInstrument != nil { + if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInstrument.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "origin" + if this.ActivityStreamsOrigin != nil { + if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsOrigin.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "result" + if this.ActivityStreamsResult != nil { + if i, err := this.ActivityStreamsResult.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsResult.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "target" + if this.ActivityStreamsTarget != nil { + if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTarget.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsActor sets the "actor" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { + this.ActivityStreamsActor = i +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsInstrument sets the "instrument" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { + this.ActivityStreamsInstrument = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsOrigin sets the "origin" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { + this.ActivityStreamsOrigin = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsResult sets the "result" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { + this.ActivityStreamsResult = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTarget sets the "target" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { + this.ActivityStreamsTarget = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialLikeRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialLikeRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialLikeRequest) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialLikeRequest) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go index 6b81619c6..0f2bc86b4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go @@ -2,7 +2,7 @@ package typereplyapproval -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go index 613fb72b5..0677156c4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go @@ -3,11 +3,12 @@ package typereplyapproval import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) +// DEPRECATED: Use `ReplyAuthorization` instead. type GoToSocialReplyApproval struct { ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go new file mode 100644 index 000000000..c25dc7ae7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typereplyauthorization contains the implementation for the +// ReplyAuthorization type. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typereplyauthorization diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go new file mode 100644 index 000000000..1a30ea117 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go @@ -0,0 +1,189 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyauthorization + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeInteractingObjectPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractingObjectProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) + // DeserializeInteractionTargetPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionTargetProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go new file mode 100644 index 000000000..c47392963 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go @@ -0,0 +1,1724 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyauthorization + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialReplyAuthorization struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty + GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeReplyAuthorization creates a ReplyAuthorization from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeReplyAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialReplyAuthorization, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialReplyAuthorization{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "ReplyAuthorization" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "ReplyAuthorization", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "ReplyAuthorization" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "ReplyAuthorization") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractingObject = p + } + if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionTarget = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "interactingObject" { + continue + } else if k == "interactionTarget" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialReplyAuthorizationExtends returns true if the ReplyAuthorization type +// extends from the other type. +func GoToSocialReplyAuthorizationExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsReplyAuthorization returns true if the other provided type is the +// ReplyAuthorization type or extends from the ReplyAuthorization type. +func IsOrExtendsReplyAuthorization(other vocab.Type) bool { + if other.GetTypeName() == "ReplyAuthorization" { + return true + } + return ReplyAuthorizationIsExtendedBy(other) +} + +// NewGoToSocialReplyAuthorization creates a new ReplyAuthorization type +func NewGoToSocialReplyAuthorization() *GoToSocialReplyAuthorization { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("ReplyAuthorization") + return &GoToSocialReplyAuthorization{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// ReplyAuthorizationIsDisjointWith returns true if the other provided type is +// disjoint with the ReplyAuthorization type. +func ReplyAuthorizationIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// ReplyAuthorizationIsExtendedBy returns true if the other provided type extends +// from the ReplyAuthorization type. Note that it returns false if the types +// are the same; see the "IsOrExtendsReplyAuthorization" variant instead. +func ReplyAuthorizationIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetGoToSocialInteractingObject returns the "interactingObject" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { + return this.GoToSocialInteractingObject +} + +// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { + return this.GoToSocialInteractionTarget +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialReplyAuthorization) GetTypeName() string { + return "ReplyAuthorization" +} + +// GetUnknownProperties returns the unknown properties for the ReplyAuthorization +// type. Note that this should not be used by app developers. It is only used +// to help determine which implementation is LessThan the other. Developers +// who are creating a different implementation of this type's interface can +// use this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this GoToSocialReplyAuthorization) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the ReplyAuthorization type extends from the other +// type. +func (this GoToSocialReplyAuthorization) IsExtending(other vocab.Type) bool { + return GoToSocialReplyAuthorizationExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this GoToSocialReplyAuthorization) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) + m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this ReplyAuthorization is lesser, with an arbitrary but +// stable determination. +func (this GoToSocialReplyAuthorization) LessThan(o vocab.GoToSocialReplyAuthorization) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactingObject" + if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactionTarget" + if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this GoToSocialReplyAuthorization) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "ReplyAuthorization" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "ReplyAuthorization" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "interactingObject" + if this.GoToSocialInteractingObject != nil { + if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractingObject.Name()] = i + } + } + // Maybe serialize property "interactionTarget" + if this.GoToSocialInteractionTarget != nil { + if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionTarget.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetGoToSocialInteractingObject sets the "interactingObject" property. +func (this *GoToSocialReplyAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { + this.GoToSocialInteractingObject = i +} + +// SetGoToSocialInteractionTarget sets the "interactionTarget" property. +func (this *GoToSocialReplyAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { + this.GoToSocialInteractionTarget = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialReplyAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialReplyAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialReplyAuthorization) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialReplyAuthorization) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go new file mode 100644 index 000000000..1e20e43be --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typereplyrequest contains the implementation for the ReplyRequest type. +// All applications are strongly encouraged to use the interface instead of +// this concrete definition. The interfaces allow applications to consume only +// the types and properties needed and be independent of the go-fed +// implementation if another alternative implementation is created. This +// package is code-generated and subject to the same license as the go-fed +// tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typereplyrequest diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go new file mode 100644 index 000000000..a55874b08 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyrequest + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeActorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsActorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeInstrumentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsInstrumentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializeOriginPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsOriginProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeResultPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsResultProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTargetPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTargetProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go new file mode 100644 index 000000000..b12700896 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go @@ -0,0 +1,1849 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyrequest + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialReplyRequest struct { + ActivityStreamsActor vocab.ActivityStreamsActorProperty + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsResult vocab.ActivityStreamsResultProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeReplyRequest creates a ReplyRequest from a map representation that +// has been unmarshalled from a text or binary format. +func DeserializeReplyRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialReplyRequest, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialReplyRequest{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "ReplyRequest" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "ReplyRequest", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "ReplyRequest" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "ReplyRequest") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsActor = p + } + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInstrument = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsOrigin = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsResult = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTarget = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "actor" { + continue + } else if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "instrument" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "origin" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "result" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "target" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialReplyRequestExtends returns true if the ReplyRequest type extends +// from the other type. +func GoToSocialReplyRequestExtends(other vocab.Type) bool { + extensions := []string{"Activity", "Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsReplyRequest returns true if the other provided type is the +// ReplyRequest type or extends from the ReplyRequest type. +func IsOrExtendsReplyRequest(other vocab.Type) bool { + if other.GetTypeName() == "ReplyRequest" { + return true + } + return ReplyRequestIsExtendedBy(other) +} + +// NewGoToSocialReplyRequest creates a new ReplyRequest type +func NewGoToSocialReplyRequest() *GoToSocialReplyRequest { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("ReplyRequest") + return &GoToSocialReplyRequest{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// ReplyRequestIsDisjointWith returns true if the other provided type is disjoint +// with the ReplyRequest type. +func ReplyRequestIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// ReplyRequestIsExtendedBy returns true if the other provided type extends from +// the ReplyRequest type. Note that it returns false if the types are the +// same; see the "IsOrExtendsReplyRequest" variant instead. +func ReplyRequestIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// GetActivityStreamsActor returns the "actor" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { + return this.ActivityStreamsActor +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsInstrument returns the "instrument" property if it exists, +// and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { + return this.ActivityStreamsInstrument +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { + return this.ActivityStreamsOrigin +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsResult returns the "result" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { + return this.ActivityStreamsResult +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTarget returns the "target" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { + return this.ActivityStreamsTarget +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialReplyRequest) GetTypeName() string { + return "ReplyRequest" +} + +// GetUnknownProperties returns the unknown properties for the ReplyRequest type. +// Note that this should not be used by app developers. It is only used to +// help determine which implementation is LessThan the other. Developers who +// are creating a different implementation of this type's interface can use +// this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this GoToSocialReplyRequest) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the ReplyRequest type extends from the other type. +func (this GoToSocialReplyRequest) IsExtending(other vocab.Type) bool { + return GoToSocialReplyRequestExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this GoToSocialReplyRequest) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsActor, m) + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsResult, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this ReplyRequest is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialReplyRequest) LessThan(o vocab.GoToSocialReplyRequest) bool { + // Begin: Compare known properties + // Compare property "actor" + if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "instrument" + if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "origin" + if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "result" + if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "target" + if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this GoToSocialReplyRequest) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "ReplyRequest" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "ReplyRequest" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "actor" + if this.ActivityStreamsActor != nil { + if i, err := this.ActivityStreamsActor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsActor.Name()] = i + } + } + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "instrument" + if this.ActivityStreamsInstrument != nil { + if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInstrument.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "origin" + if this.ActivityStreamsOrigin != nil { + if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsOrigin.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "result" + if this.ActivityStreamsResult != nil { + if i, err := this.ActivityStreamsResult.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsResult.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "target" + if this.ActivityStreamsTarget != nil { + if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTarget.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsActor sets the "actor" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { + this.ActivityStreamsActor = i +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsInstrument sets the "instrument" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { + this.ActivityStreamsInstrument = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsOrigin sets the "origin" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { + this.ActivityStreamsOrigin = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsResult sets the "result" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { + this.ActivityStreamsResult = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTarget sets the "target" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { + this.ActivityStreamsTarget = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialReplyRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialReplyRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialReplyRequest) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialReplyRequest) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go index 0e5f11850..ffae5fb43 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go @@ -3,8 +3,8 @@ package propertyid import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go index bfa01e90a..805eec2e0 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go @@ -3,9 +3,9 @@ package propertytype import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_property_schema_value.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_property_schema_value.go index 6b920511d..fa870db8f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_property_schema_value.go @@ -3,8 +3,8 @@ package propertyvalue import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go index 76c22d938..c7d813fb4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go @@ -2,7 +2,7 @@ package typepropertyvalue -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go index 44e3ad8a7..24e641376 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go @@ -3,7 +3,7 @@ package typepropertyvalue import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go index 6f67d32ff..4025f996d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go @@ -3,8 +3,8 @@ package propertyblurhash import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go index 7a1fec914..16ea4cde4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go @@ -3,8 +3,8 @@ package propertydiscoverable import ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_pkg.go similarity index 94% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_pkg.go index 4418c6fde..655bc7967 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_pkg.go @@ -2,7 +2,7 @@ package propertyfeatured -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go index 2986de964..19bb8eb70 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go @@ -3,7 +3,7 @@ package propertyfeatured import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_doc.go new file mode 100644 index 000000000..150fd5c77 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyfocalpoint contains the implementation for the focalPoint +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyfocalpoint diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_pkg.go new file mode 100644 index 000000000..2bebe7347 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfocalpoint + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go new file mode 100644 index 000000000..f197a6875 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go @@ -0,0 +1,531 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfocalpoint + +import ( + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootFocalPointPropertyIterator is an iterator for a property. It is permitted +// to be a single default-valued value type. +type TootFocalPointPropertyIterator struct { + xmlschemaFloatMember float64 + hasFloatMember bool + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.TootFocalPointProperty +} + +// NewTootFocalPointPropertyIterator creates a new TootFocalPoint property. +func NewTootFocalPointPropertyIterator() *TootFocalPointPropertyIterator { + return &TootFocalPointPropertyIterator{alias: ""} +} + +// deserializeTootFocalPointPropertyIterator creates an iterator from an element +// that has been unmarshalled from a text or binary format. +func deserializeTootFocalPointPropertyIterator(i interface{}, aliasMap map[string]string) (*TootFocalPointPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootFocalPointPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := float.DeserializeFloat(i); err == nil { + this := &TootFocalPointPropertyIterator{ + alias: alias, + hasFloatMember: true, + xmlschemaFloatMember: v, + } + return this, nil + } + this := &TootFocalPointPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaFloat returns false, +// Get will return any arbitrary value. +func (this TootFocalPointPropertyIterator) Get() float64 { + return this.xmlschemaFloatMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootFocalPointPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootFocalPointPropertyIterator) HasAny() bool { + return this.IsXMLSchemaFloat() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootFocalPointPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaFloat returns true if this property is set and not an IRI. +func (this TootFocalPointPropertyIterator) IsXMLSchemaFloat() bool { + return this.hasFloatMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootFocalPointPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootFocalPointPropertyIterator) KindIndex() int { + if this.IsXMLSchemaFloat() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootFocalPointPropertyIterator) LessThan(o vocab.TootFocalPointPropertyIterator) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return float.LessFloat(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "TootFocalPoint". +func (this TootFocalPointPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "TootFocalPoint" + } else { + return "TootFocalPoint" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this TootFocalPointPropertyIterator) Next() vocab.TootFocalPointPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this TootFocalPointPropertyIterator) Prev() vocab.TootFocalPointPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will +// return true. +func (this *TootFocalPointPropertyIterator) Set(v float64) { + this.clear() + this.xmlschemaFloatMember = v + this.hasFloatMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *TootFocalPointPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaFloat +// afterwards will return false. +func (this *TootFocalPointPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.hasFloatMember = false +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootFocalPointPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaFloat() { + return float.SerializeFloat(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// TootFocalPointProperty is the non-functional property "focalPoint". It is +// permitted to have one or more values, and of different value types. +type TootFocalPointProperty struct { + properties []*TootFocalPointPropertyIterator + alias string +} + +// DeserializeFocalPointProperty creates a "focalPoint" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeFocalPointProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFocalPointProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "focalPoint" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "focalPoint") + } + i, ok := m[propName] + + if ok { + this := &TootFocalPointProperty{ + alias: alias, + properties: []*TootFocalPointPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeTootFocalPointPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeTootFocalPointPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewTootFocalPointProperty creates a new focalPoint property. +func NewTootFocalPointProperty() *TootFocalPointProperty { + return &TootFocalPointProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "focalPoint" +func (this *TootFocalPointProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &TootFocalPointPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendXMLSchemaFloat appends a float value to the back of a list of the +// property "focalPoint". Invalidates iterators that are traversing using Prev. +func (this *TootFocalPointProperty) AppendXMLSchemaFloat(v float64) { + this.properties = append(this.properties, &TootFocalPointPropertyIterator{ + alias: this.alias, + hasFloatMember: true, + myIdx: this.Len(), + parent: this, + xmlschemaFloatMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this TootFocalPointProperty) At(index int) vocab.TootFocalPointPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this TootFocalPointProperty) Begin() vocab.TootFocalPointPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this TootFocalPointProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this TootFocalPointProperty) End() vocab.TootFocalPointPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property "focalPoint". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *TootFocalPointProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &TootFocalPointPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaFloat inserts a float value at the specified index for a +// property "focalPoint". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *TootFocalPointProperty) InsertXMLSchemaFloat(idx int, v float64) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &TootFocalPointPropertyIterator{ + alias: this.alias, + hasFloatMember: true, + myIdx: idx, + parent: this, + xmlschemaFloatMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootFocalPointProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this TootFocalPointProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "focalPoint" property. +func (this TootFocalPointProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this TootFocalPointProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return float.LessFloat(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootFocalPointProperty) LessThan(o vocab.TootFocalPointProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("focalPoint") with any alias. +func (this TootFocalPointProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "focalPoint" + } else { + return "focalPoint" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "focalPoint". +func (this *TootFocalPointProperty) PrependIRI(v *url.URL) { + this.properties = append([]*TootFocalPointPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaFloat prepends a float value to the front of a list of the +// property "focalPoint". Invalidates all iterators. +func (this *TootFocalPointProperty) PrependXMLSchemaFloat(v float64) { + this.properties = append([]*TootFocalPointPropertyIterator{{ + alias: this.alias, + hasFloatMember: true, + myIdx: 0, + parent: this, + xmlschemaFloatMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "focalPoint", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *TootFocalPointProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &TootFocalPointPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootFocalPointProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a float value to be at the specified index for the property +// "focalPoint". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *TootFocalPointProperty) Set(idx int, v float64) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &TootFocalPointPropertyIterator{ + alias: this.alias, + hasFloatMember: true, + myIdx: idx, + parent: this, + xmlschemaFloatMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "focalPoint". Panics if the index is out of bounds. +func (this *TootFocalPointProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &TootFocalPointPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// Swap swaps the location of values at two indices for the "focalPoint" property. +func (this TootFocalPointProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_doc.go new file mode 100644 index 000000000..256409d37 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyindexable contains the implementation for the indexable +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyindexable diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_pkg.go new file mode 100644 index 000000000..9952e364b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyindexable + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go new file mode 100644 index 000000000..4f16b0396 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyindexable + +import ( + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootIndexableProperty is the functional property "indexable". It is permitted +// to be a single default-valued value type. +type TootIndexableProperty struct { + xmlschemaBooleanMember bool + hasBooleanMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeIndexableProperty creates a "indexable" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeIndexableProperty(m map[string]interface{}, aliasMap map[string]string) (*TootIndexableProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "indexable" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "indexable") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootIndexableProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := boolean.DeserializeBoolean(i); err == nil { + this := &TootIndexableProperty{ + alias: alias, + hasBooleanMember: true, + xmlschemaBooleanMember: v, + } + return this, nil + } + this := &TootIndexableProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewTootIndexableProperty creates a new indexable property. +func NewTootIndexableProperty() *TootIndexableProperty { + return &TootIndexableProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean +// afterwards will return false. +func (this *TootIndexableProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasBooleanMember = false +} + +// Get returns the value of this property. When IsXMLSchemaBoolean returns false, +// Get will return any arbitrary value. +func (this TootIndexableProperty) Get() bool { + return this.xmlschemaBooleanMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootIndexableProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootIndexableProperty) HasAny() bool { + return this.IsXMLSchemaBoolean() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootIndexableProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaBoolean returns true if this property is set and not an IRI. +func (this TootIndexableProperty) IsXMLSchemaBoolean() bool { + return this.hasBooleanMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootIndexableProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootIndexableProperty) KindIndex() int { + if this.IsXMLSchemaBoolean() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootIndexableProperty) LessThan(o vocab.TootIndexableProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return boolean.LessBoolean(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "indexable". +func (this TootIndexableProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "indexable" + } else { + return "indexable" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootIndexableProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaBoolean() { + return boolean.SerializeBoolean(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will +// return true. +func (this *TootIndexableProperty) Set(v bool) { + this.Clear() + this.xmlschemaBooleanMember = v + this.hasBooleanMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *TootIndexableProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go index e67819289..f09e38fab 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go @@ -3,8 +3,8 @@ package propertysignaturealgorithm import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go index 20fa50dda..c1c624939 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go @@ -3,8 +3,8 @@ package propertysignaturevalue import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go index 28f0919eb..af68413a3 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go @@ -3,8 +3,8 @@ package propertyvoterscount import ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_pkg.go index 5a71e45cc..1cde7cb62 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_pkg.go @@ -2,7 +2,7 @@ package typeemoji -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go index 5748a9fb2..a9e6c897b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go @@ -3,7 +3,7 @@ package typeemoji import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_pkg.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_pkg.go index a8414fd01..b83fcb4af 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_pkg.go @@ -2,7 +2,7 @@ package typehashtag -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go index b0e8f050d..80221b0d4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go @@ -3,7 +3,7 @@ package typehashtag import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) @@ -179,7 +179,7 @@ func DeserializeHashtag(m map[string]interface{}, aliasMap map[string]string) (* // HashtagIsDisjointWith returns true if the other provided type is disjoint with // the Hashtag type. func HashtagIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_pkg.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_pkg.go index abfb0dbfa..f75ed9b4a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_pkg.go @@ -2,7 +2,7 @@ package typeidentityproof -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go index daca4e62f..31fd97e4d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go @@ -3,7 +3,7 @@ package typeidentityproof import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "strings" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go index 195f6cb63..7afd81442 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go @@ -3,8 +3,8 @@ package propertyowner import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go index 7454c0e14..b9b450194 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go @@ -2,7 +2,7 @@ package propertypublickey -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go index d3d66a417..ab387d3ce 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go @@ -3,7 +3,7 @@ package propertypublickey import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go index bac088a04..78997643f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go @@ -3,8 +3,8 @@ package propertypublickeypem import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" "fmt" "net/url" ) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go index 533cc4475..6ad16433b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go @@ -2,7 +2,7 @@ package typepublickey -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" var mgr privateManager diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go rename to vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go index bad656902..727c23770 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go @@ -2,7 +2,7 @@ package typepublickey -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +import vocab "code.superseriousbusiness.org/activity/streams/vocab" // A public key represents a public cryptographical key for a user type W3IDSecurityV1PublicKey struct { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go b/vendor/code.superseriousbusiness.org/activity/streams/util.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/util.go rename to vendor/code.superseriousbusiness.org/activity/streams/util.go index c0e0e9e5e..def40c6ec 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/util.go @@ -4,7 +4,7 @@ import ( "maps" "slices" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) const ( @@ -14,9 +14,9 @@ const ( // only applicable to go-fed at code-generation time. jsonLDContext = "@context" - asNS = "https://www.w3.org/ns/activitystreams" - tootNS = "http://joinmastodon.org/ns" - schemaNS = "http://schema.org" + asNS = "https://www.w3.org/ns/activitystreams" + tootNS = "http://joinmastodon.org/ns" + schemaNS = "http://schema.org" ) // Map of inlines @context entries that may need to be added diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/anyURI/gen_anyURI.go b/vendor/code.superseriousbusiness.org/activity/streams/values/anyURI/gen_anyURI.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/anyURI/gen_anyURI.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/anyURI/gen_anyURI.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/bcp47/gen_bcp47.go b/vendor/code.superseriousbusiness.org/activity/streams/values/bcp47/gen_bcp47.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/bcp47/gen_bcp47.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/bcp47/gen_bcp47.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/boolean/gen_boolean.go b/vendor/code.superseriousbusiness.org/activity/streams/values/boolean/gen_boolean.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/boolean/gen_boolean.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/boolean/gen_boolean.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/dateTime/gen_dateTime.go b/vendor/code.superseriousbusiness.org/activity/streams/values/dateTime/gen_dateTime.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/dateTime/gen_dateTime.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/dateTime/gen_dateTime.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/duration/gen_duration.go b/vendor/code.superseriousbusiness.org/activity/streams/values/duration/gen_duration.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/duration/gen_duration.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/duration/gen_duration.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/float/gen_float.go b/vendor/code.superseriousbusiness.org/activity/streams/values/float/gen_float.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/float/gen_float.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/float/gen_float.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/langString/gen_langString.go b/vendor/code.superseriousbusiness.org/activity/streams/values/langString/gen_langString.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/langString/gen_langString.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/langString/gen_langString.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go b/vendor/code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc2045/gen_rfc2045.go b/vendor/code.superseriousbusiness.org/activity/streams/values/rfc2045/gen_rfc2045.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc2045/gen_rfc2045.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/rfc2045/gen_rfc2045.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc5988/gen_rfc5988.go b/vendor/code.superseriousbusiness.org/activity/streams/values/rfc5988/gen_rfc5988.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc5988/gen_rfc5988.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/rfc5988/gen_rfc5988.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/string/gen_string.go b/vendor/code.superseriousbusiness.org/activity/streams/values/string/gen_string.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/values/string/gen_string.go rename to vendor/code.superseriousbusiness.org/activity/streams/values/string/gen_string.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_doc.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_doc.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_doc.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_pkg.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_pkg.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_pkg.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_actor_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_actor_interface.go index 9eff11664..95aa23eac 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_actor_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsActorPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsActorPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsActorPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1060,14 +1131,38 @@ type ActivityStreamsActorProperty interface { // the back of a list of the property "actor". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "actor". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "actor". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "actor". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "actor". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "actor". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "actor". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "actor" AppendIRI(v *url.URL) @@ -1348,14 +1443,41 @@ type ActivityStreamsActorProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "actor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "actor". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "actor". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "actor". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "actor". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "actor". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1586,12 +1708,34 @@ type ActivityStreamsActorProperty interface { // the front of a list of the property "actor". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "actor". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "actor". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "actor". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "actor". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "actor". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "actor". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "actor". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "actor". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "actor". PrependIRI(v *url.URL) @@ -1857,14 +2001,38 @@ type ActivityStreamsActorProperty interface { // the specified index for the property "actor". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "actor". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "actor". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "actor". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "actor". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "actor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "actor". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go index cda3db5e1..2a3847f3b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsAnyOfPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsAnyOfPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsAnyOfPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1039,14 +1110,38 @@ type ActivityStreamsAnyOfProperty interface { // the back of a list of the property "anyOf". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "anyOf". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "anyOf". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "anyOf". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "anyOf". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "anyOf". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "anyOf". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "anyOf" AppendIRI(v *url.URL) @@ -1327,14 +1422,41 @@ type ActivityStreamsAnyOfProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "anyOf". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "anyOf". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "anyOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "anyOf". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "anyOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "anyOf". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1565,12 +1687,34 @@ type ActivityStreamsAnyOfProperty interface { // the front of a list of the property "anyOf". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "anyOf". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "anyOf". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "anyOf". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "anyOf". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "anyOf". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "anyOf". PrependIRI(v *url.URL) @@ -1836,14 +1980,38 @@ type ActivityStreamsAnyOfProperty interface { // the specified index for the property "anyOf". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "anyOf". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "anyOf". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "anyOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "anyOf". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "anyOf". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "anyOf". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go index baf2e22f2..6f255aeab 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsAttachmentPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsAttachmentPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsAttachmentPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1034,14 +1105,38 @@ type ActivityStreamsAttachmentProperty interface { // the back of a list of the property "attachment". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "attachment". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "attachment". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "attachment". Invalidates iterators that // are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "attachment". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "attachment". Invalidates iterators that // are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "attachment". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "attachment". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "attachment" AppendIRI(v *url.URL) @@ -1327,16 +1422,46 @@ type ActivityStreamsAttachmentProperty interface { // at that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "attachment". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "attachment". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "attachment". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "attachment". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "attachment". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "attachment". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1573,14 +1698,37 @@ type ActivityStreamsAttachmentProperty interface { // the front of a list of the property "attachment". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "attachment". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "attachment". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "attachment". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "attachment". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "attachment". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "attachment". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "attachment". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "attachment". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "attachment". PrependIRI(v *url.URL) @@ -1846,14 +1994,38 @@ type ActivityStreamsAttachmentProperty interface { // the specified index for the property "attachment". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "attachment". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "attachment". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "attachment". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "attachment". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "attachment". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "attachment". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go index 560d3a261..8817b523a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsAttributedToPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsAttributedToPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsAttributedToPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1051,14 +1122,38 @@ type ActivityStreamsAttributedToProperty interface { // the back of a list of the property "attributedTo". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "attributedTo". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "attributedTo". Invalidates iterators // that are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "attributedTo". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "attributedTo". Invalidates iterators // that are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "attributedTo". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "attributedTo" AppendIRI(v *url.URL) @@ -1344,16 +1439,46 @@ type ActivityStreamsAttributedToProperty interface { // elements at that index and higher are shifted back once. // Invalidates all iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "attributedTo". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "attributedTo". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "attributedTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "attributedTo". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "attributedTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "attributedTo". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1590,14 +1715,37 @@ type ActivityStreamsAttributedToProperty interface { // the front of a list of the property "attributedTo". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "attributedTo". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "attributedTo". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "attributedTo". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "attributedTo". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "attributedTo". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "attributedTo". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "attributedTo". PrependIRI(v *url.URL) @@ -1863,14 +2011,38 @@ type ActivityStreamsAttributedToProperty interface { // the specified index for the property "attributedTo". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "attributedTo". + // Panics if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "attributedTo". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "attributedTo". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "attributedTo". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "attributedTo". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_audience_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_audience_interface.go index 9e69f9320..d5ee18c79 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_audience_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsAudiencePropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsAudiencePropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsAudiencePropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1036,14 +1107,38 @@ type ActivityStreamsAudienceProperty interface { // the back of a list of the property "audience". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "audience". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "audience". Invalidates iterators that // are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "audience". Invalidates iterators that // are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "audience". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "audience" AppendIRI(v *url.URL) @@ -1329,16 +1424,46 @@ type ActivityStreamsAudienceProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "audience". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "audience". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "audience". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "audience". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "audience". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1574,14 +1699,37 @@ type ActivityStreamsAudienceProperty interface { // the front of a list of the property "audience". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "audience". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "audience". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "audience". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "audience". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "audience". PrependIRI(v *url.URL) @@ -1847,14 +1995,38 @@ type ActivityStreamsAudienceProperty interface { // the specified index for the property "audience". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "audience". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "audience". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "audience". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "audience". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "audience". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "audience". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go index 0f065871c..4a607704e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsBccPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsBccPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsBccPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1032,14 +1103,38 @@ type ActivityStreamsBccProperty interface { // the back of a list of the property "bcc". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "bcc". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "bcc". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "bcc". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "bcc". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "bcc". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "bcc". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "bcc" AppendIRI(v *url.URL) @@ -1316,14 +1411,40 @@ type ActivityStreamsBccProperty interface { // the specified index for a property "bcc". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "bcc". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "bcc". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "bcc". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "bcc". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "bcc". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -1554,12 +1675,34 @@ type ActivityStreamsBccProperty interface { // the front of a list of the property "bcc". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "bcc". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "bcc". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "bcc". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "bcc". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "bcc". PrependIRI(v *url.URL) @@ -1825,14 +1968,38 @@ type ActivityStreamsBccProperty interface { // the specified index for the property "bcc". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "bcc". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "bcc". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "bcc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "bcc". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "bcc". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "bcc". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bto_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bto_interface.go index 3683a053e..2c7a956fd 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bto_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsBtoPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsBtoPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsBtoPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1032,14 +1103,38 @@ type ActivityStreamsBtoProperty interface { // the back of a list of the property "bto". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "bto". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "bto". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "bto". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "bto". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "bto". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "bto". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "bto" AppendIRI(v *url.URL) @@ -1316,14 +1411,40 @@ type ActivityStreamsBtoProperty interface { // the specified index for a property "bto". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "bto". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "bto". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "bto". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "bto". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "bto". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -1554,12 +1675,34 @@ type ActivityStreamsBtoProperty interface { // the front of a list of the property "bto". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "bto". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "bto". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "bto". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "bto". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "bto". PrependIRI(v *url.URL) @@ -1825,14 +1968,38 @@ type ActivityStreamsBtoProperty interface { // the specified index for the property "bto". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "bto". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "bto". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "bto". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "bto". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "bto". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "bto". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_cc_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_cc_interface.go index e059fd15f..31f5eae4f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_cc_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsCcPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsCcPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsCcPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1030,14 +1101,38 @@ type ActivityStreamsCcProperty interface { // the back of a list of the property "cc". Invalidates iterators that // are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "cc". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "cc". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "cc". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "cc". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "cc". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "cc" AppendIRI(v *url.URL) @@ -1312,14 +1407,40 @@ type ActivityStreamsCcProperty interface { // the specified index for a property "cc". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "cc". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "cc". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "cc". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "cc". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property "cc". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -1548,12 +1669,33 @@ type ActivityStreamsCcProperty interface { // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "cc". Invalidates all iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "cc". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "cc". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "cc". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "cc". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "cc". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "cc". PrependIRI(v *url.URL) @@ -1819,14 +1961,38 @@ type ActivityStreamsCcProperty interface { // the specified index for the property "cc". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "cc". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "cc". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "cc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "cc". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "cc". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "cc". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_closed_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_closed_interface.go index 04c05de1b..bcad48671 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_closed_interface.go @@ -248,14 +248,38 @@ type ActivityStreamsClosedPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -540,14 +564,43 @@ type ActivityStreamsClosedPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -775,12 +828,30 @@ type ActivityStreamsClosedPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1053,14 +1124,38 @@ type ActivityStreamsClosedProperty interface { // the back of a list of the property "closed". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "closed". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "closed". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "closed". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "closed". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "closed". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "closed". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "closed" AppendIRI(v *url.URL) @@ -1349,14 +1444,41 @@ type ActivityStreamsClosedProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "closed". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "closed". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "closed". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "closed". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "closed". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "closed". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1595,12 +1717,34 @@ type ActivityStreamsClosedProperty interface { // the front of a list of the property "closed". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "closed". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "closed". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "closed". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "closed". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "closed". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "closed". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "closed". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "closed". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "closed". PrependIRI(v *url.URL) @@ -1872,14 +2016,38 @@ type ActivityStreamsClosedProperty interface { // the specified index for the property "closed". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "closed". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "closed". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "closed". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "closed". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "closed". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "closed". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_content_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_content_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_content_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_content_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_context_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_context_interface.go index 01fc24b71..086d48327 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_context_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsContextPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsContextPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsContextPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1046,14 +1117,38 @@ type ActivityStreamsContextProperty interface { // the back of a list of the property "context". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "context". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "context". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "context". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "context". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "context" AppendIRI(v *url.URL) @@ -1334,14 +1429,41 @@ type ActivityStreamsContextProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "context". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "context". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "context". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "context". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "context". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "context". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1576,14 +1698,37 @@ type ActivityStreamsContextProperty interface { // the front of a list of the property "context". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "context". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "context". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "context". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "context". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "context". PrependIRI(v *url.URL) @@ -1849,14 +1994,38 @@ type ActivityStreamsContextProperty interface { // the specified index for the property "context". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "context". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "context". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "context". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "context". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "context". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "context". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_current_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_current_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_current_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_current_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_describes_interface.go similarity index 90% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_describes_interface.go index d2d0998a7..ea11c6032 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_describes_interface.go @@ -252,14 +252,38 @@ type ActivityStreamsDescribesProperty interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -525,14 +549,43 @@ type ActivityStreamsDescribesProperty interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -743,12 +796,30 @@ type ActivityStreamsDescribesProperty interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_duration_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_duration_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_duration_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_duration_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_first_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_first_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_first_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_first_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_followers_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_followers_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_followers_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_followers_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_following_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_following_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_following_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_following_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go index 493b70fca..d31f1a72d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go @@ -237,14 +237,38 @@ type ActivityStreamsFormerTypePropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -514,14 +538,43 @@ type ActivityStreamsFormerTypePropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -735,12 +788,30 @@ type ActivityStreamsFormerTypePropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1001,14 +1072,38 @@ type ActivityStreamsFormerTypeProperty interface { // the back of a list of the property "formerType". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "formerType". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "formerType". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "formerType". Invalidates iterators that // are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "formerType". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "formerType". Invalidates iterators that // are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "formerType". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "formerType". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "formerType" AppendIRI(v *url.URL) @@ -1286,16 +1381,46 @@ type ActivityStreamsFormerTypeProperty interface { // at that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "formerType". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "formerType". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "formerType". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "formerType". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "formerType". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "formerType". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1526,14 +1651,37 @@ type ActivityStreamsFormerTypeProperty interface { // the front of a list of the property "formerType". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "formerType". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "formerType". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "formerType". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "formerType". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "formerType". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "formerType". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "formerType". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "formerType". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "formerType". PrependIRI(v *url.URL) @@ -1791,14 +1939,38 @@ type ActivityStreamsFormerTypeProperty interface { // the specified index for the property "formerType". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "formerType". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "formerType". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "formerType". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "formerType". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "formerType". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "formerType". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_generator_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_generator_interface.go index ba6312e82..380de7732 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_generator_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsGeneratorPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsGeneratorPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsGeneratorPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1032,14 +1103,38 @@ type ActivityStreamsGeneratorProperty interface { // the back of a list of the property "generator". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "generator". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "generator". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "generator". Invalidates iterators that // are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "generator". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "generator". Invalidates iterators that // are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "generator". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "generator". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "generator" AppendIRI(v *url.URL) @@ -1325,16 +1420,46 @@ type ActivityStreamsGeneratorProperty interface { // at that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "generator". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "generator". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "generator". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "generator". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "generator". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "generator". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1571,14 +1696,37 @@ type ActivityStreamsGeneratorProperty interface { // the front of a list of the property "generator". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "generator". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "generator". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "generator". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "generator". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "generator". PrependIRI(v *url.URL) @@ -1844,14 +1992,38 @@ type ActivityStreamsGeneratorProperty interface { // the specified index for the property "generator". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "generator". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "generator". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "generator". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "generator". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "generator". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "generator". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_height_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_height_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_height_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_height_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_href_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_href_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_href_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_href_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_icon_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_icon_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_icon_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_icon_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_image_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_image_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_image_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_image_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go index eec2d6122..fcf1d5710 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsInReplyToPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsInReplyToPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsInReplyToPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1042,14 +1113,38 @@ type ActivityStreamsInReplyToProperty interface { // the back of a list of the property "inReplyTo". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "inReplyTo". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "inReplyTo". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "inReplyTo". Invalidates iterators that // are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "inReplyTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "inReplyTo". Invalidates iterators that // are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "inReplyTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "inReplyTo". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "inReplyTo" AppendIRI(v *url.URL) @@ -1335,16 +1430,46 @@ type ActivityStreamsInReplyToProperty interface { // at that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "inReplyTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "inReplyTo". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "inReplyTo". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "inReplyTo". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "inReplyTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "inReplyTo". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1581,14 +1706,37 @@ type ActivityStreamsInReplyToProperty interface { // the front of a list of the property "inReplyTo". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "inReplyTo". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "inReplyTo". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "inReplyTo". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "inReplyTo". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "inReplyTo". PrependIRI(v *url.URL) @@ -1854,14 +2002,38 @@ type ActivityStreamsInReplyToProperty interface { // the specified index for the property "inReplyTo". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "inReplyTo". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "inReplyTo". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "inReplyTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "inReplyTo". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "inReplyTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "inReplyTo". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go index b9471eee1..7df49d1e1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsInstrumentPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsInstrumentPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsInstrumentPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1040,14 +1111,38 @@ type ActivityStreamsInstrumentProperty interface { // the back of a list of the property "instrument". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "instrument". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "instrument". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "instrument". Invalidates iterators that // are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "instrument". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "instrument". Invalidates iterators that // are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "instrument". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "instrument". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "instrument" AppendIRI(v *url.URL) @@ -1333,16 +1428,46 @@ type ActivityStreamsInstrumentProperty interface { // at that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "instrument". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "instrument". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "instrument". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "instrument". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "instrument". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "instrument". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1579,14 +1704,37 @@ type ActivityStreamsInstrumentProperty interface { // the front of a list of the property "instrument". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "instrument". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "instrument". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "instrument". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "instrument". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "instrument". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "instrument". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "instrument". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "instrument". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "instrument". PrependIRI(v *url.URL) @@ -1852,14 +2000,38 @@ type ActivityStreamsInstrumentProperty interface { // the specified index for the property "instrument". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "instrument". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "instrument". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "instrument". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "instrument". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "instrument". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "instrument". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_items_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_items_interface.go index 083e27454..3e554b3e4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_items_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsItemsPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsItemsPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsItemsPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1039,14 +1110,38 @@ type ActivityStreamsItemsProperty interface { // the back of a list of the property "items". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "items". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "items". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "items". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "items". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "items". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "items". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "items" AppendIRI(v *url.URL) @@ -1327,14 +1422,41 @@ type ActivityStreamsItemsProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "items". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "items". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "items". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "items". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "items". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "items". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1565,12 +1687,34 @@ type ActivityStreamsItemsProperty interface { // the front of a list of the property "items". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "items". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "items". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "items". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "items". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "items". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "items". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "items". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "items". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "items". PrependIRI(v *url.URL) @@ -1836,14 +1980,38 @@ type ActivityStreamsItemsProperty interface { // the specified index for the property "items". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "items". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "items". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "items". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "items". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "items". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "items". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_last_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_last_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_last_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_last_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_liked_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_liked_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_liked_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_liked_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_likes_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_likes_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_likes_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_likes_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_location_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_location_interface.go index 81b5d7562..2401bbaea 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_location_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsLocationPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsLocationPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsLocationPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1038,14 +1109,38 @@ type ActivityStreamsLocationProperty interface { // the back of a list of the property "location". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "location". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "location". Invalidates iterators that // are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "location". Invalidates iterators that // are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "location". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "location" AppendIRI(v *url.URL) @@ -1331,16 +1426,46 @@ type ActivityStreamsLocationProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "location". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "location". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "location". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "location". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "location". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1576,14 +1701,37 @@ type ActivityStreamsLocationProperty interface { // the front of a list of the property "location". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "location". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "location". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "location". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "location". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "location". PrependIRI(v *url.URL) @@ -1849,14 +1997,38 @@ type ActivityStreamsLocationProperty interface { // the specified index for the property "location". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "location". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "location". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "location". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "location". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "location". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "location". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_name_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_name_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_name_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_name_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_next_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_next_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_next_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_next_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_object_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_object_interface.go index 109bc77bd..5ecc9b010 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_object_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsObjectPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsObjectPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsObjectPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1059,14 +1130,38 @@ type ActivityStreamsObjectProperty interface { // the back of a list of the property "object". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "object". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "object". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "object". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "object". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "object". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "object". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "object" AppendIRI(v *url.URL) @@ -1347,14 +1442,41 @@ type ActivityStreamsObjectProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "object". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "object". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "object". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "object". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "object". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "object". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1585,12 +1707,34 @@ type ActivityStreamsObjectProperty interface { // the front of a list of the property "object". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "object". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "object". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "object". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "object". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "object". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "object". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "object". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "object". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "object". PrependIRI(v *url.URL) @@ -1856,14 +2000,38 @@ type ActivityStreamsObjectProperty interface { // the specified index for the property "object". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "object". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "object". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "object". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "object". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "object". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "object". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go index a4f5b093e..bde8a7953 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsOneOfPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsOneOfPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsOneOfPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1039,14 +1110,38 @@ type ActivityStreamsOneOfProperty interface { // the back of a list of the property "oneOf". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "oneOf". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "oneOf". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "oneOf". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "oneOf". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "oneOf". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "oneOf". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "oneOf" AppendIRI(v *url.URL) @@ -1327,14 +1422,41 @@ type ActivityStreamsOneOfProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "oneOf". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "oneOf". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "oneOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "oneOf". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "oneOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "oneOf". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1565,12 +1687,34 @@ type ActivityStreamsOneOfProperty interface { // the front of a list of the property "oneOf". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "oneOf". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "oneOf". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "oneOf". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "oneOf". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "oneOf". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "oneOf". PrependIRI(v *url.URL) @@ -1836,14 +1980,38 @@ type ActivityStreamsOneOfProperty interface { // the specified index for the property "oneOf". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "oneOf". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "oneOf". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "oneOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "oneOf". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "oneOf". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "oneOf". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go index 6d6399f09..0af6120f8 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1040,14 +1111,38 @@ type ActivityStreamsOrderedItemsProperty interface { // the back of a list of the property "orderedItems". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "orderedItems". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "orderedItems". Invalidates iterators // that are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "orderedItems". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "orderedItems". Invalidates iterators // that are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "orderedItems". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "orderedItems" AppendIRI(v *url.URL) @@ -1333,16 +1428,46 @@ type ActivityStreamsOrderedItemsProperty interface { // elements at that index and higher are shifted back once. // Invalidates all iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "orderedItems". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "orderedItems". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "orderedItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "orderedItems". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "orderedItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "orderedItems". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1579,14 +1704,37 @@ type ActivityStreamsOrderedItemsProperty interface { // the front of a list of the property "orderedItems". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "orderedItems". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "orderedItems". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "orderedItems". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "orderedItems". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "orderedItems". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "orderedItems". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "orderedItems". PrependIRI(v *url.URL) @@ -1852,14 +2000,38 @@ type ActivityStreamsOrderedItemsProperty interface { // the specified index for the property "orderedItems". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "orderedItems". + // Panics if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "orderedItems". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "orderedItems". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "orderedItems". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "orderedItems". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_origin_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_origin_interface.go index f93bf0c4f..43afc1b56 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_origin_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsOriginPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsOriginPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsOriginPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1040,14 +1111,38 @@ type ActivityStreamsOriginProperty interface { // the back of a list of the property "origin". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "origin". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "origin". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "origin". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "origin". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "origin". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "origin". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "origin" AppendIRI(v *url.URL) @@ -1328,14 +1423,41 @@ type ActivityStreamsOriginProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "origin". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "origin". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "origin". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "origin". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "origin". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "origin". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1566,12 +1688,34 @@ type ActivityStreamsOriginProperty interface { // the front of a list of the property "origin". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "origin". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "origin". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "origin". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "origin". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "origin". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "origin". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "origin". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "origin". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "origin". PrependIRI(v *url.URL) @@ -1837,14 +1981,38 @@ type ActivityStreamsOriginProperty interface { // the specified index for the property "origin". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "origin". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "origin". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "origin". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "origin". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "origin". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "origin". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_prev_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_prev_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_prev_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_prev_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preview_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preview_interface.go index 870629847..210f801f0 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preview_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsPreviewPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsPreviewPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsPreviewPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1037,14 +1108,38 @@ type ActivityStreamsPreviewProperty interface { // the back of a list of the property "preview". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "preview". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "preview". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "preview". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "preview". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "preview" AppendIRI(v *url.URL) @@ -1325,14 +1420,41 @@ type ActivityStreamsPreviewProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "preview". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "preview". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "preview". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "preview". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "preview". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "preview". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1567,14 +1689,37 @@ type ActivityStreamsPreviewProperty interface { // the front of a list of the property "preview". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "preview". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "preview". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "preview". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "preview". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "preview". PrependIRI(v *url.URL) @@ -1840,14 +1985,38 @@ type ActivityStreamsPreviewProperty interface { // the specified index for the property "preview". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "preview". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "preview". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "preview". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "preview". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "preview". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "preview". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_published_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_published_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_published_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_published_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_radius_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_radius_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_radius_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_radius_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_rel_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_rel_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_rel_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_rel_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go index bef57ed28..c355348ed 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go @@ -237,14 +237,38 @@ type ActivityStreamsRelationshipPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -510,14 +534,43 @@ type ActivityStreamsRelationshipPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -727,12 +780,30 @@ type ActivityStreamsRelationshipPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -999,14 +1070,38 @@ type ActivityStreamsRelationshipProperty interface { // the back of a list of the property "relationship". Invalidates // iterators that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "relationship". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "relationship". Invalidates iterators // that are traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "relationship". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "relationship". Invalidates iterators // that are traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "relationship". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "relationship" AppendIRI(v *url.URL) @@ -1280,16 +1375,46 @@ type ActivityStreamsRelationshipProperty interface { // elements at that index and higher are shifted back once. // Invalidates all iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "relationship". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "relationship". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "relationship". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "relationship". Existing elements at // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "relationship". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "relationship". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1516,14 +1641,37 @@ type ActivityStreamsRelationshipProperty interface { // the front of a list of the property "relationship". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "relationship". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "relationship". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "relationship". Invalidates all // iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "relationship". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "relationship". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "relationship". Invalidates all // iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "relationship". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "relationship". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "relationship". PrependIRI(v *url.URL) @@ -1778,14 +1926,38 @@ type ActivityStreamsRelationshipProperty interface { // the specified index for the property "relationship". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "relationship". + // Panics if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "relationship". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "relationship". Panics if the // index is out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "relationship". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "relationship". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_replies_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_replies_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_replies_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_replies_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_result_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_result_interface.go index 2d5417f52..d81de3303 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_result_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsResultPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsResultPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsResultPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1038,14 +1109,38 @@ type ActivityStreamsResultProperty interface { // the back of a list of the property "result". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "result". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "result". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "result". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "result". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "result". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "result". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "result" AppendIRI(v *url.URL) @@ -1326,14 +1421,41 @@ type ActivityStreamsResultProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "result". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "result". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "result". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "result". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "result". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "result". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1564,12 +1686,34 @@ type ActivityStreamsResultProperty interface { // the front of a list of the property "result". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "result". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "result". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "result". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "result". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "result". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "result". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "result". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "result". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "result". PrependIRI(v *url.URL) @@ -1835,14 +1979,38 @@ type ActivityStreamsResultProperty interface { // the specified index for the property "result". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "result". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "result". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "result". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "result". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "result". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "result". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_shares_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_shares_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_shares_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_shares_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_source_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_source_interface.go index 3b03c616c..9bb00e4b8 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_source_interface.go @@ -270,14 +270,38 @@ type ActivityStreamsSourceProperty interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -554,14 +578,43 @@ type ActivityStreamsSourceProperty interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -782,12 +835,30 @@ type ActivityStreamsSourceProperty interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_streams_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_streams_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_streams_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_streams_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_subject_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_subject_interface.go index d95d2b145..55ab81707 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_subject_interface.go @@ -265,14 +265,38 @@ type ActivityStreamsSubjectProperty interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -549,14 +573,43 @@ type ActivityStreamsSubjectProperty interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -777,12 +830,30 @@ type ActivityStreamsSubjectProperty interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_summary_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_summary_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_summary_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_summary_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_tag_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_tag_interface.go index 713049d0e..9e6e6df5e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_tag_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsTagPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsTagPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsTagPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1036,14 +1107,38 @@ type ActivityStreamsTagProperty interface { // the back of a list of the property "tag". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "tag". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "tag". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "tag". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "tag". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "tag". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "tag". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "tag" AppendIRI(v *url.URL) @@ -1320,14 +1415,40 @@ type ActivityStreamsTagProperty interface { // the specified index for a property "tag". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "tag". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "tag". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "tag". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "tag". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "tag". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -1558,12 +1679,34 @@ type ActivityStreamsTagProperty interface { // the front of a list of the property "tag". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "tag". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "tag". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "tag". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "tag". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "tag". PrependIRI(v *url.URL) @@ -1829,14 +1972,38 @@ type ActivityStreamsTagProperty interface { // the specified index for the property "tag". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "tag". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "tag". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "tag". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "tag". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "tag". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "tag". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_target_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_target_interface.go index 58015337d..e94c4138e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_target_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsTargetPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsTargetPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsTargetPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1047,14 +1118,38 @@ type ActivityStreamsTargetProperty interface { // the back of a list of the property "target". Invalidates iterators // that are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "target". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "target". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "target". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "target". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "target". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "target". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "target" AppendIRI(v *url.URL) @@ -1335,14 +1430,41 @@ type ActivityStreamsTargetProperty interface { // that index and higher are shifted back once. Invalidates all // iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "target". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "target". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "target". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "target". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "target". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property // "target". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1573,12 +1695,34 @@ type ActivityStreamsTargetProperty interface { // the front of a list of the property "target". Invalidates all // iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "target". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "target". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "target". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "target". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "target". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "target". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "target". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "target". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "target". PrependIRI(v *url.URL) @@ -1844,14 +1988,38 @@ type ActivityStreamsTargetProperty interface { // the specified index for the property "target". Panics if the index // is out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "target". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "target". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "target". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "target". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "target". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "target". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_to_interface.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_to_interface.go index 3ca40db54..c625fff15 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_to_interface.go @@ -245,14 +245,38 @@ type ActivityStreamsToPropertyIterator interface { // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest // GetGoToSocialLikeApproval returns the value of this property. When // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval // will return an arbitrary value. GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest // GetGoToSocialReplyApproval returns the value of this property. When // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval // will return an arbitrary value. GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -529,14 +553,43 @@ type ActivityStreamsToPropertyIterator interface { // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval // methods to access and set this property. IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool // IsGoToSocialLikeApproval returns true if this property has a type of // "LikeApproval". When true, use the GetGoToSocialLikeApproval and // SetGoToSocialLikeApproval methods to access and set this property. IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool // IsGoToSocialReplyApproval returns true if this property has a type of // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and // SetGoToSocialReplyApproval methods to access and set this property. IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -756,12 +809,30 @@ type ActivityStreamsToPropertyIterator interface { // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets the value of this property. Calling // IsGoToSocialLikeApproval afterwards returns true. SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets the value of this property. Calling // IsGoToSocialReplyApproval afterwards returns true. SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -1030,14 +1101,38 @@ type ActivityStreamsToProperty interface { // the back of a list of the property "to". Invalidates iterators that // are traversing using Prev. AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "to". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // AppendGoToSocialLikeApproval appends a LikeApproval value to the back // of a list of the property "to". Invalidates iterators that are // traversing using Prev. AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "to". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back // of a list of the property "to". Invalidates iterators that are // traversing using Prev. AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "to". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) // AppendIRI appends an IRI value to the back of a list of the property // "to" AppendIRI(v *url.URL) @@ -1312,14 +1407,40 @@ type ActivityStreamsToProperty interface { // the specified index for a property "to". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "to". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // InsertGoToSocialLikeApproval inserts a LikeApproval value at the // specified index for a property "to". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the // specified index for a property "to". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "to". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // Insert inserts an IRI value at the specified index for a property "to". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -1548,12 +1669,33 @@ type ActivityStreamsToProperty interface { // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "to". Invalidates all iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "to". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "to". Invalidates all iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) // PrependGoToSocialLikeApproval prepends a LikeApproval value to the // front of a list of the property "to". Invalidates all iterators. PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "to". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "to". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the // front of a list of the property "to". Invalidates all iterators. PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "to". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "to". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) // PrependIRI prepends an IRI value to the front of a list of the property // "to". PrependIRI(v *url.URL) @@ -1819,14 +1961,38 @@ type ActivityStreamsToProperty interface { // the specified index for the property "to". Panics if the index is // out of bounds. Invalidates all iterators. SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "to". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) // SetGoToSocialLikeApproval sets a LikeApproval value to be at the // specified index for the property "to". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "to". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the // specified index for the property "to". Panics if the index is out // of bounds. Invalidates all iterators. SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "to". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) // SetIRI sets an IRI value to be at the specified index for the property // "to". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_units_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_units_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_units_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_units_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_updated_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_updated_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_updated_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_updated_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_url_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_url_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_url_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_url_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_width_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_width_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_width_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_width_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_always_interface.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_always_interface.go index 54e8c8106..2ed2009b2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_always_interface.go @@ -48,8 +48,9 @@ type GoToSocialAlwaysPropertyIterator interface { SetIRI(v *url.URL) } -// Indicates zero or more URI/IDs that can perform an interaction without -// requiring approval by the Object AttributedTo Actor. +// DEPRECATED: Use `automaticApproval` instead. Indicates zero or more URI/IDs +// that can perform an interaction without requiring approval by the Object +// AttributedTo Actor. type GoToSocialAlwaysProperty interface { // AppendIRI appends an IRI value to the back of a list of the property // "always" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go index 4e4364d22..a677f1372 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go @@ -48,8 +48,9 @@ type GoToSocialApprovalRequiredPropertyIterator interface { SetIRI(v *url.URL) } -// Indicates zero or more URI/IDs that require approval by the Object AttributedTo -// Actor in order to perform an interaction. +// DEPRECATED: Use `manualApproval` instead. Indicates zero or more URI/IDs that +// require approval by the Object AttributedTo Actor in order to perform an +// interaction. type GoToSocialApprovalRequiredProperty interface { // AppendIRI appends an IRI value to the back of a list of the property // "approvalRequired" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go new file mode 100644 index 000000000..b4f02850c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go @@ -0,0 +1,132 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialAutomaticApprovalPropertyIterator represents a single value for the +// "automaticApproval" property. +type GoToSocialAutomaticApprovalPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialAutomaticApprovalPropertyIterator) bool + // Name returns the name of this property: "GoToSocialAutomaticApproval". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialAutomaticApprovalPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialAutomaticApprovalPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// Indicates zero or more URI/IDs that can perform an interaction without +// requiring manual approval by the Object AttributedTo Actor. +type GoToSocialAutomaticApprovalProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "automaticApproval" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "automaticApproval". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialAutomaticApprovalPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialAutomaticApprovalPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialAutomaticApprovalPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "automaticApproval". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "automaticApproval". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "automaticApproval" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialAutomaticApprovalProperty) bool + // Name returns the name of this property ("automaticApproval") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "automaticApproval". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "automaticApproval". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "automaticApproval", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "automaticApproval". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "automaticApproval". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "automaticApproval" property. + Swap(i, j int) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go new file mode 100644 index 000000000..4fd12a2c6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go @@ -0,0 +1,156 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialCanQuotePropertyIterator represents a single value for the "canQuote" +// property. +type GoToSocialCanQuotePropertyIterator interface { + // Get returns the value of this property. When IsGoToSocialCanQuote + // returns false, Get will return any arbitrary value. + Get() GoToSocialCanQuote + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsGoToSocialCanQuote returns true if this property is set and not an + // IRI. + IsGoToSocialCanQuote() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanQuotePropertyIterator) bool + // Name returns the name of this property: "GoToSocialCanQuote". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialCanQuotePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialCanQuotePropertyIterator + // Set sets the value of this property. Calling IsGoToSocialCanQuote + // afterwards will return true. + Set(v GoToSocialCanQuote) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Defines who can Create a new Object that quotes the Object to which this +// interactionPolicy is attached. +type GoToSocialCanQuoteProperty interface { + // AppendGoToSocialCanQuote appends a CanQuote value to the back of a list + // of the property "canQuote". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialCanQuote(v GoToSocialCanQuote) + // AppendIRI appends an IRI value to the back of a list of the property + // "canQuote" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canQuote". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialCanQuotePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialCanQuotePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialCanQuotePropertyIterator + // InsertGoToSocialCanQuote inserts a CanQuote value at the specified + // index for a property "canQuote". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialCanQuote(idx int, v GoToSocialCanQuote) + // Insert inserts an IRI value at the specified index for a property + // "canQuote". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canQuote". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "canQuote" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanQuoteProperty) bool + // Name returns the name of this property ("canQuote") with any alias. + Name() string + // PrependGoToSocialCanQuote prepends a CanQuote value to the front of a + // list of the property "canQuote". Invalidates all iterators. + PrependGoToSocialCanQuote(v GoToSocialCanQuote) + // PrependIRI prepends an IRI value to the front of a list of the property + // "canQuote". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canQuote". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "canQuote", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a CanQuote value to be at the specified index for the property + // "canQuote". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v GoToSocialCanQuote) + // SetIRI sets an IRI value to be at the specified index for the property + // "canQuote". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "canQuote". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "canQuote" + // property. + Swap(i, j int) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go new file mode 100644 index 000000000..53addb567 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go @@ -0,0 +1,130 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialInteractingObjectPropertyIterator represents a single value for the +// "interactingObject" property. +type GoToSocialInteractingObjectPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractingObjectPropertyIterator) bool + // Name returns the name of this property: "GoToSocialInteractingObject". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialInteractingObjectPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialInteractingObjectPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +type GoToSocialInteractingObjectProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "interactingObject" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "interactingObject". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialInteractingObjectPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialInteractingObjectPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialInteractingObjectPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "interactingObject". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "interactingObject". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "interactingObject" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractingObjectProperty) bool + // Name returns the name of this property ("interactingObject") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "interactingObject". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "interactingObject". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "interactingObject", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "interactingObject". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "interactingObject". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "interactingObject" property. + Swap(i, j int) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go new file mode 100644 index 000000000..60805cfbe --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go @@ -0,0 +1,130 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialInteractionTargetPropertyIterator represents a single value for the +// "interactionTarget" property. +type GoToSocialInteractionTargetPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractionTargetPropertyIterator) bool + // Name returns the name of this property: "GoToSocialInteractionTarget". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialInteractionTargetPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialInteractionTargetPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +type GoToSocialInteractionTargetProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "interactionTarget" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "interactionTarget". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialInteractionTargetPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialInteractionTargetPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialInteractionTargetPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "interactionTarget". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "interactionTarget". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "interactionTarget" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractionTargetProperty) bool + // Name returns the name of this property ("interactionTarget") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "interactionTarget". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "interactionTarget". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "interactionTarget", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "interactionTarget". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "interactionTarget". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "interactionTarget" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go new file mode 100644 index 000000000..828df0571 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go @@ -0,0 +1,132 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialManualApprovalPropertyIterator represents a single value for the +// "manualApproval" property. +type GoToSocialManualApprovalPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialManualApprovalPropertyIterator) bool + // Name returns the name of this property: "GoToSocialManualApproval". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialManualApprovalPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialManualApprovalPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// Indicates zero or more URI/IDs that require manual approval by the Object +// AttributedTo Actor in order to perform an interaction. +type GoToSocialManualApprovalProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "manualApproval" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "manualApproval". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialManualApprovalPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialManualApprovalPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialManualApprovalPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "manualApproval". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "manualApproval". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "manualApproval" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialManualApprovalProperty) bool + // Name returns the name of this property ("manualApproval") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "manualApproval". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "manualApproval". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "manualApproval", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "manualApproval". Panics if the index is out of bounds. Invalidates + // all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "manualApproval". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "manualApproval" property. + Swap(i, j int) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_id_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_id_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_id_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_id_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_type_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_type_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_type_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_type_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_schema_value_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_schema_value_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_schema_value_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_schema_value_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_blurhash_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_blurhash_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_blurhash_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_blurhash_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_discoverable_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_discoverable_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_discoverable_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_discoverable_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_featured_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_featured_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_featured_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_featured_interface.go diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_focalPoint_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_focalPoint_interface.go new file mode 100644 index 000000000..32ceec47a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_focalPoint_interface.go @@ -0,0 +1,130 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// TootFocalPointPropertyIterator represents a single value for the "focalPoint" +// property. +type TootFocalPointPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaFloat returns + // false, Get will return any arbitrary value. + Get() float64 + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaFloat returns true if this property is set and not an IRI. + IsXMLSchemaFloat() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootFocalPointPropertyIterator) bool + // Name returns the name of this property: "TootFocalPoint". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() TootFocalPointPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() TootFocalPointPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaFloat + // afterwards will return true. + Set(v float64) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// null +type TootFocalPointProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "focalPoint" + AppendIRI(v *url.URL) + // AppendXMLSchemaFloat appends a float value to the back of a list of the + // property "focalPoint". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaFloat(v float64) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) TootFocalPointPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() TootFocalPointPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() TootFocalPointPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "focalPoint". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaFloat inserts a float value at the specified index for a + // property "focalPoint". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertXMLSchemaFloat(idx int, v float64) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "focalPoint" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootFocalPointProperty) bool + // Name returns the name of this property ("focalPoint") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "focalPoint". + PrependIRI(v *url.URL) + // PrependXMLSchemaFloat prepends a float value to the front of a list of + // the property "focalPoint". Invalidates all iterators. + PrependXMLSchemaFloat(v float64) + // Remove deletes an element at the specified index from a list of the + // property "focalPoint", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a float value to be at the specified index for the property + // "focalPoint". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v float64) + // SetIRI sets an IRI value to be at the specified index for the property + // "focalPoint". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "focalPoint" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_indexable_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_indexable_interface.go new file mode 100644 index 000000000..59be4b5c0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_indexable_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// null +type TootIndexableProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaBoolean afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaBoolean returns + // false, Get will return any arbitrary value. + Get() bool + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaBoolean returns true if this property is set and not an IRI. + IsXMLSchemaBoolean() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootIndexableProperty) bool + // Name returns the name of this property: "indexable". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaBoolean + // afterwards will return true. + Set(v bool) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureValue_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureValue_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureValue_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureValue_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_votersCount_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_votersCount_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_votersCount_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_votersCount_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_accept_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_accept_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_accept_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_accept_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_activity_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_activity_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_activity_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_activity_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_add_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_add_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_add_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_add_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_announce_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_announce_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_announce_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_announce_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_application_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_application_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_application_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_application_interface.go index a5bb05332..70cf3c500 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_application_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_application_interface.go @@ -152,6 +152,9 @@ type ActivityStreamsApplication interface { // GetTootFeatured returns the "featured" property if it exists, and nil // otherwise. GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Application @@ -274,6 +277,8 @@ type ActivityStreamsApplication interface { SetTootDiscoverable(i TootDiscoverableProperty) // SetTootFeatured sets the "featured" property. SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) // SetW3IDSecurityV1PublicKey sets the "publicKey" property. SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) // VocabularyURI returns the vocabulary's URI as a string. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_article_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_article_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_article_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_article_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_audio_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_audio_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_audio_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_audio_interface.go index 22ed205fa..70ad5d20a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_audio_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_audio_interface.go @@ -126,6 +126,9 @@ type ActivityStreamsAudio interface { // GetTootBlurhash returns the "blurhash" property if it exists, and nil // otherwise. GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Audio type. @@ -222,6 +225,8 @@ type ActivityStreamsAudio interface { SetJSONLDType(i JSONLDTypeProperty) // SetTootBlurhash sets the "blurhash" property. SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) // VocabularyURI returns the vocabulary's URI as a string. VocabularyURI() string } diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_block_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_block_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_block_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_block_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collection_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collection_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collection_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collection_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_create_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_create_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_create_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_create_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_delete_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_delete_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_delete_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_delete_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_document_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_document_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_document_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_document_interface.go index 96ccd1e56..f417c9452 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_document_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_document_interface.go @@ -122,6 +122,9 @@ type ActivityStreamsDocument interface { // GetTootBlurhash returns the "blurhash" property if it exists, and nil // otherwise. GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Document @@ -219,6 +222,8 @@ type ActivityStreamsDocument interface { SetJSONLDType(i JSONLDTypeProperty) // SetTootBlurhash sets the "blurhash" property. SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) // VocabularyURI returns the vocabulary's URI as a string. VocabularyURI() string } diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_event_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_event_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_event_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_event_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_flag_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_flag_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_flag_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_flag_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_follow_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_follow_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_follow_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_follow_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_group_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_group_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_group_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_group_interface.go index 52d01aaa4..1153f8537 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_group_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_group_interface.go @@ -152,6 +152,9 @@ type ActivityStreamsGroup interface { // GetTootFeatured returns the "featured" property if it exists, and nil // otherwise. GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Group type. @@ -273,6 +276,8 @@ type ActivityStreamsGroup interface { SetTootDiscoverable(i TootDiscoverableProperty) // SetTootFeatured sets the "featured" property. SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) // SetW3IDSecurityV1PublicKey sets the "publicKey" property. SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) // VocabularyURI returns the vocabulary's URI as a string. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_image_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_image_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_image_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_image_interface.go index 94a26db46..5073d044a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_image_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_image_interface.go @@ -139,6 +139,9 @@ type ActivityStreamsImage interface { // GetTootBlurhash returns the "blurhash" property if it exists, and nil // otherwise. GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Image type. @@ -239,6 +242,8 @@ type ActivityStreamsImage interface { SetJSONLDType(i JSONLDTypeProperty) // SetTootBlurhash sets the "blurhash" property. SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) // VocabularyURI returns the vocabulary's URI as a string. VocabularyURI() string } diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_invite_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_invite_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_invite_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_invite_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_join_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_join_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_join_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_join_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_leave_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_leave_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_leave_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_leave_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_like_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_like_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_like_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_like_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_link_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_link_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_link_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_link_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_listen_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_listen_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_listen_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_listen_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_mention_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_mention_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_mention_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_mention_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_move_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_move_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_move_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_move_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_note_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_note_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_note_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_note_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_object_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_object_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_object_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_object_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_offer_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_offer_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_offer_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_offer_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_organization_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_organization_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_organization_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_organization_interface.go index 6d7ca9a1e..8b10c848a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_organization_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_organization_interface.go @@ -152,6 +152,9 @@ type ActivityStreamsOrganization interface { // GetTootFeatured returns the "featured" property if it exists, and nil // otherwise. GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the @@ -274,6 +277,8 @@ type ActivityStreamsOrganization interface { SetTootDiscoverable(i TootDiscoverableProperty) // SetTootFeatured sets the "featured" property. SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) // SetW3IDSecurityV1PublicKey sets the "publicKey" property. SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) // VocabularyURI returns the vocabulary's URI as a string. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_page_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_page_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_page_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_page_interface.go index 5f50757d4..635dab3b2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_page_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_page_interface.go @@ -122,6 +122,9 @@ type ActivityStreamsPage interface { // GetTootBlurhash returns the "blurhash" property if it exists, and nil // otherwise. GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Page type. @@ -218,6 +221,8 @@ type ActivityStreamsPage interface { SetJSONLDType(i JSONLDTypeProperty) // SetTootBlurhash sets the "blurhash" property. SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) // VocabularyURI returns the vocabulary's URI as a string. VocabularyURI() string } diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_person_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_person_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_person_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_person_interface.go index 028db6b81..66446bd11 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_person_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_person_interface.go @@ -152,6 +152,9 @@ type ActivityStreamsPerson interface { // GetTootFeatured returns the "featured" property if it exists, and nil // otherwise. GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Person @@ -273,6 +276,8 @@ type ActivityStreamsPerson interface { SetTootDiscoverable(i TootDiscoverableProperty) // SetTootFeatured sets the "featured" property. SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) // SetW3IDSecurityV1PublicKey sets the "publicKey" property. SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) // VocabularyURI returns the vocabulary's URI as a string. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_place_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_place_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_place_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_place_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_profile_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_profile_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_profile_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_profile_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_question_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_question_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_question_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_question_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_read_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_read_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_read_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_read_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_reject_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_reject_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_reject_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_reject_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_remove_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_remove_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_remove_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_remove_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_service_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_service_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_service_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_service_interface.go index 4138af9a8..fb21b5c21 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_service_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_service_interface.go @@ -152,6 +152,9 @@ type ActivityStreamsService interface { // GetTootFeatured returns the "featured" property if it exists, and nil // otherwise. GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Service @@ -274,6 +277,8 @@ type ActivityStreamsService interface { SetTootDiscoverable(i TootDiscoverableProperty) // SetTootFeatured sets the "featured" property. SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) // SetW3IDSecurityV1PublicKey sets the "publicKey" property. SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) // VocabularyURI returns the vocabulary's URI as a string. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_travel_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_travel_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_travel_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_travel_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_undo_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_undo_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_undo_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_undo_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_update_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_update_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_update_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_update_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_video_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_video_interface.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_video_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_video_interface.go index 491c97481..c42dd635a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_video_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_video_interface.go @@ -123,6 +123,9 @@ type ActivityStreamsVideo interface { // GetTootBlurhash returns the "blurhash" property if it exists, and nil // otherwise. GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty // GetTypeName returns the name of this type. GetTypeName() string // GetUnknownProperties returns the unknown properties for the Video type. @@ -219,6 +222,8 @@ type ActivityStreamsVideo interface { SetJSONLDType(i JSONLDTypeProperty) // SetTootBlurhash sets the "blurhash" property. SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) // VocabularyURI returns the vocabulary's URI as a string. VocabularyURI() string } diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_view_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_view_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_view_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_view_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_album_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_album_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_artist_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_artist_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_library_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_library_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_track_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_track_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go index 42059fbdf..576b4efe9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go @@ -2,6 +2,7 @@ package vocab +// DEPRECATED: Use `AnnounceAuthorization` instead. type GoToSocialAnnounceApproval interface { // GetActivityStreamsAltitude returns the "altitude" property if it // exists, and nil otherwise. diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go new file mode 100644 index 000000000..7e08fe47a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go @@ -0,0 +1,210 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialAnnounceAuthorization interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialInteractingObject returns the "interactingObject" property + // if it exists, and nil otherwise. + GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty + // GetGoToSocialInteractionTarget returns the "interactionTarget" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // AnnounceAuthorization type. Note that this should not be used by + // app developers. It is only used to help determine which + // implementation is LessThan the other. Developers who are creating a + // different implementation of this type's interface can use this + // method in their LessThan implementation, but routine ActivityPub + // applications should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the AnnounceAuthorization type extends from + // the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this AnnounceAuthorization is lesser, with an + // arbitrary but stable determination. + LessThan(o GoToSocialAnnounceAuthorization) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialInteractingObject sets the "interactingObject" property. + SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) + // SetGoToSocialInteractionTarget sets the "interactionTarget" property. + SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go new file mode 100644 index 000000000..599ac798b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go @@ -0,0 +1,225 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialAnnounceRequest interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // AnnounceRequest type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the AnnounceRequest type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this AnnounceRequest is lesser, with an arbitrary + // but stable determination. + LessThan(o GoToSocialAnnounceRequest) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go similarity index 77% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go index 7ce82cde8..e80c483bb 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go @@ -9,6 +9,12 @@ type GoToSocialCanAnnounce interface { // GetGoToSocialApprovalRequired returns the "approvalRequired" property // if it exists, and nil otherwise. GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty + // GetGoToSocialAutomaticApproval returns the "automaticApproval" property + // if it exists, and nil otherwise. + GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty + // GetGoToSocialManualApproval returns the "manualApproval" property if it + // exists, and nil otherwise. + GetGoToSocialManualApproval() GoToSocialManualApprovalProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetTypeName returns the name of this type. @@ -38,6 +44,10 @@ type GoToSocialCanAnnounce interface { SetGoToSocialAlways(i GoToSocialAlwaysProperty) // SetGoToSocialApprovalRequired sets the "approvalRequired" property. SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) + // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. + SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) + // SetGoToSocialManualApproval sets the "manualApproval" property. + SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // VocabularyURI returns the vocabulary's URI as a string. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go similarity index 77% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go index 91da1f79e..e417bd4f0 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go @@ -9,6 +9,12 @@ type GoToSocialCanLike interface { // GetGoToSocialApprovalRequired returns the "approvalRequired" property // if it exists, and nil otherwise. GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty + // GetGoToSocialAutomaticApproval returns the "automaticApproval" property + // if it exists, and nil otherwise. + GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty + // GetGoToSocialManualApproval returns the "manualApproval" property if it + // exists, and nil otherwise. + GetGoToSocialManualApproval() GoToSocialManualApprovalProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetTypeName returns the name of this type. @@ -38,6 +44,10 @@ type GoToSocialCanLike interface { SetGoToSocialAlways(i GoToSocialAlwaysProperty) // SetGoToSocialApprovalRequired sets the "approvalRequired" property. SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) + // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. + SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) + // SetGoToSocialManualApproval sets the "manualApproval" property. + SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // VocabularyURI returns the vocabulary's URI as a string. diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go new file mode 100644 index 000000000..98e09421c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go @@ -0,0 +1,55 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialCanQuote interface { + // GetGoToSocialAlways returns the "always" property if it exists, and nil + // otherwise. + GetGoToSocialAlways() GoToSocialAlwaysProperty + // GetGoToSocialApprovalRequired returns the "approvalRequired" property + // if it exists, and nil otherwise. + GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty + // GetGoToSocialAutomaticApproval returns the "automaticApproval" property + // if it exists, and nil otherwise. + GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty + // GetGoToSocialManualApproval returns the "manualApproval" property if it + // exists, and nil otherwise. + GetGoToSocialManualApproval() GoToSocialManualApprovalProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the CanQuote + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the CanQuote type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this CanQuote is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialCanQuote) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetGoToSocialAlways sets the "always" property. + SetGoToSocialAlways(i GoToSocialAlwaysProperty) + // SetGoToSocialApprovalRequired sets the "approvalRequired" property. + SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) + // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. + SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) + // SetGoToSocialManualApproval sets the "manualApproval" property. + SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go similarity index 77% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go index 57e5d0b1b..2a0db5448 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go @@ -9,6 +9,12 @@ type GoToSocialCanReply interface { // GetGoToSocialApprovalRequired returns the "approvalRequired" property // if it exists, and nil otherwise. GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty + // GetGoToSocialAutomaticApproval returns the "automaticApproval" property + // if it exists, and nil otherwise. + GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty + // GetGoToSocialManualApproval returns the "manualApproval" property if it + // exists, and nil otherwise. + GetGoToSocialManualApproval() GoToSocialManualApprovalProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetTypeName returns the name of this type. @@ -38,6 +44,10 @@ type GoToSocialCanReply interface { SetGoToSocialAlways(i GoToSocialAlwaysProperty) // SetGoToSocialApprovalRequired sets the "approvalRequired" property. SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) + // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. + SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) + // SetGoToSocialManualApproval sets the "manualApproval" property. + SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // VocabularyURI returns the vocabulary's URI as a string. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go similarity index 90% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go index e66805a33..a2497a44a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go @@ -10,6 +10,9 @@ type GoToSocialInteractionPolicy interface { // GetGoToSocialCanLike returns the "canLike" property if it exists, and // nil otherwise. GetGoToSocialCanLike() GoToSocialCanLikeProperty + // GetGoToSocialCanQuote returns the "canQuote" property if it exists, and + // nil otherwise. + GetGoToSocialCanQuote() GoToSocialCanQuoteProperty // GetGoToSocialCanReply returns the "canReply" property if it exists, and // nil otherwise. GetGoToSocialCanReply() GoToSocialCanReplyProperty @@ -42,6 +45,8 @@ type GoToSocialInteractionPolicy interface { SetGoToSocialCanAnnounce(i GoToSocialCanAnnounceProperty) // SetGoToSocialCanLike sets the "canLike" property. SetGoToSocialCanLike(i GoToSocialCanLikeProperty) + // SetGoToSocialCanQuote sets the "canQuote" property. + SetGoToSocialCanQuote(i GoToSocialCanQuoteProperty) // SetGoToSocialCanReply sets the "canReply" property. SetGoToSocialCanReply(i GoToSocialCanReplyProperty) // SetJSONLDId sets the "id" property. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go index c1827bfdf..602abef07 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go @@ -2,6 +2,7 @@ package vocab +// DEPRECATED: Use `LikeAuthorization` instead. type GoToSocialLikeApproval interface { // GetActivityStreamsAltitude returns the "altitude" property if it // exists, and nil otherwise. diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go new file mode 100644 index 000000000..02e176fb4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go @@ -0,0 +1,210 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialLikeAuthorization interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialInteractingObject returns the "interactingObject" property + // if it exists, and nil otherwise. + GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty + // GetGoToSocialInteractionTarget returns the "interactionTarget" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // LikeAuthorization type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the LikeAuthorization type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this LikeAuthorization is lesser, with an + // arbitrary but stable determination. + LessThan(o GoToSocialLikeAuthorization) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialInteractingObject sets the "interactingObject" property. + SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) + // SetGoToSocialInteractionTarget sets the "interactionTarget" property. + SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go new file mode 100644 index 000000000..8490ea228 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go @@ -0,0 +1,225 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialLikeRequest interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the LikeRequest + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the LikeRequest type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this LikeRequest is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialLikeRequest) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go index 9ba0698e0..616dcbdf4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go @@ -2,6 +2,7 @@ package vocab +// DEPRECATED: Use `ReplyAuthorization` instead. type GoToSocialReplyApproval interface { // GetActivityStreamsAltitude returns the "altitude" property if it // exists, and nil otherwise. diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go new file mode 100644 index 000000000..4d3975153 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go @@ -0,0 +1,210 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialReplyAuthorization interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialInteractingObject returns the "interactingObject" property + // if it exists, and nil otherwise. + GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty + // GetGoToSocialInteractionTarget returns the "interactionTarget" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // ReplyAuthorization type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the ReplyAuthorization type extends from + // the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this ReplyAuthorization is lesser, with an + // arbitrary but stable determination. + LessThan(o GoToSocialReplyAuthorization) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialInteractingObject sets the "interactingObject" property. + SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) + // SetGoToSocialInteractionTarget sets the "interactionTarget" property. + SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go new file mode 100644 index 000000000..b6572c357 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go @@ -0,0 +1,225 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialReplyRequest interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // ReplyRequest type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the ReplyRequest type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this ReplyRequest is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialReplyRequest) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_emoji_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_emoji_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_emoji_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_emoji_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_hashtag_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_hashtag_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_hashtag_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_hashtag_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_identityproof_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_identityproof_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_identityproof_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_identityproof_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go rename to vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/LICENSE b/vendor/code.superseriousbusiness.org/exif-terminator/LICENSE similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/exif-terminator/LICENSE rename to vendor/code.superseriousbusiness.org/exif-terminator/LICENSE diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/README.md b/vendor/code.superseriousbusiness.org/exif-terminator/README.md similarity index 83% rename from vendor/codeberg.org/superseriousbusiness/exif-terminator/README.md rename to vendor/code.superseriousbusiness.org/exif-terminator/README.md index ddb97fbb6..245bb9187 100644 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/README.md +++ b/vendor/code.superseriousbusiness.org/exif-terminator/README.md @@ -66,7 +66,7 @@ import ( "io" "os" - terminator "codeberg.org/superseriousbusiness/exif-terminator" + terminator "code.superseriousbusiness.org/exif-terminator" ) func main() { @@ -77,14 +77,8 @@ func main() { } defer sloth.Close() - // get the length of the file - stat, err := sloth.Stat() - if err != nil { - panic(err) - } - // terminate! - out, err := terminator.Terminate(sloth, int(stat.Size()), "jpeg") + out, err := terminator.Terminate(sloth, "jpeg") if err != nil { panic(err) } @@ -106,11 +100,11 @@ func main() { ### Libraries -`exif-terminator` borrows heavily from the two [`dsoprea`](https://github.com/dsoprea) libraries credited below. In fact, it's basically a hack on top of those libraries. Thanks `dsoprea`! +`exif-terminator` borrows heavily from the [`dsoprea`](https://github.com/dsoprea) libraries credited below. In fact, it's basically a hack on top of those libraries. Thanks `dsoprea`! +- [superseriousbusiness/go-jpeg-image-structure](https://code.superseriousbusiness.org/go-jpeg-image-structure): jpeg structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). Forked from [dsoprea/go-jpeg-image-structure](https://github.com/dsoprea/go-jpeg-image-structure): jpeg structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). +- [superseriousbusiness/go-png-image-structure](https://code.superseriousbusiness.org/go-png-image-structure): png structure parsing. Forked from [dsoprea/go-png-image-structure](https://github.com/dsoprea/go-png-image-structure): png structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). - [dsoprea/go-exif](https://github.com/dsoprea/go-exif): exif header reconstruction. [MIT License](https://spdx.org/licenses/MIT.html). -- [dsoprea/go-jpeg-image-structure](https://github.com/dsoprea/go-jpeg-image-structure): jpeg structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). -- [dsoprea/go-png-image-structure](https://github.com/dsoprea/go-png-image-structure): png structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). - [stretchr/testify](https://github.com/stretchr/testify); test framework. [MIT License](https://spdx.org/licenses/MIT.html). ## License @@ -119,4 +113,4 @@ func main() { `exif-terminator` is free software, licensed under the [GNU AGPL v3 LICENSE](LICENSE). -Copyright (C) 2022-2024 SuperSeriousBusiness. +Copyright (C) 2022-2025 SuperSeriousBusiness. diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/exif.go b/vendor/code.superseriousbusiness.org/exif-terminator/exif.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/exif-terminator/exif.go rename to vendor/code.superseriousbusiness.org/exif-terminator/exif.go diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/jpeg.go b/vendor/code.superseriousbusiness.org/exif-terminator/jpeg.go similarity index 97% rename from vendor/codeberg.org/superseriousbusiness/exif-terminator/jpeg.go rename to vendor/code.superseriousbusiness.org/exif-terminator/jpeg.go index 25b21e3c5..fa61deb27 100644 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/jpeg.go +++ b/vendor/code.superseriousbusiness.org/exif-terminator/jpeg.go @@ -23,7 +23,7 @@ import ( "fmt" "io" - jpegstructure "codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2" + jpegstructure "code.superseriousbusiness.org/go-jpeg-image-structure/v2" ) var markerLen = map[byte]int{ diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/png.go b/vendor/code.superseriousbusiness.org/exif-terminator/png.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/exif-terminator/png.go rename to vendor/code.superseriousbusiness.org/exif-terminator/png.go index a8245271c..6798e2b7d 100644 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/png.go +++ b/vendor/code.superseriousbusiness.org/exif-terminator/png.go @@ -21,7 +21,7 @@ package terminator import ( "io" - pngstructure "codeberg.org/superseriousbusiness/go-png-image-structure/v2" + pngstructure "code.superseriousbusiness.org/go-png-image-structure/v2" ) type pngVisitor struct { diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/terminator.go b/vendor/code.superseriousbusiness.org/exif-terminator/terminator.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/exif-terminator/terminator.go rename to vendor/code.superseriousbusiness.org/exif-terminator/terminator.go index 8e4976631..1ef7ddf06 100644 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/terminator.go +++ b/vendor/code.superseriousbusiness.org/exif-terminator/terminator.go @@ -25,8 +25,8 @@ import ( "fmt" "io" - jpegstructure "codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2" - pngstructure "codeberg.org/superseriousbusiness/go-png-image-structure/v2" + jpegstructure "code.superseriousbusiness.org/go-jpeg-image-structure/v2" + pngstructure "code.superseriousbusiness.org/go-png-image-structure/v2" ) func Terminate(in io.Reader, mediaType string) (io.Reader, error) { diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/webp.go b/vendor/code.superseriousbusiness.org/exif-terminator/webp.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/exif-terminator/webp.go rename to vendor/code.superseriousbusiness.org/exif-terminator/webp.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/.MODULE_ROOT b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/.MODULE_ROOT similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/.MODULE_ROOT rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/.MODULE_ROOT diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/LICENSE b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/LICENSE similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/LICENSE rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/LICENSE diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/README.md b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/README.md similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/README.md rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/README.md diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/markers.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/markers.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/markers.go rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/markers.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/media_parser.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/media_parser.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/media_parser.go rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/media_parser.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment.go rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment_list.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment_list.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment_list.go rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment_list.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/splitter.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/splitter.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/splitter.go rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/splitter.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/testing_common.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/testing_common.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/testing_common.go rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/testing_common.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/utility.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/utility.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/utility.go rename to vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/utility.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/.MODULE_ROOT b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/.MODULE_ROOT similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/.MODULE_ROOT rename to vendor/code.superseriousbusiness.org/go-png-image-structure/v2/.MODULE_ROOT diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/LICENSE b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/LICENSE similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/LICENSE rename to vendor/code.superseriousbusiness.org/go-png-image-structure/v2/LICENSE diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/chunk_decoder.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/chunk_decoder.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/chunk_decoder.go rename to vendor/code.superseriousbusiness.org/go-png-image-structure/v2/chunk_decoder.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/media_parser.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/media_parser.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/media_parser.go rename to vendor/code.superseriousbusiness.org/go-png-image-structure/v2/media_parser.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/png.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/png.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/png.go rename to vendor/code.superseriousbusiness.org/go-png-image-structure/v2/png.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/testing_common.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/testing_common.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/testing_common.go rename to vendor/code.superseriousbusiness.org/go-png-image-structure/v2/testing_common.go diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/utility.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/utility.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/utility.go rename to vendor/code.superseriousbusiness.org/go-png-image-structure/v2/utility.go diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/LICENSE b/vendor/code.superseriousbusiness.org/httpsig/LICENSE similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/httpsig/LICENSE rename to vendor/code.superseriousbusiness.org/httpsig/LICENSE diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/README.md b/vendor/code.superseriousbusiness.org/httpsig/README.md similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/httpsig/README.md rename to vendor/code.superseriousbusiness.org/httpsig/README.md index 2108ed06c..094133b20 100644 --- a/vendor/codeberg.org/superseriousbusiness/httpsig/README.md +++ b/vendor/code.superseriousbusiness.org/httpsig/README.md @@ -4,7 +4,7 @@ > HTTP Signatures made simple -`go get codeberg.org/superseriousbusiness/httpsig` +`go get code.superseriousbusiness.org/httpsig` Implementation of [HTTP Signatures](https://tools.ietf.org/html/draft-cavage-http-signatures). @@ -21,7 +21,7 @@ signing of hash schemes. Its goals are: ## How to use -`import "codeberg.org/superseriousbusiness/httpsig"` +`import "code.superseriousbusiness.org/httpsig"` ### Signing diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/algorithms.go b/vendor/code.superseriousbusiness.org/httpsig/algorithms.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/httpsig/algorithms.go rename to vendor/code.superseriousbusiness.org/httpsig/algorithms.go diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/digest.go b/vendor/code.superseriousbusiness.org/httpsig/digest.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/httpsig/digest.go rename to vendor/code.superseriousbusiness.org/httpsig/digest.go diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/httpsig.go b/vendor/code.superseriousbusiness.org/httpsig/httpsig.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/httpsig/httpsig.go rename to vendor/code.superseriousbusiness.org/httpsig/httpsig.go diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/signing.go b/vendor/code.superseriousbusiness.org/httpsig/signing.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/httpsig/signing.go rename to vendor/code.superseriousbusiness.org/httpsig/signing.go diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/verifying.go b/vendor/code.superseriousbusiness.org/httpsig/verifying.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/httpsig/verifying.go rename to vendor/code.superseriousbusiness.org/httpsig/verifying.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/.gitignore b/vendor/code.superseriousbusiness.org/oauth2/v4/.gitignore similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/.gitignore rename to vendor/code.superseriousbusiness.org/oauth2/v4/.gitignore diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/LICENSE b/vendor/code.superseriousbusiness.org/oauth2/v4/LICENSE similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/LICENSE rename to vendor/code.superseriousbusiness.org/oauth2/v4/LICENSE diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/README.md b/vendor/code.superseriousbusiness.org/oauth2/v4/README.md similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/README.md rename to vendor/code.superseriousbusiness.org/oauth2/v4/README.md diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/const.go b/vendor/code.superseriousbusiness.org/oauth2/v4/const.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/const.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/const.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go b/vendor/code.superseriousbusiness.org/oauth2/v4/doc.go similarity index 79% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/doc.go index 162b2fc06..cb579efda 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/doc.go @@ -3,9 +3,9 @@ // package main // import ( // "net/http" -// "codeberg.org/superseriousbusiness/oauth2/v4/manage" -// "codeberg.org/superseriousbusiness/oauth2/v4/server" -// "codeberg.org/superseriousbusiness/oauth2/v4/store" +// "code.superseriousbusiness.org/oauth2/v4/manage" +// "code.superseriousbusiness.org/oauth2/v4/server" +// "code.superseriousbusiness.org/oauth2/v4/store" // ) // func main() { // manager := manage.NewDefaultManager() diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/error.go b/vendor/code.superseriousbusiness.org/oauth2/v4/errors/error.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/error.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/errors/error.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/response.go b/vendor/code.superseriousbusiness.org/oauth2/v4/errors/response.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/response.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/errors/response.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generate.go b/vendor/code.superseriousbusiness.org/oauth2/v4/generate.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/generate.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/generate.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/access.go b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/access.go similarity index 95% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/access.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/generates/access.go index 83a2e72f3..972b5dce1 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/access.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/access.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" "github.com/google/uuid" ) diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/authorize.go b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/authorize.go similarity index 94% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/authorize.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/generates/authorize.go index b53b0cf7c..9d8f3fb45 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/authorize.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/authorize.go @@ -6,7 +6,7 @@ import ( "encoding/base64" "strings" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" "github.com/google/uuid" ) diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/jwt_access.go b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/jwt_access.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/jwt_access.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/generates/jwt_access.go index 9a621bd4b..57c2950f0 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/jwt_access.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/jwt_access.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" "github.com/golang-jwt/jwt" "github.com/google/uuid" ) diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/go.test.sh b/vendor/code.superseriousbusiness.org/oauth2/v4/go.test.sh similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/go.test.sh rename to vendor/code.superseriousbusiness.org/oauth2/v4/go.test.sh diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage.go b/vendor/code.superseriousbusiness.org/oauth2/v4/manage.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/manage.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/config.go b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/config.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/config.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/manage/config.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/manager.go b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/manager.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/manager.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/manage/manager.go index 8e73b6793..db9aba614 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/manager.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/manager.go @@ -4,10 +4,10 @@ import ( "context" "time" - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" - "codeberg.org/superseriousbusiness/oauth2/v4/generates" - "codeberg.org/superseriousbusiness/oauth2/v4/models" + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4/generates" + "code.superseriousbusiness.org/oauth2/v4/models" ) // NewDefaultManager create to default authorization management instance diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/util.go b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/util.go similarity index 91% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/util.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/manage/util.go index fd1146231..fc4c4b610 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/util.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/util.go @@ -4,7 +4,7 @@ import ( "net/url" "strings" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4/errors" ) type ( diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/model.go b/vendor/code.superseriousbusiness.org/oauth2/v4/model.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/model.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/model.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/client.go b/vendor/code.superseriousbusiness.org/oauth2/v4/models/client.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/client.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/models/client.go diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/token.go b/vendor/code.superseriousbusiness.org/oauth2/v4/models/token.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/token.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/models/token.go index d4cacc463..e14868e51 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/token.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/models/token.go @@ -3,7 +3,7 @@ package models import ( "time" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" ) // NewToken create to token model instance diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/config.go b/vendor/code.superseriousbusiness.org/oauth2/v4/server/config.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/config.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/server/config.go index 8d52bd231..7894f4003 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/config.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/server/config.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" ) // Config configuration parameters diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/handler.go b/vendor/code.superseriousbusiness.org/oauth2/v4/server/handler.go similarity index 96% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/handler.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/server/handler.go index 9fdb10c30..745716dc5 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/handler.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/server/handler.go @@ -4,8 +4,8 @@ import ( "net/http" "time" - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" ) type ( diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server.go b/vendor/code.superseriousbusiness.org/oauth2/v4/server/server.go similarity index 99% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/server/server.go index 109fe9199..82f6ff8c3 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/server/server.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" ) // NewDefaultServer create a default authorization server diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server_config.go b/vendor/code.superseriousbusiness.org/oauth2/v4/server/server_config.go similarity index 98% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server_config.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/server/server_config.go index e190630e9..4e8010196 100644 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server_config.go +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/server/server_config.go @@ -1,7 +1,7 @@ package server import ( - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" ) // SetTokenType token type diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/store.go b/vendor/code.superseriousbusiness.org/oauth2/v4/store.go similarity index 100% rename from vendor/codeberg.org/superseriousbusiness/oauth2/v4/store.go rename to vendor/code.superseriousbusiness.org/oauth2/v4/store.go diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go deleted file mode 100644 index 7441fa2db..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go +++ /dev/null @@ -1,422 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyaccuracy "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor" - propertyalsoknownas "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas" - propertyaltitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience" - propertybcc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc" - propertybto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto" - propertycc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc" - propertyclosed "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed" - propertycontent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content" - propertycontext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context" - propertycurrent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current" - propertydeleted "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes" - propertyduration "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration" - propertyendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints" - propertyendtime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first" - propertyfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following" - propertyformertype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator" - propertyheight "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height" - propertyhref "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href" - propertyhreflang "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon" - propertyimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image" - propertyinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument" - propertyitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items" - propertylast "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last" - propertylatitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude" - propertyliked "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked" - propertylikes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes" - propertylocation "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location" - propertylongitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype" - propertymovedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto" - propertyname "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name" - propertynext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next" - propertyobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object" - propertyoneof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox" - propertypartof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev" - propertypreview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview" - propertypublished "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published" - propertyradius "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius" - propertyrel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies" - propertyresult "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result" - propertysensitive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive" - propertysharedinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox" - propertyshares "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares" - propertysource "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source" - propertystartindex "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime" - propertystreams "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams" - propertysubject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject" - propertysummary "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary" - propertytag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag" - propertytarget "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target" - propertyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to" - propertytotalitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units" - propertyupdated "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated" - propertyurl "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url" - propertywidth "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width" - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always" - propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired" - propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby" - propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce" - propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike" - propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply" - propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy" - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value" - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable" - propertyfeatured "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured" - propertysignaturealgorithm "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount" - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - propertyowner "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem" - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" -) - -var mgr *Manager - -// init handles the 'magic' of creating a Manager and dependency-injecting it into -// every other code-generated package. This gives the implementations access -// to create any type needed to deserialize, without relying on the other -// specific concrete implementations. In order to replace a go-fed created -// type with your own, be sure to have the manager call your own -// implementation's deserialize functions instead of the built-in type. -// Finally, each implementation views the Manager as an interface with only a -// subset of funcitons available. This means this Manager implements the union -// of those interfaces. -func init() { - mgr = &Manager{} - propertyaccuracy.SetManager(mgr) - propertyactor.SetManager(mgr) - propertyalsoknownas.SetManager(mgr) - propertyaltitude.SetManager(mgr) - propertyanyof.SetManager(mgr) - propertyattachment.SetManager(mgr) - propertyattributedto.SetManager(mgr) - propertyaudience.SetManager(mgr) - propertybcc.SetManager(mgr) - propertybto.SetManager(mgr) - propertycc.SetManager(mgr) - propertyclosed.SetManager(mgr) - propertycontent.SetManager(mgr) - propertycontext.SetManager(mgr) - propertycurrent.SetManager(mgr) - propertydeleted.SetManager(mgr) - propertydescribes.SetManager(mgr) - propertyduration.SetManager(mgr) - propertyendpoints.SetManager(mgr) - propertyendtime.SetManager(mgr) - propertyfirst.SetManager(mgr) - propertyfollowers.SetManager(mgr) - propertyfollowing.SetManager(mgr) - propertyformertype.SetManager(mgr) - propertygenerator.SetManager(mgr) - propertyheight.SetManager(mgr) - propertyhref.SetManager(mgr) - propertyhreflang.SetManager(mgr) - propertyicon.SetManager(mgr) - propertyimage.SetManager(mgr) - propertyinbox.SetManager(mgr) - propertyinreplyto.SetManager(mgr) - propertyinstrument.SetManager(mgr) - propertyitems.SetManager(mgr) - propertylast.SetManager(mgr) - propertylatitude.SetManager(mgr) - propertyliked.SetManager(mgr) - propertylikes.SetManager(mgr) - propertylocation.SetManager(mgr) - propertylongitude.SetManager(mgr) - propertymanuallyapprovesfollowers.SetManager(mgr) - propertymediatype.SetManager(mgr) - propertymovedto.SetManager(mgr) - propertyname.SetManager(mgr) - propertynext.SetManager(mgr) - propertyobject.SetManager(mgr) - propertyoneof.SetManager(mgr) - propertyordereditems.SetManager(mgr) - propertyorigin.SetManager(mgr) - propertyoutbox.SetManager(mgr) - propertypartof.SetManager(mgr) - propertypreferredusername.SetManager(mgr) - propertyprev.SetManager(mgr) - propertypreview.SetManager(mgr) - propertypublished.SetManager(mgr) - propertyradius.SetManager(mgr) - propertyrel.SetManager(mgr) - propertyrelationship.SetManager(mgr) - propertyreplies.SetManager(mgr) - propertyresult.SetManager(mgr) - propertysensitive.SetManager(mgr) - propertysharedinbox.SetManager(mgr) - propertyshares.SetManager(mgr) - propertysource.SetManager(mgr) - propertystartindex.SetManager(mgr) - propertystarttime.SetManager(mgr) - propertystreams.SetManager(mgr) - propertysubject.SetManager(mgr) - propertysummary.SetManager(mgr) - propertytag.SetManager(mgr) - propertytarget.SetManager(mgr) - propertyto.SetManager(mgr) - propertytotalitems.SetManager(mgr) - propertyunits.SetManager(mgr) - propertyupdated.SetManager(mgr) - propertyurl.SetManager(mgr) - propertywidth.SetManager(mgr) - typeaccept.SetManager(mgr) - typeactivity.SetManager(mgr) - typeadd.SetManager(mgr) - typeannounce.SetManager(mgr) - typeapplication.SetManager(mgr) - typearrive.SetManager(mgr) - typearticle.SetManager(mgr) - typeaudio.SetManager(mgr) - typeblock.SetManager(mgr) - typecollection.SetManager(mgr) - typecollectionpage.SetManager(mgr) - typecreate.SetManager(mgr) - typedelete.SetManager(mgr) - typedislike.SetManager(mgr) - typedocument.SetManager(mgr) - typeendpoints.SetManager(mgr) - typeevent.SetManager(mgr) - typeflag.SetManager(mgr) - typefollow.SetManager(mgr) - typegroup.SetManager(mgr) - typeignore.SetManager(mgr) - typeimage.SetManager(mgr) - typeintransitiveactivity.SetManager(mgr) - typeinvite.SetManager(mgr) - typejoin.SetManager(mgr) - typeleave.SetManager(mgr) - typelike.SetManager(mgr) - typelink.SetManager(mgr) - typelisten.SetManager(mgr) - typemention.SetManager(mgr) - typemove.SetManager(mgr) - typenote.SetManager(mgr) - typeobject.SetManager(mgr) - typeoffer.SetManager(mgr) - typeorderedcollection.SetManager(mgr) - typeorderedcollectionpage.SetManager(mgr) - typeorganization.SetManager(mgr) - typepage.SetManager(mgr) - typeperson.SetManager(mgr) - typeplace.SetManager(mgr) - typeprofile.SetManager(mgr) - typequestion.SetManager(mgr) - typeread.SetManager(mgr) - typereject.SetManager(mgr) - typerelationship.SetManager(mgr) - typeremove.SetManager(mgr) - typeservice.SetManager(mgr) - typetentativeaccept.SetManager(mgr) - typetentativereject.SetManager(mgr) - typetombstone.SetManager(mgr) - typetravel.SetManager(mgr) - typeundo.SetManager(mgr) - typeupdate.SetManager(mgr) - typevideo.SetManager(mgr) - typeview.SetManager(mgr) - typealbum.SetManager(mgr) - typeartist.SetManager(mgr) - typelibrary.SetManager(mgr) - typetrack.SetManager(mgr) - propertyalways.SetManager(mgr) - propertyapprovalrequired.SetManager(mgr) - propertyapprovedby.SetManager(mgr) - propertycanannounce.SetManager(mgr) - propertycanlike.SetManager(mgr) - propertycanreply.SetManager(mgr) - propertyinteractionpolicy.SetManager(mgr) - typeannounceapproval.SetManager(mgr) - typecanannounce.SetManager(mgr) - typecanlike.SetManager(mgr) - typecanreply.SetManager(mgr) - typeinteractionpolicy.SetManager(mgr) - typelikeapproval.SetManager(mgr) - typereplyapproval.SetManager(mgr) - propertyvalue.SetManager(mgr) - typepropertyvalue.SetManager(mgr) - propertyblurhash.SetManager(mgr) - propertydiscoverable.SetManager(mgr) - propertyfeatured.SetManager(mgr) - propertysignaturealgorithm.SetManager(mgr) - propertysignaturevalue.SetManager(mgr) - propertyvoterscount.SetManager(mgr) - typeemoji.SetManager(mgr) - typehashtag.SetManager(mgr) - typeidentityproof.SetManager(mgr) - propertyowner.SetManager(mgr) - propertypublickey.SetManager(mgr) - propertypublickeypem.SetManager(mgr) - typepublickey.SetManager(mgr) - typeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeadd.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeapplication.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typearrive.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typearticle.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeaudio.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeblock.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecreate.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedelete.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedislike.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedocument.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeendpoints.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeevent.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeflag.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typefollow.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typegroup.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeignore.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeimage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeintransitiveactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeinvite.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typejoin.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeleave.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelike.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelink.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelisten.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typemention.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typemove.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typenote.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeobject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeoffer.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorderedcollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorderedcollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorganization.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeperson.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeplace.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeprofile.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typequestion.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeread.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typerelationship.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeremove.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeservice.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetentativeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetentativereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetombstone.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetravel.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeundo.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typealbum.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeartist.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelibrary.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetrack.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeannounceapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecanannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecanlike.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecanreply.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeinteractionpolicy.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelikeapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typereplyapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepropertyvalue.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typehashtag.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go deleted file mode 100644 index 37e71e219..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// GoToSocialAnnounceApprovalIsDisjointWith returns true if AnnounceApproval is -// disjoint with the other's type. -func GoToSocialAnnounceApprovalIsDisjointWith(other vocab.Type) bool { - return typeannounceapproval.AnnounceApprovalIsDisjointWith(other) -} - -// GoToSocialCanAnnounceIsDisjointWith returns true if CanAnnounce is disjoint -// with the other's type. -func GoToSocialCanAnnounceIsDisjointWith(other vocab.Type) bool { - return typecanannounce.CanAnnounceIsDisjointWith(other) -} - -// GoToSocialCanLikeIsDisjointWith returns true if CanLike is disjoint with the -// other's type. -func GoToSocialCanLikeIsDisjointWith(other vocab.Type) bool { - return typecanlike.CanLikeIsDisjointWith(other) -} - -// GoToSocialCanReplyIsDisjointWith returns true if CanReply is disjoint with the -// other's type. -func GoToSocialCanReplyIsDisjointWith(other vocab.Type) bool { - return typecanreply.CanReplyIsDisjointWith(other) -} - -// GoToSocialInteractionPolicyIsDisjointWith returns true if InteractionPolicy is -// disjoint with the other's type. -func GoToSocialInteractionPolicyIsDisjointWith(other vocab.Type) bool { - return typeinteractionpolicy.InteractionPolicyIsDisjointWith(other) -} - -// GoToSocialLikeApprovalIsDisjointWith returns true if LikeApproval is disjoint -// with the other's type. -func GoToSocialLikeApprovalIsDisjointWith(other vocab.Type) bool { - return typelikeapproval.LikeApprovalIsDisjointWith(other) -} - -// GoToSocialReplyApprovalIsDisjointWith returns true if ReplyApproval is disjoint -// with the other's type. -func GoToSocialReplyApprovalIsDisjointWith(other vocab.Type) bool { - return typereplyapproval.ReplyApprovalIsDisjointWith(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go deleted file mode 100644 index 0c17ac630..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// GoToSocialAnnounceApprovalIsExtendedBy returns true if the other's type extends -// from AnnounceApproval. Note that it returns false if the types are the -// same; see the "IsOrExtends" variant instead. -func GoToSocialAnnounceApprovalIsExtendedBy(other vocab.Type) bool { - return typeannounceapproval.AnnounceApprovalIsExtendedBy(other) -} - -// GoToSocialCanAnnounceIsExtendedBy returns true if the other's type extends from -// CanAnnounce. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func GoToSocialCanAnnounceIsExtendedBy(other vocab.Type) bool { - return typecanannounce.CanAnnounceIsExtendedBy(other) -} - -// GoToSocialCanLikeIsExtendedBy returns true if the other's type extends from -// CanLike. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func GoToSocialCanLikeIsExtendedBy(other vocab.Type) bool { - return typecanlike.CanLikeIsExtendedBy(other) -} - -// GoToSocialCanReplyIsExtendedBy returns true if the other's type extends from -// CanReply. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func GoToSocialCanReplyIsExtendedBy(other vocab.Type) bool { - return typecanreply.CanReplyIsExtendedBy(other) -} - -// GoToSocialInteractionPolicyIsExtendedBy returns true if the other's type -// extends from InteractionPolicy. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func GoToSocialInteractionPolicyIsExtendedBy(other vocab.Type) bool { - return typeinteractionpolicy.InteractionPolicyIsExtendedBy(other) -} - -// GoToSocialLikeApprovalIsExtendedBy returns true if the other's type extends -// from LikeApproval. Note that it returns false if the types are the same; -// see the "IsOrExtends" variant instead. -func GoToSocialLikeApprovalIsExtendedBy(other vocab.Type) bool { - return typelikeapproval.LikeApprovalIsExtendedBy(other) -} - -// GoToSocialReplyApprovalIsExtendedBy returns true if the other's type extends -// from ReplyApproval. Note that it returns false if the types are the same; -// see the "IsOrExtends" variant instead. -func GoToSocialReplyApprovalIsExtendedBy(other vocab.Type) bool { - return typereplyapproval.ReplyApprovalIsExtendedBy(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go deleted file mode 100644 index 2de5b8fe5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// GoToSocialGoToSocialAnnounceApprovalExtends returns true if AnnounceApproval -// extends from the other's type. -func GoToSocialGoToSocialAnnounceApprovalExtends(other vocab.Type) bool { - return typeannounceapproval.GoToSocialAnnounceApprovalExtends(other) -} - -// GoToSocialGoToSocialCanAnnounceExtends returns true if CanAnnounce extends from -// the other's type. -func GoToSocialGoToSocialCanAnnounceExtends(other vocab.Type) bool { - return typecanannounce.GoToSocialCanAnnounceExtends(other) -} - -// GoToSocialGoToSocialCanLikeExtends returns true if CanLike extends from the -// other's type. -func GoToSocialGoToSocialCanLikeExtends(other vocab.Type) bool { - return typecanlike.GoToSocialCanLikeExtends(other) -} - -// GoToSocialGoToSocialCanReplyExtends returns true if CanReply extends from the -// other's type. -func GoToSocialGoToSocialCanReplyExtends(other vocab.Type) bool { - return typecanreply.GoToSocialCanReplyExtends(other) -} - -// GoToSocialGoToSocialInteractionPolicyExtends returns true if InteractionPolicy -// extends from the other's type. -func GoToSocialGoToSocialInteractionPolicyExtends(other vocab.Type) bool { - return typeinteractionpolicy.GoToSocialInteractionPolicyExtends(other) -} - -// GoToSocialGoToSocialLikeApprovalExtends returns true if LikeApproval extends -// from the other's type. -func GoToSocialGoToSocialLikeApprovalExtends(other vocab.Type) bool { - return typelikeapproval.GoToSocialLikeApprovalExtends(other) -} - -// GoToSocialGoToSocialReplyApprovalExtends returns true if ReplyApproval extends -// from the other's type. -func GoToSocialGoToSocialReplyApprovalExtends(other vocab.Type) bool { - return typereplyapproval.GoToSocialReplyApprovalExtends(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_isorextends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_isorextends.go deleted file mode 100644 index e6c455f8f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_isorextends.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// IsOrExtendsGoToSocialAnnounceApproval returns true if the other provided type -// is the AnnounceApproval type or extends from the AnnounceApproval type. -func IsOrExtendsGoToSocialAnnounceApproval(other vocab.Type) bool { - return typeannounceapproval.IsOrExtendsAnnounceApproval(other) -} - -// IsOrExtendsGoToSocialCanAnnounce returns true if the other provided type is the -// CanAnnounce type or extends from the CanAnnounce type. -func IsOrExtendsGoToSocialCanAnnounce(other vocab.Type) bool { - return typecanannounce.IsOrExtendsCanAnnounce(other) -} - -// IsOrExtendsGoToSocialCanLike returns true if the other provided type is the -// CanLike type or extends from the CanLike type. -func IsOrExtendsGoToSocialCanLike(other vocab.Type) bool { - return typecanlike.IsOrExtendsCanLike(other) -} - -// IsOrExtendsGoToSocialCanReply returns true if the other provided type is the -// CanReply type or extends from the CanReply type. -func IsOrExtendsGoToSocialCanReply(other vocab.Type) bool { - return typecanreply.IsOrExtendsCanReply(other) -} - -// IsOrExtendsGoToSocialInteractionPolicy returns true if the other provided type -// is the InteractionPolicy type or extends from the InteractionPolicy type. -func IsOrExtendsGoToSocialInteractionPolicy(other vocab.Type) bool { - return typeinteractionpolicy.IsOrExtendsInteractionPolicy(other) -} - -// IsOrExtendsGoToSocialLikeApproval returns true if the other provided type is -// the LikeApproval type or extends from the LikeApproval type. -func IsOrExtendsGoToSocialLikeApproval(other vocab.Type) bool { - return typelikeapproval.IsOrExtendsLikeApproval(other) -} - -// IsOrExtendsGoToSocialReplyApproval returns true if the other provided type is -// the ReplyApproval type or extends from the ReplyApproval type. -func IsOrExtendsGoToSocialReplyApproval(other vocab.Type) bool { - return typereplyapproval.IsOrExtendsReplyApproval(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_property_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_property_constructors.go deleted file mode 100644 index 566b16c47..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_property_constructors.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always" - propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired" - propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby" - propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce" - propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike" - propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply" - propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewGoToSocialGoToSocialAlwaysProperty creates a new GoToSocialAlwaysProperty -func NewGoToSocialAlwaysProperty() vocab.GoToSocialAlwaysProperty { - return propertyalways.NewGoToSocialAlwaysProperty() -} - -// NewGoToSocialGoToSocialApprovalRequiredProperty creates a new -// GoToSocialApprovalRequiredProperty -func NewGoToSocialApprovalRequiredProperty() vocab.GoToSocialApprovalRequiredProperty { - return propertyapprovalrequired.NewGoToSocialApprovalRequiredProperty() -} - -// NewGoToSocialGoToSocialApprovedByProperty creates a new -// GoToSocialApprovedByProperty -func NewGoToSocialApprovedByProperty() vocab.GoToSocialApprovedByProperty { - return propertyapprovedby.NewGoToSocialApprovedByProperty() -} - -// NewGoToSocialGoToSocialCanAnnounceProperty creates a new -// GoToSocialCanAnnounceProperty -func NewGoToSocialCanAnnounceProperty() vocab.GoToSocialCanAnnounceProperty { - return propertycanannounce.NewGoToSocialCanAnnounceProperty() -} - -// NewGoToSocialGoToSocialCanLikeProperty creates a new GoToSocialCanLikeProperty -func NewGoToSocialCanLikeProperty() vocab.GoToSocialCanLikeProperty { - return propertycanlike.NewGoToSocialCanLikeProperty() -} - -// NewGoToSocialGoToSocialCanReplyProperty creates a new GoToSocialCanReplyProperty -func NewGoToSocialCanReplyProperty() vocab.GoToSocialCanReplyProperty { - return propertycanreply.NewGoToSocialCanReplyProperty() -} - -// NewGoToSocialGoToSocialInteractionPolicyProperty creates a new -// GoToSocialInteractionPolicyProperty -func NewGoToSocialInteractionPolicyProperty() vocab.GoToSocialInteractionPolicyProperty { - return propertyinteractionpolicy.NewGoToSocialInteractionPolicyProperty() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_type_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_type_constructors.go deleted file mode 100644 index e6418d666..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_type_constructors.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewGoToSocialAnnounceApproval creates a new GoToSocialAnnounceApproval -func NewGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return typeannounceapproval.NewGoToSocialAnnounceApproval() -} - -// NewGoToSocialCanAnnounce creates a new GoToSocialCanAnnounce -func NewGoToSocialCanAnnounce() vocab.GoToSocialCanAnnounce { - return typecanannounce.NewGoToSocialCanAnnounce() -} - -// NewGoToSocialCanLike creates a new GoToSocialCanLike -func NewGoToSocialCanLike() vocab.GoToSocialCanLike { - return typecanlike.NewGoToSocialCanLike() -} - -// NewGoToSocialCanReply creates a new GoToSocialCanReply -func NewGoToSocialCanReply() vocab.GoToSocialCanReply { - return typecanreply.NewGoToSocialCanReply() -} - -// NewGoToSocialInteractionPolicy creates a new GoToSocialInteractionPolicy -func NewGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicy { - return typeinteractionpolicy.NewGoToSocialInteractionPolicy() -} - -// NewGoToSocialLikeApproval creates a new GoToSocialLikeApproval -func NewGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return typelikeapproval.NewGoToSocialLikeApproval() -} - -// NewGoToSocialReplyApproval creates a new GoToSocialReplyApproval -func NewGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return typereplyapproval.NewGoToSocialReplyApproval() -} diff --git a/vendor/github.com/gin-contrib/cors/.golangci.yml b/vendor/github.com/gin-contrib/cors/.golangci.yml index 67edf0ac8..47094ac61 100644 --- a/vendor/github.com/gin-contrib/cors/.golangci.yml +++ b/vendor/github.com/gin-contrib/cors/.golangci.yml @@ -1,7 +1,6 @@ +version: "2" linters: - enable-all: false - disable-all: true - fast: false + default: none enable: - bodyclose - dogsled @@ -12,11 +11,8 @@ linters: - goconst - gocritic - gocyclo - - gofmt - - goimports - goprintffuncname - gosec - - gosimple - govet - ineffassign - lll @@ -26,13 +22,29 @@ linters: - nolintlint - rowserrcheck - staticcheck - - stylecheck - - typecheck - unconvert - unparam - unused - whitespace + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofmt - gofumpt - -run: - timeout: 3m + - goimports + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ diff --git a/vendor/github.com/go-fed/httpsig/LICENSE b/vendor/github.com/go-fed/httpsig/LICENSE deleted file mode 100644 index a9e8aefad..000000000 --- a/vendor/github.com/go-fed/httpsig/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2018, go-fed -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/go-fed/httpsig/README.md b/vendor/github.com/go-fed/httpsig/README.md deleted file mode 100644 index 3b8385400..000000000 --- a/vendor/github.com/go-fed/httpsig/README.md +++ /dev/null @@ -1,94 +0,0 @@ -# httpsig - -`go get github.com/go-fed/httpsig` - -Implementation of [HTTP Signatures](https://tools.ietf.org/html/draft-cavage-http-signatures). - -Supports many different combinations of MAC, HMAC signing of hash, or RSA -signing of hash schemes. Its goals are: - -* Have a very simple interface for signing and validating -* Support a variety of signing algorithms and combinations -* Support setting either headers (`Authorization` or `Signature`) -* Remaining flexible with headers included in the signing string -* Support both HTTP requests and responses -* Explicitly not support known-cryptographically weak algorithms -* Support automatic signing and validating Digest headers - -## How to use - -`import "github.com/go-fed/httpsig"` - -### Signing - -Signing a request or response requires creating a new `Signer` and using it: - -``` -func sign(privateKey crypto.PrivateKey, pubKeyId string, r *http.Request) error { - prefs := []httpsig.Algorithm{httpsig.RSA_SHA512, httpsig.RSA_SHA256} - digestAlgorithm := DigestSha256 - // The "Date" and "Digest" headers must already be set on r, as well as r.URL. - headersToSign := []string{httpsig.RequestTarget, "date", "digest"} - signer, chosenAlgo, err := httpsig.NewSigner(prefs, digestAlgorithm, headersToSign, httpsig.Signature) - if err != nil { - return err - } - // To sign the digest, we need to give the signer a copy of the body... - // ...but it is optional, no digest will be signed if given "nil" - body := ... - // If r were a http.ResponseWriter, call SignResponse instead. - return signer.SignRequest(privateKey, pubKeyId, r, body) -} -``` - -`Signer`s are not safe for concurrent use by goroutines, so be sure to guard -access: - -``` -type server struct { - signer httpsig.Signer - mu *sync.Mutex -} - -func (s *server) handlerFunc(w http.ResponseWriter, r *http.Request) { - privateKey := ... - pubKeyId := ... - // Set headers and such on w - s.mu.Lock() - defer s.mu.Unlock() - // To sign the digest, we need to give the signer a copy of the response body... - // ...but it is optional, no digest will be signed if given "nil" - body := ... - err := s.signer.SignResponse(privateKey, pubKeyId, w, body) - if err != nil { - ... - } - ... -} -``` - -The `pubKeyId` will be used at verification time. - -### Verifying - -Verifying requires an application to use the `pubKeyId` to both retrieve the key -needed for verification as well as determine the algorithm to use. Use a -`Verifier`: - -``` -func verify(r *http.Request) error { - verifier, err := httpsig.NewVerifier(r) - if err != nil { - return err - } - pubKeyId := verifier.KeyId() - var algo httpsig.Algorithm = ... - var pubKey crypto.PublicKey = ... - // The verifier will verify the Digest in addition to the HTTP signature - return verifier.Verify(pubKey, algo) -} -``` - -`Verifier`s are not safe for concurrent use by goroutines, but since they are -constructed on a per-request or per-response basis it should not be a common -restriction. diff --git a/vendor/github.com/go-fed/httpsig/algorithms.go b/vendor/github.com/go-fed/httpsig/algorithms.go deleted file mode 100644 index 9595941be..000000000 --- a/vendor/github.com/go-fed/httpsig/algorithms.go +++ /dev/null @@ -1,532 +0,0 @@ -package httpsig - -import ( - "crypto" - "crypto/ecdsa" - "crypto/hmac" - "crypto/rsa" - "crypto/sha1" - "crypto/sha256" - "crypto/sha512" - "crypto/subtle" // Use should trigger great care - "encoding/asn1" - "errors" - "fmt" - "hash" - "io" - "math/big" - "strings" - - "golang.org/x/crypto/blake2b" - "golang.org/x/crypto/blake2s" - "golang.org/x/crypto/ed25519" - "golang.org/x/crypto/ripemd160" - "golang.org/x/crypto/sha3" - "golang.org/x/crypto/ssh" -) - -const ( - hmacPrefix = "hmac" - rsaPrefix = "rsa" - sshPrefix = "ssh" - ecdsaPrefix = "ecdsa" - ed25519Prefix = "ed25519" - md4String = "md4" - md5String = "md5" - sha1String = "sha1" - sha224String = "sha224" - sha256String = "sha256" - sha384String = "sha384" - sha512String = "sha512" - md5sha1String = "md5sha1" - ripemd160String = "ripemd160" - sha3_224String = "sha3-224" - sha3_256String = "sha3-256" - sha3_384String = "sha3-384" - sha3_512String = "sha3-512" - sha512_224String = "sha512-224" - sha512_256String = "sha512-256" - blake2s_256String = "blake2s-256" - blake2b_256String = "blake2b-256" - blake2b_384String = "blake2b-384" - blake2b_512String = "blake2b-512" -) - -var blake2Algorithms = map[crypto.Hash]bool{ - crypto.BLAKE2s_256: true, - crypto.BLAKE2b_256: true, - crypto.BLAKE2b_384: true, - crypto.BLAKE2b_512: true, -} - -var hashToDef = map[crypto.Hash]struct { - name string - new func(key []byte) (hash.Hash, error) // Only MACers will accept a key -}{ - // Which standard names these? - // The spec lists the following as a canonical reference, which is dead: - // http://www.iana.org/assignments/signature-algorithms - // - // Note that the forbidden hashes have an invalid 'new' function. - crypto.MD4: {md4String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - crypto.MD5: {md5String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - // Temporarily enable SHA1 because of issue https://github.com/golang/go/issues/37278 - crypto.SHA1: {sha1String, func(key []byte) (hash.Hash, error) { return sha1.New(), nil }}, - crypto.SHA224: {sha224String, func(key []byte) (hash.Hash, error) { return sha256.New224(), nil }}, - crypto.SHA256: {sha256String, func(key []byte) (hash.Hash, error) { return sha256.New(), nil }}, - crypto.SHA384: {sha384String, func(key []byte) (hash.Hash, error) { return sha512.New384(), nil }}, - crypto.SHA512: {sha512String, func(key []byte) (hash.Hash, error) { return sha512.New(), nil }}, - crypto.MD5SHA1: {md5sha1String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - crypto.RIPEMD160: {ripemd160String, func(key []byte) (hash.Hash, error) { return ripemd160.New(), nil }}, - crypto.SHA3_224: {sha3_224String, func(key []byte) (hash.Hash, error) { return sha3.New224(), nil }}, - crypto.SHA3_256: {sha3_256String, func(key []byte) (hash.Hash, error) { return sha3.New256(), nil }}, - crypto.SHA3_384: {sha3_384String, func(key []byte) (hash.Hash, error) { return sha3.New384(), nil }}, - crypto.SHA3_512: {sha3_512String, func(key []byte) (hash.Hash, error) { return sha3.New512(), nil }}, - crypto.SHA512_224: {sha512_224String, func(key []byte) (hash.Hash, error) { return sha512.New512_224(), nil }}, - crypto.SHA512_256: {sha512_256String, func(key []byte) (hash.Hash, error) { return sha512.New512_256(), nil }}, - crypto.BLAKE2s_256: {blake2s_256String, func(key []byte) (hash.Hash, error) { return blake2s.New256(key) }}, - crypto.BLAKE2b_256: {blake2b_256String, func(key []byte) (hash.Hash, error) { return blake2b.New256(key) }}, - crypto.BLAKE2b_384: {blake2b_384String, func(key []byte) (hash.Hash, error) { return blake2b.New384(key) }}, - crypto.BLAKE2b_512: {blake2b_512String, func(key []byte) (hash.Hash, error) { return blake2b.New512(key) }}, -} - -var stringToHash map[string]crypto.Hash - -const ( - defaultAlgorithm = RSA_SHA256 - defaultAlgorithmHashing = sha256String -) - -func init() { - stringToHash = make(map[string]crypto.Hash, len(hashToDef)) - for k, v := range hashToDef { - stringToHash[v.name] = k - } - // This should guarantee that at runtime the defaultAlgorithm will not - // result in errors when fetching a macer or signer (see algorithms.go) - if ok, err := isAvailable(string(defaultAlgorithmHashing)); err != nil { - panic(err) - } else if !ok { - panic(fmt.Sprintf("the default httpsig algorithm is unavailable: %q", defaultAlgorithm)) - } -} - -func isForbiddenHash(h crypto.Hash) bool { - switch h { - // Not actually cryptographically secure - case crypto.MD4: - fallthrough - case crypto.MD5: - fallthrough - case crypto.MD5SHA1: // shorthand for crypto/tls, not actually implemented - return true - } - // Still cryptographically secure - return false -} - -// signer is an internally public type. -type signer interface { - Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) - Verify(pub crypto.PublicKey, toHash, signature []byte) error - String() string -} - -// macer is an internally public type. -type macer interface { - Sign(sig, key []byte) ([]byte, error) - Equal(sig, actualMAC, key []byte) (bool, error) - String() string -} - -var _ macer = &hmacAlgorithm{} - -type hmacAlgorithm struct { - fn func(key []byte) (hash.Hash, error) - kind crypto.Hash -} - -func (h *hmacAlgorithm) Sign(sig, key []byte) ([]byte, error) { - hs, err := h.fn(key) - if err = setSig(hs, sig); err != nil { - return nil, err - } - return hs.Sum(nil), nil -} - -func (h *hmacAlgorithm) Equal(sig, actualMAC, key []byte) (bool, error) { - hs, err := h.fn(key) - if err != nil { - return false, err - } - defer hs.Reset() - err = setSig(hs, sig) - if err != nil { - return false, err - } - expected := hs.Sum(nil) - return hmac.Equal(actualMAC, expected), nil -} - -func (h *hmacAlgorithm) String() string { - return fmt.Sprintf("%s-%s", hmacPrefix, hashToDef[h.kind].name) -} - -var _ signer = &rsaAlgorithm{} - -type rsaAlgorithm struct { - hash.Hash - kind crypto.Hash - sshSigner ssh.Signer -} - -func (r *rsaAlgorithm) setSig(b []byte) error { - n, err := r.Write(b) - if err != nil { - r.Reset() - return err - } else if n != len(b) { - r.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -func (r *rsaAlgorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - if r.sshSigner != nil { - sshsig, err := r.sshSigner.Sign(rand, sig) - if err != nil { - return nil, err - } - - return sshsig.Blob, nil - } - defer r.Reset() - - if err := r.setSig(sig); err != nil { - return nil, err - } - rsaK, ok := p.(*rsa.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not *rsa.PrivateKey") - } - return rsa.SignPKCS1v15(rand, rsaK, r.kind, r.Sum(nil)) -} - -func (r *rsaAlgorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - defer r.Reset() - rsaK, ok := pub.(*rsa.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not *rsa.PublicKey") - } - if err := r.setSig(toHash); err != nil { - return err - } - return rsa.VerifyPKCS1v15(rsaK, r.kind, r.Sum(nil), signature) -} - -func (r *rsaAlgorithm) String() string { - return fmt.Sprintf("%s-%s", rsaPrefix, hashToDef[r.kind].name) -} - -var _ signer = &ed25519Algorithm{} - -type ed25519Algorithm struct { - sshSigner ssh.Signer -} - -func (r *ed25519Algorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - if r.sshSigner != nil { - sshsig, err := r.sshSigner.Sign(rand, sig) - if err != nil { - return nil, err - } - - return sshsig.Blob, nil - } - ed25519K, ok := p.(ed25519.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not ed25519.PrivateKey") - } - return ed25519.Sign(ed25519K, sig), nil -} - -func (r *ed25519Algorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - ed25519K, ok := pub.(ed25519.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not ed25519.PublicKey") - } - - if ed25519.Verify(ed25519K, toHash, signature) { - return nil - } - - return errors.New("ed25519 verify failed") -} - -func (r *ed25519Algorithm) String() string { - return fmt.Sprintf("%s", ed25519Prefix) -} - -var _ signer = &ecdsaAlgorithm{} - -type ecdsaAlgorithm struct { - hash.Hash - kind crypto.Hash -} - -func (r *ecdsaAlgorithm) setSig(b []byte) error { - n, err := r.Write(b) - if err != nil { - r.Reset() - return err - } else if n != len(b) { - r.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -type ECDSASignature struct { - R, S *big.Int -} - -func (r *ecdsaAlgorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - defer r.Reset() - if err := r.setSig(sig); err != nil { - return nil, err - } - ecdsaK, ok := p.(*ecdsa.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not *ecdsa.PrivateKey") - } - R, S, err := ecdsa.Sign(rand, ecdsaK, r.Sum(nil)) - if err != nil { - return nil, err - } - - signature := ECDSASignature{R: R, S: S} - bytes, err := asn1.Marshal(signature) - - return bytes, err -} - -func (r *ecdsaAlgorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - defer r.Reset() - ecdsaK, ok := pub.(*ecdsa.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not *ecdsa.PublicKey") - } - if err := r.setSig(toHash); err != nil { - return err - } - - sig := new(ECDSASignature) - _, err := asn1.Unmarshal(signature, sig) - if err != nil { - return err - } - - if ecdsa.Verify(ecdsaK, r.Sum(nil), sig.R, sig.S) { - return nil - } else { - return errors.New("Invalid signature") - } -} - -func (r *ecdsaAlgorithm) String() string { - return fmt.Sprintf("%s-%s", ecdsaPrefix, hashToDef[r.kind].name) -} - -var _ macer = &blakeMacAlgorithm{} - -type blakeMacAlgorithm struct { - fn func(key []byte) (hash.Hash, error) - kind crypto.Hash -} - -func (r *blakeMacAlgorithm) Sign(sig, key []byte) ([]byte, error) { - hs, err := r.fn(key) - if err != nil { - return nil, err - } - if err = setSig(hs, sig); err != nil { - return nil, err - } - return hs.Sum(nil), nil -} - -func (r *blakeMacAlgorithm) Equal(sig, actualMAC, key []byte) (bool, error) { - hs, err := r.fn(key) - if err != nil { - return false, err - } - defer hs.Reset() - err = setSig(hs, sig) - if err != nil { - return false, err - } - expected := hs.Sum(nil) - return subtle.ConstantTimeCompare(actualMAC, expected) == 1, nil -} - -func (r *blakeMacAlgorithm) String() string { - return fmt.Sprintf("%s", hashToDef[r.kind].name) -} - -func setSig(a hash.Hash, b []byte) error { - n, err := a.Write(b) - if err != nil { - a.Reset() - return err - } else if n != len(b) { - a.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -// IsSupportedHttpSigAlgorithm returns true if the string is supported by this -// library, is not a hash known to be weak, and is supported by the hardware. -func IsSupportedHttpSigAlgorithm(algo string) bool { - a, err := isAvailable(algo) - return a && err == nil -} - -// isAvailable is an internally public function -func isAvailable(algo string) (bool, error) { - c, ok := stringToHash[algo] - if !ok { - return false, fmt.Errorf("no match for %q", algo) - } - if isForbiddenHash(c) { - return false, fmt.Errorf("forbidden hash type in %q", algo) - } - return c.Available(), nil -} - -func newAlgorithmConstructor(algo string) (fn func(k []byte) (hash.Hash, error), c crypto.Hash, e error) { - ok := false - c, ok = stringToHash[algo] - if !ok { - e = fmt.Errorf("no match for %q", algo) - return - } - if isForbiddenHash(c) { - e = fmt.Errorf("forbidden hash type in %q", algo) - return - } - algoDef, ok := hashToDef[c] - if !ok { - e = fmt.Errorf("have crypto.Hash %v but no definition", c) - return - } - fn = func(key []byte) (hash.Hash, error) { - h, err := algoDef.new(key) - if err != nil { - return nil, err - } - return h, nil - } - return -} - -func newAlgorithm(algo string, key []byte) (hash.Hash, crypto.Hash, error) { - fn, c, err := newAlgorithmConstructor(algo) - if err != nil { - return nil, c, err - } - h, err := fn(key) - return h, c, err -} - -func signerFromSSHSigner(sshSigner ssh.Signer, s string) (signer, error) { - switch { - case strings.HasPrefix(s, rsaPrefix): - return &rsaAlgorithm{ - sshSigner: sshSigner, - }, nil - case strings.HasPrefix(s, ed25519Prefix): - return &ed25519Algorithm{ - sshSigner: sshSigner, - }, nil - default: - return nil, fmt.Errorf("no signer matching %q", s) - } -} - -// signerFromString is an internally public method constructor -func signerFromString(s string) (signer, error) { - s = strings.ToLower(s) - isEcdsa := false - isEd25519 := false - var algo string = "" - if strings.HasPrefix(s, ecdsaPrefix) { - algo = strings.TrimPrefix(s, ecdsaPrefix+"-") - isEcdsa = true - } else if strings.HasPrefix(s, rsaPrefix) { - algo = strings.TrimPrefix(s, rsaPrefix+"-") - } else if strings.HasPrefix(s, ed25519Prefix) { - isEd25519 = true - algo = "sha512" - } else { - return nil, fmt.Errorf("no signer matching %q", s) - } - hash, cHash, err := newAlgorithm(algo, nil) - if err != nil { - return nil, err - } - if isEd25519 { - return &ed25519Algorithm{}, nil - } - if isEcdsa { - return &ecdsaAlgorithm{ - Hash: hash, - kind: cHash, - }, nil - } - return &rsaAlgorithm{ - Hash: hash, - kind: cHash, - }, nil -} - -// macerFromString is an internally public method constructor -func macerFromString(s string) (macer, error) { - s = strings.ToLower(s) - if strings.HasPrefix(s, hmacPrefix) { - algo := strings.TrimPrefix(s, hmacPrefix+"-") - hashFn, cHash, err := newAlgorithmConstructor(algo) - if err != nil { - return nil, err - } - // Ensure below does not panic - _, err = hashFn(nil) - if err != nil { - return nil, err - } - return &hmacAlgorithm{ - fn: func(key []byte) (hash.Hash, error) { - return hmac.New(func() hash.Hash { - h, e := hashFn(nil) - if e != nil { - panic(e) - } - return h - }, key), nil - }, - kind: cHash, - }, nil - } else if bl, ok := stringToHash[s]; ok && blake2Algorithms[bl] { - hashFn, cHash, err := newAlgorithmConstructor(s) - if err != nil { - return nil, err - } - return &blakeMacAlgorithm{ - fn: hashFn, - kind: cHash, - }, nil - } else { - return nil, fmt.Errorf("no MACer matching %q", s) - } -} diff --git a/vendor/github.com/go-fed/httpsig/digest.go b/vendor/github.com/go-fed/httpsig/digest.go deleted file mode 100644 index bf9e3a914..000000000 --- a/vendor/github.com/go-fed/httpsig/digest.go +++ /dev/null @@ -1,120 +0,0 @@ -package httpsig - -import ( - "bytes" - "crypto" - "encoding/base64" - "fmt" - "hash" - "net/http" - "strings" -) - -type DigestAlgorithm string - -const ( - DigestSha256 DigestAlgorithm = "SHA-256" - DigestSha512 = "SHA-512" -) - -var digestToDef = map[DigestAlgorithm]crypto.Hash{ - DigestSha256: crypto.SHA256, - DigestSha512: crypto.SHA512, -} - -// IsSupportedDigestAlgorithm returns true if hte string is supported by this -// library, is not a hash known to be weak, and is supported by the hardware. -func IsSupportedDigestAlgorithm(algo string) bool { - uc := DigestAlgorithm(strings.ToUpper(algo)) - c, ok := digestToDef[uc] - return ok && c.Available() -} - -func getHash(alg DigestAlgorithm) (h hash.Hash, toUse DigestAlgorithm, err error) { - upper := DigestAlgorithm(strings.ToUpper(string(alg))) - c, ok := digestToDef[upper] - if !ok { - err = fmt.Errorf("unknown or unsupported Digest algorithm: %s", alg) - } else if !c.Available() { - err = fmt.Errorf("unavailable Digest algorithm: %s", alg) - } else { - h = c.New() - toUse = upper - } - return -} - -const ( - digestHeader = "Digest" - digestDelim = "=" -) - -func addDigest(r *http.Request, algo DigestAlgorithm, b []byte) (err error) { - _, ok := r.Header[digestHeader] - if ok { - err = fmt.Errorf("cannot add Digest: Digest is already set") - return - } - var h hash.Hash - var a DigestAlgorithm - h, a, err = getHash(algo) - if err != nil { - return - } - h.Write(b) - sum := h.Sum(nil) - r.Header.Add(digestHeader, - fmt.Sprintf("%s%s%s", - a, - digestDelim, - base64.StdEncoding.EncodeToString(sum[:]))) - return -} - -func addDigestResponse(r http.ResponseWriter, algo DigestAlgorithm, b []byte) (err error) { - _, ok := r.Header()[digestHeader] - if ok { - err = fmt.Errorf("cannot add Digest: Digest is already set") - return - } - var h hash.Hash - var a DigestAlgorithm - h, a, err = getHash(algo) - if err != nil { - return - } - h.Write(b) - sum := h.Sum(nil) - r.Header().Add(digestHeader, - fmt.Sprintf("%s%s%s", - a, - digestDelim, - base64.StdEncoding.EncodeToString(sum[:]))) - return -} - -func verifyDigest(r *http.Request, body *bytes.Buffer) (err error) { - d := r.Header.Get(digestHeader) - if len(d) == 0 { - err = fmt.Errorf("cannot verify Digest: request has no Digest header") - return - } - elem := strings.SplitN(d, digestDelim, 2) - if len(elem) != 2 { - err = fmt.Errorf("cannot verify Digest: malformed Digest: %s", d) - return - } - var h hash.Hash - h, _, err = getHash(DigestAlgorithm(elem[0])) - if err != nil { - return - } - h.Write(body.Bytes()) - sum := h.Sum(nil) - encSum := base64.StdEncoding.EncodeToString(sum[:]) - if encSum != elem[1] { - err = fmt.Errorf("cannot verify Digest: header Digest does not match the digest of the request body") - return - } - return -} diff --git a/vendor/github.com/go-fed/httpsig/httpsig.go b/vendor/github.com/go-fed/httpsig/httpsig.go deleted file mode 100644 index 1a6b95463..000000000 --- a/vendor/github.com/go-fed/httpsig/httpsig.go +++ /dev/null @@ -1,361 +0,0 @@ -// Implements HTTP request and response signing and verification. Supports the -// major MAC and asymmetric key signature algorithms. It has several safety -// restrictions: One, none of the widely known non-cryptographically safe -// algorithms are permitted; Two, the RSA SHA256 algorithms must be available in -// the binary (and it should, barring export restrictions); Finally, the library -// assumes either the 'Authorizationn' or 'Signature' headers are to be set (but -// not both). -package httpsig - -import ( - "crypto" - "fmt" - "net/http" - "strings" - "time" - - "golang.org/x/crypto/ssh" -) - -// Algorithm specifies a cryptography secure algorithm for signing HTTP requests -// and responses. -type Algorithm string - -const ( - // MAC-based algoirthms. - HMAC_SHA224 Algorithm = hmacPrefix + "-" + sha224String - HMAC_SHA256 Algorithm = hmacPrefix + "-" + sha256String - HMAC_SHA384 Algorithm = hmacPrefix + "-" + sha384String - HMAC_SHA512 Algorithm = hmacPrefix + "-" + sha512String - HMAC_RIPEMD160 Algorithm = hmacPrefix + "-" + ripemd160String - HMAC_SHA3_224 Algorithm = hmacPrefix + "-" + sha3_224String - HMAC_SHA3_256 Algorithm = hmacPrefix + "-" + sha3_256String - HMAC_SHA3_384 Algorithm = hmacPrefix + "-" + sha3_384String - HMAC_SHA3_512 Algorithm = hmacPrefix + "-" + sha3_512String - HMAC_SHA512_224 Algorithm = hmacPrefix + "-" + sha512_224String - HMAC_SHA512_256 Algorithm = hmacPrefix + "-" + sha512_256String - HMAC_BLAKE2S_256 Algorithm = hmacPrefix + "-" + blake2s_256String - HMAC_BLAKE2B_256 Algorithm = hmacPrefix + "-" + blake2b_256String - HMAC_BLAKE2B_384 Algorithm = hmacPrefix + "-" + blake2b_384String - HMAC_BLAKE2B_512 Algorithm = hmacPrefix + "-" + blake2b_512String - BLAKE2S_256 Algorithm = blake2s_256String - BLAKE2B_256 Algorithm = blake2b_256String - BLAKE2B_384 Algorithm = blake2b_384String - BLAKE2B_512 Algorithm = blake2b_512String - // RSA-based algorithms. - RSA_SHA1 Algorithm = rsaPrefix + "-" + sha1String - RSA_SHA224 Algorithm = rsaPrefix + "-" + sha224String - // RSA_SHA256 is the default algorithm. - RSA_SHA256 Algorithm = rsaPrefix + "-" + sha256String - RSA_SHA384 Algorithm = rsaPrefix + "-" + sha384String - RSA_SHA512 Algorithm = rsaPrefix + "-" + sha512String - RSA_RIPEMD160 Algorithm = rsaPrefix + "-" + ripemd160String - // ECDSA algorithms - ECDSA_SHA224 Algorithm = ecdsaPrefix + "-" + sha224String - ECDSA_SHA256 Algorithm = ecdsaPrefix + "-" + sha256String - ECDSA_SHA384 Algorithm = ecdsaPrefix + "-" + sha384String - ECDSA_SHA512 Algorithm = ecdsaPrefix + "-" + sha512String - ECDSA_RIPEMD160 Algorithm = ecdsaPrefix + "-" + ripemd160String - // ED25519 algorithms - // can only be SHA512 - ED25519 Algorithm = ed25519Prefix - - // Just because you can glue things together, doesn't mean they will - // work. The following options are not supported. - rsa_SHA3_224 Algorithm = rsaPrefix + "-" + sha3_224String - rsa_SHA3_256 Algorithm = rsaPrefix + "-" + sha3_256String - rsa_SHA3_384 Algorithm = rsaPrefix + "-" + sha3_384String - rsa_SHA3_512 Algorithm = rsaPrefix + "-" + sha3_512String - rsa_SHA512_224 Algorithm = rsaPrefix + "-" + sha512_224String - rsa_SHA512_256 Algorithm = rsaPrefix + "-" + sha512_256String - rsa_BLAKE2S_256 Algorithm = rsaPrefix + "-" + blake2s_256String - rsa_BLAKE2B_256 Algorithm = rsaPrefix + "-" + blake2b_256String - rsa_BLAKE2B_384 Algorithm = rsaPrefix + "-" + blake2b_384String - rsa_BLAKE2B_512 Algorithm = rsaPrefix + "-" + blake2b_512String -) - -// HTTP Signatures can be applied to different HTTP headers, depending on the -// expected application behavior. -type SignatureScheme string - -const ( - // Signature will place the HTTP Signature into the 'Signature' HTTP - // header. - Signature SignatureScheme = "Signature" - // Authorization will place the HTTP Signature into the 'Authorization' - // HTTP header. - Authorization SignatureScheme = "Authorization" -) - -const ( - // The HTTP Signatures specification uses the "Signature" auth-scheme - // for the Authorization header. This is coincidentally named, but not - // semantically the same, as the "Signature" HTTP header value. - signatureAuthScheme = "Signature" -) - -// There are subtle differences to the values in the header. The Authorization -// header has an 'auth-scheme' value that must be prefixed to the rest of the -// key and values. -func (s SignatureScheme) authScheme() string { - switch s { - case Authorization: - return signatureAuthScheme - default: - return "" - } -} - -// Signers will sign HTTP requests or responses based on the algorithms and -// headers selected at creation time. -// -// Signers are not safe to use between multiple goroutines. -// -// Note that signatures do set the deprecated 'algorithm' parameter for -// backwards compatibility. -type Signer interface { - // SignRequest signs the request using a private key. The public key id - // is used by the HTTP server to identify which key to use to verify the - // signature. - // - // If the Signer was created using a MAC based algorithm, then the key - // is expected to be of type []byte. If the Signer was created using an - // RSA based algorithm, then the private key is expected to be of type - // *rsa.PrivateKey. - // - // A Digest (RFC 3230) will be added to the request. The body provided - // must match the body used in the request, and is allowed to be nil. - // The Digest ensures the request body is not tampered with in flight, - // and if the signer is created to also sign the "Digest" header, the - // HTTP Signature will then ensure both the Digest and body are not both - // modified to maliciously represent different content. - SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error - // SignResponse signs the response using a private key. The public key - // id is used by the HTTP client to identify which key to use to verify - // the signature. - // - // If the Signer was created using a MAC based algorithm, then the key - // is expected to be of type []byte. If the Signer was created using an - // RSA based algorithm, then the private key is expected to be of type - // *rsa.PrivateKey. - // - // A Digest (RFC 3230) will be added to the response. The body provided - // must match the body written in the response, and is allowed to be - // nil. The Digest ensures the response body is not tampered with in - // flight, and if the signer is created to also sign the "Digest" - // header, the HTTP Signature will then ensure both the Digest and body - // are not both modified to maliciously represent different content. - SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error -} - -// NewSigner creates a new Signer with the provided algorithm preferences to -// make HTTP signatures. Only the first available algorithm will be used, which -// is returned by this function along with the Signer. If none of the preferred -// algorithms were available, then the default algorithm is used. The headers -// specified will be included into the HTTP signatures. -// -// The Digest will also be calculated on a request's body using the provided -// digest algorithm, if "Digest" is one of the headers listed. -// -// The provided scheme determines which header is populated with the HTTP -// Signature. -// -// An error is returned if an unknown or a known cryptographically insecure -// Algorithm is provided. -func NewSigner(prefs []Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (Signer, Algorithm, error) { - for _, pref := range prefs { - s, err := newSigner(pref, dAlgo, headers, scheme, expiresIn) - if err != nil { - continue - } - return s, pref, err - } - s, err := newSigner(defaultAlgorithm, dAlgo, headers, scheme, expiresIn) - return s, defaultAlgorithm, err -} - -// Signers will sign HTTP requests or responses based on the algorithms and -// headers selected at creation time. -// -// Signers are not safe to use between multiple goroutines. -// -// Note that signatures do set the deprecated 'algorithm' parameter for -// backwards compatibility. -type SSHSigner interface { - // SignRequest signs the request using ssh.Signer. - // The public key id is used by the HTTP server to identify which key to use - // to verify the signature. - // - // A Digest (RFC 3230) will be added to the request. The body provided - // must match the body used in the request, and is allowed to be nil. - // The Digest ensures the request body is not tampered with in flight, - // and if the signer is created to also sign the "Digest" header, the - // HTTP Signature will then ensure both the Digest and body are not both - // modified to maliciously represent different content. - SignRequest(pubKeyId string, r *http.Request, body []byte) error - // SignResponse signs the response using ssh.Signer. The public key - // id is used by the HTTP client to identify which key to use to verify - // the signature. - // - // A Digest (RFC 3230) will be added to the response. The body provided - // must match the body written in the response, and is allowed to be - // nil. The Digest ensures the response body is not tampered with in - // flight, and if the signer is created to also sign the "Digest" - // header, the HTTP Signature will then ensure both the Digest and body - // are not both modified to maliciously represent different content. - SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error -} - -// NewwSSHSigner creates a new Signer using the specified ssh.Signer -// At the moment only ed25519 ssh keys are supported. -// The headers specified will be included into the HTTP signatures. -// -// The Digest will also be calculated on a request's body using the provided -// digest algorithm, if "Digest" is one of the headers listed. -// -// The provided scheme determines which header is populated with the HTTP -// Signature. -func NewSSHSigner(s ssh.Signer, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SSHSigner, Algorithm, error) { - sshAlgo := getSSHAlgorithm(s.PublicKey().Type()) - if sshAlgo == "" { - return nil, "", fmt.Errorf("key type: %s not supported yet.", s.PublicKey().Type()) - } - - signer, err := newSSHSigner(s, sshAlgo, dAlgo, headers, scheme, expiresIn) - if err != nil { - return nil, "", err - } - - return signer, sshAlgo, nil -} - -func getSSHAlgorithm(pkType string) Algorithm { - switch { - case strings.HasPrefix(pkType, sshPrefix+"-"+ed25519Prefix): - return ED25519 - case strings.HasPrefix(pkType, sshPrefix+"-"+rsaPrefix): - return RSA_SHA1 - } - - return "" -} - -// Verifier verifies HTTP Signatures. -// -// It will determine which of the supported headers has the parameters -// that define the signature. -// -// Verifiers are not safe to use between multiple goroutines. -// -// Note that verification ignores the deprecated 'algorithm' parameter. -type Verifier interface { - // KeyId gets the public key id that the signature is signed with. - // - // Note that the application is expected to determine the algorithm - // used based on metadata or out-of-band information for this key id. - KeyId() string - // Verify accepts the public key specified by KeyId and returns an - // error if verification fails or if the signature is malformed. The - // algorithm must be the one used to create the signature in order to - // pass verification. The algorithm is determined based on metadata or - // out-of-band information for the key id. - // - // If the signature was created using a MAC based algorithm, then the - // key is expected to be of type []byte. If the signature was created - // using an RSA based algorithm, then the public key is expected to be - // of type *rsa.PublicKey. - Verify(pKey crypto.PublicKey, algo Algorithm) error -} - -const ( - // host is treated specially because golang may not include it in the - // request header map on the server side of a request. - hostHeader = "Host" -) - -// NewVerifier verifies the given request. It returns an error if the HTTP -// Signature parameters are not present in any headers, are present in more than -// one header, are malformed, or are missing required parameters. It ignores -// unknown HTTP Signature parameters. -func NewVerifier(r *http.Request) (Verifier, error) { - h := r.Header - if _, hasHostHeader := h[hostHeader]; len(r.Host) > 0 && !hasHostHeader { - h[hostHeader] = []string{r.Host} - } - return newVerifier(h, func(h http.Header, toInclude []string, created int64, expires int64) (string, error) { - return signatureString(h, toInclude, addRequestTarget(r), created, expires) - }) -} - -// NewResponseVerifier verifies the given response. It returns errors under the -// same conditions as NewVerifier. -func NewResponseVerifier(r *http.Response) (Verifier, error) { - return newVerifier(r.Header, func(h http.Header, toInclude []string, created int64, expires int64) (string, error) { - return signatureString(h, toInclude, requestTargetNotPermitted, created, expires) - }) -} - -func newSSHSigner(sshSigner ssh.Signer, algo Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SSHSigner, error) { - var expires, created int64 = 0, 0 - - if expiresIn != 0 { - created = time.Now().Unix() - expires = created + expiresIn - } - - s, err := signerFromSSHSigner(sshSigner, string(algo)) - if err != nil { - return nil, fmt.Errorf("no crypto implementation available for ssh algo %q", algo) - } - - a := &asymmSSHSigner{ - asymmSigner: &asymmSigner{ - s: s, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - }, - } - - return a, nil -} - -func newSigner(algo Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (Signer, error) { - - var expires, created int64 = 0, 0 - if expiresIn != 0 { - created = time.Now().Unix() - expires = created + expiresIn - } - - s, err := signerFromString(string(algo)) - if err == nil { - a := &asymmSigner{ - s: s, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - } - return a, nil - } - m, err := macerFromString(string(algo)) - if err != nil { - return nil, fmt.Errorf("no crypto implementation available for %q", algo) - } - c := &macSigner{ - m: m, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - } - return c, nil -} diff --git a/vendor/github.com/go-fed/httpsig/signing.go b/vendor/github.com/go-fed/httpsig/signing.go deleted file mode 100644 index e18db41cb..000000000 --- a/vendor/github.com/go-fed/httpsig/signing.go +++ /dev/null @@ -1,334 +0,0 @@ -package httpsig - -import ( - "bytes" - "crypto" - "crypto/rand" - "encoding/base64" - "fmt" - "net/http" - "net/textproto" - "strconv" - "strings" -) - -const ( - // Signature Parameters - keyIdParameter = "keyId" - algorithmParameter = "algorithm" - headersParameter = "headers" - signatureParameter = "signature" - prefixSeparater = " " - parameterKVSeparater = "=" - parameterValueDelimiter = "\"" - parameterSeparater = "," - headerParameterValueDelim = " " - // RequestTarget specifies to include the http request method and - // entire URI in the signature. Pass it as a header to NewSigner. - RequestTarget = "(request-target)" - createdKey = "created" - expiresKey = "expires" - dateHeader = "date" - - // Signature String Construction - headerFieldDelimiter = ": " - headersDelimiter = "\n" - headerValueDelimiter = ", " - requestTargetSeparator = " " -) - -var defaultHeaders = []string{dateHeader} - -var _ Signer = &macSigner{} - -type macSigner struct { - m macer - makeDigest bool - dAlgo DigestAlgorithm - headers []string - targetHeader SignatureScheme - prefix string - created int64 - expires int64 -} - -func (m *macSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error { - if body != nil { - err := addDigest(r, m.dAlgo, body) - if err != nil { - return err - } - } - s, err := m.signatureString(r) - if err != nil { - return err - } - enc, err := m.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header, string(m.targetHeader), m.prefix, pubKeyId, m.m.String(), enc, m.headers, m.created, m.expires) - return nil -} - -func (m *macSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error { - if body != nil { - err := addDigestResponse(r, m.dAlgo, body) - if err != nil { - return err - } - } - s, err := m.signatureStringResponse(r) - if err != nil { - return err - } - enc, err := m.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header(), string(m.targetHeader), m.prefix, pubKeyId, m.m.String(), enc, m.headers, m.created, m.expires) - return nil -} - -func (m *macSigner) signSignature(pKey crypto.PrivateKey, s string) (string, error) { - pKeyBytes, ok := pKey.([]byte) - if !ok { - return "", fmt.Errorf("private key for MAC signing must be of type []byte") - } - sig, err := m.m.Sign([]byte(s), pKeyBytes) - if err != nil { - return "", err - } - enc := base64.StdEncoding.EncodeToString(sig) - return enc, nil -} - -func (m *macSigner) signatureString(r *http.Request) (string, error) { - return signatureString(r.Header, m.headers, addRequestTarget(r), m.created, m.expires) -} - -func (m *macSigner) signatureStringResponse(r http.ResponseWriter) (string, error) { - return signatureString(r.Header(), m.headers, requestTargetNotPermitted, m.created, m.expires) -} - -var _ Signer = &asymmSigner{} - -type asymmSigner struct { - s signer - makeDigest bool - dAlgo DigestAlgorithm - headers []string - targetHeader SignatureScheme - prefix string - created int64 - expires int64 -} - -func (a *asymmSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error { - if body != nil { - err := addDigest(r, a.dAlgo, body) - if err != nil { - return err - } - } - s, err := a.signatureString(r) - if err != nil { - return err - } - enc, err := a.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header, string(a.targetHeader), a.prefix, pubKeyId, a.s.String(), enc, a.headers, a.created, a.expires) - return nil -} - -func (a *asymmSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error { - if body != nil { - err := addDigestResponse(r, a.dAlgo, body) - if err != nil { - return err - } - } - s, err := a.signatureStringResponse(r) - if err != nil { - return err - } - enc, err := a.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header(), string(a.targetHeader), a.prefix, pubKeyId, a.s.String(), enc, a.headers, a.created, a.expires) - return nil -} - -func (a *asymmSigner) signSignature(pKey crypto.PrivateKey, s string) (string, error) { - sig, err := a.s.Sign(rand.Reader, pKey, []byte(s)) - if err != nil { - return "", err - } - enc := base64.StdEncoding.EncodeToString(sig) - return enc, nil -} - -func (a *asymmSigner) signatureString(r *http.Request) (string, error) { - return signatureString(r.Header, a.headers, addRequestTarget(r), a.created, a.expires) -} - -func (a *asymmSigner) signatureStringResponse(r http.ResponseWriter) (string, error) { - return signatureString(r.Header(), a.headers, requestTargetNotPermitted, a.created, a.expires) -} - -var _ SSHSigner = &asymmSSHSigner{} - -type asymmSSHSigner struct { - *asymmSigner -} - -func (a *asymmSSHSigner) SignRequest(pubKeyId string, r *http.Request, body []byte) error { - return a.asymmSigner.SignRequest(nil, pubKeyId, r, body) -} - -func (a *asymmSSHSigner) SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error { - return a.asymmSigner.SignResponse(nil, pubKeyId, r, body) -} - -func setSignatureHeader(h http.Header, targetHeader, prefix, pubKeyId, algo, enc string, headers []string, created int64, expires int64) { - if len(headers) == 0 { - headers = defaultHeaders - } - var b bytes.Buffer - // KeyId - b.WriteString(prefix) - if len(prefix) > 0 { - b.WriteString(prefixSeparater) - } - b.WriteString(keyIdParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString(pubKeyId) - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - // Algorithm - b.WriteString(algorithmParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString("hs2019") //real algorithm is hidden, see newest version of spec draft - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - - hasCreated := false - hasExpires := false - for _, h := range headers { - val := strings.ToLower(h) - if val == "("+createdKey+")" { - hasCreated = true - } else if val == "("+expiresKey+")" { - hasExpires = true - } - } - - // Created - if hasCreated == true { - b.WriteString(createdKey) - b.WriteString(parameterKVSeparater) - b.WriteString(strconv.FormatInt(created, 10)) - b.WriteString(parameterSeparater) - } - - // Expires - if hasExpires == true { - b.WriteString(expiresKey) - b.WriteString(parameterKVSeparater) - b.WriteString(strconv.FormatInt(expires, 10)) - b.WriteString(parameterSeparater) - } - - // Headers - b.WriteString(headersParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - for i, h := range headers { - b.WriteString(strings.ToLower(h)) - if i != len(headers)-1 { - b.WriteString(headerParameterValueDelim) - } - } - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - // Signature - b.WriteString(signatureParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString(enc) - b.WriteString(parameterValueDelimiter) - h.Add(targetHeader, b.String()) -} - -func requestTargetNotPermitted(b *bytes.Buffer) error { - return fmt.Errorf("cannot sign with %q on anything other than an http request", RequestTarget) -} - -func addRequestTarget(r *http.Request) func(b *bytes.Buffer) error { - return func(b *bytes.Buffer) error { - b.WriteString(RequestTarget) - b.WriteString(headerFieldDelimiter) - b.WriteString(strings.ToLower(r.Method)) - b.WriteString(requestTargetSeparator) - b.WriteString(r.URL.Path) - - if r.URL.RawQuery != "" { - b.WriteString("?") - b.WriteString(r.URL.RawQuery) - } - - return nil - } -} - -func signatureString(values http.Header, include []string, requestTargetFn func(b *bytes.Buffer) error, created int64, expires int64) (string, error) { - if len(include) == 0 { - include = defaultHeaders - } - var b bytes.Buffer - for n, i := range include { - i := strings.ToLower(i) - if i == RequestTarget { - err := requestTargetFn(&b) - if err != nil { - return "", err - } - } else if i == "("+expiresKey+")" { - if expires == 0 { - return "", fmt.Errorf("missing expires value") - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - b.WriteString(strconv.FormatInt(expires, 10)) - } else if i == "("+createdKey+")" { - if created == 0 { - return "", fmt.Errorf("missing created value") - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - b.WriteString(strconv.FormatInt(created, 10)) - } else { - hv, ok := values[textproto.CanonicalMIMEHeaderKey(i)] - if !ok { - return "", fmt.Errorf("missing header %q", i) - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - for i, v := range hv { - b.WriteString(strings.TrimSpace(v)) - if i < len(hv)-1 { - b.WriteString(headerValueDelimiter) - } - } - } - if n < len(include)-1 { - b.WriteString(headersDelimiter) - } - } - return b.String(), nil -} diff --git a/vendor/github.com/go-fed/httpsig/verifying.go b/vendor/github.com/go-fed/httpsig/verifying.go deleted file mode 100644 index 6d8df02ce..000000000 --- a/vendor/github.com/go-fed/httpsig/verifying.go +++ /dev/null @@ -1,184 +0,0 @@ -package httpsig - -import ( - "crypto" - "encoding/base64" - "errors" - "fmt" - "net/http" - "strconv" - "strings" - "time" -) - -var _ Verifier = &verifier{} - -type verifier struct { - header http.Header - kId string - signature string - created int64 - expires int64 - headers []string - sigStringFn func(http.Header, []string, int64, int64) (string, error) -} - -func newVerifier(h http.Header, sigStringFn func(http.Header, []string, int64, int64) (string, error)) (*verifier, error) { - scheme, s, err := getSignatureScheme(h) - if err != nil { - return nil, err - } - kId, sig, headers, created, expires, err := getSignatureComponents(scheme, s) - if created != 0 { - //check if created is not in the future, we assume a maximum clock offset of 10 seconds - now := time.Now().Unix() - if created-now > 10 { - return nil, errors.New("created is in the future") - } - } - if expires != 0 { - //check if expires is in the past, we assume a maximum clock offset of 10 seconds - now := time.Now().Unix() - if now-expires > 10 { - return nil, errors.New("signature expired") - } - } - if err != nil { - return nil, err - } - return &verifier{ - header: h, - kId: kId, - signature: sig, - created: created, - expires: expires, - headers: headers, - sigStringFn: sigStringFn, - }, nil -} - -func (v *verifier) KeyId() string { - return v.kId -} - -func (v *verifier) Verify(pKey crypto.PublicKey, algo Algorithm) error { - s, err := signerFromString(string(algo)) - if err == nil { - return v.asymmVerify(s, pKey) - } - m, err := macerFromString(string(algo)) - if err == nil { - return v.macVerify(m, pKey) - } - return fmt.Errorf("no crypto implementation available for %q", algo) -} - -func (v *verifier) macVerify(m macer, pKey crypto.PublicKey) error { - key, ok := pKey.([]byte) - if !ok { - return fmt.Errorf("public key for MAC verifying must be of type []byte") - } - signature, err := v.sigStringFn(v.header, v.headers, v.created, v.expires) - if err != nil { - return err - } - actualMAC, err := base64.StdEncoding.DecodeString(v.signature) - if err != nil { - return err - } - ok, err = m.Equal([]byte(signature), actualMAC, key) - if err != nil { - return err - } else if !ok { - return fmt.Errorf("invalid http signature") - } - return nil -} - -func (v *verifier) asymmVerify(s signer, pKey crypto.PublicKey) error { - toHash, err := v.sigStringFn(v.header, v.headers, v.created, v.expires) - if err != nil { - return err - } - signature, err := base64.StdEncoding.DecodeString(v.signature) - if err != nil { - return err - } - err = s.Verify(pKey, []byte(toHash), signature) - if err != nil { - return err - } - return nil -} - -func getSignatureScheme(h http.Header) (scheme SignatureScheme, val string, err error) { - s := h.Get(string(Signature)) - sigHasAll := strings.Contains(s, keyIdParameter) || - strings.Contains(s, headersParameter) || - strings.Contains(s, signatureParameter) - a := h.Get(string(Authorization)) - authHasAll := strings.Contains(a, keyIdParameter) || - strings.Contains(a, headersParameter) || - strings.Contains(a, signatureParameter) - if sigHasAll && authHasAll { - err = fmt.Errorf("both %q and %q have signature parameters", Signature, Authorization) - return - } else if !sigHasAll && !authHasAll { - err = fmt.Errorf("neither %q nor %q have signature parameters", Signature, Authorization) - return - } else if sigHasAll { - val = s - scheme = Signature - return - } else { // authHasAll - val = a - scheme = Authorization - return - } -} - -func getSignatureComponents(scheme SignatureScheme, s string) (kId, sig string, headers []string, created int64, expires int64, err error) { - if as := scheme.authScheme(); len(as) > 0 { - s = strings.TrimPrefix(s, as+prefixSeparater) - } - params := strings.Split(s, parameterSeparater) - for _, p := range params { - kv := strings.SplitN(p, parameterKVSeparater, 2) - if len(kv) != 2 { - err = fmt.Errorf("malformed http signature parameter: %v", kv) - return - } - k := kv[0] - v := strings.Trim(kv[1], parameterValueDelimiter) - switch k { - case keyIdParameter: - kId = v - case createdKey: - created, err = strconv.ParseInt(v, 10, 64) - if err != nil { - return - } - case expiresKey: - expires, err = strconv.ParseInt(v, 10, 64) - if err != nil { - return - } - case algorithmParameter: - // Deprecated, ignore - case headersParameter: - headers = strings.Split(v, headerParameterValueDelim) - case signatureParameter: - sig = v - default: - // Ignore unrecognized parameters - } - } - if len(kId) == 0 { - err = fmt.Errorf("missing %q parameter in http signature", keyIdParameter) - } else if len(sig) == 0 { - err = fmt.Errorf("missing %q parameter in http signature", signatureParameter) - } else if len(headers) == 0 { // Optional - headers = defaultHeaders - } - return -} diff --git a/vendor/github.com/minio/minio-go/v7/api-append-object.go b/vendor/github.com/minio/minio-go/v7/api-append-object.go new file mode 100644 index 000000000..fca08c373 --- /dev/null +++ b/vendor/github.com/minio/minio-go/v7/api-append-object.go @@ -0,0 +1,226 @@ +/* + * MinIO Go Library for Amazon S3 Compatible Cloud Storage + * Copyright 2015-2025 MinIO, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package minio + +import ( + "bytes" + "context" + "errors" + "fmt" + "io" + "net/http" + "strconv" + + "github.com/minio/minio-go/v7/pkg/s3utils" +) + +// AppendObjectOptions https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-append.html +type AppendObjectOptions struct { + // Provide a progress reader to indicate the current append() progress. + Progress io.Reader + // ChunkSize indicates the maximum append() size, + // it is useful when you want to control how much data + // per append() you are interested in sending to server + // while keeping the input io.Reader of a longer length. + ChunkSize uint64 + // Aggressively disable sha256 payload, it is automatically + // turned-off for TLS supporting endpoints, useful in benchmarks + // where you are interested in the peak() numbers. + DisableContentSha256 bool + + customHeaders http.Header + checksumType ChecksumType +} + +// Header returns the custom header for AppendObject API +func (opts AppendObjectOptions) Header() (header http.Header) { + header = make(http.Header) + for k, v := range opts.customHeaders { + header[k] = v + } + return header +} + +func (opts *AppendObjectOptions) setWriteOffset(offset int64) { + if len(opts.customHeaders) == 0 { + opts.customHeaders = make(http.Header) + } + opts.customHeaders["x-amz-write-offset-bytes"] = []string{strconv.FormatInt(offset, 10)} +} + +func (opts *AppendObjectOptions) setChecksumParams(info ObjectInfo) { + if len(opts.customHeaders) == 0 { + opts.customHeaders = make(http.Header) + } + fullObject := info.ChecksumMode == ChecksumFullObjectMode.String() + switch { + case info.ChecksumCRC32 != "": + if fullObject { + opts.checksumType = ChecksumFullObjectCRC32 + } + case info.ChecksumCRC32C != "": + if fullObject { + opts.checksumType = ChecksumFullObjectCRC32C + } + case info.ChecksumCRC64NVME != "": + // CRC64NVME only has a full object variant + // so it does not carry any special full object + // modifier + opts.checksumType = ChecksumCRC64NVME + } +} + +func (opts AppendObjectOptions) validate(c *Client) (err error) { + if opts.ChunkSize > maxPartSize { + return errInvalidArgument("Append chunkSize cannot be larger than max part size allowed") + } + switch { + case !c.trailingHeaderSupport: + return errInvalidArgument("AppendObject() requires Client with TrailingHeaders enabled") + case c.overrideSignerType.IsV2(): + return errInvalidArgument("AppendObject() cannot be used with v2 signatures") + case s3utils.IsGoogleEndpoint(*c.endpointURL): + return errInvalidArgument("AppendObject() cannot be used with GCS endpoints") + } + + return nil +} + +// appendObjectDo - executes the append object http operation. +// NOTE: You must have WRITE permissions on a bucket to add an object to it. +func (c *Client) appendObjectDo(ctx context.Context, bucketName, objectName string, reader io.Reader, size int64, opts AppendObjectOptions) (UploadInfo, error) { + // Input validation. + if err := s3utils.CheckValidBucketName(bucketName); err != nil { + return UploadInfo{}, err + } + if err := s3utils.CheckValidObjectName(objectName); err != nil { + return UploadInfo{}, err + } + + // Set headers. + customHeader := opts.Header() + + // Populate request metadata. + reqMetadata := requestMetadata{ + bucketName: bucketName, + objectName: objectName, + customHeader: customHeader, + contentBody: reader, + contentLength: size, + streamSha256: !opts.DisableContentSha256, + } + + if opts.checksumType.IsSet() { + reqMetadata.addCrc = &opts.checksumType + } + + // Execute PUT an objectName. + resp, err := c.executeMethod(ctx, http.MethodPut, reqMetadata) + defer closeResponse(resp) + if err != nil { + return UploadInfo{}, err + } + if resp != nil { + if resp.StatusCode != http.StatusOK { + return UploadInfo{}, httpRespToErrorResponse(resp, bucketName, objectName) + } + } + + h := resp.Header + + // When AppendObject() is used, S3 Express will return final object size as x-amz-object-size + if amzSize := h.Get("x-amz-object-size"); amzSize != "" { + size, err = strconv.ParseInt(amzSize, 10, 64) + if err != nil { + return UploadInfo{}, err + } + } + + return UploadInfo{ + Bucket: bucketName, + Key: objectName, + ETag: trimEtag(h.Get("ETag")), + Size: size, + + // Checksum values + ChecksumCRC32: h.Get(ChecksumCRC32.Key()), + ChecksumCRC32C: h.Get(ChecksumCRC32C.Key()), + ChecksumSHA1: h.Get(ChecksumSHA1.Key()), + ChecksumSHA256: h.Get(ChecksumSHA256.Key()), + ChecksumCRC64NVME: h.Get(ChecksumCRC64NVME.Key()), + ChecksumMode: h.Get(ChecksumFullObjectMode.Key()), + }, nil +} + +// AppendObject - S3 Express Zone https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-append.html +func (c *Client) AppendObject(ctx context.Context, bucketName, objectName string, reader io.Reader, objectSize int64, + opts AppendObjectOptions, +) (info UploadInfo, err error) { + if objectSize < 0 && opts.ChunkSize == 0 { + return UploadInfo{}, errors.New("object size must be provided when no chunk size is provided") + } + + if err = opts.validate(c); err != nil { + return UploadInfo{}, err + } + + oinfo, err := c.StatObject(ctx, bucketName, objectName, StatObjectOptions{Checksum: true}) + if err != nil { + return UploadInfo{}, err + } + if oinfo.ChecksumMode != ChecksumFullObjectMode.String() { + return UploadInfo{}, fmt.Errorf("append API is not allowed on objects that are not full_object checksum type: %s", oinfo.ChecksumMode) + } + opts.setChecksumParams(oinfo) // set the appropriate checksum params based on the existing object checksum metadata. + opts.setWriteOffset(oinfo.Size) // First append must set the current object size as the offset. + + if opts.ChunkSize > 0 { + finalObjSize := int64(-1) + if objectSize > 0 { + finalObjSize = info.Size + objectSize + } + totalPartsCount, partSize, lastPartSize, err := OptimalPartInfo(finalObjSize, opts.ChunkSize) + if err != nil { + return UploadInfo{}, err + } + buf := make([]byte, partSize) + var partNumber int + for partNumber = 1; partNumber <= totalPartsCount; partNumber++ { + // Proceed to upload the part. + if partNumber == totalPartsCount { + partSize = lastPartSize + } + n, err := readFull(reader, buf) + if err != nil { + return info, err + } + if n != int(partSize) { + return info, io.ErrUnexpectedEOF + } + rd := newHook(bytes.NewReader(buf[:n]), opts.Progress) + uinfo, err := c.appendObjectDo(ctx, bucketName, objectName, rd, partSize, opts) + if err != nil { + return info, err + } + opts.setWriteOffset(uinfo.Size) + } + } + + rd := newHook(reader, opts.Progress) + return c.appendObjectDo(ctx, bucketName, objectName, rd, objectSize, opts) +} diff --git a/vendor/github.com/minio/minio-go/v7/api-bucket-notification.go b/vendor/github.com/minio/minio-go/v7/api-bucket-notification.go index 33811b98f..b1e5b0aae 100644 --- a/vendor/github.com/minio/minio-go/v7/api-bucket-notification.go +++ b/vendor/github.com/minio/minio-go/v7/api-bucket-notification.go @@ -157,13 +157,6 @@ func (c *Client) ListenBucketNotification(ctx context.Context, bucketName, prefi return } - // Continuously run and listen on bucket notification. - // Create a done channel to control 'ListObjects' go routine. - retryDoneCh := make(chan struct{}, 1) - - // Indicate to our routine to exit cleanly upon return. - defer close(retryDoneCh) - // Prepare urlValues to pass into the request on every loop urlValues := make(url.Values) urlValues.Set("ping", "10") @@ -172,7 +165,7 @@ func (c *Client) ListenBucketNotification(ctx context.Context, bucketName, prefi urlValues["events"] = events // Wait on the jitter retry loop. - for range c.newRetryTimerContinous(time.Second, time.Second*30, MaxJitter, retryDoneCh) { + for range c.newRetryTimerContinous(time.Second, time.Second*30, MaxJitter) { // Execute GET on bucket to list objects. resp, err := c.executeMethod(ctx, http.MethodGet, requestMetadata{ bucketName: bucketName, diff --git a/vendor/github.com/minio/minio-go/v7/api-datatypes.go b/vendor/github.com/minio/minio-go/v7/api-datatypes.go index 2118c7c77..39ff9d27c 100644 --- a/vendor/github.com/minio/minio-go/v7/api-datatypes.go +++ b/vendor/github.com/minio/minio-go/v7/api-datatypes.go @@ -148,6 +148,7 @@ type UploadInfo struct { ChecksumSHA1 string ChecksumSHA256 string ChecksumCRC64NVME string + ChecksumMode string } // RestoreInfo contains information of the restore operation of an archived object @@ -223,6 +224,7 @@ type ObjectInfo struct { ChecksumSHA1 string ChecksumSHA256 string ChecksumCRC64NVME string + ChecksumMode string Internal *struct { K int // Data blocks diff --git a/vendor/github.com/minio/minio-go/v7/api-put-object-multipart.go b/vendor/github.com/minio/minio-go/v7/api-put-object-multipart.go index 03bd34f76..84bc19b28 100644 --- a/vendor/github.com/minio/minio-go/v7/api-put-object-multipart.go +++ b/vendor/github.com/minio/minio-go/v7/api-put-object-multipart.go @@ -457,5 +457,6 @@ func (c *Client) completeMultipartUpload(ctx context.Context, bucketName, object ChecksumCRC32: completeMultipartUploadResult.ChecksumCRC32, ChecksumCRC32C: completeMultipartUploadResult.ChecksumCRC32C, ChecksumCRC64NVME: completeMultipartUploadResult.ChecksumCRC64NVME, + ChecksumMode: completeMultipartUploadResult.ChecksumType, }, nil } diff --git a/vendor/github.com/minio/minio-go/v7/api-put-object-streaming.go b/vendor/github.com/minio/minio-go/v7/api-put-object-streaming.go index 82c0ae9e4..987a3c692 100644 --- a/vendor/github.com/minio/minio-go/v7/api-put-object-streaming.go +++ b/vendor/github.com/minio/minio-go/v7/api-put-object-streaming.go @@ -805,5 +805,6 @@ func (c *Client) putObjectDo(ctx context.Context, bucketName, objectName string, ChecksumSHA1: h.Get(ChecksumSHA1.Key()), ChecksumSHA256: h.Get(ChecksumSHA256.Key()), ChecksumCRC64NVME: h.Get(ChecksumCRC64NVME.Key()), + ChecksumMode: h.Get(ChecksumFullObjectMode.Key()), }, nil } diff --git a/vendor/github.com/minio/minio-go/v7/api-s3-datatypes.go b/vendor/github.com/minio/minio-go/v7/api-s3-datatypes.go index 08a5a7b6e..3204263dc 100644 --- a/vendor/github.com/minio/minio-go/v7/api-s3-datatypes.go +++ b/vendor/github.com/minio/minio-go/v7/api-s3-datatypes.go @@ -366,6 +366,7 @@ type completeMultipartUploadResult struct { ChecksumSHA1 string ChecksumSHA256 string ChecksumCRC64NVME string + ChecksumType string } // CompletePart sub container lists individual part numbers and their diff --git a/vendor/github.com/minio/minio-go/v7/api.go b/vendor/github.com/minio/minio-go/v7/api.go index b64f57615..39cd5fd53 100644 --- a/vendor/github.com/minio/minio-go/v7/api.go +++ b/vendor/github.com/minio/minio-go/v7/api.go @@ -155,7 +155,7 @@ type Options struct { // Global constants. const ( libraryName = "minio-go" - libraryVersion = "v7.0.89" + libraryVersion = "v7.0.91" ) // User Agent should always following the below style. @@ -660,13 +660,7 @@ func (c *Client) executeMethod(ctx context.Context, method string, metadata requ metadata.trailer.Set(metadata.addCrc.Key(), base64.StdEncoding.EncodeToString(crc.Sum(nil))) } - // Create cancel context to control 'newRetryTimer' go routine. - retryCtx, cancel := context.WithCancel(ctx) - - // Indicate to our routine to exit cleanly upon return. - defer cancel() - - for range c.newRetryTimer(retryCtx, reqRetry, DefaultRetryUnit, DefaultRetryCap, MaxJitter) { + for range c.newRetryTimer(ctx, reqRetry, DefaultRetryUnit, DefaultRetryCap, MaxJitter) { // Retry executes the following function body if request has an // error until maxRetries have been exhausted, retry attempts are // performed after waiting for a given period of time in a @@ -779,7 +773,7 @@ func (c *Client) executeMethod(ctx context.Context, method string, metadata requ } // Return an error when retry is canceled or deadlined - if e := retryCtx.Err(); e != nil { + if e := ctx.Err(); e != nil { return nil, e } @@ -909,6 +903,11 @@ func (c *Client) newRequest(ctx context.Context, method string, metadata request // For anonymous requests just return. if signerType.IsAnonymous() { + if len(metadata.trailer) > 0 { + req.Header.Set("X-Amz-Content-Sha256", unsignedPayloadTrailer) + return signer.UnsignedTrailer(*req, metadata.trailer), nil + } + return req, nil } @@ -1066,3 +1065,11 @@ func (c *Client) CredContext() *credentials.CredContext { Endpoint: c.endpointURL.String(), } } + +// GetCreds returns the access creds for the client +func (c *Client) GetCreds() (credentials.Value, error) { + if c.credsProvider == nil { + return credentials.Value{}, errors.New("no credentials provider") + } + return c.credsProvider.GetWithContext(c.CredContext()) +} diff --git a/vendor/github.com/minio/minio-go/v7/checksum.go b/vendor/github.com/minio/minio-go/v7/checksum.go index c7456cda2..5c24bf64a 100644 --- a/vendor/github.com/minio/minio-go/v7/checksum.go +++ b/vendor/github.com/minio/minio-go/v7/checksum.go @@ -34,6 +34,43 @@ import ( "github.com/minio/crc64nvme" ) +// ChecksumMode contains information about the checksum mode on the object +type ChecksumMode uint32 + +const ( + // ChecksumFullObjectMode Full object checksum `csumCombine(csum1, csum2...)...), csumN...)` + ChecksumFullObjectMode ChecksumMode = 1 << iota + + // ChecksumCompositeMode Composite checksum `csum([csum1 + csum2 ... + csumN])` + ChecksumCompositeMode + + // Keep after all valid checksums + checksumLastMode + + // checksumModeMask is a mask for valid checksum mode types. + checksumModeMask = checksumLastMode - 1 +) + +// Is returns if c is all of t. +func (c ChecksumMode) Is(t ChecksumMode) bool { + return c&t == t +} + +// Key returns the header key. +func (c ChecksumMode) Key() string { + return amzChecksumMode +} + +func (c ChecksumMode) String() string { + switch c & checksumModeMask { + case ChecksumFullObjectMode: + return "FULL_OBJECT" + case ChecksumCompositeMode: + return "COMPOSITE" + } + return "" +} + // ChecksumType contains information about the checksum type. type ChecksumType uint32 @@ -75,6 +112,7 @@ const ( amzChecksumSHA1 = "x-amz-checksum-sha1" amzChecksumSHA256 = "x-amz-checksum-sha256" amzChecksumCRC64NVME = "x-amz-checksum-crc64nvme" + amzChecksumMode = "x-amz-checksum-type" ) // Base returns the base type, without modifiers. @@ -397,7 +435,7 @@ func addAutoChecksumHeaders(opts *PutObjectOptions) { } opts.UserMetadata["X-Amz-Checksum-Algorithm"] = opts.AutoChecksum.String() if opts.AutoChecksum.FullObjectRequested() { - opts.UserMetadata["X-Amz-Checksum-Type"] = "FULL_OBJECT" + opts.UserMetadata[amzChecksumMode] = ChecksumFullObjectMode.String() } } @@ -414,7 +452,10 @@ func applyAutoChecksum(opts *PutObjectOptions, allParts []ObjectPart) { } else if opts.AutoChecksum.CanMergeCRC() { crc, err := opts.AutoChecksum.FullObjectChecksum(allParts) if err == nil { - opts.UserMetadata = map[string]string{opts.AutoChecksum.KeyCapitalized(): crc.Encoded(), "X-Amz-Checksum-Type": "FULL_OBJECT"} + opts.UserMetadata = map[string]string{ + opts.AutoChecksum.KeyCapitalized(): crc.Encoded(), + amzChecksumMode: ChecksumFullObjectMode.String(), + } } } } diff --git a/vendor/github.com/minio/minio-go/v7/hook-reader.go b/vendor/github.com/minio/minio-go/v7/hook-reader.go index 07bc7dbcf..61268a104 100644 --- a/vendor/github.com/minio/minio-go/v7/hook-reader.go +++ b/vendor/github.com/minio/minio-go/v7/hook-reader.go @@ -20,7 +20,6 @@ package minio import ( "fmt" "io" - "sync" ) // hookReader hooks additional reader in the source stream. It is @@ -28,7 +27,6 @@ import ( // notified about the exact number of bytes read from the primary // source on each Read operation. type hookReader struct { - mu sync.RWMutex source io.Reader hook io.Reader } @@ -36,9 +34,6 @@ type hookReader struct { // Seek implements io.Seeker. Seeks source first, and if necessary // seeks hook if Seek method is appropriately found. func (hr *hookReader) Seek(offset int64, whence int) (n int64, err error) { - hr.mu.Lock() - defer hr.mu.Unlock() - // Verify for source has embedded Seeker, use it. sourceSeeker, ok := hr.source.(io.Seeker) if ok { @@ -70,9 +65,6 @@ func (hr *hookReader) Seek(offset int64, whence int) (n int64, err error) { // value 'n' number of bytes are reported through the hook. Returns // error for all non io.EOF conditions. func (hr *hookReader) Read(b []byte) (n int, err error) { - hr.mu.RLock() - defer hr.mu.RUnlock() - n, err = hr.source.Read(b) if err != nil && err != io.EOF { return n, err @@ -92,7 +84,7 @@ func (hr *hookReader) Read(b []byte) (n int, err error) { // reports the data read from the source to the hook. func newHook(source, hook io.Reader) io.Reader { if hook == nil { - return &hookReader{source: source} + return source } return &hookReader{ source: source, diff --git a/vendor/github.com/minio/minio-go/v7/pkg/signer/request-signature-v4.go b/vendor/github.com/minio/minio-go/v7/pkg/signer/request-signature-v4.go index 09ece53a0..2842899b9 100644 --- a/vendor/github.com/minio/minio-go/v7/pkg/signer/request-signature-v4.go +++ b/vendor/github.com/minio/minio-go/v7/pkg/signer/request-signature-v4.go @@ -333,11 +333,34 @@ func signV4(req http.Request, accessKeyID, secretAccessKey, sessionToken, locati if len(trailer) > 0 { // Use custom chunked encoding. req.Trailer = trailer - return StreamingUnsignedV4(&req, sessionToken, req.ContentLength, time.Now().UTC()) + return StreamingUnsignedV4(&req, sessionToken, req.ContentLength, t) } return &req } +// UnsignedTrailer will do chunked encoding with a custom trailer. +func UnsignedTrailer(req http.Request, trailer http.Header) *http.Request { + if len(trailer) == 0 { + return &req + } + // Initial time. + t := time.Now().UTC() + + // Set x-amz-date. + req.Header.Set("X-Amz-Date", t.Format(iso8601DateFormat)) + + for k := range trailer { + req.Header.Add("X-Amz-Trailer", strings.ToLower(k)) + } + + req.Header.Set("Content-Encoding", "aws-chunked") + req.Header.Set("x-amz-decoded-content-length", strconv.FormatInt(req.ContentLength, 10)) + + // Use custom chunked encoding. + req.Trailer = trailer + return StreamingUnsignedV4(&req, "", req.ContentLength, t) +} + // SignV4 sign the request before Do(), in accordance with // http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html. func SignV4(req http.Request, accessKeyID, secretAccessKey, sessionToken, location string) *http.Request { diff --git a/vendor/github.com/minio/minio-go/v7/retry-continous.go b/vendor/github.com/minio/minio-go/v7/retry-continous.go index 81fcf16f1..21e9fd455 100644 --- a/vendor/github.com/minio/minio-go/v7/retry-continous.go +++ b/vendor/github.com/minio/minio-go/v7/retry-continous.go @@ -17,12 +17,14 @@ package minio -import "time" +import ( + "iter" + "math" + "time" +) // newRetryTimerContinous creates a timer with exponentially increasing delays forever. -func (c *Client) newRetryTimerContinous(baseSleep, maxSleep time.Duration, jitter float64, doneCh chan struct{}) <-chan int { - attemptCh := make(chan int) - +func (c *Client) newRetryTimerContinous(baseSleep, maxSleep time.Duration, jitter float64) iter.Seq[int] { // normalize jitter to the range [0, 1.0] if jitter < NoJitter { jitter = NoJitter @@ -44,26 +46,20 @@ func (c *Client) newRetryTimerContinous(baseSleep, maxSleep time.Duration, jitte if sleep > maxSleep { sleep = maxSleep } - if jitter != NoJitter { + if math.Abs(jitter-NoJitter) > 1e-9 { sleep -= time.Duration(c.random.Float64() * float64(sleep) * jitter) } return sleep } - go func() { - defer close(attemptCh) + return func(yield func(int) bool) { var nextBackoff int for { - select { - // Attempts starts. - case attemptCh <- nextBackoff: - nextBackoff++ - case <-doneCh: - // Stop the routine. + if !yield(nextBackoff) { return } + nextBackoff++ time.Sleep(exponentialBackoffWait(nextBackoff)) } - }() - return attemptCh + } } diff --git a/vendor/github.com/minio/minio-go/v7/retry.go b/vendor/github.com/minio/minio-go/v7/retry.go index ed954017c..b83d1b2e5 100644 --- a/vendor/github.com/minio/minio-go/v7/retry.go +++ b/vendor/github.com/minio/minio-go/v7/retry.go @@ -21,6 +21,8 @@ import ( "context" "crypto/x509" "errors" + "iter" + "math" "net/http" "net/url" "time" @@ -45,9 +47,7 @@ var DefaultRetryCap = time.Second // newRetryTimer creates a timer with exponentially increasing // delays until the maximum retry attempts are reached. -func (c *Client) newRetryTimer(ctx context.Context, maxRetry int, baseSleep, maxSleep time.Duration, jitter float64) <-chan int { - attemptCh := make(chan int) - +func (c *Client) newRetryTimer(ctx context.Context, maxRetry int, baseSleep, maxSleep time.Duration, jitter float64) iter.Seq[int] { // computes the exponential backoff duration according to // https://www.awsarchitectureblog.com/2015/03/backoff.html exponentialBackoffWait := func(attempt int) time.Duration { @@ -64,18 +64,22 @@ func (c *Client) newRetryTimer(ctx context.Context, maxRetry int, baseSleep, max if sleep > maxSleep { sleep = maxSleep } - if jitter != NoJitter { + if math.Abs(jitter-NoJitter) > 1e-9 { sleep -= time.Duration(c.random.Float64() * float64(sleep) * jitter) } return sleep } - go func() { - defer close(attemptCh) - for i := 0; i < maxRetry; i++ { - select { - case attemptCh <- i + 1: - case <-ctx.Done(): + return func(yield func(int) bool) { + // if context is already canceled, skip yield + select { + case <-ctx.Done(): + return + default: + } + + for i := range maxRetry { + if !yield(i) { return } @@ -85,8 +89,7 @@ func (c *Client) newRetryTimer(ctx context.Context, maxRetry int, baseSleep, max return } } - }() - return attemptCh + } } // List of AWS S3 error codes which are retryable. diff --git a/vendor/github.com/minio/minio-go/v7/s3-endpoints.go b/vendor/github.com/minio/minio-go/v7/s3-endpoints.go index baab23e96..6928b8eb3 100644 --- a/vendor/github.com/minio/minio-go/v7/s3-endpoints.go +++ b/vendor/github.com/minio/minio-go/v7/s3-endpoints.go @@ -168,6 +168,18 @@ var awsS3EndpointMap = map[string]awsS3Endpoint{ "s3.il-central-1.amazonaws.com", "s3.dualstack.il-central-1.amazonaws.com", }, + "ap-southeast-5": { + "s3.ap-southeast-5.amazonaws.com", + "s3.dualstack.ap-southeast-5.amazonaws.com", + }, + "ap-southeast-7": { + "s3.ap-southeast-7.amazonaws.com", + "s3.dualstack.ap-southeast-7.amazonaws.com", + }, + "mx-central-1": { + "s3.mx-central-1.amazonaws.com", + "s3.dualstack.mx-central-1.amazonaws.com", + }, } // getS3Endpoint get Amazon S3 endpoint based on the bucket location. diff --git a/vendor/github.com/minio/minio-go/v7/utils.go b/vendor/github.com/minio/minio-go/v7/utils.go index 027bb6ce3..6024bfa5b 100644 --- a/vendor/github.com/minio/minio-go/v7/utils.go +++ b/vendor/github.com/minio/minio-go/v7/utils.go @@ -390,6 +390,7 @@ func ToObjectInfo(bucketName, objectName string, h http.Header) (ObjectInfo, err ChecksumSHA1: h.Get(ChecksumSHA1.Key()), ChecksumSHA256: h.Get(ChecksumSHA256.Key()), ChecksumCRC64NVME: h.Get(ChecksumCRC64NVME.Key()), + ChecksumMode: h.Get(ChecksumFullObjectMode.Key()), }, nil } diff --git a/vendor/github.com/ncruces/go-sqlite3/driver/driver.go b/vendor/github.com/ncruces/go-sqlite3/driver/driver.go index 9250cf39d..f473220c0 100644 --- a/vendor/github.com/ncruces/go-sqlite3/driver/driver.go +++ b/vendor/github.com/ncruces/go-sqlite3/driver/driver.go @@ -241,8 +241,9 @@ func (n *connector) Connect(ctx context.Context) (ret driver.Conn, err error) { } }() - old := c.Conn.SetInterrupt(ctx) - defer c.Conn.SetInterrupt(old) + if old := c.Conn.SetInterrupt(ctx); old != ctx { + defer c.Conn.SetInterrupt(old) + } if !n.pragmas { err = c.Conn.BusyTimeout(time.Minute) @@ -362,8 +363,9 @@ func (c *conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, e c.txReset = `; PRAGMA query_only=` + string(c.readOnly) } - old := c.Conn.SetInterrupt(ctx) - defer c.Conn.SetInterrupt(old) + if old := c.Conn.SetInterrupt(ctx); old != ctx { + defer c.Conn.SetInterrupt(old) + } err := c.Conn.Exec(txBegin) if err != nil { @@ -382,8 +384,10 @@ func (c *conn) Commit() error { func (c *conn) Rollback() error { // ROLLBACK even if interrupted. - old := c.Conn.SetInterrupt(context.Background()) - defer c.Conn.SetInterrupt(old) + ctx := context.Background() + if old := c.Conn.SetInterrupt(ctx); old != ctx { + defer c.Conn.SetInterrupt(old) + } return c.Conn.Exec(`ROLLBACK` + c.txReset) } @@ -393,8 +397,9 @@ func (c *conn) Prepare(query string) (driver.Stmt, error) { } func (c *conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) { - old := c.Conn.SetInterrupt(ctx) - defer c.Conn.SetInterrupt(old) + if old := c.Conn.SetInterrupt(ctx); old != ctx { + defer c.Conn.SetInterrupt(old) + } s, tail, err := c.Conn.Prepare(query) if err != nil { @@ -419,8 +424,9 @@ func (c *conn) ExecContext(ctx context.Context, query string, args []driver.Name return resultRowsAffected(0), nil } - old := c.Conn.SetInterrupt(ctx) - defer c.Conn.SetInterrupt(old) + if old := c.Conn.SetInterrupt(ctx); old != ctx { + defer c.Conn.SetInterrupt(old) + } err := c.Conn.Exec(query) if err != nil { @@ -483,8 +489,10 @@ func (s *stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (drive return nil, err } - old := s.Stmt.Conn().SetInterrupt(ctx) - defer s.Stmt.Conn().SetInterrupt(old) + c := s.Stmt.Conn() + if old := c.SetInterrupt(ctx); old != ctx { + defer c.SetInterrupt(old) + } err = errors.Join( s.Stmt.Exec(), @@ -493,7 +501,7 @@ func (s *stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (drive return nil, err } - return newResult(s.Stmt.Conn()), nil + return newResult(c), nil } func (s *stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) { @@ -678,13 +686,14 @@ func (r *rows) scanType(index int) scantype { func (r *rows) loadColumnMetadata() { if r.nulls == nil { + c := r.Stmt.Conn() count := r.Stmt.ColumnCount() nulls := make([]bool, count) types := make([]string, count) scans := make([]scantype, count) for i := range nulls { if col := r.Stmt.ColumnOriginName(i); col != "" { - types[i], _, nulls[i], _, _, _ = r.Stmt.Conn().TableColumnMetadata( + types[i], _, nulls[i], _, _, _ = c.TableColumnMetadata( r.Stmt.ColumnDatabaseName(i), r.Stmt.ColumnTableName(i), col) @@ -762,8 +771,10 @@ func (r *rows) ColumnTypeScanType(index int) (typ reflect.Type) { } func (r *rows) Next(dest []driver.Value) error { - old := r.Stmt.Conn().SetInterrupt(r.ctx) - defer r.Stmt.Conn().SetInterrupt(old) + c := r.Stmt.Conn() + if old := c.SetInterrupt(r.ctx); old != r.ctx { + defer c.SetInterrupt(old) + } if !r.Stmt.Step() { if err := r.Stmt.Err(); err != nil { diff --git a/vendor/github.com/ncruces/go-sqlite3/embed/build.sh b/vendor/github.com/ncruces/go-sqlite3/embed/build.sh index a6b21d366..88e12be31 100644 --- a/vendor/github.com/ncruces/go-sqlite3/embed/build.sh +++ b/vendor/github.com/ncruces/go-sqlite3/embed/build.sh @@ -12,7 +12,7 @@ trap 'rm -f sqlite3.tmp' EXIT "$WASI_SDK/clang" --target=wasm32-wasi -std=c23 -g0 -O2 \ -Wall -Wextra -Wno-unused-parameter -Wno-unused-function \ -o sqlite3.wasm "$ROOT/sqlite3/main.c" \ - -I"$ROOT/sqlite3" \ + -I"$ROOT/sqlite3/libc" -I"$ROOT/sqlite3" \ -mexec-model=reactor \ -msimd128 -mmutable-globals -mmultivalue \ -mbulk-memory -mreference-types \ @@ -27,7 +27,7 @@ trap 'rm -f sqlite3.tmp' EXIT "$BINARYEN/wasm-ctor-eval" -g -c _initialize sqlite3.wasm -o sqlite3.tmp "$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \ - sqlite3.tmp -o sqlite3.wasm \ + sqlite3.tmp -o sqlite3.wasm --low-memory-unused \ --enable-simd --enable-mutable-globals --enable-multivalue \ --enable-bulk-memory --enable-reference-types \ --enable-nontrapping-float-to-int --enable-sign-ext \ No newline at end of file diff --git a/vendor/github.com/ncruces/go-sqlite3/embed/exports.txt b/vendor/github.com/ncruces/go-sqlite3/embed/exports.txt index 84d6102b8..1de4b3382 100644 --- a/vendor/github.com/ncruces/go-sqlite3/embed/exports.txt +++ b/vendor/github.com/ncruces/go-sqlite3/embed/exports.txt @@ -66,6 +66,7 @@ sqlite3_errmsg sqlite3_error_offset sqlite3_errstr sqlite3_exec +sqlite3_exec_go sqlite3_expanded_sql sqlite3_file_control sqlite3_filename_database diff --git a/vendor/github.com/ncruces/go-sqlite3/embed/sqlite3.wasm b/vendor/github.com/ncruces/go-sqlite3/embed/sqlite3.wasm index 713fc0675..88ebe9932 100644 Binary files a/vendor/github.com/ncruces/go-sqlite3/embed/sqlite3.wasm and b/vendor/github.com/ncruces/go-sqlite3/embed/sqlite3.wasm differ diff --git a/vendor/github.com/ncruces/go-sqlite3/error.go b/vendor/github.com/ncruces/go-sqlite3/error.go index 59982eafd..83b057d0d 100644 --- a/vendor/github.com/ncruces/go-sqlite3/error.go +++ b/vendor/github.com/ncruces/go-sqlite3/error.go @@ -75,7 +75,7 @@ func (e *Error) As(err any) bool { // Temporary returns true for [BUSY] errors. func (e *Error) Temporary() bool { - return e.Code() == BUSY + return e.Code() == BUSY || e.Code() == INTERRUPT } // Timeout returns true for [BUSY_TIMEOUT] errors. diff --git a/vendor/github.com/ncruces/go-sqlite3/stmt.go b/vendor/github.com/ncruces/go-sqlite3/stmt.go index 1ea726ea1..7fa2a504d 100644 --- a/vendor/github.com/ncruces/go-sqlite3/stmt.go +++ b/vendor/github.com/ncruces/go-sqlite3/stmt.go @@ -110,10 +110,7 @@ func (s *Stmt) Step() bool { s.err = INTERRUPT return false } - return s.step() -} -func (s *Stmt) step() bool { rc := res_t(s.c.call("sqlite3_step", stk_t(s.handle))) switch rc { case _ROW: @@ -141,10 +138,9 @@ func (s *Stmt) Exec() error { if s.c.interrupt.Err() != nil { return INTERRUPT } - // TODO: implement this in C. - for s.step() { - } - return s.Reset() + rc := res_t(s.c.call("sqlite3_exec_go", stk_t(s.handle))) + s.err = nil + return s.c.error(rc) } // Status monitors the performance characteristics of prepared statements. @@ -649,6 +645,7 @@ func (s *Stmt) ColumnValue(col int) Value { // [FLOAT] as float64, [NULL] as nil, // [TEXT] as string, and [BLOB] as []byte. func (s *Stmt) Columns(dest ...any) error { + defer s.c.arena.mark()() types, ptr, err := s.columns(int64(len(dest))) if err != nil { return err @@ -701,6 +698,7 @@ func (s *Stmt) Columns(dest ...any) error { // Any []byte are owned by SQLite and may be invalidated by // subsequent calls to [Stmt] methods. func (s *Stmt) ColumnsRaw(dest ...any) error { + defer s.c.arena.mark()() types, ptr, err := s.columns(int64(len(dest))) if err != nil { return err @@ -739,7 +737,6 @@ func (s *Stmt) ColumnsRaw(dest ...any) error { } func (s *Stmt) columns(count int64) ([]byte, ptr_t, error) { - defer s.c.arena.mark()() typePtr := s.c.arena.new(count) dataPtr := s.c.arena.new(count * 8) diff --git a/vendor/github.com/ncruces/go-sqlite3/util/sql3util/wasm/sql3parse_table.wasm b/vendor/github.com/ncruces/go-sqlite3/util/sql3util/wasm/sql3parse_table.wasm index 4d3357ea1..fa8af14a0 100644 Binary files a/vendor/github.com/ncruces/go-sqlite3/util/sql3util/wasm/sql3parse_table.wasm and b/vendor/github.com/ncruces/go-sqlite3/util/sql3util/wasm/sql3parse_table.wasm differ diff --git a/vendor/github.com/yuin/goldmark/ast/block.go b/vendor/github.com/yuin/goldmark/ast/block.go index eae7acdca..d17564a99 100644 --- a/vendor/github.com/yuin/goldmark/ast/block.go +++ b/vendor/github.com/yuin/goldmark/ast/block.go @@ -515,6 +515,7 @@ func (n *HTMLBlock) Dump(source []byte, level int) { cl := n.ClosureLine fmt.Printf("%sClosure: \"%s\"\n", indent2, string(cl.Value(source))) } + fmt.Printf("%sHasBlankPreviousLines: %v\n", indent2, n.HasBlankPreviousLines()) fmt.Printf("%s}\n", indent) } diff --git a/vendor/github.com/yuin/goldmark/parser/parser.go b/vendor/github.com/yuin/goldmark/parser/parser.go index b05db1356..7ec40b31a 100644 --- a/vendor/github.com/yuin/goldmark/parser/parser.go +++ b/vendor/github.com/yuin/goldmark/parser/parser.go @@ -1096,7 +1096,7 @@ func (p *parser) parseBlocks(parent ast.Node, reader text.Reader, pc Context) { // When current node is a container block and has no children, // we try to open new child nodes if state&HasChildren != 0 && i == lastIndex { - isBlank = isBlankLine(lineNum-1, i, blankLines) + isBlank = isBlankLine(lineNum-1, i+1, blankLines) p.openBlocks(be.Node, isBlank, reader, pc) break } diff --git a/vendor/go.opentelemetry.io/otel/exporters/prometheus/exporter.go b/vendor/go.opentelemetry.io/otel/exporters/prometheus/exporter.go index 50c95a16f..a8677e93a 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/prometheus/exporter.go +++ b/vendor/go.opentelemetry.io/otel/exporters/prometheus/exporter.go @@ -96,7 +96,7 @@ type collector struct { // prometheus counters MUST have a _total suffix by default: // https://github.com/open-telemetry/opentelemetry-specification/blob/v1.20.0/specification/compatibility/prometheus_and_openmetrics.md -const counterSuffix = "_total" +const counterSuffix = "total" // New returns a Prometheus Exporter. func New(opts ...Option) (*Exporter, error) { @@ -368,38 +368,38 @@ func createScopeInfoMetric(scope instrumentation.Scope) (prometheus.Metric, erro var unitSuffixes = map[string]string{ // Time - "d": "_days", - "h": "_hours", - "min": "_minutes", - "s": "_seconds", - "ms": "_milliseconds", - "us": "_microseconds", - "ns": "_nanoseconds", + "d": "days", + "h": "hours", + "min": "minutes", + "s": "seconds", + "ms": "milliseconds", + "us": "microseconds", + "ns": "nanoseconds", // Bytes - "By": "_bytes", - "KiBy": "_kibibytes", - "MiBy": "_mebibytes", - "GiBy": "_gibibytes", - "TiBy": "_tibibytes", - "KBy": "_kilobytes", - "MBy": "_megabytes", - "GBy": "_gigabytes", - "TBy": "_terabytes", + "By": "bytes", + "KiBy": "kibibytes", + "MiBy": "mebibytes", + "GiBy": "gibibytes", + "TiBy": "tibibytes", + "KBy": "kilobytes", + "MBy": "megabytes", + "GBy": "gigabytes", + "TBy": "terabytes", // SI - "m": "_meters", - "V": "_volts", - "A": "_amperes", - "J": "_joules", - "W": "_watts", - "g": "_grams", + "m": "meters", + "V": "volts", + "A": "amperes", + "J": "joules", + "W": "watts", + "g": "grams", // Misc - "Cel": "_celsius", - "Hz": "_hertz", - "1": "_ratio", - "%": "_percent", + "Cel": "celsius", + "Hz": "hertz", + "1": "ratio", + "%": "percent", } // getName returns the sanitized name, prefixed with the namespace and suffixed with unit. @@ -414,19 +414,31 @@ func (c *collector) getName(m metricdata.Metrics, typ *dto.MetricType) string { // Remove the _total suffix here, as we will re-add the total suffix // later, and it needs to come after the unit suffix. name = strings.TrimSuffix(name, counterSuffix) + // If the last character is an underscore, or would be converted to an underscore, trim it from the name. + // an underscore will be added back in later. + if convertsToUnderscore(rune(name[len(name)-1])) { + name = name[:len(name)-1] + } } if c.namespace != "" { name = c.namespace + name } if suffix, ok := unitSuffixes[m.Unit]; ok && !c.withoutUnits && !strings.HasSuffix(name, suffix) { - name += suffix + name += "_" + suffix } if addCounterSuffix { - name += counterSuffix + name += "_" + counterSuffix } return name } +// convertsToUnderscore returns true if the character would be converted to an +// underscore when the escaping scheme is underscore escaping. This is meant to +// capture any character that should be considered a "delimiter". +func convertsToUnderscore(b rune) bool { + return !((b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || b == ':' || (b >= '0' && b <= '9')) +} + func (c *collector) metricType(m metricdata.Metrics) *dto.MetricType { switch v := m.Data.(type) { case metricdata.Histogram[int64], metricdata.Histogram[float64]: diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram.go b/vendor/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram.go index 336ea91d1..32a62e1b8 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/exponential_histogram.go @@ -48,7 +48,7 @@ type expoHistogramDataPoint[N int64 | float64] struct { zeroCount uint64 } -func newExpoHistogramDataPoint[N int64 | float64](attrs attribute.Set, maxSize int, maxScale int32, noMinMax, noSum bool) *expoHistogramDataPoint[N] { +func newExpoHistogramDataPoint[N int64 | float64](attrs attribute.Set, maxSize int, maxScale int32, noMinMax, noSum bool) *expoHistogramDataPoint[N] { // nolint:revive // we need this control flag f := math.MaxFloat64 ma := N(f) // if N is int64, max will overflow to -9223372036854775808 mi := N(-f) diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/version.go b/vendor/go.opentelemetry.io/otel/sdk/metric/version.go index 7c4b8530d..92d2589da 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/version.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/version.go @@ -5,5 +5,5 @@ package metric // import "go.opentelemetry.io/otel/sdk/metric" // version is the current release version of the metric SDK in use. func version() string { - return "1.34.0" + return "1.35.0" } diff --git a/vendor/golang.org/x/image/webp/decode.go b/vendor/golang.org/x/image/webp/decode.go index e211c7d57..0df3c67e8 100644 --- a/vendor/golang.org/x/image/webp/decode.go +++ b/vendor/golang.org/x/image/webp/decode.go @@ -261,7 +261,7 @@ func Decode(r io.Reader) (image.Image, error) { if err != nil { return nil, err } - return m, err + return m, nil } // DecodeConfig returns the color model and dimensions of a WEBP image without diff --git a/vendor/modules.txt b/vendor/modules.txt index c0b7298f3..276f0f17c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,3 +1,220 @@ +# code.superseriousbusiness.org/activity v1.15.0 +## explicit; go 1.23 +code.superseriousbusiness.org/activity/pub +code.superseriousbusiness.org/activity/streams +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view +code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album +code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist +code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library +code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest +code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id +code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type +code.superseriousbusiness.org/activity/streams/impl/schema/property_value +code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue +code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash +code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable +code.superseriousbusiness.org/activity/streams/impl/toot/property_featured +code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint +code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable +code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm +code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue +code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount +code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji +code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag +code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof +code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner +code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey +code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem +code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey +code.superseriousbusiness.org/activity/streams/values/anyURI +code.superseriousbusiness.org/activity/streams/values/bcp47 +code.superseriousbusiness.org/activity/streams/values/boolean +code.superseriousbusiness.org/activity/streams/values/dateTime +code.superseriousbusiness.org/activity/streams/values/duration +code.superseriousbusiness.org/activity/streams/values/float +code.superseriousbusiness.org/activity/streams/values/langString +code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger +code.superseriousbusiness.org/activity/streams/values/rfc2045 +code.superseriousbusiness.org/activity/streams/values/rfc5988 +code.superseriousbusiness.org/activity/streams/values/string +code.superseriousbusiness.org/activity/streams/vocab +# code.superseriousbusiness.org/exif-terminator v0.11.0 +## explicit; go 1.23 +code.superseriousbusiness.org/exif-terminator +# code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0 +## explicit; go 1.17 +code.superseriousbusiness.org/go-jpeg-image-structure/v2 +# code.superseriousbusiness.org/go-png-image-structure/v2 v2.3.0 +## explicit; go 1.12 +code.superseriousbusiness.org/go-png-image-structure/v2 +# code.superseriousbusiness.org/httpsig v1.4.0 +## explicit; go 1.21 +code.superseriousbusiness.org/httpsig +# code.superseriousbusiness.org/oauth2/v4 v4.8.0 +## explicit; go 1.23.0 +code.superseriousbusiness.org/oauth2/v4 +code.superseriousbusiness.org/oauth2/v4/errors +code.superseriousbusiness.org/oauth2/v4/generates +code.superseriousbusiness.org/oauth2/v4/manage +code.superseriousbusiness.org/oauth2/v4/models +code.superseriousbusiness.org/oauth2/v4/server # codeberg.org/gruf/go-bytes v1.0.2 ## explicit; go 1.14 codeberg.org/gruf/go-bytes @@ -66,209 +283,6 @@ codeberg.org/gruf/go-storage/s3 # codeberg.org/gruf/go-structr v0.9.6 ## explicit; go 1.22 codeberg.org/gruf/go-structr -# codeberg.org/superseriousbusiness/activity v1.13.0-gts -## explicit; go 1.21 -codeberg.org/superseriousbusiness/activity/pub -codeberg.org/superseriousbusiness/activity/streams -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view -codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album -codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist -codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library -codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval -codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id -codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type -codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value -codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount -codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji -codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag -codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof -codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner -codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey -codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem -codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey -codeberg.org/superseriousbusiness/activity/streams/values/anyURI -codeberg.org/superseriousbusiness/activity/streams/values/bcp47 -codeberg.org/superseriousbusiness/activity/streams/values/boolean -codeberg.org/superseriousbusiness/activity/streams/values/dateTime -codeberg.org/superseriousbusiness/activity/streams/values/duration -codeberg.org/superseriousbusiness/activity/streams/values/float -codeberg.org/superseriousbusiness/activity/streams/values/langString -codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger -codeberg.org/superseriousbusiness/activity/streams/values/rfc2045 -codeberg.org/superseriousbusiness/activity/streams/values/rfc5988 -codeberg.org/superseriousbusiness/activity/streams/values/string -codeberg.org/superseriousbusiness/activity/streams/vocab -# codeberg.org/superseriousbusiness/exif-terminator v0.10.0 -## explicit; go 1.21 -codeberg.org/superseriousbusiness/exif-terminator -# codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB -## explicit; go 1.17 -codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 -# codeberg.org/superseriousbusiness/go-png-image-structure/v2 v2.1.0-SSB -## explicit; go 1.12 -codeberg.org/superseriousbusiness/go-png-image-structure/v2 -# codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB -## explicit; go 1.21 -codeberg.org/superseriousbusiness/httpsig -# codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB -## explicit; go 1.23.0 -codeberg.org/superseriousbusiness/oauth2/v4 -codeberg.org/superseriousbusiness/oauth2/v4/errors -codeberg.org/superseriousbusiness/oauth2/v4/generates -codeberg.org/superseriousbusiness/oauth2/v4/manage -codeberg.org/superseriousbusiness/oauth2/v4/models -codeberg.org/superseriousbusiness/oauth2/v4/server # github.com/DmitriyVTitov/size v1.5.0 ## explicit; go 1.14 github.com/DmitriyVTitov/size @@ -360,8 +374,8 @@ github.com/cloudwego/base64x/internal/native github.com/cloudwego/base64x/internal/native/avx2 github.com/cloudwego/base64x/internal/native/sse github.com/cloudwego/base64x/internal/rt -# github.com/coreos/go-oidc/v3 v3.12.0 -## explicit; go 1.21 +# github.com/coreos/go-oidc/v3 v3.14.1 +## explicit; go 1.23.0 github.com/coreos/go-oidc/v3/oidc # github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc ## explicit @@ -400,7 +414,7 @@ github.com/gabriel-vasile/mimetype github.com/gabriel-vasile/mimetype/internal/charset github.com/gabriel-vasile/mimetype/internal/json github.com/gabriel-vasile/mimetype/internal/magic -# github.com/gin-contrib/cors v1.7.4 +# github.com/gin-contrib/cors v1.7.5 ## explicit; go 1.23.0 github.com/gin-contrib/cors # github.com/gin-contrib/gzip v1.2.3 @@ -423,9 +437,6 @@ github.com/gin-gonic/gin/render # github.com/go-errors/errors v1.1.1 ## explicit; go 1.14 github.com/go-errors/errors -# github.com/go-fed/httpsig v1.1.0 -## explicit; go 1.13 -github.com/go-fed/httpsig # github.com/go-ini/ini v1.67.0 ## explicit github.com/go-ini/ini @@ -664,7 +675,7 @@ github.com/minio/crc64nvme # github.com/minio/md5-simd v1.1.2 ## explicit; go 1.14 github.com/minio/md5-simd -# github.com/minio/minio-go/v7 v7.0.89 +# github.com/minio/minio-go/v7 v7.0.91 ## explicit; go 1.23.0 github.com/minio/minio-go/v7 github.com/minio/minio-go/v7/pkg/cors @@ -696,7 +707,7 @@ github.com/modern-go/reflect2 # github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 ## explicit github.com/munnerz/goautoneg -# github.com/ncruces/go-sqlite3 v0.25.0 +# github.com/ncruces/go-sqlite3 v0.25.1 ## explicit; go 1.23.0 github.com/ncruces/go-sqlite3 github.com/ncruces/go-sqlite3/driver @@ -946,7 +957,7 @@ github.com/vmihailenco/tagparser/v2/internal/parser # github.com/wagslane/go-password-validator v0.3.0 ## explicit; go 1.16 github.com/wagslane/go-password-validator -# github.com/yuin/goldmark v1.7.10 +# github.com/yuin/goldmark v1.7.11 ## explicit; go 1.22 github.com/yuin/goldmark github.com/yuin/goldmark/ast @@ -1001,14 +1012,14 @@ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/retry -# go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.34.0 +# go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 ## explicit; go 1.22.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/envconfig go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/otlpconfig go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/retry -# go.opentelemetry.io/otel/exporters/prometheus v0.56.0 +# go.opentelemetry.io/otel/exporters/prometheus v0.57.0 ## explicit; go 1.22.0 go.opentelemetry.io/otel/exporters/prometheus # go.opentelemetry.io/otel/metric v1.35.0 @@ -1024,7 +1035,7 @@ go.opentelemetry.io/otel/sdk/internal/env go.opentelemetry.io/otel/sdk/internal/x go.opentelemetry.io/otel/sdk/resource go.opentelemetry.io/otel/sdk/trace -# go.opentelemetry.io/otel/sdk/metric v1.34.0 +# go.opentelemetry.io/otel/sdk/metric v1.35.0 ## explicit; go 1.22.0 go.opentelemetry.io/otel/sdk/metric go.opentelemetry.io/otel/sdk/metric/exemplar @@ -1079,8 +1090,8 @@ golang.org/x/crypto/ssh/internal/bcrypt_pbkdf # golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 ## explicit; go 1.23.0 golang.org/x/exp/constraints -# golang.org/x/image v0.24.0 -## explicit; go 1.18 +# golang.org/x/image v0.26.0 +## explicit; go 1.23.0 golang.org/x/image/riff golang.org/x/image/vp8 golang.org/x/image/vp8l @@ -1326,7 +1337,7 @@ modernc.org/mathutil # modernc.org/memory v1.9.1 ## explicit; go 1.23.0 modernc.org/memory -# modernc.org/sqlite v0.0.0-00010101000000-000000000000 => gitlab.com/NyaaaWhatsUpDoc/sqlite v1.37.0-concurrency-workaround +# modernc.org/sqlite v1.37.0 => gitlab.com/NyaaaWhatsUpDoc/sqlite v1.37.0-concurrency-workaround ## explicit; go 1.23.0 modernc.org/sqlite modernc.org/sqlite/lib diff --git a/web/source/settings/components/error.tsx b/web/source/settings/components/error.tsx index 3ca5eb416..0bf8d32d7 100644 --- a/web/source/settings/components/error.tsx +++ b/web/source/settings/components/error.tsx @@ -26,7 +26,7 @@ function ErrorFallback({ error, resetErrorBoundary }) {
{"An error occured, please report this on the "}
- GoToSocial issue tracker
+ GoToSocial issue tracker
{" or "}
Matrix support room.
Include the details below:
diff --git a/web/source/settings/lib/navigation/error.tsx b/web/source/settings/lib/navigation/error.tsx
index 08edc83f0..413a1e111 100644
--- a/web/source/settings/lib/navigation/error.tsx
+++ b/web/source/settings/lib/navigation/error.tsx
@@ -72,7 +72,7 @@ function ErrorFallback({ error, componentStack, resetErrorBoundary }) {
{"An error occured, please report this on the "}
- GoToSocial issue tracker
+ GoToSocial issue tracker
{" or "}
Matrix support room.
Include the details below:
diff --git a/web/source/settings/lib/query/admin/custom-emoji/index.ts b/web/source/settings/lib/query/admin/custom-emoji/index.ts
index c5dd0a814..b4ae74610 100644
--- a/web/source/settings/lib/query/admin/custom-emoji/index.ts
+++ b/web/source/settings/lib/query/admin/custom-emoji/index.ts
@@ -64,7 +64,7 @@ function emojisFromSearchResult(searchRes): EmojisFromItem {
return {
type,
// Workaround to get host rather than account domain.
- // See https://github.com/superseriousbusiness/gotosocial/issues/1225.
+ // See https://codeberg.org/superseriousbusiness/gotosocial/issues/1225.
domain: (new URL(data.url)).host,
list: data.emojis,
};
diff --git a/web/template/maintenance.tmpl b/web/template/maintenance.tmpl
index 153130c53..d3fa5a271 100644
--- a/web/template/maintenance.tmpl
+++ b/web/template/maintenance.tmpl
@@ -58,7 +58,7 @@