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!

- +

**GoToSocial is still [BETA SOFTWARE](https://en.wikipedia.org/wiki/Software_release_life_cycle#Beta)**. It is already deployable and useable, and it federates cleanly with many other Fediverse servers (not yet all). However, many things are not yet implemented, and there are plenty of bugs! We left alpha stage around September/October 2024, and we intend to exit beta some time around 2026. Documentation is at [docs.gotosocial.org](https://docs.gotosocial.org). You can skip straight to the API documentation [here](https://docs.gotosocial.org/en/latest/api/swagger/). -To build from source, check the [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md) file. +To build from source, check the [CONTRIBUTING.md](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md) file. Here's a screenshot of the instance landing page! Check out the project's [official account](https://gts.superseriousbusiness.org/@gotosocial) running on GoToSocial. -![Screenshot of the landing page for the GoToSocial instance goblin.technology. It shows basic information about the instance; number of users and posts etc.](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/instancesplash.png) +![Screenshot of the landing page for the GoToSocial instance goblin.technology. It shows basic information about the instance; number of users and posts etc.](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/instancesplash.png) ## Table of Contents @@ -40,6 +40,7 @@ Here's a screenshot of the instance landing page! Check out the project's [offic - [Various federation modes](#various-federation-modes) - [OIDC integration](#oidc-integration) - [Backend-first design](#backend-first-design) +- [Alternatives to GoToSocial](#alternatives-to-gotosocial) - [Known Issues](#known-issues) - [Installing GoToSocial](#installing-gotosocial) - [Supported Platforms](#supported-platforms) @@ -73,7 +74,7 @@ GoToSocial provides a lightweight, customizable, and safety-focused entryway int If you've ever used something like Twitter or Tumblr (or even Myspace!) GoToSocial will probably feel familiar to you: You can follow people and have followers, you make posts which people can favourite and reply to and share, and you scroll through posts from people you follow using a timeline. You can write long posts or short posts, or just post images, it's up to you. You can also, of course, block people or otherwise limit interactions that you don't want by posting just to your friends. -![Screenshot of the web view of a profile in GoToSocial, showing header and avatar, bio, and numbers of followers/following.](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/profile1.png) +![Screenshot of the web view of a profile in GoToSocial, showing header and avatar, bio, and numbers of followers/following.](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/profile1.png) **GoToSocial does NOT use recommendation algorithms or collect data about you to suggest content or 'improve your experience'**. The timeline is chronological: whatever you see at the top of your timeline is there because it's *just been posted*, not because it's been selected as interesting (or controversial) based on your personal profile. @@ -85,7 +86,7 @@ GoToSocial doesn't claim to be *better* than any other application, but it offer Because GoToSocial uses [ActivityPub](https://activitypub.rocks/), you can hang out not just with people on your home server, but with people all over the [Fediverse](https://en.wikipedia.org/wiki/Fediverse), seamlessly. -![the activitypub logo](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/ap_logo.svg) +![the activitypub logo](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/ap_logo.svg) Federation means that your home server is part of a network of servers all over the world that all communicate using the same protocol. Your data is no longer centralized on one company's servers, but resides on your own server and is shared — as you see fit — across a resilient web of servers run by other people. @@ -101,7 +102,7 @@ It began as a solo project, and then picked up steam as more developers became i We made our first Alpha release in November 2021. We left Alpha and entered Beta in September/October 2024. -For a detailed view on what's implemented and what's not, and progress made towards [stable release](https://en.wikipedia.org/wiki/Software_release_life_cycle#Stable_release), please see [the roadmap document](https://github.com/superseriousbusiness/gotosocial/blob/main/ROADMAP.md). +For a detailed view on what's implemented and what's not, and progress made towards [stable release](https://en.wikipedia.org/wiki/Software_release_life_cycle#Stable_release), please see [the roadmap document](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/ROADMAP.md). --- @@ -129,7 +130,7 @@ GoToSocial offers public, unlisted/unlocked, followers-only, and direct posts (s GoToSocial lets you choose who can reply to your posts, via [interaction policies](https://docs.gotosocial.org/en/latest/user_guide/settings/#default-interaction-policies). You can choose to let anyone reply to your posts, let only your friends reply, and more. -![interaction policies settings](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/user-settings-interaction-policy-1.png) +![interaction policies settings](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/user-settings-interaction-policy-1.png) ### Local-only posting @@ -143,7 +144,7 @@ GoToSocial lets you opt-in to exposing your profile as an RSS feed, so that peop With GoToSocial, you can write posts using the popular, easy-to-use Markdown markup language, which lets you produce rich HTML posts with support for blockquotes, syntax-highlighted code blocks, lists, inline links, and more. -![markdown-formatted post](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/markdown-post.png) +![markdown-formatted post](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/markdown-post.png) ### Themes and custom CSS @@ -154,61 +155,61 @@ It's also easy for admins to [add their own custom themes](https://docs.gotosoci
Show theme examples
- +
Blurple dark

- +
Blurple light

- +
Brutalist light

- +
Brutalist dark

- +
Ecks pee

- +
Midnight trip
- +
Moonlight hunt

- +
Rainforest

- +
Soft

- +
Solarized dark

- +
Solarized light

- +
Sunset

@@ -218,7 +219,7 @@ It's also easy for admins to [add their own custom themes](https://docs.gotosoci GoToSocial uses only about 250-350MiB of RAM, and requires very little CPU power, so it plays nice with single-board computers, old laptops and tiny $5/month VPSes. -![Grafana graph showing GoToSocial heap in use hovering around 250MB and spiking occasionally to 400MB-500MB.](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/getting-started-memory-graph.png) +![Grafana graph showing GoToSocial heap in use hovering around 250MB and spiking occasionally to 400MB-500MB.](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/getting-started-memory-graph.png) No external dependencies apart from a database (or just use SQLite!). @@ -257,17 +258,29 @@ On top of this API, web developers are encouraged to build any front-end impleme --- +## Alternatives to GoToSocial + +Don't like GtS but still want to use the fediverse? Like GtS but prefer not to use beta software? There are lots of alternatives that might suit you better! Here are some that we know work well (alphabetical order): + +- [Akkoma]([https://](https://akkoma.social/)): Full-featured ActivityPub microblogging with emoji reacts and quote posts (Elixir). +- [Honk](https://humungus.tedunangst.com/r/honk/m/activitypub.7): Minimalist, opinionated microblogging with "No likes, no faves, no polls, no stars, no claps, no counts." (Go). +- [Iceshrimp.net](https://iceshrimp.dev/iceshrimp/Iceshrimp.NET): rewrite of Iceshrimp from the ground up (.Net). +- [Mastodon](https://joinmastodon.org/): Actively developed, widely recognized, scaleable ActivityPub microblogging instance (Ruby). +- [Snac2](https://codeberg.org/grunfink/snac2): Simple, minimalistic instance with very low system requirements (portable C). + +--- + ## Known Issues -Since GoToSocial is still in beta, there are plenty of bugs. We use [GitHub issues](https://github.com/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug) to track these. +Since GoToSocial is still in beta, there are plenty of bugs. We use [Codeberg issues](https://codeberg.org/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug) to track these. -Since every ActivityPub server implementation has a slightly different interpretation of the protocol, some servers don't quite federate properly with GoToSocial yet. We're tracking these issues [in this project](https://github.com/superseriousbusiness/gotosocial/projects/4). Eventually, we want to make sure that any implementation that can federate nicely with Mastodon should also be able to federate with GoToSocial. +Since every ActivityPub server implementation has a slightly different interpretation of the protocol, some servers don't quite federate properly with GoToSocial yet. We're tracking these issues [in this project](https://codeberg.org/superseriousbusiness/gotosocial/projects/4). Eventually, we want to make sure that any implementation that can federate nicely with Mastodon should also be able to federate with GoToSocial. --- ## Installing GoToSocial -Check our [getting started](https://docs.gotosocial.org/en/latest/getting_started/) documentation! And have a peruse of our [releases page](https://github.com/superseriousbusiness/gotosocial/releases). +Check our [getting started](https://docs.gotosocial.org/en/latest/getting_started/) documentation! And have a peruse of our [releases page](https://codeberg.org/superseriousbusiness/gotosocial/releases). ### Supported Platforms @@ -339,11 +352,11 @@ To run from main using Docker, use the `snapshot` Docker tag. The Docker image ` To run from main using a binary release, download the appropriate .tar.gz file for your architecture from our [self-hosted Minio S3 repository](https://minio.s3.superseriousbusiness.org/browser/gotosocial-snapshots). -Snapshot binary releases in the S3 bucket are keyed by Github commit hash. To get the latest one, sort by Last Modified, or check out the list of commits [here](https://github.com/superseriousbusiness/gotosocial/commits/main), copy the SHA of the latest one, and paste it in the Minio console filter. Snapshot binary releases are expired after 28 days, to keep our hosting costs down. +Snapshot binary releases in the S3 bucket are keyed by commit hash. To get the latest one, sort by Last Modified, or check out the list of commits [here](https://codeberg.org/superseriousbusiness/gotosocial/commits/main), copy the SHA of the latest one, and paste it in the Minio console filter. Snapshot binary releases are expired after 28 days, to keep our hosting costs down. ### From Source -Instructions for building GoToSocial from source are in the [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md) file. +Instructions for building GoToSocial from source are in the [CONTRIBUTING.md](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md) file. ### Third-party Packaging @@ -364,7 +377,7 @@ You can also deploy your own instance of GoToSocial with the help of: ## Contributing -You would like to contribute to GtS? Great! ❤️❤️❤️ Check out the issues page to see if there's anything you intend to jump in on, and read the [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md) file for guidelines and setting up your dev environment. +You would like to contribute to GtS? Great! ❤️❤️❤️ Check out the issues page to see if there's anything you intend to jump in on, and read the [CONTRIBUTING.md](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md) file for guidelines and setting up your dev environment. --- @@ -372,7 +385,7 @@ You would like to contribute to GtS? Great! ❤️❤️❤️ Check out the iss For questions and comments, you can [join our Matrix space](https://matrix.to/#/#gotosocial-space:superseriousbusiness.org) at `#gotosocial-space:superseriousbusiness.org`. This is the quickest way to reach the devs. You can also mail [admin@gotosocial.org](mailto:admin@gotosocial.org). -For bugs and feature requests, please check to see if there's [already an issue](https://github.com/superseriousbusiness/gotosocial/issues), and if not, open one or use one of the above channels to make a request (if you don't have a Github account). +For bugs and feature requests, please check to see if there's [already an issue](https://codeberg.org/superseriousbusiness/gotosocial/issues), and if not, open one or use one of the above channels to make a request (if you don't have a Codeberg account). --- @@ -433,10 +446,10 @@ The following open source libraries, frameworks, and tools are used by GoToSocia - [spf13/viper](https://github.com/spf13/viper); configuration management. [Apache-2.0 License](https://spdx.org/licenses/Apache-2.0.html). - [stretchr/testify](https://github.com/stretchr/testify); test framework. [MIT License](https://spdx.org/licenses/MIT.html). - superseriousbusiness: - - [superseriousbusiness/activity](https://codeberg.org/superseriousbusiness/activity) forked from [go-fed/activity](https://github.com/go-fed/activity); Golang ActivityPub/ActivityStreams library. [BSD-3-Clause License](https://spdx.org/licenses/BSD-3-Clause.html). - - [superseriousbusiness/exif-terminator](https://codeberg.org/superseriousbusiness/exif-terminator); EXIF data removal. [GNU AGPL v3 LICENSE](https://spdx.org/licenses/AGPL-3.0-or-later.html). - - [superseriousbusiness/httpsig](https://codeberg.org/superseriousbusiness/httpsig) forked from [go-fed/httpsig](https://github.com/go-fed/httpsig); secure HTTP signature library. [BSD-3-Clause License](https://spdx.org/licenses/BSD-3-Clause.html). - - [superseriousbusiness/oauth2](https://codeberg.org/superseriousbusiness/oauth2) forked from [go-oauth2/oauth2](https://github.com/go-oauth2/oauth2); OAuth server framework and token handling. [MIT License](https://spdx.org/licenses/MIT.html). + - [superseriousbusiness/activity](https://code.superseriousbusiness.org/activity) forked from [go-fed/activity](https://github.com/go-fed/activity); Golang ActivityPub/ActivityStreams library. [BSD-3-Clause License](https://spdx.org/licenses/BSD-3-Clause.html). + - [superseriousbusiness/exif-terminator](https://code.superseriousbusiness.org/exif-terminator); EXIF data removal. [GNU AGPL v3 LICENSE](https://spdx.org/licenses/AGPL-3.0-or-later.html). + - [superseriousbusiness/httpsig](https://code.superseriousbusiness.org/httpsig) forked from [go-fed/httpsig](https://github.com/go-fed/httpsig); secure HTTP signature library. [BSD-3-Clause License](https://spdx.org/licenses/BSD-3-Clause.html). + - [superseriousbusiness/oauth2](https://code.superseriousbusiness.org/oauth2) forked from [go-oauth2/oauth2](https://github.com/go-oauth2/oauth2); OAuth server framework and token handling. [MIT License](https://spdx.org/licenses/MIT.html). - [temoto/robotstxt](https://github.com/temoto/robotstxt); robots.txt parsing. [MIT License](https://spdx.org/licenses/MIT.html). - [tdewolff/minify](https://github.com/tdewolff/minify); HTML minification for Markdown-submitted posts. [MIT License](https://spdx.org/licenses/MIT.html). - [uber-go/automaxprocs](https://github.com/uber-go/automaxprocs); GOMAXPROCS automation. [MIT License](https://spdx.org/licenses/MIT.html). @@ -454,10 +467,10 @@ Sloth logo by [Anna Abramek](https://abramek.art/). The Creative Commons Attribution-ShareAlike 4.0 International License license applies specifically to the following files and subdirectories of this repository: -- [sloth logo png](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.png) -- [sloth logo webp](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.webp) -- [sloth logo svg](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.svg) -- [all default avatars](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/default_avatars) +- [sloth logo png](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.png) +- [sloth logo webp](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.webp) +- [sloth logo svg](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.svg) +- [all default avatars](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/default_avatars) Under the terms of the license, you are free to: @@ -515,7 +528,7 @@ If after reading this you are still interested in supporting us, that is wonderf NGIZero logo -Combined with the above crowdfunding sources, 2023 Alpha development of GoToSocial was funded by a 50,000 EUR grant from the [NGI0 Entrust Fund](https://nlnet.nl/entrust/), via [NLnet](https://nlnet.nl/). See [here](https://nlnet.nl/project/GoToSocial/#ack) for more details. The successful grant application is archived [here](https://github.com/superseriousbusiness/gotosocial/blob/main/archive/nlnet/2022-next-generation-internet-zero.md). +Combined with the above crowdfunding sources, 2023 Alpha development of GoToSocial was funded by a 50,000 EUR grant from the [NGI0 Entrust Fund](https://nlnet.nl/entrust/), via [NLnet](https://nlnet.nl/). See [here](https://nlnet.nl/project/GoToSocial/#ack) for more details. The successful grant application is archived [here](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/archive/nlnet/2022-next-generation-internet-zero.md). 2024 Beta development of GoToSocial is being funded by an additional 50,000 EUR grant from the [NGI0 Entrust Fund](https://nlnet.nl/entrust/), via [NLnet](https://nlnet.nl/). @@ -525,7 +538,7 @@ Combined with the above crowdfunding sources, 2023 Alpha development of GoToSoci ![the gnu AGPL logo](https://www.gnu.org/graphics/agplv3-155x51.png) -GoToSocial is free software, licensed under the [GNU AGPL v3 LICENSE](https://github.com/superseriousbusiness/gotosocial/blob/main/LICENSE). We encourage forking and changing the code, hacking around with it, and experimenting. +GoToSocial is free software, licensed under the [GNU AGPL v3 LICENSE](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/LICENSE). We encourage forking and changing the code, hacking around with it, and experimenting. See [here](https://www.gnu.org/licenses/why-affero-gpl.html) for the differences between AGPL versus GPL licensing, and [here](https://www.gnu.org/licenses/gpl-faq.html) for FAQ's about GPL licenses, including the AGPL. diff --git a/ROADMAP.md b/ROADMAP.md index 6000e3462..2d70a31ce 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -47,13 +47,13 @@ What follows is a rough timeline of features that will be implemented on the roa ### Mid 2023 -- [x] **Hashtags** -- implement federating hashtags and viewing hashtags to allow users to discover posts that they might be interested in. (Done! https://github.com/superseriousbusiness/gotosocial/pull/2032). +- [x] **Hashtags** -- implement federating hashtags and viewing hashtags to allow users to discover posts that they might be interested in. (Done! https://codeberg.org/superseriousbusiness/gotosocial/pulls/2032). ### Mid/late 2023 -- [x] **Polls** -- implementing parsing, creating, and voting in polls. (Done! https://github.com/superseriousbusiness/gotosocial/pull/2330) -- [x] **Mute posts/threads** -- opt-out of notifications for replies to a thread; no longer show a given post in your timeline. (Done! https://github.com/superseriousbusiness/gotosocial/pull/2278) -- [x] **Limited peering/allowlists** -- allow instance admins to limit federation with other instances by default. (Done! https://github.com/superseriousbusiness/gotosocial/pull/2200) +- [x] **Polls** -- implementing parsing, creating, and voting in polls. (Done! https://codeberg.org/superseriousbusiness/gotosocial/pulls/2330) +- [x] **Mute posts/threads** -- opt-out of notifications for replies to a thread; no longer show a given post in your timeline. (Done! https://codeberg.org/superseriousbusiness/gotosocial/pulls/2278) +- [x] **Limited peering/allowlists** -- allow instance admins to limit federation with other instances by default. (Done! https://codeberg.org/superseriousbusiness/gotosocial/pulls/2200) ### Early 2024 diff --git a/archive/design/reports.md b/archive/design/reports.md index a0ba0623c..fbe507d4c 100644 --- a/archive/design/reports.md +++ b/archive/design/reports.md @@ -95,7 +95,7 @@ todo ### Friendica -Unsure: Friendica and GoToSocial still don't federate properly with one another (https://github.com/superseriousbusiness/gotosocial/issues/169) so it's hard to test this. +Unsure: Friendica and GoToSocial still don't federate properly with one another (https://codeberg.org/superseriousbusiness/gotosocial/issues/169) so it's hard to test this. ## What should GoToSocial do? diff --git a/archive/nlnet/2022-next-generation-internet-zero.md b/archive/nlnet/2022-next-generation-internet-zero.md index 7990b7ffc..245eca950 100644 --- a/archive/nlnet/2022-next-generation-internet-zero.md +++ b/archive/nlnet/2022-next-generation-internet-zero.md @@ -10,7 +10,7 @@ GoToSocial > Website / wiki -https://github.com/superseriousbusiness/gotosocial / https://docs.gotosocial.org +https://codeberg.org/superseriousbusiness/gotosocial / https://docs.gotosocial.org > Abstract: Can you explain the whole project and its expected outcome(s). (you have 1200 characters) @@ -87,8 +87,8 @@ Thirdly, we want to make GtS as customizable as possible by allowing admins to e The main technical challenges we foresee on the project are: -1. Ensuring compatibility with other AP servers (see here: https://github.com/superseriousbusiness/gotosocial/projects/4). -2. Ensuring compatibility with clients that use the Mastodon API (see here: https://github.com/superseriousbusiness/gotosocial/projects/5). +1. Ensuring compatibility with other AP servers (see here: https://codeberg.org/superseriousbusiness/gotosocial/projects/4). +2. Ensuring compatibility with clients that use the Mastodon API (see here: https://codeberg.org/superseriousbusiness/gotosocial/projects/5). 3. Designing nuanced federation safety features that allow instance admins to screen federation without totally breaking it. This will require careful design discussions and lots of testing. 4. Implementing our own open-source http signature library with a reference implementation of the latest draft of the http signature proposal: https://httpwg.org/http-extensions/draft-ietf-httpbis-message-signatures.html. 5. Writing + maintaining our own extensions to the AP protocol (see below). diff --git a/archive/nlnet/2022-user-operated-internet-fund.md b/archive/nlnet/2022-user-operated-internet-fund.md index 0aadf598d..55950bf19 100644 --- a/archive/nlnet/2022-user-operated-internet-fund.md +++ b/archive/nlnet/2022-user-operated-internet-fund.md @@ -10,7 +10,7 @@ GoToSocial > Website / wiki -https://github.com/superseriousbusiness/gotosocial / https://docs.gotosocial.org +https://codeberg.org/superseriousbusiness/gotosocial / https://docs.gotosocial.org > Abstract: Can you explain the whole project and its expected outcome(s). (you have 1200 characters) @@ -20,7 +20,7 @@ GtS emphasizes user safety and privacy. Unlike other AP servers, it always requi GtS values ease of deployment and maintenance; this means low system requirements, simple configuration, minimal external dependencies, and clear documentation. GtS makes it easy + affordable for self-hosting newcomers to set up a Fediverse server on low- (or even solar-) powered equipment they might have lying around at home. -GtS began development in Feb 2021. It is still in Alpha, and we hope to use NLNet funding to bring it up to the Beta phase. The project roadmap (https://github.com/superseriousbusiness/gotosocial/blob/main/ROADMAP.md) gives more information on what we have planned. +GtS began development in Feb 2021. It is still in Alpha, and we hope to use NLNet funding to bring it up to the Beta phase. The project roadmap (https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/ROADMAP.md) gives more information on what we have planned. > Have you been involved with projects or organisations relevant to this project before? And if so, can you tell us a bit about your contributions? (Optional) This can help us determine if you are the right person to undertake this effort. @@ -45,7 +45,7 @@ Aside from GoToSocial, I've also made small PRs upstream to the ActivityPub libr Currently, GoToSocial receives about €22/week from LiberaPay donations - https://liberapay.com/gotosocial. I have been paying my own costs for working on the project from my savings, which is unfortunately not sustainable for a lot longer. -The requested NLNet budget will be used to fund the remaining Alpha portion of development, and bring GoToSocial into the Beta phase (see the roadmap - https://github.com/superseriousbusiness/gotosocial/blob/main/ROADMAP.md). In practical terms, this means paying myself to work full time on the project for one year, and paying for contributions from other developers as well. +The requested NLNet budget will be used to fund the remaining Alpha portion of development, and bring GoToSocial into the Beta phase (see the roadmap - https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/ROADMAP.md). In practical terms, this means paying myself to work full time on the project for one year, and paying for contributions from other developers as well. To pay my living costs + rent I need to make about €2,000/month after tax, working full time. In Belgium, that equates to about €3,000/month, which is €36,000 for one year of work. Naively calculated at 40 hours / week, that's €18.75 per hour. @@ -83,8 +83,8 @@ Thirdly, we want to make GtS as customizable as possible by allowing admins to e The main technical challenges we foresee on the project are: -1. Ensuring compatibility with other AP servers (see here: https://github.com/superseriousbusiness/gotosocial/projects/4). -2. Ensuring compatibility with clients that use the Mastodon API (see here: https://github.com/superseriousbusiness/gotosocial/projects/5). +1. Ensuring compatibility with other AP servers (see here: https://codeberg.org/superseriousbusiness/gotosocial/projects/4). +2. Ensuring compatibility with clients that use the Mastodon API (see here: https://codeberg.org/superseriousbusiness/gotosocial/projects/5). 3. Designing nuanced federation safety features that allow instance admins to screen federation without totally breaking it. This will require careful design discussions and lots of testing. 4. Implementing our own open-source http signature library with a reference implementation of the latest draft of the http signature proposal: https://httpwg.org/http-extensions/draft-ietf-httpbis-message-signatures.html. 5. Writing + maintaining our own extensions to the AP protocol (see below). diff --git a/archive/nlnet/2025-ngi-zero-commons-fund.md b/archive/nlnet/2025-ngi-zero-commons-fund.md index ffb788b56..3337fcf22 100644 --- a/archive/nlnet/2025-ngi-zero-commons-fund.md +++ b/archive/nlnet/2025-ngi-zero-commons-fund.md @@ -10,7 +10,7 @@ GoToSocial > Website / wiki -https://github.com/superseriousbusiness/gotosocial / https://docs.gotosocial.org +https://codeberg.org/superseriousbusiness/gotosocial / https://docs.gotosocial.org > Abstract: Can you explain the whole project and its expected outcome(s). (you have 1200 characters) @@ -106,13 +106,13 @@ Other technical challenges we will (continue to) address in the near future are Much of the work we do involves debugging and solving interoperability issues with other federated softwares, which requires keeping communication channels open with the maintainers of those, and figuring out who needs to change what in order for the issue to be resolved. We've done that a lot over the last year or so: - Fixed interop with Bandwagon: https://github.com/EmissarySocial/bandwagon/issues/152 -- Fixed interop with Iceshrimp: https://github.com/superseriousbusiness/gotosocial/issues/1947 -- Coordinated interop with Mastodon: https://github.com/superseriousbusiness/gotosocial/pull/3703 -- Fixed federation with Gancio: https://github.com/superseriousbusiness/gotosocial/issues/3875 +- Fixed interop with Iceshrimp: https://codeberg.org/superseriousbusiness/gotosocial/issues/1947 +- Coordinated interop with Mastodon: https://codeberg.org/superseriousbusiness/gotosocial/pulls/3703 +- Fixed federation with Gancio: https://codeberg.org/superseriousbusiness/gotosocial/issues/3875 - Alerted Pixelfed of AP serialization issues: https://github.com/pixelfed/pixelfed/issues/5642 - Cajoled Bluesky into adding user-agent headers: https://github.com/bluesky-social/atproto/issues/3504 - Help out Writefreely with http signature request issues: https://github.com/writefreely/writefreely/issues/661#issuecomment-1951367449 -- Debug federation with Lemmy along with one of the Lemmy devs: https://github.com/superseriousbusiness/gotosocial/issues/2697 +- Debug federation with Lemmy along with one of the Lemmy devs: https://codeberg.org/superseriousbusiness/gotosocial/issues/2697 For GoToSocial-specific extensions to ActivityPub, we've also diligently documented what we've done so far, and exposed a GoToSocial namespace so that remote softwares can easily incorporate GtS extensions if they want to: https://docs.gotosocial.org/en/latest/federation/interaction_policy/, https://gotosocial.org/ns. diff --git a/cmd/gen-ulid/main.go b/cmd/gen-ulid/main.go index f96df4415..f6e3f4b84 100644 --- a/cmd/gen-ulid/main.go +++ b/cmd/gen-ulid/main.go @@ -17,6 +17,6 @@ package main -import "github.com/superseriousbusiness/gotosocial/internal/id" +import "code.superseriousbusiness.org/gotosocial/internal/id" func main() { println(id.NewULID()) } diff --git a/cmd/gotosocial/action/admin/account/account.go b/cmd/gotosocial/action/admin/account/account.go index 7486e9657..2c12f90bb 100644 --- a/cmd/gotosocial/action/admin/account/account.go +++ b/cmd/gotosocial/action/admin/account/account.go @@ -24,14 +24,14 @@ import ( "text/tabwriter" "time" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/validate" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/validate" "golang.org/x/crypto/bcrypt" ) diff --git a/cmd/gotosocial/action/admin/media/list.go b/cmd/gotosocial/action/admin/media/list.go index e80c0da51..a07bf4145 100644 --- a/cmd/gotosocial/action/admin/media/list.go +++ b/cmd/gotosocial/action/admin/media/list.go @@ -25,14 +25,14 @@ import ( "os" "path" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "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/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/state" ) type list struct { diff --git a/cmd/gotosocial/action/admin/media/prune/all.go b/cmd/gotosocial/action/admin/media/prune/all.go index b334feb6d..9c2a6a99f 100644 --- a/cmd/gotosocial/action/admin/media/prune/all.go +++ b/cmd/gotosocial/action/admin/media/prune/all.go @@ -20,10 +20,10 @@ package prune import ( "context" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // All performs all media clean actions diff --git a/cmd/gotosocial/action/admin/media/prune/common.go b/cmd/gotosocial/action/admin/media/prune/common.go index fce445fb0..70679e7c2 100644 --- a/cmd/gotosocial/action/admin/media/prune/common.go +++ b/cmd/gotosocial/action/admin/media/prune/common.go @@ -21,13 +21,13 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/state" - gtsstorage "github.com/superseriousbusiness/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/state" + gtsstorage "code.superseriousbusiness.org/gotosocial/internal/storage" ) type prune struct { diff --git a/cmd/gotosocial/action/admin/media/prune/orphaned.go b/cmd/gotosocial/action/admin/media/prune/orphaned.go index e9cb27256..4894e8900 100644 --- a/cmd/gotosocial/action/admin/media/prune/orphaned.go +++ b/cmd/gotosocial/action/admin/media/prune/orphaned.go @@ -20,10 +20,10 @@ package prune import ( "context" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // Orphaned prunes orphaned media from storage. diff --git a/cmd/gotosocial/action/admin/media/prune/remote.go b/cmd/gotosocial/action/admin/media/prune/remote.go index 5efa5602a..fdb3a3ce9 100644 --- a/cmd/gotosocial/action/admin/media/prune/remote.go +++ b/cmd/gotosocial/action/admin/media/prune/remote.go @@ -21,10 +21,10 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // Remote prunes old and/or unused remote media. diff --git a/cmd/gotosocial/action/admin/trans/export.go b/cmd/gotosocial/action/admin/trans/export.go index dae2db7db..8984a2bab 100644 --- a/cmd/gotosocial/action/admin/trans/export.go +++ b/cmd/gotosocial/action/admin/trans/export.go @@ -22,11 +22,11 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/trans" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/trans" ) // Export exports info from the database into a file diff --git a/cmd/gotosocial/action/admin/trans/import.go b/cmd/gotosocial/action/admin/trans/import.go index d34c816bb..00762bee3 100644 --- a/cmd/gotosocial/action/admin/trans/import.go +++ b/cmd/gotosocial/action/admin/trans/import.go @@ -22,11 +22,11 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/trans" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/trans" ) // Import imports info from a file into the database diff --git a/cmd/gotosocial/action/debug/config/config.go b/cmd/gotosocial/action/debug/config/config.go index b286ed3e1..bc2c379ca 100644 --- a/cmd/gotosocial/action/debug/config/config.go +++ b/cmd/gotosocial/action/debug/config/config.go @@ -22,8 +22,8 @@ import ( "encoding/json" "os" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" ) // Config just prints the collated config out to stdout as json. diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go index 4caf44cad..a9fc659d8 100644 --- a/cmd/gotosocial/action/server/server.go +++ b/cmd/gotosocial/action/server/server.go @@ -30,43 +30,43 @@ import ( "syscall" "time" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/federation/federatingdb" + "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/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/media/ffmpeg" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/oauth/handlers" + "code.superseriousbusiness.org/gotosocial/internal/observability" + "code.superseriousbusiness.org/gotosocial/internal/oidc" + "code.superseriousbusiness.org/gotosocial/internal/processing" + tlprocessor "code.superseriousbusiness.org/gotosocial/internal/processing/timeline" + "code.superseriousbusiness.org/gotosocial/internal/router" + "code.superseriousbusiness.org/gotosocial/internal/state" + gtsstorage "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "code.superseriousbusiness.org/gotosocial/internal/timeline" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/web" + "code.superseriousbusiness.org/gotosocial/internal/webpush" "github.com/KimMachineGun/automemlimit/memlimit" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb" - "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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/oauth/handlers" - "github.com/superseriousbusiness/gotosocial/internal/observability" - "github.com/superseriousbusiness/gotosocial/internal/oidc" - "github.com/superseriousbusiness/gotosocial/internal/processing" - tlprocessor "github.com/superseriousbusiness/gotosocial/internal/processing/timeline" - "github.com/superseriousbusiness/gotosocial/internal/router" - "github.com/superseriousbusiness/gotosocial/internal/state" - gtsstorage "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/timeline" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/web" - "github.com/superseriousbusiness/gotosocial/internal/webpush" "go.uber.org/automaxprocs/maxprocs" ) diff --git a/cmd/gotosocial/action/testrig/no_testrig.go b/cmd/gotosocial/action/testrig/no_testrig.go index 7205ecf6b..07e9960dc 100644 --- a/cmd/gotosocial/action/testrig/no_testrig.go +++ b/cmd/gotosocial/action/testrig/no_testrig.go @@ -19,7 +19,7 @@ package testrig -import "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" +import "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" // Start creates and starts a gotosocial testrig server. // This is only enabled in debug builds, else is nil. diff --git a/cmd/gotosocial/action/testrig/testrig.go b/cmd/gotosocial/action/testrig/testrig.go index c0c080e38..245421ab3 100644 --- a/cmd/gotosocial/action/testrig/testrig.go +++ b/cmd/gotosocial/action/testrig/testrig.go @@ -28,29 +28,29 @@ import ( "os/signal" "syscall" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/language" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/observability" + "code.superseriousbusiness.org/gotosocial/internal/oidc" + tlprocessor "code.superseriousbusiness.org/gotosocial/internal/processing/timeline" + "code.superseriousbusiness.org/gotosocial/internal/router" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "code.superseriousbusiness.org/gotosocial/internal/timeline" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/web" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/language" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/observability" - "github.com/superseriousbusiness/gotosocial/internal/oidc" - tlprocessor "github.com/superseriousbusiness/gotosocial/internal/processing/timeline" - "github.com/superseriousbusiness/gotosocial/internal/router" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/timeline" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/web" - "github.com/superseriousbusiness/gotosocial/testrig" ) // Start creates and starts a gotosocial testrig server. diff --git a/cmd/gotosocial/admin.go b/cmd/gotosocial/admin.go index 41eb40633..63c37a7ce 100644 --- a/cmd/gotosocial/admin.go +++ b/cmd/gotosocial/admin.go @@ -18,12 +18,12 @@ package main import ( + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/admin/account" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/admin/media" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/admin/media/prune" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/admin/trans" + "code.superseriousbusiness.org/gotosocial/internal/config" "github.com/spf13/cobra" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/admin/account" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/admin/media" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/admin/media/prune" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/admin/trans" - "github.com/superseriousbusiness/gotosocial/internal/config" ) func adminCommands() *cobra.Command { diff --git a/cmd/gotosocial/common.go b/cmd/gotosocial/common.go index baf8a15b5..bc27f0147 100644 --- a/cmd/gotosocial/common.go +++ b/cmd/gotosocial/common.go @@ -21,10 +21,10 @@ import ( "context" "fmt" + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/spf13/cobra" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" ) type preRunArgs struct { diff --git a/cmd/gotosocial/debug.go b/cmd/gotosocial/debug.go index c01baeb8b..4b819e8a6 100644 --- a/cmd/gotosocial/debug.go +++ b/cmd/gotosocial/debug.go @@ -18,9 +18,9 @@ package main import ( + configaction "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/debug/config" + "code.superseriousbusiness.org/gotosocial/internal/config" "github.com/spf13/cobra" - configaction "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/debug/config" - "github.com/superseriousbusiness/gotosocial/internal/config" ) func debugCommands() *cobra.Command { diff --git a/cmd/gotosocial/main.go b/cmd/gotosocial/main.go index 7d45c126d..a79b6a75c 100644 --- a/cmd/gotosocial/main.go +++ b/cmd/gotosocial/main.go @@ -25,8 +25,8 @@ import ( "github.com/spf13/cobra" - _ "github.com/superseriousbusiness/gotosocial/docs" - "github.com/superseriousbusiness/gotosocial/internal/config" + _ "code.superseriousbusiness.org/gotosocial/docs" + "code.superseriousbusiness.org/gotosocial/internal/config" ) // Version is the version of GoToSocial being used. @@ -45,7 +45,7 @@ func main() { rootCmd := &cobra.Command{ Use: "gotosocial", Short: "GoToSocial - a fediverse social media server", - Long: "GoToSocial - a fediverse social media server\n\nFor help, see: https://docs.gotosocial.org.\n\nCode: https://github.com/superseriousbusiness/gotosocial", + Long: "GoToSocial - a fediverse social media server\n\nFor help, see: https://docs.gotosocial.org.\n\nCode: https://codeberg.org/superseriousbusiness/gotosocial", Version: version, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { // before running any other cmd funcs, we must load config-path diff --git a/cmd/gotosocial/server.go b/cmd/gotosocial/server.go index da571ec3f..8b316aca8 100644 --- a/cmd/gotosocial/server.go +++ b/cmd/gotosocial/server.go @@ -18,9 +18,9 @@ package main import ( + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/server" + "code.superseriousbusiness.org/gotosocial/internal/config" "github.com/spf13/cobra" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/server" - "github.com/superseriousbusiness/gotosocial/internal/config" ) // serverCommands returns the 'server' subcommand diff --git a/cmd/gotosocial/testrig.go b/cmd/gotosocial/testrig.go index 124fc1105..ee21b7312 100644 --- a/cmd/gotosocial/testrig.go +++ b/cmd/gotosocial/testrig.go @@ -18,8 +18,8 @@ package main import ( + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/testrig" "github.com/spf13/cobra" - "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/testrig" ) func testrigCommands() *cobra.Command { diff --git a/cmd/process-emoji/main.go b/cmd/process-emoji/main.go index d43962d88..04d9b074b 100644 --- a/cmd/process-emoji/main.go +++ b/cmd/process-emoji/main.go @@ -24,15 +24,15 @@ import ( "os/signal" "syscall" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/media/ffmpeg" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-storage/memory" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/util" ) func main() { diff --git a/cmd/process-media/main.go b/cmd/process-media/main.go index 27d1de201..1246fecfc 100644 --- a/cmd/process-media/main.go +++ b/cmd/process-media/main.go @@ -27,15 +27,15 @@ import ( "syscall" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/media/ffmpeg" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" "codeberg.org/gruf/go-storage/memory" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" ) func main() { diff --git a/docs/admin/backup_and_restore.md b/docs/admin/backup_and_restore.md index 83059c9e6..8f055e920 100644 --- a/docs/admin/backup_and_restore.md +++ b/docs/admin/backup_and_restore.md @@ -178,7 +178,7 @@ hooks: For PostgreSQL, you'll want to use `postgresql_databases` instead. -The file mentioned in `patterns_from` can be created by transforming the output from the GoToSocial CLI media [`list-attachments`](cli.md#gotosocial-admin-media-list-attachments) and [`list-emojis`](cli.md#gotosocial-admin-media-list-emojis) commands. In order to generate the right patterns you can use the [`media-to-borg-patterns.py`](https://github.com/superseriousbusiness/gotosocial/tree/main/example/borgmatic/media-to-borg-patterns.py) script. How Borg patterns work is explained in [their documentation](https://man.archlinux.org/man/borg-patterns.1). +The file mentioned in `patterns_from` can be created by transforming the output from the GoToSocial CLI media [`list-attachments`](cli.md#gotosocial-admin-media-list-attachments) and [`list-emojis`](cli.md#gotosocial-admin-media-list-emojis) commands. In order to generate the right patterns you can use the [`media-to-borg-patterns.py`](https://codeberg.org/superseriousbusiness/gotosocial/tree/main/example/borgmatic/media-to-borg-patterns.py) script. How Borg patterns work is explained in [their documentation](https://man.archlinux.org/man/borg-patterns.1). You'll need to put that file on your GoToSocial instance and make sure the file is executable. It requires Python 3 which you will already have if you have Borg and Borgmatic installed. It only depends on the Python standard library. diff --git a/docs/admin/cli.md b/docs/admin/cli.md index e4fc461c9..5029f25c2 100644 --- a/docs/admin/cli.md +++ b/docs/admin/cli.md @@ -13,7 +13,7 @@ GoToSocial - a fediverse social media server For help, see: https://docs.gotosocial.org. -Code: https://github.com/superseriousbusiness/gotosocial +Code: https://codeberg.org/superseriousbusiness/gotosocial Usage: gotosocial [command] @@ -57,6 +57,9 @@ Contains `account`, `export`, `import`, and `media` subcommands. This command can be used to create a new account on your instance. +!!! Warning + You must have launched the server at least once before running this command, to initialize essential entries in the database. + `gotosocial admin account create --help`: ```text diff --git a/docs/admin/domain_permission_subscriptions.md b/docs/admin/domain_permission_subscriptions.md index 78518e187..6c4326a3f 100644 --- a/docs/admin/domain_permission_subscriptions.md +++ b/docs/admin/domain_permission_subscriptions.md @@ -37,7 +37,7 @@ Domain permission subscriptions make it possible to easily create allowlist-fede For example, instances `instance-a.example.org`, `instance-b.example.org`, and `instance-c.example.org` decide that they only want to federate with each other. -Using some version management platform like GitHub, they host a plaintext-formatted allowlist at something like `https://raw.githubusercontent.com/our-cluster/allowlist/refs/heads/main/allows.txt`. +Using some version management platform like Codeberg, they host a plaintext-formatted allowlist at something like `https://codeberg.org/our-cluster/allowlist/raw/branch/main/allows.txt`. The contents of the plaintext-formatted allowlist are as follows: @@ -47,7 +47,7 @@ instance-b.example.org instance-c.example.org ``` -Each instance admin sets their federation mode to `allowlist`, and creates a subscription to create allows from `https://raw.githubusercontent.com/our-cluster/allowlist/refs/heads/main/allows.txt`, which results in domain allow entries being created for their own domain, and for each other domain in the cluster. +Each instance admin sets their federation mode to `allowlist`, and creates a subscription to create allows from `https://codeberg.org/our-cluster/allowlist/raw/branch/main/allows.txt`, which results in domain allow entries being created for their own domain, and for each other domain in the cluster. At some point, someone from `instance-d.example.org` asks (out of band) whether they can be added to the cluster. The existing admins agree, and update their plaintext-formatted allowlist to read: @@ -66,7 +66,7 @@ Domain permission subscriptions make it easy to collaborate on and subscribe to For example, the admins of instances `instance-e.example.org`, `instance-f.example.org`, and `instance-g.example.org` decide that they are tired of duplicating work by playing whack-a-mole with bad actors. To make their lives easier, they decide to collaborate on a shared blocklist. -Using some version management platform like GitHub, they host a blocklist at something like `https://raw.githubusercontent.com/baddies/blocklist/refs/heads/main/blocks.csv`. +Using some version management platform like Codeberg, they host a blocklist at something like `https://codeberg.org/our-cluster/allowlist/raw/branch/main/blocks.csv`. When someone discovers a new domain hosting an instance they don't like, they can open a pull request or similar against the list, to add the questionable instance to the domain. diff --git a/docs/admin/federation_modes.md b/docs/admin/federation_modes.md index dac1e178f..1aff20d68 100644 --- a/docs/admin/federation_modes.md +++ b/docs/admin/federation_modes.md @@ -31,13 +31,18 @@ When your instance encounters a mention or an announce of a status or account it ## Combining blocks and allows -It is possible to both block and allow the same domain, and the effect of combining these two things depends on which federation mode your instance is currently using. +!!! danger + Combining blocks and allows is a tricky business! + + When importing lists of allows and blocks, you should always review the list manually to make sure that you do not inadvertently block a domain that you would prefer not to block, since this can have **very annoying side effects** like removing follows/following, statuses, etc. + + When in doubt, always add an explicit allow first as an insurance policy! -![A flow chart diagram showing how the two different federation modes treat incoming requests.](../public/diagrams/federation_modes.png) +It is possible to both block and allow the same domain, and the effect of combining these two things depends on which federation mode your instance is currently using, as explained in the following subsections, which are summarised in a flowchart that you can find below. ### In blocklist mode -As the chart shows, in blocklist mode (the left-hand part of the diagram), an explicit domain allow can be used to override a domain block. +As the chart below shows, in blocklist mode (the left-hand part of the diagram), an explicit domain allow can be used to override a domain block. This is useful in cases where you are importing a blocklist from someone else, but the imported blocklist contains some instances you would actually prefer not to block. To avoid blocking those instances, you can create explicit domain allows for those instances first. Then, when you import the block list, the explicitly allowed domains will not be blocked, and the side effects of creating a block (deleting statuses, media, relationships etc) will not be processed. @@ -47,16 +52,11 @@ Conversely, if you add an explicit allow for a domain that was blocked, the side ### In allowlist mode -As the chart shows, in allowlist mode (the right-hand part of the diagram) an explicit domain block trumps an explicit domain allow. The following two things must be true in order for an instance to be allowed through, when running in allowlist mode: +As the chart below shows, in allowlist mode (the right-hand part of the diagram) an explicit domain block trumps an explicit domain allow. The following two things must be true in order for an instance to be allowed through, when running in allowlist mode: 1. An explicit domain block **does not exist** for the instance. 2. An explicit domain allow **does exist** for the instance. If either of the above conditions are not met, the request will be denied. -!!! danger - Combining blocks and allows is a tricky business! - - When importing lists of allows and blocks, you should always review the list manually to make sure that you do not inadvertently block a domain that you would prefer not to block, since this can have **very annoying side effects** like removing follows/following, statuses, etc. - - When in doubt, always add an explicit allow first as an insurance policy! +![A flow chart diagram showing how the two different federation modes treat incoming requests.](../public/diagrams/federation_modes.png) diff --git a/docs/advanced/security/sandboxing.md b/docs/advanced/security/sandboxing.md index 41b9f2eb3..72c1d116e 100644 --- a/docs/advanced/security/sandboxing.md +++ b/docs/advanced/security/sandboxing.md @@ -18,7 +18,7 @@ Different distributions have different sandboxing mechanisms they prefer and sup We ship an example AppArmor policy for GoToSocial, which you can retrieve and install as follows: ```sh -$ curl -LO 'https://github.com/superseriousbusiness/gotosocial/raw/main/example/apparmor/gotosocial' +$ curl -LO 'https://codeberg.org/superseriousbusiness/gotosocial/raw/main/example/apparmor/gotosocial' $ sudo install -o root -g root gotosocial /etc/apparmor.d/gotosocial $ sudo apparmor_parser -Kr /etc/apparmor.d/gotosocial ``` diff --git a/docs/advanced/sqlite-networked-storage.md b/docs/advanced/sqlite-networked-storage.md index 77858752b..d880594ac 100644 --- a/docs/advanced/sqlite-networked-storage.md +++ b/docs/advanced/sqlite-networked-storage.md @@ -32,4 +32,4 @@ You'll need to update the following settings: * `db-sqlite-journal-mode` * `db-sqlite-synchronous` -We don't provide any recommendations as this will vary based on the solution you're using. See [this issue](https://github.com/superseriousbusiness/gotosocial/issues/3360#issuecomment-2380332027) for what you could potentially set those values to. +We don't provide any recommendations as this will vary based on the solution you're using. See [this issue](https://codeberg.org/superseriousbusiness/gotosocial/issues/3360#issuecomment-2380332027) for what you could potentially set those values to. diff --git a/docs/advanced/tracing.md b/docs/advanced/tracing.md index c06b449c3..4e6dea2c7 100644 --- a/docs/advanced/tracing.md +++ b/docs/advanced/tracing.md @@ -19,7 +19,7 @@ tracing-insecure-transport: true [obs]: ../configuration/observability.md [tempo]: https://grafana.com/oss/tempo/ [grafana]: https://grafana.com/oss/grafana/ -[ext]: https://github.com/superseriousbusiness/gotosocial/tree/main/example/tracing +[ext]: https://codeberg.org/superseriousbusiness/gotosocial/tree/main/example/tracing ## Querying and visualising traces diff --git a/docs/api/swagger.md b/docs/api/swagger.md index ae9670b9f..b83aae198 100644 --- a/docs/api/swagger.md +++ b/docs/api/swagger.md @@ -14,8 +14,8 @@ Most of the GoToSocial API endpoints require a user-level OAuth token. For a gui See the following issues for more context: - - [#1958](https://github.com/superseriousbusiness/gotosocial/issues/1958) - - [#1944](https://github.com/superseriousbusiness/gotosocial/issues/1944) - - [#2641](https://github.com/superseriousbusiness/gotosocial/issues/2641) + - [#1958](https://codeberg.org/superseriousbusiness/gotosocial/issues/1958) + - [#1944](https://codeberg.org/superseriousbusiness/gotosocial/issues/1944) + - [#2641](https://codeberg.org/superseriousbusiness/gotosocial/issues/2641) diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 011458723..59e698596 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -3,7 +3,7 @@ definitions: FilterAction: title: FilterAction is the action to apply to statuses matching a filter. type: string - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model InstanceConfigurationEmojis: properties: emoji_size_limit: @@ -14,7 +14,7 @@ definitions: x-go-name: EmojiSizeLimit title: InstanceConfigurationEmojis models instance emoji config parameters. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model Link: description: See https://webfinger.net/ and https://www.rfc-editor.org/rfc/rfc6415.html#section-3.1 properties: @@ -32,7 +32,7 @@ definitions: x-go-name: Type title: Link represents one 'link' in a slice of links returned from a lookup request. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model Mention: properties: acct: @@ -59,7 +59,7 @@ definitions: x-go-name: Username title: Mention represents a mention of another account. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model NodeInfoServices: properties: inbound: @@ -74,7 +74,7 @@ definitions: x-go-name: Outbound title: NodeInfoServices represents inbound and outbound services that this node offers connections to. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model NodeInfoSoftware: properties: homepage: @@ -97,7 +97,7 @@ definitions: x-go-name: Version title: NodeInfoSoftware represents the name and version number of the software of this node. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model NodeInfoUsage: properties: localComments: @@ -112,7 +112,7 @@ definitions: $ref: '#/definitions/NodeInfoUsers' title: NodeInfoUsage represents usage information about this server, such as number of users. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model NodeInfoUsers: properties: activeHalfYear: @@ -129,7 +129,7 @@ definitions: x-go-name: Total title: NodeInfoUsers represents aggregate information about the users on the server. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model Source: description: Returned as an additional entity when verifying and updated credentials, as an attribute of Account. properties: @@ -196,7 +196,7 @@ definitions: x-go-name: WebVisibility title: Source represents display or publishing preferences of user's own account. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model TimelineMarker: properties: last_read_id: @@ -214,11 +214,11 @@ definitions: x-go-name: Version title: TimelineMarker contains information about a user's progress through a specific timeline. type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model WebPushNotificationPolicy: title: WebPushNotificationPolicy names sets of accounts that can generate notifications. type: string - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model account: description: The modelled account can be either a remote account, or one on this instance. properties: @@ -400,7 +400,7 @@ definitions: title: Account models a fediverse account. type: object x-go-name: Account - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model accountDisplayRole: description: This is a subset of AccountRole. properties: @@ -423,7 +423,7 @@ definitions: title: AccountDisplayRole models a public, displayable role of an account. type: object x-go-name: AccountDisplayRole - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model accountExportStats: description: |- AccountExportStats models an account's stats @@ -473,7 +473,7 @@ definitions: x-go-name: StatusesCount type: object x-go-name: AccountExportStats - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model accountRelationship: properties: blocked_by: @@ -536,7 +536,7 @@ definitions: title: Relationship represents a relationship between accounts. type: object x-go-name: Relationship - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model accountRole: properties: color: @@ -568,7 +568,7 @@ definitions: title: AccountRole models the role of an account. type: object x-go-name: AccountRole - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model adminAccountInfo: properties: account: @@ -663,7 +663,7 @@ definitions: title: AdminAccountInfo models the admin view of an account's details. type: object x-go-name: AdminAccountInfo - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model adminActionResponse: description: |- AdminActionResponse models the server @@ -676,7 +676,7 @@ definitions: x-go-name: ActionID type: object x-go-name: AdminActionResponse - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model adminEmoji: properties: category: @@ -743,7 +743,7 @@ definitions: title: AdminEmoji models the admin view of a custom emoji. type: object x-go-name: AdminEmoji - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model adminReport: properties: account: @@ -824,7 +824,7 @@ definitions: title: AdminReport models the admin view of a report. type: object x-go-name: AdminReport - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model application: properties: client_id: @@ -880,7 +880,7 @@ definitions: title: Application models an api application. type: object x-go-name: Application - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model attachment: properties: blurhash: @@ -939,7 +939,7 @@ definitions: title: Attachment models a media attachment. type: object x-go-name: Attachment - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model card: properties: author_name: @@ -1012,7 +1012,7 @@ definitions: title: Card represents a rich preview card that is generated using OpenGraph tags from a URL. type: object x-go-name: Card - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model conversation: description: |- Conversation represents a conversation @@ -1041,7 +1041,7 @@ definitions: x-go-name: Unread type: object x-go-name: Conversation - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model debugAPUrlResponse: description: |- DebugAPUrlResponse provides detailed debug @@ -1081,7 +1081,7 @@ definitions: x-go-name: ResponseHeaders type: object x-go-name: DebugAPUrlResponse - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model defaultPolicies: properties: direct: @@ -1095,7 +1095,7 @@ definitions: title: Default interaction policies to use for new statuses by requesting account. type: object x-go-name: DefaultPolicies - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model domain: description: Domain represents a remote domain properties: @@ -1130,7 +1130,7 @@ definitions: x-go-name: SuspendedAt type: object x-go-name: Domain - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model domainPermission: properties: comment: @@ -1202,7 +1202,7 @@ definitions: title: DomainPermission represents a permission applied to one domain (explicit block/allow). type: object x-go-name: DomainPermission - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model domainPermissionSubscription: properties: adopt_orphans: @@ -1296,7 +1296,7 @@ definitions: title: DomainPermissionSubscription represents an auto-refreshing subscription to a list of domain permissions (allows, blocks). type: object x-go-name: DomainPermissionSubscription - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model emoji: properties: category: @@ -1327,7 +1327,7 @@ definitions: title: Emoji represents a custom emoji. type: object x-go-name: Emoji - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model emojiCategory: properties: id: @@ -1341,7 +1341,7 @@ definitions: title: EmojiCategory represents a custom emoji category. type: object x-go-name: EmojiCategory - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model field: properties: name: @@ -1362,13 +1362,13 @@ definitions: title: Field represents a name/value pair to display on an account's profile. type: object x-go-name: Field - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterContext: description: v1 and v2 filter APIs use the same set of contexts. title: FilterContext represents the context in which to apply a filter. type: string x-go-name: FilterContext - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterKeyword: properties: id: @@ -1388,7 +1388,7 @@ definitions: title: FilterKeyword represents text to filter within a v2 filter. type: object x-go-name: FilterKeyword - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterResult: properties: filter: @@ -1408,7 +1408,7 @@ definitions: title: FilterResult is returned along with a filtered status to explain why it was filtered. type: object x-go-name: FilterResult - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterStatus: properties: id: @@ -1422,7 +1422,7 @@ definitions: title: FilterStatus represents a single status to filter within a v2 filter. type: object x-go-name: FilterStatus - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterV1: description: |- Note that v1 filters are mapped to v2 filters and v2 filter keywords internally. @@ -1471,7 +1471,7 @@ definitions: title: FilterV1 represents a user-defined filter for determining which statuses should not be shown to the user. type: object x-go-name: FilterV1 - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterV2: description: v2 filters have names and can include multiple phrases and status IDs to filter. properties: @@ -1517,7 +1517,7 @@ definitions: title: FilterV2 represents a user-defined filter for determining which statuses should not be shown to the user. type: object x-go-name: FilterV2 - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model headerFilter: properties: created_at: @@ -1551,7 +1551,7 @@ definitions: title: HeaderFilter represents a regex value filter applied to one particular HTTP header (allow / block). type: object x-go-name: HeaderFilter - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model hostmeta: description: 'See: https://www.rfc-editor.org/rfc/rfc6415.html#section-3' properties: @@ -1565,7 +1565,7 @@ definitions: title: HostMeta represents a hostmeta document. type: object x-go-name: HostMeta - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceConfigurationAccounts: properties: allow_custom_css: @@ -1583,14 +1583,14 @@ definitions: max_profile_fields: description: |- 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) format: int64 type: integer x-go-name: MaxProfileFields title: InstanceConfigurationAccounts models instance account config parameters. type: object x-go-name: InstanceConfigurationAccounts - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceConfigurationMediaAttachments: properties: image_matrix_limit: @@ -1643,7 +1643,7 @@ definitions: title: InstanceConfigurationMediaAttachments models instance media attachment config parameters. type: object x-go-name: InstanceConfigurationMediaAttachments - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceConfigurationPolls: properties: max_characters_per_option: @@ -1673,7 +1673,7 @@ definitions: title: InstanceConfigurationPolls models instance poll config parameters. type: object x-go-name: InstanceConfigurationPolls - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceConfigurationStatuses: properties: characters_reserved_per_url: @@ -1706,7 +1706,7 @@ definitions: title: InstanceConfigurationStatuses models instance status config parameters. type: object x-go-name: InstanceConfigurationStatuses - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceRule: properties: id: @@ -1718,7 +1718,7 @@ definitions: title: InstanceRule represents a single instance rule. type: object x-go-name: InstanceRule - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV1: properties: account_domain: @@ -1875,7 +1875,7 @@ definitions: title: InstanceV1 models information about this instance. type: object x-go-name: InstanceV1 - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV1Configuration: properties: accounts: @@ -1895,7 +1895,7 @@ definitions: title: InstanceV1Configuration models instance configuration parameters. type: object x-go-name: InstanceV1Configuration - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV1URLs: properties: streaming_api: @@ -1906,7 +1906,7 @@ definitions: title: InstanceV1URLs models instance-relevant URLs for client application consumption. type: object x-go-name: InstanceV1URLs - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2: properties: account_domain: @@ -1965,7 +1965,7 @@ definitions: x-go-name: Rules source_url: description: 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 type: string x-go-name: SourceURL terms: @@ -1998,7 +1998,7 @@ definitions: title: InstanceV2 models information about this instance. type: object x-go-name: InstanceV2 - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Configuration: properties: accounts: @@ -2024,7 +2024,7 @@ definitions: title: Configured values and limits for this instance. type: object x-go-name: InstanceV2Configuration - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2ConfigurationTranslation: properties: enabled: @@ -2036,7 +2036,7 @@ definitions: title: Hints related to translation. type: object x-go-name: InstanceV2ConfigurationTranslation - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2ConfigurationVAPID: properties: public_key: @@ -2046,7 +2046,7 @@ definitions: title: InstanceV2ConfigurationVAPID holds the instance's VAPID configuration. type: object x-go-name: InstanceV2ConfigurationVAPID - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Contact: properties: account: @@ -2061,7 +2061,7 @@ definitions: title: Hints related to contacting a representative of the instance. type: object x-go-name: InstanceV2Contact - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Registrations: properties: approval_required: @@ -2084,7 +2084,7 @@ definitions: title: Information about registering for this instance. type: object x-go-name: InstanceV2Registrations - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Thumbnail: properties: blurhash: @@ -2130,7 +2130,7 @@ definitions: title: An image used to represent this instance. type: object x-go-name: InstanceV2Thumbnail - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2ThumbnailVersions: properties: '@1x': @@ -2148,7 +2148,7 @@ definitions: title: Links to scaled resolution images, for high DPI screens. type: object x-go-name: InstanceV2ThumbnailVersions - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2URLs: properties: streaming: @@ -2159,7 +2159,7 @@ definitions: title: InstanceV2URLs models instance-relevant URLs for client application consumption. type: object x-go-name: InstanceV2URLs - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Usage: properties: users: @@ -2167,7 +2167,7 @@ definitions: title: Usage data for this instance. type: object x-go-name: InstanceV2Usage - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Users: properties: active_month: @@ -2181,7 +2181,7 @@ definitions: title: Usage data related to users on this instance. type: object x-go-name: InstanceV2Users - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model interactionPolicy: properties: can_favourite: @@ -2193,7 +2193,7 @@ definitions: title: Interaction policy of a status. type: object x-go-name: InteractionPolicy - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model interactionPolicyRules: properties: always: @@ -2211,7 +2211,7 @@ definitions: title: Rules for one interaction type. type: object x-go-name: PolicyRules - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model interactionPolicyValue: description: |- It can be EITHER one of the internal keywords listed below, OR a full-fledged ActivityPub URI of an Actor, like "https://example.org/users/some_user". @@ -2228,7 +2228,7 @@ definitions: title: One interaction policy entry for a status. type: string x-go-name: PolicyValue - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model interactionRequest: properties: accepted_at: @@ -2269,7 +2269,7 @@ definitions: title: InteractionRequest represents a pending, approved, or rejected interaction of type favourite, reply, or reblog. type: object x-go-name: InteractionRequest - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model list: properties: exclusive: @@ -2297,7 +2297,7 @@ definitions: title: List represents a user-created list of accounts that the user follows. type: object x-go-name: List - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model markers: properties: home: @@ -2307,7 +2307,7 @@ definitions: title: Marker represents the last read position within a user's timelines. type: object x-go-name: Marker - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model mediaDimensions: properties: aspect: @@ -2365,7 +2365,7 @@ definitions: title: MediaDimensions models detailed properties of a piece of media. type: object x-go-name: MediaDimensions - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model mediaFocus: properties: x: @@ -2385,7 +2385,7 @@ definitions: title: MediaFocus models the focal point of a piece of media. type: object x-go-name: MediaFocus - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model mediaMeta: description: This can be metadata about an image, an audio file, video, etc. properties: @@ -2398,7 +2398,7 @@ definitions: title: MediaMeta models media metadata. type: object x-go-name: MediaMeta - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model mutedAccount: properties: acct: @@ -2586,7 +2586,7 @@ definitions: title: MutedAccount extends Account with a field used only by the muted user list. type: object x-go-name: MutedAccount - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model nodeinfo: description: 'See: https://nodeinfo.diaspora.software/schema.html' properties: @@ -2620,7 +2620,7 @@ definitions: title: Nodeinfo represents a version 2.1 or version 2.0 nodeinfo schema. type: object x-go-name: Nodeinfo - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model notification: properties: account: @@ -2651,7 +2651,7 @@ definitions: title: Notification represents a notification of an event relevant to the user. type: object x-go-name: Notification - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model oauthToken: properties: access_token: @@ -2677,7 +2677,7 @@ definitions: title: Token represents an OAuth token used for authenticating with the GoToSocial API and performing actions. type: object x-go-name: Token - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model poll: properties: emojis: @@ -2740,7 +2740,7 @@ definitions: title: Poll represents a poll attached to a status. type: object x-go-name: Poll - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model pollOption: properties: title: @@ -2755,7 +2755,7 @@ definitions: title: PollOption represents the current vote counts for different poll options. type: object x-go-name: PollOption - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model report: properties: action_taken: @@ -2831,7 +2831,7 @@ definitions: title: Report models a moderation report submitted to the instance, either via the client API or via the federated API. type: object x-go-name: Report - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model searchResult: properties: accounts: @@ -2852,7 +2852,7 @@ definitions: title: SearchResult models a search result. type: object x-go-name: SearchResult - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model status: properties: account: @@ -3015,7 +3015,7 @@ definitions: title: Status models a status or post. type: object x-go-name: Status - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model statusEdit: description: |- StatusEdit represents one historical revision of a status, containing @@ -3061,7 +3061,7 @@ definitions: x-go-name: SpoilerText type: object x-go-name: StatusEdit - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model statusReblogged: properties: account: @@ -3224,7 +3224,7 @@ definitions: title: StatusReblogged represents a reblogged status. type: object x-go-name: StatusReblogged - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model statusSource: description: |- StatusSource represents the source text of a @@ -3249,7 +3249,7 @@ definitions: x-go-name: Text type: object x-go-name: StatusSource - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model swaggerCollection: properties: '@context': @@ -3276,7 +3276,7 @@ definitions: title: SwaggerCollection represents an ActivityPub Collection. type: object x-go-name: SwaggerCollection - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users swaggerCollectionPage: properties: id: @@ -3311,7 +3311,7 @@ definitions: title: SwaggerCollectionPage represents one page of a collection. type: object x-go-name: SwaggerCollectionPage - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users swaggerFeaturedCollection: properties: '@context': @@ -3348,7 +3348,7 @@ definitions: title: SwaggerFeaturedCollection represents an ActivityPub OrderedCollection. type: object x-go-name: SwaggerFeaturedCollection - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users tag: properties: following: @@ -3378,7 +3378,7 @@ definitions: title: Tag represents a hashtag used within the content of a status. type: object x-go-name: Tag - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model theme: properties: description: @@ -3396,7 +3396,7 @@ definitions: title: Theme represents one user-selectable preset CSS theme. type: object x-go-name: Theme - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model threadContext: description: |- ThreadContext models the tree or @@ -3416,7 +3416,7 @@ definitions: x-go-name: Descendants type: object x-go-name: ThreadContext - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model tokenInfo: description: The actual access token itself will never be sent via the API. properties: @@ -3447,7 +3447,7 @@ definitions: title: TokenInfo represents metadata about one user-level access token. type: object x-go-name: TokenInfo - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model user: properties: admin: @@ -3523,7 +3523,7 @@ definitions: title: User models fields relevant to one user. type: object x-go-name: User - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model webPushNotification: description: |- It does not contain an entire Notification, just the NotificationID and some preview information. @@ -3570,7 +3570,7 @@ definitions: title: WebPushNotification represents a notification summary delivered to the client by the Web Push server. type: object x-go-name: WebPushNotification - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model webPushSubscription: properties: alerts: @@ -3598,7 +3598,7 @@ definitions: title: WebPushSubscription represents a subscription to a Web Push server. type: object x-go-name: WebPushSubscription - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model webPushSubscriptionAlerts: properties: admin.report: @@ -3656,7 +3656,7 @@ definitions: title: WebPushSubscriptionAlerts represents the specific events that this Web Push subscription will receive. type: object x-go-name: WebPushSubscriptionAlerts - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model wellKnownResponse: description: See https://webfinger.net/ properties: @@ -3678,7 +3678,7 @@ definitions: For example, it would be returned from https://example.org/.well-known/webfinger?resource=acct:some_username@example.org type: object x-go-name: WellKnownResponse - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model host: example.org info: contact: diff --git a/docs/configuration/database.md b/docs/configuration/database.md index 4179f846d..06b6b4f60 100644 --- a/docs/configuration/database.md +++ b/docs/configuration/database.md @@ -42,7 +42,7 @@ create user gotosocial with password 'some_really_good_password'; grant all privileges on database gotosocial to gotosocial; ``` -If you start using Postgres after 14, or you encounter `error executing command: error creating dbservice: db migration error: ERROR: permission denied for schema public`, you should grant `CREATE` permission to your db user: +If you start using Postgres after 14, or you encounter `error executing command: error creating dbservice: db migration error: ERROR: permission denied for schema public`, you should grant `CREATE` permission to your db user *(This **must** be run in a postgres shell that's connected to the gotosocial database)*: ```psql GRANT CREATE ON SCHEMA public TO gotosocial; @@ -146,7 +146,7 @@ db-tls-ca-cert: "" # # PLEASE NOTE!!: This setting currently only applies for Postgres. SQLite will always use 1 connection regardless # of what is set here. This behavior will change in future when we implement better SQLITE_BUSY handling. -# See https://github.com/superseriousbusiness/gotosocial/issues/1407 for more details. +# See https://codeberg.org/superseriousbusiness/gotosocial/issues/1407 for more details. # # Examples: [16, 8, 10, 2] # Default: 8 diff --git a/docs/configuration/index.md b/docs/configuration/index.md index 211ccfaea..6d0c870ad 100644 --- a/docs/configuration/index.md +++ b/docs/configuration/index.md @@ -18,7 +18,7 @@ gotosocial --config-path ./config.yaml server start The command expects a file in [YAML](https://en.wikipedia.org/wiki/YAML) or [JSON](https://en.wikipedia.org/wiki/JSON) format. -An example configuration file, with an explanation of each of the config fields, with default and example values, can be found [here](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml). This example file is also included in release downloads. +An example configuration file, with an explanation of each of the config fields, with default and example values, can be found [here](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml). This example file is also included in release downloads. It's recommended to create your own configuration file with only the settings you need to change for your installation. This ensures you don't have to reconcile changes to defaults or adding/updating/removing settings from your configuration file that you haven't changed away from the defaults on every release. @@ -125,7 +125,7 @@ This means in cases where you want to just try changing one thing, but don't wan Reasonable default values are provided for *most* of the configuration parameters, except in cases where a custom value is absolutely required. -See the [example config file](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml) for the default values, or run `gotosocial --help`. +See the [example config file](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml) for the default values, or run `gotosocial --help`. ## `GTS_WAZERO_COMPILATION_CACHE` @@ -135,7 +135,7 @@ To speed up startup time of GoToSocial, you can cache the compiled modules betwe You can instruct GoToSocial on where to store the Wazero artifacts by setting the environment variable `GTS_WAZERO_COMPILATION_CACHE` to a directory, which will be used by GtS to store two smallish artifacts of ~50MiB or so each (~100MiB total). -For an example of this in action, see the [docker-compose.yaml](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/docker-compose/docker-compose.yaml), and the [gotosocial.service](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/gotosocial.service) example files. +For an example of this in action, see the [docker-compose.yaml](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/docker-compose/docker-compose.yaml), and the [gotosocial.service](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/gotosocial.service) example files. If you want to provide this value to GtS outside of systemd or Docker, you can do so in the following manner when starting up your GtS server: diff --git a/docs/faq.md b/docs/faq.md index 72fed557d..af25ffe25 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -38,4 +38,4 @@ We introduced a sign-up flow in v0.16.0. The server you want to sign up to must ## Why's it still in Beta? -Take a look at the [list of open bugs](https://github.com/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug) and the [roadmap](https://github.com/superseriousbusiness/gotosocial/blob/main/ROADMAP.md) for a more detailed rundown. +Take a look at the [list of open bugs](https://codeberg.org/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug) and the [roadmap](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/ROADMAP.md) for a more detailed rundown. diff --git a/docs/federation/http_signatures.md b/docs/federation/http_signatures.md index cd7aa3c1c..d2286798b 100644 --- a/docs/federation/http_signatures.md +++ b/docs/federation/http_signatures.md @@ -20,11 +20,11 @@ When sending a request, GtS will attempt first *with* query parameters included. When receiving a request, GtS will attempt to validate the signature first *with* query parameters included. If the signature fails to validate, it will reattempt validation without query parameters included. -See [#894](https://github.com/superseriousbusiness/gotosocial/issues/894) for more details. +See [#894](https://codeberg.org/superseriousbusiness/gotosocial/issues/894) for more details. ## Incoming Requests -GoToSocial request signature validation is implemented in [internal/federation](https://github.com/superseriousbusiness/gotosocial/blob/main/internal/federation/authenticate.go). +GoToSocial request signature validation is implemented in [internal/federation](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/internal/federation/authenticate.go). GoToSocial will attempt to parse the signature using the following algorithms (in order), stopping at the first success: @@ -36,9 +36,9 @@ ED25519 ## Outgoing Requests -GoToSocial request signing is implemented in [internal/transport](https://github.com/superseriousbusiness/gotosocial/blob/main/internal/transport/signing.go). +GoToSocial request signing is implemented in [internal/transport](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/internal/transport/signing.go). -Once https://github.com/superseriousbusiness/gotosocial/issues/2991 is resolved, GoToSocial will use the `(created)` pseudo-header instead of `date`. +Once https://codeberg.org/superseriousbusiness/gotosocial/issues/2991 is resolved, GoToSocial will use the `(created)` pseudo-header instead of `date`. For now however, when assembling signatures: @@ -82,4 +82,4 @@ For Mastodon, the public key of a user is served as part of that user's Actor re Remote servers federating with GoToSocial should extract the public key from the `publicKey` field. Then, they should use the `owner` field of the public key to further dereference the full version of the Actor, using a signed `GET` request. -This behavior was introduced as a way of avoiding having remote servers make unsigned `GET` requests to the full Actor endpoint. However, this may change in future as it is not compliant and causes issues. Tracked in [this issue](https://github.com/superseriousbusiness/gotosocial/issues/1186). +This behavior was introduced as a way of avoiding having remote servers make unsigned `GET` requests to the full Actor endpoint. However, this may change in future as it is not compliant and causes issues. Tracked in [this issue](https://codeberg.org/superseriousbusiness/gotosocial/issues/1186). diff --git a/docs/getting_started/index.md b/docs/getting_started/index.md index 21a7b234a..286a2e4fd 100644 --- a/docs/getting_started/index.md +++ b/docs/getting_started/index.md @@ -68,7 +68,7 @@ If you decide to use a VPS instead, you can spin yourself up something cheap wit !!! warning "Cloud storage volumes" Not all cloud VPS storage offerings are equal, and just because something claims to be backed by an SSD doesn't mean that it will necessarily be suitable to run a GoToSocial instance. - The [performance of Hetzner Cloud Volumes](https://github.com/superseriousbusiness/gotosocial/issues/2471#issuecomment-1891098323) is not guaranteed and seems to have very volatile latency. This will result in your GoToSocial instance performing poorly. + The [performance of Hetzner Cloud Volumes](https://codeberg.org/superseriousbusiness/gotosocial/issues/2471#issuecomment-1891098323) is not guaranteed and seems to have very volatile latency. This will result in your GoToSocial instance performing poorly. !!! danger "Oracle Free Tier" [Oracle Cloud Free Tier](https://www.oracle.com/cloud/free/) servers are not suitable for a GoToSocial deployment if you intend to federate with more than a handful of other instances and users. @@ -149,13 +149,13 @@ If you can't leave `443` and `80` open on the machine, don't worry! You can conf ## Clustering / multi-node deployments -GoToSocial does not support [clustering or any form of multi-node deployment](https://github.com/superseriousbusiness/gotosocial/issues/1749). +GoToSocial does not support [clustering or any form of multi-node deployment](https://codeberg.org/superseriousbusiness/gotosocial/issues/1749). Though multiple GtS instances can use the same Postgres database and either shared local storage or the same object bucket, GtS relies on a lot of internal caching to keep things fast. There is no mechanism for synchronising these caches between instances. Without it, you'll get all kinds of odd and inconsistent behaviour. Don't do this! ## Tuning -Aside from the many instance tuning options present in the [example config file](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml) you can do additional tuning on the machine your GoToSocial instance is running on. +Aside from the many instance tuning options present in the [example config file](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml) you can do additional tuning on the machine your GoToSocial instance is running on. ### Swap diff --git a/docs/getting_started/installation/container.md b/docs/getting_started/installation/container.md index 55bc4beac..dc9225437 100644 --- a/docs/getting_started/installation/container.md +++ b/docs/getting_started/installation/container.md @@ -20,10 +20,10 @@ cd ~/gotosocial ## Get the latest docker-compose.yaml -Use `wget` to download the latest [docker-compose.yaml](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/docker-compose/docker-compose.yaml) example, which we'll customize for our needs: +Use `wget` to download the latest [docker-compose.yaml](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/docker-compose/docker-compose.yaml) example, which we'll customize for our needs: ```bash -wget https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/docker-compose/docker-compose.yaml +wget https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/docker-compose/docker-compose.yaml ``` ## Edit the docker-compose.yaml @@ -45,7 +45,7 @@ If desired, update the GoToSocial Docker image tag to the version of GtS you wan * `X.Y.Z`: release tag. This points to a specific, stable, release of GoToSocial. !!! tip - Both the `latest` and `snapshot` tags are moving tags, whereas the `X.Y.Z` tags are immutable. The result of pulling a moving tag might change from day to day. `latest` on one system might not be the same `latest` on a different system. It's recommended to use the `X.Y.Z` tags instead so you always know exactly which version of GoToSocial you're running. The list of releases can be found [right here](https://github.com/superseriousbusiness/gotosocial/releases), with the newest release at the top. + Both the `latest` and `snapshot` tags are moving tags, whereas the `X.Y.Z` tags are immutable. The result of pulling a moving tag might change from day to day. `latest` on one system might not be the same `latest` on a different system. It's recommended to use the `X.Y.Z` tags instead so you always know exactly which version of GoToSocial you're running. The list of releases can be found [right here](https://codeberg.org/superseriousbusiness/gotosocial/releases), with the newest release at the top. ### Host diff --git a/docs/getting_started/installation/metal.md b/docs/getting_started/installation/metal.md index c2fe74f14..093f0e678 100644 --- a/docs/getting_started/installation/metal.md +++ b/docs/getting_started/installation/metal.md @@ -34,14 +34,14 @@ cd /gotosocial Now, download the latest GoToSocial release archive corresponding to the operating system and architecture you're running on. !!! tip - You can find the list of releases [right here](https://github.com/superseriousbusiness/gotosocial/releases), arranged with the newest release at the top. + You can find the list of releases [right here](https://codeberg.org/superseriousbusiness/gotosocial/releases), arranged with the newest release at the top. For example, to download a version for running on 64-bit Linux: ```bash GTS_VERSION=X.Y.Z # replace this GTS_TARGET=linux_amd64 -wget https://github.com/superseriousbusiness/gotosocial/releases/download/v${GTS_VERSION}/gotosocial_${GTS_VERSION}_${GTS_TARGET}.tar.gz +wget https://codeberg.org/superseriousbusiness/gotosocial/releases/download/v${GTS_VERSION}/gotosocial_${GTS_VERSION}_${GTS_TARGET}.tar.gz ``` Then extract it: @@ -123,7 +123,7 @@ Then make them the owner of your GoToSocial installation since they will need to sudo chown -R gotosocial:gotosocial /gotosocial ``` -You can find a `gotosocial.service` file in the `example` folder on [github](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/gotosocial.service) or your installation. +You can find a `gotosocial.service` file in the `example` folder on [our repository](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/gotosocial.service) or your installation. Copy it to `/etc/systemd/system/gotosocial.service`: diff --git a/docs/locales/zh/admin/backup_and_restore.md b/docs/locales/zh/admin/backup_and_restore.md index 34b0d805e..676dbb3ca 100644 --- a/docs/locales/zh/admin/backup_and_restore.md +++ b/docs/locales/zh/admin/backup_and_restore.md @@ -178,7 +178,7 @@ hooks: 对于 PostgreSQL,你应该使用 `postgresql_databases`。 -`patterns_from` 中提到的文件可以通过转换 GoToSocial CLI 媒体命令 [`list-attachments`](cli.md#gotosocial-admin-media-list-attachments) 和 [`list-emojis`](cli.md#gotosocial-admin-media-list-emojis) 的输出来创建。要生成正确的模式,您可以使用 [`media-to-borg-patterns.py`](https://github.com/superseriousbusiness/gotosocial/tree/main/example/borgmatic/media-to-borg-patterns.py) 脚本。有关 Borg 模式如何工作的详情,参见 [他们的文档](https://man.archlinux.org/man/borg-patterns.1)。 +`patterns_from` 中提到的文件可以通过转换 GoToSocial CLI 媒体命令 [`list-attachments`](cli.md#gotosocial-admin-media-list-attachments) 和 [`list-emojis`](cli.md#gotosocial-admin-media-list-emojis) 的输出来创建。要生成正确的模式,您可以使用 [`media-to-borg-patterns.py`](https://codeberg.org/superseriousbusiness/gotosocial/tree/main/example/borgmatic/media-to-borg-patterns.py) 脚本。有关 Borg 模式如何工作的详情,参见 [他们的文档](https://man.archlinux.org/man/borg-patterns.1)。 您需要将该文件放在您的 GoToSocial 实例上,并确保该文件是可执行的。它需要 Python 3,安装 Borg 和 Borgmatic 后您应该已经具备。它仅依赖于 Python 标准库。 diff --git a/docs/locales/zh/admin/cli.md b/docs/locales/zh/admin/cli.md index 5fa279994..cd6e5e1de 100644 --- a/docs/locales/zh/admin/cli.md +++ b/docs/locales/zh/admin/cli.md @@ -9,11 +9,11 @@ GoToSocial 编译为二进制可执行文件。 以下是 `gotosocial --help` 的完整输出,不包括全局配置选项的大列表。 ```text -GoToSocial - 一个联邦制社交媒体服务器 +GoToSocial - 一个联合式社交媒体服务器 -帮助文档参见:https://docs.gotosocial.org。 +帮助文档参见:https://docs.gotosocial.org/zh-cn/。 -代码仓库:https://github.com/superseriousbusiness/gotosocial +代码仓库:https://codeberg.org/superseriousbusiness/gotosocial 用法: gotosocial [command] @@ -57,6 +57,9 @@ GoToSocial - 一个联邦制社交媒体服务器 此命令可用于在你的实例上创建新账户。 +!!! Warning "警告" + 执行此命令前,你必须至少运行过一次服务端,以初始化数据库中的必要条目,然后才能运行此命令。 + `gotosocial admin account create --help`: ```text diff --git a/docs/locales/zh/admin/domain_permission_subscriptions.md b/docs/locales/zh/admin/domain_permission_subscriptions.md index cf211aa90..4a34e683e 100644 --- a/docs/locales/zh/admin/domain_permission_subscriptions.md +++ b/docs/locales/zh/admin/domain_permission_subscriptions.md @@ -37,7 +37,7 @@ 例如,实例 `instance-a.example.org`、`instance-b.example.org` 和 `instance-c.example.org` 决定他们只想彼此联合。 -他们可以使用像 GitHub 这样的版本管理平台托管一个纯文本格式的允许列表,比如在 `https://raw.githubusercontent.com/our-cluster/allowlist/refs/heads/main/allows.txt`。 +他们可以使用像 Codeberg 这样的版本管理平台托管一个纯文本格式的允许列表,比如在 `https://codeberg.org/our-cluster/allowlist/raw/branch/main/allows.txt`。 纯文本格式的允许列表内容如下: @@ -47,7 +47,7 @@ instance-b.example.org instance-c.example.org ``` -每个实例管理员都将他们的联合模式设置为`白名单`,并创建一个类型为“允许”,订阅地址为 `https://raw.githubusercontent.com/our-cluster/allowlist/refs/heads/main/allows.txt` 的订阅,这会为他们自己的域名以及集群中的其他域名创建域名允许条目。 +每个实例管理员都将他们的联合模式设置为`allowlist`,并创建一个类型为“允许”,订阅地址为 `https://codeberg.org/our-cluster/allowlist/raw/branch/main/allows.txt` 的订阅,这会为他们自己的域名以及集群中的其他域名创建域名允许条目。 在某个时候,来自 `instance-d.example.org` 的某人(在站外)申请被添加到集群中。现有的管理员同意,并更新他们的纯文本格式允许列表为: @@ -66,7 +66,7 @@ instance-d.example.org 例如,实例 `instance-e.example.org`、`instance-f.example.org` 和 `instance-g.example.org` 的管理员认定:他们厌倦了通过与坏人玩打地鼠游戏来重复工作。为了让生活更轻松,他们决定合作开发一个共享的阻止列表。 -他们使用像 GitHub 这样的版本管理平台在类似 `https://raw.githubusercontent.com/baddies/blocklist/refs/heads/main/blocks.csv` 的地方托管一个阻止列表。 +他们使用像 Codeberg 这样的版本管理平台在类似 `https://codeberg.org/our-cluster/allowlist/raw/branch/main/blocks.csv` 的地方托管一个阻止列表。 当有人发现另一个他们不喜欢的实例时,他们可以通过合并请求或类似方法添加这个有问题的实例到域名列表中。 @@ -113,6 +113,27 @@ nothanks.com,suspend,false,false,,false JSON列表使用内容类型 `application/json`。 +```json +[ + { + "domain": "bumfaces.net", + "suspended_at": "2020-05-13T13:29:12.000Z", + "comment": "这个实例上有坏蛋" + }, + { + "domain": "peepee.poopoo", + "suspended_at": "2020-05-13T13:29:12.000Z", + "comment": "骚扰" + }, + { + "domain": "nothanks.com", + "suspended_at": "2020-05-13T13:29:12.000Z" + } +] +``` + +可以使用 `"comment"` 字段替代 `"public_comment"`: + ```json [ { diff --git a/docs/locales/zh/admin/federation_modes.md b/docs/locales/zh/admin/federation_modes.md index f408229b2..6b432f0f1 100644 --- a/docs/locales/zh/admin/federation_modes.md +++ b/docs/locales/zh/admin/federation_modes.md @@ -31,13 +31,18 @@ GoToSocial 当前提供“黑名单”和“白名单”联合模式,可以通 ## 结合屏蔽与允许 -可以同时屏蔽和允许同一个域,结合这两者的效果取决于你的实例当前使用的联合模式。 +!!! danger "危险" + 结合屏蔽和允许是一项棘手的工作! + + 在导入白名单和黑名单时,你应该始终手动审核列表,以确保不会无意中屏蔽你不想屏蔽的实例,因为这可能带来 **非常令人困扰的副作用** ,例如关注/粉丝关系的移除、贴文的删除等。 + + 有疑问时,请始终首先显式添加白名单条目作为保险策略! -![一个流程图,显示两种不同联合模式如何处理传入的请求。](../public/diagrams/federation_modes.png) +同时屏蔽和允许同一个域名是合法的,而这两个操作结合之后的效果取决于你的实例目前正在使用哪种联合模式,具体如下所述,你可以在下面找到流程图。 ### 在黑名单模式下 -如图所示,在黑名单模式下(图的左侧),显式添加允许条目可以用来覆盖域名屏蔽。 +如下图所示,在黑名单模式下(图的左侧),显式添加允许条目可以用来覆盖域名屏蔽。 这在你从其他人处导入黑名单,但导入的黑名单中包含了一些你实际上不想屏蔽的实例时很有用。为了避免屏蔽这些实例,你可以先为这些实例显式创建允许条目。然后,当你导入黑名单时,显式允许的域将不会被屏蔽,并且创建屏蔽所导致的副作用(删除贴文、媒体、关系等)将不会被处理。 @@ -47,16 +52,11 @@ GoToSocial 当前提供“黑名单”和“白名单”联合模式,可以通 ### 在白名单模式下 -如图所示,在白名单模式下(图的右侧),显式域名屏蔽条目会优先于显式域名允许条目。在运行白名单模式时,必须满足以下两个条件才能允许一个实例通过: +如下图所示,在白名单模式下(图的右侧),显式域名屏蔽条目会优先于显式域名允许条目。在运行白名单模式时,必须满足以下两个条件才能允许一个实例通过: 1. 实例没有存在对应的显式域名屏蔽。 2. 实例存在对应的显式域名允许。 如果上述任何条件不满足,请求将被拒绝。 -!!! danger "危险" - 结合屏蔽和允许是一项棘手的工作! - - 在导入允许和黑名单时,你应该始终手动审核列表,以确保不会无意中屏蔽你不想屏蔽的实例,因为这可能会有**非常烦人的副作用**,例如移除关注/被关注、贴文等。 - - 有疑问时,请始终首先添加显式允许作为保险策略! +![展示两种联合模式分别如何处理入站请求的流程图](../public/diagrams/federation_modes.png) diff --git a/docs/locales/zh/admin/robots.md b/docs/locales/zh/admin/robots.md index 3d5dfdffd..c0c5b81ca 100644 --- a/docs/locales/zh/admin/robots.md +++ b/docs/locales/zh/admin/robots.md @@ -10,8 +10,6 @@ GoToSocial 在主域名上提供一个 `robots.txt` 文件。该文件包含试 AI 爬虫来自一个[社区维护的仓库][airobots]。目前是手动保持同步的。如果你知道有任何遗漏的爬虫,请给他们提交一个 PR! -已知有许多 AI 爬虫即便明确匹配其 User-Agent,也会忽略 `robots.txt` 中的条目。这意味着 `robots.txt` 文件并不是确保 AI 爬虫不抓取你的内容的万无一失的方法。 - -如果你想完全屏蔽这些爬虫,需要在反向代理中根据 User-Agent 头进行屏蔽,直到 GoToSocial 能够根据 User-Agent 头过滤请求。 +众所周知,很多 AI 爬虫在 `robots.txt` 不允许其 User-Agent 的情况下,仍然会忽略对应规则并继续抓去内容。这意味着 `robots.txt` 文件并不是确保 AI 爬虫不抓取你的内容的万无一失的方法。除此以外,你可能还需要考虑通过[请求标头过滤](request_filtering_modes.md)来阻止对应 User-Agent,以及启用基于工作证明的[爬虫防护](../advanced/scraper_deterrence.md)。 [airobots]: https://github.com/ai-robots-txt/ai.robots.txt/ diff --git a/docs/locales/zh/advanced/builds/nowasm.md b/docs/locales/zh/advanced/builds/nowasm.md index 33e6fad22..4c444fc26 100644 --- a/docs/locales/zh/advanced/builds/nowasm.md +++ b/docs/locales/zh/advanced/builds/nowasm.md @@ -15,6 +15,10 @@ 使用 `nowasm` 构建的 GoToSocial 二进制文件将使用 [modernc 版本的 SQLite](https://pkg.go.dev/modernc.org/sqlite) 而不是 WASM 版本,并将在系统上使用 `ffmpeg` 和 `ffprobe` 二进制文件进行媒体处理。 +!!! tip "提示" + 要测试你的系统是否支持标准构建,可以使用此命令: + `if grep -qE '^flags.* (sse4|LSE)' /proc/cpuinfo; then echo "Your system is supporting GTS!"; else echo "Your system is not supporting GTS, you'll have to use the 'nowasm' builds :("; fi` + 要使用 `nowasm` 标签构建 GoToSocial,可以像这样将标签传入我们的便利 `build.sh` 脚本: ```bash diff --git a/docs/locales/zh/advanced/scraper_deterrence.md b/docs/locales/zh/advanced/scraper_deterrence.md new file mode 100644 index 000000000..69ac8552f --- /dev/null +++ b/docs/locales/zh/advanced/scraper_deterrence.md @@ -0,0 +1,18 @@ +# 爬虫防护 + +GoToSocial 提供一个可选的、基于工作量证明的爬虫和自动化 HTTP 客户端防护机制,可在账户页和贴文页的网页视图上启用。 + +它的工作原理是:针对每个传入的 HTTP 请求,系统会根据客户端信息和当前时间生成一个唯一质询(一个十六进制编码的 SHA256 哈希值)。然后,它要求客户端为该质询的一部分找到一个附加值,使(附加值+质询部分)组合计算出的新 SHA256 哈希值(同样为十六进制编码)至少包含 4 个前导 '0' 字符。这个质询会通过一个极简的等待页面呈现给客户端,该页面包含一个独立的 JavaScript worker 来计算解决方案。 + +一旦客户端提供了此质询的解,并通过在查询参数中携带该方案刷新页面,GoToSocial 将验证此方案。验证成功后,服务端会返回用户期望访问的账户或贴文页面,并设置一个 Cookie。该 Cookie 允许用户在接下来最多一小时内免验证访问该实例。 + +启用此功能的目的是让自动化数据收集(例如 AI 公司、搜索引擎)对你实例的账户和贴文页面进行爬取的行为,在经济上变得不可行。唯一的缺点是,用户需要启用 JavaScript 才能访问你的账户和贴文网页视图。 + +这个功能深受优秀的 [anubis] 项目的启发,但我们最终决定自己实现,只包含我们需要的功能,使用最少的代码,并能与我们现有的授权/认证流程实现更细粒度的结合。 + +GoToSocial 实现的这个爬虫防护功能仍然是极其精简的。因此,如果你需要更多功能或对防护措施进行更精细的控制,那么完全可以禁用我们的内置功能,并在你的实例前部署像 [anubis] 这样的服务! + +!!! warning "警告" + 这个基于工作量证明的爬虫防护机制并不保护用户账户页的 RSS feed,因为这会带来额外的复杂性。如果你需要确保 RSS feed 可被访问,那么在这种情况下,[anubis] 可能是更合适的选择! + +[anubis]: https://github.com/TecharoHQ/anubis \ No newline at end of file diff --git a/docs/locales/zh/advanced/security/sandboxing.md b/docs/locales/zh/advanced/security/sandboxing.md index ac4b88723..be7795e95 100644 --- a/docs/locales/zh/advanced/security/sandboxing.md +++ b/docs/locales/zh/advanced/security/sandboxing.md @@ -12,7 +12,7 @@ 我们提供了一个 GoToSocial 的 AppArmor 示例策略,你可以按以下步骤获取并安装: ```sh -$ curl -LO 'https://github.com/superseriousbusiness/gotosocial/raw/main/example/apparmor/gotosocial' +$ curl -LO 'https://codeberg.org/superseriousbusiness/gotosocial/raw/main/example/apparmor/gotosocial' $ sudo install -o root -g root gotosocial /etc/apparmor.d/gotosocial $ sudo apparmor_parser -Kr /etc/apparmor.d/gotosocial ``` diff --git a/docs/locales/zh/advanced/sqlite-networked-storage.md b/docs/locales/zh/advanced/sqlite-networked-storage.md index e57352509..67b20d6ab 100644 --- a/docs/locales/zh/advanced/sqlite-networked-storage.md +++ b/docs/locales/zh/advanced/sqlite-networked-storage.md @@ -32,4 +32,4 @@ SQLite 的运行模式假定数据库和使用它的进程或应用程序位于 * `db-sqlite-journal-mode` * `db-sqlite-synchronous` -我们不提供任何建议,因为这将根据你使用的解决方案而有所不同。请参阅 [此问题](https://github.com/superseriousbusiness/gotosocial/issues/3360#issuecomment-2380332027)以了解你可能设置的值。 +我们不提供任何建议,因为这将根据你使用的解决方案而有所不同。请参阅 [此问题](https://codeberg.org/superseriousbusiness/gotosocial/issues/3360#issuecomment-2380332027)以了解你可能设置的值。 diff --git a/docs/locales/zh/advanced/tracing.md b/docs/locales/zh/advanced/tracing.md index dc502b9e4..10e9f42fc 100644 --- a/docs/locales/zh/advanced/tracing.md +++ b/docs/locales/zh/advanced/tracing.md @@ -19,7 +19,7 @@ tracing-insecure-transport: true [obs]: ../configuration/observability.md [tempo]: https://grafana.com/oss/tempo/ [grafana]: https://grafana.com/oss/grafana/ -[ext]: https://github.com/superseriousbusiness/gotosocial/tree/main/example/tracing +[ext]: https://codeberg.org/superseriousbusiness/gotosocial/tree/main/example/tracing ## 查询和可视化追踪 diff --git a/docs/locales/zh/api/authentication.md b/docs/locales/zh/api/authentication.md index 2590f4fe4..ca452b4b1 100644 --- a/docs/locales/zh/api/authentication.md +++ b/docs/locales/zh/api/authentication.md @@ -2,6 +2,9 @@ 使用客户端 API 需要进行身份验证。本页记录了如何获取身份验证令牌的通用流程,并提供了使用 `curl` 在命令行界面进行操作的示例。 +!!! tip "提示" + 如果你不想使用命令行,而是想通过设置面板获取 API 访问令牌,可以参考 [应用文档](https://docs.gotosocial.org/zh-cn/latest/user_guide/settings/#applications)。 + ## 创建新应用 我们需要注册一个新应用,以便请求 OAuth 令牌。这可以通过向 `/api/v1/apps` 端点发送 `POST` 请求来完成。注意将下面命令中的 `your_app_name` 替换为你想使用的应用名称: @@ -19,18 +22,15 @@ curl \ 字符串 `urn:ietf:wg:oauth:2.0:oob` 表示一种称为带外身份验证的技术,这是一种用于多因素身份验证的技术,旨在减少恶意行为者干扰身份验证过程的途径。在此情况下,它允许我们查看并手动复制生成的令牌以便继续使用。 -注意,`scopes` 可以是以下任意空格分隔的组合: - -- `read` -- `write` -- `admin` +!!! tip "权限范围" + 根据应用执行的工作对应用进行最低限度的授权是一个好习惯。例如,如果你的应用不会发布贴文,请使用 `scope=read` 或进一步仅授权子权限。 + + 本着这种精神,上例使用了`read`,这意味着应用将仅限于执行`read`操作。 + + 可用范围列表请参阅[Swagger 文档](https://docs.gotosocial.org/zh-cn/latest/api/swagger/). !!! warning "警告" - GoToSocial 目前不支持范围授权令牌,因此在此过程中获得的任何令牌都可以代表你执行所有操作,包括如果你的账户具有管理员权限时的管理员操作。然而,始终以最低权限授予你的应用是一个好习惯。例如,如果你的应用不会发布贴文,请使用 scope=read。 - - 本着这种精神,上述示例使用了`read`,这意味着当未来支持范围令牌时,应用将仅限于执行`read`操作。 - - 你可以在[此处](https://github.com/superseriousbusiness/gotosocial/issues/2232)阅读更多关于计划中 OAuth 安全功能的信息。 + GoToSocial 0.19.0 之前的版本并不支持范围授权令牌,因此运行低于 0.19.0 的 GoToSocial 的用户通过此流程获得的任何令牌都可以代表用户执行所有操作。如果用户具有管理权限,那么令牌还可以执行管理操作。 成功调用会返回一个带有 `client_id` 和 `client_secret` 的响应,我们将在后续流程中需要使用这些信息。它看起来像这样: @@ -126,7 +126,6 @@ curl \ ```bash curl \ - -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ 'https://example.org/api/v1/accounts/verify_credentials' ``` @@ -141,7 +140,6 @@ curl \ ```bash curl \ - -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ 'https://example.org/api/v1/notifications' ``` diff --git a/docs/locales/zh/api/swagger.md b/docs/locales/zh/api/swagger.md index 7fa3190d5..d0d4cee53 100644 --- a/docs/locales/zh/api/swagger.md +++ b/docs/locales/zh/api/swagger.md @@ -14,8 +14,8 @@ GoToSocial 使用 [go-swagger](https://github.com/go-swagger/go-swagger) 从代 有关更多背景信息,请参见以下问题: - - [#1958](https://github.com/superseriousbusiness/gotosocial/issues/1958) - - [#1944](https://github.com/superseriousbusiness/gotosocial/issues/1944) - - [#2641](https://github.com/superseriousbusiness/gotosocial/issues/2641) + - [#1958](https://codeberg.org/superseriousbusiness/gotosocial/issues/1958) + - [#1944](https://codeberg.org/superseriousbusiness/gotosocial/issues/1944) + - [#2641](https://codeberg.org/superseriousbusiness/gotosocial/issues/2641) diff --git a/docs/locales/zh/api/swagger.yaml b/docs/locales/zh/api/swagger.yaml index 3ba31a8af..59003402c 100644 --- a/docs/locales/zh/api/swagger.yaml +++ b/docs/locales/zh/api/swagger.yaml @@ -4,7 +4,7 @@ definitions: title: FilterAction description: FilterAction 是针对与过滤规则匹配的贴文所执行的操作。 type: string - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model InstanceConfigurationEmojis: properties: emoji_size_limit: @@ -16,7 +16,7 @@ definitions: title: InstanceConfigurationEmojis description: InstanceConfigurationEmojis 结构体包含有关自定义表情的配置信息。 type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model Link: description: Link 代表针对查询请求返回的链接组中的一个“链接”。详见 https://webfinger.net/ 和 https://www.rfc-editor.org/rfc/rfc6415.html#section-3.1 properties: @@ -34,7 +34,7 @@ definitions: x-go-name: Type title: Link type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model Mention: properties: acct: @@ -62,7 +62,7 @@ definitions: title: Mention description: Mention 表示对另一个账户的一次提及。 type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model NodeInfoServices: properties: inbound: @@ -78,7 +78,7 @@ definitions: title: NodeInfoServices description: 表示此节点对入站和出站连接提供的服务。 type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model NodeInfoSoftware: properties: homepage: @@ -102,7 +102,7 @@ definitions: title: NodeInfoSoftware description: NodeInfoSoftware 表示此节点软件的名称和版本号。 type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model NodeInfoUsage: properties: localComments: @@ -118,7 +118,7 @@ definitions: title: NodeInfoUsage description: 表示有关此服务器的使用信息,例如用户数量。 type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model NodeInfoUsers: properties: activeHalfYear: @@ -136,7 +136,7 @@ definitions: title: NodeInfoUsers description: NodeInfoUsers 表示有关服务器上用户的聚合信息。 type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model Source: description: Source 表示用户自己账户的内容展示或发布偏好。在验证和更新凭据时,作为 Account 的一个属性返回的附加实体。 properties: @@ -185,6 +185,13 @@ definitions: description: 新贴文的默认内容格式。 type: string x-go-name: StatusContentType + web_layout: + description: |- + 账户的网页布局。 + "microblog": 默认值,经典微博客布局。 + "gallery": 仅显示媒体的画廊布局。 + type: string + x-go-name: WebLayout web_visibility: description: |- 通过网页端API显示的该账户下贴文的最低可见性。 @@ -195,7 +202,7 @@ definitions: x-go-name: WebVisibility title: Source type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model TimelineMarker: properties: last_read_id: @@ -214,11 +221,11 @@ definitions: title: TimelineMarker description: TimelineMarker 包含有关用户在特定时间线上的阅读进度的信息。 type: object - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model WebPushNotificationPolicy: description: WebPushNotificationPolicy 包含可以生成通知的帐户集合。 type: string - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model account: description: Account 是一个 Fediverse 账户的抽象模型。被抽象的账户可以是本站账户,也可以是外站账户。 properties: @@ -400,7 +407,7 @@ definitions: title: Account type: object x-go-name: Account - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model accountDisplayRole: description: AccountDisplayRole 是账户的公开、可显示身份组的抽象模型。它是 AccountRole 的一个子集。 properties: @@ -423,7 +430,7 @@ definitions: title: AccountDisplayRole type: object x-go-name: AccountDisplayRole - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model accountExportStats: description: |- AccountExportStats 专门用于在 /api/v1/exports/stats 端点上通知有关导出大小的账户统计信息。 @@ -471,7 +478,7 @@ definitions: x-go-name: StatusesCount type: object x-go-name: AccountExportStats - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model accountRelationship: properties: blocked_by: @@ -535,7 +542,7 @@ definitions: description: Relationship 表示账户之间的关系。 type: object x-go-name: Relationship - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model accountRole: properties: color: @@ -568,7 +575,7 @@ definitions: description: AccountRole 是账户的身份组的抽象模型。 type: object x-go-name: AccountRole - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model adminAccountInfo: properties: account: @@ -663,7 +670,7 @@ definitions: description: AdminAccountInfo 是管理员视图下账户详情的抽象模型。 type: object x-go-name: AdminAccountInfo - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model adminActionResponse: description: |- AdminActionResponse 是服务器对管理员操作的响应的抽象模型。 @@ -675,7 +682,7 @@ definitions: x-go-name: ActionID type: object x-go-name: AdminActionResponse - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model adminEmoji: properties: category: @@ -743,7 +750,7 @@ definitions: description: AdminEmoji 是管理员视图下自定义表情的抽象模型。 type: object x-go-name: AdminEmoji - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model adminReport: properties: account: @@ -825,7 +832,7 @@ definitions: description: AdminReport 是管理员视图下举报的抽象模型。 type: object x-go-name: AdminReport - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model application: properties: client_id: @@ -836,6 +843,11 @@ definitions: description: 应用程序关联的客户端密钥。 type: string x-go-name: ClientSecret + created_at: + description: 应用程序创建时间。 (ISO 8601 Datetime) + example: "2021-07-30T09:20:25+00:00" + type: string + x-go-name: CreatedAt id: description: 应用程序的 ID。 example: 01FBVD42CQ3ZEEVMW180SBX03B @@ -877,7 +889,7 @@ definitions: description: Application 是对 API 应用程序的抽象模型。 type: object x-go-name: Application - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model attachment: properties: blurhash: @@ -937,7 +949,7 @@ definitions: description: Attachment 是媒体附件的抽象模型。 type: object x-go-name: Attachment - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model card: properties: author_name: @@ -1011,7 +1023,7 @@ definitions: description: Card 表示使用 OpenGraph 标签从 URL 生成的丰富预览卡片。 type: object x-go-name: Card - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model conversation: description: |- Conversation 表示具有“私信”可见性的对话。 @@ -1037,7 +1049,7 @@ definitions: x-go-name: Unread type: object x-go-name: Conversation - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model debugAPUrlResponse: description: |- DebugAPUrlResponse 提供对 AP URL 解引用请求的详细调试信息。 @@ -1075,7 +1087,7 @@ definitions: x-go-name: ResponseHeaders type: object x-go-name: DebugAPUrlResponse - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model defaultPolicies: properties: direct: @@ -1089,17 +1101,26 @@ definitions: title: 发起请求的账户的新贴文的默认互动规则。 type: object x-go-name: DefaultPolicies - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model domain: description: Domain 表示一个外站实例 properties: + comment: + description: |- + 如果域名被屏蔽,公开声明的屏蔽原因是什么。 + 可用于在通过 /api/v1/instance 执行序列化/反序列化时替代 `public_comment`。 + example: 这个实例有股味 + type: string + x-go-name: Comment domain: description: 实例的主机名。 example: example.org type: string x-go-name: Domain public_comment: - description: 若实例被屏蔽,公开的屏蔽原因是什么。 + description: |- + 如果实例被屏蔽,公开的屏蔽原因是什么。 + 可用于在 **不** 通过 /api/v1/instance 执行序列化/反序列化时替代 `comment`。 example: 它们被骚扰账号攻陷了。 type: string x-go-name: PublicComment @@ -1115,9 +1136,16 @@ definitions: x-go-name: SuspendedAt type: object x-go-name: Domain - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model domainPermission: properties: + comment: + description: |- + 如果域名被屏蔽,公开声明的屏蔽原因是什么。 + 可用于在通过 /api/v1/instance 执行序列化/反序列化时替代 `public_comment`。 + example: 它们闻起来很糟糕 + type: string + x-go-name: Comment created_at: description: 此权限条目创建的时间 (ISO 8601 Datetime)。 example: "2021-07-30T09:20:25+00:00" @@ -1150,7 +1178,9 @@ definitions: type: string x-go-name: PrivateComment public_comment: - description: 若实例被屏蔽,公开的屏蔽原因是什么。 + description: |- + 若实例被屏蔽,公开的屏蔽原因是什么。 + 可用于在 **不** 通过 /api/v1/instance 执行序列化/反序列化时替代 `comment`。 example: 它们被骚扰账号攻陷了。 type: string x-go-name: PublicComment @@ -1173,7 +1203,7 @@ definitions: description: DomainPermission 表示应用于某个实例的权限(显式阻止/允许)。 type: object x-go-name: DomainPermission - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model domainPermissionSubscription: properties: adopt_orphans: @@ -1268,7 +1298,7 @@ definitions: description: DomainPermissionSubscription (域名权限订阅)表示一个可以自动更新的域名权限列表订阅(类型可以为允许或阻止) type: object x-go-name: DomainPermissionSubscription - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model emoji: properties: category: @@ -1300,7 +1330,7 @@ definitions: description: Emoji 表示一个自定义表情。 type: object x-go-name: Emoji - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model emojiCategory: properties: id: @@ -1315,7 +1345,7 @@ definitions: description: EmojiCategory 表示自定义表情的类别。 type: object x-go-name: EmojiCategory - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model field: properties: name: @@ -1337,13 +1367,13 @@ definitions: description: Field 表示要在账户资料上显示的名称/值对。 type: object x-go-name: Field - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterContext: description: FilterContext 表示过滤规则要应用到的上下文。Filter API 的 v1 和 v2 使用相同的上下文集合。 title: FilterContext type: string x-go-name: FilterContext - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterKeyword: properties: id: @@ -1364,7 +1394,7 @@ definitions: description: FilterKeyword 表示 v2 过滤规则中要过滤的关键词文本。 type: object x-go-name: FilterKeyword - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterResult: properties: filter: @@ -1385,7 +1415,7 @@ definitions: description: FilterResult 与被过滤的贴文一起返回,以解释为什么被过滤。 type: object x-go-name: FilterResult - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterStatus: properties: id: @@ -1400,7 +1430,7 @@ definitions: description: FilterStatus 表示 v2 过滤规则中被过滤的贴文 ID。 type: object x-go-name: FilterStatus - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterV1: description: |- FilterV1 表示用户定义的过滤规则,用于确定哪些贴文不应显示给用户。 @@ -1450,7 +1480,7 @@ definitions: title: FilterV1 type: object x-go-name: FilterV1 - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model filterV2: description: FilterV2 表示用户定义的过滤规则,用于确定哪些贴文不应显示给用户。v2 过滤规则具有名称,并且可以包含多个短语和贴文 ID 以进行过滤。 properties: @@ -1496,7 +1526,7 @@ definitions: title: FilterV2 type: object x-go-name: FilterV2 - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model headerFilter: properties: created_at: @@ -1531,7 +1561,7 @@ definitions: description: HeaderFilter 表示应用于特定 HTTP 标头的正则过滤规则(允许/阻止)。 type: object x-go-name: HeaderFilter - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model hostmeta: description: 'HostMeta 表示一份 hostmeta 文档。参见: https://www.rfc-editor.org/rfc/rfc6415.html#section-3' properties: @@ -1545,7 +1575,7 @@ definitions: title: HostMeta type: object x-go-name: HostMeta - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceConfigurationAccounts: properties: allow_custom_css: @@ -1562,7 +1592,7 @@ definitions: max_profile_fields: description: |- 此实例允许每个账户设置的最大附加字段数。 - 目前不可配置,硬编码为 6。详见 (https://github.com/superseriousbusiness/gotosocial/issues/1876) + 目前不可配置,硬编码为 6。详见 (https://codeberg.org/superseriousbusiness/gotosocial/issues/1876) format: int64 type: integer x-go-name: MaxProfileFields @@ -1570,7 +1600,7 @@ definitions: description: InstanceConfigurationAccounts 是实例账户配置参数的抽象模型。 type: object x-go-name: InstanceConfigurationAccounts - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceConfigurationMediaAttachments: properties: image_matrix_limit: @@ -1622,7 +1652,7 @@ definitions: description: InstanceConfigurationMediaAttachments 是实例媒体附件配置参数的抽象模型。 type: object x-go-name: InstanceConfigurationMediaAttachments - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceConfigurationPolls: properties: max_characters_per_option: @@ -1653,7 +1683,7 @@ definitions: description: InstanceConfigurationPolls 是实例投票配置参数的抽象模型。 type: object x-go-name: InstanceConfigurationPolls - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceConfigurationStatuses: properties: characters_reserved_per_url: @@ -1687,7 +1717,7 @@ definitions: description: InstanceConfigurationStatuses 是实例贴文配置参数的抽象模型。 type: object x-go-name: InstanceConfigurationStatuses - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceRule: properties: id: @@ -1700,7 +1730,7 @@ definitions: description: InstanceRule 表示一条实例规则。 type: object x-go-name: InstanceRule - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV1: properties: account_domain: @@ -1856,7 +1886,7 @@ definitions: description: InstanceV1 是关于此实例的信息的抽象模型。 type: object x-go-name: InstanceV1 - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV1Configuration: properties: accounts: @@ -1877,7 +1907,7 @@ definitions: description: InstanceV1Configuration 是实例配置参数的抽象模型。 type: object x-go-name: InstanceV1Configuration - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV1URLs: properties: streaming_api: @@ -1889,7 +1919,7 @@ definitions: description: InstanceV1URLs 是客户端应用程序使用的与实例相关的 URL 的抽象模型。 type: object x-go-name: InstanceV1URLs - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2: properties: account_domain: @@ -1947,7 +1977,7 @@ definitions: x-go-name: Rules source_url: description: 本实例部署的软件的源代码 URL,应 AGPL 许可要求提供。 - example: https://github.com/superseriousbusiness/gotosocial + example: https://codeberg.org/superseriousbusiness/gotosocial type: string x-go-name: SourceURL terms: @@ -1981,7 +2011,7 @@ definitions: description: InstanceV2 是关于此实例的信息的抽象模型。 type: object x-go-name: InstanceV2 - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Configuration: properties: accounts: @@ -2008,7 +2038,7 @@ definitions: description: 此实例的配置值和限制。 type: object x-go-name: InstanceV2Configuration - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2ConfigurationTranslation: properties: enabled: @@ -2021,7 +2051,7 @@ definitions: description: 关于翻译功能的提示。 type: object x-go-name: InstanceV2ConfigurationTranslation - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2ConfigurationVAPID: properties: public_key: @@ -2031,7 +2061,7 @@ definitions: title: InstanceV2ConfigurationVAPID 存储实例的 VAPID 配置信息。 type: object x-go-name: InstanceV2ConfigurationVAPID - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Contact: properties: account: @@ -2047,7 +2077,7 @@ definitions: description: 此实例的联系信息。 type: object x-go-name: InstanceV2Contact - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Registrations: properties: approval_required: @@ -2070,7 +2100,7 @@ definitions: description: 此实例有关注册的信息。 type: object x-go-name: InstanceV2Registrations - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Thumbnail: properties: blurhash: @@ -2116,7 +2146,7 @@ definitions: description: 代表此实例的图像。 type: object x-go-name: InstanceV2Thumbnail - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2ThumbnailVersions: properties: '@1x': @@ -2135,7 +2165,7 @@ definitions: description: 缩略图的高分辨率版本,用于高 DPI 屏幕。 type: object x-go-name: InstanceV2ThumbnailVersions - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2URLs: properties: streaming: @@ -2147,7 +2177,7 @@ definitions: description: InstanceV2URLs 是客户端应用程序使用的与实例相关的 URL 的抽象模型。 type: object x-go-name: InstanceV2URLs - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Usage: properties: users: @@ -2156,7 +2186,7 @@ definitions: description: InstanceV2Usage 是关于此实例的使用数据的抽象模型。 type: object x-go-name: InstanceV2Usage - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model instanceV2Users: properties: active_month: @@ -2171,7 +2201,7 @@ definitions: description: 此实例的用户使用数据。 type: object x-go-name: InstanceV2Users - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model interactionPolicy: properties: can_favourite: @@ -2184,7 +2214,7 @@ definitions: description: 某条贴文的互动规则。 type: object x-go-name: InteractionPolicy - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model interactionPolicyRules: properties: always: @@ -2203,7 +2233,7 @@ definitions: description: 某类互动的规则。 type: object x-go-name: PolicyRules - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model interactionPolicyValue: description: |- 一条贴文的互动规则条目。 @@ -2221,7 +2251,7 @@ definitions: title: InteractionPolicyValue type: string x-go-name: PolicyValue - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model interactionRequest: properties: accepted_at: @@ -2263,7 +2293,7 @@ definitions: description: InteractionRequest 表示待处理、已批准或已拒绝的点赞、回复或转发互动。 type: object x-go-name: InteractionRequest - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model list: properties: exclusive: @@ -2292,7 +2322,7 @@ definitions: description: List 表示用户为关注的账户创建的列表。 type: object x-go-name: List - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model markers: properties: home: @@ -2303,7 +2333,7 @@ definitions: description: Marker 表示用户时间线中的上次阅读位置。 type: object x-go-name: Marker - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model mediaDimensions: properties: aspect: @@ -2362,7 +2392,7 @@ definitions: description: MediaDimensions 是一份媒体附件的详细属性的抽象模型。 type: object x-go-name: MediaDimensions - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model mediaFocus: properties: x: @@ -2381,7 +2411,7 @@ definitions: description: MediaFocus 是媒体附件的焦点的抽象模型。 type: object x-go-name: MediaFocus - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model mediaMeta: description: MediaMeta 是媒体附件的元数据的抽象模型。这可以是有关图像、音频文件、视频等的元数据。 properties: @@ -2394,7 +2424,7 @@ definitions: title: MediaMeta type: object x-go-name: MediaMeta - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model mutedAccount: properties: acct: @@ -2582,7 +2612,7 @@ definitions: description: MutedAccount 扩展了 Account,其中包含仅静音/隐藏用户列表使用的字段。 type: object x-go-name: MutedAccount - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model nodeinfo: description: 'NodeInfo 表示版本 2.1 或版本 2.0 的 nodeinfo 数据结构。参见: https://nodeinfo.diaspora.software/schema.html' properties: @@ -2616,7 +2646,7 @@ definitions: title: Nodeinfo type: object x-go-name: Nodeinfo - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model notification: properties: account: @@ -2648,7 +2678,7 @@ definitions: description: Notification 表示与用户相关的事件的通知。 type: object x-go-name: Notification - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model oauthToken: properties: access_token: @@ -2675,7 +2705,7 @@ definitions: description: Token 表示用于 GoToSocial API 身份验证和执行操作的 OAuth 令牌。 type: object x-go-name: Token - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model poll: properties: emojis: @@ -2738,7 +2768,7 @@ definitions: description: Poll 表示一个附加到贴文的投票。 type: object x-go-name: Poll - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model pollOption: properties: title: @@ -2754,7 +2784,7 @@ definitions: description: PollOption 表示不同投票选项的当前投票计数。 type: object x-go-name: PollOption - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model report: properties: action_taken: @@ -2831,7 +2861,7 @@ definitions: description: Report 是提交给实例的一份举报的抽象模型,可以通过客户端 API 或联合 API 提交。 type: object x-go-name: Report - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model searchResult: properties: accounts: @@ -2853,7 +2883,7 @@ definitions: description: SearchResult 是一次搜索结果的抽象模型。 type: object x-go-name: SearchResult - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model status: properties: account: @@ -3007,7 +3037,7 @@ definitions: description: Status 表示一条贴文或帖子。 type: object x-go-name: Status - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model statusEdit: description: |- StatusEdit 表示一条贴文的一个历史修订版本,包含该修订版本的状态的部分信息。 @@ -3059,7 +3089,7 @@ definitions: x-go-name: SpoilerText type: object x-go-name: StatusEdit - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model statusReblogged: properties: account: @@ -3221,7 +3251,7 @@ definitions: description: StatusReblogged 表示一条被转发的贴文。 type: object x-go-name: StatusReblogged - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model statusSource: description: |- StatusSource 表示创建贴文时提交给 API 的贴文源文本。 @@ -3245,7 +3275,7 @@ definitions: x-go-name: Text type: object x-go-name: StatusSource - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model swaggerCollection: properties: '@context': @@ -3272,7 +3302,7 @@ definitions: description: SwaggerCollection 表示一个 ActivityPub 集合。 type: object x-go-name: SwaggerCollection - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users swaggerCollectionPage: properties: id: @@ -3308,7 +3338,7 @@ definitions: description: SwaggerCollectionPage 表示一个 ActivityPub 集合的一页。 type: object x-go-name: SwaggerCollectionPage - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users swaggerFeaturedCollection: properties: '@context': @@ -3345,7 +3375,7 @@ definitions: description: SwaggerFeaturedCollection 表示一个有序 ActivityPub 集合。 type: object x-go-name: SwaggerFeaturedCollection - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users tag: properties: following: @@ -3375,7 +3405,7 @@ definitions: description: Tag 表示贴文内容中使用的某个话题标签。 type: object x-go-name: Tag - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model theme: properties: description: @@ -3394,7 +3424,7 @@ definitions: description: Theme 表示一个用户可选的预设 CSS 主题。 type: object x-go-name: Theme - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model threadContext: description: |- ThreadContext 是围绕给定贴文的贴文树/贴文串的抽象模型。 @@ -3413,7 +3443,7 @@ definitions: x-go-name: Descendants type: object x-go-name: ThreadContext - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model tokenInfo: description: |- TokenInfo 表示与用户关联的访问令牌的元数据。 @@ -3446,7 +3476,7 @@ definitions: title: TokenInfo type: object x-go-name: TokenInfo - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model user: properties: admin: @@ -3509,6 +3539,11 @@ definitions: example: "2021-07-30T09:20:25+00:00" type: string x-go-name: ResetPasswordSentAt + two_factor_enabled_at: + description: 此用户启用双因素验证的时间。 (ISO 8601 Datetime) + example: "2021-07-30T09:20:25+00:00" + type: string + x-go-name: TwoFactorEnabledAt unconfirmed_email: description: 此用户的未确认电子邮件地址(如果用户设置了电子邮件地址)。 example: someone.else@somewhere.else.example.org @@ -3518,7 +3553,7 @@ definitions: description: User 是单个用户的相关字段的抽象模型。 type: object x-go-name: User - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model webPushNotification: description: |- WebPushNotification 表示 Web 推送服务器传递给客户端的通知摘要。 @@ -3565,7 +3600,7 @@ definitions: title: WebPushNotification type: object x-go-name: WebPushNotification - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model webPushSubscription: properties: alerts: @@ -3594,7 +3629,7 @@ definitions: description: WebPushSubscription 表示对 Web 推送服务器的订阅。 type: object x-go-name: WebPushSubscription - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model webPushSubscriptionAlerts: properties: admin.report: @@ -3653,7 +3688,7 @@ definitions: description: WebPushSubscriptionAlerts 代表此 Web 推送订阅将接收的具体事件。 type: object x-go-name: WebPushSubscriptionAlerts - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model wellKnownResponse: properties: aliases: @@ -3676,17 +3711,65 @@ definitions: 参见 https://webfinger.net/ type: object x-go-name: WellKnownResponse - x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model + x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model host: example.org info: contact: email: admin@gotosocial.org - name: 全体 GotoSocial 开发者 + name: GotoSocial 开发者 + description: |- + 该文档描述了 GoToSocial HTTP API。 + + 有关如何使用 OAuth 访问令牌进行 API 身份验证的信息,请参阅此处的文档:https://docs.gotosocial.org/zh-cn/latest/api/authentication/。 + + 可用权限范围: + + admin: 授予对所有内容的管理权限 + admin:read: 授予对所有内容的管理读权限 + admin:read:accounts: 授予对账号的管理读权限 + admin:read:domain_allows: 授予对域名白名单的管理读权限 + admin:read:domain_blocks: 授予对域名黑名单的管理读权限 + admin:read:reports: 授予对举报的管理读权限 + admin:write: 授予对所有内容的管理写权限 + admin:write:accounts: 授予对账号的管理写权限 + admin:write:domain_allows: 授予对域名白名单的管理写权限 + admin:write:domain_blocks: 授予对域名黑名单的管理写权限 + admin:write:reports: 授予对举报的管理写权限 + profile: 授予对 verify_credentials 的读权限 + push: 授予对 push 的读写权限 + read: 授予对所有内容的读权限 + read:accounts: 授予对账号的读权限 + read:applications: 授予对用户管理的应用的读权限 + read:blocks: 授予对屏蔽的读权限 + read:bookmarks: 授予对收藏的读权限 + read:favourites: 授予对点赞的读权限 + read:filters: 授予对过滤规则的读权限 + read:follows: 授予对关注的读权限 + read:lists: 授予对列表的读权限 + read:mutes: 授予对隐藏的读权限 + read:notifications: 授予对通知的读权限 + read:search: 授予对搜索的读权限 + read:statuses: 授予对贴文的读权限 + write: 授予对所有内容的写权限 + write:accounts: 授予对账号的写权限 + write:applications: 授予对用户管理的应用的写权限 + write:blocks: 授予对屏蔽的写权限 + write:bookmarks: 授予对收藏的写权限 + write:conversations: 授予对对话的写权限 + write:favourites: 授予对点赞的写权限 + write:filters: 授予对过滤规则的写权限 + write:follows: 授予对关注的写权限 + write:lists: 授予对列表的写权限 + write:media: 授予对媒体的写权限 + write:mutes: 授予对隐藏的写权限 + write:notifications: 授予对通知的写权限 + write:reports: 授予对举报的写权限 + write:statuses: 授予对贴文的写权限 license: name: AGPL3 url: https://www.gnu.org/licenses/agpl-3.0.zh-cn.html title: GoToSocial Swagger 文档 - version: 0.18.2-SNAPSHOT-98c4cae8 + version: 0.19.1-SNAPSHOT-6c879186 paths: /.well-known/host-meta: get: @@ -4898,6 +4981,13 @@ paths: in: formData name: web_visibility type: string + - description: |- + 此账户使用的网页布局。 + "microblog": 默认,经典的微博客布局。 + "gallery": 仅显示媒体的画廊布局。 + in: formData + name: web_layout + type: string - description: 要添加到此帐户的资料页的第一个资料字段的名称。 (索引可以是任何字符串;添加更多索引以发送更多字段。) in: formData name: fields_attributes[0][name] @@ -5823,6 +5913,53 @@ paths: description: 查看具有给定 ID 的实例白名单条目。 tags: - admin + put: + consumes: + - multipart/form-data + operationId: domainAllowUpdate + parameters: + - description: 实例白名单条目的 ID。 + in: path + name: id + required: true + type: string + - description: 公开展示时对域名进行混淆。例如,`example.org` 将变为类似于 `ex***e.org` 的文本。 + in: formData + name: obfuscate + type: boolean + - description: 对该实例白名单条目的公开评论。当选择公开白名单时,此评论将显示在对应的实例白名单条目旁边。 + in: formData + name: public_comment + type: string + - description: 对该实例白名单条目的私密评论。仅显示给其他管理员,因此这是一个有用的内部方法,可用于跟踪为什么某个域名最终被允许。 + in: formData + name: private_comment + type: string + produces: + - application/json + responses: + "200": + description: 更新后的实例白名单条目。 + schema: + $ref: '#/definitions/domainPermission' + "400": + description: bad request 无效请求 + "401": + description: unauthorized 未授权 + "403": + description: forbidden 禁止 + "404": + description: not found 未找到 + "406": + description: not acceptable 不可接受 + "500": + description: internal server error 服务器内部错误 + security: + - OAuth2 Bearer: + - admin:write:domain_allows + summary: 更新单个实例白名单条目 + tags: + - admin /api/v1/admin/domain_blocks: get: operationId: domainBlocksGet @@ -5859,6 +5996,53 @@ paths: description: 查看当前所有实例黑名单。 tags: - admin + put: + consumes: + - multipart/form-data + operationId: domainBlockUpdate + parameters: + - description: 实例黑名单条目的 ID。 + in: path + name: id + required: true + type: string + - description: 公开展示时对域名进行混淆。例如,`example.org` 将变成类似于 `ex***e.org`。 + in: formData + name: obfuscate + type: boolean + - description: 对此实例黑名单条目的公开评论。如果选择公开黑名单,此评论将显示在对应的实例黑名单条目旁边。 + in: formData + name: public_comment + type: string + - description: 对此实例黑名单条目的私密评论。仅显示给其他管理员,因此这是一个有用的内部方法,用于追踪为什么某个域名最终被屏蔽。 + in: formData + name: private_comment + type: string + produces: + - application/json + responses: + "200": + description: 更新后的实例黑名单条目。 + schema: + $ref: '#/definitions/domainPermission' + "400": + description: bad request 无效请求 + "401": + description: unauthorized 未授权 + "403": + description: forbidden 禁止访问 + "404": + description: not found 未找到 + "406": + description: not acceptable 不可接受 + "500": + description: internal server error 服务器内部错误 + security: + - OAuth2 Bearer: + - admin:write:domain_blocks + summary: 更新单个实例黑名单条目 + tags: + - admin post: consumes: - multipart/form-data @@ -7560,6 +7744,64 @@ paths: tags: - announcements /api/v1/apps: + get: + description: |- + 获取由请求者管理的应用程序的数组。 + 可从返回的 Link 标头解析出下一页和上一页的查询地址。 + + 示例: + + ``` + ; rel="next", ; rel="prev" + ```` + operationId: appsGet + parameters: + - description: 只返回比给定的 max ID *旧* 的应用。具有指定 ID 的应用不会包含在响应中。 + in: query + name: max_id + type: string + - description: 只返回比给定的 since ID *新* 的应用。具有指定 ID 的应用不会包含在响应中。 + in: query + name: since_id + type: string + - description: 只返回比给定的 min ID *相邻且更新* 的应用(用于向上翻页)。具有指定 ID 的应用不会包含在响应中。 + in: query + name: min_id + type: string + - default: 20 + description: 要返回的应用数量。 + in: query + name: limit + type: integer + produces: + - application/json + responses: + "200": + description: "" + headers: + Link: + description: 下一/上一查询的链接。 + type: string + schema: + items: + $ref: '#/definitions/application' + type: array + "400": + description: bad request 无效请求 + "401": + description: unauthorized 未授权 + "404": + description: not found 未找到 + "406": + description: not acceptable 不可接受 + "500": + description: internal server error 服务器内部错误 + security: + - OAuth2 Bearer: + - read:applications + summary: 获取应用列表 + tags: + - apps post: consumes: - application/json @@ -7570,6 +7812,8 @@ paths: 注册的应用程序可用于获取应用程序令牌。 然后可以使用此令牌注册新帐户,或(通过用户身份验证)获取访问令牌。 + 如果应用程序是通过在 Authorization 标头中使用 Bearer 令牌创建的,则新创建的应用程序将由经过对应的的用户管理(Bearer 令牌必须具有 write:applications 范围)。 + 若 Content-Type 为 'application/json',则参数也可以在请求体中以 JSON 形式给出。 若 Content-Type 为 'application/xml',则参数也可以在请求体中以 XML 形式给出。 operationId: appCreate @@ -7625,6 +7869,71 @@ paths: summary: 创建应用程序 tags: - apps + /api/v1/apps/{id}: + delete: + operationId: appDelete + parameters: + - description: 要删除的应用程序的 ID。 + in: path + name: id + required: true + type: string + produces: + - application/json + responses: + "200": + description: 被删除的应用程序。 + schema: + $ref: '#/definitions/application' + "400": + description: bad request 无效请求 + "401": + description: unauthorized 未授权 + "404": + description: not found 未找到 + "406": + description: not acceptable 不可接受 + "500": + description: internal server error 服务器内部错误 + security: + - OAuth2 Bearer: + - write:applications + summary: 删除单个应用 + description: 删除单个由请求者管理的应用程序。 + tags: + - apps + get: + operationId: appGet + parameters: + - description: 要请求的应用程序的 ID。 + in: path + name: id + required: true + type: string + produces: + - application/json + responses: + "200": + description: 请求的应用程序。 + schema: + $ref: '#/definitions/application' + "400": + description: bad request 无效请求 + "401": + description: unauthorized 未授权 + "404": + description: not found 未找到 + "406": + description: not acceptable 不可接受 + "500": + description: internal server error 服务器内部错误 + security: + - OAuth2 Bearer: + - read:applications + summary: 获取单个应用 + description: 获取单个由请求者管理的应用程序。 + tags: + - apps /api/v1/blocks: get: description: |- @@ -10671,6 +10980,11 @@ paths: - application/x-www-form-urlencoded operationId: statusEdit parameters: + - description: 要编辑的贴文 ID。 + in: path + name: id + required: true + type: string - description: |- 贴文的文本内容。 如果提供了 media_ids,此项变为可选。 @@ -10773,7 +11087,7 @@ paths: /api/v1/statuses/{id}: delete: description: |- - 删除给定 ID 的贴文。贴文必须属于您。 + 删除给定 ID 的贴文。贴文必须属于调用API的用户。 删除的贴文将在响应中返回。`text` 字段将包含贴文的原始文本,就像它被提交时一样。这在执行“删除并重新撰写”类型操作时很有用。 operationId: statusDelete parameters: @@ -10985,7 +11299,7 @@ paths: - statuses /api/v1/statuses/{id}/history: get: - description: '查看给定 ID 的贴文的编辑历史。 **未实现**:当前此端点将始终返回一个长度为 1 的数组,仅包含贴文的最新/当前版本。' + description: '查看给定 ID 的贴文的编辑历史。' operationId: statusHistoryGet parameters: - description: 目标贴文 ID。 @@ -11986,6 +12300,150 @@ paths: description: 获取自己的用户模型。 tags: - user + /api/v1/user/2fa/disable: + post: + consumes: + - application/json + - application/x-www-form-urlencoded + description: |- + 如果双因素验证已被禁用,将返回 409 Conflict。 + + 如果实例正在运行 OIDC,那么将无法在 GtS 中启用或禁用双因素验证,必须在 OIDC 提供商处启用或禁用。所有对双因素验证 API 端点的调用在 OIDC 启用时将返回 422 Unprocessable Entity。 + operationId: TwoFactorDisablePost + parameters: + - description: 用户的当前密码,用于验证。 + in: formData + name: password + type: string + responses: + "200": + description: 二维码 + "401": + description: unauthorized 未授权 + "403": + description: forbidden 禁止 + "406": + description: not acceptable 不可接受 + "409": + description: conflict 冲突 + "422": + description: unprocessable entity 无法处理 + "500": + description: internal error 内部错误 + security: + - OAuth2 Bearer: + - write:accounts + summary: 禁用双因素验证 + description: 为当前用户禁用双因素验证,必须提供用户当前密码用于验证。 + tags: + - user + /api/v1/user/2fa/enable: + post: + consumes: + - application/json + - application/x-www-form-urlencoded + description: |- + 如果双因素验证已被启用,将返回 409 Conflict。 + + 如果实例正在运行 OIDC,那么将无法在 GtS 中启用或禁用双因素验证,必须在 OIDC 提供商处启用或禁用。所有对双因素验证 API 端点的调用在 OIDC 启用时将返回 422 Unprocessable Entity。 + operationId: TwoFactorEnablePost + parameters: + - description: |- + 用户的双因素验证代码。 + 示例:123456 + in: formData + name: code + type: string + produces: + - application/json + responses: + "200": + description: 二维码 + "401": + description: unauthorized 未授权 + "403": + description: forbidden 禁止 + "406": + description: not acceptable 不可接受 + "409": + description: conflict 冲突 + "422": + description: unprocessable entity 无法处理 + "500": + description: internal error 内部错误 + security: + - OAuth2 Bearer: + - write:accounts + summary: 启用双因素验证 + description: 为当前用户启用双因素验证,使用验证器应用提供的代码,返回一个一次性恢复代码数组,以允许绕过双因素验证。 + tags: + - user + /api/v1/user/2fa/qr.png: + get: + description: |- + 若希望获取二维码 URI 的明文版本,请调用 /api/v1/user/2fa/qruri 接口。 + + 若用户已经启用了双因素认证,将不会再次分享二维码(及其密钥)。反之,会返回 409 Conflict 错误。要获取新的密钥,请先使用 POST /api/v1/user/2fa/disable 接口禁用双因素认证,然后再调用此接口。 + + 若实例启用了 OIDC,则无法在 GtS 中开启或关闭双因素认证,必须使用 OIDC 提供商进行启用或禁用。在启用 OIDC 期间,所有对 2fa API 接口的调用都将返回 422 Unprocessable Entity 错误。 + operationId: TwoFactorQRCodePngGet + produces: + - image/png + responses: + "200": + description: 二维码 PNG 图片 + "401": + description: unauthorized 未授权 + "403": + description: forbidden 禁止 + "406": + description: not acceptable 不可接受 + "409": + description: conflict 冲突 + "422": + description: unprocessable entity 无法处理 + "500": + description: internal error 内部错误 + security: + - OAuth2 Bearer: + - read:accounts + summary: 查看用于启用双因素认证的二维码 + description: 返回一个二维码 PNG 图片,允许对应用户启用双因素认证。 + tags: + - user + /api/v1/user/2fa/qruri: + get: + description: |- + 若需要 PNG 格式的二维码,请调用 /api/v1/user/2fa/qr.png 接口。 + + 若用户已经启用了双因素验证,将不会再次分享二维码(及其密钥)。反之,会返回 409 Conflict 错误。要获取新的密钥,请先使用 POST /api/v1/user/2fa/disable 接口禁用双因素验证,然后再调用此接口。 + + 若实例启用了 OIDC,则无法在 GtS 中开启或关闭双因素验证,必须使用 OIDC 提供商进行启用或禁用。在启用 OIDC 期间,所有对双因素验证 API 接口的调用都将返回 422 Unprocessable Entity 错误。 + operationId: TwoFactorQRCodeURIGet + produces: + - text/plain + responses: + "200": + description: 二维码 URI + "401": + description: unauthorized 未授权 + "403": + description: forbidden 禁止 + "406": + description: not acceptable 不可接受 + "409": + description: conflict 冲突 + "422": + description: unprocessable entity 无法处理 + "500": + description: internal error 内部错误 + security: + - OAuth2 Bearer: + - read:accounts + summary: 查看用于启用双因素验证的二维码 URI + description: 返回一个二维码 URI,允许对应用户启用双因素验证。 + tags: + - user /api/v1/user/email_change: post: consumes: @@ -12915,6 +13373,44 @@ paths: summary: NodeInfo 2.0 tags: - nodeinfo + /oauth/revoke: + post: + consumes: + - multipart/form-data + operationId: oauthTokenRevoke + parameters: + - description: 客户端 ID,在注册应用时获取。 + in: formData + name: client_id + required: true + type: string + - description: 客户端密钥,在注册应用时获取。 + in: formData + name: client_secret + required: true + type: string + - description: 已获取的令牌,令牌将作废。 + in: formData + name: token + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK - 如果你拥有你所提供的令牌,API 调用将返回 OK 和一个空响应 `{}`。此操作是幂等的,因此多次调用此 API 将仍然返回 OK。 + "400": + description: bad request 无效请求 + "403": + description: forbidden - 如果你提供了一个你并不拥有的令牌,API 调用将返回 403 错误。 + "406": + description: not acceptable 不可接受 + "500": + description: internal server error 服务器内部错误 + summary: 撤销访问令牌 + description: 撤销访问令牌,使其不再可用。 + tags: + - oauth /readyz: get: description: 若 GoToSocial 服务“就绪” (即能够连接到数据库后端并执行简单的 SELECT),则返回无响应体的 200 状态码。若 GtS 尚未准备就绪,则在日志中记录错误(但不返回给调用方,以避免泄露内部信息)。 @@ -13101,6 +13597,7 @@ securityDefinitions: push: 授予对推送的读取和写入权限 read: 授予对所有内容的读取权限 read:accounts: 授予对账户的读取权限 + read:applications: 授予对用户管理的应用的读取权限 read:blocks: 授予对屏蔽状态的读取权限 read:bookmarks: 授予对收藏的读取权限 read:favourites: 授予对点赞的读取权限 @@ -13113,6 +13610,7 @@ securityDefinitions: read:statuses: 授予对贴文的读取权限 write: 授予对所有内容的写入权限 write:accounts: 授予对账户的写入权限 + write:applications: 授予对用户管理的应用的写入权限 write:blocks: 授予对屏蔽状态的写入权限 write:bookmarks: 授予对收藏的写入权限 write:conversations: 授予对对话的写入权限 diff --git a/docs/locales/zh/configuration/advanced.md b/docs/locales/zh/configuration/advanced.md index c41f3e47d..d9ecab845 100644 --- a/docs/locales/zh/configuration/advanced.md +++ b/docs/locales/zh/configuration/advanced.md @@ -149,4 +149,21 @@ advanced-csp-extra-uris: [] # 选项: ["block", "allow", ""] # 默认: "" advanced-header-filter-mode: "" + +# 布尔值。启用基于工作量证明的爬虫威慑机制, +# 作用于账户页和贴文页面。这将为每个 HTTP 客户端生成一个唯一确定 +# 的质询,需要由客户端在访问上述端点时完成。 +# 完成后,客户端会获得一个 Cookie,允许其在 1 小时窗口内免验证访问。 +# +# 这样做的结果是,它理论上使得对这些端点的抓取在经济上变得不可行, +# 同时对你自己的实例的性能影响可以忽略不计。 +# +# 缺点是它要求客户端启用 JavaScript。 +# +# 更多详情请查阅文档: +# https://docs.gotosocial.org/zh-cn/latest/admin/scraper_deterrence +# +# 选项: [true, false] +# 默认值: true +advanced-scraper-deterrence: false ``` \ No newline at end of file diff --git a/docs/locales/zh/configuration/database.md b/docs/locales/zh/configuration/database.md index cddd1d186..d0b55aa9b 100644 --- a/docs/locales/zh/configuration/database.md +++ b/docs/locales/zh/configuration/database.md @@ -42,6 +42,13 @@ create user gotosocial with password 'some_really_good_password'; grant all privileges on database gotosocial to gotosocial; ``` +如果开始使用时你使用的是 Postgres 14 或更高版本,或者遇到 `error executing command: error creating dbservice: db migration error: ERROR: permission denied for schema public`,你应当授予你的 db 用户 `CREATE` 权限 *(这 **必须** 在连接到 gotosocial 数据库的 postgres shell 中执行)*: + +```psql +GRANT CREATE ON SCHEMA public TO gotosocial; +SELECT has_schema_privilege('gotosocial', 'public', 'CREATE'); -- should return t +``` + GoToSocial 使用 ULIDs(全局唯一且按字典顺序可排序的标识符),这在非英文排序环境中不起作用。因此,创建数据库时使用 `C.UTF-8` 地区设置很重要。在已经使用非 C 地区初始化的系统上,必须使用 `template0` 原始数据库模板才能进行。 如果你希望使用特定选项连接到 Postgres,可以使用 `db-postgres-connection-string` 定义连接字符串。如果 `db-postgres-connection-string` 已定义,则所有其他与数据库相关的配置字段将被忽略。例如,可以使用 `db-postgres-connection-string` 连接到 `mySchema`,用户名为 `myUser`,密码为 `myPass`,在 `localhost` 上,数据库名称为 `db`: @@ -131,7 +138,7 @@ db-tls-ca-cert: "" # 乘数 8 是一个合理的默认值,但你可能希望为在非常高性能硬件上运行的实例增加此值,或为使用非常慢的 CPU 的实例减少此值。 # # 请注意!!:此设置目前仅适用于 Postgres。SQLite 将始终使用 1 个连接,无论此处设置为何。这种行为将在实现更好的 SQLITE_BUSY 处理时更改。 -# 更多详情请参见 https://github.com/superseriousbusiness/gotosocial/issues/1407。 +# 更多详情请参见 https://codeberg.org/superseriousbusiness/gotosocial/issues/1407。 # # 示例: [16, 8, 10, 2] # 默认: 8 diff --git a/docs/locales/zh/configuration/index.md b/docs/locales/zh/configuration/index.md index 7eba92186..79451f7bb 100644 --- a/docs/locales/zh/configuration/index.md +++ b/docs/locales/zh/configuration/index.md @@ -18,7 +18,7 @@ gotosocial --config-path ./config.yaml server start 该命令需要一个 [YAML](https://en.wikipedia.org/wiki/YAML) 或 [JSON](https://en.wikipedia.org/wiki/JSON) 格式的文件。 -可以在[这里](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml)找到示例配置文件,其中包含每个配置字段的解释、默认值和示例值。此示例文件也包含在每个发行版的下载资源中。 +可以在[这里](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml)找到示例配置文件,其中包含每个配置字段的解释、默认值和示例值。此示例文件也包含在每个发行版的下载资源中。 建议创建你自己的配置文件,只更改你需要改变的设置。这可以确保在每次发布时,你不必合并默认值的更改或者增删未从默认值更改的配置设置。 @@ -119,7 +119,7 @@ gotosocial server start --media-image-max-size 2097152 *大多数*配置参数都提供了合理的默认值,除了必须自定义值的情况。 -请查看[示例配置文件](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml)以获取默认值,或运行 `gotosocial --help`。 +请查看[示例配置文件](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml)以获取默认值,或运行 `gotosocial --help`。 ## `GTS_WAZERO_COMPILATION_CACHE` @@ -129,7 +129,7 @@ gotosocial server start --media-image-max-size 2097152 你可以通过将环境变量 `GTS_WAZERO_COMPILATION_CACHE` 设置为一个目录来指示 GoToSocial 存储 Wazero 工件,该目录将由 GtS 用于存储两个大小约为 ~50MiB 的小型工件(总计约 ~100MiB)。 -要了解此方法的示例,请参见 [docker-compose.yaml](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/docker-compose/docker-compose.yaml) 和 [gotosocial.service](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/gotosocial.service) 示例文件。 +要了解此方法的示例,请参见 [docker-compose.yaml](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/docker-compose/docker-compose.yaml) 和 [gotosocial.service](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/gotosocial.service) 示例文件。 如果你希望在 systemd 或 Docker 之外为 GtS 提供此值,可以在启动 GtS 服务器时通过以下方式进行: diff --git a/docs/locales/zh/faq.md b/docs/locales/zh/faq.md index a49272202..3de38165f 100644 --- a/docs/locales/zh/faq.md +++ b/docs/locales/zh/faq.md @@ -38,4 +38,4 @@ GoToSocial 默认配置了基于 IP 的[限流规则](./api/ratelimiting.md), ## 为什么还在 Beta 阶段? -查看[当前 bug 列表](https://github.com/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug)和[路线图](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/ROADMAP.md)以获取更详细的信息。 +查看[当前 bug 列表](https://codeberg.org/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug)和[路线图](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/ROADMAP.md)以获取更详细的信息。 diff --git a/docs/locales/zh/federation/http_signatures.md b/docs/locales/zh/federation/http_signatures.md index a3cac6cbc..7156986b2 100644 --- a/docs/locales/zh/federation/http_signatures.md +++ b/docs/locales/zh/federation/http_signatures.md @@ -20,11 +20,11 @@ GoToSocial 使用 [superseriousbusiness/httpsig](https://codeberg.org/superserio 接收请求时,GtS 将首先尝试验证包含查询参数的签名。如果签名验证失败,它将尝试在不包含查询参数的情况下重新验证签名。 -详细信息请参见 [#894](https://github.com/superseriousbusiness/gotosocial/issues/894)。 +详细信息请参见 [#894](https://codeberg.org/superseriousbusiness/gotosocial/issues/894)。 ## 传入请求 -GoToSocial 的请求签名验证在 [internal/federation](https://github.com/superseriousbusiness/gotosocial/blob/main/internal/federation/authenticate.go) 中实现。 +GoToSocial 的请求签名验证在 [internal/federation](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/internal/federation/authenticate.go) 中实现。 GoToSocial 将尝试按以下算法顺序解析签名,成功后将停止: @@ -36,9 +36,9 @@ ED25519 ## 发出请求 -GoToSocial 的请求签名在 [internal/transport](https://github.com/superseriousbusiness/gotosocial/blob/main/internal/transport/signing.go) 中实现。 +GoToSocial 的请求签名在 [internal/transport](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/internal/transport/signing.go) 中实现。 -一旦解决了 https://github.com/superseriousbusiness/gotosocial/issues/2991 ,GoToSocial 将使用 `(created)` 伪标头代替 `date`。 +一旦解决了 https://codeberg.org/superseriousbusiness/gotosocial/issues/2991 ,GoToSocial 将使用 `(created)` 伪标头代替 `date`。 然而,目前在组装签名时: @@ -82,4 +82,4 @@ https://example.org/users/example_user#main-key 与 GoToSocial 联合的外站服务器应从 `publicKey` 字段提取公钥。然后,它们应该使用公钥的 `owner` 字段签名 `GET` 请求,进一步解引用 Actor 的完整版本。 -这种行为是为了避免外站服务器对完整 Actor 端点进行未签名的 `GET` 请求引入的。然而,由于不合规且引发问题,此行为可能会在未来发生变化。在 [此问题](https://github.com/superseriousbusiness/gotosocial/issues/1186) 中进行跟踪。 +这种行为是为了避免外站服务器对完整 Actor 端点进行未签名的 `GET` 请求引入的。然而,由于不合规且引发问题,此行为可能会在未来发生变化。在 [此问题](https://codeberg.org/superseriousbusiness/gotosocial/issues/1186) 中进行跟踪。 diff --git a/docs/locales/zh/federation/posts.md b/docs/locales/zh/federation/posts.md index 61a040f07..798c07daa 100644 --- a/docs/locales/zh/federation/posts.md +++ b/docs/locales/zh/federation/posts.md @@ -1,5 +1,56 @@ # 帖文及其属性 +## 媒体附件, Blurhash, 与焦点 + +GoToSocial 在贴文的 `attachment` 属性中使用以下类型发送媒体附件: + +- `Image` - 任何图片类型 (webp, jpeg, gif, png, 等等)。 +- `Video` - 任何视频类型 (mp4, mkv, webm, 等等)。 +- `Audio` - 任何音频类型 (mp3, flac, wma, 等等)。 +- `Document` - 任何其他 / 未知类型。 + +GoToSocial 发送的附件包含 MIME 类型(`mediaType`)、媒体文件的完整尺寸版本的 `url` 以及摘要(`summary`)属性,外站实例可以将摘要属性解析为附件的简短描述或替代文本。 + +`Image` 和 `Video` 类型还会包含 `http://joinmastodon.org/ns#blurhash` 属性,以便外站实例可以生成图片的彩色哈希值。如果音频文件包含嵌入的封面图片,那么 `Audio` 类型也会包含 blurhash。请参阅 [Mastodon blurhash 文档](https://docs.joinmastodon.org/spec/activitypub/#blurhash)。 + +`Image` 类型还可能包含 `http://joinmastodon.org/ns#focalPoint` 属性,它是一个包含两个浮点数的数组,取值范围在 -1.0 到 1.0 之间,表示图片的焦点 x-y 坐标。请参阅 [Mastodon focalPoint 文档](https://docs.joinmastodon.org/spec/activitypub/#focalPoint)。 + +以下是一个包含一个附件的 `Note` 示例: + +```json +{ + "@context": [ + "https://www.w3.org/ns/activitystreams", + { + "blurhash": "toot:blurhash", + "focalPoint": { + "@container": "@list", + "@id": "toot:focalPoint" + }, + "toot": "http://joinmastodon.org/ns#" + } + ], + "type": "Note", + [...], + "attachment": [ + { + "blurhash": "LIIE|gRj00WB-;j[t7j[4nWBj[Rj", + "focalPoint": [ + -0.5, + 0.5 + ], + "mediaType": "image/jpeg", + "summary": "Black and white image of some 50's style text saying: Welcome On Board", + "type": "Image", + "url": "http://localhost:8080/fileserver/01F8MH17FWEB39HZJ76B6VXSKF/attachment/original/01F8MH6NEM8D7527KZAECTCR76.jpg" + } + ], + [...] +} +``` + +当接收来自外站实例的带有附件的贴文时,GoToSocial 会尝试将 `Image`、`Video`、`Audio` 或 `Document` 类型解析为媒体附件。实际使用这四种类型中的哪种类型并不重要。它会检查 `blurhash` 和 `focalPoint` 属性,若这些属性存在,就使用它们。它会使用 `summary` 值作为简短描述 / 替代文本,如果 `summary` 未设置,则回退到 `name`。 + ## 话题标签 GoToSocial 用户可以在贴文中包含话题标签,用于向其他实例表明该用户希望将其贴文与其他使用相同话题标签的贴文加入同一分组,以便于发现。 diff --git a/docs/locales/zh/getting_started/index.md b/docs/locales/zh/getting_started/index.md index 448778999..a19832894 100644 --- a/docs/locales/zh/getting_started/index.md +++ b/docs/locales/zh/getting_started/index.md @@ -64,7 +64,7 @@ GoToSocial 的轻量系统要求意味着它在配置良好的单板计算机上 !!! warning "云存储卷" 并非所有的云 VPS 存储都相同,声称基于 SSD 的存储并不一定适合作为 GoToSocial 实例的运行环境。 - [Hetzner 云卷的性能](https://github.com/superseriousbusiness/gotosocial/issues/2471#issuecomment-1891098323)没有保证,且延迟波动较大。这会导致你的 GoToSocial 实例表现不佳。 + [Hetzner 云卷的性能](https://codeberg.org/superseriousbusiness/gotosocial/issues/2471#issuecomment-1891098323)没有保证,且延迟波动较大。这会导致你的 GoToSocial 实例表现不佳。 !!! danger "Oracle 免费套餐" 如果你打算与多个其他实例和用户联合,[Oracle 云免费套餐](https://www.oracle.com/cloud/free/) 服务器不适合用于 GoToSocial 部署。 @@ -145,13 +145,13 @@ GoToSocial 需要开放端口 `80` 和 `443`。 ## 集群 / 多节点部署 -GoToSocial 不支持[集群或任何形式的多节点部署](https://github.com/superseriousbusiness/gotosocial/issues/1749)。 +GoToSocial 不支持[集群或任何形式的多节点部署](https://codeberg.org/superseriousbusiness/gotosocial/issues/1749)。 尽管多个 GtS 实例可以使用相同的 Postgres 数据库和共享的本地存储或相同的对象桶,但 GtS 依赖于大量的内部缓存以保持高效。没有同步这些实例缓存的机制。没有它,你会得到各种奇怪和不一致的行为。不要这样做! ## 调优 -除了[示例配置文件](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml)中的众多实例调优选项之外,你还可以对运行 GoToSocial 实例的机器进行额外的调优。 +除了[示例配置文件](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml)中的众多实例调优选项之外,你还可以对运行 GoToSocial 实例的机器进行额外的调优。 ### 交换内存 diff --git a/docs/locales/zh/getting_started/installation/container.md b/docs/locales/zh/getting_started/installation/container.md index 5ae26a4af..71f8ed40c 100644 --- a/docs/locales/zh/getting_started/installation/container.md +++ b/docs/locales/zh/getting_started/installation/container.md @@ -20,10 +20,10 @@ cd ~/gotosocial ## 获取最新的 docker-compose.yaml -使用 `wget` 下载最新的 [docker-compose.yaml](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/docker-compose/docker-compose.yaml) 示例,我们将根据需要进行自定义: +使用 `wget` 下载最新的 [docker-compose.yaml](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/docker-compose/docker-compose.yaml) 示例,我们将根据需要进行自定义: ```bash -wget https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/docker-compose/docker-compose.yaml +wget https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/docker-compose/docker-compose.yaml ``` ## 编辑 docker-compose.yaml @@ -45,7 +45,7 @@ nano docker-compose.yaml * `X.Y.Z`:发布标签。这指向 GoToSocial 的特定、稳定的版本。 !!! tip "提示" - `latest` 和 `snapshot` 标签是动态标签,而 `X.Y.Z` 标签是固定的。拉取动态标签的结果可能每天都会变化。同一系统上的 `latest` 可能与不同系统上的 `latest` 不同。建议使用 `X.Y.Z` 标签,以便你始终确切知道运行的是 GoToSocial 的哪个版本。发布列表可以在[这里](https://github.com/superseriousbusiness/gotosocial/releases)找到,最新的发布在顶部。 + `latest` 和 `snapshot` 标签是动态标签,而 `X.Y.Z` 标签是固定的。拉取动态标签的结果可能每天都会变化。同一系统上的 `latest` 可能与不同系统上的 `latest` 不同。建议使用 `X.Y.Z` 标签,以便你始终确切知道运行的是 GoToSocial 的哪个版本。发布列表可以在[这里](https://codeberg.org/superseriousbusiness/gotosocial/releases)找到,最新的发布在顶部。 ### 主机 diff --git a/docs/locales/zh/getting_started/installation/metal.md b/docs/locales/zh/getting_started/installation/metal.md index 425597299..4b07c6c71 100644 --- a/docs/locales/zh/getting_started/installation/metal.md +++ b/docs/locales/zh/getting_started/installation/metal.md @@ -34,14 +34,14 @@ cd /gotosocial 现在,下载与你运行的操作系统和架构相对应的最新 GoToSocial 发行版压缩包。 !!! tip "提示" - 你可以在[这里](https://github.com/superseriousbusiness/gotosocial/releases)找到按发布时间排列的发布列表,最新的发行版位于最上面。 + 你可以在[这里](https://codeberg.org/superseriousbusiness/gotosocial/releases)找到按发布时间排列的发布列表,最新的发行版位于最上面。 例如,下载适用于 64 位 Linux 的版本: ```bash GTS_VERSION=X.Y.Z # 替换此处 GTS_TARGET=linux_amd64 -wget https://github.com/superseriousbusiness/gotosocial/releases/download/v${GTS_VERSION}/gotosocial_${GTS_VERSION}_${GTS_TARGET}.tar.gz +wget https://codeberg.org/superseriousbusiness/gotosocial/releases/download/v${GTS_VERSION}/gotosocial_${GTS_VERSION}_${GTS_TARGET}.tar.gz ``` 然后解压: @@ -123,7 +123,7 @@ sudo usermod -a -G gotosocial gotosocial sudo chown -R gotosocial:gotosocial /gotosocial ``` -你可以在 [GitHub](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/gotosocial.service) 或你的安装文件夹中的 `example` 文件夹中找到一个 `gotosocial.service` 文件。 +你可以在 [我们的 Codeberg 存储库](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/example/gotosocial.service) 或你的安装文件夹中的 `example` 文件夹中找到一个 `gotosocial.service` 文件。 将它复制到 `/etc/systemd/system/gotosocial.service`: diff --git a/docs/locales/zh/mkdocs.yml b/docs/locales/zh/mkdocs.yml index 94f8895ad..5a011340d 100644 --- a/docs/locales/zh/mkdocs.yml +++ b/docs/locales/zh/mkdocs.yml @@ -80,6 +80,7 @@ nav: - "advanced/tracing.md" - "advanced/metrics.md" - "advanced/replicating-sqlite.md" + - "advanced/scraper_deterrence.md" - "advanced/sqlite-networked-storage.md" - "适用进阶场景的构建": - "advanced/builds/nowasm.md" diff --git a/docs/locales/zh/repo/CONTRIBUTING.md b/docs/locales/zh/repo/CONTRIBUTING.md index cee9cf47c..a1d371716 100644 --- a/docs/locales/zh/repo/CONTRIBUTING.md +++ b/docs/locales/zh/repo/CONTRIBUTING.md @@ -41,11 +41,11 @@ ## 错误报告与功能请求 -目前,我们使用 Github 的问题追踪系统来管理错误报告与功能请求。 +目前,我们使用 Codeberg 的问题追踪系统来管理错误报告与功能请求。 -你可以在[此处](https://github.com/superseriousbusiness/gotosocial/issues "GoToSocial 的 Github 问题页")查看所有开放的问题。 +你可以在[此处](https://codeberg.org/superseriousbusiness/gotosocial/issues "GoToSocial 的 Codeberg 问题追踪页")查看所有开放的问题。 -在创建新问题之前,不论是错误还是功能请求,**请现仔细搜索所有仍处于打开状态和已被关闭的问题,以确保它尚未被解决过**。你可以使用 Github 的关键字搜索来进行此操作。如果你的问题与已有问题重复,它将被关闭。 +在创建新问题之前,不论是错误还是功能请求,**请现仔细搜索所有仍处于打开状态和已被关闭的问题,以确保它尚未被解决过**。你可以使用 Codeberg 的关键字搜索来进行此操作。如果你的问题与已有问题重复,它将被关闭。 在打开功能请求之前,请考虑以下几点: @@ -121,26 +121,22 @@ conda env export -n gotosocial-docs --from-history --override-channels -c conda- ### Golang 的分支特点 -Golang 的一个特点是,它所依赖的源代码管理路径与 `go.mod` 中使用的路径以及各 Go 文件中的包导入路径相同。这使得使用分支有些棘手。 - -假设你要将 GoToSocial 分支到 `github.com/yourgithubname/gotosocial`,然后将存储库克隆到 `~/go/src/github.com/yourgithubname/gotosocial`。你可能会在尝试运行测试或构建时遇到错误,因此你可能会更改 `go.mod` 文件,使模块名称为 `github.com/yourgithubname/gotosocial` 而不是 `github.com/superseriousbusiness/gotosocial`。但这样做会破坏项目中的所有导入路径。这简直是噩梦!于是,你不得不逐一在源代码文件中将 `github.com/superseriousbusiness/gotosocial` 替换为 `github.com/yourgithubname/gotosocial`。这样确实能行得通,但一旦你决定对原始存储库发起合并请求,所有路径变更都会被包含在内!哦不! - -正确的解决方案是先派生存储库,然后克隆上游存储库,并将上游存储库的 `origin` 设置为你分支的源。 +Golang 的一个特点是,它所依赖的源代码管理路径与 `go.mod` 中使用的路径以及各 Go 文件中的包导入路径相同。这使得使用分支版本变得有些棘手。这个问题的解决方案是先派生存储库,然后克隆上游存储库,并将上游存储库的 `origin` 设置为你派生的存储库的源。 有关更多细节,请参阅[这篇博客](https://blog.sgmansfield.com/2016/06/working-with-forks-in-go/)。 为防此文章消失,此处是步骤(有轻微修改): > -> 在 GitHub 上派生存储库或设置任何其他远程 git 存储库。在这种情况下,我会转到 GitHub 并分支存储库。 +> 在 Codeberg 上派生存储库或设置任何其他远端 git 存储库。在这种情形下,我会转到 Codeberg 并派生存储库。 > > 现在克隆上游存储库(而非派生的存储库): > -> `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` > > 转到你的计算机上上游存储库的顶级目录: > -> `cd ~/go/src/github.com/superseriousbusiness/gotosocial` +> `cd ~/go/src/code.superseriousbusiness.org/gotosocial` > > 将当前的 origin 远程源重命名为 upstream: > @@ -148,7 +144,7 @@ Golang 的一个特点是,它所依赖的源代码管理路径与 `go.mod` 中 > > 把你的派生分支添加为 origin: > -> `git remote add origin git@github.com:yourgithubname/gotosocial` +> `git remote add origin git@codeberg.org:username/gotosocial` > 在第一次构建项目之前,一定要运行 `git fetch`。 @@ -157,9 +153,9 @@ Golang 的一个特点是,它所依赖的源代码管理路径与 `go.mod` 中 #### 二进制文件 -要开始构建,你需要先安装 Go。GtS 目前使用 Go 1.21,因此你也应该使用这个版本。安装指南见[此处](https://golang.org/doc/install)。 +要开始构建,你首先需要安装 Go。你可以在顶层目录的 `go.mod` 文件中查看需要安装的 Go 版本,然后按照[此处](https://golang.org/doc/install)的指引进行安装。 -安装 go 后,将此存储库克隆到你的 Go 路径中。通常,此路径为 `~/go/src/github.com/superseriousbusiness/gotosocial`。 +安装 Go 后,将此存储库克隆到你的 Go 路径中。通常,此路径为 `~/go/src/code.superseriousbusiness.org/gotosocial`。 安装完上述环境与依赖后,可以尝试构建项目:`./scripts/build.sh`。此命令将构建 `gotosocial` 二进制文件。 @@ -187,8 +183,6 @@ GoReleaser 还被 GoToSocial 用于构建和推送 Docker 镜像。 为此,首先[安装 GoReleaser](https://goreleaser.com/install/)。 -然后按照[Swagger 部分](#更新-swagger-文档)的说明安装 GoSwagger。 - 接着按[样式表 / Web开发](#样式表--web开发)的说明安装 Node 和 Yarn。 最后,创建快照构建,执行: @@ -201,7 +195,7 @@ goreleaser release --clean --snapshot ##### 手动构建 -如果你更喜欢以简单方法构建 Docker 容器,使用更少的依赖(go-swagger, Node, Yarn),也可以这样构建: +如果你更喜欢以简单方法构建 Docker 容器,使用更少的依赖(Node, Yarn),也可以这样构建: ```bash ./scripts/build.sh && docker buildx build -t superseriousbusiness/gotosocial:latest . @@ -209,6 +203,8 @@ goreleaser release --clean --snapshot 上述命令首先构建 `gotosocial` 二进制文件,然后调用 Docker buildx 构建容器镜像。 +如果在构建过程中出现错误,提示 `"/web/assets/swagger.yaml": not found`,则需要(重新)生成 Swagger 文档,参见 [更新 Swagger 文档](#更新-swagger-文档)。 + 如果想为不同 CPU 架构构建 docker 镜像而不设置 buildx(例如 ARMv7 aka 32-bit ARM),首先需要通过添加以下几行到 Dockerfile 顶部来修改 Dockerfile(但不要提交此更改!): ```dockerfile @@ -396,7 +392,7 @@ golangci-lint run ### 测试 -GoToSocial 提供了一个 [testrig](https://github.com/superseriousbusiness/gotosocial/tree/main/testrig),包含一些可以用于集成测试的模拟包。 +GoToSocial 提供了一个 [testrig](https://codeberg.org/superseriousbusiness/gotosocial/tree/main/testrig),包含一些可以用于集成测试的模拟包。 没有模拟的一个东西是数据库接口,因为使用内存中的 SQLite 数据库比模拟所有东西要简单得多。 @@ -483,64 +479,24 @@ GTS_DB_TYPE="postgres" GTS_DB_ADDRESS="localhost" go test -p 1 ./... GoToSocial 使用 [go-swagger](https://goswagger.io) 根据代码注释生成 Swagger API 文档。 -你可以遵循 [此处](https://goswagger.io/go-swagger/install/) 的说明安装 go-swagger。 - -如果你更改了任何 API 路径上的 Swagger 注释,可以通过运行以下命令在 `./docs/api/swagger.yaml` 生成一个新的 Swagger 文件: +如果你修改了任何 API 端点上的 Swagger 注释,你可以通过运行以下命令在 `./docs/api/swagger.yaml` 生成一个新的 Swagger 文件,并通过以下命令将该文件复制到 web 资源目录中: ```bash -go run github.com/go-swagger/go-swagger/cmd/swagger generate spec --scan-models --exclude-deps --output docs/api/swagger.yaml +go run ./vendor/github.com/go-swagger/go-swagger/cmd/swagger \ +generate spec --scan-models --exclude-deps -o docs/api/swagger.yaml \ +&& cp docs/api/swagger.yaml web/assets/swagger.yaml ``` +你无需安装 go-swagger 来运行此命令,因为 `vendor` 目录中已经包含了 go-swagger。 + ### CI/CD 配置 -GoToSocial 使用 [Drone](https://www.drone.io/) 进行 CI/CD 任务,如运行测试、代码检查和构建 Docker 容器。 +GoToSocial 使用 [Woodpecker CI](https://woodpecker-ci.org/) 进行 CI/CD 任务,如运行测试、代码检查和构建 Docker 容器。 -这些运行与 GitHub 集成,在打开拉取请求或合并到主干时执行。 +这些运行与 Codeberg 集成,在打开拉取请求或合并到主干时执行。 -GoToSocial 的 Drone 实例在 [此处](https://drone.superseriousbusiness.org/superseriousbusiness/gotosocial)。 +`woodpecker` 流水线文件在 [此处](../../../../.woodpecker) —— 它们定义了 Woodpecker 如何运行及何时运行。 -`drone.yml` 文件在 [此处](../../../../.drone.yml) —— 它定义了 Drone 如何运行及何时运行。Drone 的文档在 [此处](https://docs.drone.io/)。 +GoToSocial 的 Woodpecker 实例地址在 [此处](https://woodpecker.superseriousbusiness.org/repos/2). -值得注意的是,`drone.yml` 文件必须由 Drone 管理员帐户签名后才被视为有效。每次修改该文件时都必须这样做。这是为了防止篡改和劫持 Drone 实例。请参阅 [此处](https://docs.drone.io/signature/)。 - -要签署文件,请首先安装并设置 [drone cli 工具](https://docs.drone.io/cli/install/)。然后,运行: - -```bash -drone -t PUT_YOUR_DRONE_ADMIN_TOKEN_HERE -s https://drone.superseriousbusiness.org sign superseriousbusiness/gotosocial --save -``` - -### 发布检查清单 - -首先:如果这是一个安全修复,我们可能会加急处理此清单,并在几天后发布包含此修复的版本。 - -现在,解决完安全问题后,此处是我们的清单。 - -GoToSocial 遵循 [语义化版本控制](https://semver.org/)。 -因此,清单上的首要问题是: - -- 我们正在发布哪个版本? - -接下来我们需要检查: - -- 这些资源是否需要重新构建并提交到存储库。 -- Swagger 文档是否需要重新生成? - -在项目管理方面: - -- 是否有需要移动到其他里程碑的问题? -- [路线图](./ROADMAP.md) 上是否有可以勾掉的事情? - -一旦我们对清单满意,我们就可以创建标签并推送它。 -剩下的事情 [是自动化](../../../../.drone.yml)。 - -然后我们可以前往 GitHub,为发布说明增添个性。 -最后,我们在所有渠道上发布公告,宣布发布已完成! - -#### 如果出问题了怎么办? - -有时事情会出错。 -我们发布了有 Bug 的版本,或者忘记了什么重要的东西。 - -如果该版本不可用,甚至对很大一部分用户而言是危险的,我们可以删除标签。 - -无论怎样,一旦我们解决了问题,我们就重新开始这个清单。版本号并不昂贵,可以随意更改。 +Woodpecker 的文档参见 [此处](https://woodpecker-ci.org/docs/intro). \ No newline at end of file diff --git a/docs/locales/zh/repo/README.md b/docs/locales/zh/repo/README.md index 83527fbe2..66879491a 100644 --- a/docs/locales/zh/repo/README.md +++ b/docs/locales/zh/repo/README.md @@ -3,23 +3,23 @@ **有关企业赞助的更新:我们欢迎与符合我们价值观的组织建立赞助关系;请查看下述条件** -GoToSocial 是一个用 Golang 编写的 [ActivityPub](https://activitypub.rocks/) 社交网络服务端。 +🏳️‍🌈 GoToSocial 是一个用 Golang 编写的 [ActivityPub](https://activitypub.rocks/) 社交网络服务端。 🏳️‍⚧️ 通过 GoToSocial,你可以与朋友保持联系,发帖、阅读和分享图片及文章,且不会被追踪或广告打扰!

- +

**GoToSocial 仍然是 [BETA 软件](https://en.wikipedia.org/wiki/Software_release_life_cycle#Beta)**。它已经可被部署和使用,并能与许多其他 Fediverse 服务端顺利联合(但还不是与所有服务端)。然而,许多功能尚未实现,而且还有不少漏洞!我们在 2024 年 9 月/10 月离开了 Alpha 阶段,并计划于 2026 年结束 Beta。 文档位于 [docs.gotosocial.org](https://docs.gotosocial.org/zh-cn/)。你可以直接跳至 [API 文档](https://docs.gotosocial.org/zh-cn/latest/api/swagger/)。 -要从源代码构建,请查看 [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件。 +要从源代码构建,请查看 [CONTRIBUTING.md](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件。 这是实例首页的截图!你也可以看一看本项目在 GoToSocial 上的官方账号: [https://gts.superseriousbusiness.org/@gotosocial](https://gts.superseriousbusiness.org/@gotosocial)。 -![GoToSocial 实例 goblin.technology 的首页截图。它展示了实例的基本信息,如用户数和贴文数等。](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/instancesplash.png) +![GoToSocial 实例 goblin.technology 的首页截图。它展示了实例的基本信息,如用户数和贴文数等。](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/instancesplash.png) ## 目录 @@ -40,6 +40,7 @@ GoToSocial 是一个用 Golang 编写的 [ActivityPub](https://activitypub.rocks - [多种联合模式](#多种联合模式) - [OIDC 集成](#oidc-集成) - [后端优先设计](#后端优先设计) +- [替代实现](#替代实现) - [已知问题](#已知问题) - [安装 GoToSocial](#安装-gotosocial) - [支持的平台](#支持的平台) @@ -73,7 +74,7 @@ GoToSocial 提供了一个轻量级、可定制且注重安全的进入 [联邦 如果你曾使用过 Twitter 或 Tumblr(甚至是 Myspace)等服务,GoToSocial 可能会让你感到熟悉:你可以关注他人并拥有粉丝,发布贴文,点赞、回复和分享他人的帖子,并通过时间线浏览你关注的人的贴文。你可以撰写长篇或短篇贴文,或者仅发布图片,一切随你选择。当然,你也可以屏蔽他人,或通过选择仅向朋友发布来限制不想要的互动。 -![GoToSocial 中的网页版账户页截图,显示了头像、简介和粉丝/关注人数。](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/profile1.png) +![GoToSocial 中的网页版账户页截图,显示了头像、简介和粉丝/关注人数。](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/profile1.png) **GoToSocial 不使用推荐算法,也不收集你的数据来推荐内容或“改善你的体验”**。时间线是按时间顺序排列的:你在时间线顶部看到的内容是*刚刚发布的*,而不是根据你的个人资料选择的“有趣”或“有争议”的内容。 @@ -85,7 +86,7 @@ GoToSocial 不会宣称比其他应用更“好”,但它提供了一些可能 因为 GoToSocial 使用 [ActivityPub](https://activitypub.rocks/),你不仅可以与本站上的人交流,还可以无缝与 [联邦宇宙](https://en.wikipedia.org/wiki/Fediverse) 上的人交流。 -![activitypub 标志](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/ap_logo.svg) +![activitypub 标志](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/ap_logo.svg) 联合意味着你的实例是一个遍布世界的、使用相同协议通信的服务器网络的一部分。你的数据不再集中在一家公司服务器上,而是在你自己的服务器上,根据你的意愿,跨越由其他人运行的服务器组成的弹性网络实现共享。 @@ -101,7 +102,7 @@ GoToSocial 的愿景是让许多小而特别的实例遍布联邦宇宙,让人 我们在 2021 年 11 月进行了首次 Alpha 发布。我们于 2024 年 9 月/10 月离开 Alpha,进入 Beta 阶段。 -要详细了解已实现和未实现的内容,以及 [稳定发布](https://en.wikipedia.org/wiki/Software_release_life_cycle#Stable_release) 的进展,请查看 [路线图](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/ROADMAP.md)。 +要详细了解已实现和未实现的内容,以及 [稳定发布](https://en.wikipedia.org/wiki/Software_release_life_cycle#Stable_release) 的进展,请查看 [路线图](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/ROADMAP.md)。 --- @@ -129,7 +130,7 @@ GoToSocial 提供公开、不列出/悄悄公开、仅粉丝和私信(最好 GoToSocial 允许你通过 [互动规则](https://docs.gotosocial.org/zh-cn/latest/user_guide/settings/#默认互动规则) 选择谁可以回复你的贴文。你可以选择允许任何人回复贴文,仅允许朋友回复,等等。 -![互动规则设置](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/user-settings-interaction-policy-1.png) +![互动规则设置](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/user-settings-interaction-policy-1.png) ### 仅本站贴文 @@ -143,7 +144,7 @@ GoToSocial 允许你选择将个人资料暴露为 RSS 订阅源,这样人们 使用 GoToSocial,你可以使用流行且易用的 Markdown 标记语言来撰写帖子,从而生成丰富的 HTML 贴文,支持引用段落、语法高亮代码块、列表、内嵌链接等。 -![markdown 格式化贴文](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/markdown-post.png) +![markdown 格式化贴文](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/markdown-post.png) ### 主题与自定义 CSS @@ -154,61 +155,61 @@ GoToSocial 允许你选择将个人资料暴露为 RSS 订阅源,这样人们
显示主题示例
- +
Blurple dark

- +
Blurple light

- +
Brutalist light

- +
Brutalist dark

- +
Ecks pee

- +
Midnight trip
- +
Moonlight hunt

- +
Rainforest

- +
Soft

- +
Solarized dark

- +
Solarized light

- +
Sunset

@@ -218,7 +219,7 @@ GoToSocial 允许你选择将个人资料暴露为 RSS 订阅源,这样人们 GoToSocial 仅需约 250-350MiB 的 RAM,并且只要求极少的 CPU 频率,因此非常适合单板计算机、旧笔记本和每月 5 美元的小 VPS。 -![Grafana 图标显示 GoToSocial 堆占用约为 250MB,偶尔飙升至 400MB-500MB。](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/docs/overrides/public/getting-started-memory-graph.png) +![Grafana 图标显示 GoToSocial 堆占用约为 250MB,偶尔飙升至 400MB-500MB。](https://codeberg.org/superseriousbusiness/gotosocial/raw/branch/main/docs/overrides/public/getting-started-memory-graph.png) 除数据库外无需其他依赖(也可以仅使用 SQLite!)。 @@ -231,6 +232,7 @@ GoToSocial 仅需约 250-350MiB 的 RAM,并且只要求极少的 CPU 频率, - [导入/导出](https://docs.gotosocial.org/zh-cn/latest/admin/settings/#导入导出) 社区创建的域名允许和域名阻止列表,并[订阅](https://docs.gotosocial.org/zh-cn/latest/admin/domain_permission_subscriptions)这些列表。 - HTTP 签名认证:GoToSocial 在发送和接收消息时要求 [HTTP 签名](https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures-12),以确保消息不能被篡改,身份不能被伪造。 - 内置 [Let's Encrypt](https://letsencrypt.org/) 的自动使用 HTTPS 支持。 +- 支持基于时间的一次性双因素认证代码(Google 认证器,LastPass 认证器等)。 ### 多种联合模式 @@ -256,17 +258,29 @@ GoToSocial 支持 [OpenID Connect (OIDC)](https://openid.net/connect/) 身份提 --- +## 替代实现 + +不喜欢 GtS 但还是想搭建联邦宇宙服务?喜欢 GtS 但不想用测试版软件?有很多替代实现可能更适合你!这里列出一些我们知道的使用效果不错的实现(按字母顺序排列): + +- [Akkoma](https://akkoma.social/):功能齐全的 ActivityPub 微博客,支持表情反应和引用贴文(Elixir)。 +- [Honk](https://humungus.tedunangst.com/r/honk/m/activitypub.7):极简、有特点的微博客服务端,特点是“没有点赞、没有收藏、没有投票、没有加星、没有鼓掌、没有互动计数”(Go)。 +- [Iceshrimp.net](https://iceshrimp.dev/iceshrimp/Iceshrimp.NET):Iceshrimp 的全新重写版本(.Net)。 +- [Mastodon](https://joinmastodon.org/):积极开发、广为人知、可扩展的 ActivityPub 微博客服务端(Ruby)。 +- [Snac2](https://codeberg.org/grunfink/snac2):简约、最小化的实例,系统要求非常低(可移植 C)。 + +--- + ## 已知问题 -由于 GoToSocial 仍处于测试阶段,存在很多错误。我们使用 [GitHub issues](https://github.com/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug) 跟踪这些问题。 +由于 GoToSocial 仍处于测试阶段,存在很多错误。我们使用 [Codeberg issues](https://codeberg.org/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug) 跟踪这些问题。 -由于每个 ActivityPub 服务端实现对协议的解释略有不同,有些服务端尚未与 GoToSocial 正常联合。我们在 [这个项目](https://github.com/superseriousbusiness/gotosocial/projects/4) 中跟踪这些问题。最终,我们希望确保任何可以与 Mastodon 正确联合的 ActivityPub 实现也能够与 GoToSocial 联合。 +由于每个 ActivityPub 服务端实现对协议的解释略有不同,有些服务端尚未与 GoToSocial 正常联合。我们在 [这个项目](https://codeberg.org/superseriousbusiness/gotosocial/projects/4) 中跟踪这些问题。最终,我们希望确保任何可以与 Mastodon 正确联合的 ActivityPub 实现也能够与 GoToSocial 联合。 --- ## 安装 GoToSocial -查看我们的 [入门文档](https://docs.gotosocial.org/zh-cn/latest/getting_started/),并浏览我们的 [发布页面](https://github.com/superseriousbusiness/gotosocial/releases)。 +查看我们的 [入门文档](https://docs.gotosocial.org/zh-cn/latest/getting_started/),并浏览我们的 [发布页面](https://codeberg.org/superseriousbusiness/gotosocial/releases)。 ### 支持的平台 @@ -294,13 +308,13 @@ GoToSocial 支持 [OpenID Connect (OIDC)](https://openid.net/connect/) 身份提 #### 64位 -64位平台需要以下(现在很常见的)CPU指令: +对 64 位 CPU 的特性要求注释: -- x86-64需要SSE4.1(用于媒体解码和WASM SQLite) +- x86_64 需要支持 SSE4.1 指令集 (自2010年左右起生产的CPU大多支持) -- Armv8需要ARM64大型系统扩展(ARM64 Large System Extensions)(特别是在使用WASM SQLite时) +- ARM64 没有特定指令集要求, ARMv8 CPU(及后续版本)已支持全部所需特性。 -如果没有这些指令,性能将会受到影响。在这些情况下,您可以尝试使用完全**不受支持、实验性的**[nowasm](https://docs.gotosocial.org/en/latest/advanced/builds/nowasm/)标签自行构建二进制文件。 +如果没有这些指令集,媒体处理性能将会受到影响(多数情况下,SQLite性能也会收到影响)。在这些情况下,您可以尝试使用完全**不受支持、实验性的**[nowasm](https://docs.gotosocial.org/zh-cn/latest/advanced/builds/nowasm/)标签自行构建二进制文件。 #### BSD系 @@ -340,11 +354,11 @@ Docker 镜像 `superseriousbusiness/gotosocial:latest` 始终对应于最新稳 要使用二进制发布从主分支运行,请从我们的 [自托管 Minio S3 仓库](https://minio.s3.superseriousbusiness.org/browser/gotosocial-snapshots)下载适合你架构的 .tar.gz 文件。 -S3 存储桶中的快照版二进制发布由 Github 提交哈希控制。要获取最新的,请按上次修改时间排序,或者查看 [这里的提交列表](https://github.com/superseriousbusiness/gotosocial/commits/main),复制最新的 SHA,并在 Minio 控制台过滤器中粘贴。快照二进制发布会在 28 天后过期,以降低我们的托管成本。 +S3 存储桶中的快照版二进制发布由代码提交哈希控制。要获取最新的,请按上次修改时间排序,或者查看 [这里的提交列表](https://codeberg.org/superseriousbusiness/gotosocial/commits/main),复制最新的 SHA,并在 Minio 控制台过滤器中粘贴。快照二进制发布会在 28 天后过期,以降低我们的托管成本。 ### 从源代码构建 -有关从源代码构建 GoToSocial 的说明,请参见 [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件。 +有关从源代码构建 GoToSocial 的说明,请参见 [CONTRIBUTING.md](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件。 ### 第三方打包 @@ -365,7 +379,7 @@ S3 存储桶中的快照版二进制发布由 Github 提交哈希控制。要获 ## 参与贡献 -你想为 GtS 作出贡献吗?太好了!❤️❤️❤️ 请查看问题页面,看看是否有你想参与的内容,并阅读 [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件以获取指南并配置开发环境。 +你想为 GtS 作出贡献吗?太好了!❤️❤️❤️ 请查看问题页面,看看是否有你想参与的内容,并阅读 [CONTRIBUTING.md](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件以获取指南并配置开发环境。 --- @@ -373,7 +387,7 @@ S3 存储桶中的快照版二进制发布由 Github 提交哈希控制。要获 如果你有问题或反馈,可以[加入我们的 Matrix 空间](https://matrix.to/#/#gotosocial-space:superseriousbusiness.org),地址是 `#gotosocial-space:superseriousbusiness.org`。这是联系开发人员的最快方式。你也可以发送邮件至 [admin@gotosocial.org](mailto:admin@gotosocial.org)。 -对于错误和功能请求,请先查看是否[已有相应问题](https://github.com/superseriousbusiness/gotosocial/issues),如果没有,可以开一个新问题工单(issue),或者使用上述渠道提出请求(如果你没有 Github 账户的话)。 +对于错误和功能请求,请先查看是否[已有相应问题](https://codeberg.org/superseriousbusiness/gotosocial/issues),如果没有,可以开一个新问题工单(issue),或者使用上述渠道提出请求(如果你没有 Github 账户的话)。 --- @@ -428,15 +442,16 @@ GoToSocial 使用以下开源库、框架和工具,在此声明并致谢 💕 - [mvdan.cc/xurls](https://github.com/mvdan/xurls); URL 解析正则表达式。 [BSD-3-Clause 许可证](https://spdx.org/licenses/BSD-3-Clause.html)。 - [oklog/ulid](https://github.com/oklog/ulid); 顺序友好的数据库 ID 生成。 [Apache-2.0 许可证](https://spdx.org/licenses/Apache-2.0.html)。 - [open-telemetry/opentelemetry-go](https://github.com/open-telemetry/opentelemetry-go); OpenTelemetry API + SDK。 [Apache-2.0 许可证](https://spdx.org/licenses/Apache-2.0.html)。 +- [pquerna/otp](https://github.com/pquerna/otp); 一次性代码工具。 [Apache-2.0 许可证](https://spdx.org/licenses/Apache-2.0.html)。 - spf13: - [spf13/cobra](https://github.com/spf13/cobra); 命令行工具。 [Apache-2.0 许可证](https://spdx.org/licenses/Apache-2.0.html)。 - [spf13/viper](https://github.com/spf13/viper); 配置管理。 [Apache-2.0 许可证](https://spdx.org/licenses/Apache-2.0.html)。 - [stretchr/testify](https://github.com/stretchr/testify); 测试框架。 [MIT 许可证](https://spdx.org/licenses/MIT.html)。 - superseriousbusiness: - - [superseriousbusiness/activity](https://codeberg.org/superseriousbusiness/activity) 从 [go-fed/activity](https://github.com/go-fed/activity) 派生; Golang ActivityPub/ActivityStreams 库。 [BSD-3-Clause 许可证](https://spdx.org/licenses/BSD-3-Clause.html)。 - - [superseriousbusiness/exif-terminator](https://codeberg.org/superseriousbusiness/exif-terminator); EXIF 数据擦除。 [GNU AGPL v3 许可证](https://spdx.org/licenses/AGPL-3.0-or-later.html)。 - - [superseriousbusiness/httpsig](https://codeberg.org/superseriousbusiness/httpsig) 从 [go-fed/httpsig](https://github.com/go-fed/httpsig) 派生; 安全 HTTP 签名库。 [BSD-3-Clause 许可证](https://spdx.org/licenses/BSD-3-Clause.html)。 - - [superseriousbusiness/oauth2](https://codeberg.org/superseriousbusiness/oauth2) 从 [go-oauth2/oauth2](https://github.com/go-oauth2/oauth2) 派生; OAuth 服务器框架和令牌处理。 [MIT 许可证](https://spdx.org/licenses/MIT.html)。 + - [superseriousbusiness/activity](https://code.superseriousbusiness.org/activity) 从 [go-fed/activity](https://github.com/go-fed/activity) 派生; Golang ActivityPub/ActivityStreams 库。 [BSD-3-Clause 许可证](https://spdx.org/licenses/BSD-3-Clause.html)。 + - [superseriousbusiness/exif-terminator](https://code.superseriousbusiness.org/exif-terminator); EXIF 数据擦除。 [GNU AGPL v3 许可证](https://spdx.org/licenses/AGPL-3.0-or-later.html)。 + - [superseriousbusiness/httpsig](https://code.superseriousbusiness.org/httpsig) 从 [go-fed/httpsig](https://github.com/go-fed/httpsig) 派生; 安全 HTTP 签名库。 [BSD-3-Clause 许可证](https://spdx.org/licenses/BSD-3-Clause.html)。 + - [superseriousbusiness/oauth2](https://code.superseriousbusiness.org/oauth2) 从 [go-oauth2/oauth2](https://github.com/go-oauth2/oauth2) 派生; OAuth 服务器框架和令牌处理。 [MIT 许可证](https://spdx.org/licenses/MIT.html)。 - [temoto/robotstxt](https://github.com/temoto/robotstxt); robots.txt 解析。 [MIT 许可证](https://spdx.org/licenses/MIT.html)。 - [tdewolff/minify](https://github.com/tdewolff/minify); Markdown 帖文的 HTML 压缩。 [MIT 许可证](https://spdx.org/licenses/MIT.html)。 - [uber-go/automaxprocs](https://github.com/uber-go/automaxprocs); GOMAXPROCS 自动化。 [MIT 许可证](https://spdx.org/licenses/MIT.html)。 @@ -454,10 +469,10 @@ GoToSocial 使用以下开源库、框架和工具,在此声明并致谢 💕 该许可具体适用于以下存储库内的文件和子目录: -- [树懒标志 png](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.png) -- [树懒标志 webp](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.webp) -- [树懒标志 svg](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.svg) -- [所有默认头像](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/default_avatars) +- [树懒标志 png](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.png) +- [树懒标志 webp](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.webp) +- [树懒标志 svg](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.svg) +- [所有默认头像](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/default_avatars) 根据许可证条款,你可以: @@ -514,7 +529,7 @@ GoToSocial 欢迎与符合我们价值观的组织进行合作。在此对您的 NGIZero logo -结合以上众筹来源,2023 年 GoToSocial Alpha 阶段的开发得到了 [NGI0 Entrust Fund](https://nlnet.nl/entrust/) 旗下的 [NLnet](https://nlnet.nl/) 提供的 50,000 欧元资助。详情请见[此处](https://nlnet.nl/project/GoToSocial/#ack)。成功的资助申请存档在[此处](https://github.com/superseriousbusiness/gotosocial/blob/main/archive/nlnet/2022-next-generation-internet-zero.md)。 +结合以上众筹来源,2023 年 GoToSocial Alpha 阶段的开发得到了 [NGI0 Entrust Fund](https://nlnet.nl/entrust/) 旗下的 [NLnet](https://nlnet.nl/) 提供的 50,000 欧元资助。详情请见[此处](https://nlnet.nl/project/GoToSocial/#ack)。成功的资助申请存档在[此处](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/archive/nlnet/2022-next-generation-internet-zero.md)。 2024 年 GoToSocial Beta 阶段的开发将从 [NGI0 Entrust Fund](https://nlnet.nl/entrust/) 旗下的 [NLnet](https://nlnet.nl/) 那里再获得 50,000 欧元的资助。 @@ -524,7 +539,7 @@ GoToSocial 欢迎与符合我们价值观的组织进行合作。在此对您的 ![GNU AGPL 徽标](https://www.gnu.org/graphics/agplv3-155x51.png) -GoToSocial 是自由软件,采用 [GNU AGPL v3 许可](https://github.com/superseriousbusiness/gotosocial/blob/main/LICENSE)。我们鼓励你对代码进行派生和修改,进行各种实验。 +GoToSocial 是自由软件,采用 [GNU AGPL v3 许可](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/LICENSE)。我们鼓励你对代码进行派生和修改,进行各种实验。 有关 AGPL 和 GPL 许可之间的区别,请参阅[这里](https://www.gnu.org/licenses/why-affero-gpl.html),关于 GPL 许可(包括 AGPL)的常见问题解答,请参阅[这里](https://www.gnu.org/licenses/gpl-faq.html)。 diff --git a/docs/locales/zh/repo/ROADMAP.md b/docs/locales/zh/repo/ROADMAP.md index 52bbb815d..6ca476d34 100644 --- a/docs/locales/zh/repo/ROADMAP.md +++ b/docs/locales/zh/repo/ROADMAP.md @@ -47,13 +47,13 @@ ### 2023 年中 -- [x] **话题标签** -- 实现话题标签的联合与查看,让用户发现他们可能感兴趣的帖文。(完成! https://github.com/superseriousbusiness/gotosocial/pull/2032)。 +- [x] **话题标签** -- 实现话题标签的联合与查看,让用户发现他们可能感兴趣的帖文。(完成! https://codeberg.org/superseriousbusiness/gotosocial/pulls/2032)。 ### 2023 年中到年底 -- [x] **投票** -- 实现对投票的解析、创建和参与功能。(完成! https://github.com/superseriousbusiness/gotosocial/pull/2330) -- [x] **静音帖文/贴文串** -- 取消订阅贴文串的回复通知;不在时间线上显示特定帖文。(完成! https://github.com/superseriousbusiness/gotosocial/pull/2278) -- [x] **有限联合/白名单** -- 允许实例管理员默认阻止与其他实例的联合。(完成! https://github.com/superseriousbusiness/gotosocial/pull/2200) +- [x] **投票** -- 实现对投票的解析、创建和参与功能。(完成! https://codeberg.org/superseriousbusiness/gotosocial/pulls/2330) +- [x] **静音帖文/贴文串** -- 取消订阅贴文串的回复通知;不在时间线上显示特定帖文。(完成! https://codeberg.org/superseriousbusiness/gotosocial/pulls/2278) +- [x] **有限联合/白名单** -- 允许实例管理员默认阻止与其他实例的联合。(完成! https://codeberg.org/superseriousbusiness/gotosocial/pulls/2200) ### 2024 年初 @@ -73,10 +73,10 @@ - [x] **无评论区的帖文** -- 设计无评论区帖文的相关逻辑,让用户创建无评论区的帖文。 - [x] **屏蔽/允许列表订阅** -- 允许实例管理员为其实例订阅屏蔽/允许列表。 - [x] **私信对话视图** -- 让用户能够轻松浏览他们参与的所有私信对话。 -- [ ] **Oauth 令牌管理** -- 通过设置面板创建/查看/吊销 OAuth 令牌。 -- [ ] **贴文编辑支持** -- 编辑已创建的贴文,而无需删除并重新编辑。并正确地将编辑传播出去。 +- [x] **Oauth 令牌管理** -- 通过设置面板创建/查看/吊销 OAuth 令牌。 +- [x] **贴文编辑支持** -- 编辑已创建的贴文,而无需删除并重新编辑。并正确地将编辑传播出去。 - [ ] **Fediverse 中继支持** -- 与中继通信,发布和接收帖文。 -- [ ] **两步验证 (2fa)** -- 允许用户通过设置面板为其账户启用 2FA,并在登录时实施 2FA。 +- [x] **两步验证 (2fa)** -- 允许用户通过设置面板为其账户启用 2FA,并在登录时实施 2FA。 - [ ] **管理:附加内容警告/将所有内容标记为敏感内容**。 更多内容待定! diff --git a/docs/locales/zh/repo/SECURITY.md b/docs/locales/zh/repo/SECURITY.md new file mode 100644 index 000000000..858187570 --- /dev/null +++ b/docs/locales/zh/repo/SECURITY.md @@ -0,0 +1 @@ +请将安全问题反馈发送至:admin@gotosocial.org diff --git a/docs/locales/zh/user_guide/importing_posts.md b/docs/locales/zh/user_guide/importing_posts.md index 5dd61f691..83233a651 100644 --- a/docs/locales/zh/user_guide/importing_posts.md +++ b/docs/locales/zh/user_guide/importing_posts.md @@ -28,7 +28,7 @@ ## 如何导入你的帖文 -当前,该过程需要借助利用 GTS API 的第三方工具。未来,我们可能会将此功能整合到 GoToSocial 内部:请关注 [issue #2](https://github.com/superseriousbusiness/gotosocial/issues/2) 以获取最新动态。 +当前,该过程需要借助利用 GTS API 的第三方工具。未来,我们可能会将此功能整合到 GoToSocial 内部:请关注 [issue #2](https://codeberg.org/superseriousbusiness/gotosocial/issues/2) 以获取最新动态。 [`slurp`](https://github.com/VyrCossont/slurp)(由 GTS 开发者 Vyr Cossont 开发)可以导入来自 [Mastodon 归档](https://github.com/VyrCossont/slurp?tab=readme-ov-file#importing-a-mastodon-archive) 和 [Pixelfed 归档](https://github.com/VyrCossont/slurp?tab=readme-ov-file#importing-a-pixelfed-archive) 的帖文。请查阅 `slurp` 的文档、[Mastodon 关于导出数据的说明](https://docs.joinmastodon.org/user/moving/#export) 以及 Jeff Sikes 的文章 [“使用 Slurp 将 Pixelfed 帖文导入 GoToSocial”](https://box464.com/posts/gotosocial-slurp/) 以了解更多细节。你需要熟悉命令行基础,并提前安装 Git 和 Go 编译器。 diff --git a/docs/locales/zh/user_guide/posts.md b/docs/locales/zh/user_guide/posts.md index 87ef71871..44c094896 100644 --- a/docs/locales/zh/user_guide/posts.md +++ b/docs/locales/zh/user_guide/posts.md @@ -136,7 +136,7 @@ GoToSocial 允许你在贴文中附加媒体文件,大多数客户端会在贴 为了避免泄漏你的位置信息,GoToSocial 努力在上传媒体时通过清零 Exif 数据点移除 Exif 信息。 !!! danger "危险" - 为了方便和保护隐私,GoToSocial 在上传图片文件时会自动移除 Exif 标签。然而,**无法自动移除 mp4 视频的 Exif 数据**(参见 [#2577](https://github.com/superseriousbusiness/gotosocial/issues/2577))。 + 为了方便和保护隐私,GoToSocial 在上传图片文件时会自动移除 Exif 标签。然而,**无法自动移除 mp4 视频的 Exif 数据**(参见 [#2577](https://codeberg.org/superseriousbusiness/gotosocial/issues/2577))。 在你将视频上传至 GoToSocial 之前,建议确保该视频的 Exif 数据标签已经被移除。你可以在线找到多种工具和服务来做到这一点。 diff --git a/docs/locales/zh/user_guide/settings.md b/docs/locales/zh/user_guide/settings.md index 346f4ed8c..0dc6543aa 100644 --- a/docs/locales/zh/user_guide/settings.md +++ b/docs/locales/zh/user_guide/settings.md @@ -31,6 +31,30 @@ GoToSocial 提供主题供你选择,以更改账户的外观和氛围。 !!! tip "添加更多主题" 实例管理员可以通过将 CSS 文件放入 `web/assets/themes` 文件夹中来添加更多主题。有关详细信息,请参阅管理员文档中的[主题](../admin/themes.md)部分。 +### 选择布局 + +使用 GoToSocial,你可以为你的账户页的网页视图选择两种不同的布局。 + +这个设置不会影响 API 的行为,也不会影响客户端应用的外观或工作方式,它纯粹是网页视图的一个外观上的改变。 + +这两种布局都只会显示顶层贴文(或顶层贴文中的媒体),不显示回复或转发,并且会遵守[在你的账户页上显示的贴文的可见性级别](#visibility-level-of-posts-to-show-on-your-profile)设置。 + +#### 微博 + +GtS 经典的微博客布局。你的账户页被分成两列,显示你的简介和最近/置顶的贴文。 + +如果你主要发布文字,或者文字与媒体的混合内容,这是一个不错的选择。 + +![微博布局](../public/user-settings-layout-microblog.png) + +#### 画廊 + +类似 Instagram 的布局。贴文不会在你的账户页上直接显示,反之,你最近/置顶的媒体会以画廊网格视图的形式显示。贴文(及其回复)仍然可以通过链接访问。 + +如果你主要发布媒体,这是一个不错的选择。 + +![画廊布局](../public/user-settings-layout-gallery.png) + ### 基本信息 #### 昵称 @@ -201,7 +225,9 @@ markdown 设置表示你的贴文应被按 Markdown 格式解析,这是一种 随着更多 ActivityPub 服务端推出互动规则支持,这个问题有望减少,但在此期间,GoToSocial 只能在“尽力而为”范围内进行尝试,以根据你设定的规则限制与贴文的互动。 -## 电子邮箱和密码 +## 账户 + +在账户部分,你可以设置你的电子邮箱和密码,以及为你的账户设置双因素验证。 ### 更改电子邮箱 @@ -221,6 +247,24 @@ markdown 设置表示你的贴文应被按 Markdown 格式解析,这是一种 有关 GoToSocial 如何管理密码的更多信息,请参阅[密码管理文档](./password_management.md)。 +### 双因素身份验证 + +你可以使用面板的这一部分为你的账户启用双因素身份验证。 + +启用双因素身份验证后,除密码外,你还必须在登录时提供一个来自你配置的验证器应用(Google 验证器、LastPass 验证器等)的代码。 + +要启用双因素身份验证,请在移动设备上安装一个验证器应用,然后用它扫描二维码。你也可以手动复制双因素验证密钥并将其粘贴到验证器中。完成后,输入验证器中的代码,验证验证器和服务器是否正确同步。 + +成功后,你将看到一个包含八个双因素验证备份/恢复代码的列表。将这些代码保存在安全的地方(如密码管理器)。如果你失去了对身份验证程序的访问权限,例如丢失了设备,那么可以在登录时使用这些代码之一来代替 2FA 代码。这些代码使用后将无法再次使用。如果你用完了全部八个恢复代码,你应该禁用并重新启用 2FA,以生成新的密码。 + +要禁用双因素验证,请在表单中输入当前密码,然后点击 "禁用 2FA "按钮。 + +!!! tip "提示" + 建议使用双因素身份验证,因为它可以增加坏人通过猜测密码登录账户的难度,因为他们还需要访问你的身份验证设备。有关不同类型 2FA 的更多信息,请参阅 [互联网常见双因素验证类型指南](https://www.eff.org/deeplinks/2017/09/guide-common-types-two-factor-authentication-web)。 + +!!! info "注意" + 如果你的实例使用 OIDC 作为授权/身份提供商,则无法在设置面板中启用 2FA,此时应联系 OIDC 提供商管理双因素身份验证。 + ## 迁移 在迁移部分,你可以管理与与账户别名、迁移到其他账户或从其他账户迁移相关的设置。 @@ -289,3 +333,71 @@ markdown 设置表示你的贴文应被按 Markdown 格式解析,这是一种 !!! note "附注" 令牌的“最后使用”时间是近似值,可能存在正负一小时的误差。 + + +## 应用 + +在“应用”部分,您可以新建托管的 OAuth 客户端应用,并搜索你已创建的应用。 + +### 什么是 OAuth 客户端应用? + +GoToSocial OAuth 客户端应用等同于 [Auth0 身份组文档](https://auth0.com/intro-to-iam/what-is-oauth-2#oauth20-roles) 中描述的 OAuth 2.0 客户端。 + +创建一个应用后,你可以作为你账户的“资源所有者”,通过访问令牌授予该应用访问你账户的权限。应用可以使用此令牌,以“你的身份”或“代表你”与 GoToSocial 客户端 API 进行交互。 + +例如,当使用 Tusky 登录你的 GoToSocial 账户时,Tusky 首先在你的实例作为一个 OAuth 客户端应用注册,然后请求实例将你重定向到一个页面。在该页面,你可以使用你的 GoToSocial 邮箱地址和密码登录,以授权 Tusky 获取访问令牌。随后,Tusky 存储并在所有后续请求中使用该访问令牌,来执行你指示的操作:发布贴文、读取时间线等。 + +OAuth 客户端应用的优势在于它们从不存储(甚至看不到)你的密码:它们仅使用访问令牌以你的身份执行操作。该令牌可以被撤销,这样应用就无法再访问你的账户,而你无需更改密码(请参阅 [访问令牌](#访问令牌))。 + +!!! note "托管应用程序 vs 非托管应用程序" + *托管* 应用程序是你通过设置面板自行创建的应用程序,你有权为其请求令牌和删除它。这与像 Tusky 这样的应用程序有所不同,后者不被视为 *托管* 应用程序,因为它们不是由用户在设置面板中创建的。 + +### 什么是重定向 URI? + +重定向 URI 提供了一种安全措施,可防止应用程序在授权后重定向到恶意地址。OAuth 2.0 文档对此有最好的解释,请参阅: + +- [重定向 URI](https://www.oauth.com/oauth2-servers/redirect-uris/) +- [重定向 URL 注册](https://www.oauth.com/oauth2-servers/redirect-uris/redirect-uri-registration/) + +任何需要你为之创建 OAuth 应用的服务通常会告知你,在创建应用时需要输入哪些重定向 URI。 + +### 什么是范围? + +范围是一个以空格分隔的标识符列表,可以在创建应用(或为其获取令牌)时指定,以防止应用或其访问令牌访问超出其工作所需的数据。 + +例如,如果你创建一个仅具有 `read` 范围的应用,那么该应用拥有的任何令牌将仅对你的账户具有 `read` 访问权限:它们将无法以你的身份执行发布、删除或其他 *写入* 类型的操作。 + +GoToSocial 提供了一系列与 Mastodon API 非常相似的范围。您可以在这里查看范围列表(及其作用):https://docs.gotosocial.org/zh-cn/latest/api/swagger/。 + +与 Mastodon 类似,GoToSocial 允许你在创建应用 *以及* 随后请求令牌时指定范围。因此,你可以创建一个具有 `read write` 范围的应用,但请求一个仅具有 `read` 范围的令牌,或者请求一个更小的范围,如 `read:accounts`。请求令牌时指定的任何范围都必须被应用所被允许的范围所覆盖。例如,如果您的应用只有 `read` 范围,您就不能请求具有 `write` 范围的令牌。 + +有关范围的更多一般信息,请参阅 OAuth 2.0 文档: + +- [范围](https://www.oauth.com/oauth2-servers/scope/) +- [定义范围](https://www.oauth.com/oauth2-servers/scope/defining-scopes/) + +### 搜索应用程序 + +使用此部分,你可以查看通过设置面板创建的应用程序的概览,并单击某个应用程序以进入该应用程序的详情视图。 + +### 新建应用程序 + +![新建应用程序表单。](../public/user-settings-applications-new.png) + +要创建一个新的托管 OAuth 应用,你必须至少提供应用的名称。如果需要,也可以提供网站地址。 + +如果你不提供任何范围,则应用将默认具有 `read` 范围。 + +如果你不指定任何重定向 URI,则应用将默认使用非常规重定向 URI `urn:ietf:wg:oauth:2.0:oob`。 + +如果你希望使用设置面板轻松地为你的应用获取访问令牌,那么你必须在重定向 URI 列表中包含给定的设置面板回调 URL。其格式为 `https://[your_instance_host]/settings/user/applications/callback`。 + +### 应用程序详情 + +![应用的详情视图。](../public/user-settings-applications-details.png) + +在应用的详情页面上,你可以查看应用的客户端 ID 和客户端密钥,你可以在像 `curl` 这样的命令行工具中使用它们来手动获取该应用的授权码和访问令牌。 + +如果你在重定向 URI 列表中包含了设置面板回调 URL,你也可以使用此页面为你的账户请求访问令牌。这将把你重定向到你实例的登录页面,你必须在该页面提供你的凭据以授权你的应用。然后你将再次被重定向到设置面板回调 URL,在那里你可以接收你的访问令牌。 + +你也可以使用此页面删除你的应用。当托管应用被删除时,所有通过该应用创建的令牌也将被删除,因此请确保仅在你的应用未使用时才执行此操作。 diff --git a/docs/user_guide/importing_posts.md b/docs/user_guide/importing_posts.md index f20517d8a..a3df2bf61 100644 --- a/docs/user_guide/importing_posts.md +++ b/docs/user_guide/importing_posts.md @@ -28,7 +28,7 @@ The limitations on interactions with other accounts are an intentional politenes ## How to import your posts -The process currently requires third-party tools which use the GTS API. In the future, we may integrate this into GoToSocial itself: please follow [issue #2](https://github.com/superseriousbusiness/gotosocial/issues/2) for updates. +The process currently requires third-party tools which use the GTS API. In the future, we may integrate this into GoToSocial itself: please follow [issue #2](https://codeberg.org/superseriousbusiness/gotosocial/issues/2) for updates. [`slurp`](https://github.com/VyrCossont/slurp) (by GTS developer Vyr Cossont) can import [post archives from Mastodon](https://github.com/VyrCossont/slurp?tab=readme-ov-file#importing-a-mastodon-archive) as well as [from Pixelfed](https://github.com/VyrCossont/slurp?tab=readme-ov-file#importing-a-pixelfed-archive). Please consult `slurp`'s docs, [Mastodon's instructions for exporting your data](https://docs.joinmastodon.org/user/moving/#export), and ["Importing Pixelfed Posts to GoToSocial with Slurp" by Jeff Sikes](https://box464.com/posts/gotosocial-slurp/) for more details. You'll need to be familiar with command-line basics, and have Git and a Go compiler installed. diff --git a/docs/user_guide/posts.md b/docs/user_guide/posts.md index c45ad4bcb..d42d7a466 100644 --- a/docs/user_guide/posts.md +++ b/docs/user_guide/posts.md @@ -136,7 +136,7 @@ Traditionally, these Exif data points are used by photographers to help them cat To avoid leaking information about your location, GoToSocial makes a best-effort attempt to remove Exif information from media when you upload it, by zeroing out Exif data points. !!! danger - For your convenience and privacy, GoToSocial currently removes Exif tags from image files when they are uploaded. However, **automated removal of Exif data from mp4 videos is not currently supported** (see [#2577](https://github.com/superseriousbusiness/gotosocial/issues/2577)). + For your convenience and privacy, GoToSocial currently removes Exif tags from image files when they are uploaded. However, **automated removal of Exif data from mp4 videos is not currently supported** (see [#2577](https://codeberg.org/superseriousbusiness/gotosocial/issues/2577)). Before you upload a video to GoToSocial, we recommend ensuring that Exif data tags are already removed from the video. You can find various tools and services online for doing this. diff --git a/go.mod b/go.mod index 09796fba7..4169208ed 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/superseriousbusiness/gotosocial +module code.superseriousbusiness.org/gotosocial go 1.23.0 @@ -11,6 +11,10 @@ replace github.com/go-swagger/go-swagger => codeberg.org/superseriousbusiness/go replace modernc.org/sqlite => gitlab.com/NyaaaWhatsUpDoc/sqlite v1.37.0-concurrency-workaround require ( + code.superseriousbusiness.org/activity v1.15.0 + code.superseriousbusiness.org/exif-terminator v0.11.0 + code.superseriousbusiness.org/httpsig v1.4.0 + code.superseriousbusiness.org/oauth2/v4 v4.8.0 codeberg.org/gruf/go-bytes v1.0.2 codeberg.org/gruf/go-bytesize v1.0.3 codeberg.org/gruf/go-byteutil v1.3.0 @@ -28,16 +32,12 @@ require ( codeberg.org/gruf/go-sched v1.2.4 codeberg.org/gruf/go-storage v0.2.0 codeberg.org/gruf/go-structr v0.9.6 - codeberg.org/superseriousbusiness/activity v1.13.0-gts - codeberg.org/superseriousbusiness/exif-terminator v0.10.0 - codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB - codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB github.com/DmitriyVTitov/size v1.5.0 github.com/KimMachineGun/automemlimit v0.7.1 github.com/SherClockHolmes/webpush-go v1.4.0 github.com/buckket/go-blurhash v1.1.0 - github.com/coreos/go-oidc/v3 v3.12.0 - github.com/gin-contrib/cors v1.7.4 + github.com/coreos/go-oidc/v3 v3.14.1 + github.com/gin-contrib/cors v1.7.5 github.com/gin-contrib/gzip v1.2.3 github.com/gin-contrib/sessions v1.0.3 github.com/gin-gonic/gin v1.10.0 @@ -52,9 +52,9 @@ require ( github.com/k3a/html2text v1.2.1 github.com/microcosm-cc/bluemonday v1.0.27 github.com/miekg/dns v1.1.65 - github.com/minio/minio-go/v7 v7.0.89 + github.com/minio/minio-go/v7 v7.0.91 github.com/mitchellh/mapstructure v1.5.0 - github.com/ncruces/go-sqlite3 v0.25.0 + github.com/ncruces/go-sqlite3 v0.25.1 github.com/oklog/ulid v1.3.1 github.com/pquerna/otp v1.4.0 github.com/prometheus/client_golang v1.22.0 @@ -73,34 +73,34 @@ require ( github.com/uptrace/bun/dialect/sqlitedialect v1.2.11 github.com/uptrace/bun/extra/bunotel v1.2.11 github.com/wagslane/go-password-validator v0.3.0 - github.com/yuin/goldmark v1.7.10 + github.com/yuin/goldmark v1.7.11 go.opentelemetry.io/otel v1.35.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.34.0 - go.opentelemetry.io/otel/exporters/prometheus v0.56.0 + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 + go.opentelemetry.io/otel/exporters/prometheus v0.57.0 go.opentelemetry.io/otel/metric v1.35.0 go.opentelemetry.io/otel/sdk v1.35.0 - go.opentelemetry.io/otel/sdk/metric v1.34.0 + go.opentelemetry.io/otel/sdk/metric v1.35.0 go.opentelemetry.io/otel/trace v1.35.0 go.uber.org/automaxprocs v1.6.0 golang.org/x/crypto v0.37.0 - golang.org/x/image v0.24.0 + golang.org/x/image v0.26.0 golang.org/x/net v0.39.0 golang.org/x/oauth2 v0.29.0 golang.org/x/sys v0.32.0 golang.org/x/text v0.24.0 gopkg.in/mcuadros/go-syslog.v2 v2.3.0 gopkg.in/yaml.v3 v3.0.1 - modernc.org/sqlite v0.0.0-00010101000000-000000000000 + modernc.org/sqlite v1.37.0 mvdan.cc/xurls/v2 v2.6.0 ) require ( + code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0 // indirect + code.superseriousbusiness.org/go-png-image-structure/v2 v2.3.0 // indirect codeberg.org/gruf/go-fastpath/v2 v2.0.0 // indirect codeberg.org/gruf/go-mangler v1.4.4 // indirect codeberg.org/gruf/go-maps v1.0.4 // indirect - codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB // indirect - codeberg.org/superseriousbusiness/go-png-image-structure/v2 v2.1.0-SSB // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.2.1 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect @@ -125,7 +125,6 @@ require ( github.com/gabriel-vasile/mimetype v1.4.8 // indirect github.com/gin-contrib/sse v1.0.0 // indirect github.com/go-errors/errors v1.1.1 // indirect - github.com/go-fed/httpsig v1.1.0 // indirect github.com/go-ini/ini v1.67.0 // indirect github.com/go-jose/go-jose/v4 v4.0.5 // indirect github.com/go-logr/logr v1.4.2 // indirect diff --git a/go.sum b/go.sum index 17885f27e..597cee716 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,15 @@ +code.superseriousbusiness.org/activity v1.15.0 h1:XwdO/1ssry8GCLWDFlUxSb+lNpUvdjkKG3HVHTEkvi4= +code.superseriousbusiness.org/activity v1.15.0/go.mod h1:BTMWJIAuwDH1w+ieRP5N+T5LipbXjw35U6KZy0V/xdg= +code.superseriousbusiness.org/exif-terminator v0.11.0 h1:Hof0MCcsa+1fS17gf86fTTZ8AQnMY9h9kzcc+2C6mVg= +code.superseriousbusiness.org/exif-terminator v0.11.0/go.mod h1:9sutT1axa/kSdlPLlRFjCNKmyo/KNx8eX3XZvWBlAEY= +code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0 h1:r9uq8StaSHYKJ8DklR9Xy+E9c40G1Z8yj5TRGi8L6+4= +code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0/go.mod h1:IK1OlR6APjVB3E9tuYGvf0qXMrwP+TrzcHS5rf4wffQ= +code.superseriousbusiness.org/go-png-image-structure/v2 v2.3.0 h1:I512jiIeXDC4//2BeSPrRM2ZS4wpBKUaPeTPxakMNGA= +code.superseriousbusiness.org/go-png-image-structure/v2 v2.3.0/go.mod h1:SNHomXNW88o1pFfLHpD4KsCZLfcr4z5dm+xcX5SV10A= +code.superseriousbusiness.org/httpsig v1.4.0 h1:g9+KQMoTG0oR0II5gYb5pVVdNjbc7CiiuqK8vcZjeQg= +code.superseriousbusiness.org/httpsig v1.4.0/go.mod h1:i2AKpj/WbA/o/UTvia9TAREzt0jP1AH3T1Uxjyhdzlw= +code.superseriousbusiness.org/oauth2/v4 v4.8.0 h1:4LVXoPJXKgmDfwDegzBQPNpsdleMaL6YmDgFi6UDgEE= +code.superseriousbusiness.org/oauth2/v4 v4.8.0/go.mod h1:+RLRBXPkjP/VhIC/46dcZkx3t5IvBSJYOjVCPgeWors= codeberg.org/gruf/go-bytes v1.0.2 h1:malqE42Ni+h1nnYWBUAJaDDtEzF4aeN4uPN8DfMNNvo= codeberg.org/gruf/go-bytes v1.0.2/go.mod h1:1v/ibfaosfXSZtRdW2rWaVrDXMc9E3bsi/M9Ekx39cg= codeberg.org/gruf/go-bytesize v1.0.3 h1:Tz8tCxhPLeyM5VryuBNjUHgKmLj4Bx9RbPaUSA3qg6g= @@ -40,20 +52,8 @@ codeberg.org/gruf/go-storage v0.2.0 h1:mKj3Lx6AavEkuXXtxqPhdq+akW9YwrnP16yQBF7K5 codeberg.org/gruf/go-storage v0.2.0/go.mod h1:o3GzMDE5QNUaRnm/daUzFqvuAaC4utlgXDXYO79sWKU= codeberg.org/gruf/go-structr v0.9.6 h1:FSbJ1A0ubTQB82rC0K4o6qyiqrDGH1t9ivttm8Zy64o= codeberg.org/gruf/go-structr v0.9.6/go.mod h1:9k5hYztZ4PsBS+m1v5hUTeFiVUBTLF5VA7d9cd1OEMs= -codeberg.org/superseriousbusiness/activity v1.13.0-gts h1:4WZLc/SNt+Vt5x2UjL2n6V5dHlIL9ECudUPx8Ld5rxw= -codeberg.org/superseriousbusiness/activity v1.13.0-gts/go.mod h1:enxU1Lva4OcK6b/NBXscoHSEgEMsKJvdHrQFifQxp4o= -codeberg.org/superseriousbusiness/exif-terminator v0.10.0 h1:FiLX/AK07tzceS36I+kOP2aEH+aytjPSIlFoYePMEyg= -codeberg.org/superseriousbusiness/exif-terminator v0.10.0/go.mod h1:c/mCytx/+fisOZeVXtjCpXld/SeZb3VsD1vj3oPAihA= -codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB h1:v2shEkOPgydTL0n44EFPsDT9dsEP7KRG85aPnojCYkI= -codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB/go.mod h1:Ba/VzIqzDHqqKk5jg+7uFpUsHmdDOsuWLodbamD80jU= -codeberg.org/superseriousbusiness/go-png-image-structure/v2 v2.1.0-SSB h1:Lqi70gvqNuHyik0gUNrBwElvFUP7A3W1FYLVV5lUmbQ= -codeberg.org/superseriousbusiness/go-png-image-structure/v2 v2.1.0-SSB/go.mod h1:99rP8gsZoCSUj+/lLdpV9+i86ujLdKSoUjvuxbgvN4M= codeberg.org/superseriousbusiness/go-swagger v0.31.0-gts-go1.23-fix h1:+JvBZqsQfdT+ROnk2DkvXsKQ9QBorKKKBk5fBqw62I8= codeberg.org/superseriousbusiness/go-swagger v0.31.0-gts-go1.23-fix/go.mod h1:WSigRRWEig8zV6t6Sm8Y+EmUjlzA/HoaZJ5edupq7po= -codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB h1:0a2fQSgMZA3/k+zjb2Ot+kwzpWFHOVEGQR2t49NhglA= -codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB/go.mod h1:mkfkHGdE2SCbNBHySjJZSDr3LHtwZb1Yjgc6GYPwAQM= -codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB h1:UAFZKgUaeQEoHDmawh9DWXFopJnADfkiDo/CLAtWISc= -codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB/go.mod h1:fAEs7S0vD9yB+h7zBUWfAqwdbVqF4n8FcTnXpJC//AM= github.com/DmitriyVTitov/size v1.5.0 h1:/PzqxYrOyOUX1BXj6J9OuVRVGe+66VL4D9FlUaW515g= github.com/DmitriyVTitov/size v1.5.0/go.mod h1:le6rNI4CoLQV1b9gzp1+3d7hMAD/uu2QcJ+aYbNgiU0= github.com/KimMachineGun/automemlimit v0.7.1 h1:QcG/0iCOLChjfUweIMC3YL5Xy9C3VBeNmCZHrZfJMBw= @@ -95,8 +95,8 @@ github.com/cloudwego/base64x v0.1.5/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJ github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY= github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08 h1:ox2F0PSMlrAAiAdknSRMDrAr8mfxPCfSZolH+/qQnyQ= github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08/go.mod h1:pCxVEbcm3AMg7ejXyorUXi6HQCzOIBf7zEDVPtw0/U4= -github.com/coreos/go-oidc/v3 v3.12.0 h1:sJk+8G2qq94rDI6ehZ71Bol3oUHy63qNYmkiSjrc/Jo= -github.com/coreos/go-oidc/v3 v3.12.0/go.mod h1:gE3LgjOgFoHi9a4ce4/tJczr0Ai2/BoDhf0r5lltWI0= +github.com/coreos/go-oidc/v3 v3.14.1 h1:9ePWwfdwC4QKRlCXsJGou56adA/owXczOzwKdOumLqk= +github.com/coreos/go-oidc/v3 v3.14.1/go.mod h1:HaZ3szPaZ0e4r6ebqvsLWlk2Tn+aejfmrfah6hnSYEU= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -135,8 +135,8 @@ github.com/gabriel-vasile/mimetype v1.4.8 h1:FfZ3gj38NjllZIeJAmMhr+qKL8Wu+nOoI3G github.com/gabriel-vasile/mimetype v1.4.8/go.mod h1:ByKUIKGjh1ODkGM1asKUbQZOLGrPjydw3hYPU2YU9t8= github.com/gavv/httpexpect v2.0.0+incompatible h1:1X9kcRshkSKEjNJJxX9Y9mQ5BRfbxU5kORdjhlA1yX8= github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= -github.com/gin-contrib/cors v1.7.4 h1:/fC6/wk7rCRtqKqki8lLr2Xq+hnV49aXDLIuSek9g4k= -github.com/gin-contrib/cors v1.7.4/go.mod h1:vGc/APSgLMlQfEJV5NAzkrAHb0C8DetL3K6QZuvGii0= +github.com/gin-contrib/cors v1.7.5 h1:cXC9SmofOrRg0w9PigwGlHG3ztswH6bqq4vJVXnvYMk= +github.com/gin-contrib/cors v1.7.5/go.mod h1:4q3yi7xBEDDWKapjT2o1V7mScKDDr8k+jZ0fSquGoy0= github.com/gin-contrib/gzip v1.2.3 h1:dAhT722RuEG330ce2agAs75z7yB+NKvX/ZM1r8w0u2U= github.com/gin-contrib/gzip v1.2.3/go.mod h1:ad72i4Bzmaypk8M762gNXa2wkxxjbz0icRNnuLJ9a/c= github.com/gin-contrib/sessions v1.0.3 h1:AZ4j0AalLsGqdrKNbbrKcXx9OJZqViirvNGsJTxcQps= @@ -149,8 +149,6 @@ github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs= github.com/go-errors/errors v1.1.1 h1:ljK/pL5ltg3qoN+OtN6yCv9HWSfMwxSx90GJCZQxYNg= github.com/go-errors/errors v1.1.1/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs= -github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI= -github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM= github.com/go-ini/ini v1.67.0 h1:z6ZrTEZqSWOTyH2FlglNbNgARyHG8oLW9gMELqKr06A= github.com/go-ini/ini v1.67.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= github.com/go-jose/go-jose/v4 v4.0.5 h1:M6T8+mKZl/+fNNuFHvGIzDz7BTLQPIounk/b9dw3AaE= @@ -305,8 +303,8 @@ github.com/minio/crc64nvme v1.0.1 h1:DHQPrYPdqK7jQG/Ls5CTBZWeex/2FMS3G5XGkycuFrY github.com/minio/crc64nvme v1.0.1/go.mod h1:eVfm2fAzLlxMdUGc0EEBGSMmPwmXD5XiNRpnu9J3bvg= github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34= github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM= -github.com/minio/minio-go/v7 v7.0.89 h1:hx4xV5wwTUfyv8LarhJAwNecnXpoTsj9v3f3q/ZkiJU= -github.com/minio/minio-go/v7 v7.0.89/go.mod h1:2rFnGAp02p7Dddo1Fq4S2wYOfpF0MUTSeLTRC90I204= +github.com/minio/minio-go/v7 v7.0.91 h1:tWLZnEfo3OZl5PoXQwcwTAPNNrjyWwOh6cbZitW5JQc= +github.com/minio/minio-go/v7 v7.0.91/go.mod h1:uvMUcGrpgeSAAI6+sD3818508nUyMULw94j2Nxku/Go= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= @@ -326,8 +324,8 @@ github.com/moul/http2curl v1.0.0 h1:dRMWoAtb+ePxMlLkrCbAqh4TlPHXvoGUSQ323/9Zahs= github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/ncruces/go-sqlite3 v0.25.0 h1:trugKUs98Zwy9KwRr/EUxZHL92LYt7UqcKqAfpGpK+I= -github.com/ncruces/go-sqlite3 v0.25.0/go.mod h1:n6Z7036yFilJx04yV0mi5JWaF66rUmXn1It9Ux8dx68= +github.com/ncruces/go-sqlite3 v0.25.1 h1:nRK2mZ0jLNFJco8QFZ9+dCXxOGe6Re8bbG5o8gyalr8= +github.com/ncruces/go-sqlite3 v0.25.1/go.mod h1:4BtkHRLbX5hE0PhBxJ11qETTwL7M4lk0ttru9nora1E= github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4= github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls= github.com/ncruces/julianday v1.0.0 h1:fH0OKwa7NWvniGQtxdJRxAgkBMolni2BjDHaWTxqt7M= @@ -487,8 +485,8 @@ github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FB github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M= github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yuin/goldmark v1.7.10 h1:S+LrtBjRmqMac2UdtB6yyCEJm+UILZ2fefI4p7o0QpI= -github.com/yuin/goldmark v1.7.10/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg= +github.com/yuin/goldmark v1.7.11 h1:ZCxLyDMtz0nT2HFfsYG8WZ47Trip2+JyLysKcMYE5bo= +github.com/yuin/goldmark v1.7.11/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg= gitlab.com/NyaaaWhatsUpDoc/sqlite v1.37.0-concurrency-workaround h1:QbfrBqNKgAFSSK89fYf547vxDQuz8p6iJUzzAMrusNk= gitlab.com/NyaaaWhatsUpDoc/sqlite v1.37.0-concurrency-workaround/go.mod h1:5YiWv+YviqGMuGw4V+PNplcyaJ5v+vQd7TQOgkACoJM= go.mongodb.org/mongo-driver v1.17.3 h1:TQyXhnsWfWtgAhMtOgtYHMTkZIfBTpMTsMnd9ZBeHxQ= @@ -501,16 +499,16 @@ go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 h1:1fTNlAIJZGWLP5FVu0f go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0/go.mod h1:zjPK58DtkqQFn+YUMbx0M2XV3QgKU0gS9LeGohREyK4= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 h1:m639+BofXTvcY1q8CGs4ItwQarYtJPOWmVobfM1HpVI= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0/go.mod h1:LjReUci/F4BUyv+y4dwnq3h/26iNOeC3wAIqgvTIZVo= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.34.0 h1:BEj3SPM81McUZHYjRS5pEgNgnmzGJ5tRpU5krWnV8Bs= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.34.0/go.mod h1:9cKLGBDzI/F3NoHLQGm4ZrYdIHsvGt6ej6hUowxY0J4= -go.opentelemetry.io/otel/exporters/prometheus v0.56.0 h1:GnCIi0QyG0yy2MrJLzVrIM7laaJstj//flf1zEJCG+E= -go.opentelemetry.io/otel/exporters/prometheus v0.56.0/go.mod h1:JQcVZtbIIPM+7SWBB+T6FK+xunlyidwLp++fN0sUaOk= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 h1:xJ2qHD0C1BeYVTLLR9sX12+Qb95kfeD/byKj6Ky1pXg= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0/go.mod h1:u5BF1xyjstDowA1R5QAO9JHzqK+ublenEW/dyqTjBVk= +go.opentelemetry.io/otel/exporters/prometheus v0.57.0 h1:AHh/lAP1BHrY5gBwk8ncc25FXWm/gmmY3BX258z5nuk= +go.opentelemetry.io/otel/exporters/prometheus v0.57.0/go.mod h1:QpFWz1QxqevfjwzYdbMb4Y1NnlJvqSGwyuU0B4iuc9c= go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.35.0 h1:iPctf8iprVySXSKJffSS79eOjl9pvxV9ZqOWT0QejKY= go.opentelemetry.io/otel/sdk v1.35.0/go.mod h1:+ga1bZliga3DxJ3CQGg3updiaAJoNECOgJREo9KHGQg= -go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce1EK0Gyvahk= -go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w= +go.opentelemetry.io/otel/sdk/metric v1.35.0 h1:1RriWBmCKgkeHEhM7a2uMjMUfP7MsOF5JpUCaEqEI9o= +go.opentelemetry.io/otel/sdk/metric v1.35.0/go.mod h1:is6XYCUMpcKi+ZsOvfluY5YstFnhW0BidkR+gL+qN+w= go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4= @@ -524,7 +522,6 @@ go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN8 golang.org/x/arch v0.16.0 h1:foMtLTdyOmIniqWCHjY6+JxuC54XP1fDwx4N0ASyW+U= golang.org/x/arch v0.16.0/go.mod h1:JmwW7aLIoRUKgaTzhkiEFxvcEiQGyOg9BMonBJUS7EE= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= @@ -535,8 +532,8 @@ golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE= golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc= golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw= golang.org/x/exp v0.0.0-20250305212735-054e65f0b394/go.mod h1:sIifuuw/Yco/y6yb6+bDNfyeQ/MdPUy/hKEMYQV17cM= -golang.org/x/image v0.24.0 h1:AN7zRgVsbvmTfNyqIbbOraYL8mSwcKncEj8ofjgzcMQ= -golang.org/x/image v0.24.0/go.mod h1:4b/ITuLfqYq1hqZcjofwctIhi7sZh2WaCjvsBNjjya8= +golang.org/x/image v0.26.0 h1:4XjIFEZWQmCZi6Wv8BoxsDhRU3RVnLX04dToTDAEPlY= +golang.org/x/image v0.26.0/go.mod h1:lcxbMFAovzpnJxzXS3nyL83K27tmqtKzIJpctK8YO5c= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= @@ -545,7 +542,6 @@ golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU= golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -574,7 +570,6 @@ golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610= golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/internal/admin/actions.go b/internal/admin/actions.go index 057bfe07d..b68061fbf 100644 --- a/internal/admin/actions.go +++ b/internal/admin/actions.go @@ -23,12 +23,12 @@ import ( "sync" "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/workers" + "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/workers" ) func errActionConflict(action *gtsmodel.AdminAction) gtserror.WithCode { diff --git a/internal/admin/actions_test.go b/internal/admin/actions_test.go index c5084d955..653051612 100644 --- a/internal/admin/actions_test.go +++ b/internal/admin/actions_test.go @@ -24,12 +24,12 @@ import ( "testing" "time" + "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/testrig" "github.com/stretchr/testify/suite" - "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/testrig" ) const ( diff --git a/internal/admin/domainkeys.go b/internal/admin/domainkeys.go index ad943ce80..c71f079c0 100644 --- a/internal/admin/domainkeys.go +++ b/internal/admin/domainkeys.go @@ -21,8 +21,8 @@ import ( "context" "time" - "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 (a *Actions) DomainKeysExpireF(domain string) ActionF { diff --git a/internal/admin/domainperms.go b/internal/admin/domainperms.go index fa686df43..c54c1f93e 100644 --- a/internal/admin/domainperms.go +++ b/internal/admin/domainperms.go @@ -24,13 +24,13 @@ import ( "codeberg.org/gruf/go-kv" - "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/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" ) // Returns an AdminActionF for diff --git a/internal/admin/util.go b/internal/admin/util.go index 27e81fbb3..0d0974a5a 100644 --- a/internal/admin/util.go +++ b/internal/admin/util.go @@ -22,9 +22,9 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // stubbifyInstance renders the given instance as a stub, diff --git a/internal/ap/activitystreams.go b/internal/ap/activitystreams.go index 0d1bc62c9..56ebc4909 100644 --- a/internal/ap/activitystreams.go +++ b/internal/ap/activitystreams.go @@ -20,7 +20,7 @@ package ap import ( "net/url" - "codeberg.org/superseriousbusiness/activity/pub" + "code.superseriousbusiness.org/activity/pub" ) // PublicURI returns a fresh copy of the *url.URL version of the diff --git a/internal/ap/activitystreams_test.go b/internal/ap/activitystreams_test.go index 09fc13c65..ab64f4b6b 100644 --- a/internal/ap/activitystreams_test.go +++ b/internal/ap/activitystreams_test.go @@ -21,11 +21,11 @@ import ( "net/url" "testing" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/assert" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" ) func TestASCollection(t *testing.T) { diff --git a/internal/ap/ap_test.go b/internal/ap/ap_test.go index 5a6518ef0..06856812c 100644 --- a/internal/ap/ap_test.go +++ b/internal/ap/ap_test.go @@ -23,12 +23,12 @@ import ( "encoding/json" "io" - "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/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) func document1() vocab.ActivityStreamsDocument { @@ -307,7 +307,7 @@ func addressable3() ap.Addressable { } func addressable4() vocab.ActivityStreamsAnnounce { - // https://github.com/superseriousbusiness/gotosocial/issues/267 + // https://codeberg.org/superseriousbusiness/gotosocial/issues/267 announceJson := []byte(` { "@context": "https://www.w3.org/ns/activitystreams", diff --git a/internal/ap/collections.go b/internal/ap/collections.go index d86abe623..d3c8e80f5 100644 --- a/internal/ap/collections.go +++ b/internal/ap/collections.go @@ -21,9 +21,9 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // TODO: replace must of this logic with just diff --git a/internal/ap/collections_test.go b/internal/ap/collections_test.go index 4aefe78e4..0772d7bb0 100644 --- a/internal/ap/collections_test.go +++ b/internal/ap/collections_test.go @@ -22,10 +22,10 @@ import ( "slices" "testing" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" ) var testIteratorIRIs = [][]string{ diff --git a/internal/ap/extract.go b/internal/ap/extract.go index d454d69f6..2387c1f9a 100644 --- a/internal/ap/extract.go +++ b/internal/ap/extract.go @@ -28,12 +28,12 @@ import ( "strings" "time" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // ExtractObjects will extract object vocab.Types from given implementing interface. @@ -850,7 +850,7 @@ func ExtractEmojis(i WithTag, host string) ([]*gtsmodel.Emoji, error) { // dummy URI for the emoji can be constructed in case // there's no id property or id property is null. // -// https://github.com/superseriousbusiness/gotosocial/issues/3384) +// https://codeberg.org/superseriousbusiness/gotosocial/issues/3384) func ExtractEmoji( e Emojiable, host string, diff --git a/internal/ap/extractattachments_test.go b/internal/ap/extractattachments_test.go index 609d811f8..f3af66708 100644 --- a/internal/ap/extractattachments_test.go +++ b/internal/ap/extractattachments_test.go @@ -22,9 +22,9 @@ import ( "encoding/json" "testing" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/gotosocial/internal/ap" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" ) type ExtractAttachmentsTestSuite struct { diff --git a/internal/ap/extractcontent_test.go b/internal/ap/extractcontent_test.go index c899a10e1..14c974e5b 100644 --- a/internal/ap/extractcontent_test.go +++ b/internal/ap/extractcontent_test.go @@ -20,8 +20,8 @@ package ap_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" ) type ExtractContentTestSuite struct { diff --git a/internal/ap/extractemojis_test.go b/internal/ap/extractemojis_test.go index 69406f322..eba30b8b8 100644 --- a/internal/ap/extractemojis_test.go +++ b/internal/ap/extractemojis_test.go @@ -23,8 +23,8 @@ import ( "io" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" ) type ExtractEmojisTestSuite struct { diff --git a/internal/ap/extracthashtags_test.go b/internal/ap/extracthashtags_test.go index 1d4fbcf6f..9409b511b 100644 --- a/internal/ap/extracthashtags_test.go +++ b/internal/ap/extracthashtags_test.go @@ -20,8 +20,8 @@ package ap_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" ) type ExtractHashtagsTestSuite struct { diff --git a/internal/ap/extractmentions_test.go b/internal/ap/extractmentions_test.go index 8a19783bc..a5b107a99 100644 --- a/internal/ap/extractmentions_test.go +++ b/internal/ap/extractmentions_test.go @@ -20,10 +20,10 @@ package ap_test import ( "testing" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" + "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 ExtractMentionsTestSuite struct { diff --git a/internal/ap/extractpolicy_test.go b/internal/ap/extractpolicy_test.go index 3d5e75c41..a5e8db6a7 100644 --- a/internal/ap/extractpolicy_test.go +++ b/internal/ap/extractpolicy_test.go @@ -23,9 +23,9 @@ import ( "io" "testing" + "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 ExtractPolicyTestSuite struct { diff --git a/internal/ap/extractpubkey_test.go b/internal/ap/extractpubkey_test.go index cf468a1e7..ab4f38a22 100644 --- a/internal/ap/extractpubkey_test.go +++ b/internal/ap/extractpubkey_test.go @@ -22,10 +22,10 @@ import ( "encoding/json" "testing" - "codeberg.org/superseriousbusiness/activity/streams" - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" + "code.superseriousbusiness.org/activity/streams" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + "code.superseriousbusiness.org/gotosocial/internal/ap" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" ) const ( diff --git a/internal/ap/extractsensitive_test.go b/internal/ap/extractsensitive_test.go index ce5571680..3cdce2254 100644 --- a/internal/ap/extractsensitive_test.go +++ b/internal/ap/extractsensitive_test.go @@ -20,8 +20,8 @@ package ap_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" ) type ExtractSensitiveTestSuite struct { diff --git a/internal/ap/extractvisibility_test.go b/internal/ap/extractvisibility_test.go index 3c894f4a5..8fdd1e425 100644 --- a/internal/ap/extractvisibility_test.go +++ b/internal/ap/extractvisibility_test.go @@ -20,9 +20,9 @@ package ap_test import ( "testing" + "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 ExtractVisibilityTestSuite struct { @@ -51,7 +51,7 @@ func (suite *ExtractVisibilityTestSuite) TestExtractVisibilityFollowersOnly() { } func (suite *ExtractVisibilityTestSuite) TestExtractVisibilityFollowersOnlyAnnounce() { - // https://github.com/superseriousbusiness/gotosocial/issues/267 + // https://codeberg.org/superseriousbusiness/gotosocial/issues/267 a := suite.addressable4 visibility, err := ap.ExtractVisibility(a, "https://example.org/users/someone/followers") suite.NoError(err) diff --git a/internal/ap/interfaces.go b/internal/ap/interfaces.go index 4c91c57f6..1dcc6afef 100644 --- a/internal/ap/interfaces.go +++ b/internal/ap/interfaces.go @@ -20,7 +20,7 @@ package ap import ( "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // IsActivityable returns whether AS vocab type name is acceptable as Activityable. diff --git a/internal/ap/interfaces_test.go b/internal/ap/interfaces_test.go index e59c32347..6bb51813f 100644 --- a/internal/ap/interfaces_test.go +++ b/internal/ap/interfaces_test.go @@ -18,8 +18,8 @@ package ap_test import ( - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" ) var ( diff --git a/internal/ap/normalize.go b/internal/ap/normalize.go index ffe90733c..f6608ed94 100644 --- a/internal/ap/normalize.go +++ b/internal/ap/normalize.go @@ -18,10 +18,10 @@ package ap import ( - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/text" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/text" ) /* diff --git a/internal/ap/normalize_test.go b/internal/ap/normalize_test.go index 9db8b43fe..9f7788162 100644 --- a/internal/ap/normalize_test.go +++ b/internal/ap/normalize_test.go @@ -20,10 +20,10 @@ package ap_test import ( "testing" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" + "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 NormalizeTestSuite struct { diff --git a/internal/ap/properties.go b/internal/ap/properties.go index e1dea22f0..d1ef62972 100644 --- a/internal/ap/properties.go +++ b/internal/ap/properties.go @@ -22,9 +22,9 @@ import ( "net/url" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // MustGet performs the given 'Get$Property(with) (T, error)' signature function, panicking on error. diff --git a/internal/ap/resolve.go b/internal/ap/resolve.go index 9d6bc73ab..096d00b49 100644 --- a/internal/ap/resolve.go +++ b/internal/ap/resolve.go @@ -25,10 +25,10 @@ import ( "io" "net/http" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // ResolveActivity is a util function for pulling a pub.Activity type out of an incoming request body, @@ -78,7 +78,7 @@ func ResolveIncomingActivity(r *http.Request) (pub.Activity, bool, gtserror.With } // Normalize any Statusable, Accountable, Pollable fields found. - // (see: https://github.com/superseriousbusiness/gotosocial/issues/1661) + // (see: https://codeberg.org/superseriousbusiness/gotosocial/issues/1661) NormalizeIncomingActivity(activity, raw) return activity, true, nil diff --git a/internal/ap/resolve_test.go b/internal/ap/resolve_test.go index b70dba77b..a5e279fa2 100644 --- a/internal/ap/resolve_test.go +++ b/internal/ap/resolve_test.go @@ -23,9 +23,9 @@ import ( "io" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) type ResolveTestSuite struct { diff --git a/internal/ap/serialize.go b/internal/ap/serialize.go index 65ba69ba1..c64c14d75 100644 --- a/internal/ap/serialize.go +++ b/internal/ap/serialize.go @@ -18,9 +18,9 @@ package ap import ( - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // Serialize is a custom serializer for ActivityStreams types. diff --git a/internal/ap/util.go b/internal/ap/util.go index 50e5a4c3b..4f7d696e9 100644 --- a/internal/ap/util.go +++ b/internal/ap/util.go @@ -21,7 +21,7 @@ import ( "net/url" "sync" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) const mapmax = 256 diff --git a/internal/api/activitypub.go b/internal/api/activitypub.go index 0c0222d1c..0a8a05d0f 100644 --- a/internal/api/activitypub.go +++ b/internal/api/activitypub.go @@ -18,14 +18,14 @@ package api import ( + "code.superseriousbusiness.org/gotosocial/internal/api/activitypub/emoji" + "code.superseriousbusiness.org/gotosocial/internal/api/activitypub/publickey" + "code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" + "code.superseriousbusiness.org/gotosocial/internal/db" + "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/activitypub/emoji" - "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/publickey" - "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type ActivityPub struct { diff --git a/internal/api/activitypub/emoji/emoji.go b/internal/api/activitypub/emoji/emoji.go index f67943a93..361a3bbc7 100644 --- a/internal/api/activitypub/emoji/emoji.go +++ b/internal/api/activitypub/emoji/emoji.go @@ -20,8 +20,8 @@ package emoji 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/activitypub/emoji/emojiget.go b/internal/api/activitypub/emoji/emojiget.go index 5a9f0db72..cc0049f89 100644 --- a/internal/api/activitypub/emoji/emojiget.go +++ b/internal/api/activitypub/emoji/emojiget.go @@ -22,9 +22,9 @@ import ( "net/http" "strings" + 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" ) func (m *Module) EmojiGetHandler(c *gin.Context) { diff --git a/internal/api/activitypub/emoji/emojiget_test.go b/internal/api/activitypub/emoji/emojiget_test.go index 7d3587fd8..aebbd9783 100644 --- a/internal/api/activitypub/emoji/emojiget_test.go +++ b/internal/api/activitypub/emoji/emojiget_test.go @@ -23,22 +23,22 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/activitypub/emoji" + "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/middleware" + "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/activitypub/emoji" - "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/middleware" - "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 EmojiGetTestSuite struct { diff --git a/internal/api/activitypub/publickey/publickey.go b/internal/api/activitypub/publickey/publickey.go index c2a6accb4..161123048 100644 --- a/internal/api/activitypub/publickey/publickey.go +++ b/internal/api/activitypub/publickey/publickey.go @@ -20,9 +20,9 @@ package publickey import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/uris" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/uris" ) const ( diff --git a/internal/api/activitypub/publickey/publickeyget.go b/internal/api/activitypub/publickey/publickeyget.go index 083a31961..6e050a3b5 100644 --- a/internal/api/activitypub/publickey/publickeyget.go +++ b/internal/api/activitypub/publickey/publickeyget.go @@ -22,9 +22,9 @@ import ( "net/http" "strings" + 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" ) // PublicKeyGETHandler should be served at eg https://example.org/users/:username/main-key. diff --git a/internal/api/activitypub/users/acceptget.go b/internal/api/activitypub/users/acceptget.go index 4d0630df7..aba5e5a7c 100644 --- a/internal/api/activitypub/users/acceptget.go +++ b/internal/api/activitypub/users/acceptget.go @@ -20,9 +20,9 @@ package users 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" ) // AcceptGETHandler serves an interaction request as an ActivityStreams Accept. diff --git a/internal/api/activitypub/users/featured.go b/internal/api/activitypub/users/featured.go index b8b4fe681..90b368b26 100644 --- a/internal/api/activitypub/users/featured.go +++ b/internal/api/activitypub/users/featured.go @@ -22,9 +22,9 @@ import ( "net/http" "strings" + 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" ) // FeaturedCollectionGETHandler swagger:operation GET /users/{username}/collections/featured s2sFeaturedCollectionGet diff --git a/internal/api/activitypub/users/followers.go b/internal/api/activitypub/users/followers.go index 956cdc71e..f00b7bc40 100644 --- a/internal/api/activitypub/users/followers.go +++ b/internal/api/activitypub/users/followers.go @@ -22,10 +22,10 @@ import ( "net/http" "strings" + 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" ) // FollowersGETHandler returns a collection of URIs for followers of the target user, formatted so that other AP servers can understand it. diff --git a/internal/api/activitypub/users/following.go b/internal/api/activitypub/users/following.go index d01b55b57..630e0b821 100644 --- a/internal/api/activitypub/users/following.go +++ b/internal/api/activitypub/users/following.go @@ -22,10 +22,10 @@ import ( "net/http" "strings" + 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" ) // FollowingGETHandler returns a collection of URIs for accounts that the target user follows, formatted so that other AP servers can understand it. diff --git a/internal/api/activitypub/users/inboxpost.go b/internal/api/activitypub/users/inboxpost.go index b0a9a49ee..01e1a834a 100644 --- a/internal/api/activitypub/users/inboxpost.go +++ b/internal/api/activitypub/users/inboxpost.go @@ -20,10 +20,10 @@ package users import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" errorsv2 "codeberg.org/gruf/go-errors/v2" ) diff --git a/internal/api/activitypub/users/inboxpost_test.go b/internal/api/activitypub/users/inboxpost_test.go index 4c23ba27b..e00a705a0 100644 --- a/internal/api/activitypub/users/inboxpost_test.go +++ b/internal/api/activitypub/users/inboxpost_test.go @@ -28,18 +28,18 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" + "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/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" - "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/testrig" ) type InboxPostTestSuite struct { diff --git a/internal/api/activitypub/users/outboxget.go b/internal/api/activitypub/users/outboxget.go index 43379ad8f..64bcc195b 100644 --- a/internal/api/activitypub/users/outboxget.go +++ b/internal/api/activitypub/users/outboxget.go @@ -22,10 +22,10 @@ import ( "net/http" "strings" + 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" ) // OutboxGETHandler swagger:operation GET /users/{username}/outbox s2sOutboxGet diff --git a/internal/api/activitypub/users/outboxget_test.go b/internal/api/activitypub/users/outboxget_test.go index 5734abdd2..dc9c621a6 100644 --- a/internal/api/activitypub/users/outboxget_test.go +++ b/internal/api/activitypub/users/outboxget_test.go @@ -27,12 +27,12 @@ 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/api/activitypub/users" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" - "github.com/superseriousbusiness/gotosocial/testrig" ) type OutboxGetTestSuite struct { diff --git a/internal/api/activitypub/users/repliesget.go b/internal/api/activitypub/users/repliesget.go index 2d3472f35..3a8a81bfb 100644 --- a/internal/api/activitypub/users/repliesget.go +++ b/internal/api/activitypub/users/repliesget.go @@ -22,10 +22,10 @@ import ( "net/http" "strings" + 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" ) // StatusRepliesGETHandler swagger:operation GET /users/{username}/statuses/{status}/replies s2sRepliesGet diff --git a/internal/api/activitypub/users/repliesget_test.go b/internal/api/activitypub/users/repliesget_test.go index 418b5c035..9d2141811 100644 --- a/internal/api/activitypub/users/repliesget_test.go +++ b/internal/api/activitypub/users/repliesget_test.go @@ -26,14 +26,14 @@ import ( "net/http/httptest" "testing" - "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/api/activitypub/users" + "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/ap" - "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" - "github.com/superseriousbusiness/gotosocial/testrig" ) type RepliesGetTestSuite struct { diff --git a/internal/api/activitypub/users/statusget.go b/internal/api/activitypub/users/statusget.go index 27af9c6b4..45b7847bf 100644 --- a/internal/api/activitypub/users/statusget.go +++ b/internal/api/activitypub/users/statusget.go @@ -22,9 +22,9 @@ import ( "net/http" "strings" + 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 serves the target status as an activitystreams NOTE so that other AP servers can parse it. diff --git a/internal/api/activitypub/users/statusget_test.go b/internal/api/activitypub/users/statusget_test.go index 3a2d5e6f7..dc3aef5a7 100644 --- a/internal/api/activitypub/users/statusget_test.go +++ b/internal/api/activitypub/users/statusget_test.go @@ -26,12 +26,12 @@ import ( "strings" "testing" - "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/api/activitypub/users" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusGetTestSuite struct { diff --git a/internal/api/activitypub/users/user.go b/internal/api/activitypub/users/user.go index 5122e610e..7a06e6f03 100644 --- a/internal/api/activitypub/users/user.go +++ b/internal/api/activitypub/users/user.go @@ -20,10 +20,10 @@ package users import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/uris" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/uris" ) const ( diff --git a/internal/api/activitypub/users/user_test.go b/internal/api/activitypub/users/user_test.go index c57d9f8c4..db3db1a2f 100644 --- a/internal/api/activitypub/users/user_test.go +++ b/internal/api/activitypub/users/user_test.go @@ -18,22 +18,22 @@ package users_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" + "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/middleware" + "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/activitypub/users" - "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/middleware" - "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/activitypub/users/userget.go b/internal/api/activitypub/users/userget.go index 2deca0fa4..00d8a0f1f 100644 --- a/internal/api/activitypub/users/userget.go +++ b/internal/api/activitypub/users/userget.go @@ -22,9 +22,9 @@ import ( "net/http" "strings" + 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" ) // UsersGETHandler should be served at https://example.org/users/:username. diff --git a/internal/api/activitypub/users/userget_test.go b/internal/api/activitypub/users/userget_test.go index 11434a5dd..06bc46452 100644 --- a/internal/api/activitypub/users/userget_test.go +++ b/internal/api/activitypub/users/userget_test.go @@ -25,12 +25,12 @@ import ( "net/http/httptest" "testing" - "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/api/activitypub/users" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" - "github.com/superseriousbusiness/gotosocial/testrig" ) type UserGetTestSuite struct { diff --git a/internal/api/auth.go b/internal/api/auth.go index ec36d95d1..2504acb30 100644 --- a/internal/api/auth.go +++ b/internal/api/auth.go @@ -18,14 +18,14 @@ package api import ( + "code.superseriousbusiness.org/gotosocial/internal/api/auth" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/oidc" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/router" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/auth" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/oidc" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/router" - "github.com/superseriousbusiness/gotosocial/internal/state" ) type Auth struct { diff --git a/internal/api/auth/auth.go b/internal/api/auth/auth.go index 37c4e864a..a39da9fd5 100644 --- a/internal/api/auth/auth.go +++ b/internal/api/auth/auth.go @@ -20,10 +20,10 @@ package auth import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/oidc" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/oidc" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" ) const ( diff --git a/internal/api/auth/auth_test.go b/internal/api/auth/auth_test.go index af90de2d6..8082f4aed 100644 --- a/internal/api/auth/auth_test.go +++ b/internal/api/auth/auth_test.go @@ -22,24 +22,24 @@ import ( "fmt" "net/http/httptest" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/auth" + "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/middleware" + "code.superseriousbusiness.org/gotosocial/internal/oidc" + "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-contrib/sessions" "github.com/gin-contrib/sessions/memstore" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/auth" - "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/middleware" - "github.com/superseriousbusiness/gotosocial/internal/oidc" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AuthStandardTestSuite struct { diff --git a/internal/api/auth/authorize.go b/internal/api/auth/authorize.go index 5b3e6ea3c..c6c648b01 100644 --- a/internal/api/auth/authorize.go +++ b/internal/api/auth/authorize.go @@ -22,14 +22,14 @@ import ( "net/url" "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/oauth" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" "github.com/google/uuid" - 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/oauth" ) // AuthorizeGETHandler should be served as diff --git a/internal/api/auth/authorize_test.go b/internal/api/auth/authorize_test.go index 54df4c5e5..b73f5e0e1 100644 --- a/internal/api/auth/authorize_test.go +++ b/internal/api/auth/authorize_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/auth" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-contrib/sessions" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/auth" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type AuthAuthorizeTestSuite struct { diff --git a/internal/api/auth/callback.go b/internal/api/auth/callback.go index 5003910e9..d9c2a79e4 100644 --- a/internal/api/auth/callback.go +++ b/internal/api/auth/callback.go @@ -26,17 +26,17 @@ import ( "slices" "strings" + 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/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/oidc" + "code.superseriousbusiness.org/gotosocial/internal/validate" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" "github.com/google/uuid" - 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/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/oidc" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // extraInfo wraps a form-submitted username and transmitted name @@ -148,7 +148,7 @@ func (m *Module) CallbackGETHandler(c *gin.Context) { // Since we require lowercase usernames at this point, lowercase the one // from the claims and use this to autofill the form with a suggestion. // - // Pending https://github.com/superseriousbusiness/gotosocial/issues/1813 + // Pending https://codeberg.org/superseriousbusiness/gotosocial/issues/1813 suggestedUsername := strings.ToLower(claims.PreferredUsername) page := apiutil.WebPage{ diff --git a/internal/api/auth/callback_test.go b/internal/api/auth/callback_test.go index 2624f3f3f..3151ecaa2 100644 --- a/internal/api/auth/callback_test.go +++ b/internal/api/auth/callback_test.go @@ -3,7 +3,7 @@ package auth import ( "testing" - "github.com/superseriousbusiness/gotosocial/testrig" + "code.superseriousbusiness.org/gotosocial/testrig" ) func TestAdminGroup(t *testing.T) { diff --git a/internal/api/auth/oob.go b/internal/api/auth/oob.go index c723a1cb5..49027940a 100644 --- a/internal/api/auth/oob.go +++ b/internal/api/auth/oob.go @@ -20,9 +20,9 @@ package auth import ( "errors" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // OOBTokenGETHandler parses the OAuth code from the query diff --git a/internal/api/auth/revoke.go b/internal/api/auth/revoke.go index 7bd565308..c5167889c 100644 --- a/internal/api/auth/revoke.go +++ b/internal/api/auth/revoke.go @@ -20,10 +20,10 @@ package auth import ( "net/http" - oautherr "codeberg.org/superseriousbusiness/oauth2/v4/errors" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + oautherr "code.superseriousbusiness.org/oauth2/v4/errors" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // TokenRevokePOSTHandler swagger:operation POST /oauth/revoke oauthTokenRevoke diff --git a/internal/api/auth/revoke_test.go b/internal/api/auth/revoke_test.go index a654ceda5..e482c8aac 100644 --- a/internal/api/auth/revoke_test.go +++ b/internal/api/auth/revoke_test.go @@ -25,9 +25,9 @@ import ( "net/http" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/testrig" ) type RevokeTestSuite struct { diff --git a/internal/api/auth/signin.go b/internal/api/auth/signin.go index 3503f37bb..845ea2594 100644 --- a/internal/api/auth/signin.go +++ b/internal/api/auth/signin.go @@ -25,15 +25,15 @@ import ( "slices" "strings" + 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/oauth" "codeberg.org/gruf/go-byteutil" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" "github.com/pquerna/otp/totp" - 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/oauth" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/api/auth/token.go b/internal/api/auth/token.go index d9f0d8154..95693dea6 100644 --- a/internal/api/auth/token.go +++ b/internal/api/auth/token.go @@ -21,9 +21,9 @@ import ( "net/http" "net/url" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" "github.com/gin-gonic/gin" ) diff --git a/internal/api/auth/token_test.go b/internal/api/auth/token_test.go index 1a12fe37e..e333a8867 100644 --- a/internal/api/auth/token_test.go +++ b/internal/api/auth/token_test.go @@ -25,11 +25,11 @@ import ( "testing" "time" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) type TokenTestSuite struct { diff --git a/internal/api/auth/util.go b/internal/api/auth/util.go index f1aed0bc3..937de3d85 100644 --- a/internal/api/auth/util.go +++ b/internal/api/auth/util.go @@ -20,12 +20,12 @@ package auth import ( "errors" + 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/oauth" "github.com/gin-contrib/sessions" "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/oauth" ) func (m *Module) mustClearSession(s sessions.Session) { diff --git a/internal/api/client.go b/internal/api/client.go index a928176de..0b977e59f 100644 --- a/internal/api/client.go +++ b/internal/api/client.go @@ -20,47 +20,47 @@ package api import ( "time" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/announcements" + "code.superseriousbusiness.org/gotosocial/internal/api/client/apps" + "code.superseriousbusiness.org/gotosocial/internal/api/client/blocks" + "code.superseriousbusiness.org/gotosocial/internal/api/client/bookmarks" + "code.superseriousbusiness.org/gotosocial/internal/api/client/conversations" + "code.superseriousbusiness.org/gotosocial/internal/api/client/customemojis" + "code.superseriousbusiness.org/gotosocial/internal/api/client/exports" + "code.superseriousbusiness.org/gotosocial/internal/api/client/favourites" + "code.superseriousbusiness.org/gotosocial/internal/api/client/featuredtags" + filtersV1 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v1" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + "code.superseriousbusiness.org/gotosocial/internal/api/client/followedtags" + "code.superseriousbusiness.org/gotosocial/internal/api/client/followrequests" + importdata "code.superseriousbusiness.org/gotosocial/internal/api/client/import" + "code.superseriousbusiness.org/gotosocial/internal/api/client/instance" + "code.superseriousbusiness.org/gotosocial/internal/api/client/interactionpolicies" + "code.superseriousbusiness.org/gotosocial/internal/api/client/interactionrequests" + "code.superseriousbusiness.org/gotosocial/internal/api/client/lists" + "code.superseriousbusiness.org/gotosocial/internal/api/client/markers" + "code.superseriousbusiness.org/gotosocial/internal/api/client/media" + "code.superseriousbusiness.org/gotosocial/internal/api/client/mutes" + "code.superseriousbusiness.org/gotosocial/internal/api/client/notifications" + "code.superseriousbusiness.org/gotosocial/internal/api/client/polls" + "code.superseriousbusiness.org/gotosocial/internal/api/client/preferences" + "code.superseriousbusiness.org/gotosocial/internal/api/client/push" + "code.superseriousbusiness.org/gotosocial/internal/api/client/reports" + "code.superseriousbusiness.org/gotosocial/internal/api/client/search" + "code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" + "code.superseriousbusiness.org/gotosocial/internal/api/client/streaming" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tags" + "code.superseriousbusiness.org/gotosocial/internal/api/client/timelines" + "code.superseriousbusiness.org/gotosocial/internal/api/client/tokens" + "code.superseriousbusiness.org/gotosocial/internal/api/client/user" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/router" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/announcements" - "github.com/superseriousbusiness/gotosocial/internal/api/client/apps" - "github.com/superseriousbusiness/gotosocial/internal/api/client/blocks" - "github.com/superseriousbusiness/gotosocial/internal/api/client/bookmarks" - "github.com/superseriousbusiness/gotosocial/internal/api/client/conversations" - "github.com/superseriousbusiness/gotosocial/internal/api/client/customemojis" - "github.com/superseriousbusiness/gotosocial/internal/api/client/exports" - "github.com/superseriousbusiness/gotosocial/internal/api/client/favourites" - "github.com/superseriousbusiness/gotosocial/internal/api/client/featuredtags" - filtersV1 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v1" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - "github.com/superseriousbusiness/gotosocial/internal/api/client/followedtags" - "github.com/superseriousbusiness/gotosocial/internal/api/client/followrequests" - importdata "github.com/superseriousbusiness/gotosocial/internal/api/client/import" - "github.com/superseriousbusiness/gotosocial/internal/api/client/instance" - "github.com/superseriousbusiness/gotosocial/internal/api/client/interactionpolicies" - "github.com/superseriousbusiness/gotosocial/internal/api/client/interactionrequests" - "github.com/superseriousbusiness/gotosocial/internal/api/client/lists" - "github.com/superseriousbusiness/gotosocial/internal/api/client/markers" - "github.com/superseriousbusiness/gotosocial/internal/api/client/media" - "github.com/superseriousbusiness/gotosocial/internal/api/client/mutes" - "github.com/superseriousbusiness/gotosocial/internal/api/client/notifications" - "github.com/superseriousbusiness/gotosocial/internal/api/client/polls" - "github.com/superseriousbusiness/gotosocial/internal/api/client/preferences" - "github.com/superseriousbusiness/gotosocial/internal/api/client/push" - "github.com/superseriousbusiness/gotosocial/internal/api/client/reports" - "github.com/superseriousbusiness/gotosocial/internal/api/client/search" - "github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" - "github.com/superseriousbusiness/gotosocial/internal/api/client/streaming" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tags" - "github.com/superseriousbusiness/gotosocial/internal/api/client/timelines" - "github.com/superseriousbusiness/gotosocial/internal/api/client/tokens" - "github.com/superseriousbusiness/gotosocial/internal/api/client/user" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/router" - "github.com/superseriousbusiness/gotosocial/internal/state" ) type Client struct { diff --git a/internal/api/client/accounts/account_test.go b/internal/api/client/accounts/account_test.go index 3daa71c91..f75f404a0 100644 --- a/internal/api/client/accounts/account_test.go +++ b/internal/api/client/accounts/account_test.go @@ -23,23 +23,23 @@ import ( "net/http" "net/http/httptest" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + "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/accounts" - "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 AccountStandardTestSuite struct { diff --git a/internal/api/client/accounts/accountalias.go b/internal/api/client/accounts/accountalias.go index e0b67694f..51183bff7 100644 --- a/internal/api/client/accounts/accountalias.go +++ b/internal/api/client/accounts/accountalias.go @@ -20,10 +20,10 @@ package accounts 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" ) // AccountAliasPOSTHandler swagger:operation POST /api/v1/accounts/alias accountAlias diff --git a/internal/api/client/accounts/accountcreate.go b/internal/api/client/accounts/accountcreate.go index 71f343522..ef45c7529 100644 --- a/internal/api/client/accounts/accountcreate.go +++ b/internal/api/client/accounts/accountcreate.go @@ -22,11 +22,11 @@ import ( "net" "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" ) // AccountCreatePOSTHandler swagger:operation POST /api/v1/accounts accountCreate diff --git a/internal/api/client/accounts/accountdelete.go b/internal/api/client/accounts/accountdelete.go index 90fcd6eef..e7682b2ce 100644 --- a/internal/api/client/accounts/accountdelete.go +++ b/internal/api/client/accounts/accountdelete.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/gtserror" "codeberg.org/gruf/go-byteutil" "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" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/api/client/accounts/accountdelete_test.go b/internal/api/client/accounts/accountdelete_test.go index 66a5fa097..34854750b 100644 --- a/internal/api/client/accounts/accountdelete_test.go +++ b/internal/api/client/accounts/accountdelete_test.go @@ -22,9 +22,9 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AccountDeleteTestSuite struct { diff --git a/internal/api/client/accounts/accountget.go b/internal/api/client/accounts/accountget.go index cc6de3337..c28635a86 100644 --- a/internal/api/client/accounts/accountget.go +++ b/internal/api/client/accounts/accountget.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" ) // AccountGETHandler swagger:operation GET /api/v1/accounts/{id} accountGet diff --git a/internal/api/client/accounts/accountget_test.go b/internal/api/client/accounts/accountget_test.go index 421de0d64..6ec15597f 100644 --- a/internal/api/client/accounts/accountget_test.go +++ b/internal/api/client/accounts/accountget_test.go @@ -24,10 +24,10 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" ) type AccountGetTestSuite struct { diff --git a/internal/api/client/accounts/accountmove.go b/internal/api/client/accounts/accountmove.go index 601dd7d54..cdb2cdddb 100644 --- a/internal/api/client/accounts/accountmove.go +++ b/internal/api/client/accounts/accountmove.go @@ -20,10 +20,10 @@ package accounts 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" ) // AccountMovePOSTHandler swagger:operation POST /api/v1/accounts/move accountMove diff --git a/internal/api/client/accounts/accounts.go b/internal/api/client/accounts/accounts.go index f21d23185..fb6ce61e1 100644 --- a/internal/api/client/accounts/accounts.go +++ b/internal/api/client/accounts/accounts.go @@ -20,8 +20,8 @@ package accounts 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/accounts/accountupdate.go b/internal/api/client/accounts/accountupdate.go index 50e6632f4..58ba0dd2e 100644 --- a/internal/api/client/accounts/accountupdate.go +++ b/internal/api/client/accounts/accountupdate.go @@ -24,12 +24,12 @@ import ( "slices" "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" "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" ) // AccountUpdateCredentialsPATCHHandler swagger:operation PATCH /api/v1/accounts/update_credentials accountUpdate diff --git a/internal/api/client/accounts/accountupdate_test.go b/internal/api/client/accounts/accountupdate_test.go index d0def500c..1ab9f1fce 100644 --- a/internal/api/client/accounts/accountupdate_test.go +++ b/internal/api/client/accounts/accountupdate_test.go @@ -27,11 +27,11 @@ import ( "net/url" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AccountUpdateTestSuite struct { diff --git a/internal/api/client/accounts/accountverify.go b/internal/api/client/accounts/accountverify.go index f9dd5ae9c..dda3c10c6 100644 --- a/internal/api/client/accounts/accountverify.go +++ b/internal/api/client/accounts/accountverify.go @@ -20,9 +20,9 @@ package accounts 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" ) // AccountVerifyGETHandler swagger:operation GET /api/v1/accounts/verify_credentials accountVerify diff --git a/internal/api/client/accounts/accountverify_test.go b/internal/api/client/accounts/accountverify_test.go index eaa22abcf..615466d57 100644 --- a/internal/api/client/accounts/accountverify_test.go +++ b/internal/api/client/accounts/accountverify_test.go @@ -25,10 +25,10 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/oauth" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/oauth" ) type AccountVerifyTestSuite struct { diff --git a/internal/api/client/accounts/block.go b/internal/api/client/accounts/block.go index 09bf23a85..066ce0c31 100644 --- a/internal/api/client/accounts/block.go +++ b/internal/api/client/accounts/block.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" ) // AccountBlockPOSTHandler swagger:operation POST /api/v1/accounts/{id}/block accountBlock diff --git a/internal/api/client/accounts/block_test.go b/internal/api/client/accounts/block_test.go index 079e7a673..96390841c 100644 --- a/internal/api/client/accounts/block_test.go +++ b/internal/api/client/accounts/block_test.go @@ -25,12 +25,12 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + "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/accounts" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type BlockTestSuite struct { diff --git a/internal/api/client/accounts/featuredtags.go b/internal/api/client/accounts/featuredtags.go index 0cb3c7b98..eae3fbdf1 100644 --- a/internal/api/client/accounts/featuredtags.go +++ b/internal/api/client/accounts/featuredtags.go @@ -20,9 +20,9 @@ package accounts 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" ) // AccountFeaturedTagsGETHandler swagger:operation GET /api/v1/accounts/{id}/featured_tags accountsFeaturedTags diff --git a/internal/api/client/accounts/follow.go b/internal/api/client/accounts/follow.go index d72032066..e89cfc40f 100644 --- a/internal/api/client/accounts/follow.go +++ b/internal/api/client/accounts/follow.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" ) // AccountFollowPOSTHandler swagger:operation POST /api/v1/accounts/{id}/follow accountFollow diff --git a/internal/api/client/accounts/follow_test.go b/internal/api/client/accounts/follow_test.go index bc6a54735..d87b8c9b9 100644 --- a/internal/api/client/accounts/follow_test.go +++ b/internal/api/client/accounts/follow_test.go @@ -30,14 +30,14 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/assert" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" "github.com/tomnomnom/linkheader" ) diff --git a/internal/api/client/accounts/followers.go b/internal/api/client/accounts/followers.go index d1fca7918..a813e9f00 100644 --- a/internal/api/client/accounts/followers.go +++ b/internal/api/client/accounts/followers.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" ) // AccountFollowersGETHandler swagger:operation GET /api/v1/accounts/{id}/followers accountFollowers diff --git a/internal/api/client/accounts/following.go b/internal/api/client/accounts/following.go index b0d47667f..694e95ccd 100644 --- a/internal/api/client/accounts/following.go +++ b/internal/api/client/accounts/following.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" ) // AccountFollowingGETHandler swagger:operation GET /api/v1/accounts/{id}/following accountFollowing diff --git a/internal/api/client/accounts/lists.go b/internal/api/client/accounts/lists.go index f054b73bb..23a137533 100644 --- a/internal/api/client/accounts/lists.go +++ b/internal/api/client/accounts/lists.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" ) // AccountListsGETHandler swagger:operation GET /api/v1/accounts/{id}/lists accountLists diff --git a/internal/api/client/accounts/lists_test.go b/internal/api/client/accounts/lists_test.go index 95b50b1d3..bdb004cca 100644 --- a/internal/api/client/accounts/lists_test.go +++ b/internal/api/client/accounts/lists_test.go @@ -24,11 +24,11 @@ import ( "net/http/httptest" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ListsTestSuite struct { diff --git a/internal/api/client/accounts/lookup.go b/internal/api/client/accounts/lookup.go index 88cf7fbe9..03657a20a 100644 --- a/internal/api/client/accounts/lookup.go +++ b/internal/api/client/accounts/lookup.go @@ -20,9 +20,9 @@ package accounts 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" ) // AccountLookupGETHandler swagger:operation GET /api/v1/accounts/lookup accountLookupGet diff --git a/internal/api/client/accounts/mute.go b/internal/api/client/accounts/mute.go index c5e5cc24b..e9884eafd 100644 --- a/internal/api/client/accounts/mute.go +++ b/internal/api/client/accounts/mute.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/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" ) // AccountMutePOSTHandler swagger:operation POST /api/v1/accounts/{id}/mute accountMute diff --git a/internal/api/client/accounts/mute_test.go b/internal/api/client/accounts/mute_test.go index d181a2e3b..4e58031e0 100644 --- a/internal/api/client/accounts/mute_test.go +++ b/internal/api/client/accounts/mute_test.go @@ -27,13 +27,13 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + 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/accounts" - 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 MuteTestSuite struct { diff --git a/internal/api/client/accounts/note.go b/internal/api/client/accounts/note.go index bee99cf1e..2461487e8 100644 --- a/internal/api/client/accounts/note.go +++ b/internal/api/client/accounts/note.go @@ -20,10 +20,10 @@ package accounts 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" ) // AccountNotePOSTHandler swagger:operation POST /api/v1/accounts/{id}/note accountNote diff --git a/internal/api/client/accounts/profile.go b/internal/api/client/accounts/profile.go index 16c312685..6f9194ba9 100644 --- a/internal/api/client/accounts/profile.go +++ b/internal/api/client/accounts/profile.go @@ -21,11 +21,11 @@ import ( "context" "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" ) // AccountAvatarDELETEHandler swagger:operation DELETE /api/v1/profile/avatar accountAvatarDelete diff --git a/internal/api/client/accounts/profile_test.go b/internal/api/client/accounts/profile_test.go index f6d97c014..d499fc3e3 100644 --- a/internal/api/client/accounts/profile_test.go +++ b/internal/api/client/accounts/profile_test.go @@ -26,13 +26,13 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + 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" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - 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" ) type AccountProfileTestSuite struct { diff --git a/internal/api/client/accounts/relationships.go b/internal/api/client/accounts/relationships.go index 7a5589832..33a8c20d9 100644 --- a/internal/api/client/accounts/relationships.go +++ b/internal/api/client/accounts/relationships.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" ) // AccountRelationshipsGETHandler swagger:operation GET /api/v1/accounts/relationships accountRelationships diff --git a/internal/api/client/accounts/search.go b/internal/api/client/accounts/search.go index 671afece2..1c3166c29 100644 --- a/internal/api/client/accounts/search.go +++ b/internal/api/client/accounts/search.go @@ -20,9 +20,9 @@ package accounts 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" ) // AccountSearchGETHandler swagger:operation GET /api/v1/accounts/search accountSearchGet diff --git a/internal/api/client/accounts/search_test.go b/internal/api/client/accounts/search_test.go index f5216d5b9..69c42eda3 100644 --- a/internal/api/client/accounts/search_test.go +++ b/internal/api/client/accounts/search_test.go @@ -27,14 +27,14 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + 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/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - 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/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AccountSearchTestSuite struct { diff --git a/internal/api/client/accounts/statuses.go b/internal/api/client/accounts/statuses.go index c9f7977d8..9cfb7db85 100644 --- a/internal/api/client/accounts/statuses.go +++ b/internal/api/client/accounts/statuses.go @@ -23,9 +23,9 @@ import ( "net/http" "strconv" + 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" ) // AccountStatusesGETHandler swagger:operation GET /api/v1/accounts/{id}/statuses accountStatuses diff --git a/internal/api/client/accounts/statuses_test.go b/internal/api/client/accounts/statuses_test.go index f7a304967..6e83c212d 100644 --- a/internal/api/client/accounts/statuses_test.go +++ b/internal/api/client/accounts/statuses_test.go @@ -25,11 +25,11 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/oauth" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/oauth" ) type AccountStatusesTestSuite struct { diff --git a/internal/api/client/accounts/themesget.go b/internal/api/client/accounts/themesget.go index 6055a619f..f1204e85e 100644 --- a/internal/api/client/accounts/themesget.go +++ b/internal/api/client/accounts/themesget.go @@ -20,9 +20,9 @@ package accounts 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" ) // AccountThemesGETHandler swagger:operation GET /api/v1/accounts/themes accountThemes diff --git a/internal/api/client/accounts/unblock.go b/internal/api/client/accounts/unblock.go index 615d62e60..0f725967f 100644 --- a/internal/api/client/accounts/unblock.go +++ b/internal/api/client/accounts/unblock.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" ) // AccountUnblockPOSTHandler swagger:operation POST /api/v1/accounts/{id}/unblock accountUnblock diff --git a/internal/api/client/accounts/unfollow.go b/internal/api/client/accounts/unfollow.go index 1372a4ffc..458232b73 100644 --- a/internal/api/client/accounts/unfollow.go +++ b/internal/api/client/accounts/unfollow.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" ) // AccountUnfollowPOSTHandler swagger:operation POST /api/v1/accounts/{id}/unfollow accountUnfollow diff --git a/internal/api/client/accounts/unmute.go b/internal/api/client/accounts/unmute.go index 0336e920f..eaee047f7 100644 --- a/internal/api/client/accounts/unmute.go +++ b/internal/api/client/accounts/unmute.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" ) // AccountUnmutePOSTHandler swagger:operation POST /api/v1/accounts/{id}/unmute accountUnmute diff --git a/internal/api/client/accounts/unmute_test.go b/internal/api/client/accounts/unmute_test.go index 5a00c3610..799c346f0 100644 --- a/internal/api/client/accounts/unmute_test.go +++ b/internal/api/client/accounts/unmute_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - "github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" - 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" + "code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" + 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" ) func (suite *MuteTestSuite) postUnmute( diff --git a/internal/api/client/admin/accountaction.go b/internal/api/client/admin/accountaction.go index 74ff0851c..290d80b71 100644 --- a/internal/api/client/admin/accountaction.go +++ b/internal/api/client/admin/accountaction.go @@ -22,10 +22,10 @@ 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" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // AccountActionPOSTHandler swagger:operation POST /api/v1/admin/accounts/{id}/action adminAccountAction diff --git a/internal/api/client/admin/accountapprove.go b/internal/api/client/admin/accountapprove.go index 96a495924..f5838f9d9 100644 --- a/internal/api/client/admin/accountapprove.go +++ b/internal/api/client/admin/accountapprove.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // AccountApprovePOSTHandler swagger:operation POST /api/v1/admin/accounts/{id}/approve adminAccountApprove diff --git a/internal/api/client/admin/accountget.go b/internal/api/client/admin/accountget.go index b73f58adb..75659777c 100644 --- a/internal/api/client/admin/accountget.go +++ b/internal/api/client/admin/accountget.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // AccountGETHandler swagger:operation GET /api/v1/admin/accounts/{id} adminAccountGet diff --git a/internal/api/client/admin/accountreject.go b/internal/api/client/admin/accountreject.go index fffdc5811..d9651c792 100644 --- a/internal/api/client/admin/accountreject.go +++ b/internal/api/client/admin/accountreject.go @@ -21,10 +21,10 @@ 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" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // AccountRejectPOSTHandler swagger:operation POST /api/v1/admin/accounts/{id}/reject adminAccountReject diff --git a/internal/api/client/admin/accountsgetv1.go b/internal/api/client/admin/accountsgetv1.go index 7d542b97c..3b3b5b783 100644 --- a/internal/api/client/admin/accountsgetv1.go +++ b/internal/api/client/admin/accountsgetv1.go @@ -178,11 +178,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/paging" "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/paging" ) func (m *Module) AccountsGETV1Handler(c *gin.Context) { diff --git a/internal/api/client/admin/accountsgetv2.go b/internal/api/client/admin/accountsgetv2.go index 8b6d4391d..971ecf9b4 100644 --- a/internal/api/client/admin/accountsgetv2.go +++ b/internal/api/client/admin/accountsgetv2.go @@ -151,11 +151,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/paging" "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/paging" ) func (m *Module) AccountsGETV2Handler(c *gin.Context) { diff --git a/internal/api/client/admin/accountsgetv2_test.go b/internal/api/client/admin/accountsgetv2_test.go index 2a2c89780..e460f8da6 100644 --- a/internal/api/client/admin/accountsgetv2_test.go +++ b/internal/api/client/admin/accountsgetv2_test.go @@ -25,9 +25,9 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" ) type AccountsGetTestSuite struct { diff --git a/internal/api/client/admin/admin.go b/internal/api/client/admin/admin.go index 01a5796ae..033a1800e 100644 --- a/internal/api/client/admin/admin.go +++ b/internal/api/client/admin/admin.go @@ -20,11 +20,11 @@ package admin import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" "codeberg.org/gruf/go-debug" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" ) const ( diff --git a/internal/api/client/admin/admin_test.go b/internal/api/client/admin/admin_test.go index 6bc777119..2300f5bae 100644 --- a/internal/api/client/admin/admin_test.go +++ b/internal/api/client/admin/admin_test.go @@ -23,23 +23,23 @@ import ( "net/http" "net/http/httptest" + adminactions "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + "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" - adminactions "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - "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 AdminStandardTestSuite struct { diff --git a/internal/api/client/admin/debug_on.go b/internal/api/client/admin/debug_on.go index eb38e95e5..505875eb2 100644 --- a/internal/api/client/admin/debug_on.go +++ b/internal/api/client/admin/debug_on.go @@ -24,9 +24,9 @@ import ( "fmt" "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" ) func (m *Module) DebugAPUrlHandler(c *gin.Context) { diff --git a/internal/api/client/admin/domainallowcreate.go b/internal/api/client/admin/domainallowcreate.go index 3e2baa053..d7ccac620 100644 --- a/internal/api/client/admin/domainallowcreate.go +++ b/internal/api/client/admin/domainallowcreate.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainAllowsPOSTHandler swagger:operation POST /api/v1/admin/domain_allows domainAllowCreate diff --git a/internal/api/client/admin/domainallowdelete.go b/internal/api/client/admin/domainallowdelete.go index 20f97fe6d..06e6ea538 100644 --- a/internal/api/client/admin/domainallowdelete.go +++ b/internal/api/client/admin/domainallowdelete.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainAllowDELETEHandler swagger:operation DELETE /api/v1/admin/domain_allows/{id} domainAllowDelete diff --git a/internal/api/client/admin/domainallowget.go b/internal/api/client/admin/domainallowget.go index 6ed845235..61c6dae20 100644 --- a/internal/api/client/admin/domainallowget.go +++ b/internal/api/client/admin/domainallowget.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainAllowGETHandler swagger:operation GET /api/v1/admin/domain_allows/{id} domainAllowGet diff --git a/internal/api/client/admin/domainallowsget.go b/internal/api/client/admin/domainallowsget.go index 4790f1a2b..d973b9df4 100644 --- a/internal/api/client/admin/domainallowsget.go +++ b/internal/api/client/admin/domainallowsget.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainAllowsGETHandler swagger:operation GET /api/v1/admin/domain_allows domainAllowsGet diff --git a/internal/api/client/admin/domainallowupdate.go b/internal/api/client/admin/domainallowupdate.go index 02edfdfef..9b28d4682 100644 --- a/internal/api/client/admin/domainallowupdate.go +++ b/internal/api/client/admin/domainallowupdate.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainAllowUpdatePUTHandler swagger:operation PUT /api/v1/admin/domain_allows/{id} domainAllowUpdate diff --git a/internal/api/client/admin/domainblockcreate.go b/internal/api/client/admin/domainblockcreate.go index 1e98c6f6f..e305d7e5a 100644 --- a/internal/api/client/admin/domainblockcreate.go +++ b/internal/api/client/admin/domainblockcreate.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainBlocksPOSTHandler swagger:operation POST /api/v1/admin/domain_blocks domainBlockCreate diff --git a/internal/api/client/admin/domainblockdelete.go b/internal/api/client/admin/domainblockdelete.go index e9b207505..f7bda40b0 100644 --- a/internal/api/client/admin/domainblockdelete.go +++ b/internal/api/client/admin/domainblockdelete.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainBlockDELETEHandler swagger:operation DELETE /api/v1/admin/domain_blocks/{id} domainBlockDelete diff --git a/internal/api/client/admin/domainblockget.go b/internal/api/client/admin/domainblockget.go index 1d73962fa..23d0795f5 100644 --- a/internal/api/client/admin/domainblockget.go +++ b/internal/api/client/admin/domainblockget.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainBlockGETHandler swagger:operation GET /api/v1/admin/domain_blocks/{id} domainBlockGet diff --git a/internal/api/client/admin/domainblocksget.go b/internal/api/client/admin/domainblocksget.go index 383acbea5..1728fbe3d 100644 --- a/internal/api/client/admin/domainblocksget.go +++ b/internal/api/client/admin/domainblocksget.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainBlocksGETHandler swagger:operation GET /api/v1/admin/domain_blocks domainBlocksGet diff --git a/internal/api/client/admin/domainblockupdate.go b/internal/api/client/admin/domainblockupdate.go index 0fbe72aa8..b3c4408c8 100644 --- a/internal/api/client/admin/domainblockupdate.go +++ b/internal/api/client/admin/domainblockupdate.go @@ -18,8 +18,8 @@ package admin import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainBlockUpdatePUTHandler swagger:operation PUT /api/v1/admin/domain_blocks/{id} domainBlockUpdate diff --git a/internal/api/client/admin/domainkeysexpire.go b/internal/api/client/admin/domainkeysexpire.go index 262d196b4..e18eae126 100644 --- a/internal/api/client/admin/domainkeysexpire.go +++ b/internal/api/client/admin/domainkeysexpire.go @@ -23,11 +23,11 @@ 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/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" ) // DomainKeysExpirePOSTHandler swagger:operation POST /api/v1/admin/domain_keys_expire domainKeysExpire diff --git a/internal/api/client/admin/domainpermission.go b/internal/api/client/admin/domainpermission.go index 91b95334b..0dfbdc804 100644 --- a/internal/api/client/admin/domainpermission.go +++ b/internal/api/client/admin/domainpermission.go @@ -24,12 +24,12 @@ import ( "mime/multipart" "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" + "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/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type singleDomainPermCreate func( diff --git a/internal/api/client/admin/domainpermissiondraftaccept.go b/internal/api/client/admin/domainpermissiondraftaccept.go index 345b4d1c3..2514d339c 100644 --- a/internal/api/client/admin/domainpermissiondraftaccept.go +++ b/internal/api/client/admin/domainpermissiondraftaccept.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // DomainPermissionDraftAcceptPOSTHandler swagger:operation POST /api/v1/admin/domain_permission_drafts/{id}/accept domainPermissionDraftAccept diff --git a/internal/api/client/admin/domainpermissiondraftcreate.go b/internal/api/client/admin/domainpermissiondraftcreate.go index e7fcd2c40..71aee0c05 100644 --- a/internal/api/client/admin/domainpermissiondraftcreate.go +++ b/internal/api/client/admin/domainpermissiondraftcreate.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/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" ) // DomainPermissionDraftsPOSTHandler swagger:operation POST /api/v1/admin/domain_permission_drafts domainPermissionDraftCreate diff --git a/internal/api/client/admin/domainpermissiondraftget.go b/internal/api/client/admin/domainpermissiondraftget.go index bff6254f7..8f4aa03bf 100644 --- a/internal/api/client/admin/domainpermissiondraftget.go +++ b/internal/api/client/admin/domainpermissiondraftget.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // DomainPermissionDraftGETHandler swagger:operation GET /api/v1/admin/domain_permission_drafts/{id} domainPermissionDraftGet diff --git a/internal/api/client/admin/domainpermissiondraftremove.go b/internal/api/client/admin/domainpermissiondraftremove.go index 6346331d1..6cd476b19 100644 --- a/internal/api/client/admin/domainpermissiondraftremove.go +++ b/internal/api/client/admin/domainpermissiondraftremove.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // DomainPermissionDraftRemovePOSTHandler swagger:operation POST /api/v1/admin/domain_permission_drafts/{id}/remove domainPermissionDraftRemove diff --git a/internal/api/client/admin/domainpermissiondraftsget.go b/internal/api/client/admin/domainpermissiondraftsget.go index fa5e1ce6a..b54332202 100644 --- a/internal/api/client/admin/domainpermissiondraftsget.go +++ b/internal/api/client/admin/domainpermissiondraftsget.go @@ -22,11 +22,11 @@ import ( "fmt" "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/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/paging" ) // DomainPermissionDraftsGETHandler swagger:operation GET /api/v1/admin/domain_permission_drafts domainPermissionDraftsGet diff --git a/internal/api/client/admin/domainpermissionexcludecreate.go b/internal/api/client/admin/domainpermissionexcludecreate.go index 9559ab5b2..1b8dd307b 100644 --- a/internal/api/client/admin/domainpermissionexcludecreate.go +++ b/internal/api/client/admin/domainpermissionexcludecreate.go @@ -22,9 +22,9 @@ import ( "fmt" "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" ) // DomainPermissionExcludesPOSTHandler swagger:operation POST /api/v1/admin/domain_permission_excludes domainPermissionExcludeCreate diff --git a/internal/api/client/admin/domainpermissionexcludeget.go b/internal/api/client/admin/domainpermissionexcludeget.go index 200f20021..18d3ea56e 100644 --- a/internal/api/client/admin/domainpermissionexcludeget.go +++ b/internal/api/client/admin/domainpermissionexcludeget.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // DomainPermissionExcludeGETHandler swagger:operation GET /api/v1/admin/domain_permission_excludes/{id} domainPermissionExcludeGet diff --git a/internal/api/client/admin/domainpermissionexcluderemove.go b/internal/api/client/admin/domainpermissionexcluderemove.go index 35a4bdd27..c1dc98241 100644 --- a/internal/api/client/admin/domainpermissionexcluderemove.go +++ b/internal/api/client/admin/domainpermissionexcluderemove.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // DomainPermissionExcludeDELETEHandler swagger:operation DELETE /api/v1/admin/domain_permission_excludes/{id} domainPermissionExcludeDelete diff --git a/internal/api/client/admin/domainpermissionexcludesget.go b/internal/api/client/admin/domainpermissionexcludesget.go index 59384079c..d245c1666 100644 --- a/internal/api/client/admin/domainpermissionexcludesget.go +++ b/internal/api/client/admin/domainpermissionexcludesget.go @@ -21,10 +21,10 @@ import ( "fmt" "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" ) // DomainPermissionExcludesGETHandler swagger:operation GET /api/v1/admin/domain_permission_excludes domainPermissionExcludesGet diff --git a/internal/api/client/admin/domainpermissionsubscriptioncreate.go b/internal/api/client/admin/domainpermissionsubscriptioncreate.go index b45ac8d72..f44eda748 100644 --- a/internal/api/client/admin/domainpermissionsubscriptioncreate.go +++ b/internal/api/client/admin/domainpermissionsubscriptioncreate.go @@ -23,11 +23,11 @@ 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" + "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" ) // DomainPermissionSubscriptionPOSTHandler swagger:operation POST /api/v1/admin/domain_permission_subscriptions domainPermissionSubscriptionCreate diff --git a/internal/api/client/admin/domainpermissionsubscriptionget.go b/internal/api/client/admin/domainpermissionsubscriptionget.go index 59498beea..43bb90623 100644 --- a/internal/api/client/admin/domainpermissionsubscriptionget.go +++ b/internal/api/client/admin/domainpermissionsubscriptionget.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // DomainPermissionSubscriptionGETHandler swagger:operation GET /api/v1/admin/domain_permission_subscriptions/{id} domainPermissionSubscriptionGet diff --git a/internal/api/client/admin/domainpermissionsubscriptionremove.go b/internal/api/client/admin/domainpermissionsubscriptionremove.go index c659a7559..f44241d1e 100644 --- a/internal/api/client/admin/domainpermissionsubscriptionremove.go +++ b/internal/api/client/admin/domainpermissionsubscriptionremove.go @@ -21,10 +21,10 @@ import ( "fmt" "net/http" + 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" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // DomainPermissionSubscriptionRemovePOSTHandler swagger:operation POST /api/v1/admin/domain_permission_subscriptions/{id}/remove domainPermissionSubscriptionRemove diff --git a/internal/api/client/admin/domainpermissionsubscriptionsget.go b/internal/api/client/admin/domainpermissionsubscriptionsget.go index b3509a139..55f1a8de0 100644 --- a/internal/api/client/admin/domainpermissionsubscriptionsget.go +++ b/internal/api/client/admin/domainpermissionsubscriptionsget.go @@ -22,11 +22,11 @@ import ( "fmt" "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/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/paging" ) // DomainPermissionSubscriptionsGETHandler swagger:operation GET /api/v1/admin/domain_permission_subscriptions domainPermissionSubscriptionsGet diff --git a/internal/api/client/admin/domainpermissionsubscriptionspreviewget.go b/internal/api/client/admin/domainpermissionsubscriptionspreviewget.go index d942e9612..193a2ca24 100644 --- a/internal/api/client/admin/domainpermissionsubscriptionspreviewget.go +++ b/internal/api/client/admin/domainpermissionsubscriptionspreviewget.go @@ -22,10 +22,10 @@ import ( "fmt" "net/http" + 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" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // DomainPermissionSubscriptionsPreviewGETHandler swagger:operation GET /api/v1/admin/domain_permission_subscriptions/preview domainPermissionSubscriptionsPreviewGet diff --git a/internal/api/client/admin/domainpermissionsubscriptiontest.go b/internal/api/client/admin/domainpermissionsubscriptiontest.go index 573f1ca01..cb27312c6 100644 --- a/internal/api/client/admin/domainpermissionsubscriptiontest.go +++ b/internal/api/client/admin/domainpermissionsubscriptiontest.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // DomainPermissionSubscriptionTestPOSTHandler swagger:operation POST /api/v1/admin/domain_permission_subscriptions/{id}/test domainPermissionSubscriptionTest diff --git a/internal/api/client/admin/domainpermissionsubscriptiontest_test.go b/internal/api/client/admin/domainpermissionsubscriptiontest_test.go index 4ac366520..6d3356f0e 100644 --- a/internal/api/client/admin/domainpermissionsubscriptiontest_test.go +++ b/internal/api/client/admin/domainpermissionsubscriptiontest_test.go @@ -27,12 +27,12 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type DomainPermissionSubscriptionTestTestSuite struct { diff --git a/internal/api/client/admin/domainpermissionsubscriptionupdate.go b/internal/api/client/admin/domainpermissionsubscriptionupdate.go index 0f6309c19..364e75f80 100644 --- a/internal/api/client/admin/domainpermissionsubscriptionupdate.go +++ b/internal/api/client/admin/domainpermissionsubscriptionupdate.go @@ -23,12 +23,12 @@ 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" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "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/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // DomainPermissionSubscriptionPATCHHandler swagger:operation PATCH /api/v1/admin/domain_permission_subscriptions/${id} domainPermissionSubscriptionUpdate diff --git a/internal/api/client/admin/emailtest.go b/internal/api/client/admin/emailtest.go index 37a5e31d3..bd5d12dc6 100644 --- a/internal/api/client/admin/emailtest.go +++ b/internal/api/client/admin/emailtest.go @@ -22,10 +22,10 @@ import ( "net/http" "net/mail" + 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" ) // EmailTestPostHandler swagger:operation POST /api/v1/admin/email/test testEmailSend diff --git a/internal/api/client/admin/emojicategoriesget.go b/internal/api/client/admin/emojicategoriesget.go index e678cea86..37d6f12f3 100644 --- a/internal/api/client/admin/emojicategoriesget.go +++ b/internal/api/client/admin/emojicategoriesget.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // EmojiCategoriesGETHandler swagger:operation GET /api/v1/admin/custom_emojis/categories emojiCategoriesGet diff --git a/internal/api/client/admin/emojicategoriesget_test.go b/internal/api/client/admin/emojicategoriesget_test.go index bca178bde..6c0f9e80f 100644 --- a/internal/api/client/admin/emojicategoriesget_test.go +++ b/internal/api/client/admin/emojicategoriesget_test.go @@ -25,8 +25,8 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" ) type EmojiCategoriesGetTestSuite struct { diff --git a/internal/api/client/admin/emojicreate.go b/internal/api/client/admin/emojicreate.go index 445c56605..c2723042a 100644 --- a/internal/api/client/admin/emojicreate.go +++ b/internal/api/client/admin/emojicreate.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/config" + "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/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // EmojiCreatePOSTHandler swagger:operation POST /api/v1/admin/custom_emojis emojiCreate diff --git a/internal/api/client/admin/emojicreate_test.go b/internal/api/client/admin/emojicreate_test.go index 9e985459b..1a6983c21 100644 --- a/internal/api/client/admin/emojicreate_test.go +++ b/internal/api/client/admin/emojicreate_test.go @@ -25,10 +25,10 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/testrig" ) type EmojiCreateTestSuite struct { diff --git a/internal/api/client/admin/emojidelete.go b/internal/api/client/admin/emojidelete.go index 05d94f25d..7809608e3 100644 --- a/internal/api/client/admin/emojidelete.go +++ b/internal/api/client/admin/emojidelete.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // EmojiDELETEHandler swagger:operation DELETE /api/v1/admin/custom_emojis/{id} emojiDelete diff --git a/internal/api/client/admin/emojidelete_test.go b/internal/api/client/admin/emojidelete_test.go index 88e929b55..c327bed94 100644 --- a/internal/api/client/admin/emojidelete_test.go +++ b/internal/api/client/admin/emojidelete_test.go @@ -26,10 +26,10 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" ) type EmojiDeleteTestSuite struct { diff --git a/internal/api/client/admin/emojiget.go b/internal/api/client/admin/emojiget.go index 41bea00f8..5abed2aaa 100644 --- a/internal/api/client/admin/emojiget.go +++ b/internal/api/client/admin/emojiget.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // EmojiGETHandler swagger:operation GET /api/v1/admin/custom_emojis/{id} emojiGet diff --git a/internal/api/client/admin/emojiget_test.go b/internal/api/client/admin/emojiget_test.go index d6b2924ab..97e32f412 100644 --- a/internal/api/client/admin/emojiget_test.go +++ b/internal/api/client/admin/emojiget_test.go @@ -25,9 +25,9 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) type EmojiGetTestSuite struct { diff --git a/internal/api/client/admin/emojisget.go b/internal/api/client/admin/emojisget.go index c1d05af07..d9cf508ce 100644 --- a/internal/api/client/admin/emojisget.go +++ b/internal/api/client/admin/emojisget.go @@ -22,11 +22,11 @@ import ( "net/http" "strings" + 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" "github.com/gin-gonic/gin" - 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" ) // EmojisGETHandler swagger:operation GET /api/v1/admin/custom_emojis emojisGet diff --git a/internal/api/client/admin/emojisget_test.go b/internal/api/client/admin/emojisget_test.go index 85156c79a..a7fd78b20 100644 --- a/internal/api/client/admin/emojisget_test.go +++ b/internal/api/client/admin/emojisget_test.go @@ -24,9 +24,9 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" ) type EmojisGetTestSuite struct { diff --git a/internal/api/client/admin/emojiupdate.go b/internal/api/client/admin/emojiupdate.go index 07337eaa9..807f24844 100644 --- a/internal/api/client/admin/emojiupdate.go +++ b/internal/api/client/admin/emojiupdate.go @@ -23,12 +23,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/config" + "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/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // EmojiPATCHHandler swagger:operation PATCH /api/v1/admin/custom_emojis/{id} emojiUpdate diff --git a/internal/api/client/admin/emojiupdate_test.go b/internal/api/client/admin/emojiupdate_test.go index b6dffa887..91a9ec8f4 100644 --- a/internal/api/client/admin/emojiupdate_test.go +++ b/internal/api/client/admin/emojiupdate_test.go @@ -26,12 +26,12 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) type EmojiUpdateTestSuite struct { diff --git a/internal/api/client/admin/headerfilter.go b/internal/api/client/admin/headerfilter.go index b101e98f6..75bf29b68 100644 --- a/internal/api/client/admin/headerfilter.go +++ b/internal/api/client/admin/headerfilter.go @@ -22,11 +22,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/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" ) // getHeaderFilter is a gin handler function that returns details of an HTTP header filter with provided ID, using given get function. diff --git a/internal/api/client/admin/mediacleanup.go b/internal/api/client/admin/mediacleanup.go index 2554f8508..56610ce3e 100644 --- a/internal/api/client/admin/mediacleanup.go +++ b/internal/api/client/admin/mediacleanup.go @@ -21,11 +21,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" ) // MediaCleanupPOSTHandler swagger:operation POST /api/v1/admin/media_cleanup mediaCleanup diff --git a/internal/api/client/admin/mediacleanup_test.go b/internal/api/client/admin/mediacleanup_test.go index ca3431b33..8224b875f 100644 --- a/internal/api/client/admin/mediacleanup_test.go +++ b/internal/api/client/admin/mediacleanup_test.go @@ -24,9 +24,9 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - "github.com/superseriousbusiness/gotosocial/testrig" ) type MediaCleanupTestSuite struct { diff --git a/internal/api/client/admin/mediarefetch.go b/internal/api/client/admin/mediarefetch.go index 47301460f..bf32ad207 100644 --- a/internal/api/client/admin/mediarefetch.go +++ b/internal/api/client/admin/mediarefetch.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // MediaRefetchPOSTHandler swagger:operation POST /api/v1/admin/media_refetch mediaRefetch diff --git a/internal/api/client/admin/reportget.go b/internal/api/client/admin/reportget.go index 163043627..6f870303a 100644 --- a/internal/api/client/admin/reportget.go +++ b/internal/api/client/admin/reportget.go @@ -21,9 +21,9 @@ import ( "fmt" "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/admin/reports/{id} adminReportGet diff --git a/internal/api/client/admin/reportresolve.go b/internal/api/client/admin/reportresolve.go index 2b9be3721..df9e749a6 100644 --- a/internal/api/client/admin/reportresolve.go +++ b/internal/api/client/admin/reportresolve.go @@ -21,10 +21,10 @@ 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" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ReportResolvePOSTHandler swagger:operation POST /api/v1/admin/reports/{id}/resolve adminReportResolve diff --git a/internal/api/client/admin/reportresolve_test.go b/internal/api/client/admin/reportresolve_test.go index 561661fe0..e808b533d 100644 --- a/internal/api/client/admin/reportresolve_test.go +++ b/internal/api/client/admin/reportresolve_test.go @@ -26,16 +26,16 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + 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/oauth" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - 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/oauth" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ReportResolveTestSuite struct { diff --git a/internal/api/client/admin/reportsget.go b/internal/api/client/admin/reportsget.go index 64a144767..31c93cbcc 100644 --- a/internal/api/client/admin/reportsget.go +++ b/internal/api/client/admin/reportsget.go @@ -21,10 +21,10 @@ import ( "fmt" "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/admin/reports adminReports diff --git a/internal/api/client/admin/reportsget_test.go b/internal/api/client/admin/reportsget_test.go index ec15b05d3..8489d5c28 100644 --- a/internal/api/client/admin/reportsget_test.go +++ b/internal/api/client/admin/reportsget_test.go @@ -25,16 +25,16 @@ import ( "strconv" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/admin" + 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/oauth" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/admin" - 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/oauth" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ReportsGetTestSuite struct { diff --git a/internal/api/client/admin/rulecreate.go b/internal/api/client/admin/rulecreate.go index 9e4be1da3..ac8febaed 100644 --- a/internal/api/client/admin/rulecreate.go +++ b/internal/api/client/admin/rulecreate.go @@ -22,10 +22,10 @@ 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" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // RulePOSTHandler swagger:operation POST /api/v1/admin/instance/rules ruleCreate diff --git a/internal/api/client/admin/ruledelete.go b/internal/api/client/admin/ruledelete.go index c2797aa8d..b6415cf3b 100644 --- a/internal/api/client/admin/ruledelete.go +++ b/internal/api/client/admin/ruledelete.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // RuleDELETEHandler swagger:operation DELETE /api/v1/admin/instance/rules/{id} ruleDelete diff --git a/internal/api/client/admin/ruleget.go b/internal/api/client/admin/ruleget.go index ce627a0d7..ce21bbb26 100644 --- a/internal/api/client/admin/ruleget.go +++ b/internal/api/client/admin/ruleget.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // RuleGETHandler swagger:operation GET /api/v1/admin/instance/rules/{id} adminRuleGet diff --git a/internal/api/client/admin/rulesget.go b/internal/api/client/admin/rulesget.go index bc4961c6a..48cd4b43c 100644 --- a/internal/api/client/admin/rulesget.go +++ b/internal/api/client/admin/rulesget.go @@ -21,9 +21,9 @@ import ( "fmt" "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" ) // RulesGETHandler swagger:operation GET /api/v1/admin/instance/rules adminsRuleGet diff --git a/internal/api/client/admin/ruleupdate.go b/internal/api/client/admin/ruleupdate.go index db8b610e0..8f2efe845 100644 --- a/internal/api/client/admin/ruleupdate.go +++ b/internal/api/client/admin/ruleupdate.go @@ -21,10 +21,10 @@ 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" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // RulePATCHHandler swagger:operation PATCH /api/v1/admin/instance/rules/{id} ruleUpdate diff --git a/internal/api/client/announcements/announcements.go b/internal/api/client/announcements/announcements.go index 611a1c53e..85a1f2eb2 100644 --- a/internal/api/client/announcements/announcements.go +++ b/internal/api/client/announcements/announcements.go @@ -20,8 +20,8 @@ package announcements import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) // BasePath is the base path for this api module, excluding the api prefix diff --git a/internal/api/client/announcements/announcementsget.go b/internal/api/client/announcements/announcementsget.go index 92353a4e7..90347c177 100644 --- a/internal/api/client/announcements/announcementsget.go +++ b/internal/api/client/announcements/announcementsget.go @@ -20,9 +20,9 @@ package announcements 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" ) // AnnouncementsGETHandler swagger:operation GET /api/v1/announcements announcementsGet diff --git a/internal/api/client/apps/appcreate.go b/internal/api/client/apps/appcreate.go index 062b2e13d..11784bf63 100644 --- a/internal/api/client/apps/appcreate.go +++ b/internal/api/client/apps/appcreate.go @@ -24,10 +24,10 @@ import ( "slices" "strings" + 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" ) // these consts are used to ensure users can't spam huge entries into our database diff --git a/internal/api/client/apps/appdelete.go b/internal/api/client/apps/appdelete.go index 301579929..db3b31d5c 100644 --- a/internal/api/client/apps/appdelete.go +++ b/internal/api/client/apps/appdelete.go @@ -20,9 +20,9 @@ package apps 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" ) // AppDELETEHandler swagger:operation DELETE /api/v1/apps/{id} appDelete diff --git a/internal/api/client/apps/appget.go b/internal/api/client/apps/appget.go index f9d5050b4..fc16c5ae1 100644 --- a/internal/api/client/apps/appget.go +++ b/internal/api/client/apps/appget.go @@ -20,9 +20,9 @@ package apps 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" ) // AppGETHandler swagger:operation GET /api/v1/apps/{id} appGet diff --git a/internal/api/client/apps/apps.go b/internal/api/client/apps/apps.go index 2071c08bd..ae1be030f 100644 --- a/internal/api/client/apps/apps.go +++ b/internal/api/client/apps/apps.go @@ -20,9 +20,9 @@ package apps 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/apps/appsget.go b/internal/api/client/apps/appsget.go index 6bbd4c752..31b2e9337 100644 --- a/internal/api/client/apps/appsget.go +++ b/internal/api/client/apps/appsget.go @@ -20,10 +20,10 @@ package apps 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" ) // AppsGETHandler swagger:operation GET /api/v1/apps appsGet diff --git a/internal/api/client/blocks/blocks.go b/internal/api/client/blocks/blocks.go index 0eeee2bf1..2af1e7871 100644 --- a/internal/api/client/blocks/blocks.go +++ b/internal/api/client/blocks/blocks.go @@ -20,8 +20,8 @@ package blocks 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/blocks/blocksget.go b/internal/api/client/blocks/blocksget.go index 0d9a2234e..45a24cf91 100644 --- a/internal/api/client/blocks/blocksget.go +++ b/internal/api/client/blocks/blocksget.go @@ -20,10 +20,10 @@ package blocks 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" ) // BlocksGETHandler swagger:operation GET /api/v1/blocks blocksGet diff --git a/internal/api/client/bookmarks/bookmarks.go b/internal/api/client/bookmarks/bookmarks.go index 3f4df9011..dbc27787e 100644 --- a/internal/api/client/bookmarks/bookmarks.go +++ b/internal/api/client/bookmarks/bookmarks.go @@ -20,8 +20,8 @@ package bookmarks 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/bookmarks/bookmarks_test.go b/internal/api/client/bookmarks/bookmarks_test.go index 3608078b9..7c18d3b0b 100644 --- a/internal/api/client/bookmarks/bookmarks_test.go +++ b/internal/api/client/bookmarks/bookmarks_test.go @@ -27,24 +27,24 @@ import ( "strconv" "testing" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/bookmarks" + "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/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/client/bookmarks" - "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/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 BookmarkTestSuite struct { diff --git a/internal/api/client/bookmarks/bookmarksget.go b/internal/api/client/bookmarks/bookmarksget.go index 6fa87c688..beaec63f3 100644 --- a/internal/api/client/bookmarks/bookmarksget.go +++ b/internal/api/client/bookmarks/bookmarksget.go @@ -22,9 +22,9 @@ import ( "net/http" "strconv" + 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" ) const ( diff --git a/internal/api/client/conversations/conversationdelete.go b/internal/api/client/conversations/conversationdelete.go index dabb2bfc8..6757ffe1a 100644 --- a/internal/api/client/conversations/conversationdelete.go +++ b/internal/api/client/conversations/conversationdelete.go @@ -20,9 +20,9 @@ package conversations 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" ) // ConversationDELETEHandler swagger:operation DELETE /api/v1/conversations/{id} conversationDelete diff --git a/internal/api/client/conversations/conversationread.go b/internal/api/client/conversations/conversationread.go index e168cca2e..0eb907ca4 100644 --- a/internal/api/client/conversations/conversationread.go +++ b/internal/api/client/conversations/conversationread.go @@ -20,9 +20,9 @@ package conversations 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" ) // ConversationReadPOSTHandler swagger:operation POST /api/v1/conversation/{id}/read conversationRead diff --git a/internal/api/client/conversations/conversations.go b/internal/api/client/conversations/conversations.go index e742c8d3d..2cfb6ea65 100644 --- a/internal/api/client/conversations/conversations.go +++ b/internal/api/client/conversations/conversations.go @@ -20,9 +20,9 @@ package conversations 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/conversations/conversationsget.go b/internal/api/client/conversations/conversationsget.go index 8cd70cd00..c9edd0825 100644 --- a/internal/api/client/conversations/conversationsget.go +++ b/internal/api/client/conversations/conversationsget.go @@ -20,10 +20,10 @@ package conversations 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" ) // ConversationsGETHandler swagger:operation GET /api/v1/conversations conversationsGet diff --git a/internal/api/client/customemojis/customemojis.go b/internal/api/client/customemojis/customemojis.go index 69154e186..1a7a996d6 100644 --- a/internal/api/client/customemojis/customemojis.go +++ b/internal/api/client/customemojis/customemojis.go @@ -20,8 +20,8 @@ package customemojis 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/customemojis/customemojisget.go b/internal/api/client/customemojis/customemojisget.go index 7c9b88b4c..c63445aef 100644 --- a/internal/api/client/customemojis/customemojisget.go +++ b/internal/api/client/customemojis/customemojisget.go @@ -20,9 +20,9 @@ package customemojis 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" ) // CustomEmojisGETHandler swagger:operation GET /api/v1/custom_emojis customEmojisGet diff --git a/internal/api/client/exports/blocks.go b/internal/api/client/exports/blocks.go index bc8c2a6b3..fae8a201b 100644 --- a/internal/api/client/exports/blocks.go +++ b/internal/api/client/exports/blocks.go @@ -20,9 +20,9 @@ package exports 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" ) // ExportBlocksGETHandler swagger:operation GET /api/v1/exports/blocks.csv exportBlocks diff --git a/internal/api/client/exports/exports.go b/internal/api/client/exports/exports.go index 90a246a74..a770e9a32 100644 --- a/internal/api/client/exports/exports.go +++ b/internal/api/client/exports/exports.go @@ -20,8 +20,8 @@ package exports 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/exports/exports_test.go b/internal/api/client/exports/exports_test.go index 6fbeb57d0..5579a8298 100644 --- a/internal/api/client/exports/exports_test.go +++ b/internal/api/client/exports/exports_test.go @@ -25,16 +25,16 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/exports" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/state" + "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/api/client/exports" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ExportsTestSuite struct { diff --git a/internal/api/client/exports/followers.go b/internal/api/client/exports/followers.go index ad6306de0..520fbef70 100644 --- a/internal/api/client/exports/followers.go +++ b/internal/api/client/exports/followers.go @@ -20,9 +20,9 @@ package exports 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" ) // ExportFollowersGETHandler swagger:operation GET /api/v1/exports/followers.csv exportFollowers diff --git a/internal/api/client/exports/following.go b/internal/api/client/exports/following.go index b95492dfa..8d6306092 100644 --- a/internal/api/client/exports/following.go +++ b/internal/api/client/exports/following.go @@ -20,9 +20,9 @@ package exports 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" ) // ExportFollowingGETHandler swagger:operation GET /api/v1/exports/following.csv exportFollowing diff --git a/internal/api/client/exports/lists.go b/internal/api/client/exports/lists.go index 385df5501..cf152bf55 100644 --- a/internal/api/client/exports/lists.go +++ b/internal/api/client/exports/lists.go @@ -20,9 +20,9 @@ package exports 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" ) // ExportListsGETHandler swagger:operation GET /api/v1/exports/lists.csv exportLists diff --git a/internal/api/client/exports/mutes.go b/internal/api/client/exports/mutes.go index 6b9d699c9..0db94db62 100644 --- a/internal/api/client/exports/mutes.go +++ b/internal/api/client/exports/mutes.go @@ -20,9 +20,9 @@ package exports 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" ) // ExportMutesGETHandler swagger:operation GET /api/v1/exports/mutes.csv exportMutes diff --git a/internal/api/client/exports/stats.go b/internal/api/client/exports/stats.go index 783826bb3..6b9436065 100644 --- a/internal/api/client/exports/stats.go +++ b/internal/api/client/exports/stats.go @@ -20,9 +20,9 @@ package exports 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" ) // ExportStatsGETHandler swagger:operation GET /api/v1/exports/stats exportStats diff --git a/internal/api/client/favourites/favourites.go b/internal/api/client/favourites/favourites.go index 6e2d39100..c72e20b98 100644 --- a/internal/api/client/favourites/favourites.go +++ b/internal/api/client/favourites/favourites.go @@ -20,8 +20,8 @@ package favourites 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/favourites/favourites_test.go b/internal/api/client/favourites/favourites_test.go index 7c65e4b97..3e65e56dc 100644 --- a/internal/api/client/favourites/favourites_test.go +++ b/internal/api/client/favourites/favourites_test.go @@ -18,20 +18,20 @@ package favourites_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/favourites" + "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/favourites" - "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 FavouritesStandardTestSuite struct { diff --git a/internal/api/client/favourites/favouritesget.go b/internal/api/client/favourites/favouritesget.go index 5396bc155..8b1f646c4 100644 --- a/internal/api/client/favourites/favouritesget.go +++ b/internal/api/client/favourites/favouritesget.go @@ -22,9 +22,9 @@ import ( "net/http" "strconv" + 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" ) // FavouritesGETHandler swagger:operation GET /api/v1/favourites favouritesGet diff --git a/internal/api/client/favourites/favouritesget_test.go b/internal/api/client/favourites/favouritesget_test.go index 85a669c87..f2695b6d0 100644 --- a/internal/api/client/favourites/favouritesget_test.go +++ b/internal/api/client/favourites/favouritesget_test.go @@ -25,12 +25,12 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/favourites" + "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/favourites" - "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FavouritesTestSuite struct { diff --git a/internal/api/client/featuredtags/featuredtags.go b/internal/api/client/featuredtags/featuredtags.go index f5961883d..3885da3f8 100644 --- a/internal/api/client/featuredtags/featuredtags.go +++ b/internal/api/client/featuredtags/featuredtags.go @@ -20,8 +20,8 @@ package featuredtags 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/featuredtags/get.go b/internal/api/client/featuredtags/get.go index cab6b19a3..7b5c68e40 100644 --- a/internal/api/client/featuredtags/get.go +++ b/internal/api/client/featuredtags/get.go @@ -20,9 +20,9 @@ package featuredtags 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" ) // FeaturedTagsGETHandler swagger:operation GET /api/v1/featured_tags getFeaturedTags diff --git a/internal/api/client/filters/v1/filter.go b/internal/api/client/filters/v1/filter.go index 9daeb75d3..af5652d7c 100644 --- a/internal/api/client/filters/v1/filter.go +++ b/internal/api/client/filters/v1/filter.go @@ -18,10 +18,11 @@ package v1 import ( - "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/processing" "net/http" + + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "github.com/gin-gonic/gin" ) const ( diff --git a/internal/api/client/filters/v1/filter_test.go b/internal/api/client/filters/v1/filter_test.go index e0bcf8731..172c41977 100644 --- a/internal/api/client/filters/v1/filter_test.go +++ b/internal/api/client/filters/v1/filter_test.go @@ -22,22 +22,22 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/admin" + filtersV1 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v1" + "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/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - filtersV1 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v1" - "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/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FiltersTestSuite struct { diff --git a/internal/api/client/filters/v1/filterdelete.go b/internal/api/client/filters/v1/filterdelete.go index e28221ca6..5283240c5 100644 --- a/internal/api/client/filters/v1/filterdelete.go +++ b/internal/api/client/filters/v1/filterdelete.go @@ -20,9 +20,9 @@ package v1 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" ) // FilterDELETEHandler swagger:operation DELETE /api/v1/filters/{id} filterV1Delete diff --git a/internal/api/client/filters/v1/filterdelete_test.go b/internal/api/client/filters/v1/filterdelete_test.go index 8d7b3d063..314da05bd 100644 --- a/internal/api/client/filters/v1/filterdelete_test.go +++ b/internal/api/client/filters/v1/filterdelete_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV1 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v1" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV1 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v1" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) deleteFilter( diff --git a/internal/api/client/filters/v1/filterget.go b/internal/api/client/filters/v1/filterget.go index 4af3dab16..704be540a 100644 --- a/internal/api/client/filters/v1/filterget.go +++ b/internal/api/client/filters/v1/filterget.go @@ -20,9 +20,9 @@ package v1 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" ) // FilterGETHandler swagger:operation GET /api/v1/filters/{id} filterV1Get diff --git a/internal/api/client/filters/v1/filterget_test.go b/internal/api/client/filters/v1/filterget_test.go index e8fdedfaa..93090c880 100644 --- a/internal/api/client/filters/v1/filterget_test.go +++ b/internal/api/client/filters/v1/filterget_test.go @@ -23,13 +23,13 @@ import ( "net/http" "net/http/httptest" - filtersV1 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v1" - 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" + filtersV1 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v1" + 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 *FiltersTestSuite) getFilter( diff --git a/internal/api/client/filters/v1/filterpost.go b/internal/api/client/filters/v1/filterpost.go index fb53b8e9b..d61ddbdb8 100644 --- a/internal/api/client/filters/v1/filterpost.go +++ b/internal/api/client/filters/v1/filterpost.go @@ -20,10 +20,10 @@ package v1 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" ) // FilterPOSTHandler swagger:operation POST /api/v1/filters filterV1Post diff --git a/internal/api/client/filters/v1/filterpost_test.go b/internal/api/client/filters/v1/filterpost_test.go index b7aecc573..a71651fa1 100644 --- a/internal/api/client/filters/v1/filterpost_test.go +++ b/internal/api/client/filters/v1/filterpost_test.go @@ -26,13 +26,13 @@ import ( "strconv" "strings" - filtersV1 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v1" - 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/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV1 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v1" + 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/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) postFilter( @@ -256,7 +256,7 @@ func (suite *FiltersTestSuite) postFilterWithExpiration(phrase *string, expiresI return filter } -// Regression test for https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPostFilterWithEmptyStringExpiration() { title := "Form Sins" expiresInStr := "" @@ -264,7 +264,7 @@ func (suite *FiltersTestSuite) TestPostFilterWithEmptyStringExpiration() { suite.Nil(filter.ExpiresAt) } -// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPostFilterWithNullExpirationJSON() { requestJson := `{ "phrase": "JSON Sins", diff --git a/internal/api/client/filters/v1/filterput.go b/internal/api/client/filters/v1/filterput.go index 051fa1f63..ab08f0d92 100644 --- a/internal/api/client/filters/v1/filterput.go +++ b/internal/api/client/filters/v1/filterput.go @@ -20,10 +20,10 @@ package v1 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" ) // FilterPUTHandler swagger:operation PUT /api/v1/filters/{id} filterV1Put diff --git a/internal/api/client/filters/v1/filterput_test.go b/internal/api/client/filters/v1/filterput_test.go index 626bd52eb..41804ad44 100644 --- a/internal/api/client/filters/v1/filterput_test.go +++ b/internal/api/client/filters/v1/filterput_test.go @@ -26,13 +26,13 @@ import ( "strconv" "strings" - filtersV1 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v1" - 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/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV1 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v1" + 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/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) putFilter( @@ -287,7 +287,7 @@ func (suite *FiltersTestSuite) setFilterExpiration(id string, phrase *string, ex return filter } -// Regression test for https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateEmptyString() { filterKeyword := suite.testFilterKeywords["local_account_1_filter_1_keyword_1"] id := filterKeyword.ID @@ -306,7 +306,7 @@ func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateEmptyString() { suite.Nil(filter.ExpiresAt) } -// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateNullJSON() { filterKeyword := suite.testFilterKeywords["local_account_1_filter_1_keyword_1"] id := filterKeyword.ID diff --git a/internal/api/client/filters/v1/filtersget.go b/internal/api/client/filters/v1/filtersget.go index d65776331..42a7c3b7e 100644 --- a/internal/api/client/filters/v1/filtersget.go +++ b/internal/api/client/filters/v1/filtersget.go @@ -20,9 +20,9 @@ package v1 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" ) // FiltersGETHandler swagger:operation GET /api/v1/filters filtersV1Get diff --git a/internal/api/client/filters/v1/filtersget_test.go b/internal/api/client/filters/v1/filtersget_test.go index 281ee4f63..bf8ed8a0b 100644 --- a/internal/api/client/filters/v1/filtersget_test.go +++ b/internal/api/client/filters/v1/filtersget_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV1 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v1" - 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" + filtersV1 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v1" + 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" ) func (suite *FiltersTestSuite) getFilters( diff --git a/internal/api/client/filters/v1/validate.go b/internal/api/client/filters/v1/validate.go index 9e31abb89..84771d6a8 100644 --- a/internal/api/client/filters/v1/validate.go +++ b/internal/api/client/filters/v1/validate.go @@ -20,10 +20,10 @@ package v1 import ( "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/validate" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/validate" ) func validateNormalizeCreateUpdateFilter(form *apimodel.FilterCreateUpdateRequestV1) error { diff --git a/internal/api/client/filters/v2/filter.go b/internal/api/client/filters/v2/filter.go index 58e7905ae..e37c2d7e3 100644 --- a/internal/api/client/filters/v2/filter.go +++ b/internal/api/client/filters/v2/filter.go @@ -20,9 +20,9 @@ package v2 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/filters/v2/filter_test.go b/internal/api/client/filters/v2/filter_test.go index af212ac88..8d09457a3 100644 --- a/internal/api/client/filters/v2/filter_test.go +++ b/internal/api/client/filters/v2/filter_test.go @@ -22,22 +22,22 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/admin" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + "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/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/admin" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - "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/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FiltersTestSuite struct { diff --git a/internal/api/client/filters/v2/filterdelete.go b/internal/api/client/filters/v2/filterdelete.go index 2fd411e98..4ede393de 100644 --- a/internal/api/client/filters/v2/filterdelete.go +++ b/internal/api/client/filters/v2/filterdelete.go @@ -20,9 +20,9 @@ package v2 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" ) // FilterDELETEHandler swagger:operation DELETE /api/v2/filters/{id} filterV2Delete diff --git a/internal/api/client/filters/v2/filterdelete_test.go b/internal/api/client/filters/v2/filterdelete_test.go index 6ef2f00c9..b2d6ae6de 100644 --- a/internal/api/client/filters/v2/filterdelete_test.go +++ b/internal/api/client/filters/v2/filterdelete_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) deleteFilter( diff --git a/internal/api/client/filters/v2/filterget.go b/internal/api/client/filters/v2/filterget.go index eed65f39a..21ac6a2ca 100644 --- a/internal/api/client/filters/v2/filterget.go +++ b/internal/api/client/filters/v2/filterget.go @@ -20,9 +20,9 @@ package v2 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" ) // FilterGETHandler swagger:operation GET /api/v2/filters/{id} filterV2Get diff --git a/internal/api/client/filters/v2/filterget_test.go b/internal/api/client/filters/v2/filterget_test.go index 256732132..48d90cae2 100644 --- a/internal/api/client/filters/v2/filterget_test.go +++ b/internal/api/client/filters/v2/filterget_test.go @@ -23,13 +23,13 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) getFilter( diff --git a/internal/api/client/filters/v2/filterkeyworddelete.go b/internal/api/client/filters/v2/filterkeyworddelete.go index 4dc8b5973..63c235d16 100644 --- a/internal/api/client/filters/v2/filterkeyworddelete.go +++ b/internal/api/client/filters/v2/filterkeyworddelete.go @@ -20,9 +20,9 @@ package v2 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" ) // FilterKeywordDELETEHandler swagger:operation DELETE /api/v2/filters/keywords/{id} filterKeywordDelete diff --git a/internal/api/client/filters/v2/filterkeyworddelete_test.go b/internal/api/client/filters/v2/filterkeyworddelete_test.go index 6f5f07ef4..1b9325c6a 100644 --- a/internal/api/client/filters/v2/filterkeyworddelete_test.go +++ b/internal/api/client/filters/v2/filterkeyworddelete_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) deleteFilterKeyword( diff --git a/internal/api/client/filters/v2/filterkeywordget.go b/internal/api/client/filters/v2/filterkeywordget.go index f298d1af0..e8e4dec0c 100644 --- a/internal/api/client/filters/v2/filterkeywordget.go +++ b/internal/api/client/filters/v2/filterkeywordget.go @@ -20,9 +20,9 @@ package v2 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" ) // FilterKeywordGETHandler swagger:operation GET /api/v2/filters/keywords/{id} filterKeywordGet diff --git a/internal/api/client/filters/v2/filterkeywordget_test.go b/internal/api/client/filters/v2/filterkeywordget_test.go index 13e90c0c2..25167700d 100644 --- a/internal/api/client/filters/v2/filterkeywordget_test.go +++ b/internal/api/client/filters/v2/filterkeywordget_test.go @@ -23,13 +23,13 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) getFilterKeyword( diff --git a/internal/api/client/filters/v2/filterkeywordpost.go b/internal/api/client/filters/v2/filterkeywordpost.go index f7ccc1a80..1068f78f8 100644 --- a/internal/api/client/filters/v2/filterkeywordpost.go +++ b/internal/api/client/filters/v2/filterkeywordpost.go @@ -20,12 +20,12 @@ package v2 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" + "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/util" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // FilterKeywordPOSTHandler swagger:operation POST /api/v2/filters/{id}/keywords filterKeywordPost diff --git a/internal/api/client/filters/v2/filterkeywordpost_test.go b/internal/api/client/filters/v2/filterkeywordpost_test.go index 179cd610a..ce7087b0b 100644 --- a/internal/api/client/filters/v2/filterkeywordpost_test.go +++ b/internal/api/client/filters/v2/filterkeywordpost_test.go @@ -26,13 +26,13 @@ import ( "strconv" "strings" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) postFilterKeyword( diff --git a/internal/api/client/filters/v2/filterkeywordput.go b/internal/api/client/filters/v2/filterkeywordput.go index 5f9fa3c9e..dae3a0042 100644 --- a/internal/api/client/filters/v2/filterkeywordput.go +++ b/internal/api/client/filters/v2/filterkeywordput.go @@ -20,10 +20,10 @@ package v2 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" ) // FilterKeywordPUTHandler swagger:operation PUT /api/v2/filters/keywords{id} filterKeywordPut diff --git a/internal/api/client/filters/v2/filterkeywordput_test.go b/internal/api/client/filters/v2/filterkeywordput_test.go index c90d2e1f6..e98dd899d 100644 --- a/internal/api/client/filters/v2/filterkeywordput_test.go +++ b/internal/api/client/filters/v2/filterkeywordput_test.go @@ -26,13 +26,13 @@ import ( "strconv" "strings" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) putFilterKeyword( diff --git a/internal/api/client/filters/v2/filterkeywordsget.go b/internal/api/client/filters/v2/filterkeywordsget.go index 2fa3140a9..3bfe81bc6 100644 --- a/internal/api/client/filters/v2/filterkeywordsget.go +++ b/internal/api/client/filters/v2/filterkeywordsget.go @@ -20,9 +20,9 @@ package v2 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" ) // FilterKeywordsGETHandler swagger:operation GET /api/v2/filters/{id}/keywords filterKeywordsGet diff --git a/internal/api/client/filters/v2/filterkeywordsget_test.go b/internal/api/client/filters/v2/filterkeywordsget_test.go index 0b0b69e03..a67e5be10 100644 --- a/internal/api/client/filters/v2/filterkeywordsget_test.go +++ b/internal/api/client/filters/v2/filterkeywordsget_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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" ) func (suite *FiltersTestSuite) getFilterKeywords( diff --git a/internal/api/client/filters/v2/filterpost.go b/internal/api/client/filters/v2/filterpost.go index b35938692..c2473557a 100644 --- a/internal/api/client/filters/v2/filterpost.go +++ b/internal/api/client/filters/v2/filterpost.go @@ -20,12 +20,12 @@ package v2 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" + "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/util" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // FilterPOSTHandler swagger:operation POST /api/v2/filters filterV2Post diff --git a/internal/api/client/filters/v2/filterpost_test.go b/internal/api/client/filters/v2/filterpost_test.go index 7a79f4665..81df6487f 100644 --- a/internal/api/client/filters/v2/filterpost_test.go +++ b/internal/api/client/filters/v2/filterpost_test.go @@ -27,13 +27,13 @@ import ( "strconv" "strings" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) postFilter(title *string, context *[]string, action *string, expiresIn *int, expiresInStr *string, keywordsAttributesWholeWord *[]bool, statusesAttributesStatusID *[]string, requestJson *string, expectedHTTPStatus int, expectedBody string, keywordsAttributesKeyword *[]string) (*apimodel.FilterV2, error) { @@ -319,7 +319,7 @@ func (suite *FiltersTestSuite) postFilterWithExpiration(title *string, expiresIn return filter } -// Regression test for https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPostFilterWithEmptyStringExpiration() { title := "Form Crimes" expiresInStr := "" @@ -327,7 +327,7 @@ func (suite *FiltersTestSuite) TestPostFilterWithEmptyStringExpiration() { suite.Nil(filter.ExpiresAt) } -// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPostFilterWithNullExpirationJSON() { requestJson := `{ "title": "JSON Crimes", diff --git a/internal/api/client/filters/v2/filterput.go b/internal/api/client/filters/v2/filterput.go index b4b14e6c3..689c47e5b 100644 --- a/internal/api/client/filters/v2/filterput.go +++ b/internal/api/client/filters/v2/filterput.go @@ -21,12 +21,12 @@ 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" + "code.superseriousbusiness.org/gotosocial/internal/util" + "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/util" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) // FilterPUTHandler swagger:operation PUT /api/v2/filters/{id} filterV2Put diff --git a/internal/api/client/filters/v2/filterput_test.go b/internal/api/client/filters/v2/filterput_test.go index afa858ba9..4fd1d26ee 100644 --- a/internal/api/client/filters/v2/filterput_test.go +++ b/internal/api/client/filters/v2/filterput_test.go @@ -27,13 +27,13 @@ import ( "strconv" "strings" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) putFilter(filterID string, title *string, context *[]string, action *string, expiresIn *int, expiresInStr *string, keywordsAttributesKeyword *[]string, keywordsAttributesWholeWord *[]bool, keywordsAttributesDestroy *[]bool, statusesAttributesID *[]string, statusesAttributesStatusID *[]string, statusesAttributesDestroy *[]bool, requestJson *string, expectedHTTPStatus int, expectedBody string, keywordsAttributesID *[]string) (*apimodel.FilterV2, error) { @@ -359,7 +359,7 @@ func (suite *FiltersTestSuite) setFilterExpiration(id string, expiresIn *int, ex return filter } -// Regression test for https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateEmptyString() { id := suite.testFilters["local_account_1_filter_2"].ID @@ -376,7 +376,7 @@ func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateEmptyString() { suite.Nil(filter.ExpiresAt) } -// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateNullJSON() { id := suite.testFilters["local_account_1_filter_3"].ID @@ -395,7 +395,7 @@ func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateNullJSON() { suite.Nil(filter.ExpiresAt) } -// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497 +// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497 func (suite *FiltersTestSuite) TestPutFilterUnalteredExpirationDateJSON() { id := suite.testFilters["local_account_1_filter_4"].ID diff --git a/internal/api/client/filters/v2/filtersget.go b/internal/api/client/filters/v2/filtersget.go index f304ffea5..94e1db03b 100644 --- a/internal/api/client/filters/v2/filtersget.go +++ b/internal/api/client/filters/v2/filtersget.go @@ -20,9 +20,9 @@ package v2 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" ) // FiltersGETHandler swagger:operation GET /api/v2/filters filtersV2Get diff --git a/internal/api/client/filters/v2/filtersget_test.go b/internal/api/client/filters/v2/filtersget_test.go index b77df42a6..76802d83a 100644 --- a/internal/api/client/filters/v2/filtersget_test.go +++ b/internal/api/client/filters/v2/filtersget_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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" ) func (suite *FiltersTestSuite) getFilters( diff --git a/internal/api/client/filters/v2/filterstatusdelete.go b/internal/api/client/filters/v2/filterstatusdelete.go index 2adc48190..8522fde06 100644 --- a/internal/api/client/filters/v2/filterstatusdelete.go +++ b/internal/api/client/filters/v2/filterstatusdelete.go @@ -20,9 +20,9 @@ package v2 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" ) // FilterStatusDELETEHandler swagger:operation DELETE /api/v2/filters/statuses/{id} filterStatusDelete diff --git a/internal/api/client/filters/v2/filterstatusdelete_test.go b/internal/api/client/filters/v2/filterstatusdelete_test.go index fd2a5cbdb..017b2739b 100644 --- a/internal/api/client/filters/v2/filterstatusdelete_test.go +++ b/internal/api/client/filters/v2/filterstatusdelete_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) deleteFilterStatus( diff --git a/internal/api/client/filters/v2/filterstatusesget.go b/internal/api/client/filters/v2/filterstatusesget.go index ae76e814f..31616bd36 100644 --- a/internal/api/client/filters/v2/filterstatusesget.go +++ b/internal/api/client/filters/v2/filterstatusesget.go @@ -20,9 +20,9 @@ package v2 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" ) // FilterStatusesGETHandler swagger:operation GET /api/v2/filters/{id}/statuses filterStatusesGet diff --git a/internal/api/client/filters/v2/filterstatusesget_test.go b/internal/api/client/filters/v2/filterstatusesget_test.go index 6b8262f26..ba728e2bc 100644 --- a/internal/api/client/filters/v2/filterstatusesget_test.go +++ b/internal/api/client/filters/v2/filterstatusesget_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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" ) func (suite *FiltersTestSuite) getFilterStatuses( diff --git a/internal/api/client/filters/v2/filterstatusget.go b/internal/api/client/filters/v2/filterstatusget.go index efe20f0c2..3add79c26 100644 --- a/internal/api/client/filters/v2/filterstatusget.go +++ b/internal/api/client/filters/v2/filterstatusget.go @@ -20,9 +20,9 @@ package v2 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" ) // FilterStatusGETHandler swagger:operation GET /api/v2/filters/statuses/{id} filterStatusGet diff --git a/internal/api/client/filters/v2/filterstatusget_test.go b/internal/api/client/filters/v2/filterstatusget_test.go index 5df3971a8..d7c27eed2 100644 --- a/internal/api/client/filters/v2/filterstatusget_test.go +++ b/internal/api/client/filters/v2/filterstatusget_test.go @@ -23,12 +23,12 @@ import ( "net/http" "net/http/httptest" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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" ) func (suite *FiltersTestSuite) getFilterStatus( diff --git a/internal/api/client/filters/v2/filterstatuspost.go b/internal/api/client/filters/v2/filterstatuspost.go index c6921e584..b7b6019ac 100644 --- a/internal/api/client/filters/v2/filterstatuspost.go +++ b/internal/api/client/filters/v2/filterstatuspost.go @@ -20,11 +20,11 @@ package v2 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" ) // FilterStatusPOSTHandler swagger:operation POST /api/v2/filters/{id}/statuses filterStatusPost diff --git a/internal/api/client/filters/v2/filterstatuspost_test.go b/internal/api/client/filters/v2/filterstatuspost_test.go index da068e14a..d6a960372 100644 --- a/internal/api/client/filters/v2/filterstatuspost_test.go +++ b/internal/api/client/filters/v2/filterstatuspost_test.go @@ -25,13 +25,13 @@ import ( "net/url" "strings" - filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" - 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/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" + filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" + 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/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" ) func (suite *FiltersTestSuite) postFilterStatus( diff --git a/internal/api/client/followedtags/followedtags.go b/internal/api/client/followedtags/followedtags.go index 27fca918d..056e8abfa 100644 --- a/internal/api/client/followedtags/followedtags.go +++ b/internal/api/client/followedtags/followedtags.go @@ -20,8 +20,8 @@ package followedtags 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/followedtags/followedtags_test.go b/internal/api/client/followedtags/followedtags_test.go index e7c83ca68..c1de03c3f 100644 --- a/internal/api/client/followedtags/followedtags_test.go +++ b/internal/api/client/followedtags/followedtags_test.go @@ -20,19 +20,19 @@ package followedtags_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/followedtags" + "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/admin" - "github.com/superseriousbusiness/gotosocial/internal/api/client/followedtags" - "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 FollowedTagsTestSuite struct { diff --git a/internal/api/client/followedtags/get.go b/internal/api/client/followedtags/get.go index f1fa45b07..5cd7e91fb 100644 --- a/internal/api/client/followedtags/get.go +++ b/internal/api/client/followedtags/get.go @@ -20,10 +20,10 @@ package followedtags 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" ) // FollowedTagsGETHandler swagger:operation GET /api/v1/followed_tags getFollowedTags diff --git a/internal/api/client/followedtags/get_test.go b/internal/api/client/followedtags/get_test.go index bd82c7037..41a8b43d8 100644 --- a/internal/api/client/followedtags/get_test.go +++ b/internal/api/client/followedtags/get_test.go @@ -24,12 +24,12 @@ import ( "net/http" "net/http/httptest" - "github.com/superseriousbusiness/gotosocial/internal/api/client/followedtags" - 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" + "code.superseriousbusiness.org/gotosocial/internal/api/client/followedtags" + 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" ) func (suite *FollowedTagsTestSuite) getFollowedTags( diff --git a/internal/api/client/followrequests/authorize.go b/internal/api/client/followrequests/authorize.go index cc7b5598c..bcaad9be6 100644 --- a/internal/api/client/followrequests/authorize.go +++ b/internal/api/client/followrequests/authorize.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" ) // FollowRequestAuthorizePOSTHandler swagger:operation POST /api/v1/follow_requests/{account_id}/authorize authorizeFollowRequest diff --git a/internal/api/client/followrequests/authorize_test.go b/internal/api/client/followrequests/authorize_test.go index 4c0617958..712263e86 100644 --- a/internal/api/client/followrequests/authorize_test.go +++ b/internal/api/client/followrequests/authorize_test.go @@ -28,10 +28,10 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/client/followrequests" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/followrequests" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type AuthorizeTestSuite struct { diff --git a/internal/api/client/followrequests/followrequest.go b/internal/api/client/followrequests/followrequest.go index c2d72b476..4d4f0837a 100644 --- a/internal/api/client/followrequests/followrequest.go +++ b/internal/api/client/followrequests/followrequest.go @@ -20,8 +20,8 @@ package followrequests 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/followrequests/followrequest_test.go b/internal/api/client/followrequests/followrequest_test.go index fbaf9a560..74fa30cdb 100644 --- a/internal/api/client/followrequests/followrequest_test.go +++ b/internal/api/client/followrequests/followrequest_test.go @@ -22,23 +22,23 @@ import ( "fmt" "net/http/httptest" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/followrequests" + "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/followrequests" - "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 FollowRequestStandardTestSuite struct { diff --git a/internal/api/client/followrequests/get.go b/internal/api/client/followrequests/get.go index 4b7760a6d..a55ea3ab2 100644 --- a/internal/api/client/followrequests/get.go +++ b/internal/api/client/followrequests/get.go @@ -20,10 +20,10 @@ package followrequests 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" ) // FollowRequestGETHandler swagger:operation GET /api/v1/follow_requests getFollowRequests diff --git a/internal/api/client/followrequests/get_test.go b/internal/api/client/followrequests/get_test.go index bf16a509e..ad0fc839d 100644 --- a/internal/api/client/followrequests/get_test.go +++ b/internal/api/client/followrequests/get_test.go @@ -31,10 +31,10 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/tomnomnom/linkheader" ) diff --git a/internal/api/client/followrequests/reject.go b/internal/api/client/followrequests/reject.go index 4207925db..d60a1af08 100644 --- a/internal/api/client/followrequests/reject.go +++ b/internal/api/client/followrequests/reject.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" ) // FollowRequestRejectPOSTHandler swagger:operation POST /api/v1/follow_requests/{account_id}/reject rejectFollowRequest diff --git a/internal/api/client/followrequests/reject_test.go b/internal/api/client/followrequests/reject_test.go index e6837066c..3d5f93286 100644 --- a/internal/api/client/followrequests/reject_test.go +++ b/internal/api/client/followrequests/reject_test.go @@ -28,10 +28,10 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/client/followrequests" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/followrequests" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type RejectTestSuite struct { diff --git a/internal/api/client/import/import.go b/internal/api/client/import/import.go index 8e2dde0c9..ebd4f64ad 100644 --- a/internal/api/client/import/import.go +++ b/internal/api/client/import/import.go @@ -26,10 +26,10 @@ import ( "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/processing" + 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/processing" ) const ( diff --git a/internal/api/client/import/import_test.go b/internal/api/client/import/import_test.go index 1edb54b64..8b1e17282 100644 --- a/internal/api/client/import/import_test.go +++ b/internal/api/client/import/import_test.go @@ -27,13 +27,13 @@ import ( "github.com/stretchr/testify/suite" - importdata "github.com/superseriousbusiness/gotosocial/internal/api/client/import" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" + importdata "code.superseriousbusiness.org/gotosocial/internal/api/client/import" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" ) type ImportTestSuite struct { diff --git a/internal/api/client/instance/instance.go b/internal/api/client/instance/instance.go index 82f6a4714..cd6c438c8 100644 --- a/internal/api/client/instance/instance.go +++ b/internal/api/client/instance/instance.go @@ -20,8 +20,8 @@ package instance 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/instance/instance_test.go b/internal/api/client/instance/instance_test.go index 965d09609..7ad6469db 100644 --- a/internal/api/client/instance/instance_test.go +++ b/internal/api/client/instance/instance_test.go @@ -22,23 +22,23 @@ import ( "fmt" "net/http/httptest" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/api/client/instance" + "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/instance" - "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 InstanceStandardTestSuite struct { diff --git a/internal/api/client/instance/instanceget.go b/internal/api/client/instance/instanceget.go index 3ca69d93b..4740fe1e8 100644 --- a/internal/api/client/instance/instanceget.go +++ b/internal/api/client/instance/instanceget.go @@ -20,10 +20,10 @@ package instance import ( "net/http" - 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" + 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" ) diff --git a/internal/api/client/instance/instancepatch.go b/internal/api/client/instance/instancepatch.go index 67856100d..b81f14298 100644 --- a/internal/api/client/instance/instancepatch.go +++ b/internal/api/client/instance/instancepatch.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" ) // InstanceUpdatePATCHHandler swagger:operation PATCH /api/v1/instance instanceUpdate diff --git a/internal/api/client/instance/instancepatch_test.go b/internal/api/client/instance/instancepatch_test.go index b0ce795f0..5b2b71d37 100644 --- a/internal/api/client/instance/instancepatch_test.go +++ b/internal/api/client/instance/instancepatch_test.go @@ -26,11 +26,11 @@ import ( "net/http/httptest" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/client/instance" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/client/instance" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/testrig" ) type InstancePatchTestSuite struct { @@ -85,8 +85,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch1() { "uri": "localhost:8080", "account_domain": "localhost:8080", "title": "Example 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.

", - "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", + "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://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.

", + "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", "short_description": "

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.

", - "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", + "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://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.

", + "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", "short_description": "

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.

", - "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", + "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://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.

", + "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", "short_description": "

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.

", - "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", + "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://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.

", + "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", "short_description": "

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.

", - "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", + "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://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.

", + "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", "short_description": "

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.

", - "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", + "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://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.

", + "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", "short_description": "

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, see . + +package federatingdb_test + +import ( + "context" + "encoding/json" + "testing" + "time" + + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "github.com/stretchr/testify/suite" +) + +type UpdateTestSuite struct { + FederatingDBTestSuite +} + +func (suite *UpdateTestSuite) TestUpdateNewMention() { + var ( + ctx = context.Background() + update = suite.testActivities["remote_account_2_status_1_update"] + receivingAcct = suite.testAccounts["local_account_1"] + requestingAcct = suite.testAccounts["remote_account_2"] + ) + + ctx = gtscontext.SetReceivingAccount(ctx, receivingAcct) + ctx = gtscontext.SetRequestingAccount(ctx, requestingAcct) + + m, err := ap.Serialize(update.Activity) + if err != nil { + suite.FailNow(err.Error()) + } + + b, err := json.MarshalIndent(&m, "", " ") + if err != nil { + suite.FailNow(err.Error()) + } + + suite.T().Logf("Update:\n%s\n", string(b)) + + note := update.Activity.GetActivityStreamsObject().At(0).GetActivityStreamsNote() + if err := suite.federatingDB.Update(ctx, note); err != nil { + suite.FailNow(err.Error()) + } + + // Should be a message heading to the processor. + msg, ok := suite.getFederatorMsg(5 * time.Second) + if !ok { + suite.FailNow("no federator message after 5s") + } + + suite.Equal(ap.ObjectNote, msg.APObjectType) + suite.Equal(ap.ActivityUpdate, msg.APActivityType) + suite.NotNil(msg.APObject) +} + +func TestUpdateTestSuite(t *testing.T) { + suite.Run(t, new(UpdateTestSuite)) +} diff --git a/internal/federation/federatingdb/util.go b/internal/federation/federatingdb/util.go index 6d5334076..32aec51a5 100644 --- a/internal/federation/federatingdb/util.go +++ b/internal/federation/federatingdb/util.go @@ -23,16 +23,16 @@ import ( "fmt" "net/url" + "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/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" "codeberg.org/gruf/go-byteutil" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/uris" ) func typeNames(objects []ap.TypeOrIRI) []string { diff --git a/internal/federation/federatingprotocol.go b/internal/federation/federatingprotocol.go index d31d01d42..60ee48eaa 100644 --- a/internal/federation/federatingprotocol.go +++ b/internal/federation/federatingprotocol.go @@ -24,18 +24,18 @@ import ( "net/url" "strings" + "code.superseriousbusiness.org/activity/pub" + "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/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "codeberg.org/gruf/go-kv" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "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/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" ) type errOtherIRIBlocked struct { diff --git a/internal/federation/federatingprotocol_test.go b/internal/federation/federatingprotocol_test.go index 7307ec6cc..fa4950d82 100644 --- a/internal/federation/federatingprotocol_test.go +++ b/internal/federation/federatingprotocol_test.go @@ -27,14 +27,14 @@ import ( "net/url" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/testrig" + "code.superseriousbusiness.org/httpsig" errorsv2 "codeberg.org/gruf/go-errors/v2" - "codeberg.org/superseriousbusiness/httpsig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FederatingProtocolTestSuite struct { diff --git a/internal/federation/federator.go b/internal/federation/federator.go index 3fd64b2ad..93df31735 100644 --- a/internal/federation/federator.go +++ b/internal/federation/federator.go @@ -18,16 +18,16 @@ package federation import ( - "codeberg.org/superseriousbusiness/activity/pub" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" - "github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb" - "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" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/dereferencing" + "code.superseriousbusiness.org/gotosocial/internal/federation/federatingdb" + "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" ) var _ interface { diff --git a/internal/federation/federator_test.go b/internal/federation/federator_test.go index a4f8c4683..2dd73fad1 100644 --- a/internal/federation/federator_test.go +++ b/internal/federation/federator_test.go @@ -22,14 +22,14 @@ import ( "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "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" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "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" ) type FederatorStandardTestSuite struct { diff --git a/internal/federation/gone.go b/internal/federation/gone.go index e0278765c..932bd17a1 100644 --- a/internal/federation/gone.go +++ b/internal/federation/gone.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" ) // CheckGone checks if a tombstone exists in the database for AP Actor or Object with the given uri. diff --git a/internal/federation/transport.go b/internal/federation/transport.go index 90cd4bbff..040e7364d 100644 --- a/internal/federation/transport.go +++ b/internal/federation/transport.go @@ -22,8 +22,8 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/pub" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // NewTransport returns a new Transport on behalf of a specific actor. diff --git a/internal/filter/interaction/filter.go b/internal/filter/interaction/filter.go index 49e0758c1..e2dffce82 100644 --- a/internal/filter/interaction/filter.go +++ b/internal/filter/interaction/filter.go @@ -18,7 +18,7 @@ package interaction import ( - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/state" ) // Filter packages up logic for checking whether diff --git a/internal/filter/interaction/interactable.go b/internal/filter/interaction/interactable.go index 4d0882068..e8afbd83c 100644 --- a/internal/filter/interaction/interactable.go +++ b/internal/filter/interaction/interactable.go @@ -22,11 +22,11 @@ import ( "fmt" "slices" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "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/log" + "code.superseriousbusiness.org/gotosocial/internal/util" ) type matchType int diff --git a/internal/filter/spam/spam.go b/internal/filter/spam/spam.go index 386c2719b..00767dacc 100644 --- a/internal/filter/spam/spam.go +++ b/internal/filter/spam/spam.go @@ -17,7 +17,7 @@ package spam -import "github.com/superseriousbusiness/gotosocial/internal/state" +import "code.superseriousbusiness.org/gotosocial/internal/state" // Filter packages logic for checking whether // given statuses should be considered spam. diff --git a/internal/filter/spam/spam_test.go b/internal/filter/spam/spam_test.go index d9d867a07..84ab34b1d 100644 --- a/internal/filter/spam/spam_test.go +++ b/internal/filter/spam/spam_test.go @@ -18,12 +18,12 @@ package spam_test import ( + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/filter/spam" + "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/db" - "github.com/superseriousbusiness/gotosocial/internal/filter/spam" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FilterStandardTestSuite struct { diff --git a/internal/filter/spam/statusable.go b/internal/filter/spam/statusable.go index 3e9e51697..802accc31 100644 --- a/internal/filter/spam/statusable.go +++ b/internal/filter/spam/statusable.go @@ -24,16 +24,16 @@ import ( "slices" "strings" + "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/gotosocial/internal/regexes" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/miekg/dns" - "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" - "github.com/superseriousbusiness/gotosocial/internal/regexes" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // preppedMention represents a partially-parsed diff --git a/internal/filter/spam/statusable_test.go b/internal/filter/spam/statusable_test.go index f59f09328..7d710416f 100644 --- a/internal/filter/spam/statusable_test.go +++ b/internal/filter/spam/statusable_test.go @@ -23,11 +23,11 @@ import ( "io" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" ) type StatusableTestSuite struct { diff --git a/internal/filter/usermute/usermute.go b/internal/filter/usermute/usermute.go index 6d710e995..d8d1aae46 100644 --- a/internal/filter/usermute/usermute.go +++ b/internal/filter/usermute/usermute.go @@ -20,8 +20,8 @@ package usermute import ( "time" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type compiledUserMuteListEntry struct { diff --git a/internal/filter/visibility/account.go b/internal/filter/visibility/account.go index ebbbe4a2f..f13de723d 100644 --- a/internal/filter/visibility/account.go +++ b/internal/filter/visibility/account.go @@ -20,11 +20,11 @@ package visibility import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/cache" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/cache" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // AccountVisible will check if given account is visible to requester, accounting for requester with no auth (i.e is nil), suspensions, disabled local users and account blocks. diff --git a/internal/filter/visibility/filter.go b/internal/filter/visibility/filter.go index 43f862681..b17127aa3 100644 --- a/internal/filter/visibility/filter.go +++ b/internal/filter/visibility/filter.go @@ -18,7 +18,7 @@ package visibility import ( - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/state" ) // NoAuth is a placeholder ID used in cache lookups diff --git a/internal/filter/visibility/filter_test.go b/internal/filter/visibility/filter_test.go index ccd60f173..48b1df2e5 100644 --- a/internal/filter/visibility/filter_test.go +++ b/internal/filter/visibility/filter_test.go @@ -18,12 +18,12 @@ package visibility_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/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/testrig" ) type FilterStandardTestSuite struct { diff --git a/internal/filter/visibility/home_timeline.go b/internal/filter/visibility/home_timeline.go index 37348e71d..03a3b62c3 100644 --- a/internal/filter/visibility/home_timeline.go +++ b/internal/filter/visibility/home_timeline.go @@ -22,12 +22,12 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/cache" - "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" + "code.superseriousbusiness.org/gotosocial/internal/cache" + "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" ) // StatusHomeTimelineable checks if given status should be included on owner's home timeline. Primarily relying on status visibility to owner and the AP visibility setting, but also taking into account thread replies etc. diff --git a/internal/filter/visibility/home_timeline_test.go b/internal/filter/visibility/home_timeline_test.go index f33ad3999..a152a64bc 100644 --- a/internal/filter/visibility/home_timeline_test.go +++ b/internal/filter/visibility/home_timeline_test.go @@ -22,11 +22,11 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "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/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StatusStatusHomeTimelineableTestSuite struct { @@ -183,7 +183,7 @@ func (suite *StatusStatusHomeTimelineableTestSuite) TestChainReplyFollowersOnly( // THEN, local_account_1 replies to their own reply. None of these statuses should appear to // local_account_2 since they don't follow the original parent. // - // See: https://github.com/superseriousbusiness/gotosocial/issues/501 + // See: https://codeberg.org/superseriousbusiness/gotosocial/issues/501 originalStatusParent := suite.testAccounts["remote_account_1"] replyingAccount := suite.testAccounts["local_account_1"] diff --git a/internal/filter/visibility/public_timeline.go b/internal/filter/visibility/public_timeline.go index 9cc3c2357..83c250dee 100644 --- a/internal/filter/visibility/public_timeline.go +++ b/internal/filter/visibility/public_timeline.go @@ -21,11 +21,11 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/cache" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/cache" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // StatusHomeTimelineable checks if given status should be included on requester's public timeline. Primarily relying on status visibility to requester and the AP visibility setting, and ignoring conversation threads. diff --git a/internal/filter/visibility/status.go b/internal/filter/visibility/status.go index a0f971464..6edb32ec0 100644 --- a/internal/filter/visibility/status.go +++ b/internal/filter/visibility/status.go @@ -21,11 +21,11 @@ import ( "context" "slices" - "github.com/superseriousbusiness/gotosocial/internal/cache" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/cache" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // StatusesVisible calls StatusVisible for each status in the statuses slice, and returns a slice of only statuses which are visible to the requester. diff --git a/internal/filter/visibility/status_test.go b/internal/filter/visibility/status_test.go index 795441e7f..d7442089c 100644 --- a/internal/filter/visibility/status_test.go +++ b/internal/filter/visibility/status_test.go @@ -21,9 +21,9 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type StatusVisibleTestSuite struct { diff --git a/internal/filter/visibility/tag_timeline.go b/internal/filter/visibility/tag_timeline.go index b2c9dbf29..0d0860e36 100644 --- a/internal/filter/visibility/tag_timeline.go +++ b/internal/filter/visibility/tag_timeline.go @@ -21,8 +21,8 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // StatusHomeTimelineable checks if given status should be included diff --git a/internal/gtscontext/context.go b/internal/gtscontext/context.go index b0dd4788c..39d7efe95 100644 --- a/internal/gtscontext/context.go +++ b/internal/gtscontext/context.go @@ -22,8 +22,8 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/httpsig" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/httpsig" ) // package private context key type. diff --git a/internal/gtscontext/log_hooks.go b/internal/gtscontext/log_hooks.go index 494ce1f63..3e8b166ff 100644 --- a/internal/gtscontext/log_hooks.go +++ b/internal/gtscontext/log_hooks.go @@ -20,8 +20,8 @@ package gtscontext import ( "context" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/log" ) func init() { diff --git a/internal/gtserror/multi_test.go b/internal/gtserror/multi_test.go index b58c1b881..a2996222b 100644 --- a/internal/gtserror/multi_test.go +++ b/internal/gtserror/multi_test.go @@ -21,8 +21,8 @@ import ( "errors" "testing" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) func TestMultiError(t *testing.T) { diff --git a/internal/gtserror/new_test.go b/internal/gtserror/new_test.go index 8b4dae1ba..9b30b5809 100644 --- a/internal/gtserror/new_test.go +++ b/internal/gtserror/new_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" ) func TestResponseError(t *testing.T) { diff --git a/internal/gtsmodel/account.go b/internal/gtsmodel/account.go index c2ab1c9a4..664f1f66a 100644 --- a/internal/gtsmodel/account.go +++ b/internal/gtsmodel/account.go @@ -27,8 +27,8 @@ import ( "strings" "time" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // Account represents either a local or a remote ActivityPub actor. diff --git a/internal/gtsmodel/conversation.go b/internal/gtsmodel/conversation.go index d3bdcbf1d..56a999686 100644 --- a/internal/gtsmodel/conversation.go +++ b/internal/gtsmodel/conversation.go @@ -22,7 +22,7 @@ import ( "strings" "time" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" ) // Conversation represents direct messages between the owner account and a set of other accounts. diff --git a/internal/gtsmodel/domainpermissionexclude.go b/internal/gtsmodel/domainpermissionexclude.go index 10492a5c1..6ce549f52 100644 --- a/internal/gtsmodel/domainpermissionexclude.go +++ b/internal/gtsmodel/domainpermissionexclude.go @@ -20,7 +20,7 @@ package gtsmodel import ( "time" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // DomainPermissionExclude represents one domain that should be excluded diff --git a/internal/gtsmodel/filter.go b/internal/gtsmodel/filter.go index 593918ec1..36ebc8391 100644 --- a/internal/gtsmodel/filter.go +++ b/internal/gtsmodel/filter.go @@ -21,7 +21,7 @@ import ( "regexp" "time" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // Filter stores a filter created by a local account. diff --git a/internal/gtsmodel/mention.go b/internal/gtsmodel/mention.go index 180193f0f..85b59899d 100644 --- a/internal/gtsmodel/mention.go +++ b/internal/gtsmodel/mention.go @@ -49,6 +49,12 @@ type Mention struct { // This will not be put in the database, it's just for convenience. NameString string `bun:"-"` + // IsNew indicates whether this mention is "new" in the sense + // that it has not previously been inserted into the database. + // + // This will not be put in the database, it's just for convenience. + IsNew bool `bun:"-"` + // TargetAccountURI is the AP ID (uri) of the user mentioned. // // This will not be put in the database, it's just for convenience. diff --git a/internal/gtsmodel/status.go b/internal/gtsmodel/status.go index 62458c2db..eca50416e 100644 --- a/internal/gtsmodel/status.go +++ b/internal/gtsmodel/status.go @@ -21,8 +21,8 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" ) // Status represents a user-created 'post' or 'status' in the database, either remote or local @@ -210,6 +210,16 @@ func (s *Status) GetMentionByTargetURI(uri string) (*Mention, bool) { return nil, false } +// GetMentionByTargetID searches status for Mention{} with target ID. +func (s *Status) GetMentionByTargetID(id string) (*Mention, bool) { + for _, mention := range s.Mentions { + if mention.TargetAccountID == id { + return mention, true + } + } + return nil, false +} + // GetMentionByUsernameDomain fetches the Mention associated with given // username and domains, typically extracted from a mention Namestring. func (s *Status) GetMentionByUsernameDomain(username, domain string) (*Mention, bool) { diff --git a/internal/httpclient/client.go b/internal/httpclient/client.go index 445c6a9e5..bc93205d3 100644 --- a/internal/httpclient/client.go +++ b/internal/httpclient/client.go @@ -31,12 +31,12 @@ import ( "strings" "time" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-cache/v3" errorsv2 "codeberg.org/gruf/go-errors/v2" "codeberg.org/gruf/go-iotools" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) var ( diff --git a/internal/httpclient/client_test.go b/internal/httpclient/client_test.go index 2e36a6e90..e94644da8 100644 --- a/internal/httpclient/client_test.go +++ b/internal/httpclient/client_test.go @@ -26,7 +26,7 @@ import ( "net/netip" "testing" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" ) var privateIPs = []string{ diff --git a/internal/httpclient/request.go b/internal/httpclient/request.go index 853563945..39b0b253c 100644 --- a/internal/httpclient/request.go +++ b/internal/httpclient/request.go @@ -22,7 +22,7 @@ import ( "strconv" "time" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" ) const ( diff --git a/internal/httpclient/sanitizer_test.go b/internal/httpclient/sanitizer_test.go index 1cb8a7d2e..1c292b779 100644 --- a/internal/httpclient/sanitizer_test.go +++ b/internal/httpclient/sanitizer_test.go @@ -22,7 +22,7 @@ import ( "net/netip" "testing" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" ) func TestSafeIP(t *testing.T) { diff --git a/internal/httpclient/transport.go b/internal/httpclient/transport.go index 350d24fab..a92c1ab0d 100644 --- a/internal/httpclient/transport.go +++ b/internal/httpclient/transport.go @@ -21,7 +21,7 @@ import ( "net/http" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" ) // SignFunc is a function signature that provides request signing. diff --git a/internal/id/ulid.go b/internal/id/ulid.go index 3c57c9f1b..b281ef5b8 100644 --- a/internal/id/ulid.go +++ b/internal/id/ulid.go @@ -22,9 +22,9 @@ import ( "math/big" "time" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" "github.com/oklog/ulid" - "github.com/superseriousbusiness/gotosocial/internal/log" ) const ( diff --git a/internal/language/language.go b/internal/language/language.go index d91e3a4db..233ae5a1d 100644 --- a/internal/language/language.go +++ b/internal/language/language.go @@ -18,7 +18,7 @@ package language import ( - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "golang.org/x/text/language" "golang.org/x/text/language/display" ) diff --git a/internal/language/language_test.go b/internal/language/language_test.go index 024448ab4..1f41a0b6d 100644 --- a/internal/language/language_test.go +++ b/internal/language/language_test.go @@ -21,7 +21,7 @@ import ( "slices" "testing" - "github.com/superseriousbusiness/gotosocial/internal/language" + "code.superseriousbusiness.org/gotosocial/internal/language" golanguage "golang.org/x/text/language" ) diff --git a/internal/log/log.go b/internal/log/log.go index 52703ef28..bf2259b50 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -25,8 +25,8 @@ import ( "strings" "time" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" ) var ( diff --git a/internal/log/syslog_test.go b/internal/log/syslog_test.go index 354c81556..66d9367ad 100644 --- a/internal/log/syslog_test.go +++ b/internal/log/syslog_test.go @@ -22,10 +22,10 @@ import ( "regexp" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/testrig" "gopkg.in/mcuadros/go-syslog.v2" "gopkg.in/mcuadros/go-syslog.v2/format" ) diff --git a/internal/log/sysloglongunixgram_test.go b/internal/log/sysloglongunixgram_test.go index e64a9fef9..6f180df7e 100644 --- a/internal/log/sysloglongunixgram_test.go +++ b/internal/log/sysloglongunixgram_test.go @@ -25,10 +25,10 @@ import ( "path" "regexp" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/google/uuid" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/testrig" ) // TestSyslogLongMessageUnixgram is known to hang on macOS for messages longer than about 1500 bytes. diff --git a/internal/media/ffmpeg.go b/internal/media/ffmpeg.go index 6bf39cae2..41cc2666f 100644 --- a/internal/media/ffmpeg.go +++ b/internal/media/ffmpeg.go @@ -28,10 +28,10 @@ import ( "codeberg.org/gruf/go-byteutil" - _ffmpeg "github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg" + _ffmpeg "code.superseriousbusiness.org/gotosocial/internal/media/ffmpeg" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/tetratelabs/wazero" ) diff --git a/internal/media/ffmpeg/wasm.go b/internal/media/ffmpeg/wasm.go index 51735bec1..1cd92f05d 100644 --- a/internal/media/ffmpeg/wasm.go +++ b/internal/media/ffmpeg/wasm.go @@ -26,9 +26,9 @@ import ( "sync/atomic" "unsafe" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-ffmpreg/embed" "codeberg.org/gruf/go-ffmpreg/wasm" - "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/tetratelabs/wazero" "golang.org/x/sys/cpu" ) diff --git a/internal/media/manager.go b/internal/media/manager.go index 6d9c5629f..a7bd8948b 100644 --- a/internal/media/manager.go +++ b/internal/media/manager.go @@ -23,15 +23,15 @@ import ( "strings" "time" + "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/storage" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-iotools" - "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/storage" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" ) var SupportedMIMETypes = []string{ diff --git a/internal/media/manager_test.go b/internal/media/manager_test.go index 5b6882100..4988c2485 100644 --- a/internal/media/manager_test.go +++ b/internal/media/manager_test.go @@ -27,16 +27,16 @@ import ( "testing" "time" + gtsmodel "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + gtsstorage "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "codeberg.org/gruf/go-iotools" "codeberg.org/gruf/go-storage/disk" "github.com/stretchr/testify/suite" - gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - gtsstorage "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ManagerTestSuite struct { @@ -859,7 +859,7 @@ func (suite *ManagerTestSuite) TestSimpleJpegProcessWithDiskStorage() { accountID := "01FS1X72SK9ZPW0J1QQ68BD264" - temp := fmt.Sprintf("./%s/gotosocial-test", os.TempDir()) + temp := fmt.Sprintf("%s/gotosocial-test", os.TempDir()) defer os.RemoveAll(temp) disk, err := disk.Open(temp, nil) diff --git a/internal/media/media_test.go b/internal/media/media_test.go index f46f837da..f1e1559a1 100644 --- a/internal/media/media_test.go +++ b/internal/media/media_test.go @@ -18,17 +18,17 @@ package media_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + gtsmodel "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/db" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - gtsmodel "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 MediaStandardTestSuite struct { diff --git a/internal/media/metadata.go b/internal/media/metadata.go index e8eb32c0d..44b1a87b6 100644 --- a/internal/media/metadata.go +++ b/internal/media/metadata.go @@ -22,9 +22,9 @@ import ( "os" "strings" - terminator "codeberg.org/superseriousbusiness/exif-terminator" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" + terminator "code.superseriousbusiness.org/exif-terminator" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // clearMetadata performs our best-attempt at cleaning metadata from diff --git a/internal/media/probe.go b/internal/media/probe.go index 882a2981d..791b6a8c2 100644 --- a/internal/media/probe.go +++ b/internal/media/probe.go @@ -25,9 +25,9 @@ import ( "os" "strings" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-byteutil" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) const ( diff --git a/internal/media/processingemoji.go b/internal/media/processingemoji.go index 95c224cda..d28edcc0c 100644 --- a/internal/media/processingemoji.go +++ b/internal/media/processingemoji.go @@ -21,14 +21,14 @@ import ( "context" "os" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" errorsv2 "codeberg.org/gruf/go-errors/v2" "codeberg.org/gruf/go-runners" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // ProcessingEmoji represents an emoji currently processing. It exposes diff --git a/internal/media/processingmedia.go b/internal/media/processingmedia.go index 894975a1b..a1305f104 100644 --- a/internal/media/processingmedia.go +++ b/internal/media/processingmedia.go @@ -25,12 +25,12 @@ import ( "codeberg.org/gruf/go-kv" "codeberg.org/gruf/go-runners" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // ProcessingMedia represents a piece of media diff --git a/internal/media/refetch.go b/internal/media/refetch.go index c467333c9..94e0a5338 100644 --- a/internal/media/refetch.go +++ b/internal/media/refetch.go @@ -24,10 +24,10 @@ import ( "io" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) type DereferenceMedia func(ctx context.Context, iri *url.URL, maxsz int64) (io.ReadCloser, error) diff --git a/internal/media/thumbnail.go b/internal/media/thumbnail.go index f1c7c678e..56247bc33 100644 --- a/internal/media/thumbnail.go +++ b/internal/media/thumbnail.go @@ -27,9 +27,9 @@ import ( "os" "strings" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/buckket/go-blurhash" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" "golang.org/x/image/webp" ) diff --git a/internal/media/util.go b/internal/media/util.go index 4e47955ad..ea52b415b 100644 --- a/internal/media/util.go +++ b/internal/media/util.go @@ -25,9 +25,9 @@ import ( "os" "path" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "codeberg.org/gruf/go-bytesize" "codeberg.org/gruf/go-iotools" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // file represents one file diff --git a/internal/messages/messages.go b/internal/messages/messages.go index 8b1c72d04..6744adfc9 100644 --- a/internal/messages/messages.go +++ b/internal/messages/messages.go @@ -23,11 +23,11 @@ import ( "net/url" "reflect" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "codeberg.org/gruf/go-structr" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) // FromClientAPI wraps a message that diff --git a/internal/messages/messages_test.go b/internal/messages/messages_test.go index e5b2a2841..8492edbff 100644 --- a/internal/messages/messages_test.go +++ b/internal/messages/messages_test.go @@ -23,10 +23,10 @@ import ( "net/url" "testing" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/testrig" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/google/go-cmp/cmp" ) diff --git a/internal/middleware/contentsecuritypolicy_test.go b/internal/middleware/contentsecuritypolicy_test.go index fad05931b..a337763df 100644 --- a/internal/middleware/contentsecuritypolicy_test.go +++ b/internal/middleware/contentsecuritypolicy_test.go @@ -20,7 +20,7 @@ package middleware_test import ( "testing" - "github.com/superseriousbusiness/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/middleware" ) func TestBuildContentSecurityPolicy(t *testing.T) { diff --git a/internal/middleware/cors.go b/internal/middleware/cors.go index caa091e62..591590b5a 100644 --- a/internal/middleware/cors.go +++ b/internal/middleware/cors.go @@ -56,7 +56,7 @@ func CORS() gin.HandlerFunc { // Some clients require this; see: // - https://docs.joinmastodon.org/methods/statuses/#headers - // - https://github.com/superseriousbusiness/gotosocial/issues/1664 + // - https://codeberg.org/superseriousbusiness/gotosocial/issues/1664 "Idempotency-Key", // needed for websocket upgrade requests diff --git a/internal/middleware/headerfilter.go b/internal/middleware/headerfilter.go index 5a17a8a71..6fb9fc996 100644 --- a/internal/middleware/headerfilter.go +++ b/internal/middleware/headerfilter.go @@ -20,12 +20,12 @@ package middleware import ( "errors" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/headerfilter" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/headerfilter" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" ) var ( diff --git a/internal/middleware/headerfilter_test.go b/internal/middleware/headerfilter_test.go index a28644153..4ad40b86f 100644 --- a/internal/middleware/headerfilter_test.go +++ b/internal/middleware/headerfilter_test.go @@ -25,15 +25,15 @@ import ( "strings" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/headerfilter" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/headerfilter" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/testrig" ) func TestHeaderFilter(t *testing.T) { diff --git a/internal/middleware/logger.go b/internal/middleware/logger.go index da5be9dfa..9fa245666 100644 --- a/internal/middleware/logger.go +++ b/internal/middleware/logger.go @@ -23,13 +23,13 @@ import ( "runtime" "time" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-bytesize" "codeberg.org/gruf/go-errors/v2" "codeberg.org/gruf/go-kv" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) // Logger returns a gin middleware which provides request logging and panic recovery. diff --git a/internal/middleware/ratelimit.go b/internal/middleware/ratelimit.go index a259cd575..6d39721ec 100644 --- a/internal/middleware/ratelimit.go +++ b/internal/middleware/ratelimit.go @@ -24,13 +24,13 @@ import ( "strconv" "time" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/util" "github.com/ulule/limiter/v3" "github.com/ulule/limiter/v3/drivers/store/memory" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" ) const rateLimitPeriod = 5 * time.Minute diff --git a/internal/middleware/ratelimit_test.go b/internal/middleware/ratelimit_test.go index e5afd40a6..d3a3722eb 100644 --- a/internal/middleware/ratelimit_test.go +++ b/internal/middleware/ratelimit_test.go @@ -25,10 +25,10 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type RateLimitTestSuite struct { diff --git a/internal/middleware/requestid.go b/internal/middleware/requestid.go index 7d98787a7..96551be01 100644 --- a/internal/middleware/requestid.go +++ b/internal/middleware/requestid.go @@ -26,8 +26,8 @@ import ( "sync" "time" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" ) var ( diff --git a/internal/middleware/robots.go b/internal/middleware/robots.go index fefd93be0..24dcb68b8 100644 --- a/internal/middleware/robots.go +++ b/internal/middleware/robots.go @@ -18,8 +18,8 @@ package middleware import ( + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // RobotsHeaders adds robots directives to the X-Robots-Tag HTTP header. diff --git a/internal/middleware/session.go b/internal/middleware/session.go index 9f96ff055..50433002a 100644 --- a/internal/middleware/session.go +++ b/internal/middleware/session.go @@ -23,11 +23,11 @@ import ( "net/url" "strings" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" "github.com/gin-contrib/sessions" "github.com/gin-contrib/sessions/memstore" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" "golang.org/x/net/idna" ) diff --git a/internal/middleware/session_test.go b/internal/middleware/session_test.go index 210f44d86..78370a9e0 100644 --- a/internal/middleware/session_test.go +++ b/internal/middleware/session_test.go @@ -20,10 +20,10 @@ package middleware_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/testrig" ) type SessionTestSuite struct { diff --git a/internal/middleware/signaturecheck.go b/internal/middleware/signaturecheck.go index 3e1bfef33..5ee09e675 100644 --- a/internal/middleware/signaturecheck.go +++ b/internal/middleware/signaturecheck.go @@ -22,10 +22,10 @@ import ( "net/http" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/log" - "codeberg.org/superseriousbusiness/httpsig" + "code.superseriousbusiness.org/httpsig" "github.com/gin-gonic/gin" ) diff --git a/internal/middleware/throttling.go b/internal/middleware/throttling.go index 739189b79..f0a2067a5 100644 --- a/internal/middleware/throttling.go +++ b/internal/middleware/throttling.go @@ -34,7 +34,7 @@ import ( "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" ) // token represents a request that is being processed. diff --git a/internal/middleware/throttling_test.go b/internal/middleware/throttling_test.go index 4610ee63b..1e18eee5b 100644 --- a/internal/middleware/throttling_test.go +++ b/internal/middleware/throttling_test.go @@ -34,8 +34,8 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/middleware" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/middleware" ) func TestThrottlingMiddleware(t *testing.T) { diff --git a/internal/middleware/tokencheck.go b/internal/middleware/tokencheck.go index 10c77541f..cc82e6e2f 100644 --- a/internal/middleware/tokencheck.go +++ b/internal/middleware/tokencheck.go @@ -20,11 +20,11 @@ package middleware import ( "net/http" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/oauth2/v4" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/oauth" ) // TokenCheck returns a new gin middleware for validating oauth tokens in requests. diff --git a/internal/middleware/useragent.go b/internal/middleware/useragent.go index 38d28f4e5..21740378b 100644 --- a/internal/middleware/useragent.go +++ b/internal/middleware/useragent.go @@ -20,8 +20,8 @@ package middleware import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // UserAgent returns a gin middleware which aborts requests with diff --git a/internal/middleware/util.go b/internal/middleware/util.go index 82850fd6d..530cd11a9 100644 --- a/internal/middleware/util.go +++ b/internal/middleware/util.go @@ -20,8 +20,8 @@ package middleware import ( "net/http" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" ) // respondBlocked responds to the given gin context with diff --git a/internal/oauth/clientstore.go b/internal/oauth/clientstore.go index 17de0e342..f780e13d5 100644 --- a/internal/oauth/clientstore.go +++ b/internal/oauth/clientstore.go @@ -20,9 +20,9 @@ package oauth import ( "context" - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" ) type clientStore struct { diff --git a/internal/oauth/clientstore_test.go b/internal/oauth/clientstore_test.go index c6621186a..73e070002 100644 --- a/internal/oauth/clientstore_test.go +++ b/internal/oauth/clientstore_test.go @@ -21,13 +21,13 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/state" + "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/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ClientStoreTestSuite struct { diff --git a/internal/oauth/errors.go b/internal/oauth/errors.go index 1ed9e838c..6f97d93cd 100644 --- a/internal/oauth/errors.go +++ b/internal/oauth/errors.go @@ -17,7 +17,7 @@ package oauth -import "codeberg.org/superseriousbusiness/oauth2/v4/errors" +import "code.superseriousbusiness.org/oauth2/v4/errors" // ErrInvalidRequest is an oauth spec compliant 'invalid_request' error. var ErrInvalidRequest = errors.New("invalid_request") diff --git a/internal/oauth/handlers/handlers.go b/internal/oauth/handlers/handlers.go index f0af007f0..b2a0045ec 100644 --- a/internal/oauth/handlers/handlers.go +++ b/internal/oauth/handlers/handlers.go @@ -25,16 +25,16 @@ import ( "slices" "strings" - "codeberg.org/superseriousbusiness/oauth2/v4" - oautherr "codeberg.org/superseriousbusiness/oauth2/v4/errors" - "codeberg.org/superseriousbusiness/oauth2/v4/manage" - "codeberg.org/superseriousbusiness/oauth2/v4/server" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "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/oauth2/v4" + oautherr "code.superseriousbusiness.org/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4/manage" + "code.superseriousbusiness.org/oauth2/v4/server" ) // GetClientScopeHandler returns a handler for testing scope on a TokenGenerateRequest. diff --git a/internal/oauth/server.go b/internal/oauth/server.go index 0bc7a3b01..05e8cad44 100644 --- a/internal/oauth/server.go +++ b/internal/oauth/server.go @@ -24,17 +24,17 @@ import ( "net/http" "strings" + "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/state" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/oauth2/v4" + oautherr "code.superseriousbusiness.org/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4/manage" + "code.superseriousbusiness.org/oauth2/v4/server" errorsv2 "codeberg.org/gruf/go-errors/v2" - "codeberg.org/superseriousbusiness/oauth2/v4" - oautherr "codeberg.org/superseriousbusiness/oauth2/v4/errors" - "codeberg.org/superseriousbusiness/oauth2/v4/manage" - "codeberg.org/superseriousbusiness/oauth2/v4/server" - "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/state" - "github.com/superseriousbusiness/gotosocial/internal/util" ) const ( diff --git a/internal/oauth/tokenstore.go b/internal/oauth/tokenstore.go index 8c6506fa3..add478039 100644 --- a/internal/oauth/tokenstore.go +++ b/internal/oauth/tokenstore.go @@ -22,14 +22,14 @@ import ( "errors" "time" + "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/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/models" "codeberg.org/gruf/go-mutexes" - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/models" - "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" ) // tokenStore is an implementation of oauth2.TokenStore, which uses our db interface as a storage backend. diff --git a/internal/observability/metrics.go b/internal/observability/metrics.go index f2ff2ac0d..97ddd088f 100644 --- a/internal/observability/metrics.go +++ b/internal/observability/metrics.go @@ -23,8 +23,8 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" "github.com/gin-gonic/gin" "github.com/technologize/otel-go-contrib/otelginmetrics" diff --git a/internal/observability/no_otel.go b/internal/observability/no_otel.go index 122d7a897..f1d0589bb 100644 --- a/internal/observability/no_otel.go +++ b/internal/observability/no_otel.go @@ -20,7 +20,7 @@ package observability import ( - "github.com/superseriousbusiness/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db" "github.com/gin-gonic/gin" "github.com/uptrace/bun" diff --git a/internal/observability/tracing.go b/internal/observability/tracing.go index 7827004a3..65fd1ac11 100644 --- a/internal/observability/tracing.go +++ b/internal/observability/tracing.go @@ -36,14 +36,14 @@ import ( semconv "go.opentelemetry.io/otel/semconv/v1.24.0" oteltrace "go.opentelemetry.io/otel/trace" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/log" ) const ( tracerKey = "gotosocial-server-tracer" - tracerName = "github.com/superseriousbusiness/gotosocial/internal/observability" + tracerName = "code.superseriousbusiness.org/gotosocial/internal/observability" ) func InitializeTracing() error { diff --git a/internal/oidc/handlecallback.go b/internal/oidc/handlecallback.go index 870a81627..ef4efe2a9 100644 --- a/internal/oidc/handlecallback.go +++ b/internal/oidc/handlecallback.go @@ -22,8 +22,8 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" ) func (i *idp) HandleCallback(ctx context.Context, code string) (*Claims, gtserror.WithCode) { diff --git a/internal/oidc/idp.go b/internal/oidc/idp.go index 0b360da0a..381133de1 100644 --- a/internal/oidc/idp.go +++ b/internal/oidc/idp.go @@ -21,9 +21,9 @@ import ( "context" "fmt" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/coreos/go-oidc/v3/oidc" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" "golang.org/x/oauth2" ) diff --git a/internal/paging/page_test.go b/internal/paging/page_test.go index dcf727aec..0ee69504d 100644 --- a/internal/paging/page_test.go +++ b/internal/paging/page_test.go @@ -24,8 +24,8 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/stretchr/testify/assert" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) type Case struct { diff --git a/internal/paging/parse.go b/internal/paging/parse.go index ce6391708..726288de7 100644 --- a/internal/paging/parse.go +++ b/internal/paging/parse.go @@ -20,8 +20,8 @@ package paging import ( "strconv" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) // ParseIDPage parses an ID Page from a request context, returning BadRequest on error parsing. diff --git a/internal/paging/response.go b/internal/paging/response.go index 71b0cf213..a832aa3df 100644 --- a/internal/paging/response.go +++ b/internal/paging/response.go @@ -21,8 +21,8 @@ import ( "net/url" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" ) // ResponseParams models the parameters to pass to PageableResponse. diff --git a/internal/paging/response_test.go b/internal/paging/response_test.go index b4b7d6058..73163088c 100644 --- a/internal/paging/response_test.go +++ b/internal/paging/response_test.go @@ -20,9 +20,9 @@ package paging_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/paging" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) type PagingSuite struct { diff --git a/internal/processing/account/account.go b/internal/processing/account/account.go index d65d7360c..1e8be372f 100644 --- a/internal/processing/account/account.go +++ b/internal/processing/account/account.go @@ -18,14 +18,14 @@ package account import ( - "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/common" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "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/common" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // Processor wraps functionality for updating, creating, and deleting accounts in response to API requests. diff --git a/internal/processing/account/account_test.go b/internal/processing/account/account_test.go index 4173162cc..699df7fdf 100644 --- a/internal/processing/account/account_test.go +++ b/internal/processing/account/account_test.go @@ -21,23 +21,23 @@ import ( "context" "time" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "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/messages" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/processing/account" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "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/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/messages" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/processing/account" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "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 AccountStandardTestSuite struct { diff --git a/internal/processing/account/alias.go b/internal/processing/account/alias.go index ca27a518c..01d4e0999 100644 --- a/internal/processing/account/alias.go +++ b/internal/processing/account/alias.go @@ -24,10 +24,10 @@ import ( "net/url" "slices" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" ) func (p *Processor) Alias( diff --git a/internal/processing/account/alias_test.go b/internal/processing/account/alias_test.go index 80fdb81c1..f3231cd74 100644 --- a/internal/processing/account/alias_test.go +++ b/internal/processing/account/alias_test.go @@ -22,8 +22,8 @@ import ( "slices" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type AliasTestSuite struct { diff --git a/internal/processing/account/block.go b/internal/processing/account/block.go index d3904bffa..21ec5eb07 100644 --- a/internal/processing/account/block.go +++ b/internal/processing/account/block.go @@ -22,17 +22,17 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/paging" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/paging" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // BlockCreate handles the creation of a block from requestingAccount to targetAccountID, either remote or local. diff --git a/internal/processing/account/bookmarks.go b/internal/processing/account/bookmarks.go index d64108d3a..7c7f7cb07 100644 --- a/internal/processing/account/bookmarks.go +++ b/internal/processing/account/bookmarks.go @@ -21,13 +21,13 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // BookmarksGet returns a pageable response of statuses that are bookmarked by requestingAccount. diff --git a/internal/processing/account/delete.go b/internal/processing/account/delete.go index 2d3ef88de..46057707d 100644 --- a/internal/processing/account/delete.go +++ b/internal/processing/account/delete.go @@ -23,16 +23,16 @@ import ( "net" "time" + "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" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-kv" "github.com/google/uuid" - "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" - "github.com/superseriousbusiness/gotosocial/internal/util" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/processing/account/delete_test.go b/internal/processing/account/delete_test.go index 587071a11..fd19099c3 100644 --- a/internal/processing/account/delete_test.go +++ b/internal/processing/account/delete_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 AccountDeleteTestSuite struct { diff --git a/internal/processing/account/export.go b/internal/processing/account/export.go index 68cc17b6d..b36c0e75b 100644 --- a/internal/processing/account/export.go +++ b/internal/processing/account/export.go @@ -21,10 +21,10 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // ExportStats returns the requester's export stats, diff --git a/internal/processing/account/follow.go b/internal/processing/account/follow.go index 59de8834b..2c9b1be4e 100644 --- a/internal/processing/account/follow.go +++ b/internal/processing/account/follow.go @@ -21,16 +21,16 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/messages" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/messages" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // FollowCreate handles a follow request to an account, either remote or local. diff --git a/internal/processing/account/follow_request.go b/internal/processing/account/follow_request.go index 6f6c7ba2d..a1969ac23 100644 --- a/internal/processing/account/follow_request.go +++ b/internal/processing/account/follow_request.go @@ -21,13 +21,13 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // FollowRequestAccept handles the accepting of a follow request from the sourceAccountID to the requestingAccount (the currently authorized account). diff --git a/internal/processing/account/follow_test.go b/internal/processing/account/follow_test.go index 9ea8ce1b8..68653f329 100644 --- a/internal/processing/account/follow_test.go +++ b/internal/processing/account/follow_test.go @@ -22,10 +22,10 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type FollowTestSuite struct { diff --git a/internal/processing/account/get.go b/internal/processing/account/get.go index 33eb4c101..f7bf84961 100644 --- a/internal/processing/account/get.go +++ b/internal/processing/account/get.go @@ -22,12 +22,12 @@ import ( "errors" "net/url" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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" ) // Get processes the given request for account information. diff --git a/internal/processing/account/import.go b/internal/processing/account/import.go index 5c830639a..f645662d3 100644 --- a/internal/processing/account/import.go +++ b/internal/processing/account/import.go @@ -24,10 +24,10 @@ import ( "fmt" "mime/multipart" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) func (p *Processor) ImportData( diff --git a/internal/processing/account/interactionpolicies.go b/internal/processing/account/interactionpolicies.go index e02b43e9e..405c92230 100644 --- a/internal/processing/account/interactionpolicies.go +++ b/internal/processing/account/interactionpolicies.go @@ -21,10 +21,10 @@ import ( "cmp" "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) func (p *Processor) DefaultInteractionPoliciesGet( diff --git a/internal/processing/account/lists.go b/internal/processing/account/lists.go index 04cf4ca73..be6c86d47 100644 --- a/internal/processing/account/lists.go +++ b/internal/processing/account/lists.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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" ) // ListsGet returns all lists owned by requestingAccount, which contain a follow for targetAccountID. diff --git a/internal/processing/account/move.go b/internal/processing/account/move.go index 734331503..58db5d452 100644 --- a/internal/processing/account/move.go +++ b/internal/processing/account/move.go @@ -25,18 +25,18 @@ import ( "slices" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/dereferencing" + "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/messages" + "code.superseriousbusiness.org/gotosocial/internal/uris" "codeberg.org/gruf/go-byteutil" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" - "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/messages" - "github.com/superseriousbusiness/gotosocial/internal/uris" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/processing/account/move_test.go b/internal/processing/account/move_test.go index 76cbe1512..54b016528 100644 --- a/internal/processing/account/move_test.go +++ b/internal/processing/account/move_test.go @@ -22,11 +22,11 @@ import ( "testing" "time" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" ) type MoveTestSuite struct { diff --git a/internal/processing/account/mute.go b/internal/processing/account/mute.go index 00bb9dd22..43dc45497 100644 --- a/internal/processing/account/mute.go +++ b/internal/processing/account/mute.go @@ -22,14 +22,14 @@ import ( "errors" "time" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // MuteCreate handles the creation or updating of a mute from requestingAccount to targetAccountID. diff --git a/internal/processing/account/note.go b/internal/processing/account/note.go index 7606c1a91..231bb2ed8 100644 --- a/internal/processing/account/note.go +++ b/internal/processing/account/note.go @@ -20,10 +20,10 @@ package account import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" ) // PutNote updates the requesting account's private note on the target account. diff --git a/internal/processing/account/relationships.go b/internal/processing/account/relationships.go index 53d2ee3c7..6a82e67a4 100644 --- a/internal/processing/account/relationships.go +++ b/internal/processing/account/relationships.go @@ -21,11 +21,11 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // FollowersGet fetches a list of the target account's followers. diff --git a/internal/processing/account/rss.go b/internal/processing/account/rss.go index b0debcc91..495aa2e54 100644 --- a/internal/processing/account/rss.go +++ b/internal/processing/account/rss.go @@ -23,11 +23,11 @@ import ( "fmt" "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" "github.com/gorilla/feeds" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) const ( diff --git a/internal/processing/account/statuses.go b/internal/processing/account/statuses.go index 3b4e067f9..191fdcb5f 100644 --- a/internal/processing/account/statuses.go +++ b/internal/processing/account/statuses.go @@ -22,13 +22,13 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // StatusesGet fetches a number of statuses (in time descending order) from the diff --git a/internal/processing/account/themes.go b/internal/processing/account/themes.go index 4f8cc49a1..88fd3ff6c 100644 --- a/internal/processing/account/themes.go +++ b/internal/processing/account/themes.go @@ -25,11 +25,11 @@ import ( "slices" "strings" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-bytesize" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" ) var ( diff --git a/internal/processing/account/themes_test.go b/internal/processing/account/themes_test.go index 9506aee50..fff129f68 100644 --- a/internal/processing/account/themes_test.go +++ b/internal/processing/account/themes_test.go @@ -20,9 +20,9 @@ package account_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/processing/account" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/processing/account" ) type ThemesTestSuite struct { diff --git a/internal/processing/account/tokens.go b/internal/processing/account/tokens.go index dcd997839..eaeffe38b 100644 --- a/internal/processing/account/tokens.go +++ b/internal/processing/account/tokens.go @@ -21,11 +21,11 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) func (p *Processor) TokensGet( diff --git a/internal/processing/account/update.go b/internal/processing/account/update.go index 83a046a25..f0e3b790b 100644 --- a/internal/processing/account/update.go +++ b/internal/processing/account/update.go @@ -24,19 +24,19 @@ import ( "io" "mime/multipart" + "code.superseriousbusiness.org/gotosocial/internal/ap" + 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/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/validate" "codeberg.org/gruf/go-iotools" - "github.com/superseriousbusiness/gotosocial/internal/ap" - 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/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) func (p *Processor) selectNoteFormatter(contentType string) text.FormatFunc { diff --git a/internal/processing/account/update_test.go b/internal/processing/account/update_test.go index 674502b75..52895a463 100644 --- a/internal/processing/account/update_test.go +++ b/internal/processing/account/update_test.go @@ -22,11 +22,11 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type AccountUpdateTestSuite struct { diff --git a/internal/processing/admin/account_test.go b/internal/processing/admin/account_test.go index baa6eb646..76c4c82f5 100644 --- a/internal/processing/admin/account_test.go +++ b/internal/processing/admin/account_test.go @@ -21,10 +21,10 @@ import ( "context" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AccountTestSuite struct { diff --git a/internal/processing/admin/accountaction.go b/internal/processing/admin/accountaction.go index 959f2cfcd..19b04a145 100644 --- a/internal/processing/admin/accountaction.go +++ b/internal/processing/admin/accountaction.go @@ -21,12 +21,12 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (p *Processor) AccountAction( diff --git a/internal/processing/admin/accountget.go b/internal/processing/admin/accountget.go index 5a3c34c62..06a47cedc 100644 --- a/internal/processing/admin/accountget.go +++ b/internal/processing/admin/accountget.go @@ -22,9 +22,9 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) func (p *Processor) AccountGet(ctx context.Context, accountID string) (*apimodel.AdminAccountInfo, gtserror.WithCode) { diff --git a/internal/processing/admin/accounts.go b/internal/processing/admin/accounts.go index ba2a88ce6..2be71ddc3 100644 --- a/internal/processing/admin/accounts.go +++ b/internal/processing/admin/accounts.go @@ -25,12 +25,12 @@ import ( "net/url" "slices" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) var ( diff --git a/internal/processing/admin/admin.go b/internal/processing/admin/admin.go index 08e6bf0d5..7ad2450de 100644 --- a/internal/processing/admin/admin.go +++ b/internal/processing/admin/admin.go @@ -18,15 +18,15 @@ package admin import ( - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/media" - "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/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/media" + "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" ) type Processor struct { diff --git a/internal/processing/admin/admin_test.go b/internal/processing/admin/admin_test.go index 804abbc62..7effffaae 100644 --- a/internal/processing/admin/admin_test.go +++ b/internal/processing/admin/admin_test.go @@ -18,26 +18,26 @@ package admin_test import ( + adminactions "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "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/media" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/processing/admin" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - adminactions "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "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/media" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/processing/admin" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AdminStandardTestSuite struct { diff --git a/internal/processing/admin/debug_apurl.go b/internal/processing/admin/debug_apurl.go index dbf337dc3..f6098c534 100644 --- a/internal/processing/admin/debug_apurl.go +++ b/internal/processing/admin/debug_apurl.go @@ -23,11 +23,11 @@ import ( "net/http" "net/url" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // DebugAPUrl performs a GET to the given url, using the diff --git a/internal/processing/admin/domainallow.go b/internal/processing/admin/domainallow.go index 134351ad5..388ca5cb1 100644 --- a/internal/processing/admin/domainallow.go +++ b/internal/processing/admin/domainallow.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/text" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/text" ) func (p *Processor) createDomainAllow( diff --git a/internal/processing/admin/domainblock.go b/internal/processing/admin/domainblock.go index 3dd5a256f..1c5d004bd 100644 --- a/internal/processing/admin/domainblock.go +++ b/internal/processing/admin/domainblock.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/text" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/text" ) func (p *Processor) createDomainBlock( diff --git a/internal/processing/admin/domainkeysexpire.go b/internal/processing/admin/domainkeysexpire.go index 0613f502d..39fe77dc7 100644 --- a/internal/processing/admin/domainkeysexpire.go +++ b/internal/processing/admin/domainkeysexpire.go @@ -20,9 +20,9 @@ package admin import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" ) // DomainKeysExpire iterates through all diff --git a/internal/processing/admin/domainpermission.go b/internal/processing/admin/domainpermission.go index 9b8c88030..d7546fb15 100644 --- a/internal/processing/admin/domainpermission.go +++ b/internal/processing/admin/domainpermission.go @@ -26,11 +26,11 @@ import ( "mime/multipart" "net/http" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // DomainPermissionCreate creates an instance-level permission diff --git a/internal/processing/admin/domainpermission_test.go b/internal/processing/admin/domainpermission_test.go index c8f3560c3..f53c241b6 100644 --- a/internal/processing/admin/domainpermission_test.go +++ b/internal/processing/admin/domainpermission_test.go @@ -22,13 +22,13 @@ import ( "net/http" "testing" + 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/testrig" "github.com/stretchr/testify/suite" - 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/testrig" ) type DomainBlockTestSuite struct { diff --git a/internal/processing/admin/domainpermissiondraft.go b/internal/processing/admin/domainpermissiondraft.go index 0dc17a45a..9e067f20b 100644 --- a/internal/processing/admin/domainpermissiondraft.go +++ b/internal/processing/admin/domainpermissiondraft.go @@ -23,16 +23,16 @@ import ( "fmt" "net/url" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "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/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/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/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // DomainPermissionDraftGet returns one diff --git a/internal/processing/admin/domainpermissionexclude.go b/internal/processing/admin/domainpermissionexclude.go index 761ca8b9c..b2134777d 100644 --- a/internal/processing/admin/domainpermissionexclude.go +++ b/internal/processing/admin/domainpermissionexclude.go @@ -23,13 +23,13 @@ import ( "fmt" "net/url" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "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/paging" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/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/paging" ) func (p *Processor) DomainPermissionExcludeCreate( diff --git a/internal/processing/admin/domainpermissionsubscription.go b/internal/processing/admin/domainpermissionsubscription.go index bdc38df63..b4dc72aa3 100644 --- a/internal/processing/admin/domainpermissionsubscription.go +++ b/internal/processing/admin/domainpermissionsubscription.go @@ -24,13 +24,13 @@ import ( "net/url" "slices" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "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/paging" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/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/paging" ) // DomainPermissionSubscriptionGet returns one diff --git a/internal/processing/admin/email.go b/internal/processing/admin/email.go index 949be6e4b..fe69236db 100644 --- a/internal/processing/admin/email.go +++ b/internal/processing/admin/email.go @@ -21,10 +21,10 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // EmailTest sends a generic test email to the given diff --git a/internal/processing/admin/emoji.go b/internal/processing/admin/emoji.go index 5a7da445e..b45d31e96 100644 --- a/internal/processing/admin/emoji.go +++ b/internal/processing/admin/emoji.go @@ -25,15 +25,15 @@ import ( "mime/multipart" "strings" + 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/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-iotools" - 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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // EmojiCreate creates a custom emoji on this instance. diff --git a/internal/processing/admin/emoji_test.go b/internal/processing/admin/emoji_test.go index 17f5fc864..4968ad1af 100644 --- a/internal/processing/admin/emoji_test.go +++ b/internal/processing/admin/emoji_test.go @@ -21,10 +21,10 @@ import ( "context" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type EmojiTestSuite struct { diff --git a/internal/processing/admin/headerfilter.go b/internal/processing/admin/headerfilter.go index 13105d191..dc74c151b 100644 --- a/internal/processing/admin/headerfilter.go +++ b/internal/processing/admin/headerfilter.go @@ -23,13 +23,13 @@ import ( "net/textproto" "regexp" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/headerfilter" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/headerfilter" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // GetAllowHeaderFilter fetches allow HTTP header filter with provided ID from the database. diff --git a/internal/processing/admin/media.go b/internal/processing/admin/media.go index 9cd68d88b..785ee0e98 100644 --- a/internal/processing/admin/media.go +++ b/internal/processing/admin/media.go @@ -21,10 +21,10 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // MediaRefetch forces a refetch of remote emojis. diff --git a/internal/processing/admin/report.go b/internal/processing/admin/report.go index ed34a4e83..bb94e67f5 100644 --- a/internal/processing/admin/report.go +++ b/internal/processing/admin/report.go @@ -25,14 +25,14 @@ import ( "strconv" "time" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // ReportsGet returns reports stored on this diff --git a/internal/processing/admin/rule.go b/internal/processing/admin/rule.go index 8134c21cd..a665da9a1 100644 --- a/internal/processing/admin/rule.go +++ b/internal/processing/admin/rule.go @@ -22,13 +22,13 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // RulesGet returns all rules stored on this instance. diff --git a/internal/processing/admin/signupapprove.go b/internal/processing/admin/signupapprove.go index 84e04fa8d..d33227bb2 100644 --- a/internal/processing/admin/signupapprove.go +++ b/internal/processing/admin/signupapprove.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (p *Processor) SignupApprove( diff --git a/internal/processing/admin/signupapprove_test.go b/internal/processing/admin/signupapprove_test.go index 58b8fdade..7203c3223 100644 --- a/internal/processing/admin/signupapprove_test.go +++ b/internal/processing/admin/signupapprove_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" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AdminApproveTestSuite struct { diff --git a/internal/processing/admin/signupreject.go b/internal/processing/admin/signupreject.go index 39eff0b87..5b7872a19 100644 --- a/internal/processing/admin/signupreject.go +++ b/internal/processing/admin/signupreject.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) func (p *Processor) SignupReject( diff --git a/internal/processing/admin/signupreject_test.go b/internal/processing/admin/signupreject_test.go index cb6a25eb3..2017c6364 100644 --- a/internal/processing/admin/signupreject_test.go +++ b/internal/processing/admin/signupreject_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 AdminRejectTestSuite struct { diff --git a/internal/processing/admin/util.go b/internal/processing/admin/util.go index f04b3654b..2ad0069d7 100644 --- a/internal/processing/admin/util.go +++ b/internal/processing/admin/util.go @@ -20,9 +20,9 @@ package admin import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // apiDomainPerm is a cheeky shortcut for returning diff --git a/internal/processing/admin/workertask.go b/internal/processing/admin/workertask.go index 6d7cc7b7a..9fcd1f5a1 100644 --- a/internal/processing/admin/workertask.go +++ b/internal/processing/admin/workertask.go @@ -23,12 +23,12 @@ import ( "slices" "time" - "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/transport" - "github.com/superseriousbusiness/gotosocial/internal/transport/delivery" + "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/transport" + "code.superseriousbusiness.org/gotosocial/internal/transport/delivery" ) // NOTE: diff --git a/internal/processing/admin/workertask_test.go b/internal/processing/admin/workertask_test.go index bf326bafd..37b7059d7 100644 --- a/internal/processing/admin/workertask_test.go +++ b/internal/processing/admin/workertask_test.go @@ -27,14 +27,14 @@ import ( "net/url" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/transport/delivery" + "code.superseriousbusiness.org/gotosocial/testrig" "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/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/transport/delivery" - "github.com/superseriousbusiness/gotosocial/testrig" ) var ( diff --git a/internal/processing/advancedmigrations/advancedmigrations.go b/internal/processing/advancedmigrations/advancedmigrations.go index 3f1876539..d4404bb85 100644 --- a/internal/processing/advancedmigrations/advancedmigrations.go +++ b/internal/processing/advancedmigrations/advancedmigrations.go @@ -21,7 +21,7 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/processing/conversations" + "code.superseriousbusiness.org/gotosocial/internal/processing/conversations" ) // Processor holds references to any other processor that has migrations to run. diff --git a/internal/processing/application/application.go b/internal/processing/application/application.go index 4ad35749e..acecd7f85 100644 --- a/internal/processing/application/application.go +++ b/internal/processing/application/application.go @@ -18,8 +18,8 @@ package application import ( - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/application/create.go b/internal/processing/application/create.go index d1340a39f..7ee6fb6b9 100644 --- a/internal/processing/application/create.go +++ b/internal/processing/application/create.go @@ -24,12 +24,12 @@ import ( "net/url" "strings" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/oauth" "github.com/google/uuid" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/oauth" ) func (p *Processor) Create( diff --git a/internal/processing/application/delete.go b/internal/processing/application/delete.go index 02f5e4bfa..7d1a3b495 100644 --- a/internal/processing/application/delete.go +++ b/internal/processing/application/delete.go @@ -21,9 +21,9 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) func (p *Processor) Delete( diff --git a/internal/processing/application/get.go b/internal/processing/application/get.go index 0a3eb8e04..25cc634a6 100644 --- a/internal/processing/application/get.go +++ b/internal/processing/application/get.go @@ -21,11 +21,11 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) func (p *Processor) Get( diff --git a/internal/processing/common/account.go b/internal/processing/common/account.go index ae26e4ebd..07644e839 100644 --- a/internal/processing/common/account.go +++ b/internal/processing/common/account.go @@ -21,11 +21,11 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // GetTargetAccountBy fetches the target account with db load function, given the authorized (or, nil) requester's diff --git a/internal/processing/common/common.go b/internal/processing/common/common.go index 29def3506..9f4753147 100644 --- a/internal/processing/common/common.go +++ b/internal/processing/common/common.go @@ -18,11 +18,11 @@ package common import ( - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // Processor provides a processor with logic diff --git a/internal/processing/common/media.go b/internal/processing/common/media.go index 7957470cd..e379bfe40 100644 --- a/internal/processing/common/media.go +++ b/internal/processing/common/media.go @@ -22,10 +22,10 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" ) // StoreLocalMedia is a wrapper around CreateMedia() and diff --git a/internal/processing/common/status.go b/internal/processing/common/status.go index 01f2ab72d..3d62fedad 100644 --- a/internal/processing/common/status.go +++ b/internal/processing/common/status.go @@ -21,14 +21,14 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/dereferencing" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // GetOwnStatus fetches the given status with ID, diff --git a/internal/processing/conversations/conversations.go b/internal/processing/conversations/conversations.go index d95740605..a4b8b7234 100644 --- a/internal/processing/conversations/conversations.go +++ b/internal/processing/conversations/conversations.go @@ -21,14 +21,14 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "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/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "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/typeutils" ) type Processor struct { diff --git a/internal/processing/conversations/conversations_test.go b/internal/processing/conversations/conversations_test.go index fecaf5666..ed763b80a 100644 --- a/internal/processing/conversations/conversations_test.go +++ b/internal/processing/conversations/conversations_test.go @@ -22,23 +22,23 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + dbtest "code.superseriousbusiness.org/gotosocial/internal/db/test" + "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/messages" + "code.superseriousbusiness.org/gotosocial/internal/processing/conversations" + "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/db" - dbtest "github.com/superseriousbusiness/gotosocial/internal/db/test" - "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/messages" - "github.com/superseriousbusiness/gotosocial/internal/processing/conversations" - "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 ConversationsTestSuite struct { diff --git a/internal/processing/conversations/delete.go b/internal/processing/conversations/delete.go index 5cbdd00a5..0f8281716 100644 --- a/internal/processing/conversations/delete.go +++ b/internal/processing/conversations/delete.go @@ -20,9 +20,9 @@ package conversations import ( "context" - "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" ) func (p *Processor) Delete( diff --git a/internal/processing/conversations/get.go b/internal/processing/conversations/get.go index 0c7832cae..9218942bf 100644 --- a/internal/processing/conversations/get.go +++ b/internal/processing/conversations/get.go @@ -21,13 +21,13 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // GetAll returns conversations owned by the given account. diff --git a/internal/processing/conversations/get_test.go b/internal/processing/conversations/get_test.go index 7b3d60749..ea8794601 100644 --- a/internal/processing/conversations/get_test.go +++ b/internal/processing/conversations/get_test.go @@ -21,7 +21,7 @@ import ( "context" "time" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" ) func (suite *ConversationsTestSuite) TestGetAll() { diff --git a/internal/processing/conversations/migrate.go b/internal/processing/conversations/migrate.go index 959ffcca4..902024944 100644 --- a/internal/processing/conversations/migrate.go +++ b/internal/processing/conversations/migrate.go @@ -22,12 +22,12 @@ import ( "encoding/json" "errors" - "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/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/log" + "code.superseriousbusiness.org/gotosocial/internal/util" ) const advancedMigrationID = "20240611190733_add_conversations" diff --git a/internal/processing/conversations/migrate_test.go b/internal/processing/conversations/migrate_test.go index b625e59ba..7253b30a6 100644 --- a/internal/processing/conversations/migrate_test.go +++ b/internal/processing/conversations/migrate_test.go @@ -20,9 +20,9 @@ package conversations_test import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Test that we can migrate DMs to conversations. diff --git a/internal/processing/conversations/read.go b/internal/processing/conversations/read.go index 512a004a3..42f369582 100644 --- a/internal/processing/conversations/read.go +++ b/internal/processing/conversations/read.go @@ -20,10 +20,10 @@ package conversations import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "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/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" ) func (p *Processor) Read( diff --git a/internal/processing/conversations/read_test.go b/internal/processing/conversations/read_test.go index ebd8f7fe5..3b86326fd 100644 --- a/internal/processing/conversations/read_test.go +++ b/internal/processing/conversations/read_test.go @@ -20,7 +20,7 @@ package conversations_test import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/util" ) func (suite *ConversationsTestSuite) TestRead() { diff --git a/internal/processing/conversations/update.go b/internal/processing/conversations/update.go index 7445994ae..1651d5367 100644 --- a/internal/processing/conversations/update.go +++ b/internal/processing/conversations/update.go @@ -21,14 +21,14 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "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/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "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/util" ) // ConversationNotification carries the arguments to processing/stream.Processor.Conversation. diff --git a/internal/processing/fedi/accept.go b/internal/processing/fedi/accept.go index fc699ee08..e63b460db 100644 --- a/internal/processing/fedi/accept.go +++ b/internal/processing/fedi/accept.go @@ -21,9 +21,9 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // AcceptGet handles the getting of a fedi/activitypub diff --git a/internal/processing/fedi/collections.go b/internal/processing/fedi/collections.go index 9da3a79a0..5f2615b64 100644 --- a/internal/processing/fedi/collections.go +++ b/internal/processing/fedi/collections.go @@ -23,14 +23,14 @@ import ( "net/http" "net/url" - "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/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" + "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/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // InboxPost handles POST requests to a user's inbox for new activitypub messages. diff --git a/internal/processing/fedi/common.go b/internal/processing/fedi/common.go index 1a4d38bc1..9059aef39 100644 --- a/internal/processing/fedi/common.go +++ b/internal/processing/fedi/common.go @@ -22,9 +22,9 @@ import ( "errors" "net/url" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) type commonAuth struct { diff --git a/internal/processing/fedi/emoji.go b/internal/processing/fedi/emoji.go index 9ac0ea244..8db8b48ea 100644 --- a/internal/processing/fedi/emoji.go +++ b/internal/processing/fedi/emoji.go @@ -21,8 +21,8 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // EmojiGet handles the GET for a federated emoji originating from this instance. diff --git a/internal/processing/fedi/fedi.go b/internal/processing/fedi/fedi.go index 52a9d70bf..d770f3927 100644 --- a/internal/processing/fedi/fedi.go +++ b/internal/processing/fedi/fedi.go @@ -18,11 +18,11 @@ package fedi import ( - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/fedi/status.go b/internal/processing/fedi/status.go index a677da322..497bcc177 100644 --- a/internal/processing/fedi/status.go +++ b/internal/processing/fedi/status.go @@ -24,13 +24,13 @@ import ( "slices" "strconv" - "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/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" + "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/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // StatusGet handles the getting of a fedi/activitypub representation of a local status. diff --git a/internal/processing/fedi/user.go b/internal/processing/fedi/user.go index 79c1b4fdb..53dfd6022 100644 --- a/internal/processing/fedi/user.go +++ b/internal/processing/fedi/user.go @@ -23,10 +23,10 @@ import ( "fmt" "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/uris" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // UserGet handles the getting of a fedi/activitypub representation of a user/account, @@ -51,7 +51,7 @@ func (p *Processor) UserGet(ctx context.Context, requestedUsername string, reque // authenticate this request. However, we'll only serve // the bare minimum user profile needed for the pubkey. // - // TODO: https://github.com/superseriousbusiness/gotosocial/issues/1186 + // TODO: https://codeberg.org/superseriousbusiness/gotosocial/issues/1186 minimalPerson, err := p.converter.AccountToASMinimal(ctx, receiver) if err != nil { err := gtserror.Newf("error converting to minimal account: %w", err) diff --git a/internal/processing/fedi/wellknown.go b/internal/processing/fedi/wellknown.go index 93fd3b28f..0e6989803 100644 --- a/internal/processing/fedi/wellknown.go +++ b/internal/processing/fedi/wellknown.go @@ -21,9 +21,9 @@ import ( "context" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) const ( @@ -34,7 +34,7 @@ const ( nodeInfoSoftwareName = "gotosocial" nodeInfo20Rel = "http://nodeinfo.diaspora.software/ns/schema/2.0" nodeInfo21Rel = "http://nodeinfo.diaspora.software/ns/schema/2.1" - nodeInfoRepo = "https://github.com/superseriousbusiness/gotosocial" + nodeInfoRepo = "https://codeberg.org/superseriousbusiness/gotosocial" nodeInfoHomepage = "https://docs.gotosocial.org" webfingerProfilePage = "http://webfinger.net/rel/profile-page" webFingerProfilePageContentType = "text/html" diff --git a/internal/processing/filters/v1/convert.go b/internal/processing/filters/v1/convert.go index 1e0db5ff1..417cf7b7d 100644 --- a/internal/processing/filters/v1/convert.go +++ b/internal/processing/filters/v1/convert.go @@ -21,9 +21,9 @@ import ( "context" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // apiFilter is a shortcut to return the API v1 filter version of the given diff --git a/internal/processing/filters/v1/create.go b/internal/processing/filters/v1/create.go index 86019d2a6..24517dd7b 100644 --- a/internal/processing/filters/v1/create.go +++ b/internal/processing/filters/v1/create.go @@ -23,12 +23,12 @@ import ( "fmt" "time" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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" ) // Create a new filter and filter keyword for the given account, using the provided parameters. diff --git a/internal/processing/filters/v1/delete.go b/internal/processing/filters/v1/delete.go index 89282c65d..6a081ff04 100644 --- a/internal/processing/filters/v1/delete.go +++ b/internal/processing/filters/v1/delete.go @@ -21,10 +21,10 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Delete an existing filter keyword and (if empty afterwards) filter for the given account. diff --git a/internal/processing/filters/v1/filters.go b/internal/processing/filters/v1/filters.go index daa9087a9..89b509912 100644 --- a/internal/processing/filters/v1/filters.go +++ b/internal/processing/filters/v1/filters.go @@ -18,9 +18,9 @@ package v1 import ( - "github.com/superseriousbusiness/gotosocial/internal/processing/stream" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/processing/stream" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/filters/v1/get.go b/internal/processing/filters/v1/get.go index 3ead09b20..ad35e6272 100644 --- a/internal/processing/filters/v1/get.go +++ b/internal/processing/filters/v1/get.go @@ -23,10 +23,10 @@ import ( "slices" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Get looks up a filter keyword by ID and returns it as a v1 filter. diff --git a/internal/processing/filters/v1/update.go b/internal/processing/filters/v1/update.go index 15c5de365..8b50c3fcf 100644 --- a/internal/processing/filters/v1/update.go +++ b/internal/processing/filters/v1/update.go @@ -24,12 +24,12 @@ import ( "strings" "time" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/util" ) // Update an existing filter and filter keyword for the given account, using the provided parameters. diff --git a/internal/processing/filters/v2/convert.go b/internal/processing/filters/v2/convert.go index 1e544e6e4..590edd04b 100644 --- a/internal/processing/filters/v2/convert.go +++ b/internal/processing/filters/v2/convert.go @@ -21,9 +21,9 @@ import ( "context" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // apiFilter is a shortcut to return the API v2 filter version of the given diff --git a/internal/processing/filters/v2/create.go b/internal/processing/filters/v2/create.go index 60dd46f43..c221e1539 100644 --- a/internal/processing/filters/v2/create.go +++ b/internal/processing/filters/v2/create.go @@ -23,13 +23,13 @@ import ( "fmt" "time" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // Create a new filter for the given account, using the provided parameters. diff --git a/internal/processing/filters/v2/delete.go b/internal/processing/filters/v2/delete.go index a312180b8..b6a4c6321 100644 --- a/internal/processing/filters/v2/delete.go +++ b/internal/processing/filters/v2/delete.go @@ -21,8 +21,8 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Delete an existing filter and all its attached keywords and statuses for the given account. diff --git a/internal/processing/filters/v2/filters.go b/internal/processing/filters/v2/filters.go index 85da4df6b..82fef36b6 100644 --- a/internal/processing/filters/v2/filters.go +++ b/internal/processing/filters/v2/filters.go @@ -18,9 +18,9 @@ package v2 import ( - "github.com/superseriousbusiness/gotosocial/internal/processing/stream" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/processing/stream" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/filters/v2/get.go b/internal/processing/filters/v2/get.go index 39b937eb2..7240d1ba3 100644 --- a/internal/processing/filters/v2/get.go +++ b/internal/processing/filters/v2/get.go @@ -24,10 +24,10 @@ import ( "slices" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Get looks up a filter by ID and returns it with keywords and statuses. diff --git a/internal/processing/filters/v2/keywordcreate.go b/internal/processing/filters/v2/keywordcreate.go index 92d9e5dfd..89ada34f4 100644 --- a/internal/processing/filters/v2/keywordcreate.go +++ b/internal/processing/filters/v2/keywordcreate.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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" ) // KeywordCreate adds a filter keyword to an existing filter for the given account, using the provided parameters. diff --git a/internal/processing/filters/v2/keyworddelete.go b/internal/processing/filters/v2/keyworddelete.go index 024991109..390c7b2cf 100644 --- a/internal/processing/filters/v2/keyworddelete.go +++ b/internal/processing/filters/v2/keyworddelete.go @@ -21,8 +21,8 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // KeywordDelete deletes an existing filter keyword from a filter. diff --git a/internal/processing/filters/v2/keywordget.go b/internal/processing/filters/v2/keywordget.go index 5f5a63b26..e824b2e57 100644 --- a/internal/processing/filters/v2/keywordget.go +++ b/internal/processing/filters/v2/keywordget.go @@ -24,11 +24,11 @@ import ( "slices" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // KeywordGet looks up a filter keyword by ID. diff --git a/internal/processing/filters/v2/keywordupdate.go b/internal/processing/filters/v2/keywordupdate.go index 9492e7b3a..4c0a54b83 100644 --- a/internal/processing/filters/v2/keywordupdate.go +++ b/internal/processing/filters/v2/keywordupdate.go @@ -22,11 +22,11 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // KeywordUpdate updates an existing filter keyword for the given account, using the provided parameters. diff --git a/internal/processing/filters/v2/statuscreate.go b/internal/processing/filters/v2/statuscreate.go index 7d4469eef..927986c69 100644 --- a/internal/processing/filters/v2/statuscreate.go +++ b/internal/processing/filters/v2/statuscreate.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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" ) // StatusCreate adds a filter status to an existing filter for the given account, using the provided parameters. diff --git a/internal/processing/filters/v2/statusdelete.go b/internal/processing/filters/v2/statusdelete.go index 706ca691d..e25f7279e 100644 --- a/internal/processing/filters/v2/statusdelete.go +++ b/internal/processing/filters/v2/statusdelete.go @@ -21,8 +21,8 @@ import ( "context" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // StatusDelete deletes an existing filter status from a filter. diff --git a/internal/processing/filters/v2/statusget.go b/internal/processing/filters/v2/statusget.go index 197a3872e..06a56d271 100644 --- a/internal/processing/filters/v2/statusget.go +++ b/internal/processing/filters/v2/statusget.go @@ -24,11 +24,11 @@ import ( "slices" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // StatusGet looks up a filter status by ID. diff --git a/internal/processing/filters/v2/update.go b/internal/processing/filters/v2/update.go index d5b5cce01..9d38cac66 100644 --- a/internal/processing/filters/v2/update.go +++ b/internal/processing/filters/v2/update.go @@ -21,14 +21,15 @@ import ( "context" "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" "time" + + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // Update an existing filter for the given account, using the provided parameters. diff --git a/internal/processing/followrequest_test.go b/internal/processing/followrequest_test.go index db0419522..ca77d1e34 100644 --- a/internal/processing/followrequest_test.go +++ b/internal/processing/followrequest_test.go @@ -25,10 +25,10 @@ import ( "testing" "time" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) // TODO: move this to the "internal/processing/account" pkg diff --git a/internal/processing/instance.go b/internal/processing/instance.go index e723c751e..87fe1e3ef 100644 --- a/internal/processing/instance.go +++ b/internal/processing/instance.go @@ -22,16 +22,16 @@ import ( "fmt" "sort" - 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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/validate" + 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/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/validate" ) func (p *Processor) InstanceGetV1(ctx context.Context) (*apimodel.InstanceV1, gtserror.WithCode) { diff --git a/internal/processing/interactionrequests/accept.go b/internal/processing/interactionrequests/accept.go index ad86e50d1..ce682380b 100644 --- a/internal/processing/interactionrequests/accept.go +++ b/internal/processing/interactionrequests/accept.go @@ -21,13 +21,13 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // Accept accepts an interaction request with the given ID, diff --git a/internal/processing/interactionrequests/accept_test.go b/internal/processing/interactionrequests/accept_test.go index 75fb1e512..eae17b6d6 100644 --- a/internal/processing/interactionrequests/accept_test.go +++ b/internal/processing/interactionrequests/accept_test.go @@ -21,10 +21,10 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing/interactionrequests" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/processing/interactionrequests" - "github.com/superseriousbusiness/gotosocial/testrig" ) type AcceptTestSuite struct { diff --git a/internal/processing/interactionrequests/get.go b/internal/processing/interactionrequests/get.go index 8f8a7f35d..397730855 100644 --- a/internal/processing/interactionrequests/get.go +++ b/internal/processing/interactionrequests/get.go @@ -23,13 +23,13 @@ import ( "net/url" "strconv" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "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/paging" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "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/paging" ) // GetPage returns a page of interaction requests targeting diff --git a/internal/processing/interactionrequests/interactionrequests.go b/internal/processing/interactionrequests/interactionrequests.go index d56636233..435bbd42f 100644 --- a/internal/processing/interactionrequests/interactionrequests.go +++ b/internal/processing/interactionrequests/interactionrequests.go @@ -18,9 +18,9 @@ package interactionrequests import ( - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // Processor wraps functionality for getting, diff --git a/internal/processing/interactionrequests/interactionrequests_test.go b/internal/processing/interactionrequests/interactionrequests_test.go index ce2aa351a..6459036fc 100644 --- a/internal/processing/interactionrequests/interactionrequests_test.go +++ b/internal/processing/interactionrequests/interactionrequests_test.go @@ -18,9 +18,9 @@ package interactionrequests_test import ( + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) const ( diff --git a/internal/processing/interactionrequests/reject.go b/internal/processing/interactionrequests/reject.go index dcf07a03f..3ceaa47d9 100644 --- a/internal/processing/interactionrequests/reject.go +++ b/internal/processing/interactionrequests/reject.go @@ -21,12 +21,12 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // Reject rejects an interaction request with the given ID, diff --git a/internal/processing/interactionrequests/reject_test.go b/internal/processing/interactionrequests/reject_test.go index 6e4aac691..353684938 100644 --- a/internal/processing/interactionrequests/reject_test.go +++ b/internal/processing/interactionrequests/reject_test.go @@ -22,11 +22,11 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/processing/interactionrequests" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/processing/interactionrequests" - "github.com/superseriousbusiness/gotosocial/testrig" ) type RejectTestSuite struct { diff --git a/internal/processing/list/create.go b/internal/processing/list/create.go index dacd7909f..43bec321a 100644 --- a/internal/processing/list/create.go +++ b/internal/processing/list/create.go @@ -21,11 +21,11 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" ) // Create creates one a new list for the given account, using the provided parameters. diff --git a/internal/processing/list/delete.go b/internal/processing/list/delete.go index 327ac9d16..8039487dd 100644 --- a/internal/processing/list/delete.go +++ b/internal/processing/list/delete.go @@ -20,9 +20,9 @@ package list import ( "context" - "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" ) // Delete deletes one list for the given account. diff --git a/internal/processing/list/get.go b/internal/processing/list/get.go index b98678eef..aefa01027 100644 --- a/internal/processing/list/get.go +++ b/internal/processing/list/get.go @@ -21,13 +21,13 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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" ) // Get returns the api model of one list with the given ID. diff --git a/internal/processing/list/list.go b/internal/processing/list/list.go index 0003816fb..453bf3a57 100644 --- a/internal/processing/list/list.go +++ b/internal/processing/list/list.go @@ -18,8 +18,8 @@ package list import ( - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/list/update.go b/internal/processing/list/update.go index 408c334de..c64686344 100644 --- a/internal/processing/list/update.go +++ b/internal/processing/list/update.go @@ -21,11 +21,11 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Update updates one list for the given account, using the provided parameters. diff --git a/internal/processing/list/updateentries.go b/internal/processing/list/updateentries.go index c15248f39..7cf6a3cd3 100644 --- a/internal/processing/list/updateentries.go +++ b/internal/processing/list/updateentries.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - "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/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/id" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // AddToList adds targetAccountIDs to the given list, if valid. diff --git a/internal/processing/list/util.go b/internal/processing/list/util.go index 74d148704..faed5479b 100644 --- a/internal/processing/list/util.go +++ b/internal/processing/list/util.go @@ -22,10 +22,10 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // getList is a shortcut to get one list from the database and diff --git a/internal/processing/markers/get.go b/internal/processing/markers/get.go index 38e8b53dc..19c8feedc 100644 --- a/internal/processing/markers/get.go +++ b/internal/processing/markers/get.go @@ -22,11 +22,11 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // Get returns an API model for the markers of the requested timelines. diff --git a/internal/processing/markers/markers.go b/internal/processing/markers/markers.go index 8817ed1a7..18624d44c 100644 --- a/internal/processing/markers/markers.go +++ b/internal/processing/markers/markers.go @@ -18,8 +18,8 @@ package markers import ( - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/markers/update.go b/internal/processing/markers/update.go index 22fe65faf..21c1bc169 100644 --- a/internal/processing/markers/update.go +++ b/internal/processing/markers/update.go @@ -22,10 +22,10 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Update updates the given markers and returns an API model for them. diff --git a/internal/processing/media/create.go b/internal/processing/media/create.go index 5ea630618..e925297ff 100644 --- a/internal/processing/media/create.go +++ b/internal/processing/media/create.go @@ -23,13 +23,13 @@ import ( "fmt" "io" + 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/media" "codeberg.org/gruf/go-iotools" - 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/media" ) // Create creates a new media attachment belonging to the given account, using the request form. diff --git a/internal/processing/media/delete.go b/internal/processing/media/delete.go index 32650fb2c..afb5af1f3 100644 --- a/internal/processing/media/delete.go +++ b/internal/processing/media/delete.go @@ -23,9 +23,9 @@ import ( "fmt" "strings" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/storage" ) // Delete deletes the media attachment with the given ID, including all files pertaining to that attachment. diff --git a/internal/processing/media/getemoji.go b/internal/processing/media/getemoji.go index 06712756a..d80886979 100644 --- a/internal/processing/media/getemoji.go +++ b/internal/processing/media/getemoji.go @@ -21,10 +21,10 @@ import ( "context" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // GetCustomEmojis returns a list of all useable local custom emojis stored on this instance. diff --git a/internal/processing/media/getfile.go b/internal/processing/media/getfile.go index 11d8f7eb5..2f46d6e0c 100644 --- a/internal/processing/media/getfile.go +++ b/internal/processing/media/getfile.go @@ -25,14 +25,14 @@ import ( "strings" "time" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/regexes" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/uris" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/regexes" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // GetFile retrieves a file from storage and streams it back diff --git a/internal/processing/media/getfile_test.go b/internal/processing/media/getfile_test.go index 34f5d99a2..cde0864f8 100644 --- a/internal/processing/media/getfile_test.go +++ b/internal/processing/media/getfile_test.go @@ -23,12 +23,12 @@ import ( "path" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type GetFileTestSuite struct { diff --git a/internal/processing/media/getmedia.go b/internal/processing/media/getmedia.go index 8f5b9d740..5144bbd8e 100644 --- a/internal/processing/media/getmedia.go +++ b/internal/processing/media/getmedia.go @@ -22,10 +22,10 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) func (p *Processor) Get(ctx context.Context, account *gtsmodel.Account, mediaAttachmentID string) (*apimodel.Attachment, gtserror.WithCode) { diff --git a/internal/processing/media/media.go b/internal/processing/media/media.go index 76ed68f5a..4967e4d11 100644 --- a/internal/processing/media/media.go +++ b/internal/processing/media/media.go @@ -18,12 +18,12 @@ package media import ( - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/media/media_test.go b/internal/processing/media/media_test.go index 6d44321b7..b074ae768 100644 --- a/internal/processing/media/media_test.go +++ b/internal/processing/media/media_test.go @@ -18,19 +18,19 @@ package media_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "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/common" + mediaprocessing "code.superseriousbusiness.org/gotosocial/internal/processing/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/db" - "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/common" - mediaprocessing "github.com/superseriousbusiness/gotosocial/internal/processing/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 MediaStandardTestSuite struct { diff --git a/internal/processing/media/profile.go b/internal/processing/media/profile.go index 5c266e372..38c2893e1 100644 --- a/internal/processing/media/profile.go +++ b/internal/processing/media/profile.go @@ -21,9 +21,9 @@ import ( "context" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // DeleteAvatar deletes the account's avatar, if one exists, and returns the updated account. diff --git a/internal/processing/media/unattach.go b/internal/processing/media/unattach.go index ddf2dda20..8eec907fd 100644 --- a/internal/processing/media/unattach.go +++ b/internal/processing/media/unattach.go @@ -22,10 +22,10 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Unattach unattaches the media attachment with the given ID from any statuses it was attached to, making it available diff --git a/internal/processing/media/update.go b/internal/processing/media/update.go index 5afa5d63c..3acf238b0 100644 --- a/internal/processing/media/update.go +++ b/internal/processing/media/update.go @@ -22,13 +22,13 @@ import ( "errors" "fmt" - 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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/text" + 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/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/text" ) // Update updates a media attachment with the given id, using the provided form parameters. diff --git a/internal/processing/oauth.go b/internal/processing/oauth.go index d597a6dc6..573c0d53a 100644 --- a/internal/processing/oauth.go +++ b/internal/processing/oauth.go @@ -21,8 +21,8 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/oauth2/v4" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/oauth2/v4" ) func (p *Processor) OAuthHandleAuthorizeRequest(w http.ResponseWriter, r *http.Request) gtserror.WithCode { diff --git a/internal/processing/parsemention.go b/internal/processing/parsemention.go index 035f057b8..7a75cb9bc 100644 --- a/internal/processing/parsemention.go +++ b/internal/processing/parsemention.go @@ -19,15 +19,17 @@ package processing import ( "context" + "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "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/federation" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // GetParseMentionFunc returns a new ParseMentionFunc using the provided state and federator. @@ -100,7 +102,29 @@ func GetParseMentionFunc(state *state.State, federator *federation.Federator) gt } } - // Return mention with useful populated fields, + // Check if the mention was + // in the database already. + if statusID != "" { + mention, err := state.DB.GetMentionByTargetAcctStatus(ctx, targetAcct.ID, statusID) + if err != nil && !errors.Is(err, db.ErrNoEntries) { + return nil, fmt.Errorf( + "db error checking for existing mention: %w", + err, + ) + } + + if mention != nil { + // We had it, return this rather + // than creating a new one. + mention.NameString = namestring + mention.OriginAccountURI = originAcct.URI + mention.TargetAccountURI = targetAcct.URI + mention.TargetAccountURL = targetAcct.URL + return mention, nil + } + } + + // Return new mention with useful populated fields, // but *don't* store it in the database; that's // up to the calling function to do, if they want. return >smodel.Mention{ @@ -114,6 +138,10 @@ func GetParseMentionFunc(state *state.State, federator *federation.Federator) gt TargetAccountURL: targetAcct.URL, TargetAccount: targetAcct, NameString: namestring, + + // Mention wasn't + // stored in the db. + IsNew: true, }, nil } } diff --git a/internal/processing/parsemention_test.go b/internal/processing/parsemention_test.go index f97133969..2c2cc3085 100644 --- a/internal/processing/parsemention_test.go +++ b/internal/processing/parsemention_test.go @@ -22,10 +22,10 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/processing" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/processing" ) type ParseMentionTestSuite struct { diff --git a/internal/processing/polls/expiry.go b/internal/processing/polls/expiry.go index d02a05f0d..5ce893111 100644 --- a/internal/processing/polls/expiry.go +++ b/internal/processing/polls/expiry.go @@ -21,12 +21,12 @@ import ( "context" "time" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "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/gotosocial/internal/ap" + "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 (p *Processor) ScheduleAll(ctx context.Context) error { diff --git a/internal/processing/polls/get.go b/internal/processing/polls/get.go index 42fecbd43..fa4e235f7 100644 --- a/internal/processing/polls/get.go +++ b/internal/processing/polls/get.go @@ -20,9 +20,9 @@ package polls import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) func (p *Processor) PollGet(ctx context.Context, requester *gtsmodel.Account, pollID string) (*apimodel.Poll, gtserror.WithCode) { diff --git a/internal/processing/polls/poll.go b/internal/processing/polls/poll.go index fe8fc71c5..c51bb0e96 100644 --- a/internal/processing/polls/poll.go +++ b/internal/processing/polls/poll.go @@ -20,12 +20,12 @@ package polls import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/polls/poll_test.go b/internal/processing/polls/poll_test.go index bf6ae4aad..421f05361 100644 --- a/internal/processing/polls/poll_test.go +++ b/internal/processing/polls/poll_test.go @@ -23,17 +23,17 @@ import ( "net/http" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/processing/polls" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/processing/polls" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type PollTestSuite struct { diff --git a/internal/processing/polls/vote.go b/internal/processing/polls/vote.go index 6585793cd..14777d9df 100644 --- a/internal/processing/polls/vote.go +++ b/internal/processing/polls/vote.go @@ -21,13 +21,13 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/messages" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/messages" ) func (p *Processor) PollVote(ctx context.Context, requester *gtsmodel.Account, pollID string, choices []int) (*apimodel.Poll, gtserror.WithCode) { diff --git a/internal/processing/preferences.go b/internal/processing/preferences.go index fb445ec5b..ebcb0e6b6 100644 --- a/internal/processing/preferences.go +++ b/internal/processing/preferences.go @@ -20,9 +20,9 @@ package processing import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) func (p *Processor) PreferencesGet(ctx context.Context, accountID string) (*apimodel.Preferences, gtserror.WithCode) { diff --git a/internal/processing/preferences_test.go b/internal/processing/preferences_test.go index be88b5edf..dc6a8d878 100644 --- a/internal/processing/preferences_test.go +++ b/internal/processing/preferences_test.go @@ -21,9 +21,9 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type PreferencesTestSuite struct { diff --git a/internal/processing/processor.go b/internal/processing/processor.go index 0324f49cf..63e996b38 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -18,42 +18,42 @@ package processing import ( - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/email" - "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" - mm "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing/account" - "github.com/superseriousbusiness/gotosocial/internal/processing/admin" - "github.com/superseriousbusiness/gotosocial/internal/processing/advancedmigrations" - "github.com/superseriousbusiness/gotosocial/internal/processing/application" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/processing/conversations" - "github.com/superseriousbusiness/gotosocial/internal/processing/fedi" - filtersv1 "github.com/superseriousbusiness/gotosocial/internal/processing/filters/v1" - filtersv2 "github.com/superseriousbusiness/gotosocial/internal/processing/filters/v2" - "github.com/superseriousbusiness/gotosocial/internal/processing/interactionrequests" - "github.com/superseriousbusiness/gotosocial/internal/processing/list" - "github.com/superseriousbusiness/gotosocial/internal/processing/markers" - "github.com/superseriousbusiness/gotosocial/internal/processing/media" - "github.com/superseriousbusiness/gotosocial/internal/processing/polls" - "github.com/superseriousbusiness/gotosocial/internal/processing/push" - "github.com/superseriousbusiness/gotosocial/internal/processing/report" - "github.com/superseriousbusiness/gotosocial/internal/processing/search" - "github.com/superseriousbusiness/gotosocial/internal/processing/status" - "github.com/superseriousbusiness/gotosocial/internal/processing/stream" - "github.com/superseriousbusiness/gotosocial/internal/processing/tags" - "github.com/superseriousbusiness/gotosocial/internal/processing/timeline" - "github.com/superseriousbusiness/gotosocial/internal/processing/user" - "github.com/superseriousbusiness/gotosocial/internal/processing/workers" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/webpush" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/email" + "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" + mm "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing/account" + "code.superseriousbusiness.org/gotosocial/internal/processing/admin" + "code.superseriousbusiness.org/gotosocial/internal/processing/advancedmigrations" + "code.superseriousbusiness.org/gotosocial/internal/processing/application" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/processing/conversations" + "code.superseriousbusiness.org/gotosocial/internal/processing/fedi" + filtersv1 "code.superseriousbusiness.org/gotosocial/internal/processing/filters/v1" + filtersv2 "code.superseriousbusiness.org/gotosocial/internal/processing/filters/v2" + "code.superseriousbusiness.org/gotosocial/internal/processing/interactionrequests" + "code.superseriousbusiness.org/gotosocial/internal/processing/list" + "code.superseriousbusiness.org/gotosocial/internal/processing/markers" + "code.superseriousbusiness.org/gotosocial/internal/processing/media" + "code.superseriousbusiness.org/gotosocial/internal/processing/polls" + "code.superseriousbusiness.org/gotosocial/internal/processing/push" + "code.superseriousbusiness.org/gotosocial/internal/processing/report" + "code.superseriousbusiness.org/gotosocial/internal/processing/search" + "code.superseriousbusiness.org/gotosocial/internal/processing/status" + "code.superseriousbusiness.org/gotosocial/internal/processing/stream" + "code.superseriousbusiness.org/gotosocial/internal/processing/tags" + "code.superseriousbusiness.org/gotosocial/internal/processing/timeline" + "code.superseriousbusiness.org/gotosocial/internal/processing/user" + "code.superseriousbusiness.org/gotosocial/internal/processing/workers" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/webpush" ) // Processor groups together processing functions and diff --git a/internal/processing/processor_test.go b/internal/processing/processor_test.go index 4b6406b03..f280d6884 100644 --- a/internal/processing/processor_test.go +++ b/internal/processing/processor_test.go @@ -20,26 +20,26 @@ package processing_test import ( "context" + "code.superseriousbusiness.org/gotosocial/internal/admin" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "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/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/stream" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "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" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "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/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/stream" - "github.com/superseriousbusiness/gotosocial/internal/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ProcessingStandardTestSuite struct { diff --git a/internal/processing/push/create.go b/internal/processing/push/create.go index dc15ccf12..3beeab6cc 100644 --- a/internal/processing/push/create.go +++ b/internal/processing/push/create.go @@ -20,11 +20,11 @@ package push import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // CreateOrReplace creates a Web Push subscription for the given access token, diff --git a/internal/processing/push/delete.go b/internal/processing/push/delete.go index 6f5c61444..e5369f56a 100644 --- a/internal/processing/push/delete.go +++ b/internal/processing/push/delete.go @@ -20,7 +20,7 @@ package push import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // Delete deletes the Web Push subscription for the given access token, if there is one. diff --git a/internal/processing/push/get.go b/internal/processing/push/get.go index 542f08862..df0e80dc3 100644 --- a/internal/processing/push/get.go +++ b/internal/processing/push/get.go @@ -21,9 +21,9 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // Get returns the Web Push subscription for the given access token. diff --git a/internal/processing/push/push.go b/internal/processing/push/push.go index f46280386..24a2254ac 100644 --- a/internal/processing/push/push.go +++ b/internal/processing/push/push.go @@ -20,11 +20,11 @@ package push import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/push/update.go b/internal/processing/push/update.go index 94529455a..bbd9e3943 100644 --- a/internal/processing/push/update.go +++ b/internal/processing/push/update.go @@ -21,10 +21,10 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // Update updates the Web Push subscription for the given access token. diff --git a/internal/processing/report/create.go b/internal/processing/report/create.go index dd31a8798..734670e17 100644 --- a/internal/processing/report/create.go +++ b/internal/processing/report/create.go @@ -22,14 +22,14 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/messages" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/messages" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // Create creates one user report / flag, using the provided form parameters. diff --git a/internal/processing/report/get.go b/internal/processing/report/get.go index 2e3c1b2dc..136f09470 100644 --- a/internal/processing/report/get.go +++ b/internal/processing/report/get.go @@ -24,12 +24,12 @@ import ( "net/url" "strconv" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/paging" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/paging" ) // Get returns the user view of a moderation report, with the given id. diff --git a/internal/processing/report/report.go b/internal/processing/report/report.go index c871172bb..cdc2dc3e0 100644 --- a/internal/processing/report/report.go +++ b/internal/processing/report/report.go @@ -18,8 +18,8 @@ package report import ( - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/search/accounts.go b/internal/processing/search/accounts.go index 7201d0688..9345aaba6 100644 --- a/internal/processing/search/accounts.go +++ b/internal/processing/search/accounts.go @@ -22,14 +22,14 @@ import ( "errors" "strings" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/util" "codeberg.org/gruf/go-kv" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/util" ) // Accounts does a partial search for accounts that diff --git a/internal/processing/search/get.go b/internal/processing/search/get.go index 7a65bed1d..2051fb399 100644 --- a/internal/processing/search/get.go +++ b/internal/processing/search/get.go @@ -25,16 +25,16 @@ import ( "net/url" "strings" + 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/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-kv" - 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/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/util" ) const ( diff --git a/internal/processing/search/lookup.go b/internal/processing/search/lookup.go index f5c131841..3250f9848 100644 --- a/internal/processing/search/lookup.go +++ b/internal/processing/search/lookup.go @@ -23,12 +23,12 @@ import ( "fmt" "strings" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-kv" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // Lookup does a quick, non-resolving search for accounts that diff --git a/internal/processing/search/search.go b/internal/processing/search/search.go index 18008647c..0543b4db4 100644 --- a/internal/processing/search/search.go +++ b/internal/processing/search/search.go @@ -18,10 +18,10 @@ package search import ( - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/search/util.go b/internal/processing/search/util.go index e2947ea16..5d8e34960 100644 --- a/internal/processing/search/util.go +++ b/internal/processing/search/util.go @@ -20,11 +20,11 @@ package search import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // return true if given queryType should include accounts. diff --git a/internal/processing/status/bookmark.go b/internal/processing/status/bookmark.go index ae61696a8..7996a9518 100644 --- a/internal/processing/status/bookmark.go +++ b/internal/processing/status/bookmark.go @@ -21,12 +21,12 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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" ) // BookmarkCreate adds a bookmark for the requestingAccount, targeting the given status (no-op if bookmark already exists). diff --git a/internal/processing/status/boost.go b/internal/processing/status/boost.go index 0e09a8e7b..c8c50d3ee 100644 --- a/internal/processing/status/boost.go +++ b/internal/processing/status/boost.go @@ -22,13 +22,13 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // BoostCreate processes the boost/reblog of target diff --git a/internal/processing/status/common.go b/internal/processing/status/common.go index 77058ed10..c764a64b4 100644 --- a/internal/processing/status/common.go +++ b/internal/processing/status/common.go @@ -23,16 +23,16 @@ import ( "fmt" "time" - 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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" - "github.com/superseriousbusiness/gotosocial/internal/validate" + 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/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/validate" ) // validateStatusContent will validate the common diff --git a/internal/processing/status/context.go b/internal/processing/status/context.go index 47806a64b..c18a4f7bd 100644 --- a/internal/processing/status/context.go +++ b/internal/processing/status/context.go @@ -23,11 +23,11 @@ import ( "slices" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // internalThreadContext is like diff --git a/internal/processing/status/context_test.go b/internal/processing/status/context_test.go index aba58e776..5d7e40b71 100644 --- a/internal/processing/status/context_test.go +++ b/internal/processing/status/context_test.go @@ -20,9 +20,9 @@ package status_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing/status" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/processing/status" ) type topoSortTestSuite struct { diff --git a/internal/processing/status/create.go b/internal/processing/status/create.go index 775ba78e2..8596f2f1a 100644 --- a/internal/processing/status/create.go +++ b/internal/processing/status/create.go @@ -22,19 +22,19 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/ap" - 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/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" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/ap" + 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/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" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // Create processes the given form to create a new status, returning the api model representation of that status if it's OK. diff --git a/internal/processing/status/create_test.go b/internal/processing/status/create_test.go index 1199642b6..13e066387 100644 --- a/internal/processing/status/create_test.go +++ b/internal/processing/status/create_test.go @@ -21,12 +21,12 @@ import ( "context" "testing" + 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/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - 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/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type StatusCreateTestSuite struct { diff --git a/internal/processing/status/delete.go b/internal/processing/status/delete.go index 8fec8fc5e..4a3c32f4a 100644 --- a/internal/processing/status/delete.go +++ b/internal/processing/status/delete.go @@ -22,11 +22,11 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) // Delete processes the delete of a given status, returning the deleted status if the delete goes through. diff --git a/internal/processing/status/edit.go b/internal/processing/status/edit.go index a9323a72c..464ddde43 100644 --- a/internal/processing/status/edit.go +++ b/internal/processing/status/edit.go @@ -24,16 +24,16 @@ import ( "slices" "time" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "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/util/xslices" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/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/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" ) // Edit ... diff --git a/internal/processing/status/edit_test.go b/internal/processing/status/edit_test.go index e6673c3cc..6078a7d3e 100644 --- a/internal/processing/status/edit_test.go +++ b/internal/processing/status/edit_test.go @@ -23,12 +23,12 @@ import ( "testing" "time" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" ) type StatusEditTestSuite struct { diff --git a/internal/processing/status/fave.go b/internal/processing/status/fave.go index defc59af0..95eb8bff2 100644 --- a/internal/processing/status/fave.go +++ b/internal/processing/status/fave.go @@ -22,16 +22,16 @@ import ( "errors" "fmt" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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" + "code.superseriousbusiness.org/gotosocial/internal/util" ) func (p *Processor) getFaveableStatus( diff --git a/internal/processing/status/get.go b/internal/processing/status/get.go index e97d9e1b2..edcaa07fa 100644 --- a/internal/processing/status/get.go +++ b/internal/processing/status/get.go @@ -21,10 +21,10 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // Get gets the given status, taking account of privacy settings and blocks etc. diff --git a/internal/processing/status/mute.go b/internal/processing/status/mute.go index 8888b59d4..638b7cfb2 100644 --- a/internal/processing/status/mute.go +++ b/internal/processing/status/mute.go @@ -21,11 +21,11 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" ) // getMuteableStatus fetches targetStatusID status and diff --git a/internal/processing/status/pin.go b/internal/processing/status/pin.go index 3f8435e52..dad11d6b2 100644 --- a/internal/processing/status/pin.go +++ b/internal/processing/status/pin.go @@ -23,9 +23,9 @@ import ( "fmt" "time" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) const allowedPinnedCount = 10 diff --git a/internal/processing/status/status.go b/internal/processing/status/status.go index 26dfd0d7a..b911c03d7 100644 --- a/internal/processing/status/status.go +++ b/internal/processing/status/status.go @@ -18,16 +18,16 @@ package status import ( - "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/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/processing/interactionrequests" - "github.com/superseriousbusiness/gotosocial/internal/processing/polls" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "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/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/processing/interactionrequests" + "code.superseriousbusiness.org/gotosocial/internal/processing/polls" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/status/status_test.go b/internal/processing/status/status_test.go index c163f95a7..075a22397 100644 --- a/internal/processing/status/status_test.go +++ b/internal/processing/status/status_test.go @@ -18,24 +18,24 @@ package status_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "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/media" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/processing/interactionrequests" + "code.superseriousbusiness.org/gotosocial/internal/processing/polls" + "code.superseriousbusiness.org/gotosocial/internal/processing/status" + "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/db" - "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/media" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/processing/interactionrequests" - "github.com/superseriousbusiness/gotosocial/internal/processing/polls" - "github.com/superseriousbusiness/gotosocial/internal/processing/status" - "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 StatusStandardTestSuite struct { diff --git a/internal/processing/status/util.go b/internal/processing/status/util.go index 99cff7c56..fcaf37d82 100644 --- a/internal/processing/status/util.go +++ b/internal/processing/status/util.go @@ -21,10 +21,10 @@ import ( "context" "errors" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "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/util" ) func (p *Processor) implicitlyAccept( diff --git a/internal/processing/stream/authorize.go b/internal/processing/stream/authorize.go index cedd21e0b..44463d5c6 100644 --- a/internal/processing/stream/authorize.go +++ b/internal/processing/stream/authorize.go @@ -24,10 +24,10 @@ import ( "slices" "strings" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Authorize returns an oauth2 token info in response to an access token query from the streaming API diff --git a/internal/processing/stream/authorize_test.go b/internal/processing/stream/authorize_test.go index cb91d5b30..ee0e528af 100644 --- a/internal/processing/stream/authorize_test.go +++ b/internal/processing/stream/authorize_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 AuthorizeTestSuite struct { diff --git a/internal/processing/stream/conversation.go b/internal/processing/stream/conversation.go index a0236c459..b5394ee17 100644 --- a/internal/processing/stream/conversation.go +++ b/internal/processing/stream/conversation.go @@ -21,10 +21,10 @@ import ( "context" "encoding/json" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/stream" "codeberg.org/gruf/go-byteutil" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/stream" ) // Conversation streams the given conversation to any open, appropriate streams belonging to the given account. diff --git a/internal/processing/stream/delete.go b/internal/processing/stream/delete.go index 1c61b98d3..fc763f910 100644 --- a/internal/processing/stream/delete.go +++ b/internal/processing/stream/delete.go @@ -20,7 +20,7 @@ package stream import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/internal/stream" ) // Delete streams the delete of the given statusID to *ALL* open streams. diff --git a/internal/processing/stream/filterschanged.go b/internal/processing/stream/filterschanged.go index b98506b9f..dff22c64b 100644 --- a/internal/processing/stream/filterschanged.go +++ b/internal/processing/stream/filterschanged.go @@ -20,8 +20,8 @@ package stream import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/stream" ) // FiltersChanged streams a filters changed event to any open, appropriate streams belonging to the given account. diff --git a/internal/processing/stream/notification.go b/internal/processing/stream/notification.go index a16da11e6..ef3acdc79 100644 --- a/internal/processing/stream/notification.go +++ b/internal/processing/stream/notification.go @@ -21,11 +21,11 @@ import ( "context" "encoding/json" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/stream" "codeberg.org/gruf/go-byteutil" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/stream" ) // Notify streams the given notification to any open, appropriate streams belonging to the given account. diff --git a/internal/processing/stream/notification_test.go b/internal/processing/stream/notification_test.go index 2ede28079..e0874e713 100644 --- a/internal/processing/stream/notification_test.go +++ b/internal/processing/stream/notification_test.go @@ -23,9 +23,9 @@ import ( "encoding/json" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" ) type NotificationTestSuite struct { diff --git a/internal/processing/stream/open.go b/internal/processing/stream/open.go index 2f2bbd4a3..bafa277a5 100644 --- a/internal/processing/stream/open.go +++ b/internal/processing/stream/open.go @@ -20,11 +20,11 @@ package stream import ( "context" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/stream" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/stream" ) // Open returns a new Stream for the given account, which will contain a channel for passing messages back to the caller. diff --git a/internal/processing/stream/statusupdate.go b/internal/processing/stream/statusupdate.go index bd4658873..2f1ca598b 100644 --- a/internal/processing/stream/statusupdate.go +++ b/internal/processing/stream/statusupdate.go @@ -21,11 +21,11 @@ import ( "context" "encoding/json" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/stream" "codeberg.org/gruf/go-byteutil" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/stream" ) // StatusUpdate streams the given edited status to any open, appropriate streams belonging to the given account. diff --git a/internal/processing/stream/statusupdate_test.go b/internal/processing/stream/statusupdate_test.go index 1f0bcd142..0045cceed 100644 --- a/internal/processing/stream/statusupdate_test.go +++ b/internal/processing/stream/statusupdate_test.go @@ -23,10 +23,10 @@ import ( "encoding/json" "testing" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" "github.com/stretchr/testify/suite" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" ) type StatusUpdateTestSuite struct { diff --git a/internal/processing/stream/stream.go b/internal/processing/stream/stream.go index 0b7285b58..19a82a8a2 100644 --- a/internal/processing/stream/stream.go +++ b/internal/processing/stream/stream.go @@ -18,9 +18,9 @@ package stream import ( - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/stream" ) type Processor struct { diff --git a/internal/processing/stream/stream_test.go b/internal/processing/stream/stream_test.go index 3e5bad2b1..47c85af1f 100644 --- a/internal/processing/stream/stream_test.go +++ b/internal/processing/stream/stream_test.go @@ -18,14 +18,14 @@ package stream_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing/stream" + "code.superseriousbusiness.org/gotosocial/internal/state" + "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/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing/stream" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/testrig" ) type StreamTestSuite struct { diff --git a/internal/processing/stream/update.go b/internal/processing/stream/update.go index a84763d51..f2b064c28 100644 --- a/internal/processing/stream/update.go +++ b/internal/processing/stream/update.go @@ -21,11 +21,11 @@ import ( "context" "encoding/json" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/stream" "codeberg.org/gruf/go-byteutil" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/stream" ) // Update streams the given update to any open, appropriate streams belonging to the given account. diff --git a/internal/processing/tags/follow.go b/internal/processing/tags/follow.go index f840f4bb7..b0ee0a995 100644 --- a/internal/processing/tags/follow.go +++ b/internal/processing/tags/follow.go @@ -21,11 +21,11 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" ) // Follow follows the tag with the given name as the given account. diff --git a/internal/processing/tags/followed.go b/internal/processing/tags/followed.go index b9c450653..eaecc0983 100644 --- a/internal/processing/tags/followed.go +++ b/internal/processing/tags/followed.go @@ -21,12 +21,12 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // Followed gets the user's list of followed tags. diff --git a/internal/processing/tags/followedtags.go b/internal/processing/tags/followedtags.go index c9093a6c6..1619e433a 100644 --- a/internal/processing/tags/followedtags.go +++ b/internal/processing/tags/followedtags.go @@ -20,11 +20,11 @@ package tags import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/tags/get.go b/internal/processing/tags/get.go index c8fa66137..c7e343150 100644 --- a/internal/processing/tags/get.go +++ b/internal/processing/tags/get.go @@ -21,10 +21,10 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Get gets the tag with the given name, including whether it's followed by the given account. diff --git a/internal/processing/tags/unfollow.go b/internal/processing/tags/unfollow.go index fb844cd9f..8f303466c 100644 --- a/internal/processing/tags/unfollow.go +++ b/internal/processing/tags/unfollow.go @@ -21,10 +21,10 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Unfollow unfollows the tag with the given name as the given account. diff --git a/internal/processing/timeline/common.go b/internal/processing/timeline/common.go index 6d29d81d6..723469a29 100644 --- a/internal/processing/timeline/common.go +++ b/internal/processing/timeline/common.go @@ -20,7 +20,7 @@ package timeline import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/timeline" + "code.superseriousbusiness.org/gotosocial/internal/timeline" ) // SkipInsert returns a function that satisifes SkipInsertFunction. diff --git a/internal/processing/timeline/faved.go b/internal/processing/timeline/faved.go index 6e915f4ef..63cf1ad59 100644 --- a/internal/processing/timeline/faved.go +++ b/internal/processing/timeline/faved.go @@ -22,13 +22,13 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" - "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/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" ) func (p *Processor) FavedTimelineGet(ctx context.Context, authed *apiutil.Auth, maxID string, minID string, limit int) (*apimodel.PageableResponse, gtserror.WithCode) { diff --git a/internal/processing/timeline/home.go b/internal/processing/timeline/home.go index 38cf38405..286581724 100644 --- a/internal/processing/timeline/home.go +++ b/internal/processing/timeline/home.go @@ -21,19 +21,19 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "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/timeline" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "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/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "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/timeline" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // HomeTimelineGrab returns a function that satisfies GrabFunction for home timelines. diff --git a/internal/processing/timeline/home_test.go b/internal/processing/timeline/home_test.go index ea56418f6..7ee803161 100644 --- a/internal/processing/timeline/home_test.go +++ b/internal/processing/timeline/home_test.go @@ -21,16 +21,16 @@ import ( "context" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + tlprocessor "code.superseriousbusiness.org/gotosocial/internal/processing/timeline" + "code.superseriousbusiness.org/gotosocial/internal/timeline" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - tlprocessor "github.com/superseriousbusiness/gotosocial/internal/processing/timeline" - "github.com/superseriousbusiness/gotosocial/internal/timeline" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type HomeTestSuite struct { diff --git a/internal/processing/timeline/list.go b/internal/processing/timeline/list.go index 147f87ab4..07cefc35e 100644 --- a/internal/processing/timeline/list.go +++ b/internal/processing/timeline/list.go @@ -21,19 +21,19 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "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/timeline" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "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/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "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/timeline" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // ListTimelineGrab returns a function that satisfies GrabFunction for list timelines. diff --git a/internal/processing/timeline/notification.go b/internal/processing/timeline/notification.go index 04a898198..addff5ef4 100644 --- a/internal/processing/timeline/notification.go +++ b/internal/processing/timeline/notification.go @@ -23,17 +23,17 @@ import ( "fmt" "net/url" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "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" ) func (p *Processor) NotificationsGet( diff --git a/internal/processing/timeline/public.go b/internal/processing/timeline/public.go index dc00688e3..31cca4403 100644 --- a/internal/processing/timeline/public.go +++ b/internal/processing/timeline/public.go @@ -22,15 +22,15 @@ import ( "errors" "strconv" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "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" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "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" ) func (p *Processor) PublicTimelineGet( diff --git a/internal/processing/timeline/public_test.go b/internal/processing/timeline/public_test.go index ab8e33429..6e1b5eeb2 100644 --- a/internal/processing/timeline/public_test.go +++ b/internal/processing/timeline/public_test.go @@ -21,11 +21,11 @@ import ( "context" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type PublicTestSuite struct { diff --git a/internal/processing/timeline/tag.go b/internal/processing/timeline/tag.go index 811d0bb33..8aa3957ec 100644 --- a/internal/processing/timeline/tag.go +++ b/internal/processing/timeline/tag.go @@ -22,16 +22,16 @@ import ( "errors" "fmt" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "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/text" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "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/text" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // TagTimelineGet gets a pageable timeline for the given diff --git a/internal/processing/timeline/timeline.go b/internal/processing/timeline/timeline.go index 5966fe864..90a8ab15a 100644 --- a/internal/processing/timeline/timeline.go +++ b/internal/processing/timeline/timeline.go @@ -18,9 +18,9 @@ package timeline import ( - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/timeline/timeline_test.go b/internal/processing/timeline/timeline_test.go index 8ff6be5d1..5afbb2353 100644 --- a/internal/processing/timeline/timeline_test.go +++ b/internal/processing/timeline/timeline_test.go @@ -18,15 +18,15 @@ package timeline_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing/timeline" + "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/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/processing/timeline" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type TimelineStandardTestSuite struct { diff --git a/internal/processing/user/create.go b/internal/processing/user/create.go index dde69a6ef..0b2451b4c 100644 --- a/internal/processing/user/create.go +++ b/internal/processing/user/create.go @@ -22,14 +22,14 @@ import ( "fmt" "time" - "codeberg.org/superseriousbusiness/oauth2/v4" - "github.com/superseriousbusiness/gotosocial/internal/ap" - 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/messages" - "github.com/superseriousbusiness/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/ap" + 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/messages" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/oauth2/v4" ) // Create processes the given form for creating a new user+account. diff --git a/internal/processing/user/create_test.go b/internal/processing/user/create_test.go index 9781a4214..d193ab883 100644 --- a/internal/processing/user/create_test.go +++ b/internal/processing/user/create_test.go @@ -22,8 +22,8 @@ import ( "net" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" ) type CreateTestSuite struct { diff --git a/internal/processing/user/delete.go b/internal/processing/user/delete.go index 9783010ef..8ab70b278 100644 --- a/internal/processing/user/delete.go +++ b/internal/processing/user/delete.go @@ -20,10 +20,10 @@ package user import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" ) // DeleteSelf is like Account.Delete, but specifically diff --git a/internal/processing/user/email.go b/internal/processing/user/email.go index 417c7c341..7339b282d 100644 --- a/internal/processing/user/email.go +++ b/internal/processing/user/email.go @@ -23,14 +23,14 @@ import ( "fmt" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/validate" "codeberg.org/gruf/go-byteutil" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/validate" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/processing/user/get.go b/internal/processing/user/get.go index 9b19189a8..cbc8c6631 100644 --- a/internal/processing/user/get.go +++ b/internal/processing/user/get.go @@ -20,9 +20,9 @@ package user import ( "context" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // Get returns the API model of the given user. diff --git a/internal/processing/user/password.go b/internal/processing/user/password.go index ead79e209..bcde46b3f 100644 --- a/internal/processing/user/password.go +++ b/internal/processing/user/password.go @@ -20,10 +20,10 @@ package user import ( "context" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/validate" "codeberg.org/gruf/go-byteutil" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/validate" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/processing/user/password_test.go b/internal/processing/user/password_test.go index 7d45341c0..5f65a9e1a 100644 --- a/internal/processing/user/password_test.go +++ b/internal/processing/user/password_test.go @@ -22,9 +22,9 @@ import ( "net/http" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "codeberg.org/gruf/go-byteutil" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/processing/user/twofactor.go b/internal/processing/user/twofactor.go index 02365f3f1..ec0a3edc8 100644 --- a/internal/processing/user/twofactor.go +++ b/internal/processing/user/twofactor.go @@ -30,14 +30,14 @@ import ( "strings" "time" + 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/util" "codeberg.org/gruf/go-byteutil" "github.com/pquerna/otp" "github.com/pquerna/otp/totp" - 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/util" "golang.org/x/crypto/bcrypt" ) diff --git a/internal/processing/user/user.go b/internal/processing/user/user.go index 5efb89061..412935fba 100644 --- a/internal/processing/user/user.go +++ b/internal/processing/user/user.go @@ -18,10 +18,10 @@ package user import ( - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Processor struct { diff --git a/internal/processing/user/user_test.go b/internal/processing/user/user_test.go index 46fc73206..9db26a725 100644 --- a/internal/processing/user/user_test.go +++ b/internal/processing/user/user_test.go @@ -18,16 +18,16 @@ package user_test import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/processing/user" + "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/email" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/processing/user" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type UserStandardTestSuite struct { diff --git a/internal/processing/workers/federate.go b/internal/processing/workers/federate.go index 783bf8e39..3cc3d130c 100644 --- a/internal/processing/workers/federate.go +++ b/internal/processing/workers/federate.go @@ -21,15 +21,15 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // federate wraps functions for federating diff --git a/internal/processing/workers/fromclientapi.go b/internal/processing/workers/fromclientapi.go index 28a2b37b9..8dbb7393a 100644 --- a/internal/processing/workers/fromclientapi.go +++ b/internal/processing/workers/fromclientapi.go @@ -22,21 +22,21 @@ import ( "errors" "time" + "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" + "code.superseriousbusiness.org/gotosocial/internal/processing/account" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-kv" - "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" - "github.com/superseriousbusiness/gotosocial/internal/processing/account" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // clientAPI wraps processing functions @@ -731,6 +731,25 @@ func (p *clientAPI) UpdateStatus(ctx context.Context, cMsg *messages.FromClientA } } + // Notify any *new* mentions added + // to this status by the editor. + for _, mention := range status.Mentions { + // Check if we've seen + // this mention already. + if !mention.IsNew { + // Already seen + // it, skip. + continue + } + + // Haven't seen this mention + // yet, notify it if necessary. + mention.Status = status + if err := p.surface.notifyMention(ctx, mention); err != nil { + log.Errorf(ctx, "error notifying mention: %v", err) + } + } + // Push message that the status has been edited to streams. if err := p.surface.timelineStatusUpdate(ctx, status); err != nil { log.Errorf(ctx, "error streaming status edit: %v", err) diff --git a/internal/processing/workers/fromclientapi_test.go b/internal/processing/workers/fromclientapi_test.go index 1d70eb96c..c643e0c70 100644 --- a/internal/processing/workers/fromclientapi_test.go +++ b/internal/processing/workers/fromclientapi_test.go @@ -24,19 +24,19 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "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/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FromClientAPITestSuite struct { @@ -89,6 +89,7 @@ func (suite *FromClientAPITestSuite) newStatus( OriginAccountID: account.ID, OriginAccountURI: account.URI, TargetAccountID: replyToStatus.AccountID, + IsNew: true, } if err := state.DB.PutMention(ctx, mention); err != nil { @@ -117,6 +118,7 @@ func (suite *FromClientAPITestSuite) newStatus( TargetAccountID: mentionedAccount.ID, TargetAccount: mentionedAccount, Silent: util.Ptr(false), + IsNew: true, } newStatus.Mentions = append(newStatus.Mentions, newMention) diff --git a/internal/processing/workers/fromfediapi.go b/internal/processing/workers/fromfediapi.go index 2e513449b..7aa858603 100644 --- a/internal/processing/workers/fromfediapi.go +++ b/internal/processing/workers/fromfediapi.go @@ -23,22 +23,22 @@ import ( "net/url" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/dereferencing" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/uris" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "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/processing/account" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util" + "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/processing/account" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // fediAPI wraps processing functions @@ -998,12 +998,31 @@ func (p *fediAPI) UpdateStatus(ctx context.Context, fMsg *messages.FromFediAPI) } } + // Notify any *new* mentions added + // to this status by the editor. + for _, mention := range status.Mentions { + // Check if we've seen + // this mention already. + if !mention.IsNew { + // Already seen + // it, skip. + continue + } + + // Haven't seen this mention + // yet, notify it if necessary. + mention.Status = status + if err := p.surface.notifyMention(ctx, mention); err != nil { + log.Errorf(ctx, "error notifying mention: %v", err) + } + } + // Push message that the status has been edited to streams. if err := p.surface.timelineStatusUpdate(ctx, status); err != nil { log.Errorf(ctx, "error streaming status edit: %v", err) } - // Status representation was refetched, uncache from timelines. + // Status representation changed, uncache from timelines. p.surface.invalidateStatusFromTimelines(ctx, status.ID) return nil diff --git a/internal/processing/workers/fromfediapi_move.go b/internal/processing/workers/fromfediapi_move.go index d2f06de5d..e7c75950a 100644 --- a/internal/processing/workers/fromfediapi_move.go +++ b/internal/processing/workers/fromfediapi_move.go @@ -22,14 +22,14 @@ import ( "errors" "time" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" - "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/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/federation/dereferencing" + "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" ) // ShouldProcessMove checks whether we should attempt diff --git a/internal/processing/workers/fromfediapi_test.go b/internal/processing/workers/fromfediapi_test.go index f3e719890..203863e12 100644 --- a/internal/processing/workers/fromfediapi_test.go +++ b/internal/processing/workers/fromfediapi_test.go @@ -26,16 +26,16 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/ap" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type FromFediAPITestSuite struct { @@ -735,6 +735,52 @@ func (suite *FromFediAPITestSuite) TestUndoAnnounce() { } } +func (suite *FromFediAPITestSuite) TestUpdateNote() { + var ( + ctx = context.Background() + testStructs = testrig.SetupTestStructs(rMediaPath, rTemplatePath) + requestingAcct = suite.testAccounts["remote_account_2"] + receivingAcct = suite.testAccounts["local_account_1"] + ) + defer testrig.TearDownTestStructs(testStructs) + + update := testrig.NewTestActivities(suite.testAccounts)["remote_account_2_status_1_update"] + statusable := update.Activity.GetActivityStreamsObject().At(0).GetActivityStreamsNote() + noteURI := ap.GetJSONLDId(statusable) + + // Get the OG status. + status, err := testStructs.State.DB.GetStatusByURI(ctx, noteURI.String()) + if err != nil { + suite.FailNow(err.Error()) + } + + // Process the Update. + err = testStructs.Processor.Workers().ProcessFromFediAPI(ctx, &messages.FromFediAPI{ + APObjectType: ap.ObjectNote, + APActivityType: ap.ActivityUpdate, + GTSModel: status, // original status + APObject: (ap.Statusable)(statusable), + Receiving: receivingAcct, + Requesting: requestingAcct, + }) + suite.NoError(err) + + // Wait for side effects to trigger: + // zork should have a mention notif. + if !testrig.WaitFor(func() bool { + _, err := testStructs.State.DB.GetNotification( + gtscontext.SetBarebones(ctx), + gtsmodel.NotificationMention, + receivingAcct.ID, + requestingAcct.ID, + status.ID, + ) + return err == nil + }) { + suite.FailNow("timed out waiting for mention notif") + } +} + func TestFromFederatorTestSuite(t *testing.T) { suite.Run(t, &FromFediAPITestSuite{}) } diff --git a/internal/processing/workers/surface.go b/internal/processing/workers/surface.go index 4dc58c433..5604ad71d 100644 --- a/internal/processing/workers/surface.go +++ b/internal/processing/workers/surface.go @@ -18,13 +18,13 @@ package workers import ( - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/processing/conversations" - "github.com/superseriousbusiness/gotosocial/internal/processing/stream" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/webpush" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/processing/conversations" + "code.superseriousbusiness.org/gotosocial/internal/processing/stream" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/webpush" ) // Surface wraps functions for 'surfacing' the result diff --git a/internal/processing/workers/surfaceemail.go b/internal/processing/workers/surfaceemail.go index 56f33eaf3..219f395ad 100644 --- a/internal/processing/workers/surfaceemail.go +++ b/internal/processing/workers/surfaceemail.go @@ -22,13 +22,13 @@ import ( "errors" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/uris" "github.com/google/uuid" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/uris" ) // emailUserReportClosed emails the user who created the diff --git a/internal/processing/workers/surfacenotify.go b/internal/processing/workers/surfacenotify.go index fdbd5e3c1..8e034c23a 100644 --- a/internal/processing/workers/surfacenotify.go +++ b/internal/processing/workers/surfacenotify.go @@ -22,14 +22,14 @@ import ( "errors" "strings" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "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/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "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/util" ) // notifyPendingReply notifies the account replied-to @@ -99,56 +99,77 @@ func (s *Surface) notifyMentions( for _, mention := range status.Mentions { // Set status on the mention (stops - // the below function populating it). + // notifyMention having to populate it). mention.Status = status - // Beforehand, ensure the passed mention is fully populated. - if err := s.State.DB.PopulateMention(ctx, mention); err != nil { - errs.Appendf("error populating mention %s: %w", mention.ID, err) - continue - } - - if mention.TargetAccount.IsRemote() { - // no need to notify - // remote accounts. - continue - } - - // Ensure thread not muted - // by mentioned account. - muted, err := s.State.DB.IsThreadMutedByAccount( - ctx, - status.ThreadID, - mention.TargetAccountID, - ) - if err != nil { - errs.Appendf("error checking status thread mute %s: %w", status.ThreadID, err) - continue - } - - if muted { - // This mentioned account - // has muted the thread. - // Don't pester them. - continue - } - - // notify mentioned - // by status author. - if err := s.Notify(ctx, - gtsmodel.NotificationMention, - mention.TargetAccount, - mention.OriginAccount, - mention.StatusID, - ); err != nil { - errs.Appendf("error notifying mention target %s: %w", mention.TargetAccountID, err) - continue + // Do the thing. + if err := s.notifyMention(ctx, mention); err != nil { + errs = append(errs, err) } } return errs.Combine() } +// notifyMention notifies the target +// of the given mention that they've +// been mentioned in a status. +func (s *Surface) notifyMention( + ctx context.Context, + mention *gtsmodel.Mention, +) error { + // Beforehand, ensure the passed mention is fully populated. + if err := s.State.DB.PopulateMention(ctx, mention); err != nil { + return gtserror.Newf( + "error populating mention %s: %w", + mention.ID, err, + ) + } + + if mention.TargetAccount.IsRemote() { + // no need to notify + // remote accounts. + return nil + } + + // Ensure thread not muted + // by mentioned account. + muted, err := s.State.DB.IsThreadMutedByAccount( + ctx, + mention.Status.ThreadID, + mention.TargetAccountID, + ) + if err != nil { + return gtserror.Newf( + "error checking status thread mute %s: %w", + mention.Status.ThreadID, err, + ) + } + + if muted { + // This mentioned account + // has muted the thread. + // Don't pester them. + return nil + } + + // Notify mentioned + // by status author. + if err := s.Notify(ctx, + gtsmodel.NotificationMention, + mention.TargetAccount, + mention.OriginAccount, + mention.StatusID, + ); err != nil { + return gtserror.Newf( + "error notifying mention target %s: %w", + mention.TargetAccountID, err, + ) + } + + return nil +} + // notifyFollowRequest notifies the target of the given // follow request that they have a new follow request. func (s *Surface) notifyFollowRequest( diff --git a/internal/processing/workers/surfacenotify_test.go b/internal/processing/workers/surfacenotify_test.go index 6444314e2..7acea2436 100644 --- a/internal/processing/workers/surfacenotify_test.go +++ b/internal/processing/workers/surfacenotify_test.go @@ -23,12 +23,12 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing/workers" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/processing/workers" - "github.com/superseriousbusiness/gotosocial/testrig" ) type SurfaceNotifyTestSuite struct { diff --git a/internal/processing/workers/surfacetimeline.go b/internal/processing/workers/surfacetimeline.go index b071bd72e..f7e61b2d8 100644 --- a/internal/processing/workers/surfacetimeline.go +++ b/internal/processing/workers/surfacetimeline.go @@ -21,15 +21,15 @@ import ( "context" "errors" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "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/stream" - "github.com/superseriousbusiness/gotosocial/internal/timeline" - "github.com/superseriousbusiness/gotosocial/internal/util" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "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/stream" + "code.superseriousbusiness.org/gotosocial/internal/timeline" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // timelineAndNotifyStatus inserts the given status into the HOME diff --git a/internal/processing/workers/util.go b/internal/processing/workers/util.go index b358dc951..60cbdad9e 100644 --- a/internal/processing/workers/util.go +++ b/internal/processing/workers/util.go @@ -21,17 +21,17 @@ import ( "context" "errors" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "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/processing/account" - "github.com/superseriousbusiness/gotosocial/internal/processing/media" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "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/processing/account" + "code.superseriousbusiness.org/gotosocial/internal/processing/media" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // util provides util functions used by both diff --git a/internal/processing/workers/workers.go b/internal/processing/workers/workers.go index 9f37f554e..c5b5f6ce2 100644 --- a/internal/processing/workers/workers.go +++ b/internal/processing/workers/workers.go @@ -18,18 +18,18 @@ package workers import ( - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/federation" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/processing/account" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" - "github.com/superseriousbusiness/gotosocial/internal/processing/conversations" - "github.com/superseriousbusiness/gotosocial/internal/processing/media" - "github.com/superseriousbusiness/gotosocial/internal/processing/stream" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/webpush" - "github.com/superseriousbusiness/gotosocial/internal/workers" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/federation" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/processing/account" + "code.superseriousbusiness.org/gotosocial/internal/processing/common" + "code.superseriousbusiness.org/gotosocial/internal/processing/conversations" + "code.superseriousbusiness.org/gotosocial/internal/processing/media" + "code.superseriousbusiness.org/gotosocial/internal/processing/stream" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/webpush" + "code.superseriousbusiness.org/gotosocial/internal/workers" ) type Processor struct { diff --git a/internal/processing/workers/workers_test.go b/internal/processing/workers/workers_test.go index d069f0b89..ddd5bd0e4 100644 --- a/internal/processing/workers/workers_test.go +++ b/internal/processing/workers/workers_test.go @@ -20,12 +20,12 @@ package workers_test import ( "context" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/stream" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/stream" - "github.com/superseriousbusiness/gotosocial/testrig" ) const ( diff --git a/internal/router/router.go b/internal/router/router.go index c2bf18b4f..45419807d 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -25,12 +25,12 @@ import ( "net/http" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-bytesize" "codeberg.org/gruf/go-debug" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" "golang.org/x/crypto/acme/autocert" ) diff --git a/internal/router/template.go b/internal/router/template.go index 51c0c4960..a2cb1daf5 100644 --- a/internal/router/template.go +++ b/internal/router/template.go @@ -28,15 +28,15 @@ import ( "strings" "unsafe" + 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/log" + "code.superseriousbusiness.org/gotosocial/internal/regexes" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/render" - 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/log" - "github.com/superseriousbusiness/gotosocial/internal/regexes" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // LoadTemplates loads templates found at `web-template-base-dir` diff --git a/internal/state/state.go b/internal/state/state.go index 8aefa658a..5af97a716 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -18,13 +18,13 @@ package state import ( + "code.superseriousbusiness.org/gotosocial/internal/admin" + "code.superseriousbusiness.org/gotosocial/internal/cache" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/storage" + "code.superseriousbusiness.org/gotosocial/internal/timeline" + "code.superseriousbusiness.org/gotosocial/internal/workers" "codeberg.org/gruf/go-mutexes" - "github.com/superseriousbusiness/gotosocial/internal/admin" - "github.com/superseriousbusiness/gotosocial/internal/cache" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/storage" - "github.com/superseriousbusiness/gotosocial/internal/timeline" - "github.com/superseriousbusiness/gotosocial/internal/workers" ) // State provides a means of dependency injection and sharing of resources diff --git a/internal/storage/storage.go b/internal/storage/storage.go index dcef9cde4..3e5a69734 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -28,6 +28,9 @@ import ( "path" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-bytesize" "codeberg.org/gruf/go-cache/v3/ttl" "codeberg.org/gruf/go-storage" @@ -35,9 +38,6 @@ import ( "codeberg.org/gruf/go-storage/s3" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) const ( diff --git a/internal/subscriptions/domainperms.go b/internal/subscriptions/domainperms.go index 8da9064f6..1572ffb19 100644 --- a/internal/subscriptions/domainperms.go +++ b/internal/subscriptions/domainperms.go @@ -32,16 +32,16 @@ import ( "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/admin" - 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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/admin" + 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/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // ScheduleJobs schedules domain permission subscription diff --git a/internal/subscriptions/subscriptions.go b/internal/subscriptions/subscriptions.go index 3826cf185..a3794796a 100644 --- a/internal/subscriptions/subscriptions.go +++ b/internal/subscriptions/subscriptions.go @@ -18,9 +18,9 @@ package subscriptions import ( - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) type Subscriptions struct { diff --git a/internal/subscriptions/subscriptions_test.go b/internal/subscriptions/subscriptions_test.go index 4441d8c15..b334207e4 100644 --- a/internal/subscriptions/subscriptions_test.go +++ b/internal/subscriptions/subscriptions_test.go @@ -23,13 +23,13 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "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/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) const ( diff --git a/internal/text/emojify.go b/internal/text/emojify.go index 961ce8771..42b45b7e1 100644 --- a/internal/text/emojify.go +++ b/internal/text/emojify.go @@ -22,8 +22,8 @@ import ( "html" "html/template" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/regexes" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/regexes" ) // EmojifyWeb replaces emoji shortcodes like `:example:` in the given HTML diff --git a/internal/text/formatter.go b/internal/text/formatter.go index 8f7e6e1f6..5af6738fb 100644 --- a/internal/text/formatter.go +++ b/internal/text/formatter.go @@ -20,8 +20,8 @@ package text import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) // FormatFunc is fulfilled by FromPlain, diff --git a/internal/text/formatter_test.go b/internal/text/formatter_test.go index a078111c1..2951ad0d2 100644 --- a/internal/text/formatter_test.go +++ b/internal/text/formatter_test.go @@ -20,13 +20,13 @@ package text_test import ( "context" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/text" + "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/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/testrig" ) type TextStandardTestSuite struct { diff --git a/internal/text/goldmark_custom_renderer.go b/internal/text/goldmark_custom_renderer.go index 0b31d900b..8b4f3d1e9 100644 --- a/internal/text/goldmark_custom_renderer.go +++ b/internal/text/goldmark_custom_renderer.go @@ -22,13 +22,13 @@ import ( "errors" "strings" - "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" + "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" "github.com/yuin/goldmark" "github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/parser" @@ -156,7 +156,9 @@ func (cr *customRenderer) handleMention(text string) string { return text } - if cr.statusID != "" { + // Store mention if it's from a + // status and wasn't stored before. + if cr.statusID != "" && mention.IsNew { if err := cr.db.PutMention(cr.ctx, mention); err != nil { log.Errorf(cr.ctx, "error putting mention in db: %s", err) return text diff --git a/internal/text/goldmark_parsers.go b/internal/text/goldmark_parsers.go index e2c87e057..095f1efb8 100644 --- a/internal/text/goldmark_parsers.go +++ b/internal/text/goldmark_parsers.go @@ -21,7 +21,7 @@ import ( "fmt" "strings" - "github.com/superseriousbusiness/gotosocial/internal/regexes" + "code.superseriousbusiness.org/gotosocial/internal/regexes" "github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/parser" "github.com/yuin/goldmark/text" diff --git a/internal/text/markdown.go b/internal/text/markdown.go index 163996d77..a26182598 100644 --- a/internal/text/markdown.go +++ b/internal/text/markdown.go @@ -23,10 +23,10 @@ import ( "regexp" "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/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/renderer" diff --git a/internal/text/markdown_test.go b/internal/text/markdown_test.go index 923487978..5048fab87 100644 --- a/internal/text/markdown_test.go +++ b/internal/text/markdown_test.go @@ -75,9 +75,9 @@ const ( mdWithAsciiHeartExpected = "

hello <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

" - mdWithLink = "Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial" - mdWithLinkExpected = "

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:\n

hope 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

  • Status edit support: one of our most-requested features! You can now edit your own statuses, and see instance edit history from other accounts too (if your instance has them stored).
  • Push notifications: probably the second most-requested feature! GoToSocial can now send push notifications to clients via their configured push providers.
    You may need to uninstall / reinstall client applications, or log out and back in again, for this feature to work. (And if you're using Tusky, make sure you've got ntfy installed).
  • Global instance css customization: admins can now apply custom CSS across their entire instance via the settings panel.
  • Domain permission subscriptions: it's now possible to configure your instance to subscribe to CSV, JSON, or plaintext lists of domain permissions.
    Each night, your instance will fetch and automatically create domain permissions (or permission drafts) based on what it finds in a subscribed list.
    See the domain permission subscription documentation for more information.
  • Trusted-proxies helper: instances with improperly configured trusted-proxies settings will now show a warning on the homepage, so admins can make sure their instance is configured correctly. Check your own instance homepage after updating to see if you need to do anything.
  • Better outbox sorting: messages from GoToSocial are now delivered more quickly to people you mention, so conversations across instances should feel a bit snappier.
  • Log in button: there's now a login button in the top right of the instance homepage, which leads to a helpful page about clients, with a link to the settings panel. Should make things less confusing for new users!
  • Granular stats controls: with the 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.
  • Post backdating: via the API you can now backdate posts (if enabled in config.yaml). This is our first step towards making it possible to import your post history from elsewhere into your GoToSocial instance. While there's no way to do this in the settings panel yet, you can already use third-party tools like Slurp to import posts from a Mastodon export (see Slurp).
  • Configurable sign-up limits: you can now configure your sign-up backlog length and sign-up throttling (defaults remain the same).
  • NetBSD and FreeBSD builds: yep!
  • Respect users 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

  • Status edit support: one of our most-requested features! You can now edit your own statuses, and see instance edit history from other accounts too (if your instance has them stored).
  • Push notifications: probably the second most-requested feature! GoToSocial can now send push notifications to clients via their configured push providers.
    You may need to uninstall / reinstall client applications, or log out and back in again, for this feature to work. (And if you're using Tusky, make sure you've got ntfy installed).
  • Global instance css customization: admins can now apply custom CSS across their entire instance via the settings panel.
  • Domain permission subscriptions: it's now possible to configure your instance to subscribe to CSV, JSON, or plaintext lists of domain permissions.
    Each night, your instance will fetch and automatically create domain permissions (or permission drafts) based on what it finds in a subscribed list.
    See the domain permission subscription documentation for more information.
  • Trusted-proxies helper: instances with improperly configured trusted-proxies settings will now show a warning on the homepage, so admins can make sure their instance is configured correctly. Check your own instance homepage after updating to see if you need to do anything.
  • Better outbox sorting: messages from GoToSocial are now delivered more quickly to people you mention, so conversations across instances should feel a bit snappier.
  • Log in button: there's now a login button in the top right of the instance homepage, which leads to a helpful page about clients, with a link to the settings panel. Should make things less confusing for new users!
  • Granular stats controls: with the 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.
  • Post backdating: via the API you can now backdate posts (if enabled in config.yaml). This is our first step towards making it possible to import your post history from elsewhere into your GoToSocial instance. While there's no way to do this in the settings panel yet, you can already use third-party tools like Slurp to import posts from a Mastodon export (see Slurp).
  • Configurable sign-up limits: you can now configure your sign-up backlog length and sign-up throttling (defaults remain the same).
  • NetBSD and FreeBSD builds: yep!
  • Respect users 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 v0.18.0 Scroingly Sloth! -https://github.com/superseriousbusiness/gotosocial/releases/tag/v0.18.0 +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!! diff --git a/internal/text/sanitize_test.go b/internal/text/sanitize_test.go index 773713353..f2f668326 100644 --- a/internal/text/sanitize_test.go +++ b/internal/text/sanitize_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 ( diff --git a/internal/text/substring_test.go b/internal/text/substring_test.go index f85688218..4dbdb8cdd 100644 --- a/internal/text/substring_test.go +++ b/internal/text/substring_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" ) type SubstringTestSuite struct { diff --git a/internal/timeline/get.go b/internal/timeline/get.go index 06ee8c174..9b92dc1b2 100644 --- a/internal/timeline/get.go +++ b/internal/timeline/get.go @@ -23,12 +23,12 @@ import ( "errors" "time" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" ) func (t *timeline) LastGot() time.Time { diff --git a/internal/timeline/get_test.go b/internal/timeline/get_test.go index 91a456560..ba9f393c7 100644 --- a/internal/timeline/get_test.go +++ b/internal/timeline/get_test.go @@ -22,10 +22,10 @@ import ( "sync" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/timeline" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/timeline" ) type GetTestSuite struct { diff --git a/internal/timeline/index.go b/internal/timeline/index.go index 6abb6d28d..44a9f5c0e 100644 --- a/internal/timeline/index.go +++ b/internal/timeline/index.go @@ -22,10 +22,10 @@ import ( "context" "errors" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) func (t *timeline) indexXBetweenIDs(ctx context.Context, amount int, behindID string, beforeID string, frontToBack bool) error { diff --git a/internal/timeline/index_test.go b/internal/timeline/index_test.go index a7eeebb6e..6f28b61b7 100644 --- a/internal/timeline/index_test.go +++ b/internal/timeline/index_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type IndexTestSuite struct { diff --git a/internal/timeline/indexeditems.go b/internal/timeline/indexeditems.go index 9b75e7256..8e2ff346a 100644 --- a/internal/timeline/indexeditems.go +++ b/internal/timeline/indexeditems.go @@ -21,7 +21,7 @@ import ( "container/list" "context" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) type indexedItems struct { diff --git a/internal/timeline/manager.go b/internal/timeline/manager.go index b4f075138..858a12d3b 100644 --- a/internal/timeline/manager.go +++ b/internal/timeline/manager.go @@ -22,8 +22,8 @@ import ( "sync" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" ) const ( diff --git a/internal/timeline/prepare.go b/internal/timeline/prepare.go index ec595ce42..4ead4f011 100644 --- a/internal/timeline/prepare.go +++ b/internal/timeline/prepare.go @@ -22,11 +22,11 @@ import ( "context" "errors" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) func (t *timeline) prepareXBetweenIDs(ctx context.Context, amount int, behindID string, beforeID string, frontToBack bool) error { diff --git a/internal/timeline/remove.go b/internal/timeline/remove.go index 86352b9fa..eeaddac6d 100644 --- a/internal/timeline/remove.go +++ b/internal/timeline/remove.go @@ -21,8 +21,8 @@ import ( "container/list" "context" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/log" ) func (t *timeline) Remove(ctx context.Context, statusID string) (int, error) { diff --git a/internal/timeline/timeline_test.go b/internal/timeline/timeline_test.go index ffc6d6e53..38be401d5 100644 --- a/internal/timeline/timeline_test.go +++ b/internal/timeline/timeline_test.go @@ -21,12 +21,12 @@ import ( "context" "sort" + "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/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 TimelineStandardTestSuite struct { diff --git a/internal/timeline/unprepare_test.go b/internal/timeline/unprepare_test.go index 20bef7537..a1e2a7287 100644 --- a/internal/timeline/unprepare_test.go +++ b/internal/timeline/unprepare_test.go @@ -23,9 +23,9 @@ import ( "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" ) type UnprepareTestSuite struct { diff --git a/internal/trans/decoders.go b/internal/trans/decoders.go index 6187e43fa..ae374fd9c 100644 --- a/internal/trans/decoders.go +++ b/internal/trans/decoders.go @@ -24,8 +24,8 @@ import ( "fmt" "time" + transmodel "code.superseriousbusiness.org/gotosocial/internal/trans/model" "github.com/mitchellh/mapstructure" - transmodel "github.com/superseriousbusiness/gotosocial/internal/trans/model" ) func newDecoder(target interface{}) (*mapstructure.Decoder, error) { diff --git a/internal/trans/encoders.go b/internal/trans/encoders.go index 3d5688aad..44a655002 100644 --- a/internal/trans/encoders.go +++ b/internal/trans/encoders.go @@ -26,7 +26,7 @@ import ( "fmt" "os" - transmodel "github.com/superseriousbusiness/gotosocial/internal/trans/model" + transmodel "code.superseriousbusiness.org/gotosocial/internal/trans/model" ) // accountEncode handles special fields like private + public keys on accounts diff --git a/internal/trans/export.go b/internal/trans/export.go index f242c9b94..1e399116a 100644 --- a/internal/trans/export.go +++ b/internal/trans/export.go @@ -21,8 +21,8 @@ import ( "fmt" "os" - "github.com/superseriousbusiness/gotosocial/internal/db" - transmodel "github.com/superseriousbusiness/gotosocial/internal/trans/model" + "code.superseriousbusiness.org/gotosocial/internal/db" + transmodel "code.superseriousbusiness.org/gotosocial/internal/trans/model" ) func (e *exporter) exportAccounts(ctx context.Context, where []db.Where, file *os.File) ([]*transmodel.Account, error) { diff --git a/internal/trans/exporter.go b/internal/trans/exporter.go index 54ed3cb37..09a502f08 100644 --- a/internal/trans/exporter.go +++ b/internal/trans/exporter.go @@ -20,7 +20,7 @@ package trans import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db" ) // Exporter wraps functionality for exporting entries from the database to a file. diff --git a/internal/trans/exportminimal.go b/internal/trans/exportminimal.go index fea7d5af7..d57a51e69 100644 --- a/internal/trans/exportminimal.go +++ b/internal/trans/exportminimal.go @@ -23,7 +23,7 @@ import ( "fmt" "os" - "github.com/superseriousbusiness/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db" ) func (e *exporter) ExportMinimal(ctx context.Context, path string) error { diff --git a/internal/trans/exportminimal_test.go b/internal/trans/exportminimal_test.go index bacf5a47b..a5183b051 100644 --- a/internal/trans/exportminimal_test.go +++ b/internal/trans/exportminimal_test.go @@ -23,9 +23,9 @@ import ( "os" "testing" + "code.superseriousbusiness.org/gotosocial/internal/trans" "github.com/google/uuid" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/trans" ) type ExportMinimalTestSuite struct { diff --git a/internal/trans/import.go b/internal/trans/import.go index c77b439f5..b195c14fc 100644 --- a/internal/trans/import.go +++ b/internal/trans/import.go @@ -25,9 +25,9 @@ import ( "io" "os" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" - transmodel "github.com/superseriousbusiness/gotosocial/internal/trans/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" + transmodel "code.superseriousbusiness.org/gotosocial/internal/trans/model" ) func (i *importer) Import(ctx context.Context, path string) error { diff --git a/internal/trans/import_test.go b/internal/trans/import_test.go index 12094f27e..1147bfa12 100644 --- a/internal/trans/import_test.go +++ b/internal/trans/import_test.go @@ -23,12 +23,12 @@ import ( "os" "testing" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/trans" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/google/uuid" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/trans" - "github.com/superseriousbusiness/gotosocial/testrig" ) type ImportMinimalTestSuite struct { diff --git a/internal/trans/importer.go b/internal/trans/importer.go index ad5bb2763..e8ef0aafb 100644 --- a/internal/trans/importer.go +++ b/internal/trans/importer.go @@ -20,7 +20,7 @@ package trans import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db" ) // Importer wraps functionality for importing entries from a file into the database. diff --git a/internal/trans/trans_test.go b/internal/trans/trans_test.go index 1a413e6b1..55c6f1bf8 100644 --- a/internal/trans/trans_test.go +++ b/internal/trans/trans_test.go @@ -18,11 +18,11 @@ package trans_test import ( + "code.superseriousbusiness.org/gotosocial/internal/db" + "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/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/testrig" ) type TransTestSuite struct { diff --git a/internal/transport/controller.go b/internal/transport/controller.go index 10bce7c59..0f3c1c9b0 100644 --- a/internal/transport/controller.go +++ b/internal/transport/controller.go @@ -23,20 +23,22 @@ import ( "crypto/rsa" "crypto/x509" "encoding/json" - "errors" "fmt" "io" "net/http" "net/url" + "strconv" + "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/federation/federatingdb" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-byteutil" "codeberg.org/gruf/go-cache/v3" - "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/federation/federatingdb" - "github.com/superseriousbusiness/gotosocial/internal/state" ) // Controller generates transports for use in making federation requests to other servers. @@ -140,23 +142,37 @@ func (c *controller) NewTransportForUsername(ctx context.Context, username strin return transport, nil } -// dereferenceLocalFollowers is a shortcut to dereference followers of an -// account on this instance, without making any external api/http calls. +// dereferenceLocal is a shortcut to try dereferencing +// something on this instance without making any http calls. // -// It is passed to new transports, and should only be invoked when the iri.Host == this host. -func (c *controller) dereferenceLocalFollowers(ctx context.Context, iri *url.URL) (*http.Response, error) { - followers, err := c.fedDB.Followers(ctx, iri) - if err != nil && !errors.Is(err, db.ErrNoEntries) { +// Will return an error if nothing could be found, indicating that +// the calling transport should continue with an http call anyway. +// +// It should only be invoked when the iri.Host == this host. +func (c *controller) dereferenceLocal( + ctx context.Context, + uri *url.URL, +) (*http.Response, error) { + var ( + t vocab.Type + err error + ) + + t, err = c.fedDB.Get(ctx, uri) + if err != nil { + // Don't check especially for + // db.ErrNoEntries, as we *want* + // to pass this back to the caller + // if we didn't get anything. return nil, err } - if followers == nil { - // Return a generic 404 not found response. - rsp := craftResponse(iri, http.StatusNotFound) - return rsp, nil + if util.IsNil(t) { + // This should never happen. + panic("nil vocab.Type after successful c.fedDB.Get call") } - i, err := ap.Serialize(followers) + i, err := ap.Serialize(t) if err != nil { return nil, err } @@ -165,86 +181,24 @@ func (c *controller) dereferenceLocalFollowers(ctx context.Context, iri *url.URL if err != nil { return nil, err } + contentLength := len(b) // Return a response with AS data as body. - rsp := craftResponse(iri, http.StatusOK) - rsp.Body = io.NopCloser(bytes.NewReader(b)) + rsp := &http.Response{ + Request: &http.Request{URL: uri}, + Status: http.StatusText(http.StatusOK), + StatusCode: http.StatusOK, + Body: io.NopCloser(bytes.NewReader(b)), + ContentLength: int64(contentLength), + Header: map[string][]string{ + "Content-Type": {apiutil.AppActivityLDJSON}, + "Content-Length": {strconv.Itoa(contentLength)}, + }, + } + return rsp, nil } -// dereferenceLocalUser is a shortcut to dereference followers an account on -// this instance, without making any external api/http calls. -// -// It is passed to new transports, and should only be invoked when the iri.Host == this host. -func (c *controller) dereferenceLocalUser(ctx context.Context, iri *url.URL) (*http.Response, error) { - user, err := c.fedDB.Get(ctx, iri) - if err != nil && !errors.Is(err, db.ErrNoEntries) { - return nil, err - } - - if user == nil { - // Return a generic 404 not found response. - rsp := craftResponse(iri, http.StatusNotFound) - return rsp, nil - } - - i, err := ap.Serialize(user) - if err != nil { - return nil, err - } - - b, err := json.Marshal(i) - if err != nil { - return nil, err - } - - // Return a response with AS data as body. - rsp := craftResponse(iri, http.StatusOK) - rsp.Body = io.NopCloser(bytes.NewReader(b)) - return rsp, nil -} - -// dereferenceLocalAccept is a shortcut to dereference an accept created -// by an account on this instance, without making any external api/http calls. -// -// It is passed to new transports, and should only be invoked when the iri.Host == this host. -func (c *controller) dereferenceLocalAccept(ctx context.Context, iri *url.URL) (*http.Response, error) { - accept, err := c.fedDB.GetAccept(ctx, iri) - if err != nil && !errors.Is(err, db.ErrNoEntries) { - return nil, err - } - - if accept == nil { - // Return a generic 404 not found response. - rsp := craftResponse(iri, http.StatusNotFound) - return rsp, nil - } - - i, err := ap.Serialize(accept) - if err != nil { - return nil, err - } - - b, err := json.Marshal(i) - if err != nil { - return nil, err - } - - // Return a response with AS data as body. - rsp := craftResponse(iri, http.StatusOK) - rsp.Body = io.NopCloser(bytes.NewReader(b)) - return rsp, nil -} - -func craftResponse(url *url.URL, code int) *http.Response { - rsp := new(http.Response) - rsp.Request = new(http.Request) - rsp.Request.URL = url - rsp.Status = http.StatusText(code) - rsp.StatusCode = code - return rsp -} - // privkeyToPublicStr will create a string representation of RSA public key from private. func privkeyToPublicStr(privkey *rsa.PrivateKey) string { b := x509.MarshalPKCS1PublicKey(&privkey.PublicKey) diff --git a/internal/transport/deliver.go b/internal/transport/deliver.go index e8017b2a6..99879bcce 100644 --- a/internal/transport/deliver.go +++ b/internal/transport/deliver.go @@ -25,12 +25,12 @@ import ( "net/http" "net/url" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/transport/delivery" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/transport/delivery" ) func (t *transport) BatchDeliver(ctx context.Context, obj map[string]interface{}, recipients []*url.URL) error { diff --git a/internal/transport/delivery/delivery.go b/internal/transport/delivery/delivery.go index e11eea83c..25bc31fba 100644 --- a/internal/transport/delivery/delivery.go +++ b/internal/transport/delivery/delivery.go @@ -24,7 +24,7 @@ import ( "net/http" "time" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" ) // Delivery wraps an httpclient.Request{} diff --git a/internal/transport/delivery/delivery_test.go b/internal/transport/delivery/delivery_test.go index 81f32d5f8..9c0260d3d 100644 --- a/internal/transport/delivery/delivery_test.go +++ b/internal/transport/delivery/delivery_test.go @@ -24,9 +24,9 @@ import ( "net/http" "testing" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/transport/delivery" "github.com/stretchr/testify/assert" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/transport/delivery" ) var deliveryCases = []struct { diff --git a/internal/transport/delivery/worker.go b/internal/transport/delivery/worker.go index d6d253769..17dd8dffe 100644 --- a/internal/transport/delivery/worker.go +++ b/internal/transport/delivery/worker.go @@ -23,13 +23,13 @@ import ( "slices" "time" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/queue" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-runners" "codeberg.org/gruf/go-structr" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/queue" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // WorkerPool wraps multiple Worker{}s in diff --git a/internal/transport/delivery/worker_test.go b/internal/transport/delivery/worker_test.go index 72f485e68..42b7dc5c2 100644 --- a/internal/transport/delivery/worker_test.go +++ b/internal/transport/delivery/worker_test.go @@ -29,9 +29,9 @@ import ( "strings" "testing" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/queue" - "github.com/superseriousbusiness/gotosocial/internal/transport/delivery" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/queue" + "code.superseriousbusiness.org/gotosocial/internal/transport/delivery" ) func TestDeliveryWorkerPool(t *testing.T) { diff --git a/internal/transport/derefdomainpermlist.go b/internal/transport/derefdomainpermlist.go index ba61c8b39..30cbf9425 100644 --- a/internal/transport/derefdomainpermlist.go +++ b/internal/transport/derefdomainpermlist.go @@ -23,9 +23,9 @@ import ( "net/http" "time" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" ) type DereferenceDomainPermissionsResp struct { diff --git a/internal/transport/dereference.go b/internal/transport/dereference.go index 8cc1f2103..a7ef83d3e 100644 --- a/internal/transport/dereference.go +++ b/internal/transport/dereference.go @@ -19,37 +19,41 @@ package transport import ( "context" + "errors" "net/http" "net/url" - 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/uris" + 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" ) func (t *transport) Dereference(ctx context.Context, iri *url.URL) (*http.Response, error) { - // If the request is to us, we can shortcut for - // certain URIs rather than going through the normal - // request flow, thereby saving time and energy. + // If the request is to us, we can try to shortcut + // rather than going through the normal request flow. + // + // Only bail on a real error, otherwise continue + // to just make a normal http request to ourself. if iri.Host == config.GetHost() { - switch { - - case uris.IsFollowersPath(iri): - // The request is for followers of one of - // our accounts, which we can shortcut. - return t.controller.dereferenceLocalFollowers(ctx, iri) - - case uris.IsUserPath(iri): - // The request is for one of our - // accounts, which we can shortcut. - return t.controller.dereferenceLocalUser(ctx, iri) - - case uris.IsAcceptsPath(iri): - // The request is for an Accept on - // our instance, which we can shortcut. - return t.controller.dereferenceLocalAccept(ctx, iri) + rsp, err := t.controller.dereferenceLocal(ctx, iri) + if err != nil && !errors.Is(err, db.ErrNoEntries) { + // Real error. + err := gtserror.Newf("error trying dereferenceLocal: %w", err) + return nil, err } + + if rsp != nil { + // Got something! + // + // No need for + // further business. + return rsp, nil + } + + // Blast out a cheeky warning so we can keep track of this. + log.Warnf(ctx, "about to perform request to self: GET %s", iri) } // Build IRI just once diff --git a/internal/transport/dereference_test.go b/internal/transport/dereference_test.go new file mode 100644 index 000000000..c1d6fb952 --- /dev/null +++ b/internal/transport/dereference_test.go @@ -0,0 +1,258 @@ +// 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, see . + +package transport_test + +import ( + "bytes" + "context" + "encoding/json" + "io" + "net/http" + "testing" + + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/testrig" + "github.com/stretchr/testify/suite" +) + +type DereferenceTestSuite struct { + TransportTestSuite +} + +func (suite *DereferenceTestSuite) TestDerefLocalUser() { + iri := testrig.URLMustParse(suite.testAccounts["local_account_1"].URI) + + resp, err := suite.transport.Dereference(context.Background(), iri) + if err != nil { + suite.FailNow(err.Error()) + } + defer resp.Body.Close() + + suite.Equal(http.StatusOK, resp.StatusCode) + suite.EqualValues(1887, resp.ContentLength) + suite.Equal("1887", resp.Header.Get("Content-Length")) + suite.Equal(apiutil.AppActivityLDJSON, resp.Header.Get("Content-Type")) + + b, err := io.ReadAll(resp.Body) + if err != nil { + suite.FailNow(err.Error()) + } + + dst := bytes.Buffer{} + if err := json.Indent(&dst, b, "", " "); err != nil { + suite.FailNow(err.Error()) + } + + suite.Equal(`{ + "@context": [ + "https://w3id.org/security/v1", + "https://www.w3.org/ns/activitystreams", + { + "discoverable": "toot:discoverable", + "featured": { + "@id": "toot:featured", + "@type": "@id" + }, + "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", + "toot": "http://joinmastodon.org/ns#" + } + ], + "discoverable": true, + "featured": "http://localhost:8080/users/the_mighty_zork/collections/featured", + "followers": "http://localhost:8080/users/the_mighty_zork/followers", + "following": "http://localhost:8080/users/the_mighty_zork/following", + "icon": { + "mediaType": "image/jpeg", + "type": "Image", + "url": "http://localhost:8080/fileserver/01F8MH1H7YV1Z7D2C8K2730QBF/avatar/original/01F8MH58A357CV5K7R7TJMSH6S.jpg" + }, + "id": "http://localhost:8080/users/the_mighty_zork", + "image": { + "mediaType": "image/jpeg", + "type": "Image", + "url": "http://localhost:8080/fileserver/01F8MH1H7YV1Z7D2C8K2730QBF/header/original/01PFPMWK2FF0D9WMHEJHR07C3Q.jpg" + }, + "inbox": "http://localhost:8080/users/the_mighty_zork/inbox", + "manuallyApprovesFollowers": false, + "name": "original zork (he/they)", + "outbox": "http://localhost:8080/users/the_mighty_zork/outbox", + "preferredUsername": "the_mighty_zork", + "publicKey": { + "id": "http://localhost:8080/users/the_mighty_zork/main-key", + "owner": "http://localhost:8080/users/the_mighty_zork", + "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqtQQjwFLHPez+7uF9AX7\nuvLFHm3SyNIozhhVmGhxHIs0xdgRnZKmzmZkFdrFuXddBTAglU4C2u3dw10jJO1a\nWIFQF8bGkRHZG7Pd25/XmWWBRPmOJxNLeWBqpj0G+2zTMgnAV72hALSDFY2/QDsx\nUthenKw0Srpj1LUwvRbyVQQ8fGu4v0HACFnlOX2hCQwhfAnGrb0V70Y2IJu++MP7\n6i49md0vR0Mv3WbsEJUNp1fTIUzkgWB31icvfrNmaaAxw5FkAE+KfkkylhRxi5i5\nRR1XQUINWc2Kj2Kro+CJarKG+9zasMyN7+D230gpESi8rXv1SwRu865FR3gANdDS\nMwIDAQAB\n-----END PUBLIC KEY-----\n" + }, + "published": "2022-05-20T11:09:18Z", + "summary": "\u003cp\u003ehey yo this is my profile!\u003c/p\u003e", + "tag": [], + "type": "Person", + "url": "http://localhost:8080/@the_mighty_zork" +}`, dst.String()) +} + +func (suite *DereferenceTestSuite) TestDerefLocalStatus() { + iri := testrig.URLMustParse(suite.testStatuses["local_account_1_status_1"].URI) + + resp, err := suite.transport.Dereference(context.Background(), iri) + if err != nil { + suite.FailNow(err.Error()) + } + defer resp.Body.Close() + + suite.Equal(http.StatusOK, resp.StatusCode) + suite.EqualValues(1502, resp.ContentLength) + suite.Equal("1502", resp.Header.Get("Content-Length")) + suite.Equal(apiutil.AppActivityLDJSON, resp.Header.Get("Content-Type")) + + b, err := io.ReadAll(resp.Body) + if err != nil { + suite.FailNow(err.Error()) + } + + dst := bytes.Buffer{} + if err := json.Indent(&dst, b, "", " "); err != nil { + suite.FailNow(err.Error()) + } + + suite.Equal(`{ + "@context": [ + "https://gotosocial.org/ns", + "https://www.w3.org/ns/activitystreams", + { + "sensitive": "as:sensitive" + } + ], + "attachment": [], + "attributedTo": "http://localhost:8080/users/the_mighty_zork", + "cc": "http://localhost:8080/users/the_mighty_zork/followers", + "content": "\u003cp\u003ehello everyone!\u003c/p\u003e", + "contentMap": { + "en": "\u003cp\u003ehello everyone!\u003c/p\u003e" + }, + "id": "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY", + "interactionPolicy": { + "canAnnounce": { + "always": [ + "https://www.w3.org/ns/activitystreams#Public" + ], + "approvalRequired": [] + }, + "canLike": { + "always": [ + "https://www.w3.org/ns/activitystreams#Public" + ], + "approvalRequired": [] + }, + "canReply": { + "always": [ + "https://www.w3.org/ns/activitystreams#Public" + ], + "approvalRequired": [] + } + }, + "published": "2021-10-20T10:40:37Z", + "replies": { + "first": { + "id": "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies?page=true", + "next": "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies?only_other_accounts=false\u0026page=true", + "partOf": "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies", + "type": "CollectionPage" + }, + "id": "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies", + "type": "Collection" + }, + "sensitive": true, + "summary": "introduction post", + "tag": [], + "to": "https://www.w3.org/ns/activitystreams#Public", + "type": "Note", + "url": "http://localhost:8080/@the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY" +}`, dst.String()) +} + +func (suite *DereferenceTestSuite) TestDerefLocalFollowers() { + iri := testrig.URLMustParse(suite.testAccounts["local_account_1"].FollowersURI) + + resp, err := suite.transport.Dereference(context.Background(), iri) + if err != nil { + suite.FailNow(err.Error()) + } + defer resp.Body.Close() + + suite.Equal(http.StatusOK, resp.StatusCode) + suite.EqualValues(161, resp.ContentLength) + suite.Equal("161", resp.Header.Get("Content-Length")) + suite.Equal(apiutil.AppActivityLDJSON, resp.Header.Get("Content-Type")) + + b, err := io.ReadAll(resp.Body) + if err != nil { + suite.FailNow(err.Error()) + } + + dst := bytes.Buffer{} + if err := json.Indent(&dst, b, "", " "); err != nil { + suite.FailNow(err.Error()) + } + + suite.Equal(`{ + "@context": "https://www.w3.org/ns/activitystreams", + "items": [ + "http://localhost:8080/users/1happyturtle", + "http://localhost:8080/users/admin" + ], + "type": "Collection" +}`, dst.String()) +} + +func (suite *DereferenceTestSuite) TestDerefLocalFollowing() { + iri := testrig.URLMustParse(suite.testAccounts["local_account_1"].FollowingURI) + + resp, err := suite.transport.Dereference(context.Background(), iri) + if err != nil { + suite.FailNow(err.Error()) + } + defer resp.Body.Close() + + suite.Equal(http.StatusOK, resp.StatusCode) + suite.EqualValues(161, resp.ContentLength) + suite.Equal("161", resp.Header.Get("Content-Length")) + suite.Equal(apiutil.AppActivityLDJSON, resp.Header.Get("Content-Type")) + + b, err := io.ReadAll(resp.Body) + if err != nil { + suite.FailNow(err.Error()) + } + + dst := bytes.Buffer{} + if err := json.Indent(&dst, b, "", " "); err != nil { + suite.FailNow(err.Error()) + } + + suite.Equal(`{ + "@context": "https://www.w3.org/ns/activitystreams", + "items": [ + "http://localhost:8080/users/admin", + "http://localhost:8080/users/1happyturtle" + ], + "type": "Collection" +}`, dst.String()) +} + +func TestDereferenceTestSuite(t *testing.T) { + suite.Run(t, new(DereferenceTestSuite)) +} diff --git a/internal/transport/derefinstance.go b/internal/transport/derefinstance.go index e7971093d..4c21355d6 100644 --- a/internal/transport/derefinstance.go +++ b/internal/transport/derefinstance.go @@ -28,14 +28,14 @@ import ( "slices" "strings" - 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/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/validate" + 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/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/validate" "github.com/temoto/robotstxt" ) diff --git a/internal/transport/derefmedia.go b/internal/transport/derefmedia.go index 3a05fcbd6..b8928be11 100644 --- a/internal/transport/derefmedia.go +++ b/internal/transport/derefmedia.go @@ -23,9 +23,9 @@ import ( "net/http" "net/url" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "codeberg.org/gruf/go-bytesize" "codeberg.org/gruf/go-iotools" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) func (t *transport) DereferenceMedia(ctx context.Context, iri *url.URL, maxsz int64) (io.ReadCloser, error) { diff --git a/internal/transport/derefrobots.go b/internal/transport/derefrobots.go index d6c4f3058..14652a736 100644 --- a/internal/transport/derefrobots.go +++ b/internal/transport/derefrobots.go @@ -22,10 +22,10 @@ import ( "net/http" "net/url" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" "codeberg.org/gruf/go-bytesize" "codeberg.org/gruf/go-iotools" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/temoto/robotstxt" ) diff --git a/internal/transport/finger.go b/internal/transport/finger.go index f82719245..d2f38c9c6 100644 --- a/internal/transport/finger.go +++ b/internal/transport/finger.go @@ -25,10 +25,10 @@ import ( "net/http" "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/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/util" ) // webfingerURLFor returns the URL to try a webfinger request against, as diff --git a/internal/transport/signing.go b/internal/transport/signing.go index 6fe29a853..050ed609d 100644 --- a/internal/transport/signing.go +++ b/internal/transport/signing.go @@ -18,7 +18,7 @@ package transport import ( - "codeberg.org/superseriousbusiness/httpsig" + "code.superseriousbusiness.org/httpsig" ) var ( diff --git a/internal/transport/transport.go b/internal/transport/transport.go index 7d605f035..562808a84 100644 --- a/internal/transport/transport.go +++ b/internal/transport/transport.go @@ -27,11 +27,11 @@ import ( "sync" "time" - "codeberg.org/superseriousbusiness/httpsig" - "github.com/superseriousbusiness/gotosocial/internal/gtscontext" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/transport/delivery" + "code.superseriousbusiness.org/gotosocial/internal/gtscontext" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/transport/delivery" + "code.superseriousbusiness.org/httpsig" ) // Transport implements the pub.Transport interface with some additional functionality for fetching remote media. diff --git a/internal/transport/transport_test.go b/internal/transport/transport_test.go index bed683d27..d3911e1c0 100644 --- a/internal/transport/transport_test.go +++ b/internal/transport/transport_test.go @@ -20,20 +20,20 @@ package transport_test import ( "context" + "code.superseriousbusiness.org/gotosocial/internal/admin" + "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/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/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/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) type TransportTestSuite struct { @@ -53,6 +53,7 @@ type TransportTestSuite struct { testApplications map[string]*gtsmodel.Application testUsers map[string]*gtsmodel.User testAccounts map[string]*gtsmodel.Account + testStatuses map[string]*gtsmodel.Status transport transport.Transport } @@ -62,6 +63,7 @@ func (suite *TransportTestSuite) SetupSuite() { suite.testApplications = testrig.NewTestApplications() suite.testUsers = testrig.NewTestUsers() suite.testAccounts = testrig.NewTestAccounts() + suite.testStatuses = testrig.NewTestStatuses() } func (suite *TransportTestSuite) SetupTest() { diff --git a/internal/typeutils/astointernal.go b/internal/typeutils/astointernal.go index 59c696f11..ca6e9ca9d 100644 --- a/internal/typeutils/astointernal.go +++ b/internal/typeutils/astointernal.go @@ -24,15 +24,15 @@ import ( "net/url" "time" + "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/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/miekg/dns" - "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/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // ASRepresentationToAccount converts a remote account / person diff --git a/internal/typeutils/astointernal_test.go b/internal/typeutils/astointernal_test.go index b49c14299..fb453c89e 100644 --- a/internal/typeutils/astointernal_test.go +++ b/internal/typeutils/astointernal_test.go @@ -24,12 +24,12 @@ import ( "io" "testing" - "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/cache" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/cache" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) type ASToInternalTestSuite struct { @@ -570,7 +570,7 @@ func (suite *ASToInternalTestSuite) TestParseAnnounce() { func (suite *ASToInternalTestSuite) TestParseHonkAccount() { // Hopefully comprehensive checks for - // https://github.com/superseriousbusiness/gotosocial/issues/2527. + // https://codeberg.org/superseriousbusiness/gotosocial/issues/2527. const honk_user = `{ "@context": "https://www.w3.org/ns/activitystreams", diff --git a/internal/typeutils/converter.go b/internal/typeutils/converter.go index 4fbe1dfd3..789404426 100644 --- a/internal/typeutils/converter.go +++ b/internal/typeutils/converter.go @@ -25,11 +25,11 @@ import ( "sync/atomic" "time" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/filter/interaction" - "github.com/superseriousbusiness/gotosocial/internal/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/filter/interaction" + "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" ) type Converter struct { diff --git a/internal/typeutils/converter_test.go b/internal/typeutils/converter_test.go index 0d5ce03ad..e37dae48c 100644 --- a/internal/typeutils/converter_test.go +++ b/internal/typeutils/converter_test.go @@ -18,16 +18,16 @@ package typeutils_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/filter/visibility" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "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/filter/visibility" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/testrig" ) const ( diff --git a/internal/typeutils/csv.go b/internal/typeutils/csv.go index aff556021..bc6ae345c 100644 --- a/internal/typeutils/csv.go +++ b/internal/typeutils/csv.go @@ -23,11 +23,11 @@ import ( "slices" "strconv" - 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/util" + 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/util" ) func (c *Converter) AccountToExportStats( diff --git a/internal/typeutils/defaulticons.go b/internal/typeutils/defaulticons.go index 1076d3476..d8075bce2 100644 --- a/internal/typeutils/defaulticons.go +++ b/internal/typeutils/defaulticons.go @@ -23,9 +23,9 @@ import ( "path/filepath" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" ) const defaultHeaderPath = "/assets/default_header.webp" diff --git a/internal/typeutils/frontendtointernal.go b/internal/typeutils/frontendtointernal.go index eb60c548e..daf64a0d2 100644 --- a/internal/typeutils/frontendtointernal.go +++ b/internal/typeutils/frontendtointernal.go @@ -22,8 +22,8 @@ import ( "net/url" "slices" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" ) func APIVisToVis(m apimodel.Visibility) gtsmodel.Visibility { diff --git a/internal/typeutils/internal.go b/internal/typeutils/internal.go index 573495e0a..4504168ef 100644 --- a/internal/typeutils/internal.go +++ b/internal/typeutils/internal.go @@ -22,14 +22,14 @@ import ( "errors" "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/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "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/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // FollowRequestToFollow just converts a follow request diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go index 9d9a7e289..f21bef83f 100644 --- a/internal/typeutils/internaltoas.go +++ b/internal/typeutils/internaltoas.go @@ -26,17 +26,17 @@ import ( "net/url" "strings" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "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/uris" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + "code.superseriousbusiness.org/activity/pub" + "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/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" ) func accountableForActorType(actorType gtsmodel.AccountActorType) ap.Accountable { diff --git a/internal/typeutils/internaltoas_test.go b/internal/typeutils/internaltoas_test.go index 7c05a14b8..eeba5ac72 100644 --- a/internal/typeutils/internaltoas_test.go +++ b/internal/typeutils/internaltoas_test.go @@ -23,11 +23,11 @@ import ( "errors" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "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/ap" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/testrig" ) type InternalToASTestSuite struct { diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go index 2c662c3bd..659f47ab4 100644 --- a/internal/typeutils/internaltofrontend.go +++ b/internal/typeutils/internaltofrontend.go @@ -28,21 +28,21 @@ import ( "strings" "time" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/language" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/text" + "code.superseriousbusiness.org/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-debug" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/language" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/text" - "github.com/superseriousbusiness/gotosocial/internal/uris" - "github.com/superseriousbusiness/gotosocial/internal/util" ) const ( @@ -50,8 +50,8 @@ const ( instancePollsMinExpiration = 300 // seconds instancePollsMaxExpiration = 2629746 // seconds instanceAccountsMaxFeaturedTags = 10 - instanceAccountsMaxProfileFields = 6 // FIXME: https://github.com/superseriousbusiness/gotosocial/issues/1876 - instanceSourceURL = "https://github.com/superseriousbusiness/gotosocial" + instanceAccountsMaxProfileFields = 6 // FIXME: https://codeberg.org/superseriousbusiness/gotosocial/issues/1876 + instanceSourceURL = "https://codeberg.org/superseriousbusiness/gotosocial" instanceMastodonVersion = "3.5.3" ) @@ -2155,7 +2155,7 @@ func (c *Converter) ConversationToAPIConversation( // If no other accounts are involved in this convo, // just include the requesting account and return. // - // See: https://github.com/superseriousbusiness/gotosocial/issues/3385#issuecomment-2394033477 + // See: https://codeberg.org/superseriousbusiness/gotosocial/issues/3385#issuecomment-2394033477 otherAcctsLen := len(conversation.OtherAccounts) if otherAcctsLen == 0 { apiAcct, err := c.AccountToAPIAccountPublic(ctx, requester) diff --git a/internal/typeutils/internaltofrontend_test.go b/internal/typeutils/internaltofrontend_test.go index da83e4e55..c44ad7c5a 100644 --- a/internal/typeutils/internaltofrontend_test.go +++ b/internal/typeutils/internaltofrontend_test.go @@ -24,15 +24,15 @@ import ( "strings" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + statusfilter "code.superseriousbusiness.org/gotosocial/internal/filter/status" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type InternalToFrontendTestSuite struct { @@ -2296,8 +2296,8 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV1ToFrontend() { "uri": "localhost:8080", "account_domain": "localhost:8080", "title": "GoToSocial Testrig Instance", - "description": "\u003cp\u003eHere's a fuller description of the GoToSocial testrig instance.\u003c/p\u003e\u003cp\u003eThis instance is for testing purposes only. It doesn't federate at all. Go check out \u003ca href=\"https://github.com/superseriousbusiness/gotosocial/tree/main/testrig\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003ehttps://github.com/superseriousbusiness/gotosocial/tree/main/testrig\u003c/a\u003e and \u003ca href=\"https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003ehttps://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing\u003c/a\u003e\u003c/p\u003e\u003cp\u003eUsers on this instance:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@admin\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003eadmin\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (admin!).\u003c/li\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003e1happyturtle\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (posts about turtles, we don't know why).\u003c/li\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@the_mighty_zork\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003ethe_mighty_zork\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (who knows).\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eIf you need to edit the models for the testrig, you can do so at \u003ccode\u003einternal/testmodels.go\u003c/code\u003e.\u003c/p\u003e", - "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", + "description": "\u003cp\u003eHere's a fuller description of the GoToSocial testrig instance.\u003c/p\u003e\u003cp\u003eThis instance is for testing purposes only. It doesn't federate at all. Go check out \u003ca href=\"https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003ehttps://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig\u003c/a\u003e and \u003ca href=\"https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003ehttps://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing\u003c/a\u003e\u003c/p\u003e\u003cp\u003eUsers on this instance:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@admin\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003eadmin\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (admin!).\u003c/li\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003e1happyturtle\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (posts about turtles, we don't know why).\u003c/li\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@the_mighty_zork\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003ethe_mighty_zork\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (who knows).\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eIf you need to edit the models for the testrig, you can do so at \u003ccode\u003einternal/testmodels.go\u003c/code\u003e.\u003c/p\u003e", + "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", "short_description": "\u003cp\u003eThis is the GoToSocial testrig. It doesn't federate or anything.\u003c/p\u003e\u003cp\u003eWhen the testrig is shut down, all data on it will be deleted.\u003c/p\u003e\u003cp\u003eDon't use this in production!\u003c/p\u003e", "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", @@ -2440,9 +2440,9 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV2ToFrontend() { "account_domain": "localhost:8080", "title": "GoToSocial Testrig Instance", "version": "0.0.0-testrig", - "source_url": "https://github.com/superseriousbusiness/gotosocial", - "description": "\u003cp\u003eHere's a fuller description of the GoToSocial testrig instance.\u003c/p\u003e\u003cp\u003eThis instance is for testing purposes only. It doesn't federate at all. Go check out \u003ca href=\"https://github.com/superseriousbusiness/gotosocial/tree/main/testrig\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003ehttps://github.com/superseriousbusiness/gotosocial/tree/main/testrig\u003c/a\u003e and \u003ca href=\"https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003ehttps://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing\u003c/a\u003e\u003c/p\u003e\u003cp\u003eUsers on this instance:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@admin\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003eadmin\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (admin!).\u003c/li\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003e1happyturtle\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (posts about turtles, we don't know why).\u003c/li\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@the_mighty_zork\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003ethe_mighty_zork\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (who knows).\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eIf you need to edit the models for the testrig, you can do so at \u003ccode\u003einternal/testmodels.go\u003c/code\u003e.\u003c/p\u003e", - "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", + "source_url": "https://codeberg.org/superseriousbusiness/gotosocial", + "description": "\u003cp\u003eHere's a fuller description of the GoToSocial testrig instance.\u003c/p\u003e\u003cp\u003eThis instance is for testing purposes only. It doesn't federate at all. Go check out \u003ca href=\"https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003ehttps://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/testrig\u003c/a\u003e and \u003ca href=\"https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003ehttps://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing\u003c/a\u003e\u003c/p\u003e\u003cp\u003eUsers on this instance:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@admin\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003eadmin\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (admin!).\u003c/li\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003e1happyturtle\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (posts about turtles, we don't know why).\u003c/li\u003e\u003cli\u003e\u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:8080/@the_mighty_zork\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\u003e@\u003cspan\u003ethe_mighty_zork\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e (who knows).\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eIf you need to edit the models for the testrig, you can do so at \u003ccode\u003einternal/testmodels.go\u003c/code\u003e.\u003c/p\u003e", + "description_text": "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `+"`"+`internal/testmodels.go`+"`"+`.", "usage": { "users": { "active_month": 0 diff --git a/internal/typeutils/internaltorss.go b/internal/typeutils/internaltorss.go index 43ca7ba48..59babcb2d 100644 --- a/internal/typeutils/internaltorss.go +++ b/internal/typeutils/internaltorss.go @@ -23,12 +23,12 @@ import ( "strconv" "strings" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/text" "github.com/gorilla/feeds" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/text" ) const ( diff --git a/internal/typeutils/internaltorss_test.go b/internal/typeutils/internaltorss_test.go index 5e0d6f0c1..27d22cf81 100644 --- a/internal/typeutils/internaltorss_test.go +++ b/internal/typeutils/internaltorss_test.go @@ -22,10 +22,10 @@ import ( "encoding/xml" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "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/util" ) type InternalToRSSTestSuite struct { diff --git a/internal/typeutils/util.go b/internal/typeutils/util.go index 17394fe49..2a0293f65 100644 --- a/internal/typeutils/util.go +++ b/internal/typeutils/util.go @@ -28,15 +28,15 @@ import ( "strconv" "strings" - 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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/language" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/regexes" - "github.com/superseriousbusiness/gotosocial/internal/text" + 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/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/language" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/regexes" + "code.superseriousbusiness.org/gotosocial/internal/text" ) // toAPISize converts a set of media dimensions diff --git a/internal/typeutils/util_test.go b/internal/typeutils/util_test.go index ea6667519..4f0e70db0 100644 --- a/internal/typeutils/util_test.go +++ b/internal/typeutils/util_test.go @@ -21,10 +21,10 @@ import ( "context" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/language" "github.com/stretchr/testify/assert" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/language" ) func TestMisskeyReportContentURLs1(t *testing.T) { @@ -179,16 +179,16 @@ func TestFilterableText(t *testing.T) { }, { status: >smodel.Status{ - 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://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{ - "@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)\n\nhttps://github.com/superseriousbusiness/gotosocial/pull/2863 ", + "@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)\n\nhttps://codeberg.org/superseriousbusiness/gotosocial/pulls/2863 ", }, }, { status: >smodel.Status{ ContentWarning: "Nerd stuff", - 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.

`, + 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 #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.", + "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.", "Graph showing GtS using between 150-300 MiB of memory, steadily, over a few days.", "Another media attachment", "Poll option 1", diff --git a/internal/typeutils/wrap.go b/internal/typeutils/wrap.go index 894fd9a5e..59c7e2264 100644 --- a/internal/typeutils/wrap.go +++ b/internal/typeutils/wrap.go @@ -18,12 +18,12 @@ package typeutils import ( - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // WrapAccountableInUpdate wraps the given accountable diff --git a/internal/typeutils/wrap_test.go b/internal/typeutils/wrap_test.go index dde4f18b5..612b92ae8 100644 --- a/internal/typeutils/wrap_test.go +++ b/internal/typeutils/wrap_test.go @@ -22,9 +22,9 @@ import ( "encoding/json" "testing" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" ) type WrapTestSuite struct { diff --git a/internal/uris/uri.go b/internal/uris/uri.go index e1783b26c..d4bc2d829 100644 --- a/internal/uris/uri.go +++ b/internal/uris/uri.go @@ -22,8 +22,8 @@ import ( "net/url" "strings" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/regexes" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/regexes" ) const ( diff --git a/internal/util/domain_test.go b/internal/util/domain_test.go index a0ffd30b4..aad1472f8 100644 --- a/internal/util/domain_test.go +++ b/internal/util/domain_test.go @@ -22,9 +22,9 @@ import ( "strconv" "testing" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type PunyTestSuite struct { diff --git a/internal/util/namestring.go b/internal/util/namestring.go index bb351c6e8..26aad821f 100644 --- a/internal/util/namestring.go +++ b/internal/util/namestring.go @@ -22,8 +22,8 @@ import ( "net/url" "strings" - "github.com/superseriousbusiness/gotosocial/internal/regexes" - "github.com/superseriousbusiness/gotosocial/internal/uris" + "code.superseriousbusiness.org/gotosocial/internal/regexes" + "code.superseriousbusiness.org/gotosocial/internal/uris" ) // ExtractNamestringParts extracts the username test_user and diff --git a/internal/util/namestring_test.go b/internal/util/namestring_test.go index 2ce5af65c..9368dc7c1 100644 --- a/internal/util/namestring_test.go +++ b/internal/util/namestring_test.go @@ -20,8 +20,8 @@ package util_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type NamestringSuite struct { diff --git a/internal/util/paging.go b/internal/util/paging.go index 190f40afd..712498313 100644 --- a/internal/util/paging.go +++ b/internal/util/paging.go @@ -22,9 +22,9 @@ import ( "net/url" "strings" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" ) // PageableResponseParams models the parameters to pass to PackagePageableResponse. diff --git a/internal/util/paging_test.go b/internal/util/paging_test.go index bab7dcb7b..f041277bc 100644 --- a/internal/util/paging_test.go +++ b/internal/util/paging_test.go @@ -20,9 +20,9 @@ package util_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/util" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/util" ) type PagingSuite struct { diff --git a/internal/util/secret_test.go b/internal/util/secret_test.go index 99b2df32c..cda5a484e 100644 --- a/internal/util/secret_test.go +++ b/internal/util/secret_test.go @@ -21,7 +21,7 @@ import ( "regexp" "testing" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/util" ) func TestMustGenerateSecret(t *testing.T) { diff --git a/internal/util/time_test.go b/internal/util/time_test.go index 0af80bb92..a99e2089a 100644 --- a/internal/util/time_test.go +++ b/internal/util/time_test.go @@ -20,9 +20,9 @@ package util_test import ( "testing" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/testrig" ) type TimeSuite struct { diff --git a/internal/util/xslices/slices_test.go b/internal/util/xslices/slices_test.go index 7c62ac77f..dfa54181c 100644 --- a/internal/util/xslices/slices_test.go +++ b/internal/util/xslices/slices_test.go @@ -23,8 +23,8 @@ import ( "slices" "testing" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" "github.com/stretchr/testify/assert" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" ) func TestGrowJust(t *testing.T) { diff --git a/internal/validate/formvalidation.go b/internal/validate/formvalidation.go index 4de7636a5..08fa23dcb 100644 --- a/internal/validate/formvalidation.go +++ b/internal/validate/formvalidation.go @@ -22,10 +22,10 @@ import ( "fmt" "net/mail" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/regexes" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/regexes" pwv "github.com/wagslane/go-password-validator" "golang.org/x/text/language" ) diff --git a/internal/validate/formvalidation_test.go b/internal/validate/formvalidation_test.go index 93762cd37..c6dfdbc08 100644 --- a/internal/validate/formvalidation_test.go +++ b/internal/validate/formvalidation_test.go @@ -22,10 +22,10 @@ import ( "fmt" "testing" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/validate" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) type ValidationTestSuite struct { diff --git a/internal/web/about.go b/internal/web/about.go index 2bc558962..e899bcb84 100644 --- a/internal/web/about.go +++ b/internal/web/about.go @@ -20,11 +20,11 @@ package web import ( "context" + 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 ( diff --git a/internal/web/assets.go b/internal/web/assets.go index ae185354d..8e453850d 100644 --- a/internal/web/assets.go +++ b/internal/web/assets.go @@ -24,10 +24,10 @@ import ( "path/filepath" "strings" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type fileSystem struct { diff --git a/internal/web/confirmemail.go b/internal/web/confirmemail.go index 323de6bb2..9030cc463 100644 --- a/internal/web/confirmemail.go +++ b/internal/web/confirmemail.go @@ -22,10 +22,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" ) func (m *Module) confirmEmailGETHandler(c *gin.Context) { diff --git a/internal/web/customcss.go b/internal/web/customcss.go index 36ae9de55..f0c767503 100644 --- a/internal/web/customcss.go +++ b/internal/web/customcss.go @@ -20,10 +20,10 @@ package web 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" ) const textCSSUTF8 = string(apiutil.TextCSS + "; charset=utf-8") diff --git a/internal/web/domain-blocklist.go b/internal/web/domain-blocklist.go index 309e629f2..34e23d899 100644 --- a/internal/web/domain-blocklist.go +++ b/internal/web/domain-blocklist.go @@ -21,11 +21,11 @@ import ( "context" "fmt" + 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 ( diff --git a/internal/web/etag.go b/internal/web/etag.go index 88779871c..fcd55603b 100644 --- a/internal/web/etag.go +++ b/internal/web/etag.go @@ -24,7 +24,7 @@ import ( "io" "time" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-cache/v3" ) diff --git a/internal/web/index.go b/internal/web/index.go index 02ce30138..7179e4953 100644 --- a/internal/web/index.go +++ b/internal/web/index.go @@ -22,11 +22,11 @@ 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/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" ) func (m *Module) indexHandler(c *gin.Context) { diff --git a/internal/web/login-info.go b/internal/web/login-info.go index 9aca768b6..f1b2dd104 100644 --- a/internal/web/login-info.go +++ b/internal/web/login-info.go @@ -20,10 +20,10 @@ package web import ( "context" + 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" ) const ( diff --git a/internal/web/maintenance.go b/internal/web/maintenance.go index f05fa83dd..299139679 100644 --- a/internal/web/maintenance.go +++ b/internal/web/maintenance.go @@ -21,11 +21,11 @@ import ( "net/http" "time" + "code.superseriousbusiness.org/gotosocial/internal/api/health" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/router" "codeberg.org/gruf/go-cache/v3" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/api/health" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/router" ) type MaintenanceModule struct { diff --git a/internal/web/profile.go b/internal/web/profile.go index dd3ed8e64..98abe5741 100644 --- a/internal/web/profile.go +++ b/internal/web/profile.go @@ -23,11 +23,11 @@ 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/log" "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" ) type profile struct { diff --git a/internal/web/rss.go b/internal/web/rss.go index ced74ed6b..006ba4ec1 100644 --- a/internal/web/rss.go +++ b/internal/web/rss.go @@ -23,10 +23,10 @@ import ( "strings" "time" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "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/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) const appRSSUTF8 = string(apiutil.AppRSSXML) + "; charset=utf-8" @@ -46,7 +46,7 @@ func (m *Module) rssFeedGETHandler(c *gin.Context) { // Usernames on our instance will always be lowercase. // - // todo: https://github.com/superseriousbusiness/gotosocial/issues/1813 + // todo: https://codeberg.org/superseriousbusiness/gotosocial/issues/1813 username = strings.ToLower(username) // Retrieve the getRSSFeed function from the processor. diff --git a/internal/web/settings-panel.go b/internal/web/settings-panel.go index 9b27fe871..1dffa8842 100644 --- a/internal/web/settings-panel.go +++ b/internal/web/settings-panel.go @@ -20,10 +20,10 @@ package web import ( "context" + 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" ) func (m *Module) SettingsPanelHandler(c *gin.Context) { diff --git a/internal/web/signup.go b/internal/web/signup.go index a943f3680..48965a935 100644 --- a/internal/web/signup.go +++ b/internal/web/signup.go @@ -22,12 +22,12 @@ import ( "errors" "net" + 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/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/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/validate" ) func (m *Module) signupGETHandler(c *gin.Context) { diff --git a/internal/web/tag.go b/internal/web/tag.go index 5c3cd31a6..e936d0603 100644 --- a/internal/web/tag.go +++ b/internal/web/tag.go @@ -20,10 +20,10 @@ package web import ( "context" + 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" ) func (m *Module) tagGETHandler(c *gin.Context) { diff --git a/internal/web/thread.go b/internal/web/thread.go index d46e52ac7..3844bc6f3 100644 --- a/internal/web/thread.go +++ b/internal/web/thread.go @@ -24,10 +24,10 @@ 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" "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" ) func (m *Module) threadGETHandler(c *gin.Context) { diff --git a/internal/web/web.go b/internal/web/web.go index 5bccca06d..ab440ab2f 100644 --- a/internal/web/web.go +++ b/internal/web/web.go @@ -22,14 +22,14 @@ import ( "net/http" "net/url" + apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/middleware" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/router" + "code.superseriousbusiness.org/gotosocial/internal/uris" "codeberg.org/gruf/go-cache/v3" "github.com/gin-gonic/gin" - apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/middleware" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/router" - "github.com/superseriousbusiness/gotosocial/internal/uris" ) const ( diff --git a/internal/webpush/realsender.go b/internal/webpush/realsender.go index d2aeaf763..0a04a2b68 100644 --- a/internal/webpush/realsender.go +++ b/internal/webpush/realsender.go @@ -27,16 +27,16 @@ import ( "strings" "time" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "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/text" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" webpushgo "github.com/SherClockHolmes/webpush-go" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "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/text" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" ) // realSender is the production Web Push sender, diff --git a/internal/webpush/realsender_test.go b/internal/webpush/realsender_test.go index 28a5eae95..884e8d40a 100644 --- a/internal/webpush/realsender_test.go +++ b/internal/webpush/realsender_test.go @@ -27,25 +27,25 @@ import ( // for go:linkname _ "unsafe" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/email" + "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/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/subscriptions" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/webpush" + "code.superseriousbusiness.org/gotosocial/testrig" "github.com/stretchr/testify/suite" - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/email" - "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/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/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/webpush" - "github.com/superseriousbusiness/gotosocial/testrig" ) type RealSenderStandardTestSuite struct { @@ -281,5 +281,5 @@ func TestRealSenderStandardTestSuite(t *testing.T) { suite.Run(t, &RealSenderStandardTestSuite{}) } -//go:linkname newSenderWith github.com/superseriousbusiness/gotosocial/internal/webpush.newSenderWith +//go:linkname newSenderWith code.superseriousbusiness.org/gotosocial/internal/webpush.newSenderWith func newSenderWith(*http.Client, *state.State, *typeutils.Converter) webpush.Sender diff --git a/internal/webpush/sender.go b/internal/webpush/sender.go index 060118019..b7bb75d41 100644 --- a/internal/webpush/sender.go +++ b/internal/webpush/sender.go @@ -21,11 +21,11 @@ import ( "context" "net/http" - "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/filter/usermute" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/httpclient" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // Sender can send Web Push notifications. diff --git a/internal/workers/worker_fn.go b/internal/workers/worker_fn.go index 3f467e662..c57fcfe88 100644 --- a/internal/workers/worker_fn.go +++ b/internal/workers/worker_fn.go @@ -20,10 +20,10 @@ package workers import ( "context" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/queue" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-runners" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/queue" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // FnWorkerPool wraps multiple FnWorker{}s in diff --git a/internal/workers/worker_msg.go b/internal/workers/worker_msg.go index c7dc568d7..e038fda02 100644 --- a/internal/workers/worker_msg.go +++ b/internal/workers/worker_msg.go @@ -21,11 +21,11 @@ import ( "context" "errors" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/queue" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-runners" "codeberg.org/gruf/go-structr" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/queue" - "github.com/superseriousbusiness/gotosocial/internal/util" ) // MsgWorkerPool wraps multiple MsgWorker{}s in diff --git a/internal/workers/workers.go b/internal/workers/workers.go index 50ad3cce5..23898e75a 100644 --- a/internal/workers/workers.go +++ b/internal/workers/workers.go @@ -20,11 +20,11 @@ package workers import ( "runtime" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/messages" - "github.com/superseriousbusiness/gotosocial/internal/scheduler" - "github.com/superseriousbusiness/gotosocial/internal/transport/delivery" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/messages" + "code.superseriousbusiness.org/gotosocial/internal/scheduler" + "code.superseriousbusiness.org/gotosocial/internal/transport/delivery" ) type Workers struct { diff --git a/mkdocs.yml b/mkdocs.yml index f8f9797be..02dadf4cf 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -18,7 +18,7 @@ theme: toggle: icon: material/brightness-4 name: Switch to dark mode -repo_url: https://github.com/superseriousbusiness/gotosocial +repo_url: https://codeberg.org/superseriousbusiness/gotosocial edit_uri: edit/main/docs/ copyright: GoToSocial is licensed under the GNU AGPL v3 LICENSE. Copyright (C) GoToSocial Authors admin@gotosocial.org plugins: diff --git a/testrig/config.go b/testrig/config.go index 9f17530c4..ec7b72faa 100644 --- a/testrig/config.go +++ b/testrig/config.go @@ -24,11 +24,11 @@ import ( "strconv" "time" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/language" + "code.superseriousbusiness.org/gotosocial/internal/media/ffmpeg" "codeberg.org/gruf/go-bytesize" "github.com/coreos/go-oidc/v3/oidc" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/language" - "github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg" ) func init() { diff --git a/testrig/db.go b/testrig/db.go index 2f44b3777..4c8a3568d 100644 --- a/testrig/db.go +++ b/testrig/db.go @@ -20,11 +20,11 @@ package testrig import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/db/bundb" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/db/bundb" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/state" ) var testModels = []interface{}{ diff --git a/testrig/email.go b/testrig/email.go index a80054f30..5ebc3a4d6 100644 --- a/testrig/email.go +++ b/testrig/email.go @@ -18,9 +18,9 @@ package testrig import ( - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/email" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/email" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // NewEmailSender returns a noop email sender that won't make any remote calls. diff --git a/testrig/federatingdb.go b/testrig/federatingdb.go index 73731abae..28c6bd7b4 100644 --- a/testrig/federatingdb.go +++ b/testrig/federatingdb.go @@ -18,12 +18,12 @@ package testrig import ( - "github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb" - "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" + "code.superseriousbusiness.org/gotosocial/internal/federation/federatingdb" + "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" ) // NewTestFederatingDB returns a federating DB with the underlying db diff --git a/testrig/federator.go b/testrig/federator.go index cd4f38b10..d0f5b52f2 100644 --- a/testrig/federator.go +++ b/testrig/federator.go @@ -18,13 +18,13 @@ package testrig import ( - "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/media" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" + "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/media" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/transport" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" ) // NewTestFederator returns a federator with the given database and (mock!!) transport controller. diff --git a/testrig/gin.go b/testrig/gin.go index cd32654e8..2afe34e29 100644 --- a/testrig/gin.go +++ b/testrig/gin.go @@ -20,8 +20,8 @@ package testrig import ( "net/http" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/router" ) // CreateGinTextContext creates a new gin.Context suitable for a test, with an instantiated gin.Engine. diff --git a/testrig/log.go b/testrig/log.go index 439ed72b0..eb00483e7 100644 --- a/testrig/log.go +++ b/testrig/log.go @@ -18,8 +18,8 @@ package testrig import ( - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" "gopkg.in/mcuadros/go-syslog.v2" "gopkg.in/mcuadros/go-syslog.v2/format" ) diff --git a/testrig/mediahandler.go b/testrig/mediahandler.go index d61ba854d..d67fdfd3d 100644 --- a/testrig/mediahandler.go +++ b/testrig/mediahandler.go @@ -18,8 +18,8 @@ package testrig import ( - "github.com/superseriousbusiness/gotosocial/internal/media" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/media" + "code.superseriousbusiness.org/gotosocial/internal/state" ) // NewTestMediaManager returns a media handler with the default test config, and the given db and storage. diff --git a/testrig/oauthserver.go b/testrig/oauthserver.go index 9429e751b..817e6ad0e 100644 --- a/testrig/oauthserver.go +++ b/testrig/oauthserver.go @@ -20,9 +20,9 @@ package testrig import ( "context" - "github.com/superseriousbusiness/gotosocial/internal/oauth" - "github.com/superseriousbusiness/gotosocial/internal/oauth/handlers" - "github.com/superseriousbusiness/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/oauth" + "code.superseriousbusiness.org/gotosocial/internal/oauth/handlers" + "code.superseriousbusiness.org/gotosocial/internal/state" ) // NewTestOauthServer returns an oauth server with the given db diff --git a/testrig/processor.go b/testrig/processor.go index 2df7ef197..d2405a6f0 100644 --- a/testrig/processor.go +++ b/testrig/processor.go @@ -18,17 +18,17 @@ package testrig import ( - "github.com/superseriousbusiness/gotosocial/internal/cleaner" - "github.com/superseriousbusiness/gotosocial/internal/email" - "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/media" - "github.com/superseriousbusiness/gotosocial/internal/processing" - "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/subscriptions" - "github.com/superseriousbusiness/gotosocial/internal/typeutils" - "github.com/superseriousbusiness/gotosocial/internal/webpush" + "code.superseriousbusiness.org/gotosocial/internal/cleaner" + "code.superseriousbusiness.org/gotosocial/internal/email" + "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/media" + "code.superseriousbusiness.org/gotosocial/internal/processing" + "code.superseriousbusiness.org/gotosocial/internal/state" + "code.superseriousbusiness.org/gotosocial/internal/subscriptions" + "code.superseriousbusiness.org/gotosocial/internal/typeutils" + "code.superseriousbusiness.org/gotosocial/internal/webpush" ) // NewTestProcessor returns a Processor suitable for testing purposes. diff --git a/testrig/router.go b/testrig/router.go index 20317dae6..133320ff4 100644 --- a/testrig/router.go +++ b/testrig/router.go @@ -23,10 +23,10 @@ import ( "path/filepath" "strconv" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/db" + "code.superseriousbusiness.org/gotosocial/internal/router" "github.com/gin-gonic/gin" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/router" ) // NewTestRouter returns a Router suitable for testing diff --git a/testrig/storage.go b/testrig/storage.go index 1f833044f..7c5a94236 100644 --- a/testrig/storage.go +++ b/testrig/storage.go @@ -23,8 +23,8 @@ import ( "os" "path" + gtsstorage "code.superseriousbusiness.org/gotosocial/internal/storage" "codeberg.org/gruf/go-storage/memory" - gtsstorage "github.com/superseriousbusiness/gotosocial/internal/storage" ) // NewInMemoryStorage returns a new in memory storage with the default test config diff --git a/testrig/testmodels.go b/testrig/testmodels.go index e12ac3405..7d868ce4d 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -34,13 +34,13 @@ import ( "strings" "time" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/transport" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/activity/pub" + "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/transport" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // NewTestTokens returns a map of tokens keyed according to which account the token belongs to. @@ -1908,8 +1908,8 @@ func NewTestInstances() map[string]*gtsmodel.Instance { Title: "GoToSocial Testrig Instance", ShortDescription: "

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!

", 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.

", - DescriptionText: "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `internal/testmodels.go`.", + 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://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.

", + DescriptionText: "Here's a fuller description of the GoToSocial testrig instance.\n\nThis 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\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `internal/testmodels.go`.", Terms: "

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:

  1. Will sell your data to whoever offers.
  2. Secure the server with password password wherever possible.
", TermsText: "This is where a list of terms and conditions might go.\n\nFor example:\n\nIf you want to sign up on this instance, you oughta know that we:\n\n1. Will sell your data to whoever offers.\n2. Secure the server with password `password` wherever possible.", ContactEmail: "admin@example.org", @@ -3508,6 +3508,49 @@ func NewTestActivities(accounts map[string]*gtsmodel.Account) map[string]Activit keyToSignDelete := accounts["remote_account_1"].PrivateKey deleteForRemoteAccount3Sig, deleteForRemoteAccount3Digest, deleteForRemoteAccount3Date := GetSignatureForActivity(deleteForRemoteAccount3, "https://somewhere.mysterious/users/rest_in_piss#main-key", keyToSignDelete, URLMustParse(accounts["local_account_1"].InboxURI)) + remoteAccount2Status1Updated := NewAPNote( + URLMustParse("http://example.org/users/Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5"), + URLMustParse("http://example.org/@Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5"), + TimeMustParse("2023-11-02T12:44:25+02:00"), + `

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 @@