From 5cefa5416a3e3254af22ee06d86c3e51c3eaa53c Mon Sep 17 00:00:00 2001 From: Elliot Waddington Date: Thu, 12 Dec 2024 16:07:33 +0100 Subject: [PATCH] chore: update @bufbuild to v2 --- package.json | 6 +- pnpm-lock.yaml | 54 +- .../account-AdminService_connectquery.ts | 138 +- .../account-ManagementService_connectquery.ts | 160 +- src/__generated__/account_connect.ts | 346 -- src/__generated__/account_pb.ts | 2926 ++++------- .../apikeys-ApiKeyService_connectquery.ts | 83 +- src/__generated__/apikeys_connect.ts | 99 - src/__generated__/apikeys_pb.ts | 830 ++- .../auth0support-Auth0Support_connectquery.ts | 29 +- src/__generated__/auth0support_connect.ts | 45 - src/__generated__/auth0support_pb.ts | 138 +- ...bookmarks-BookmarksService_connectquery.ts | 72 +- src/__generated__/bookmarks_connect.ts | 79 - src/__generated__/bookmarks_pb.ts | 654 +-- .../changes-ChangesService_connectquery.ts | 325 +- src/__generated__/changes_connect.ts | 428 -- src/__generated__/changes_pb.ts | 4477 ++++++----------- .../cli-ConfigService_connectquery.ts | 28 +- src/__generated__/cli_connect.ts | 37 - src/__generated__/cli_pb.ts | 188 +- ...onfig-ConfigurationService_connectquery.ts | 61 +- src/__generated__/config_connect.ts | 76 - src/__generated__/config_pb.ts | 592 +-- src/__generated__/gateway_pb.ts | 1096 +--- .../invites-InviteService_connectquery.ts | 50 +- src/__generated__/invites_connect.ts | 55 - src/__generated__/invites_pb.ts | 395 +- src/__generated__/items_pb.ts | 1001 ++-- src/__generated__/responses_pb.ts | 148 +- .../revlink-RevlinkService_connectquery.ts | 17 +- src/__generated__/revlink_connect.ts | 39 - src/__generated__/revlink_pb.ts | 214 +- ...snapshots-SnapshotsService_connectquery.ts | 72 +- src/__generated__/snapshots_connect.ts | 71 - src/__generated__/snapshots_pb.ts | 720 +-- src/__generated__/util_pb.ts | 177 +- src/__tests__/gateway.test.ts | 152 +- src/__tests__/sampledata.helper.ts | 93 +- src/__tests__/util.test.ts | 12 +- src/gateway-session.ts | 31 +- src/index.ts | 1 - src/protobuf.ts | 1 - src/services.ts | 9 - src/util.ts | 42 +- 45 files changed, 4820 insertions(+), 11447 deletions(-) delete mode 100644 src/__generated__/account_connect.ts delete mode 100644 src/__generated__/apikeys_connect.ts delete mode 100644 src/__generated__/auth0support_connect.ts delete mode 100644 src/__generated__/bookmarks_connect.ts delete mode 100644 src/__generated__/changes_connect.ts delete mode 100644 src/__generated__/cli_connect.ts delete mode 100644 src/__generated__/config_connect.ts delete mode 100644 src/__generated__/invites_connect.ts delete mode 100644 src/__generated__/revlink_connect.ts delete mode 100644 src/__generated__/snapshots_connect.ts delete mode 100644 src/services.ts diff --git a/package.json b/package.json index 7bc43e3..85e68a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@overmindtech/sdp-js", - "version": "11.11.0", + "version": "12.0.0", "description": "Javascript and Typescript libraries for the State Description Protocol", "license": "MIT", "sideEffects": false, @@ -31,8 +31,8 @@ "qa": "pnpm typecheck && pnpm lint:fix && pnpm prettier:fix && npm test" }, "dependencies": { - "@bufbuild/protobuf": "^1.10.0", - "@connectrpc/connect-query": "^1.4.2", + "@bufbuild/protobuf": "^2.2.2", + "@connectrpc/connect-query": "^2.0.0", "@typescript-eslint/parser": "^8.10.0", "typescript-eslint": "^8.10.0", "uuid": "^11.0.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 03f9034..42ed3e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,11 +9,11 @@ importers: .: dependencies: '@bufbuild/protobuf': - specifier: ^1.10.0 - version: 1.10.0 + specifier: ^2.2.2 + version: 2.2.3 '@connectrpc/connect-query': - specifier: ^1.4.2 - version: 1.4.2(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.10.0))(@tanstack/react-query@5.28.14(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ^2.0.0 + version: 2.0.0(@bufbuild/protobuf@2.2.3)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@2.2.3))(@tanstack/query-core@5.28.13)(@tanstack/react-query@5.28.14(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@typescript-eslint/parser': specifier: ^8.10.0 version: 8.10.0(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3) @@ -151,14 +151,21 @@ packages: '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} - '@bufbuild/protobuf@1.10.0': - resolution: {integrity: sha512-QDdVFLoN93Zjg36NoQPZfsVH9tZew7wKDKyV5qRdj8ntT4wQCOradQjRaTdwMhWUYsgKsvCINKKm87FdEk96Ag==} + '@bufbuild/protobuf@2.2.3': + resolution: {integrity: sha512-tFQoXHJdkEOSwj5tRIZSPNUuXK3RaR7T1nUrPgbYX1pUbvqqaaZAsfo+NXBPsz5rZMSKVFrgK1WL8Q/MSLvprg==} + + '@connectrpc/connect-query-core@2.0.0': + resolution: {integrity: sha512-IYn3Nw37yOihg6W/8WqsioorxO9E4K2ypvyk5/JQ1A0s4l/UOwNVrPlUv3uhF4eW++R4NMCn25B4iKBDygS2yg==} + peerDependencies: + '@bufbuild/protobuf': 2.x + '@connectrpc/connect': ^2.0.0 + '@tanstack/query-core': 5.x - '@connectrpc/connect-query@1.4.2': - resolution: {integrity: sha512-ZjBLtaGoBPDMtdRu4KiX7KpSigifiZiVaenhXHUsmNRjLj9r4OxQM+O2OqvTQ1YJhP4/h1xL+HX7YB0gcQ0FoA==} + '@connectrpc/connect-query@2.0.0': + resolution: {integrity: sha512-1xLeS+aT4QZvMbP4TrZrrcV9w4fIsOPVg8WtMtINoYYGpQOp9sSW/EGp9NgwiTWfyA3DoJDLttXCIf3eIHvOlA==} peerDependencies: - '@bufbuild/protobuf': ^1.10.0 - '@connectrpc/connect': ^1.1.2 + '@bufbuild/protobuf': 2.x + '@connectrpc/connect': ^2.0.0 '@tanstack/react-query': 5.x react: ^18.3.1 react-dom: ^18.3.1 @@ -2363,9 +2370,6 @@ packages: spdx-license-ids@3.0.18: resolution: {integrity: sha512-xxRs31BqRYHwiMzudOrpSiHtZ8i/GeionCBDSilhYRj+9gIcI8wCZTlXZKu9vZIVqViP3dcp9qE5G6AlIaD+TQ==} - stable-hash@0.0.4: - resolution: {integrity: sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==} - stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -2765,20 +2769,28 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} - '@bufbuild/protobuf@1.10.0': {} + '@bufbuild/protobuf@2.2.3': {} - '@connectrpc/connect-query@1.4.2(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.10.0))(@tanstack/react-query@5.28.14(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@connectrpc/connect-query-core@2.0.0(@bufbuild/protobuf@2.2.3)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@2.2.3))(@tanstack/query-core@5.28.13)': dependencies: - '@bufbuild/protobuf': 1.10.0 - '@connectrpc/connect': 1.4.0(@bufbuild/protobuf@1.10.0) + '@bufbuild/protobuf': 2.2.3 + '@connectrpc/connect': 1.4.0(@bufbuild/protobuf@2.2.3) + '@tanstack/query-core': 5.28.13 + + '@connectrpc/connect-query@2.0.0(@bufbuild/protobuf@2.2.3)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@2.2.3))(@tanstack/query-core@5.28.13)(@tanstack/react-query@5.28.14(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + dependencies: + '@bufbuild/protobuf': 2.2.3 + '@connectrpc/connect': 1.4.0(@bufbuild/protobuf@2.2.3) + '@connectrpc/connect-query-core': 2.0.0(@bufbuild/protobuf@2.2.3)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@2.2.3))(@tanstack/query-core@5.28.13) '@tanstack/react-query': 5.28.14(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - stable-hash: 0.0.4 + transitivePeerDependencies: + - '@tanstack/query-core' - '@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.10.0)': + '@connectrpc/connect@1.4.0(@bufbuild/protobuf@2.2.3)': dependencies: - '@bufbuild/protobuf': 1.10.0 + '@bufbuild/protobuf': 2.2.3 '@esbuild/aix-ppc64@0.19.12': optional: true @@ -4851,8 +4863,6 @@ snapshots: spdx-license-ids@3.0.18: {} - stable-hash@0.0.4: {} - stackback@0.0.2: {} std-env@3.7.0: {} diff --git a/src/__generated__/account-AdminService_connectquery.ts b/src/__generated__/account-AdminService_connectquery.ts index 80a262b..cf9e9a3 100644 --- a/src/__generated__/account-AdminService_connectquery.ts +++ b/src/__generated__/account-AdminService_connectquery.ts @@ -1,74 +1,36 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file account.proto (package account, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { AdminCreateSourceRequest, AdminCreateTokenRequest, AdminDeleteAccountRequest, AdminDeleteAccountResponse, AdminDeleteSourceRequest, AdminGetAccountRequest, AdminGetSourceRequest, AdminKeepaliveSourcesRequest, AdminListSourcesRequest, AdminUpdateAccountRequest, AdminUpdateSourceRequest, CreateAccountRequest, CreateAccountResponse, CreateSourceResponse, CreateTokenResponse, DeleteSourceResponse, GetAccountResponse, GetSourceResponse, KeepaliveSourcesResponse, ListAccountsRequest, ListAccountsResponse, ListSourcesResponse, UpdateAccountResponse, UpdateSourceResponse } from "./account_pb.ts"; +import { AdminService } from "./account_pb"; /** * Lists the details of all NATS Accounts * * @generated from rpc account.AdminService.ListAccounts */ -export const listAccounts = { - localName: "listAccounts", - name: "ListAccounts", - kind: MethodKind.Unary, - I: ListAccountsRequest, - O: ListAccountsResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const listAccounts = AdminService.method.listAccounts; /** * Creates a new account, public_nkey will be autogenerated * * @generated from rpc account.AdminService.CreateAccount */ -export const createAccount = { - localName: "createAccount", - name: "CreateAccount", - kind: MethodKind.Unary, - I: CreateAccountRequest, - O: CreateAccountResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const createAccount = AdminService.method.createAccount; /** * Updates account details, returns the account * * @generated from rpc account.AdminService.UpdateAccount */ -export const updateAccount = { - localName: "updateAccount", - name: "UpdateAccount", - kind: MethodKind.Unary, - I: AdminUpdateAccountRequest, - O: UpdateAccountResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const updateAccount = AdminService.method.updateAccount; /** * Get the details of a given account * * @generated from rpc account.AdminService.GetAccount */ -export const getAccount = { - localName: "getAccount", - name: "GetAccount", - kind: MethodKind.Unary, - I: AdminGetAccountRequest, - O: GetAccountResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const getAccount = AdminService.method.getAccount; /** * Completely deletes an account. This includes all of the data in that @@ -77,96 +39,42 @@ export const getAccount = { * * @generated from rpc account.AdminService.DeleteAccount */ -export const deleteAccount = { - localName: "deleteAccount", - name: "DeleteAccount", - kind: MethodKind.Unary, - I: AdminDeleteAccountRequest, - O: AdminDeleteAccountResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const deleteAccount = AdminService.method.deleteAccount; /** * Lists all sources within the chosen account * * @generated from rpc account.AdminService.ListSources */ -export const listSources = { - localName: "listSources", - name: "ListSources", - kind: MethodKind.Unary, - I: AdminListSourcesRequest, - O: ListSourcesResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const listSources = AdminService.method.listSources; /** * Creates a new source within the chosen account * * @generated from rpc account.AdminService.CreateSource */ -export const createSource = { - localName: "createSource", - name: "CreateSource", - kind: MethodKind.Unary, - I: AdminCreateSourceRequest, - O: CreateSourceResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const createSource = AdminService.method.createSource; /** * Get the details of a source within the chosen account * * @generated from rpc account.AdminService.GetSource */ -export const getSource = { - localName: "getSource", - name: "GetSource", - kind: MethodKind.Unary, - I: AdminGetSourceRequest, - O: GetSourceResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const getSource = AdminService.method.getSource; /** * Update the details of a source within the chosen account * * @generated from rpc account.AdminService.UpdateSource */ -export const updateSource = { - localName: "updateSource", - name: "UpdateSource", - kind: MethodKind.Unary, - I: AdminUpdateSourceRequest, - O: UpdateSourceResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const updateSource = AdminService.method.updateSource; /** * Deletes a source from a chosen account * * @generated from rpc account.AdminService.DeleteSource */ -export const deleteSource = { - localName: "deleteSource", - name: "DeleteSource", - kind: MethodKind.Unary, - I: AdminDeleteSourceRequest, - O: DeleteSourceResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const deleteSource = AdminService.method.deleteSource; /** * Updates sources to keep them running in the background. This can be used @@ -174,16 +82,7 @@ export const deleteSource = { * * @generated from rpc account.AdminService.KeepaliveSources */ -export const keepaliveSources = { - localName: "keepaliveSources", - name: "KeepaliveSources", - kind: MethodKind.Unary, - I: AdminKeepaliveSourcesRequest, - O: KeepaliveSourcesResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const keepaliveSources = AdminService.method.keepaliveSources; /** * Create a new NATS token for a given public NKey. The user requesting must @@ -192,13 +91,4 @@ export const keepaliveSources = { * * @generated from rpc account.AdminService.CreateToken */ -export const createToken = { - localName: "createToken", - name: "CreateToken", - kind: MethodKind.Unary, - I: AdminCreateTokenRequest, - O: CreateTokenResponse, - service: { - typeName: "account.AdminService" - } -} as const; +export const createToken = AdminService.method.createToken; diff --git a/src/__generated__/account-ManagementService_connectquery.ts b/src/__generated__/account-ManagementService_connectquery.ts index 3a9c345..d5bfe49 100644 --- a/src/__generated__/account-ManagementService_connectquery.ts +++ b/src/__generated__/account-ManagementService_connectquery.ts @@ -1,26 +1,15 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file account.proto (package account, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { CreateSourceRequest, CreateSourceResponse, CreateTokenRequest, CreateTokenResponse, DeleteAccountRequest, DeleteAccountResponse, DeleteSourceRequest, DeleteSourceResponse, GetAccountRequest, GetAccountResponse, GetSourceRequest, GetSourceResponse, GetTrialEndRequest, GetTrialEndResponse, KeepaliveSourcesRequest, KeepaliveSourcesResponse, ListAllSourcesStatusRequest, ListAllSourcesStatusResponse, ListAvailableItemTypesRequest, ListAvailableItemTypesResponse, ListSourcesRequest, ListSourcesResponse, SubmitSourceHeartbeatRequest, SubmitSourceHeartbeatResponse, UpdateSourceRequest, UpdateSourceResponse } from "./account_pb.ts"; +import { ManagementService } from "./account_pb"; /** * Get the details of the account that this user belongs to * * @generated from rpc account.ManagementService.GetAccount */ -export const getAccount = { - localName: "getAccount", - name: "GetAccount", - kind: MethodKind.Unary, - I: GetAccountRequest, - O: GetAccountResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const getAccount = ManagementService.method.getAccount; /** * Completely deletes the user's account. This includes all of the data in @@ -29,96 +18,42 @@ export const getAccount = { * * @generated from rpc account.ManagementService.DeleteAccount */ -export const deleteAccount = { - localName: "deleteAccount", - name: "DeleteAccount", - kind: MethodKind.Unary, - I: DeleteAccountRequest, - O: DeleteAccountResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const deleteAccount = ManagementService.method.deleteAccount; /** * Lists all sources within the user's account * * @generated from rpc account.ManagementService.ListSources */ -export const listSources = { - localName: "listSources", - name: "ListSources", - kind: MethodKind.Unary, - I: ListSourcesRequest, - O: ListSourcesResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const listSources = ManagementService.method.listSources; /** * Creates a new source within the user's account * * @generated from rpc account.ManagementService.CreateSource */ -export const createSource = { - localName: "createSource", - name: "CreateSource", - kind: MethodKind.Unary, - I: CreateSourceRequest, - O: CreateSourceResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const createSource = ManagementService.method.createSource; /** * Get the details of a source * * @generated from rpc account.ManagementService.GetSource */ -export const getSource = { - localName: "getSource", - name: "GetSource", - kind: MethodKind.Unary, - I: GetSourceRequest, - O: GetSourceResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const getSource = ManagementService.method.getSource; /** * Update the details of a source * * @generated from rpc account.ManagementService.UpdateSource */ -export const updateSource = { - localName: "updateSource", - name: "UpdateSource", - kind: MethodKind.Unary, - I: UpdateSourceRequest, - O: UpdateSourceResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const updateSource = ManagementService.method.updateSource; /** * Deletes a source from a user's account * * @generated from rpc account.ManagementService.DeleteSource */ -export const deleteSource = { - localName: "deleteSource", - name: "DeleteSource", - kind: MethodKind.Unary, - I: DeleteSourceRequest, - O: DeleteSourceResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const deleteSource = ManagementService.method.deleteSource; /** * Sources heartbeat and health @@ -128,16 +63,7 @@ export const deleteSource = { * * @generated from rpc account.ManagementService.ListAllSourcesStatus */ -export const listAllSourcesStatus = { - localName: "listAllSourcesStatus", - name: "ListAllSourcesStatus", - kind: MethodKind.Unary, - I: ListAllSourcesStatusRequest, - O: ListAllSourcesStatusResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const listAllSourcesStatus = ManagementService.method.listAllSourcesStatus; /** * Lists all active sources and their health. This should be used to determine @@ -146,32 +72,14 @@ export const listAllSourcesStatus = { * * @generated from rpc account.ManagementService.ListActiveSourcesStatus */ -export const listActiveSourcesStatus = { - localName: "listActiveSourcesStatus", - name: "ListActiveSourcesStatus", - kind: MethodKind.Unary, - I: ListAllSourcesStatusRequest, - O: ListAllSourcesStatusResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const listActiveSourcesStatus = ManagementService.method.listActiveSourcesStatus; /** * Heartbeat from a source to keep it registered and healthy * * @generated from rpc account.ManagementService.SubmitSourceHeartbeat */ -export const submitSourceHeartbeat = { - localName: "submitSourceHeartbeat", - name: "SubmitSourceHeartbeat", - kind: MethodKind.Unary, - I: SubmitSourceHeartbeatRequest, - O: SubmitSourceHeartbeatResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const submitSourceHeartbeat = ManagementService.method.submitSourceHeartbeat; /** * Updates sources to keep them running in the background. This can be used @@ -179,16 +87,7 @@ export const submitSourceHeartbeat = { * * @generated from rpc account.ManagementService.KeepaliveSources */ -export const keepaliveSources = { - localName: "keepaliveSources", - name: "KeepaliveSources", - kind: MethodKind.Unary, - I: KeepaliveSourcesRequest, - O: KeepaliveSourcesResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const keepaliveSources = ManagementService.method.keepaliveSources; /** * Create a new NATS token for a given public NKey. The user requesting must @@ -197,43 +96,16 @@ export const keepaliveSources = { * * @generated from rpc account.ManagementService.CreateToken */ -export const createToken = { - localName: "createToken", - name: "CreateToken", - kind: MethodKind.Unary, - I: CreateTokenRequest, - O: CreateTokenResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const createToken = ManagementService.method.createToken; /** * @generated from rpc account.ManagementService.GetTrialEnd */ -export const getTrialEnd = { - localName: "getTrialEnd", - name: "GetTrialEnd", - kind: MethodKind.Unary, - I: GetTrialEndRequest, - O: GetTrialEndResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const getTrialEnd = ManagementService.method.getTrialEnd; /** * Lists all the available item types that can be discovered by sources that are running and healthy * * @generated from rpc account.ManagementService.ListAvailableItemTypes */ -export const listAvailableItemTypes = { - localName: "listAvailableItemTypes", - name: "ListAvailableItemTypes", - kind: MethodKind.Unary, - I: ListAvailableItemTypesRequest, - O: ListAvailableItemTypesResponse, - service: { - typeName: "account.ManagementService" - } -} as const; +export const listAvailableItemTypes = ManagementService.method.listAvailableItemTypes; diff --git a/src/__generated__/account_connect.ts b/src/__generated__/account_connect.ts deleted file mode 100644 index 2e4a938..0000000 --- a/src/__generated__/account_connect.ts +++ /dev/null @@ -1,346 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file account.proto (package account, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { AdminCreateSourceRequest, AdminCreateTokenRequest, AdminDeleteAccountRequest, AdminDeleteAccountResponse, AdminDeleteSourceRequest, AdminGetAccountRequest, AdminGetSourceRequest, AdminKeepaliveSourcesRequest, AdminListSourcesRequest, AdminUpdateAccountRequest, AdminUpdateSourceRequest, CreateAccountRequest, CreateAccountResponse, CreateSourceRequest, CreateSourceResponse, CreateTokenRequest, CreateTokenResponse, DeleteAccountRequest, DeleteAccountResponse, DeleteSourceRequest, DeleteSourceResponse, GetAccountRequest, GetAccountResponse, GetSourceRequest, GetSourceResponse, GetTrialEndRequest, GetTrialEndResponse, KeepaliveSourcesRequest, KeepaliveSourcesResponse, ListAccountsRequest, ListAccountsResponse, ListAllSourcesStatusRequest, ListAllSourcesStatusResponse, ListAvailableItemTypesRequest, ListAvailableItemTypesResponse, ListSourcesRequest, ListSourcesResponse, RevlinkWarmupRequest, RevlinkWarmupResponse, SubmitSourceHeartbeatRequest, SubmitSourceHeartbeatResponse, UpdateAccountResponse, UpdateSourceRequest, UpdateSourceResponse } from "./account_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * The admin service allows users with Admin privileges to any account. Many of - * the RPCs in this service mirror RPCs in the ManagementService, but allow the - * user to specify an account to operate on, rather than using the account that - * the user belongs to. - * - * @generated from service account.AdminService - */ -export const AdminService = { - typeName: "account.AdminService", - methods: { - /** - * Lists the details of all NATS Accounts - * - * @generated from rpc account.AdminService.ListAccounts - */ - listAccounts: { - name: "ListAccounts", - I: ListAccountsRequest, - O: ListAccountsResponse, - kind: MethodKind.Unary, - }, - /** - * Creates a new account, public_nkey will be autogenerated - * - * @generated from rpc account.AdminService.CreateAccount - */ - createAccount: { - name: "CreateAccount", - I: CreateAccountRequest, - O: CreateAccountResponse, - kind: MethodKind.Unary, - }, - /** - * Updates account details, returns the account - * - * @generated from rpc account.AdminService.UpdateAccount - */ - updateAccount: { - name: "UpdateAccount", - I: AdminUpdateAccountRequest, - O: UpdateAccountResponse, - kind: MethodKind.Unary, - }, - /** - * Get the details of a given account - * - * @generated from rpc account.AdminService.GetAccount - */ - getAccount: { - name: "GetAccount", - I: AdminGetAccountRequest, - O: GetAccountResponse, - kind: MethodKind.Unary, - }, - /** - * Completely deletes an account. This includes all of the data in that - * account, bookmarks, changes etc. It also deletes all users from Auth0 - * that are associated with this account - * - * @generated from rpc account.AdminService.DeleteAccount - */ - deleteAccount: { - name: "DeleteAccount", - I: AdminDeleteAccountRequest, - O: AdminDeleteAccountResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all sources within the chosen account - * - * @generated from rpc account.AdminService.ListSources - */ - listSources: { - name: "ListSources", - I: AdminListSourcesRequest, - O: ListSourcesResponse, - kind: MethodKind.Unary, - }, - /** - * Creates a new source within the chosen account - * - * @generated from rpc account.AdminService.CreateSource - */ - createSource: { - name: "CreateSource", - I: AdminCreateSourceRequest, - O: CreateSourceResponse, - kind: MethodKind.Unary, - }, - /** - * Get the details of a source within the chosen account - * - * @generated from rpc account.AdminService.GetSource - */ - getSource: { - name: "GetSource", - I: AdminGetSourceRequest, - O: GetSourceResponse, - kind: MethodKind.Unary, - }, - /** - * Update the details of a source within the chosen account - * - * @generated from rpc account.AdminService.UpdateSource - */ - updateSource: { - name: "UpdateSource", - I: AdminUpdateSourceRequest, - O: UpdateSourceResponse, - kind: MethodKind.Unary, - }, - /** - * Deletes a source from a chosen account - * - * @generated from rpc account.AdminService.DeleteSource - */ - deleteSource: { - name: "DeleteSource", - I: AdminDeleteSourceRequest, - O: DeleteSourceResponse, - kind: MethodKind.Unary, - }, - /** - * Updates sources to keep them running in the background. This can be used - * to add explicit action, when the built-in keepalives are not sufficient. - * - * @generated from rpc account.AdminService.KeepaliveSources - */ - keepaliveSources: { - name: "KeepaliveSources", - I: AdminKeepaliveSourcesRequest, - O: KeepaliveSourcesResponse, - kind: MethodKind.Unary, - }, - /** - * Create a new NATS token for a given public NKey. The user requesting must - * control the associated private key also in order to connect to NATS as - * the token is not enough on its own - * - * @generated from rpc account.AdminService.CreateToken - */ - createToken: { - name: "CreateToken", - I: AdminCreateTokenRequest, - O: CreateTokenResponse, - kind: MethodKind.Unary, - }, - } -} as const; - -/** - * RPCs to manage the user's account, sources etc. All requests to this API are - * scoped to that user's account via the - * `https://api.overmind.tech/account-name` claim in the supplied token - * - * @generated from service account.ManagementService - */ -export const ManagementService = { - typeName: "account.ManagementService", - methods: { - /** - * Get the details of the account that this user belongs to - * - * @generated from rpc account.ManagementService.GetAccount - */ - getAccount: { - name: "GetAccount", - I: GetAccountRequest, - O: GetAccountResponse, - kind: MethodKind.Unary, - }, - /** - * Completely deletes the user's account. This includes all of the data in - * that account, bookmarks, changes etc. It also deletes the current user, - * and all other users in that account from Auth0 - * - * @generated from rpc account.ManagementService.DeleteAccount - */ - deleteAccount: { - name: "DeleteAccount", - I: DeleteAccountRequest, - O: DeleteAccountResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all sources within the user's account - * - * @generated from rpc account.ManagementService.ListSources - */ - listSources: { - name: "ListSources", - I: ListSourcesRequest, - O: ListSourcesResponse, - kind: MethodKind.Unary, - }, - /** - * Creates a new source within the user's account - * - * @generated from rpc account.ManagementService.CreateSource - */ - createSource: { - name: "CreateSource", - I: CreateSourceRequest, - O: CreateSourceResponse, - kind: MethodKind.Unary, - }, - /** - * Get the details of a source - * - * @generated from rpc account.ManagementService.GetSource - */ - getSource: { - name: "GetSource", - I: GetSourceRequest, - O: GetSourceResponse, - kind: MethodKind.Unary, - }, - /** - * Update the details of a source - * - * @generated from rpc account.ManagementService.UpdateSource - */ - updateSource: { - name: "UpdateSource", - I: UpdateSourceRequest, - O: UpdateSourceResponse, - kind: MethodKind.Unary, - }, - /** - * Deletes a source from a user's account - * - * @generated from rpc account.ManagementService.DeleteSource - */ - deleteSource: { - name: "DeleteSource", - I: DeleteSourceRequest, - O: DeleteSourceResponse, - kind: MethodKind.Unary, - }, - /** - * Sources heartbeat and health - * List of all recently active sources and their health, includes information from srcman - * meaning that it can show the status of managed sources that have not started and - * connected yet - * - * @generated from rpc account.ManagementService.ListAllSourcesStatus - */ - listAllSourcesStatus: { - name: "ListAllSourcesStatus", - I: ListAllSourcesStatusRequest, - O: ListAllSourcesStatusResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all active sources and their health. This should be used to determine - * what types, scopes etc are available rather than `ListAllSourcesStatus` since - * this endpoint only include running, available sources - * - * @generated from rpc account.ManagementService.ListActiveSourcesStatus - */ - listActiveSourcesStatus: { - name: "ListActiveSourcesStatus", - I: ListAllSourcesStatusRequest, - O: ListAllSourcesStatusResponse, - kind: MethodKind.Unary, - }, - /** - * Heartbeat from a source to keep it registered and healthy - * - * @generated from rpc account.ManagementService.SubmitSourceHeartbeat - */ - submitSourceHeartbeat: { - name: "SubmitSourceHeartbeat", - I: SubmitSourceHeartbeatRequest, - O: SubmitSourceHeartbeatResponse, - kind: MethodKind.Unary, - }, - /** - * Updates sources to keep them running in the background. This can be used - * to add explicit action, when the built-in keepalives are not sufficient. - * - * @generated from rpc account.ManagementService.KeepaliveSources - */ - keepaliveSources: { - name: "KeepaliveSources", - I: KeepaliveSourcesRequest, - O: KeepaliveSourcesResponse, - kind: MethodKind.Unary, - }, - /** - * Create a new NATS token for a given public NKey. The user requesting must - * control the associated private key also in order to connect to NATS as - * the token is not enough on its own - * - * @generated from rpc account.ManagementService.CreateToken - */ - createToken: { - name: "CreateToken", - I: CreateTokenRequest, - O: CreateTokenResponse, - kind: MethodKind.Unary, - }, - /** - * Ensure that all reverse links are populated. This does internal debouncing - * so the actual logic does only run when required. - * - * @generated from rpc account.ManagementService.RevlinkWarmup - */ - revlinkWarmup: { - name: "RevlinkWarmup", - I: RevlinkWarmupRequest, - O: RevlinkWarmupResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * @generated from rpc account.ManagementService.GetTrialEnd - */ - getTrialEnd: { - name: "GetTrialEnd", - I: GetTrialEndRequest, - O: GetTrialEndResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all the available item types that can be discovered by sources that are running and healthy - * - * @generated from rpc account.ManagementService.ListAvailableItemTypes - */ - listAvailableItemTypes: { - name: "ListAvailableItemTypes", - I: ListAvailableItemTypesRequest, - O: ListAvailableItemTypesResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/account_pb.ts b/src/__generated__/account_pb.ts index 27cb738..c60f755 100644 --- a/src/__generated__/account_pb.ts +++ b/src/__generated__/account_pb.ts @@ -1,883 +1,352 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file account.proto (package account, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; -import { QueryMethod } from "./items_pb.ts"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { QueryMethod } from "./items_pb"; +import { file_items } from "./items_pb"; +import type { JsonObject, Message } from "@bufbuild/protobuf"; /** - * @generated from enum account.SourceStatus - */ -export enum SourceStatus { - /** - * @generated from enum value: STATUS_UNSPECIFIED = 0; - */ - STATUS_UNSPECIFIED = 0, - - /** - * The source is starting or updating. This is only applicable to managed - * sources where Overmind manages the source's lifecycle - * - * @generated from enum value: STATUS_PROGRESSING = 1; - */ - STATUS_PROGRESSING = 1, - - /** - * The source is healthy - * - * @generated from enum value: STATUS_HEALTHY = 2; - */ - STATUS_HEALTHY = 2, - - /** - * The source is unhealthy - * - * @generated from enum value: STATUS_UNHEALTHY = 3; - */ - STATUS_UNHEALTHY = 3, - - /** - * The source is sleeping due to inactivity. It will be woken up before it - * is needed. This is only applicable to managed sources where Overmind - * manages the source's lifecycle - * - * @generated from enum value: STATUS_SLEEPING = 4; - */ - STATUS_SLEEPING = 4, - - /** - * The source is disconnected and therefore not able to handle requests. - * This will only be returned for non-managed sources that have recently - * stopped sending heartbeats such as a user running the CLI that has - * recently disconnected - * - * @generated from enum value: STATUS_DISCONNECTED = 5; - */ - STATUS_DISCONNECTED = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(SourceStatus) -proto3.util.setEnumType(SourceStatus, "account.SourceStatus", [ - { no: 0, name: "STATUS_UNSPECIFIED" }, - { no: 1, name: "STATUS_PROGRESSING" }, - { no: 2, name: "STATUS_HEALTHY" }, - { no: 3, name: "STATUS_UNHEALTHY" }, - { no: 4, name: "STATUS_SLEEPING" }, - { no: 5, name: "STATUS_DISCONNECTED" }, -]); - -/** - * Whether the source is managed by srcman or was created by the user locally - * - * @generated from enum account.SourceManaged + * Describes the file account.proto. */ -export enum SourceManaged { - /** - * Local is the default - * - * @generated from enum value: LOCAL = 0; - */ - LOCAL = 0, - - /** - * @generated from enum value: MANAGED = 1; - */ - MANAGED = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(SourceManaged) -proto3.util.setEnumType(SourceManaged, "account.SourceManaged", [ - { no: 0, name: "LOCAL" }, - { no: 1, name: "MANAGED" }, -]); +export const file_account: GenFile = /*@__PURE__*/ + fileDesc("Cg1hY2NvdW50LnByb3RvEgdhY2NvdW50IhUKE0xpc3RBY2NvdW50c1JlcXVlc3QiOgoUTGlzdEFjY291bnRzUmVzcG9uc2USIgoIYWNjb3VudHMYASADKAsyEC5hY2NvdW50LkFjY291bnQiRgoUQ3JlYXRlQWNjb3VudFJlcXVlc3QSLgoKcHJvcGVydGllcxgBIAEoCzIaLmFjY291bnQuQWNjb3VudFByb3BlcnRpZXMiOgoVQ3JlYXRlQWNjb3VudFJlc3BvbnNlEiEKB2FjY291bnQYASABKAsyEC5hY2NvdW50LkFjY291bnQiRgoUVXBkYXRlQWNjb3VudFJlcXVlc3QSLgoKcHJvcGVydGllcxgBIAEoCzIaLmFjY291bnQuQWNjb3VudFByb3BlcnRpZXMiOgoVVXBkYXRlQWNjb3VudFJlc3BvbnNlEiEKB2FjY291bnQYASABKAsyEC5hY2NvdW50LkFjY291bnQiWQoZQWRtaW5VcGRhdGVBY2NvdW50UmVxdWVzdBIMCgRuYW1lGAEgASgJEi4KB3JlcXVlc3QYAiABKAsyHS5hY2NvdW50LlVwZGF0ZUFjY291bnRSZXF1ZXN0IiYKFkFkbWluR2V0QWNjb3VudFJlcXVlc3QSDAoEbmFtZRgBIAEoCSIpChlBZG1pbkRlbGV0ZUFjY291bnRSZXF1ZXN0EgwKBG5hbWUYASABKAkiHAoaQWRtaW5EZWxldGVBY2NvdW50UmVzcG9uc2UiWAoXQWRtaW5MaXN0U291cmNlc1JlcXVlc3QSDwoHYWNjb3VudBgBIAEoCRIsCgdyZXF1ZXN0GAIgASgLMhsuYWNjb3VudC5MaXN0U291cmNlc1JlcXVlc3QiWgoYQWRtaW5DcmVhdGVTb3VyY2VSZXF1ZXN0Eg8KB2FjY291bnQYASABKAkSLQoHcmVxdWVzdBgCIAEoCzIcLmFjY291bnQuQ3JlYXRlU291cmNlUmVxdWVzdCJUChVBZG1pbkdldFNvdXJjZVJlcXVlc3QSDwoHYWNjb3VudBgBIAEoCRIqCgdyZXF1ZXN0GAIgASgLMhkuYWNjb3VudC5HZXRTb3VyY2VSZXF1ZXN0IloKGEFkbWluVXBkYXRlU291cmNlUmVxdWVzdBIPCgdhY2NvdW50GAEgASgJEi0KB3JlcXVlc3QYAiABKAsyHC5hY2NvdW50LlVwZGF0ZVNvdXJjZVJlcXVlc3QiWgoYQWRtaW5EZWxldGVTb3VyY2VSZXF1ZXN0Eg8KB2FjY291bnQYASABKAkSLQoHcmVxdWVzdBgCIAEoCzIcLmFjY291bnQuRGVsZXRlU291cmNlUmVxdWVzdCJiChxBZG1pbktlZXBhbGl2ZVNvdXJjZXNSZXF1ZXN0Eg8KB2FjY291bnQYASABKAkSMQoHcmVxdWVzdBgCIAEoCzIgLmFjY291bnQuS2VlcGFsaXZlU291cmNlc1JlcXVlc3QiWAoXQWRtaW5DcmVhdGVUb2tlblJlcXVlc3QSDwoHYWNjb3VudBgBIAEoCRIsCgdyZXF1ZXN0GAIgASgLMhsuYWNjb3VudC5DcmVhdGVUb2tlblJlcXVlc3QiYgoGU291cmNlEikKCG1ldGFkYXRhGAEgASgLMhcuYWNjb3VudC5Tb3VyY2VNZXRhZGF0YRItCgpwcm9wZXJ0aWVzGAIgASgLMhkuYWNjb3VudC5Tb3VyY2VQcm9wZXJ0aWVzIqwBCg5Tb3VyY2VNZXRhZGF0YRIMCgRVVUlEGAEgASgMEhEKCVRva2VuTmFtZRgCIAEoCRIvCgtUb2tlbkV4cGlyeRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEgoKUHVibGljTmtleRgFIAEoCRIlCgZTdGF0dXMYCSABKA4yFS5hY2NvdW50LlNvdXJjZVN0YXR1cxINCgVFcnJvchgKIAEoCSKVAQoQU291cmNlUHJvcGVydGllcxIXCg9EZXNjcmlwdGl2ZU5hbWUYASABKAkSDAoEVHlwZRgCIAEoCRInCgZDb25maWcYAyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EjEKEEFkZGl0aW9uYWxDb25maWcYBCABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0ImUKB0FjY291bnQSKgoIbWV0YWRhdGEYASABKAsyGC5hY2NvdW50LkFjY291bnRNZXRhZGF0YRIuCgpwcm9wZXJ0aWVzGAIgASgLMhouYWNjb3VudC5BY2NvdW50UHJvcGVydGllcyIlCg9BY2NvdW50TWV0YWRhdGESEgoKUHVibGljTmtleRgCIAEoCSI7ChFBY2NvdW50UHJvcGVydGllcxIMCgROYW1lGAEgASgJEhgKEFN0cmlwZUN1c3RvbWVySUQYAiABKAkiEwoRR2V0QWNjb3VudFJlcXVlc3QiNwoSR2V0QWNjb3VudFJlc3BvbnNlEiEKB2FjY291bnQYASABKAsyEC5hY2NvdW50LkFjY291bnQiJwoURGVsZXRlQWNjb3VudFJlcXVlc3QSDwoHaUFtU3VyZRgBIAEoCCIXChVEZWxldGVBY2NvdW50UmVzcG9uc2UiFAoSTGlzdFNvdXJjZXNSZXF1ZXN0IjcKE0xpc3RTb3VyY2VzUmVzcG9uc2USIAoHU291cmNlcxgBIAMoCzIPLmFjY291bnQuU291cmNlIkQKE0NyZWF0ZVNvdXJjZVJlcXVlc3QSLQoKcHJvcGVydGllcxgBIAEoCzIZLmFjY291bnQuU291cmNlUHJvcGVydGllcyI3ChRDcmVhdGVTb3VyY2VSZXNwb25zZRIfCgZzb3VyY2UYASABKAsyDy5hY2NvdW50LlNvdXJjZSIgChBHZXRTb3VyY2VSZXF1ZXN0EgwKBFVVSUQYASABKAwiNAoRR2V0U291cmNlUmVzcG9uc2USHwoGc291cmNlGAEgASgLMg8uYWNjb3VudC5Tb3VyY2UiUgoTVXBkYXRlU291cmNlUmVxdWVzdBIMCgRVVUlEGAEgASgMEi0KCnByb3BlcnRpZXMYAiABKAsyGS5hY2NvdW50LlNvdXJjZVByb3BlcnRpZXMiNwoUVXBkYXRlU291cmNlUmVzcG9uc2USHwoGc291cmNlGAEgASgLMg8uYWNjb3VudC5Tb3VyY2UiIwoTRGVsZXRlU291cmNlUmVxdWVzdBIMCgRVVUlEGAEgASgMIhYKFERlbGV0ZVNvdXJjZVJlc3BvbnNlIlsKFVNvdXJjZUtlZXBhbGl2ZVJlc3VsdBIMCgRVVUlEGAEgASgMEiUKBlN0YXR1cxgCIAEoDjIVLmFjY291bnQuU291cmNlU3RhdHVzEg0KBUVycm9yGAMgASgJIh0KG0xpc3RBbGxTb3VyY2VzU3RhdHVzUmVxdWVzdCKwAwoMU291cmNlSGVhbHRoEgwKBFVVSUQYASABKAwSDwoHdmVyc2lvbhgCIAEoCRIMCgRuYW1lGAMgASgJEhIKBWVycm9yGAQgASgJSACIAQESJQoGc3RhdHVzGAUgASgOMhUuYWNjb3VudC5Tb3VyY2VTdGF0dXMSLQoJY3JlYXRlZEF0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIxCg1sYXN0SGVhcnRiZWF0GAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIxCg1uZXh0SGVhcnRiZWF0GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIMCgR0eXBlGAkgASgJEicKB21hbmFnZWQYCiABKA4yFi5hY2NvdW50LlNvdXJjZU1hbmFnZWQSFgoOYXZhaWxhYmxlVHlwZXMYCyADKAkSFwoPYXZhaWxhYmxlU2NvcGVzGAwgAygJEjEKD2FkYXB0ZXJNZXRhZGF0YRgNIAMoCzIYLmFjY291bnQuQWRhcHRlck1ldGFkYXRhQggKBl9lcnJvciJGChxMaXN0QWxsU291cmNlc1N0YXR1c1Jlc3BvbnNlEiYKB3NvdXJjZXMYASADKAsyFS5hY2NvdW50LlNvdXJjZUhlYWx0aCKnAgocU3VibWl0U291cmNlSGVhcnRiZWF0UmVxdWVzdBIMCgRVVUlEGAEgASgMEg8KB3ZlcnNpb24YAiABKAkSDAoEbmFtZRgDIAEoCRISCgVlcnJvchgEIAEoCUgAiAEBEjMKEG5leHRIZWFydGJlYXRNYXgYBSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SDAoEdHlwZRgGIAEoCRInCgdtYW5hZ2VkGAcgASgOMhYuYWNjb3VudC5Tb3VyY2VNYW5hZ2VkEhcKD2F2YWlsYWJsZVNjb3BlcxgJIAMoCRIxCg9hZGFwdGVyTWV0YWRhdGEYCiADKAsyGC5hY2NvdW50LkFkYXB0ZXJNZXRhZGF0YUIICgZfZXJyb3JKBAgIEAki+AEKD0FkYXB0ZXJNZXRhZGF0YRIMCgR0eXBlGAEgASgJEioKCGNhdGVnb3J5GAIgASgOMhguYWNjb3VudC5BZGFwdGVyQ2F0ZWdvcnkSFgoOcG90ZW50aWFsTGlua3MYAyADKAkSFwoPZGVzY3JpcHRpdmVOYW1lGAQgASgJEkQKFXN1cHBvcnRlZFF1ZXJ5TWV0aG9kcxgFIAEoCzIlLmFjY291bnQuQWRhcHRlclN1cHBvcnRlZFF1ZXJ5TWV0aG9kcxI0ChF0ZXJyYWZvcm1NYXBwaW5ncxgGIAMoCzIZLmFjY291bnQuVGVycmFmb3JtTWFwcGluZyKVAQocQWRhcHRlclN1cHBvcnRlZFF1ZXJ5TWV0aG9kcxILCgNnZXQYASABKAgSFgoOZ2V0RGVzY3JpcHRpb24YAiABKAkSDAoEbGlzdBgDIAEoCBIXCg9saXN0RGVzY3JpcHRpb24YBCABKAkSDgoGc2VhcmNoGAUgASgIEhkKEXNlYXJjaERlc2NyaXB0aW9uGAYgASgJIloKEFRlcnJhZm9ybU1hcHBpbmcSJQoPdGVycmFmb3JtTWV0aG9kGAEgASgOMgwuUXVlcnlNZXRob2QSGQoRdGVycmFmb3JtUXVlcnlNYXAYAiABKAlKBAgDEAQiHwodU3VibWl0U291cmNlSGVhcnRiZWF0UmVzcG9uc2UiMQoXS2VlcGFsaXZlU291cmNlc1JlcXVlc3QSFgoOd2FpdEZvckhlYWx0aHkYASABKAgiSwoYS2VlcGFsaXZlU291cmNlc1Jlc3BvbnNlEi8KB3NvdXJjZXMYASADKAsyHi5hY2NvdW50LlNvdXJjZUtlZXBhbGl2ZVJlc3VsdCI+ChJDcmVhdGVUb2tlblJlcXVlc3QSFgoOdXNlclB1YmxpY05rZXkYASABKAkSEAoIdXNlck5hbWUYAiABKAkiJAoTQ3JlYXRlVG9rZW5SZXNwb25zZRINCgV0b2tlbhgBIAEoCSIWChRSZXZsaW5rV2FybXVwUmVxdWVzdCJFChVSZXZsaW5rV2FybXVwUmVzcG9uc2USDgoGc3RhdHVzGAEgASgJEg0KBWl0ZW1zGAIgASgFEg0KBWVkZ2VzGAMgASgFIhQKEkdldFRyaWFsRW5kUmVxdWVzdCJBChNHZXRUcmlhbEVuZFJlc3BvbnNlEioKBmVuZHNBdBgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiZgoRQXZhaWxhYmxlSXRlbVR5cGUSDAoEdHlwZRgBIAEoCRIqCghjYXRlZ29yeRgCIAEoDjIYLmFjY291bnQuQWRhcHRlckNhdGVnb3J5EhcKD2Rlc2NyaXB0aXZlTmFtZRgDIAEoCSIfCh1MaXN0QXZhaWxhYmxlSXRlbVR5cGVzUmVxdWVzdCJLCh5MaXN0QXZhaWxhYmxlSXRlbVR5cGVzUmVzcG9uc2USKQoFdHlwZXMYASADKAsyGi5hY2NvdW50LkF2YWlsYWJsZUl0ZW1UeXBlKpYBCgxTb3VyY2VTdGF0dXMSFgoSU1RBVFVTX1VOU1BFQ0lGSUVEEAASFgoSU1RBVFVTX1BST0dSRVNTSU5HEAESEgoOU1RBVFVTX0hFQUxUSFkQAhIUChBTVEFUVVNfVU5IRUFMVEhZEAMSEwoPU1RBVFVTX1NMRUVQSU5HEAQSFwoTU1RBVFVTX0RJU0NPTk5FQ1RFRBAFKicKDVNvdXJjZU1hbmFnZWQSCQoFTE9DQUwQABILCgdNQU5BR0VEEAEqsgIKD0FkYXB0ZXJDYXRlZ29yeRIaChZBREFQVEVSX0NBVEVHT1JZX09USEVSEAASKAokQURBUFRFUl9DQVRFR09SWV9DT01QVVRFX0FQUExJQ0FUSU9OEAESHAoYQURBUFRFUl9DQVRFR09SWV9TVE9SQUdFEAISHAoYQURBUFRFUl9DQVRFR09SWV9ORVRXT1JLEAMSHQoZQURBUFRFUl9DQVRFR09SWV9TRUNVUklUWRAEEiIKHkFEQVBURVJfQ0FURUdPUllfT0JTRVJWQUJJTElUWRAFEh0KGUFEQVBURVJfQ0FURUdPUllfREFUQUJBU0UQBhIiCh5BREFQVEVSX0NBVEVHT1JZX0NPTkZJR1VSQVRJT04QBxIXChNBREFQVEVSX0NBVEVHT1JZX0FJEAgy4QcKDEFkbWluU2VydmljZRJLCgxMaXN0QWNjb3VudHMSHC5hY2NvdW50Lkxpc3RBY2NvdW50c1JlcXVlc3QaHS5hY2NvdW50Lkxpc3RBY2NvdW50c1Jlc3BvbnNlEk4KDUNyZWF0ZUFjY291bnQSHS5hY2NvdW50LkNyZWF0ZUFjY291bnRSZXF1ZXN0Gh4uYWNjb3VudC5DcmVhdGVBY2NvdW50UmVzcG9uc2USUwoNVXBkYXRlQWNjb3VudBIiLmFjY291bnQuQWRtaW5VcGRhdGVBY2NvdW50UmVxdWVzdBoeLmFjY291bnQuVXBkYXRlQWNjb3VudFJlc3BvbnNlEkoKCkdldEFjY291bnQSHy5hY2NvdW50LkFkbWluR2V0QWNjb3VudFJlcXVlc3QaGy5hY2NvdW50LkdldEFjY291bnRSZXNwb25zZRJYCg1EZWxldGVBY2NvdW50EiIuYWNjb3VudC5BZG1pbkRlbGV0ZUFjY291bnRSZXF1ZXN0GiMuYWNjb3VudC5BZG1pbkRlbGV0ZUFjY291bnRSZXNwb25zZRJNCgtMaXN0U291cmNlcxIgLmFjY291bnQuQWRtaW5MaXN0U291cmNlc1JlcXVlc3QaHC5hY2NvdW50Lkxpc3RTb3VyY2VzUmVzcG9uc2USUAoMQ3JlYXRlU291cmNlEiEuYWNjb3VudC5BZG1pbkNyZWF0ZVNvdXJjZVJlcXVlc3QaHS5hY2NvdW50LkNyZWF0ZVNvdXJjZVJlc3BvbnNlEkcKCUdldFNvdXJjZRIeLmFjY291bnQuQWRtaW5HZXRTb3VyY2VSZXF1ZXN0GhouYWNjb3VudC5HZXRTb3VyY2VSZXNwb25zZRJQCgxVcGRhdGVTb3VyY2USIS5hY2NvdW50LkFkbWluVXBkYXRlU291cmNlUmVxdWVzdBodLmFjY291bnQuVXBkYXRlU291cmNlUmVzcG9uc2USUAoMRGVsZXRlU291cmNlEiEuYWNjb3VudC5BZG1pbkRlbGV0ZVNvdXJjZVJlcXVlc3QaHS5hY2NvdW50LkRlbGV0ZVNvdXJjZVJlc3BvbnNlElwKEEtlZXBhbGl2ZVNvdXJjZXMSJS5hY2NvdW50LkFkbWluS2VlcGFsaXZlU291cmNlc1JlcXVlc3QaIS5hY2NvdW50LktlZXBhbGl2ZVNvdXJjZXNSZXNwb25zZRJNCgtDcmVhdGVUb2tlbhIgLmFjY291bnQuQWRtaW5DcmVhdGVUb2tlblJlcXVlc3QaHC5hY2NvdW50LkNyZWF0ZVRva2VuUmVzcG9uc2Uy/gkKEU1hbmFnZW1lbnRTZXJ2aWNlEkUKCkdldEFjY291bnQSGi5hY2NvdW50LkdldEFjY291bnRSZXF1ZXN0GhsuYWNjb3VudC5HZXRBY2NvdW50UmVzcG9uc2USTgoNRGVsZXRlQWNjb3VudBIdLmFjY291bnQuRGVsZXRlQWNjb3VudFJlcXVlc3QaHi5hY2NvdW50LkRlbGV0ZUFjY291bnRSZXNwb25zZRJICgtMaXN0U291cmNlcxIbLmFjY291bnQuTGlzdFNvdXJjZXNSZXF1ZXN0GhwuYWNjb3VudC5MaXN0U291cmNlc1Jlc3BvbnNlEksKDENyZWF0ZVNvdXJjZRIcLmFjY291bnQuQ3JlYXRlU291cmNlUmVxdWVzdBodLmFjY291bnQuQ3JlYXRlU291cmNlUmVzcG9uc2USQgoJR2V0U291cmNlEhkuYWNjb3VudC5HZXRTb3VyY2VSZXF1ZXN0GhouYWNjb3VudC5HZXRTb3VyY2VSZXNwb25zZRJLCgxVcGRhdGVTb3VyY2USHC5hY2NvdW50LlVwZGF0ZVNvdXJjZVJlcXVlc3QaHS5hY2NvdW50LlVwZGF0ZVNvdXJjZVJlc3BvbnNlEksKDERlbGV0ZVNvdXJjZRIcLmFjY291bnQuRGVsZXRlU291cmNlUmVxdWVzdBodLmFjY291bnQuRGVsZXRlU291cmNlUmVzcG9uc2USYwoUTGlzdEFsbFNvdXJjZXNTdGF0dXMSJC5hY2NvdW50Lkxpc3RBbGxTb3VyY2VzU3RhdHVzUmVxdWVzdBolLmFjY291bnQuTGlzdEFsbFNvdXJjZXNTdGF0dXNSZXNwb25zZRJmChdMaXN0QWN0aXZlU291cmNlc1N0YXR1cxIkLmFjY291bnQuTGlzdEFsbFNvdXJjZXNTdGF0dXNSZXF1ZXN0GiUuYWNjb3VudC5MaXN0QWxsU291cmNlc1N0YXR1c1Jlc3BvbnNlEmYKFVN1Ym1pdFNvdXJjZUhlYXJ0YmVhdBIlLmFjY291bnQuU3VibWl0U291cmNlSGVhcnRiZWF0UmVxdWVzdBomLmFjY291bnQuU3VibWl0U291cmNlSGVhcnRiZWF0UmVzcG9uc2USVwoQS2VlcGFsaXZlU291cmNlcxIgLmFjY291bnQuS2VlcGFsaXZlU291cmNlc1JlcXVlc3QaIS5hY2NvdW50LktlZXBhbGl2ZVNvdXJjZXNSZXNwb25zZRJICgtDcmVhdGVUb2tlbhIbLmFjY291bnQuQ3JlYXRlVG9rZW5SZXF1ZXN0GhwuYWNjb3VudC5DcmVhdGVUb2tlblJlc3BvbnNlElAKDVJldmxpbmtXYXJtdXASHS5hY2NvdW50LlJldmxpbmtXYXJtdXBSZXF1ZXN0Gh4uYWNjb3VudC5SZXZsaW5rV2FybXVwUmVzcG9uc2UwARJICgtHZXRUcmlhbEVuZBIbLmFjY291bnQuR2V0VHJpYWxFbmRSZXF1ZXN0GhwuYWNjb3VudC5HZXRUcmlhbEVuZFJlc3BvbnNlEmkKFkxpc3RBdmFpbGFibGVJdGVtVHlwZXMSJi5hY2NvdW50Lkxpc3RBdmFpbGFibGVJdGVtVHlwZXNSZXF1ZXN0GicuYWNjb3VudC5MaXN0QXZhaWxhYmxlSXRlbVR5cGVzUmVzcG9uc2VCJFoiZ2l0aHViLmNvbS9vdmVybWluZHRlY2gvc2RwLWdvO3NkcGIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp, file_items]); /** - * @generated from enum account.AdapterCategory + * @generated from message account.ListAccountsRequest */ -export enum AdapterCategory { - /** - * Fall-back category for resources that do not fit into any other category - * - * @generated from enum value: ADAPTER_CATEGORY_OTHER = 0; - */ - OTHER = 0, - - /** - * This category includes resources that provide processing power and host - * applications or services. Examples are virtual machines, containers, - * serverless functions, and application hosting platforms. If the primary - * purpose of a resource is to execute workloads, run code, or host - * applications, it should belong here. - * - * @generated from enum value: ADAPTER_CATEGORY_COMPUTE_APPLICATION = 1; - */ - COMPUTE_APPLICATION = 1, - - /** - * Encompassing resources designed to store, archive, and manage data, this - * category includes object storage, block storage, file storage, and data - * backup solutions. Select this category when the core function of a - * resource is persistent data storage or management - * - * @generated from enum value: ADAPTER_CATEGORY_STORAGE = 2; - */ - STORAGE = 2, - - /** - * This category covers resources that facilitate connectivity and - * communication within cloud environments. Typical resources include - * virtual networks, load balancers, VPNs, and DNS services. Assign - * resources here if their primary role is related to communication, - * connectivity, or traffic management - * - * @generated from enum value: ADAPTER_CATEGORY_NETWORK = 3; - */ - NETWORK = 3, - - /** - * Resources in this category focus on safeguarding data, applications, and - * cloud infrastructure. Examples include firewalls, identity and access - * management, encryption services, and security monitoring tools. Choose - * this category if a resource's main function is security, access control, - * or compliance - * - * @generated from enum value: ADAPTER_CATEGORY_SECURITY = 4; - */ - SECURITY = 4, - - /** - * This category includes resources aimed at monitoring, tracing, and - * logging applications and cloud infrastructure. Examples are monitoring - * tools, logging services, and performance management solutions. Use this - * category for resources that provide insights into system performance and - * health - * - * @generated from enum value: ADAPTER_CATEGORY_OBSERVABILITY = 5; - */ - OBSERVABILITY = 5, - - /** - * Focused on structured data storage and management, this category includes - * relational, NoSQL, and in-memory databases, along with data warehousing - * solutions. Choose this category for resources specifically designed for - * data querying, transaction processing, or complex data operations. This - * differs from "storage" in that "databases" have compute associated with - * them rather than just storing data. - * - * @generated from enum value: ADAPTER_CATEGORY_DATABASE = 6; - */ - DATABASE = 6, - - /** - * This category includes resources designed for managing configurations and - * deployments. Examples are infrastructure as code tools, configuration - * management services, and deployment orchestration solutions. Classify - * resources here if they primarily handle configuration, environment - * management, or automated deployment - * - * @generated from enum value: ADAPTER_CATEGORY_CONFIGURATION = 7; - */ - CONFIGURATION = 7, - - /** - * This category is dedicated to resources for developing, training, and - * deploying artificial intelligence models and machine learning - * applications. Include machine learning platforms, AI services, and data - * labeling tools here. Select this category if a resource's principal - * function involves AI or machine learning processes - * - * @generated from enum value: ADAPTER_CATEGORY_AI = 8; - */ - AI = 8, -} -// Retrieve enum metadata with: proto3.getEnumType(AdapterCategory) -proto3.util.setEnumType(AdapterCategory, "account.AdapterCategory", [ - { no: 0, name: "ADAPTER_CATEGORY_OTHER" }, - { no: 1, name: "ADAPTER_CATEGORY_COMPUTE_APPLICATION" }, - { no: 2, name: "ADAPTER_CATEGORY_STORAGE" }, - { no: 3, name: "ADAPTER_CATEGORY_NETWORK" }, - { no: 4, name: "ADAPTER_CATEGORY_SECURITY" }, - { no: 5, name: "ADAPTER_CATEGORY_OBSERVABILITY" }, - { no: 6, name: "ADAPTER_CATEGORY_DATABASE" }, - { no: 7, name: "ADAPTER_CATEGORY_CONFIGURATION" }, - { no: 8, name: "ADAPTER_CATEGORY_AI" }, -]); +export type ListAccountsRequest = Message<"account.ListAccountsRequest"> & { +}; /** - * @generated from message account.ListAccountsRequest + * Describes the message account.ListAccountsRequest. + * Use `create(ListAccountsRequestSchema)` to create a new message. */ -export class ListAccountsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.ListAccountsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAccountsRequest { - return new ListAccountsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAccountsRequest { - return new ListAccountsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAccountsRequest { - return new ListAccountsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListAccountsRequest | PlainMessage | undefined, b: ListAccountsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAccountsRequest, a, b); - } -} +export const ListAccountsRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 0); /** * @generated from message account.ListAccountsResponse */ -export class ListAccountsResponse extends Message { +export type ListAccountsResponse = Message<"account.ListAccountsResponse"> & { /** * @generated from field: repeated account.Account accounts = 1; */ - accounts: Account[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.ListAccountsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "accounts", kind: "message", T: Account, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAccountsResponse { - return new ListAccountsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAccountsResponse { - return new ListAccountsResponse().fromJson(jsonValue, options); - } + accounts: Account[]; +}; - static fromJsonString(jsonString: string, options?: Partial): ListAccountsResponse { - return new ListAccountsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListAccountsResponse | PlainMessage | undefined, b: ListAccountsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAccountsResponse, a, b); - } -} +/** + * Describes the message account.ListAccountsResponse. + * Use `create(ListAccountsResponseSchema)` to create a new message. + */ +export const ListAccountsResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 1); /** * @generated from message account.CreateAccountRequest */ -export class CreateAccountRequest extends Message { +export type CreateAccountRequest = Message<"account.CreateAccountRequest"> & { /** * @generated from field: account.AccountProperties properties = 1; */ properties?: AccountProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.CreateAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "properties", kind: "message", T: AccountProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateAccountRequest { - return new CreateAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateAccountRequest { - return new CreateAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateAccountRequest { - return new CreateAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateAccountRequest | PlainMessage | undefined, b: CreateAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateAccountRequest, a, b); - } -} +/** + * Describes the message account.CreateAccountRequest. + * Use `create(CreateAccountRequestSchema)` to create a new message. + */ +export const CreateAccountRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 2); /** * @generated from message account.CreateAccountResponse */ -export class CreateAccountResponse extends Message { +export type CreateAccountResponse = Message<"account.CreateAccountResponse"> & { /** * @generated from field: account.Account account = 1; */ account?: Account; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.CreateAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "message", T: Account }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateAccountResponse { - return new CreateAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateAccountResponse { - return new CreateAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateAccountResponse { - return new CreateAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateAccountResponse | PlainMessage | undefined, b: CreateAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateAccountResponse, a, b); - } -} +/** + * Describes the message account.CreateAccountResponse. + * Use `create(CreateAccountResponseSchema)` to create a new message. + */ +export const CreateAccountResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 3); /** * @generated from message account.UpdateAccountRequest */ -export class UpdateAccountRequest extends Message { +export type UpdateAccountRequest = Message<"account.UpdateAccountRequest"> & { /** * @generated from field: account.AccountProperties properties = 1; */ properties?: AccountProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.UpdateAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "properties", kind: "message", T: AccountProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAccountRequest { - return new UpdateAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAccountRequest { - return new UpdateAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAccountRequest { - return new UpdateAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAccountRequest | PlainMessage | undefined, b: UpdateAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAccountRequest, a, b); - } -} +/** + * Describes the message account.UpdateAccountRequest. + * Use `create(UpdateAccountRequestSchema)` to create a new message. + */ +export const UpdateAccountRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 4); /** * @generated from message account.UpdateAccountResponse */ -export class UpdateAccountResponse extends Message { +export type UpdateAccountResponse = Message<"account.UpdateAccountResponse"> & { /** * @generated from field: account.Account account = 1; */ account?: Account; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.UpdateAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "message", T: Account }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAccountResponse { - return new UpdateAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAccountResponse { - return new UpdateAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAccountResponse { - return new UpdateAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAccountResponse | PlainMessage | undefined, b: UpdateAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAccountResponse, a, b); - } -} +/** + * Describes the message account.UpdateAccountResponse. + * Use `create(UpdateAccountResponseSchema)` to create a new message. + */ +export const UpdateAccountResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 5); /** * @generated from message account.AdminUpdateAccountRequest */ -export class AdminUpdateAccountRequest extends Message { +export type AdminUpdateAccountRequest = Message<"account.AdminUpdateAccountRequest"> & { /** * The name of the account to update * * @generated from field: string name = 1; */ - name = ""; + name: string; /** * @generated from field: account.UpdateAccountRequest request = 2; */ request?: UpdateAccountRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminUpdateAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "request", kind: "message", T: UpdateAccountRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminUpdateAccountRequest { - return new AdminUpdateAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminUpdateAccountRequest { - return new AdminUpdateAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminUpdateAccountRequest { - return new AdminUpdateAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminUpdateAccountRequest | PlainMessage | undefined, b: AdminUpdateAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminUpdateAccountRequest, a, b); - } -} +/** + * Describes the message account.AdminUpdateAccountRequest. + * Use `create(AdminUpdateAccountRequestSchema)` to create a new message. + */ +export const AdminUpdateAccountRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 6); /** * @generated from message account.AdminGetAccountRequest */ -export class AdminGetAccountRequest extends Message { +export type AdminGetAccountRequest = Message<"account.AdminGetAccountRequest"> & { /** * The name of the account to get * * @generated from field: string name = 1; */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + name: string; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminGetAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminGetAccountRequest { - return new AdminGetAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminGetAccountRequest { - return new AdminGetAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminGetAccountRequest { - return new AdminGetAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminGetAccountRequest | PlainMessage | undefined, b: AdminGetAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminGetAccountRequest, a, b); - } -} +/** + * Describes the message account.AdminGetAccountRequest. + * Use `create(AdminGetAccountRequestSchema)` to create a new message. + */ +export const AdminGetAccountRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 7); /** * @generated from message account.AdminDeleteAccountRequest */ -export class AdminDeleteAccountRequest extends Message { +export type AdminDeleteAccountRequest = Message<"account.AdminDeleteAccountRequest"> & { /** * The name of the account to delete * * @generated from field: string name = 1; */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + name: string; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminDeleteAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminDeleteAccountRequest { - return new AdminDeleteAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminDeleteAccountRequest { - return new AdminDeleteAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminDeleteAccountRequest { - return new AdminDeleteAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminDeleteAccountRequest | PlainMessage | undefined, b: AdminDeleteAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminDeleteAccountRequest, a, b); - } -} +/** + * Describes the message account.AdminDeleteAccountRequest. + * Use `create(AdminDeleteAccountRequestSchema)` to create a new message. + */ +export const AdminDeleteAccountRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 8); /** * @generated from message account.AdminDeleteAccountResponse */ -export class AdminDeleteAccountResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminDeleteAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export type AdminDeleteAccountResponse = Message<"account.AdminDeleteAccountResponse"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): AdminDeleteAccountResponse { - return new AdminDeleteAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminDeleteAccountResponse { - return new AdminDeleteAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminDeleteAccountResponse { - return new AdminDeleteAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: AdminDeleteAccountResponse | PlainMessage | undefined, b: AdminDeleteAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminDeleteAccountResponse, a, b); - } -} +/** + * Describes the message account.AdminDeleteAccountResponse. + * Use `create(AdminDeleteAccountResponseSchema)` to create a new message. + */ +export const AdminDeleteAccountResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 9); /** * @generated from message account.AdminListSourcesRequest */ -export class AdminListSourcesRequest extends Message { +export type AdminListSourcesRequest = Message<"account.AdminListSourcesRequest"> & { /** * @generated from field: string account = 1; */ - account = ""; + account: string; /** * @generated from field: account.ListSourcesRequest request = 2; */ request?: ListSourcesRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminListSourcesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "request", kind: "message", T: ListSourcesRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminListSourcesRequest { - return new AdminListSourcesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminListSourcesRequest { - return new AdminListSourcesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminListSourcesRequest { - return new AdminListSourcesRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminListSourcesRequest | PlainMessage | undefined, b: AdminListSourcesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminListSourcesRequest, a, b); - } -} +/** + * Describes the message account.AdminListSourcesRequest. + * Use `create(AdminListSourcesRequestSchema)` to create a new message. + */ +export const AdminListSourcesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 10); /** * @generated from message account.AdminCreateSourceRequest */ -export class AdminCreateSourceRequest extends Message { +export type AdminCreateSourceRequest = Message<"account.AdminCreateSourceRequest"> & { /** * @generated from field: string account = 1; */ - account = ""; + account: string; /** * @generated from field: account.CreateSourceRequest request = 2; */ request?: CreateSourceRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminCreateSourceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "request", kind: "message", T: CreateSourceRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminCreateSourceRequest { - return new AdminCreateSourceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminCreateSourceRequest { - return new AdminCreateSourceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminCreateSourceRequest { - return new AdminCreateSourceRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminCreateSourceRequest | PlainMessage | undefined, b: AdminCreateSourceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminCreateSourceRequest, a, b); - } -} +/** + * Describes the message account.AdminCreateSourceRequest. + * Use `create(AdminCreateSourceRequestSchema)` to create a new message. + */ +export const AdminCreateSourceRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 11); /** * @generated from message account.AdminGetSourceRequest */ -export class AdminGetSourceRequest extends Message { +export type AdminGetSourceRequest = Message<"account.AdminGetSourceRequest"> & { /** * @generated from field: string account = 1; */ - account = ""; + account: string; /** * @generated from field: account.GetSourceRequest request = 2; */ request?: GetSourceRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminGetSourceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "request", kind: "message", T: GetSourceRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminGetSourceRequest { - return new AdminGetSourceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminGetSourceRequest { - return new AdminGetSourceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminGetSourceRequest { - return new AdminGetSourceRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminGetSourceRequest | PlainMessage | undefined, b: AdminGetSourceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminGetSourceRequest, a, b); - } -} +/** + * Describes the message account.AdminGetSourceRequest. + * Use `create(AdminGetSourceRequestSchema)` to create a new message. + */ +export const AdminGetSourceRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 12); /** * @generated from message account.AdminUpdateSourceRequest */ -export class AdminUpdateSourceRequest extends Message { +export type AdminUpdateSourceRequest = Message<"account.AdminUpdateSourceRequest"> & { /** * @generated from field: string account = 1; */ - account = ""; + account: string; /** * @generated from field: account.UpdateSourceRequest request = 2; */ request?: UpdateSourceRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminUpdateSourceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "request", kind: "message", T: UpdateSourceRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminUpdateSourceRequest { - return new AdminUpdateSourceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminUpdateSourceRequest { - return new AdminUpdateSourceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminUpdateSourceRequest { - return new AdminUpdateSourceRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminUpdateSourceRequest | PlainMessage | undefined, b: AdminUpdateSourceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminUpdateSourceRequest, a, b); - } -} +/** + * Describes the message account.AdminUpdateSourceRequest. + * Use `create(AdminUpdateSourceRequestSchema)` to create a new message. + */ +export const AdminUpdateSourceRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 13); /** * @generated from message account.AdminDeleteSourceRequest */ -export class AdminDeleteSourceRequest extends Message { +export type AdminDeleteSourceRequest = Message<"account.AdminDeleteSourceRequest"> & { /** * @generated from field: string account = 1; */ - account = ""; + account: string; /** * @generated from field: account.DeleteSourceRequest request = 2; */ request?: DeleteSourceRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminDeleteSourceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "request", kind: "message", T: DeleteSourceRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminDeleteSourceRequest { - return new AdminDeleteSourceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminDeleteSourceRequest { - return new AdminDeleteSourceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminDeleteSourceRequest { - return new AdminDeleteSourceRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminDeleteSourceRequest | PlainMessage | undefined, b: AdminDeleteSourceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminDeleteSourceRequest, a, b); - } -} +/** + * Describes the message account.AdminDeleteSourceRequest. + * Use `create(AdminDeleteSourceRequestSchema)` to create a new message. + */ +export const AdminDeleteSourceRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 14); /** * @generated from message account.AdminKeepaliveSourcesRequest */ -export class AdminKeepaliveSourcesRequest extends Message { +export type AdminKeepaliveSourcesRequest = Message<"account.AdminKeepaliveSourcesRequest"> & { /** * @generated from field: string account = 1; */ - account = ""; + account: string; /** * @generated from field: account.KeepaliveSourcesRequest request = 2; */ request?: KeepaliveSourcesRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminKeepaliveSourcesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "request", kind: "message", T: KeepaliveSourcesRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminKeepaliveSourcesRequest { - return new AdminKeepaliveSourcesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminKeepaliveSourcesRequest { - return new AdminKeepaliveSourcesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminKeepaliveSourcesRequest { - return new AdminKeepaliveSourcesRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminKeepaliveSourcesRequest | PlainMessage | undefined, b: AdminKeepaliveSourcesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminKeepaliveSourcesRequest, a, b); - } -} +/** + * Describes the message account.AdminKeepaliveSourcesRequest. + * Use `create(AdminKeepaliveSourcesRequestSchema)` to create a new message. + */ +export const AdminKeepaliveSourcesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 15); /** * @generated from message account.AdminCreateTokenRequest */ -export class AdminCreateTokenRequest extends Message { +export type AdminCreateTokenRequest = Message<"account.AdminCreateTokenRequest"> & { /** * @generated from field: string account = 1; */ - account = ""; + account: string; /** * @generated from field: account.CreateTokenRequest request = 2; */ request?: CreateTokenRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdminCreateTokenRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "request", kind: "message", T: CreateTokenRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdminCreateTokenRequest { - return new AdminCreateTokenRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdminCreateTokenRequest { - return new AdminCreateTokenRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdminCreateTokenRequest { - return new AdminCreateTokenRequest().fromJsonString(jsonString, options); - } - - static equals(a: AdminCreateTokenRequest | PlainMessage | undefined, b: AdminCreateTokenRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AdminCreateTokenRequest, a, b); - } -} +/** + * Describes the message account.AdminCreateTokenRequest. + * Use `create(AdminCreateTokenRequestSchema)` to create a new message. + */ +export const AdminCreateTokenRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 16); /** * @generated from message account.Source */ -export class Source extends Message { +export type Source = Message<"account.Source"> & { /** * @generated from field: account.SourceMetadata metadata = 1; */ @@ -887,53 +356,32 @@ export class Source extends Message { * @generated from field: account.SourceProperties properties = 2; */ properties?: SourceProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.Source"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: SourceMetadata }, - { no: 2, name: "properties", kind: "message", T: SourceProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Source { - return new Source().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Source { - return new Source().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Source { - return new Source().fromJsonString(jsonString, options); - } - - static equals(a: Source | PlainMessage | undefined, b: Source | PlainMessage | undefined): boolean { - return proto3.util.equals(Source, a, b); - } -} +/** + * Describes the message account.Source. + * Use `create(SourceSchema)` to create a new message. + */ +export const SourceSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 17); /** * @generated from message account.SourceMetadata */ -export class SourceMetadata extends Message { +export type SourceMetadata = Message<"account.SourceMetadata"> & { /** * TODO: Change to ID along with everything else * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * The name of the NATS JWT that has been generated for this source * * @generated from field: string TokenName = 2; */ - TokenName = ""; + TokenName: string; /** * When the NATS JWT expires (unix time) @@ -947,74 +395,49 @@ export class SourceMetadata extends Message { * * @generated from field: string PublicNkey = 5; */ - PublicNkey = ""; + PublicNkey: string; /** * Status of the source * * @generated from field: account.SourceStatus Status = 9; */ - Status = SourceStatus.STATUS_UNSPECIFIED; + Status: SourceStatus; /** * The error message if the source is unhealthy * * @generated from field: string Error = 10; */ - Error = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.SourceMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "TokenName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "TokenExpiry", kind: "message", T: Timestamp }, - { no: 5, name: "PublicNkey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "Status", kind: "enum", T: proto3.getEnumType(SourceStatus) }, - { no: 10, name: "Error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SourceMetadata { - return new SourceMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SourceMetadata { - return new SourceMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SourceMetadata { - return new SourceMetadata().fromJsonString(jsonString, options); - } - - static equals(a: SourceMetadata | PlainMessage | undefined, b: SourceMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(SourceMetadata, a, b); - } -} + Error: string; +}; + +/** + * Describes the message account.SourceMetadata. + * Use `create(SourceMetadataSchema)` to create a new message. + */ +export const SourceMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 18); /** * A source that is capable of discovering items * * @generated from message account.SourceProperties */ -export class SourceProperties extends Message { +export type SourceProperties = Message<"account.SourceProperties"> & { /** * The descriptive name of the source * * @generated from field: string DescriptiveName = 1; */ - DescriptiveName = ""; + DescriptiveName: string; /** * What source to configure. Currently either "stdlib" or "aws" * * @generated from field: string Type = 2; */ - Type = ""; + Type: string; /** * Config for this source. See the source documentation for what @@ -1023,7 +446,7 @@ export class SourceProperties extends Message { * * @generated from field: google.protobuf.Struct Config = 3; */ - Config?: Struct; + Config?: JsonObject; /** * Additional config options that should be passed to the source. The keys @@ -1033,43 +456,20 @@ export class SourceProperties extends Message { * * @generated from field: google.protobuf.Struct AdditionalConfig = 4; */ - AdditionalConfig?: Struct; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.SourceProperties"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "DescriptiveName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "Type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "Config", kind: "message", T: Struct }, - { no: 4, name: "AdditionalConfig", kind: "message", T: Struct }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SourceProperties { - return new SourceProperties().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SourceProperties { - return new SourceProperties().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SourceProperties { - return new SourceProperties().fromJsonString(jsonString, options); - } - - static equals(a: SourceProperties | PlainMessage | undefined, b: SourceProperties | PlainMessage | undefined): boolean { - return proto3.util.equals(SourceProperties, a, b); - } -} + AdditionalConfig?: JsonObject; +}; + +/** + * Describes the message account.SourceProperties. + * Use `create(SourcePropertiesSchema)` to create a new message. + */ +export const SourcePropertiesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 19); /** * @generated from message account.Account */ -export class Account extends Message { +export type Account = Message<"account.Account"> & { /** * @generated from field: account.AccountMetadata metadata = 1; */ @@ -1079,487 +479,231 @@ export class Account extends Message { * @generated from field: account.AccountProperties properties = 2; */ properties?: AccountProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.Account"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: AccountMetadata }, - { no: 2, name: "properties", kind: "message", T: AccountProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Account { - return new Account().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Account { - return new Account().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Account { - return new Account().fromJsonString(jsonString, options); - } - - static equals(a: Account | PlainMessage | undefined, b: Account | PlainMessage | undefined): boolean { - return proto3.util.equals(Account, a, b); - } -} +/** + * Describes the message account.Account. + * Use `create(AccountSchema)` to create a new message. + */ +export const AccountSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 20); /** * @generated from message account.AccountMetadata */ -export class AccountMetadata extends Message { +export type AccountMetadata = Message<"account.AccountMetadata"> & { /** * The public Nkey which signs all NATS "user" tokens * * @generated from field: string PublicNkey = 2; */ - PublicNkey = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AccountMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "PublicNkey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountMetadata { - return new AccountMetadata().fromBinary(bytes, options); - } + PublicNkey: string; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): AccountMetadata { - return new AccountMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountMetadata { - return new AccountMetadata().fromJsonString(jsonString, options); - } - - static equals(a: AccountMetadata | PlainMessage | undefined, b: AccountMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountMetadata, a, b); - } -} +/** + * Describes the message account.AccountMetadata. + * Use `create(AccountMetadataSchema)` to create a new message. + */ +export const AccountMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 21); /** * @generated from message account.AccountProperties */ -export class AccountProperties extends Message { +export type AccountProperties = Message<"account.AccountProperties"> & { /** * The name of the account * * @generated from field: string Name = 1; */ - Name = ""; + Name: string; /** * The Customer ID within Stripe * * @generated from field: string StripeCustomerID = 2; */ - StripeCustomerID = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AccountProperties"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "StripeCustomerID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountProperties { - return new AccountProperties().fromBinary(bytes, options); - } + StripeCustomerID: string; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): AccountProperties { - return new AccountProperties().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountProperties { - return new AccountProperties().fromJsonString(jsonString, options); - } - - static equals(a: AccountProperties | PlainMessage | undefined, b: AccountProperties | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountProperties, a, b); - } -} +/** + * Describes the message account.AccountProperties. + * Use `create(AccountPropertiesSchema)` to create a new message. + */ +export const AccountPropertiesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 22); /** * @generated from message account.GetAccountRequest */ -export class GetAccountRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.GetAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAccountRequest { - return new GetAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAccountRequest { - return new GetAccountRequest().fromJson(jsonValue, options); - } +export type GetAccountRequest = Message<"account.GetAccountRequest"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): GetAccountRequest { - return new GetAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAccountRequest | PlainMessage | undefined, b: GetAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAccountRequest, a, b); - } -} +/** + * Describes the message account.GetAccountRequest. + * Use `create(GetAccountRequestSchema)` to create a new message. + */ +export const GetAccountRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 23); /** * @generated from message account.GetAccountResponse */ -export class GetAccountResponse extends Message { +export type GetAccountResponse = Message<"account.GetAccountResponse"> & { /** * @generated from field: account.Account account = 1; */ account?: Account; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.GetAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "message", T: Account }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAccountResponse { - return new GetAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAccountResponse { - return new GetAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAccountResponse { - return new GetAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAccountResponse | PlainMessage | undefined, b: GetAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAccountResponse, a, b); - } -} +/** + * Describes the message account.GetAccountResponse. + * Use `create(GetAccountResponseSchema)` to create a new message. + */ +export const GetAccountResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 24); /** * @generated from message account.DeleteAccountRequest */ -export class DeleteAccountRequest extends Message { +export type DeleteAccountRequest = Message<"account.DeleteAccountRequest"> & { /** * Set to true to confirm that the user is sure they want to delete their * account. This is to prevent accidental deletions * * @generated from field: bool iAmSure = 1; */ - iAmSure = false; + iAmSure: boolean; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.DeleteAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "iAmSure", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAccountRequest { - return new DeleteAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAccountRequest { - return new DeleteAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteAccountRequest { - return new DeleteAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: DeleteAccountRequest | PlainMessage | undefined, b: DeleteAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteAccountRequest, a, b); - } -} +/** + * Describes the message account.DeleteAccountRequest. + * Use `create(DeleteAccountRequestSchema)` to create a new message. + */ +export const DeleteAccountRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 25); /** * @generated from message account.DeleteAccountResponse */ -export class DeleteAccountResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +export type DeleteAccountResponse = Message<"account.DeleteAccountResponse"> & { +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.DeleteAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAccountResponse { - return new DeleteAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAccountResponse { - return new DeleteAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteAccountResponse { - return new DeleteAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: DeleteAccountResponse | PlainMessage | undefined, b: DeleteAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteAccountResponse, a, b); - } -} +/** + * Describes the message account.DeleteAccountResponse. + * Use `create(DeleteAccountResponseSchema)` to create a new message. + */ +export const DeleteAccountResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 26); /** * @generated from message account.ListSourcesRequest */ -export class ListSourcesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.ListSourcesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export type ListSourcesRequest = Message<"account.ListSourcesRequest"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): ListSourcesRequest { - return new ListSourcesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSourcesRequest { - return new ListSourcesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListSourcesRequest { - return new ListSourcesRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListSourcesRequest | PlainMessage | undefined, b: ListSourcesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListSourcesRequest, a, b); - } -} +/** + * Describes the message account.ListSourcesRequest. + * Use `create(ListSourcesRequestSchema)` to create a new message. + */ +export const ListSourcesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 27); /** * @generated from message account.ListSourcesResponse */ -export class ListSourcesResponse extends Message { +export type ListSourcesResponse = Message<"account.ListSourcesResponse"> & { /** * @generated from field: repeated account.Source Sources = 1; */ - Sources: Source[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.ListSourcesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "Sources", kind: "message", T: Source, repeated: true }, - ]); + Sources: Source[]; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): ListSourcesResponse { - return new ListSourcesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSourcesResponse { - return new ListSourcesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListSourcesResponse { - return new ListSourcesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListSourcesResponse | PlainMessage | undefined, b: ListSourcesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListSourcesResponse, a, b); - } -} +/** + * Describes the message account.ListSourcesResponse. + * Use `create(ListSourcesResponseSchema)` to create a new message. + */ +export const ListSourcesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 28); /** * @generated from message account.CreateSourceRequest */ -export class CreateSourceRequest extends Message { +export type CreateSourceRequest = Message<"account.CreateSourceRequest"> & { /** * @generated from field: account.SourceProperties properties = 1; */ properties?: SourceProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.CreateSourceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "properties", kind: "message", T: SourceProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSourceRequest { - return new CreateSourceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSourceRequest { - return new CreateSourceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateSourceRequest { - return new CreateSourceRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateSourceRequest | PlainMessage | undefined, b: CreateSourceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateSourceRequest, a, b); - } -} +/** + * Describes the message account.CreateSourceRequest. + * Use `create(CreateSourceRequestSchema)` to create a new message. + */ +export const CreateSourceRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 29); /** * @generated from message account.CreateSourceResponse */ -export class CreateSourceResponse extends Message { +export type CreateSourceResponse = Message<"account.CreateSourceResponse"> & { /** * @generated from field: account.Source source = 1; */ source?: Source; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.CreateSourceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "source", kind: "message", T: Source }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSourceResponse { - return new CreateSourceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSourceResponse { - return new CreateSourceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateSourceResponse { - return new CreateSourceResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateSourceResponse | PlainMessage | undefined, b: CreateSourceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateSourceResponse, a, b); - } -} +/** + * Describes the message account.CreateSourceResponse. + * Use `create(CreateSourceResponseSchema)` to create a new message. + */ +export const CreateSourceResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 30); /** * @generated from message account.GetSourceRequest */ -export class GetSourceRequest extends Message { +export type GetSourceRequest = Message<"account.GetSourceRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.GetSourceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + UUID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): GetSourceRequest { - return new GetSourceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSourceRequest { - return new GetSourceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSourceRequest { - return new GetSourceRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetSourceRequest | PlainMessage | undefined, b: GetSourceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSourceRequest, a, b); - } -} +/** + * Describes the message account.GetSourceRequest. + * Use `create(GetSourceRequestSchema)` to create a new message. + */ +export const GetSourceRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 31); /** * @generated from message account.GetSourceResponse */ -export class GetSourceResponse extends Message { +export type GetSourceResponse = Message<"account.GetSourceResponse"> & { /** * @generated from field: account.Source source = 1; */ source?: Source; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.GetSourceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "source", kind: "message", T: Source }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSourceResponse { - return new GetSourceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSourceResponse { - return new GetSourceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSourceResponse { - return new GetSourceResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetSourceResponse | PlainMessage | undefined, b: GetSourceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSourceResponse, a, b); - } -} +/** + * Describes the message account.GetSourceResponse. + * Use `create(GetSourceResponseSchema)` to create a new message. + */ +export const GetSourceResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 32); /** * @generated from message account.UpdateSourceRequest */ -export class UpdateSourceRequest extends Message { +export type UpdateSourceRequest = Message<"account.UpdateSourceRequest"> & { /** * ID of the source to update * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * Properties to update @@ -1567,253 +711,134 @@ export class UpdateSourceRequest extends Message { * @generated from field: account.SourceProperties properties = 2; */ properties?: SourceProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.UpdateSourceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "properties", kind: "message", T: SourceProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSourceRequest { - return new UpdateSourceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSourceRequest { - return new UpdateSourceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateSourceRequest { - return new UpdateSourceRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateSourceRequest | PlainMessage | undefined, b: UpdateSourceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateSourceRequest, a, b); - } -} +/** + * Describes the message account.UpdateSourceRequest. + * Use `create(UpdateSourceRequestSchema)` to create a new message. + */ +export const UpdateSourceRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 33); /** * @generated from message account.UpdateSourceResponse */ -export class UpdateSourceResponse extends Message { +export type UpdateSourceResponse = Message<"account.UpdateSourceResponse"> & { /** * @generated from field: account.Source source = 1; */ source?: Source; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.UpdateSourceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "source", kind: "message", T: Source }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSourceResponse { - return new UpdateSourceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSourceResponse { - return new UpdateSourceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateSourceResponse { - return new UpdateSourceResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateSourceResponse | PlainMessage | undefined, b: UpdateSourceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateSourceResponse, a, b); - } -} +/** + * Describes the message account.UpdateSourceResponse. + * Use `create(UpdateSourceResponseSchema)` to create a new message. + */ +export const UpdateSourceResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 34); /** * @generated from message account.DeleteSourceRequest */ -export class DeleteSourceRequest extends Message { +export type DeleteSourceRequest = Message<"account.DeleteSourceRequest"> & { /** * ID if the source to delete * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.DeleteSourceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSourceRequest { - return new DeleteSourceRequest().fromBinary(bytes, options); - } + UUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSourceRequest { - return new DeleteSourceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteSourceRequest { - return new DeleteSourceRequest().fromJsonString(jsonString, options); - } - - static equals(a: DeleteSourceRequest | PlainMessage | undefined, b: DeleteSourceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteSourceRequest, a, b); - } -} +/** + * Describes the message account.DeleteSourceRequest. + * Use `create(DeleteSourceRequestSchema)` to create a new message. + */ +export const DeleteSourceRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 35); /** * @generated from message account.DeleteSourceResponse */ -export class DeleteSourceResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.DeleteSourceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSourceResponse { - return new DeleteSourceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSourceResponse { - return new DeleteSourceResponse().fromJson(jsonValue, options); - } +export type DeleteSourceResponse = Message<"account.DeleteSourceResponse"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): DeleteSourceResponse { - return new DeleteSourceResponse().fromJsonString(jsonString, options); - } - - static equals(a: DeleteSourceResponse | PlainMessage | undefined, b: DeleteSourceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteSourceResponse, a, b); - } -} +/** + * Describes the message account.DeleteSourceResponse. + * Use `create(DeleteSourceResponseSchema)` to create a new message. + */ +export const DeleteSourceResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 36); /** * @generated from message account.SourceKeepaliveResult */ -export class SourceKeepaliveResult extends Message { +export type SourceKeepaliveResult = Message<"account.SourceKeepaliveResult"> & { /** * The UUID of the source that was kept alive * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * The status of the source * * @generated from field: account.SourceStatus Status = 2; */ - Status = SourceStatus.STATUS_UNSPECIFIED; + Status: SourceStatus; /** * The error message if the source is unhealthy * * @generated from field: string Error = 3; */ - Error = ""; + Error: string; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.SourceKeepaliveResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "Status", kind: "enum", T: proto3.getEnumType(SourceStatus) }, - { no: 3, name: "Error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SourceKeepaliveResult { - return new SourceKeepaliveResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SourceKeepaliveResult { - return new SourceKeepaliveResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SourceKeepaliveResult { - return new SourceKeepaliveResult().fromJsonString(jsonString, options); - } - - static equals(a: SourceKeepaliveResult | PlainMessage | undefined, b: SourceKeepaliveResult | PlainMessage | undefined): boolean { - return proto3.util.equals(SourceKeepaliveResult, a, b); - } -} +/** + * Describes the message account.SourceKeepaliveResult. + * Use `create(SourceKeepaliveResultSchema)` to create a new message. + */ +export const SourceKeepaliveResultSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 37); /** * @generated from message account.ListAllSourcesStatusRequest */ -export class ListAllSourcesStatusRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +export type ListAllSourcesStatusRequest = Message<"account.ListAllSourcesStatusRequest"> & { +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.ListAllSourcesStatusRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAllSourcesStatusRequest { - return new ListAllSourcesStatusRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAllSourcesStatusRequest { - return new ListAllSourcesStatusRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAllSourcesStatusRequest { - return new ListAllSourcesStatusRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListAllSourcesStatusRequest | PlainMessage | undefined, b: ListAllSourcesStatusRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAllSourcesStatusRequest, a, b); - } -} +/** + * Describes the message account.ListAllSourcesStatusRequest. + * Use `create(ListAllSourcesStatusRequestSchema)` to create a new message. + */ +export const ListAllSourcesStatusRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 38); /** * @generated from message account.SourceHealth */ -export class SourceHealth extends Message { +export type SourceHealth = Message<"account.SourceHealth"> & { /** * The UUID of the source * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * The version of the source * * @generated from field: string version = 2; */ - version = ""; + version: string; /** * The name of the source * * @generated from field: string name = 3; */ - name = ""; + name: string; /** * The error message if the source is unhealthy @@ -1827,7 +852,7 @@ export class SourceHealth extends Message { * * @generated from field: account.SourceStatus status = 5; */ - status = SourceStatus.STATUS_UNSPECIFIED; + status: SourceStatus; /** * Created at time @@ -1855,139 +880,87 @@ export class SourceHealth extends Message { * * @generated from field: string type = 9; */ - type = ""; + type: string; /** * Whether the source is managed, or local * * @generated from field: account.SourceManaged managed = 10; */ - managed = SourceManaged.LOCAL; + managed: SourceManaged; /** * The types of sources that this source can discover * * @generated from field: repeated string availableTypes = 11; */ - availableTypes: string[] = []; + availableTypes: string[]; /** * The scopes that this source can discover * * @generated from field: repeated string availableScopes = 12; */ - availableScopes: string[] = []; + availableScopes: string[]; /** * AdapterMetadata is a map of metadata that the source can send to the API * * @generated from field: repeated account.AdapterMetadata adapterMetadata = 13; */ - adapterMetadata: AdapterMetadata[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.SourceHealth"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(SourceStatus) }, - { no: 6, name: "createdAt", kind: "message", T: Timestamp }, - { no: 7, name: "lastHeartbeat", kind: "message", T: Timestamp }, - { no: 8, name: "nextHeartbeat", kind: "message", T: Timestamp }, - { no: 9, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "managed", kind: "enum", T: proto3.getEnumType(SourceManaged) }, - { no: 11, name: "availableTypes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 12, name: "availableScopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 13, name: "adapterMetadata", kind: "message", T: AdapterMetadata, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SourceHealth { - return new SourceHealth().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SourceHealth { - return new SourceHealth().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SourceHealth { - return new SourceHealth().fromJsonString(jsonString, options); - } - - static equals(a: SourceHealth | PlainMessage | undefined, b: SourceHealth | PlainMessage | undefined): boolean { - return proto3.util.equals(SourceHealth, a, b); - } -} + adapterMetadata: AdapterMetadata[]; +}; + +/** + * Describes the message account.SourceHealth. + * Use `create(SourceHealthSchema)` to create a new message. + */ +export const SourceHealthSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 39); /** * @generated from message account.ListAllSourcesStatusResponse */ -export class ListAllSourcesStatusResponse extends Message { +export type ListAllSourcesStatusResponse = Message<"account.ListAllSourcesStatusResponse"> & { /** * @generated from field: repeated account.SourceHealth sources = 1; */ - sources: SourceHealth[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.ListAllSourcesStatusResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sources", kind: "message", T: SourceHealth, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAllSourcesStatusResponse { - return new ListAllSourcesStatusResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAllSourcesStatusResponse { - return new ListAllSourcesStatusResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAllSourcesStatusResponse { - return new ListAllSourcesStatusResponse().fromJsonString(jsonString, options); - } + sources: SourceHealth[]; +}; - static equals(a: ListAllSourcesStatusResponse | PlainMessage | undefined, b: ListAllSourcesStatusResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAllSourcesStatusResponse, a, b); - } -} +/** + * Describes the message account.ListAllSourcesStatusResponse. + * Use `create(ListAllSourcesStatusResponseSchema)` to create a new message. + */ +export const ListAllSourcesStatusResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 40); /** * The source sends a heartbeat to the API to let it know that it is still alive, note it does not give a status. * * @generated from message account.SubmitSourceHeartbeatRequest */ -export class SubmitSourceHeartbeatRequest extends Message { +export type SubmitSourceHeartbeatRequest = Message<"account.SubmitSourceHeartbeatRequest"> & { /** * The UUID of the source that is sending the heartbeat * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * The version of the source * * @generated from field: string version = 2; */ - version = ""; + version: string; /** * The name of the source * * @generated from field: string name = 3; */ - name = ""; + name: string; /** * The error message if the source is unhealthy @@ -2008,82 +981,54 @@ export class SubmitSourceHeartbeatRequest extends Message) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.SubmitSourceHeartbeatRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "nextHeartbeatMax", kind: "message", T: Duration }, - { no: 6, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "managed", kind: "enum", T: proto3.getEnumType(SourceManaged) }, - { no: 9, name: "availableScopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 10, name: "adapterMetadata", kind: "message", T: AdapterMetadata, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SubmitSourceHeartbeatRequest { - return new SubmitSourceHeartbeatRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SubmitSourceHeartbeatRequest { - return new SubmitSourceHeartbeatRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SubmitSourceHeartbeatRequest { - return new SubmitSourceHeartbeatRequest().fromJsonString(jsonString, options); - } - - static equals(a: SubmitSourceHeartbeatRequest | PlainMessage | undefined, b: SubmitSourceHeartbeatRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SubmitSourceHeartbeatRequest, a, b); - } -} + adapterMetadata: AdapterMetadata[]; +}; + +/** + * Describes the message account.SubmitSourceHeartbeatRequest. + * Use `create(SubmitSourceHeartbeatRequestSchema)` to create a new message. + */ +export const SubmitSourceHeartbeatRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 41); /** * @generated from message account.AdapterMetadata */ -export class AdapterMetadata extends Message { +export type AdapterMetadata = Message<"account.AdapterMetadata"> & { /** * The type of item that this adapter returns e.g. eks-cluster * * @generated from field: string type = 1; */ - type = ""; + type: string; /** * The category that these items fall under * * @generated from field: account.AdapterCategory category = 2; */ - category = AdapterCategory.OTHER; + category: AdapterCategory; /** * The list of other types that this can be linked to, eg eks-cluster -> @@ -2091,7 +1036,7 @@ export class AdapterMetadata extends Message { * * @generated from field: repeated string potentialLinks = 3; */ - potentialLinks: string[] = []; + potentialLinks: string[]; /** * A descriptive name of the types of items that are returned by this @@ -2099,7 +1044,7 @@ export class AdapterMetadata extends Message { * * @generated from field: string descriptiveName = 4; */ - descriptiveName = ""; + descriptiveName: string; /** * The supported query methods for this adapter @@ -2113,40 +1058,15 @@ export class AdapterMetadata extends Message { * * @generated from field: repeated account.TerraformMapping terraformMappings = 6; */ - terraformMappings: TerraformMapping[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdapterMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "category", kind: "enum", T: proto3.getEnumType(AdapterCategory) }, - { no: 3, name: "potentialLinks", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "descriptiveName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "supportedQueryMethods", kind: "message", T: AdapterSupportedQueryMethods }, - { no: 6, name: "terraformMappings", kind: "message", T: TerraformMapping, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdapterMetadata { - return new AdapterMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdapterMetadata { - return new AdapterMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdapterMetadata { - return new AdapterMetadata().fromJsonString(jsonString, options); - } - - static equals(a: AdapterMetadata | PlainMessage | undefined, b: AdapterMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(AdapterMetadata, a, b); - } -} + terraformMappings: TerraformMapping[]; +}; + +/** + * Describes the message account.AdapterMetadata. + * Use `create(AdapterMetadataSchema)` to create a new message. + */ +export const AdapterMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 42); /** * The methods that this adapter supports, and the description of how to use @@ -2154,81 +1074,56 @@ export class AdapterMetadata extends Message { * * @generated from message account.AdapterSupportedQueryMethods */ -export class AdapterSupportedQueryMethods extends Message { +export type AdapterSupportedQueryMethods = Message<"account.AdapterSupportedQueryMethods"> & { /** * Whether or not the GET method is supported * * @generated from field: bool get = 1; */ - get = false; + get: boolean; /** * Description of the query that should be passed to the GET method * * @generated from field: string getDescription = 2; */ - getDescription = ""; + getDescription: string; /** * Whether or not the LIST method is supported * * @generated from field: bool list = 3; */ - list = false; + list: boolean; /** * Description of how the LIST method works * * @generated from field: string listDescription = 4; */ - listDescription = ""; + listDescription: string; /** * Whether or not the SEARCH method is supported * * @generated from field: bool search = 5; */ - search = false; + search: boolean; /** * Description of the query that should be passed to the SEARCH method * * @generated from field: string searchDescription = 6; */ - searchDescription = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AdapterSupportedQueryMethods"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "get", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "getDescription", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "list", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "listDescription", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "search", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "searchDescription", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AdapterSupportedQueryMethods { - return new AdapterSupportedQueryMethods().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AdapterSupportedQueryMethods { - return new AdapterSupportedQueryMethods().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AdapterSupportedQueryMethods { - return new AdapterSupportedQueryMethods().fromJsonString(jsonString, options); - } - - static equals(a: AdapterSupportedQueryMethods | PlainMessage | undefined, b: AdapterSupportedQueryMethods | PlainMessage | undefined): boolean { - return proto3.util.equals(AdapterSupportedQueryMethods, a, b); - } -} + searchDescription: string; +}; + +/** + * Describes the message account.AdapterSupportedQueryMethods. + * Use `create(AdapterSupportedQueryMethodsSchema)` to create a new message. + */ +export const AdapterSupportedQueryMethodsSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 43); /** * When Overmind ingests Terraform changes, it needs to be able to map from a @@ -2243,13 +1138,13 @@ export class AdapterSupportedQueryMethods extends Message { +export type TerraformMapping = Message<"account.TerraformMapping"> & { /** * The method that the query should use * * @generated from field: QueryMethod terraformMethod = 1; */ - terraformMethod = QueryMethod.GET; + terraformMethod: QueryMethod; /** * How to map data from the terraform resource to the "query" field in the @@ -2262,111 +1157,52 @@ export class TerraformMapping extends Message { * * @generated from field: string terraformQueryMap = 2; */ - terraformQueryMap = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + terraformQueryMap: string; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.TerraformMapping"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "terraformMethod", kind: "enum", T: proto3.getEnumType(QueryMethod) }, - { no: 2, name: "terraformQueryMap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TerraformMapping { - return new TerraformMapping().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TerraformMapping { - return new TerraformMapping().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TerraformMapping { - return new TerraformMapping().fromJsonString(jsonString, options); - } - - static equals(a: TerraformMapping | PlainMessage | undefined, b: TerraformMapping | PlainMessage | undefined): boolean { - return proto3.util.equals(TerraformMapping, a, b); - } -} +/** + * Describes the message account.TerraformMapping. + * Use `create(TerraformMappingSchema)` to create a new message. + */ +export const TerraformMappingSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 44); /** * @generated from message account.SubmitSourceHeartbeatResponse */ -export class SubmitSourceHeartbeatResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.SubmitSourceHeartbeatResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export type SubmitSourceHeartbeatResponse = Message<"account.SubmitSourceHeartbeatResponse"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): SubmitSourceHeartbeatResponse { - return new SubmitSourceHeartbeatResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SubmitSourceHeartbeatResponse { - return new SubmitSourceHeartbeatResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SubmitSourceHeartbeatResponse { - return new SubmitSourceHeartbeatResponse().fromJsonString(jsonString, options); - } - - static equals(a: SubmitSourceHeartbeatResponse | PlainMessage | undefined, b: SubmitSourceHeartbeatResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SubmitSourceHeartbeatResponse, a, b); - } -} +/** + * Describes the message account.SubmitSourceHeartbeatResponse. + * Use `create(SubmitSourceHeartbeatResponseSchema)` to create a new message. + */ +export const SubmitSourceHeartbeatResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 45); /** * @generated from message account.KeepaliveSourcesRequest */ -export class KeepaliveSourcesRequest extends Message { +export type KeepaliveSourcesRequest = Message<"account.KeepaliveSourcesRequest"> & { /** * Set to true to have the API call wait until the source is up and healthy * * @generated from field: bool waitForHealthy = 1; */ - waitForHealthy = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.KeepaliveSourcesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "waitForHealthy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); + waitForHealthy: boolean; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): KeepaliveSourcesRequest { - return new KeepaliveSourcesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): KeepaliveSourcesRequest { - return new KeepaliveSourcesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): KeepaliveSourcesRequest { - return new KeepaliveSourcesRequest().fromJsonString(jsonString, options); - } - - static equals(a: KeepaliveSourcesRequest | PlainMessage | undefined, b: KeepaliveSourcesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(KeepaliveSourcesRequest, a, b); - } -} +/** + * Describes the message account.KeepaliveSourcesRequest. + * Use `create(KeepaliveSourcesRequestSchema)` to create a new message. + */ +export const KeepaliveSourcesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 46); /** * @generated from message account.KeepaliveSourcesResponse */ -export class KeepaliveSourcesResponse extends Message { +export type KeepaliveSourcesResponse = Message<"account.KeepaliveSourcesResponse"> & { /** * If the user requested to wait for the sources to be healthy, this will * contain information about the sources that came up. If the user did not @@ -2374,287 +1210,148 @@ export class KeepaliveSourcesResponse extends Message * * @generated from field: repeated account.SourceKeepaliveResult sources = 1; */ - sources: SourceKeepaliveResult[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.KeepaliveSourcesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sources", kind: "message", T: SourceKeepaliveResult, repeated: true }, - ]); + sources: SourceKeepaliveResult[]; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): KeepaliveSourcesResponse { - return new KeepaliveSourcesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): KeepaliveSourcesResponse { - return new KeepaliveSourcesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): KeepaliveSourcesResponse { - return new KeepaliveSourcesResponse().fromJsonString(jsonString, options); - } - - static equals(a: KeepaliveSourcesResponse | PlainMessage | undefined, b: KeepaliveSourcesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(KeepaliveSourcesResponse, a, b); - } -} +/** + * Describes the message account.KeepaliveSourcesResponse. + * Use `create(KeepaliveSourcesResponseSchema)` to create a new message. + */ +export const KeepaliveSourcesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 47); /** * @generated from message account.CreateTokenRequest */ -export class CreateTokenRequest extends Message { +export type CreateTokenRequest = Message<"account.CreateTokenRequest"> & { /** * The Public NKey of the user that is requesting a token * * @generated from field: string userPublicNkey = 1; */ - userPublicNkey = ""; + userPublicNkey: string; /** * Friendly user name * * @generated from field: string userName = 2; */ - userName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.CreateTokenRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "userPublicNkey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "userName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + userName: string; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): CreateTokenRequest { - return new CreateTokenRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateTokenRequest { - return new CreateTokenRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateTokenRequest { - return new CreateTokenRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateTokenRequest | PlainMessage | undefined, b: CreateTokenRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateTokenRequest, a, b); - } -} +/** + * Describes the message account.CreateTokenRequest. + * Use `create(CreateTokenRequestSchema)` to create a new message. + */ +export const CreateTokenRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 48); /** * @generated from message account.CreateTokenResponse */ -export class CreateTokenResponse extends Message { +export type CreateTokenResponse = Message<"account.CreateTokenResponse"> & { /** * The JWT as a raw string * * @generated from field: string token = 1; */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.CreateTokenResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + token: string; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): CreateTokenResponse { - return new CreateTokenResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateTokenResponse { - return new CreateTokenResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateTokenResponse { - return new CreateTokenResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateTokenResponse | PlainMessage | undefined, b: CreateTokenResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateTokenResponse, a, b); - } -} +/** + * Describes the message account.CreateTokenResponse. + * Use `create(CreateTokenResponseSchema)` to create a new message. + */ +export const CreateTokenResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 49); /** * @generated from message account.RevlinkWarmupRequest */ -export class RevlinkWarmupRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.RevlinkWarmupRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RevlinkWarmupRequest { - return new RevlinkWarmupRequest().fromBinary(bytes, options); - } +export type RevlinkWarmupRequest = Message<"account.RevlinkWarmupRequest"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): RevlinkWarmupRequest { - return new RevlinkWarmupRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RevlinkWarmupRequest { - return new RevlinkWarmupRequest().fromJsonString(jsonString, options); - } - - static equals(a: RevlinkWarmupRequest | PlainMessage | undefined, b: RevlinkWarmupRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RevlinkWarmupRequest, a, b); - } -} +/** + * Describes the message account.RevlinkWarmupRequest. + * Use `create(RevlinkWarmupRequestSchema)` to create a new message. + */ +export const RevlinkWarmupRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 50); /** * @generated from message account.RevlinkWarmupResponse */ -export class RevlinkWarmupResponse extends Message { +export type RevlinkWarmupResponse = Message<"account.RevlinkWarmupResponse"> & { /** * @generated from field: string status = 1; */ - status = ""; + status: string; /** * @generated from field: int32 items = 2; */ - items = 0; + items: number; /** * @generated from field: int32 edges = 3; */ - edges = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.RevlinkWarmupResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "items", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "edges", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RevlinkWarmupResponse { - return new RevlinkWarmupResponse().fromBinary(bytes, options); - } + edges: number; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): RevlinkWarmupResponse { - return new RevlinkWarmupResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RevlinkWarmupResponse { - return new RevlinkWarmupResponse().fromJsonString(jsonString, options); - } - - static equals(a: RevlinkWarmupResponse | PlainMessage | undefined, b: RevlinkWarmupResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RevlinkWarmupResponse, a, b); - } -} +/** + * Describes the message account.RevlinkWarmupResponse. + * Use `create(RevlinkWarmupResponseSchema)` to create a new message. + */ +export const RevlinkWarmupResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 51); /** * @generated from message account.GetTrialEndRequest */ -export class GetTrialEndRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.GetTrialEndRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTrialEndRequest { - return new GetTrialEndRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTrialEndRequest { - return new GetTrialEndRequest().fromJson(jsonValue, options); - } +export type GetTrialEndRequest = Message<"account.GetTrialEndRequest"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): GetTrialEndRequest { - return new GetTrialEndRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetTrialEndRequest | PlainMessage | undefined, b: GetTrialEndRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTrialEndRequest, a, b); - } -} +/** + * Describes the message account.GetTrialEndRequest. + * Use `create(GetTrialEndRequestSchema)` to create a new message. + */ +export const GetTrialEndRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 52); /** * @generated from message account.GetTrialEndResponse */ -export class GetTrialEndResponse extends Message { +export type GetTrialEndResponse = Message<"account.GetTrialEndResponse"> & { /** * @generated from field: google.protobuf.Timestamp endsAt = 1; */ endsAt?: Timestamp; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.GetTrialEndResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "endsAt", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTrialEndResponse { - return new GetTrialEndResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTrialEndResponse { - return new GetTrialEndResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTrialEndResponse { - return new GetTrialEndResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTrialEndResponse | PlainMessage | undefined, b: GetTrialEndResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTrialEndResponse, a, b); - } -} +/** + * Describes the message account.GetTrialEndResponse. + * Use `create(GetTrialEndResponseSchema)` to create a new message. + */ +export const GetTrialEndResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 53); /** * @generated from message account.AvailableItemType */ -export class AvailableItemType extends Message { +export type AvailableItemType = Message<"account.AvailableItemType"> & { /** * The type of item that this adapter returns e.g. eks-cluster * * @generated from field: string type = 1; */ - type = ""; + type: string; /** * The category that these items fall under * * @generated from field: account.AdapterCategory category = 2; */ - category = AdapterCategory.OTHER; + category: AdapterCategory; /** * A descriptive name of the types of items that are returned by this @@ -2662,103 +1359,538 @@ export class AvailableItemType extends Message { * * @generated from field: string descriptiveName = 3; */ - descriptiveName = ""; + descriptiveName: string; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.AvailableItemType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "category", kind: "enum", T: proto3.getEnumType(AdapterCategory) }, - { no: 3, name: "descriptiveName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AvailableItemType { - return new AvailableItemType().fromBinary(bytes, options); - } +/** + * Describes the message account.AvailableItemType. + * Use `create(AvailableItemTypeSchema)` to create a new message. + */ +export const AvailableItemTypeSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 54); - static fromJson(jsonValue: JsonValue, options?: Partial): AvailableItemType { - return new AvailableItemType().fromJson(jsonValue, options); - } +/** + * @generated from message account.ListAvailableItemTypesRequest + */ +export type ListAvailableItemTypesRequest = Message<"account.ListAvailableItemTypesRequest"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): AvailableItemType { - return new AvailableItemType().fromJsonString(jsonString, options); - } +/** + * Describes the message account.ListAvailableItemTypesRequest. + * Use `create(ListAvailableItemTypesRequestSchema)` to create a new message. + */ +export const ListAvailableItemTypesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 55); - static equals(a: AvailableItemType | PlainMessage | undefined, b: AvailableItemType | PlainMessage | undefined): boolean { - return proto3.util.equals(AvailableItemType, a, b); - } -} +/** + * @generated from message account.ListAvailableItemTypesResponse + */ +export type ListAvailableItemTypesResponse = Message<"account.ListAvailableItemTypesResponse"> & { + /** + * @generated from field: repeated account.AvailableItemType types = 1; + */ + types: AvailableItemType[]; +}; /** - * @generated from message account.ListAvailableItemTypesRequest + * Describes the message account.ListAvailableItemTypesResponse. + * Use `create(ListAvailableItemTypesResponseSchema)` to create a new message. */ -export class ListAvailableItemTypesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +export const ListAvailableItemTypesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_account, 56); - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.ListAvailableItemTypesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +/** + * @generated from enum account.SourceStatus + */ +export enum SourceStatus { + /** + * @generated from enum value: STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED = 0, + + /** + * The source is starting or updating. This is only applicable to managed + * sources where Overmind manages the source's lifecycle + * + * @generated from enum value: STATUS_PROGRESSING = 1; + */ + STATUS_PROGRESSING = 1, - static fromBinary(bytes: Uint8Array, options?: Partial): ListAvailableItemTypesRequest { - return new ListAvailableItemTypesRequest().fromBinary(bytes, options); - } + /** + * The source is healthy + * + * @generated from enum value: STATUS_HEALTHY = 2; + */ + STATUS_HEALTHY = 2, - static fromJson(jsonValue: JsonValue, options?: Partial): ListAvailableItemTypesRequest { - return new ListAvailableItemTypesRequest().fromJson(jsonValue, options); - } + /** + * The source is unhealthy + * + * @generated from enum value: STATUS_UNHEALTHY = 3; + */ + STATUS_UNHEALTHY = 3, - static fromJsonString(jsonString: string, options?: Partial): ListAvailableItemTypesRequest { - return new ListAvailableItemTypesRequest().fromJsonString(jsonString, options); - } + /** + * The source is sleeping due to inactivity. It will be woken up before it + * is needed. This is only applicable to managed sources where Overmind + * manages the source's lifecycle + * + * @generated from enum value: STATUS_SLEEPING = 4; + */ + STATUS_SLEEPING = 4, - static equals(a: ListAvailableItemTypesRequest | PlainMessage | undefined, b: ListAvailableItemTypesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAvailableItemTypesRequest, a, b); - } + /** + * The source is disconnected and therefore not able to handle requests. + * This will only be returned for non-managed sources that have recently + * stopped sending heartbeats such as a user running the CLI that has + * recently disconnected + * + * @generated from enum value: STATUS_DISCONNECTED = 5; + */ + STATUS_DISCONNECTED = 5, } /** - * @generated from message account.ListAvailableItemTypesResponse + * Describes the enum account.SourceStatus. + */ +export const SourceStatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_account, 0); + +/** + * Whether the source is managed by srcman or was created by the user locally + * + * @generated from enum account.SourceManaged + */ +export enum SourceManaged { + /** + * Local is the default + * + * @generated from enum value: LOCAL = 0; + */ + LOCAL = 0, + + /** + * @generated from enum value: MANAGED = 1; + */ + MANAGED = 1, +} + +/** + * Describes the enum account.SourceManaged. */ -export class ListAvailableItemTypesResponse extends Message { +export const SourceManagedSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_account, 1); + +/** + * @generated from enum account.AdapterCategory + */ +export enum AdapterCategory { /** - * @generated from field: repeated account.AvailableItemType types = 1; + * Fall-back category for resources that do not fit into any other category + * + * @generated from enum value: ADAPTER_CATEGORY_OTHER = 0; + */ + OTHER = 0, + + /** + * This category includes resources that provide processing power and host + * applications or services. Examples are virtual machines, containers, + * serverless functions, and application hosting platforms. If the primary + * purpose of a resource is to execute workloads, run code, or host + * applications, it should belong here. + * + * @generated from enum value: ADAPTER_CATEGORY_COMPUTE_APPLICATION = 1; */ - types: AvailableItemType[] = []; + COMPUTE_APPLICATION = 1, - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + /** + * Encompassing resources designed to store, archive, and manage data, this + * category includes object storage, block storage, file storage, and data + * backup solutions. Select this category when the core function of a + * resource is persistent data storage or management + * + * @generated from enum value: ADAPTER_CATEGORY_STORAGE = 2; + */ + STORAGE = 2, - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "account.ListAvailableItemTypesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "types", kind: "message", T: AvailableItemType, repeated: true }, - ]); + /** + * This category covers resources that facilitate connectivity and + * communication within cloud environments. Typical resources include + * virtual networks, load balancers, VPNs, and DNS services. Assign + * resources here if their primary role is related to communication, + * connectivity, or traffic management + * + * @generated from enum value: ADAPTER_CATEGORY_NETWORK = 3; + */ + NETWORK = 3, + + /** + * Resources in this category focus on safeguarding data, applications, and + * cloud infrastructure. Examples include firewalls, identity and access + * management, encryption services, and security monitoring tools. Choose + * this category if a resource's main function is security, access control, + * or compliance + * + * @generated from enum value: ADAPTER_CATEGORY_SECURITY = 4; + */ + SECURITY = 4, - static fromBinary(bytes: Uint8Array, options?: Partial): ListAvailableItemTypesResponse { - return new ListAvailableItemTypesResponse().fromBinary(bytes, options); - } + /** + * This category includes resources aimed at monitoring, tracing, and + * logging applications and cloud infrastructure. Examples are monitoring + * tools, logging services, and performance management solutions. Use this + * category for resources that provide insights into system performance and + * health + * + * @generated from enum value: ADAPTER_CATEGORY_OBSERVABILITY = 5; + */ + OBSERVABILITY = 5, - static fromJson(jsonValue: JsonValue, options?: Partial): ListAvailableItemTypesResponse { - return new ListAvailableItemTypesResponse().fromJson(jsonValue, options); - } + /** + * Focused on structured data storage and management, this category includes + * relational, NoSQL, and in-memory databases, along with data warehousing + * solutions. Choose this category for resources specifically designed for + * data querying, transaction processing, or complex data operations. This + * differs from "storage" in that "databases" have compute associated with + * them rather than just storing data. + * + * @generated from enum value: ADAPTER_CATEGORY_DATABASE = 6; + */ + DATABASE = 6, - static fromJsonString(jsonString: string, options?: Partial): ListAvailableItemTypesResponse { - return new ListAvailableItemTypesResponse().fromJsonString(jsonString, options); - } + /** + * This category includes resources designed for managing configurations and + * deployments. Examples are infrastructure as code tools, configuration + * management services, and deployment orchestration solutions. Classify + * resources here if they primarily handle configuration, environment + * management, or automated deployment + * + * @generated from enum value: ADAPTER_CATEGORY_CONFIGURATION = 7; + */ + CONFIGURATION = 7, - static equals(a: ListAvailableItemTypesResponse | PlainMessage | undefined, b: ListAvailableItemTypesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAvailableItemTypesResponse, a, b); - } + /** + * This category is dedicated to resources for developing, training, and + * deploying artificial intelligence models and machine learning + * applications. Include machine learning platforms, AI services, and data + * labeling tools here. Select this category if a resource's principal + * function involves AI or machine learning processes + * + * @generated from enum value: ADAPTER_CATEGORY_AI = 8; + */ + AI = 8, } +/** + * Describes the enum account.AdapterCategory. + */ +export const AdapterCategorySchema: GenEnum = /*@__PURE__*/ + enumDesc(file_account, 2); + +/** + * The admin service allows users with Admin privileges to any account. Many of + * the RPCs in this service mirror RPCs in the ManagementService, but allow the + * user to specify an account to operate on, rather than using the account that + * the user belongs to. + * + * @generated from service account.AdminService + */ +export const AdminService: GenService<{ + /** + * Lists the details of all NATS Accounts + * + * @generated from rpc account.AdminService.ListAccounts + */ + listAccounts: { + methodKind: "unary"; + input: typeof ListAccountsRequestSchema; + output: typeof ListAccountsResponseSchema; + }, + /** + * Creates a new account, public_nkey will be autogenerated + * + * @generated from rpc account.AdminService.CreateAccount + */ + createAccount: { + methodKind: "unary"; + input: typeof CreateAccountRequestSchema; + output: typeof CreateAccountResponseSchema; + }, + /** + * Updates account details, returns the account + * + * @generated from rpc account.AdminService.UpdateAccount + */ + updateAccount: { + methodKind: "unary"; + input: typeof AdminUpdateAccountRequestSchema; + output: typeof UpdateAccountResponseSchema; + }, + /** + * Get the details of a given account + * + * @generated from rpc account.AdminService.GetAccount + */ + getAccount: { + methodKind: "unary"; + input: typeof AdminGetAccountRequestSchema; + output: typeof GetAccountResponseSchema; + }, + /** + * Completely deletes an account. This includes all of the data in that + * account, bookmarks, changes etc. It also deletes all users from Auth0 + * that are associated with this account + * + * @generated from rpc account.AdminService.DeleteAccount + */ + deleteAccount: { + methodKind: "unary"; + input: typeof AdminDeleteAccountRequestSchema; + output: typeof AdminDeleteAccountResponseSchema; + }, + /** + * Lists all sources within the chosen account + * + * @generated from rpc account.AdminService.ListSources + */ + listSources: { + methodKind: "unary"; + input: typeof AdminListSourcesRequestSchema; + output: typeof ListSourcesResponseSchema; + }, + /** + * Creates a new source within the chosen account + * + * @generated from rpc account.AdminService.CreateSource + */ + createSource: { + methodKind: "unary"; + input: typeof AdminCreateSourceRequestSchema; + output: typeof CreateSourceResponseSchema; + }, + /** + * Get the details of a source within the chosen account + * + * @generated from rpc account.AdminService.GetSource + */ + getSource: { + methodKind: "unary"; + input: typeof AdminGetSourceRequestSchema; + output: typeof GetSourceResponseSchema; + }, + /** + * Update the details of a source within the chosen account + * + * @generated from rpc account.AdminService.UpdateSource + */ + updateSource: { + methodKind: "unary"; + input: typeof AdminUpdateSourceRequestSchema; + output: typeof UpdateSourceResponseSchema; + }, + /** + * Deletes a source from a chosen account + * + * @generated from rpc account.AdminService.DeleteSource + */ + deleteSource: { + methodKind: "unary"; + input: typeof AdminDeleteSourceRequestSchema; + output: typeof DeleteSourceResponseSchema; + }, + /** + * Updates sources to keep them running in the background. This can be used + * to add explicit action, when the built-in keepalives are not sufficient. + * + * @generated from rpc account.AdminService.KeepaliveSources + */ + keepaliveSources: { + methodKind: "unary"; + input: typeof AdminKeepaliveSourcesRequestSchema; + output: typeof KeepaliveSourcesResponseSchema; + }, + /** + * Create a new NATS token for a given public NKey. The user requesting must + * control the associated private key also in order to connect to NATS as + * the token is not enough on its own + * + * @generated from rpc account.AdminService.CreateToken + */ + createToken: { + methodKind: "unary"; + input: typeof AdminCreateTokenRequestSchema; + output: typeof CreateTokenResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_account, 0); + +/** + * RPCs to manage the user's account, sources etc. All requests to this API are + * scoped to that user's account via the + * `https://api.overmind.tech/account-name` claim in the supplied token + * + * @generated from service account.ManagementService + */ +export const ManagementService: GenService<{ + /** + * Get the details of the account that this user belongs to + * + * @generated from rpc account.ManagementService.GetAccount + */ + getAccount: { + methodKind: "unary"; + input: typeof GetAccountRequestSchema; + output: typeof GetAccountResponseSchema; + }, + /** + * Completely deletes the user's account. This includes all of the data in + * that account, bookmarks, changes etc. It also deletes the current user, + * and all other users in that account from Auth0 + * + * @generated from rpc account.ManagementService.DeleteAccount + */ + deleteAccount: { + methodKind: "unary"; + input: typeof DeleteAccountRequestSchema; + output: typeof DeleteAccountResponseSchema; + }, + /** + * Lists all sources within the user's account + * + * @generated from rpc account.ManagementService.ListSources + */ + listSources: { + methodKind: "unary"; + input: typeof ListSourcesRequestSchema; + output: typeof ListSourcesResponseSchema; + }, + /** + * Creates a new source within the user's account + * + * @generated from rpc account.ManagementService.CreateSource + */ + createSource: { + methodKind: "unary"; + input: typeof CreateSourceRequestSchema; + output: typeof CreateSourceResponseSchema; + }, + /** + * Get the details of a source + * + * @generated from rpc account.ManagementService.GetSource + */ + getSource: { + methodKind: "unary"; + input: typeof GetSourceRequestSchema; + output: typeof GetSourceResponseSchema; + }, + /** + * Update the details of a source + * + * @generated from rpc account.ManagementService.UpdateSource + */ + updateSource: { + methodKind: "unary"; + input: typeof UpdateSourceRequestSchema; + output: typeof UpdateSourceResponseSchema; + }, + /** + * Deletes a source from a user's account + * + * @generated from rpc account.ManagementService.DeleteSource + */ + deleteSource: { + methodKind: "unary"; + input: typeof DeleteSourceRequestSchema; + output: typeof DeleteSourceResponseSchema; + }, + /** + * Sources heartbeat and health + * List of all recently active sources and their health, includes information from srcman + * meaning that it can show the status of managed sources that have not started and + * connected yet + * + * @generated from rpc account.ManagementService.ListAllSourcesStatus + */ + listAllSourcesStatus: { + methodKind: "unary"; + input: typeof ListAllSourcesStatusRequestSchema; + output: typeof ListAllSourcesStatusResponseSchema; + }, + /** + * Lists all active sources and their health. This should be used to determine + * what types, scopes etc are available rather than `ListAllSourcesStatus` since + * this endpoint only include running, available sources + * + * @generated from rpc account.ManagementService.ListActiveSourcesStatus + */ + listActiveSourcesStatus: { + methodKind: "unary"; + input: typeof ListAllSourcesStatusRequestSchema; + output: typeof ListAllSourcesStatusResponseSchema; + }, + /** + * Heartbeat from a source to keep it registered and healthy + * + * @generated from rpc account.ManagementService.SubmitSourceHeartbeat + */ + submitSourceHeartbeat: { + methodKind: "unary"; + input: typeof SubmitSourceHeartbeatRequestSchema; + output: typeof SubmitSourceHeartbeatResponseSchema; + }, + /** + * Updates sources to keep them running in the background. This can be used + * to add explicit action, when the built-in keepalives are not sufficient. + * + * @generated from rpc account.ManagementService.KeepaliveSources + */ + keepaliveSources: { + methodKind: "unary"; + input: typeof KeepaliveSourcesRequestSchema; + output: typeof KeepaliveSourcesResponseSchema; + }, + /** + * Create a new NATS token for a given public NKey. The user requesting must + * control the associated private key also in order to connect to NATS as + * the token is not enough on its own + * + * @generated from rpc account.ManagementService.CreateToken + */ + createToken: { + methodKind: "unary"; + input: typeof CreateTokenRequestSchema; + output: typeof CreateTokenResponseSchema; + }, + /** + * Ensure that all reverse links are populated. This does internal debouncing + * so the actual logic does only run when required. + * + * @generated from rpc account.ManagementService.RevlinkWarmup + */ + revlinkWarmup: { + methodKind: "server_streaming"; + input: typeof RevlinkWarmupRequestSchema; + output: typeof RevlinkWarmupResponseSchema; + }, + /** + * @generated from rpc account.ManagementService.GetTrialEnd + */ + getTrialEnd: { + methodKind: "unary"; + input: typeof GetTrialEndRequestSchema; + output: typeof GetTrialEndResponseSchema; + }, + /** + * Lists all the available item types that can be discovered by sources that are running and healthy + * + * @generated from rpc account.ManagementService.ListAvailableItemTypes + */ + listAvailableItemTypes: { + methodKind: "unary"; + input: typeof ListAvailableItemTypesRequestSchema; + output: typeof ListAvailableItemTypesResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_account, 1); + diff --git a/src/__generated__/apikeys-ApiKeyService_connectquery.ts b/src/__generated__/apikeys-ApiKeyService_connectquery.ts index 4728490..9590c01 100644 --- a/src/__generated__/apikeys-ApiKeyService_connectquery.ts +++ b/src/__generated__/apikeys-ApiKeyService_connectquery.ts @@ -1,10 +1,8 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file apikeys.proto (package apikeys, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { CreateAPIKeyRequest, CreateAPIKeyResponse, DeleteAPIKeyRequest, DeleteAPIKeyResponse, ExchangeKeyForTokenRequest, ExchangeKeyForTokenResponse, GetAPIKeyRequest, GetAPIKeyResponse, ListAPIKeysRequest, ListAPIKeysResponse, RefreshAPIKeyRequest, RefreshAPIKeyResponse, UpdateAPIKeyRequest, UpdateAPIKeyResponse } from "./apikeys_pb.ts"; +import { ApiKeyService } from "./apikeys_pb"; /** * Creates an API key, pending access token generation from Auth0. The key @@ -13,16 +11,7 @@ import { CreateAPIKeyRequest, CreateAPIKeyResponse, DeleteAPIKeyRequest, DeleteA * * @generated from rpc apikeys.ApiKeyService.CreateAPIKey */ -export const createAPIKey = { - localName: "createAPIKey", - name: "CreateAPIKey", - kind: MethodKind.Unary, - I: CreateAPIKeyRequest, - O: CreateAPIKeyResponse, - service: { - typeName: "apikeys.ApiKeyService" - } -} as const; +export const createAPIKey = ApiKeyService.method.createAPIKey; /** * Refreshes an API key, returning a new one with the same metadata and @@ -31,72 +20,27 @@ export const createAPIKey = { * * @generated from rpc apikeys.ApiKeyService.RefreshAPIKey */ -export const refreshAPIKey = { - localName: "refreshAPIKey", - name: "RefreshAPIKey", - kind: MethodKind.Unary, - I: RefreshAPIKeyRequest, - O: RefreshAPIKeyResponse, - service: { - typeName: "apikeys.ApiKeyService" - } -} as const; +export const refreshAPIKey = ApiKeyService.method.refreshAPIKey; /** * @generated from rpc apikeys.ApiKeyService.GetAPIKey */ -export const getAPIKey = { - localName: "getAPIKey", - name: "GetAPIKey", - kind: MethodKind.Unary, - I: GetAPIKeyRequest, - O: GetAPIKeyResponse, - service: { - typeName: "apikeys.ApiKeyService" - } -} as const; +export const getAPIKey = ApiKeyService.method.getAPIKey; /** * @generated from rpc apikeys.ApiKeyService.UpdateAPIKey */ -export const updateAPIKey = { - localName: "updateAPIKey", - name: "UpdateAPIKey", - kind: MethodKind.Unary, - I: UpdateAPIKeyRequest, - O: UpdateAPIKeyResponse, - service: { - typeName: "apikeys.ApiKeyService" - } -} as const; +export const updateAPIKey = ApiKeyService.method.updateAPIKey; /** * @generated from rpc apikeys.ApiKeyService.ListAPIKeys */ -export const listAPIKeys = { - localName: "listAPIKeys", - name: "ListAPIKeys", - kind: MethodKind.Unary, - I: ListAPIKeysRequest, - O: ListAPIKeysResponse, - service: { - typeName: "apikeys.ApiKeyService" - } -} as const; +export const listAPIKeys = ApiKeyService.method.listAPIKeys; /** * @generated from rpc apikeys.ApiKeyService.DeleteAPIKey */ -export const deleteAPIKey = { - localName: "deleteAPIKey", - name: "DeleteAPIKey", - kind: MethodKind.Unary, - I: DeleteAPIKeyRequest, - O: DeleteAPIKeyResponse, - service: { - typeName: "apikeys.ApiKeyService" - } -} as const; +export const deleteAPIKey = ApiKeyService.method.deleteAPIKey; /** * Exchanges an Overmind API key for an Oauth access token. That token can @@ -104,13 +48,4 @@ export const deleteAPIKey = { * * @generated from rpc apikeys.ApiKeyService.ExchangeKeyForToken */ -export const exchangeKeyForToken = { - localName: "exchangeKeyForToken", - name: "ExchangeKeyForToken", - kind: MethodKind.Unary, - I: ExchangeKeyForTokenRequest, - O: ExchangeKeyForTokenResponse, - service: { - typeName: "apikeys.ApiKeyService" - } -} as const; +export const exchangeKeyForToken = ApiKeyService.method.exchangeKeyForToken; diff --git a/src/__generated__/apikeys_connect.ts b/src/__generated__/apikeys_connect.ts deleted file mode 100644 index 3b0d87b..0000000 --- a/src/__generated__/apikeys_connect.ts +++ /dev/null @@ -1,99 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file apikeys.proto (package apikeys, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CreateAPIKeyRequest, CreateAPIKeyResponse, DeleteAPIKeyRequest, DeleteAPIKeyResponse, ExchangeKeyForTokenRequest, ExchangeKeyForTokenResponse, GetAPIKeyRequest, GetAPIKeyResponse, ListAPIKeysRequest, ListAPIKeysResponse, RefreshAPIKeyRequest, RefreshAPIKeyResponse, UpdateAPIKeyRequest, UpdateAPIKeyResponse } from "./apikeys_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * The API Key Service is designed to give services like CI, webhooks etc. a - * simple non-rotating secret that they can use when calling out to Overmind. - * In order to keep the auth as simple as possible, these API keys don't - * actually confer any access themselves, they need to be exchanged for an Oauth - * access token using this API. The server will then return the client a valid - * token that they can then use for subsequent requests - * - * - * @generated from service apikeys.ApiKeyService - */ -export const ApiKeyService = { - typeName: "apikeys.ApiKeyService", - methods: { - /** - * Creates an API key, pending access token generation from Auth0. The key - * cannot be used until the user has been redirected to the given URL which - * allows Auth0 to actually generate an access token - * - * @generated from rpc apikeys.ApiKeyService.CreateAPIKey - */ - createAPIKey: { - name: "CreateAPIKey", - I: CreateAPIKeyRequest, - O: CreateAPIKeyResponse, - kind: MethodKind.Unary, - }, - /** - * Refreshes an API key, returning a new one with the same metadata and - * properties. The response will be the same as CreateAPIKey, and requires - * the same redirect handling to authenticate the new key. - * - * @generated from rpc apikeys.ApiKeyService.RefreshAPIKey - */ - refreshAPIKey: { - name: "RefreshAPIKey", - I: RefreshAPIKeyRequest, - O: RefreshAPIKeyResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc apikeys.ApiKeyService.GetAPIKey - */ - getAPIKey: { - name: "GetAPIKey", - I: GetAPIKeyRequest, - O: GetAPIKeyResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc apikeys.ApiKeyService.UpdateAPIKey - */ - updateAPIKey: { - name: "UpdateAPIKey", - I: UpdateAPIKeyRequest, - O: UpdateAPIKeyResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc apikeys.ApiKeyService.ListAPIKeys - */ - listAPIKeys: { - name: "ListAPIKeys", - I: ListAPIKeysRequest, - O: ListAPIKeysResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc apikeys.ApiKeyService.DeleteAPIKey - */ - deleteAPIKey: { - name: "DeleteAPIKey", - I: DeleteAPIKeyRequest, - O: DeleteAPIKeyResponse, - kind: MethodKind.Unary, - }, - /** - * Exchanges an Overmind API key for an Oauth access token. That token can - * then be used to access all other Overmind APIs - * - * @generated from rpc apikeys.ApiKeyService.ExchangeKeyForToken - */ - exchangeKeyForToken: { - name: "ExchangeKeyForToken", - I: ExchangeKeyForTokenRequest, - O: ExchangeKeyForTokenResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/apikeys_pb.ts b/src/__generated__/apikeys_pb.ts index a6fbde3..75a9283 100644 --- a/src/__generated__/apikeys_pb.ts +++ b/src/__generated__/apikeys_pb.ts @@ -1,62 +1,23 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file apikeys.proto (package apikeys, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { Message } from "@bufbuild/protobuf"; /** - * @generated from enum apikeys.KeyStatus + * Describes the file apikeys.proto. */ -export enum KeyStatus { - /** - * @generated from enum value: KEY_STATUS_UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * This means the key has been created but we have not yet received the - * callback from Auth0 which allows us to fetch the access token - * - * @generated from enum value: KEY_STATUS_UNAUTHORIZED = 1; - */ - UNAUTHORIZED = 1, - - /** - * Key is ready for use - * - * @generated from enum value: KEY_STATUS_READY = 2; - */ - READY = 2, - - /** - * There was an error getting the access token from Auth0 - * - * @generated from enum value: KEY_STATUS_ERROR = 3; - */ - ERROR = 3, - - /** - * The API key has been revoked - * - * @generated from enum value: KEY_STATUS_REVOKED = 4; - */ - REVOKED = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(KeyStatus) -proto3.util.setEnumType(KeyStatus, "apikeys.KeyStatus", [ - { no: 0, name: "KEY_STATUS_UNKNOWN" }, - { no: 1, name: "KEY_STATUS_UNAUTHORIZED" }, - { no: 2, name: "KEY_STATUS_READY" }, - { no: 3, name: "KEY_STATUS_ERROR" }, - { no: 4, name: "KEY_STATUS_REVOKED" }, -]); +export const file_apikeys: GenFile = /*@__PURE__*/ + fileDesc("Cg1hcGlrZXlzLnByb3RvEgdhcGlrZXlzImIKBkFQSUtleRIpCghtZXRhZGF0YRgBIAEoCzIXLmFwaWtleXMuQVBJS2V5TWV0YWRhdGESLQoKcHJvcGVydGllcxgCIAEoCzIZLmFwaWtleXMuQVBJS2V5UHJvcGVydGllcyLJAQoOQVBJS2V5TWV0YWRhdGESDAoEdXVpZBgBIAEoDBIrCgdjcmVhdGVkGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIsCghsYXN0VXNlZBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASCwoDa2V5GAQgASgJEg4KBnNjb3BlcxgFIAMoCRIiCgZzdGF0dXMYBiABKA4yEi5hcGlrZXlzLktleVN0YXR1cxINCgVlcnJvchgHIAEoCSIgChBBUElLZXlQcm9wZXJ0aWVzEgwKBG5hbWUYASABKAkiUgoTQ3JlYXRlQVBJS2V5UmVxdWVzdBIMCgRuYW1lGAEgASgJEg4KBnNjb3BlcxgCIAMoCRIdChVmaW5hbEZyb250ZW5kUmVkaXJlY3QYAyABKAkiSgoUQ3JlYXRlQVBJS2V5UmVzcG9uc2USHAoDa2V5GAEgASgLMg8uYXBpa2V5cy5BUElLZXkSFAoMYXV0aG9yaXplVVJMGAIgASgJIkMKFFJlZnJlc2hBUElLZXlSZXF1ZXN0EgwKBHV1aWQYASABKAwSHQoVZmluYWxGcm9udGVuZFJlZGlyZWN0GAIgASgJIkgKFVJlZnJlc2hBUElLZXlSZXNwb25zZRIvCghyZXNwb25zZRgBIAEoCzIdLmFwaWtleXMuQ3JlYXRlQVBJS2V5UmVzcG9uc2UiIAoQR2V0QVBJS2V5UmVxdWVzdBIMCgR1dWlkGAEgASgMIjEKEUdldEFQSUtleVJlc3BvbnNlEhwKA2tleRgBIAEoCzIPLmFwaWtleXMuQVBJS2V5IlIKE1VwZGF0ZUFQSUtleVJlcXVlc3QSDAoEdXVpZBgBIAEoDBItCgpwcm9wZXJ0aWVzGAIgASgLMhkuYXBpa2V5cy5BUElLZXlQcm9wZXJ0aWVzIjQKFFVwZGF0ZUFQSUtleVJlc3BvbnNlEhwKA2tleRgBIAEoCzIPLmFwaWtleXMuQVBJS2V5IhQKEkxpc3RBUElLZXlzUmVxdWVzdCI0ChNMaXN0QVBJS2V5c1Jlc3BvbnNlEh0KBGtleXMYASADKAsyDy5hcGlrZXlzLkFQSUtleSIjChNEZWxldGVBUElLZXlSZXF1ZXN0EgwKBHV1aWQYASABKAwiFgoURGVsZXRlQVBJS2V5UmVzcG9uc2UiLAoaRXhjaGFuZ2VLZXlGb3JUb2tlblJlcXVlc3QSDgoGYXBpS2V5GAEgASgJIjIKG0V4Y2hhbmdlS2V5Rm9yVG9rZW5SZXNwb25zZRITCgthY2Nlc3NUb2tlbhgBIAEoCSqEAQoJS2V5U3RhdHVzEhYKEktFWV9TVEFUVVNfVU5LTk9XThAAEhsKF0tFWV9TVEFUVVNfVU5BVVRIT1JJWkVEEAESFAoQS0VZX1NUQVRVU19SRUFEWRACEhQKEEtFWV9TVEFUVVNfRVJST1IQAxIWChJLRVlfU1RBVFVTX1JFVk9LRUQQBDK2BAoNQXBpS2V5U2VydmljZRJLCgxDcmVhdGVBUElLZXkSHC5hcGlrZXlzLkNyZWF0ZUFQSUtleVJlcXVlc3QaHS5hcGlrZXlzLkNyZWF0ZUFQSUtleVJlc3BvbnNlEk4KDVJlZnJlc2hBUElLZXkSHS5hcGlrZXlzLlJlZnJlc2hBUElLZXlSZXF1ZXN0Gh4uYXBpa2V5cy5SZWZyZXNoQVBJS2V5UmVzcG9uc2USQgoJR2V0QVBJS2V5EhkuYXBpa2V5cy5HZXRBUElLZXlSZXF1ZXN0GhouYXBpa2V5cy5HZXRBUElLZXlSZXNwb25zZRJLCgxVcGRhdGVBUElLZXkSHC5hcGlrZXlzLlVwZGF0ZUFQSUtleVJlcXVlc3QaHS5hcGlrZXlzLlVwZGF0ZUFQSUtleVJlc3BvbnNlEkgKC0xpc3RBUElLZXlzEhsuYXBpa2V5cy5MaXN0QVBJS2V5c1JlcXVlc3QaHC5hcGlrZXlzLkxpc3RBUElLZXlzUmVzcG9uc2USSwoMRGVsZXRlQVBJS2V5EhwuYXBpa2V5cy5EZWxldGVBUElLZXlSZXF1ZXN0Gh0uYXBpa2V5cy5EZWxldGVBUElLZXlSZXNwb25zZRJgChNFeGNoYW5nZUtleUZvclRva2VuEiMuYXBpa2V5cy5FeGNoYW5nZUtleUZvclRva2VuUmVxdWVzdBokLmFwaWtleXMuRXhjaGFuZ2VLZXlGb3JUb2tlblJlc3BvbnNlQiRaImdpdGh1Yi5jb20vb3Zlcm1pbmR0ZWNoL3NkcC1nbztzZHBiBnByb3RvMw", [file_google_protobuf_timestamp]); /** * @generated from message apikeys.APIKey */ -export class APIKey extends Message { +export type APIKey = Message<"apikeys.APIKey"> & { /** * @generated from field: apikeys.APIKeyMetadata metadata = 1; */ @@ -66,46 +27,25 @@ export class APIKey extends Message { * @generated from field: apikeys.APIKeyProperties properties = 2; */ properties?: APIKeyProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.APIKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: APIKeyMetadata }, - { no: 2, name: "properties", kind: "message", T: APIKeyProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): APIKey { - return new APIKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): APIKey { - return new APIKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): APIKey { - return new APIKey().fromJsonString(jsonString, options); - } - - static equals(a: APIKey | PlainMessage | undefined, b: APIKey | PlainMessage | undefined): boolean { - return proto3.util.equals(APIKey, a, b); - } -} +/** + * Describes the message apikeys.APIKey. + * Use `create(APIKeySchema)` to create a new message. + */ +export const APIKeySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 0); /** * @generated from message apikeys.APIKeyMetadata */ -export class APIKeyMetadata extends Message { +export type APIKeyMetadata = Message<"apikeys.APIKeyMetadata"> & { /** * The ID of this API key * * @generated from field: bytes uuid = 1; */ - uuid = new Uint8Array(0); + uuid: Uint8Array; /** * When the API Key was created @@ -126,21 +66,21 @@ export class APIKeyMetadata extends Message { * * @generated from field: string key = 4; */ - key = ""; + key: string; /** * The list of scopes that this token has access to * * @generated from field: repeated string scopes = 5; */ - scopes: string[] = []; + scopes: string[]; /** * The status of the key * * @generated from field: apikeys.KeyStatus status = 6; */ - status = KeyStatus.UNKNOWN; + status: KeyStatus; /** * The error encountered when authorizing the key. This will only be set if @@ -148,98 +88,52 @@ export class APIKeyMetadata extends Message { * * @generated from field: string error = 7; */ - error = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.APIKeyMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "created", kind: "message", T: Timestamp }, - { no: 3, name: "lastUsed", kind: "message", T: Timestamp }, - { no: 4, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(KeyStatus) }, - { no: 7, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): APIKeyMetadata { - return new APIKeyMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): APIKeyMetadata { - return new APIKeyMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): APIKeyMetadata { - return new APIKeyMetadata().fromJsonString(jsonString, options); - } - - static equals(a: APIKeyMetadata | PlainMessage | undefined, b: APIKeyMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(APIKeyMetadata, a, b); - } -} + error: string; +}; + +/** + * Describes the message apikeys.APIKeyMetadata. + * Use `create(APIKeyMetadataSchema)` to create a new message. + */ +export const APIKeyMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 1); /** * @generated from message apikeys.APIKeyProperties */ -export class APIKeyProperties extends Message { +export type APIKeyProperties = Message<"apikeys.APIKeyProperties"> & { /** * The name of the API key * * @generated from field: string name = 1; */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.APIKeyProperties"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): APIKeyProperties { - return new APIKeyProperties().fromBinary(bytes, options); - } + name: string; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): APIKeyProperties { - return new APIKeyProperties().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): APIKeyProperties { - return new APIKeyProperties().fromJsonString(jsonString, options); - } - - static equals(a: APIKeyProperties | PlainMessage | undefined, b: APIKeyProperties | PlainMessage | undefined): boolean { - return proto3.util.equals(APIKeyProperties, a, b); - } -} +/** + * Describes the message apikeys.APIKeyProperties. + * Use `create(APIKeyPropertiesSchema)` to create a new message. + */ +export const APIKeyPropertiesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 2); /** * @generated from message apikeys.CreateAPIKeyRequest */ -export class CreateAPIKeyRequest extends Message { +export type CreateAPIKeyRequest = Message<"apikeys.CreateAPIKeyRequest"> & { /** * The name of the key to create * * @generated from field: string name = 1; */ - name = ""; + name: string; /** * The scopes that the key should have * * @generated from field: repeated string scopes = 2; */ - scopes: string[] = []; + scopes: string[]; /** * The URL that the user should be redirected to after the whole process is @@ -248,42 +142,20 @@ export class CreateAPIKeyRequest extends Message { * * @generated from field: string finalFrontendRedirect = 3; */ - finalFrontendRedirect = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + finalFrontendRedirect: string; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.CreateAPIKeyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "finalFrontendRedirect", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateAPIKeyRequest { - return new CreateAPIKeyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateAPIKeyRequest { - return new CreateAPIKeyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateAPIKeyRequest { - return new CreateAPIKeyRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateAPIKeyRequest | PlainMessage | undefined, b: CreateAPIKeyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateAPIKeyRequest, a, b); - } -} +/** + * Describes the message apikeys.CreateAPIKeyRequest. + * Use `create(CreateAPIKeyRequestSchema)` to create a new message. + */ +export const CreateAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 3); /** * @generated from message apikeys.CreateAPIKeyResponse */ -export class CreateAPIKeyResponse extends Message { +export type CreateAPIKeyResponse = Message<"apikeys.CreateAPIKeyResponse"> & { /** * Details of the newly created API Key * @@ -304,47 +176,26 @@ export class CreateAPIKeyResponse extends Message { * * @generated from field: string authorizeURL = 2; */ - authorizeURL = ""; + authorizeURL: string; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.CreateAPIKeyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "message", T: APIKey }, - { no: 2, name: "authorizeURL", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateAPIKeyResponse { - return new CreateAPIKeyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateAPIKeyResponse { - return new CreateAPIKeyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateAPIKeyResponse { - return new CreateAPIKeyResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateAPIKeyResponse | PlainMessage | undefined, b: CreateAPIKeyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateAPIKeyResponse, a, b); - } -} +/** + * Describes the message apikeys.CreateAPIKeyResponse. + * Use `create(CreateAPIKeyResponseSchema)` to create a new message. + */ +export const CreateAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 4); /** * @generated from message apikeys.RefreshAPIKeyRequest */ -export class RefreshAPIKeyRequest extends Message { +export type RefreshAPIKeyRequest = Message<"apikeys.RefreshAPIKeyRequest"> & { /** * The UUID of the API key to refresh * * @generated from field: bytes uuid = 1; */ - uuid = new Uint8Array(0); + uuid: Uint8Array; /** * The URL that the user should be redirected to after the whole process is @@ -353,41 +204,20 @@ export class RefreshAPIKeyRequest extends Message { * * @generated from field: string finalFrontendRedirect = 2; */ - finalFrontendRedirect = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.RefreshAPIKeyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "finalFrontendRedirect", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RefreshAPIKeyRequest { - return new RefreshAPIKeyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RefreshAPIKeyRequest { - return new RefreshAPIKeyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RefreshAPIKeyRequest { - return new RefreshAPIKeyRequest().fromJsonString(jsonString, options); - } + finalFrontendRedirect: string; +}; - static equals(a: RefreshAPIKeyRequest | PlainMessage | undefined, b: RefreshAPIKeyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RefreshAPIKeyRequest, a, b); - } -} +/** + * Describes the message apikeys.RefreshAPIKeyRequest. + * Use `create(RefreshAPIKeyRequestSchema)` to create a new message. + */ +export const RefreshAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 5); /** * @generated from message apikeys.RefreshAPIKeyResponse */ -export class RefreshAPIKeyResponse extends Message { +export type RefreshAPIKeyResponse = Message<"apikeys.RefreshAPIKeyResponse"> & { /** * Refreshing the API key will return the same response as CreateAPIKey, as * it is basically the a new Key, just under the same UUID and reusing the @@ -396,121 +226,61 @@ export class RefreshAPIKeyResponse extends Message { * @generated from field: apikeys.CreateAPIKeyResponse response = 1; */ response?: CreateAPIKeyResponse; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.RefreshAPIKeyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "response", kind: "message", T: CreateAPIKeyResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RefreshAPIKeyResponse { - return new RefreshAPIKeyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RefreshAPIKeyResponse { - return new RefreshAPIKeyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RefreshAPIKeyResponse { - return new RefreshAPIKeyResponse().fromJsonString(jsonString, options); - } - - static equals(a: RefreshAPIKeyResponse | PlainMessage | undefined, b: RefreshAPIKeyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RefreshAPIKeyResponse, a, b); - } -} +/** + * Describes the message apikeys.RefreshAPIKeyResponse. + * Use `create(RefreshAPIKeyResponseSchema)` to create a new message. + */ +export const RefreshAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 6); /** * @generated from message apikeys.GetAPIKeyRequest */ -export class GetAPIKeyRequest extends Message { +export type GetAPIKeyRequest = Message<"apikeys.GetAPIKeyRequest"> & { /** * The UUID of the API Key to get * * @generated from field: bytes uuid = 1; */ - uuid = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.GetAPIKeyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + uuid: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): GetAPIKeyRequest { - return new GetAPIKeyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAPIKeyRequest { - return new GetAPIKeyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAPIKeyRequest { - return new GetAPIKeyRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAPIKeyRequest | PlainMessage | undefined, b: GetAPIKeyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAPIKeyRequest, a, b); - } -} +/** + * Describes the message apikeys.GetAPIKeyRequest. + * Use `create(GetAPIKeyRequestSchema)` to create a new message. + */ +export const GetAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 7); /** * @generated from message apikeys.GetAPIKeyResponse */ -export class GetAPIKeyResponse extends Message { +export type GetAPIKeyResponse = Message<"apikeys.GetAPIKeyResponse"> & { /** * @generated from field: apikeys.APIKey key = 1; */ key?: APIKey; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.GetAPIKeyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "message", T: APIKey }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAPIKeyResponse { - return new GetAPIKeyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAPIKeyResponse { - return new GetAPIKeyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAPIKeyResponse { - return new GetAPIKeyResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAPIKeyResponse | PlainMessage | undefined, b: GetAPIKeyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAPIKeyResponse, a, b); - } -} +/** + * Describes the message apikeys.GetAPIKeyResponse. + * Use `create(GetAPIKeyResponseSchema)` to create a new message. + */ +export const GetAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 8); /** * @generated from message apikeys.UpdateAPIKeyRequest */ -export class UpdateAPIKeyRequest extends Message { +export type UpdateAPIKeyRequest = Message<"apikeys.UpdateAPIKeyRequest"> & { /** * The UUID of the API key to update * * @generated from field: bytes uuid = 1; */ - uuid = new Uint8Array(0); + uuid: Uint8Array; /** * New properties to update @@ -518,289 +288,259 @@ export class UpdateAPIKeyRequest extends Message { * @generated from field: apikeys.APIKeyProperties properties = 2; */ properties?: APIKeyProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.UpdateAPIKeyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "properties", kind: "message", T: APIKeyProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAPIKeyRequest { - return new UpdateAPIKeyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAPIKeyRequest { - return new UpdateAPIKeyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAPIKeyRequest { - return new UpdateAPIKeyRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAPIKeyRequest | PlainMessage | undefined, b: UpdateAPIKeyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAPIKeyRequest, a, b); - } -} +/** + * Describes the message apikeys.UpdateAPIKeyRequest. + * Use `create(UpdateAPIKeyRequestSchema)` to create a new message. + */ +export const UpdateAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 9); /** * @generated from message apikeys.UpdateAPIKeyResponse */ -export class UpdateAPIKeyResponse extends Message { +export type UpdateAPIKeyResponse = Message<"apikeys.UpdateAPIKeyResponse"> & { /** * The updated API key * * @generated from field: apikeys.APIKey key = 1; */ key?: APIKey; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.UpdateAPIKeyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "message", T: APIKey }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAPIKeyResponse { - return new UpdateAPIKeyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAPIKeyResponse { - return new UpdateAPIKeyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAPIKeyResponse { - return new UpdateAPIKeyResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAPIKeyResponse | PlainMessage | undefined, b: UpdateAPIKeyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAPIKeyResponse, a, b); - } -} +/** + * Describes the message apikeys.UpdateAPIKeyResponse. + * Use `create(UpdateAPIKeyResponseSchema)` to create a new message. + */ +export const UpdateAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 10); /** * @generated from message apikeys.ListAPIKeysRequest */ -export class ListAPIKeysRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +export type ListAPIKeysRequest = Message<"apikeys.ListAPIKeysRequest"> & { +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.ListAPIKeysRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAPIKeysRequest { - return new ListAPIKeysRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAPIKeysRequest { - return new ListAPIKeysRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAPIKeysRequest { - return new ListAPIKeysRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListAPIKeysRequest | PlainMessage | undefined, b: ListAPIKeysRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAPIKeysRequest, a, b); - } -} +/** + * Describes the message apikeys.ListAPIKeysRequest. + * Use `create(ListAPIKeysRequestSchema)` to create a new message. + */ +export const ListAPIKeysRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 11); /** * @generated from message apikeys.ListAPIKeysResponse */ -export class ListAPIKeysResponse extends Message { +export type ListAPIKeysResponse = Message<"apikeys.ListAPIKeysResponse"> & { /** * @generated from field: repeated apikeys.APIKey keys = 1; */ - keys: APIKey[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.ListAPIKeysResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "keys", kind: "message", T: APIKey, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAPIKeysResponse { - return new ListAPIKeysResponse().fromBinary(bytes, options); - } + keys: APIKey[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ListAPIKeysResponse { - return new ListAPIKeysResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAPIKeysResponse { - return new ListAPIKeysResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListAPIKeysResponse | PlainMessage | undefined, b: ListAPIKeysResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAPIKeysResponse, a, b); - } -} +/** + * Describes the message apikeys.ListAPIKeysResponse. + * Use `create(ListAPIKeysResponseSchema)` to create a new message. + */ +export const ListAPIKeysResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 12); /** * @generated from message apikeys.DeleteAPIKeyRequest */ -export class DeleteAPIKeyRequest extends Message { +export type DeleteAPIKeyRequest = Message<"apikeys.DeleteAPIKeyRequest"> & { /** * The UUID of the API key to delete * * @generated from field: bytes uuid = 1; */ - uuid = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.DeleteAPIKeyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAPIKeyRequest { - return new DeleteAPIKeyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAPIKeyRequest { - return new DeleteAPIKeyRequest().fromJson(jsonValue, options); - } + uuid: Uint8Array; +}; - static fromJsonString(jsonString: string, options?: Partial): DeleteAPIKeyRequest { - return new DeleteAPIKeyRequest().fromJsonString(jsonString, options); - } - - static equals(a: DeleteAPIKeyRequest | PlainMessage | undefined, b: DeleteAPIKeyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteAPIKeyRequest, a, b); - } -} +/** + * Describes the message apikeys.DeleteAPIKeyRequest. + * Use `create(DeleteAPIKeyRequestSchema)` to create a new message. + */ +export const DeleteAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 13); /** * @generated from message apikeys.DeleteAPIKeyResponse */ -export class DeleteAPIKeyResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.DeleteAPIKeyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAPIKeyResponse { - return new DeleteAPIKeyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAPIKeyResponse { - return new DeleteAPIKeyResponse().fromJson(jsonValue, options); - } +export type DeleteAPIKeyResponse = Message<"apikeys.DeleteAPIKeyResponse"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): DeleteAPIKeyResponse { - return new DeleteAPIKeyResponse().fromJsonString(jsonString, options); - } - - static equals(a: DeleteAPIKeyResponse | PlainMessage | undefined, b: DeleteAPIKeyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteAPIKeyResponse, a, b); - } -} +/** + * Describes the message apikeys.DeleteAPIKeyResponse. + * Use `create(DeleteAPIKeyResponseSchema)` to create a new message. + */ +export const DeleteAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 14); /** * @generated from message apikeys.ExchangeKeyForTokenRequest */ -export class ExchangeKeyForTokenRequest extends Message { +export type ExchangeKeyForTokenRequest = Message<"apikeys.ExchangeKeyForTokenRequest"> & { /** * The API Key that you want to exchange for an Oauth access token * * @generated from field: string apiKey = 1; */ - apiKey = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.ExchangeKeyForTokenRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "apiKey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + apiKey: string; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): ExchangeKeyForTokenRequest { - return new ExchangeKeyForTokenRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExchangeKeyForTokenRequest { - return new ExchangeKeyForTokenRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExchangeKeyForTokenRequest { - return new ExchangeKeyForTokenRequest().fromJsonString(jsonString, options); - } - - static equals(a: ExchangeKeyForTokenRequest | PlainMessage | undefined, b: ExchangeKeyForTokenRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ExchangeKeyForTokenRequest, a, b); - } -} +/** + * Describes the message apikeys.ExchangeKeyForTokenRequest. + * Use `create(ExchangeKeyForTokenRequestSchema)` to create a new message. + */ +export const ExchangeKeyForTokenRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 15); /** * @generated from message apikeys.ExchangeKeyForTokenResponse */ -export class ExchangeKeyForTokenResponse extends Message { +export type ExchangeKeyForTokenResponse = Message<"apikeys.ExchangeKeyForTokenResponse"> & { /** * The access token that can now be use to authenticate to Overmind and its * APIs * * @generated from field: string accessToken = 1; */ - accessToken = ""; + accessToken: string; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +/** + * Describes the message apikeys.ExchangeKeyForTokenResponse. + * Use `create(ExchangeKeyForTokenResponseSchema)` to create a new message. + */ +export const ExchangeKeyForTokenResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_apikeys, 16); - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "apikeys.ExchangeKeyForTokenResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "accessToken", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); +/** + * @generated from enum apikeys.KeyStatus + */ +export enum KeyStatus { + /** + * @generated from enum value: KEY_STATUS_UNKNOWN = 0; + */ + UNKNOWN = 0, - static fromBinary(bytes: Uint8Array, options?: Partial): ExchangeKeyForTokenResponse { - return new ExchangeKeyForTokenResponse().fromBinary(bytes, options); - } + /** + * This means the key has been created but we have not yet received the + * callback from Auth0 which allows us to fetch the access token + * + * @generated from enum value: KEY_STATUS_UNAUTHORIZED = 1; + */ + UNAUTHORIZED = 1, - static fromJson(jsonValue: JsonValue, options?: Partial): ExchangeKeyForTokenResponse { - return new ExchangeKeyForTokenResponse().fromJson(jsonValue, options); - } + /** + * Key is ready for use + * + * @generated from enum value: KEY_STATUS_READY = 2; + */ + READY = 2, - static fromJsonString(jsonString: string, options?: Partial): ExchangeKeyForTokenResponse { - return new ExchangeKeyForTokenResponse().fromJsonString(jsonString, options); - } + /** + * There was an error getting the access token from Auth0 + * + * @generated from enum value: KEY_STATUS_ERROR = 3; + */ + ERROR = 3, - static equals(a: ExchangeKeyForTokenResponse | PlainMessage | undefined, b: ExchangeKeyForTokenResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ExchangeKeyForTokenResponse, a, b); - } + /** + * The API key has been revoked + * + * @generated from enum value: KEY_STATUS_REVOKED = 4; + */ + REVOKED = 4, } +/** + * Describes the enum apikeys.KeyStatus. + */ +export const KeyStatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_apikeys, 0); + +/** + * The API Key Service is designed to give services like CI, webhooks etc. a + * simple non-rotating secret that they can use when calling out to Overmind. + * In order to keep the auth as simple as possible, these API keys don't + * actually confer any access themselves, they need to be exchanged for an Oauth + * access token using this API. The server will then return the client a valid + * token that they can then use for subsequent requests + * + * + * @generated from service apikeys.ApiKeyService + */ +export const ApiKeyService: GenService<{ + /** + * Creates an API key, pending access token generation from Auth0. The key + * cannot be used until the user has been redirected to the given URL which + * allows Auth0 to actually generate an access token + * + * @generated from rpc apikeys.ApiKeyService.CreateAPIKey + */ + createAPIKey: { + methodKind: "unary"; + input: typeof CreateAPIKeyRequestSchema; + output: typeof CreateAPIKeyResponseSchema; + }, + /** + * Refreshes an API key, returning a new one with the same metadata and + * properties. The response will be the same as CreateAPIKey, and requires + * the same redirect handling to authenticate the new key. + * + * @generated from rpc apikeys.ApiKeyService.RefreshAPIKey + */ + refreshAPIKey: { + methodKind: "unary"; + input: typeof RefreshAPIKeyRequestSchema; + output: typeof RefreshAPIKeyResponseSchema; + }, + /** + * @generated from rpc apikeys.ApiKeyService.GetAPIKey + */ + getAPIKey: { + methodKind: "unary"; + input: typeof GetAPIKeyRequestSchema; + output: typeof GetAPIKeyResponseSchema; + }, + /** + * @generated from rpc apikeys.ApiKeyService.UpdateAPIKey + */ + updateAPIKey: { + methodKind: "unary"; + input: typeof UpdateAPIKeyRequestSchema; + output: typeof UpdateAPIKeyResponseSchema; + }, + /** + * @generated from rpc apikeys.ApiKeyService.ListAPIKeys + */ + listAPIKeys: { + methodKind: "unary"; + input: typeof ListAPIKeysRequestSchema; + output: typeof ListAPIKeysResponseSchema; + }, + /** + * @generated from rpc apikeys.ApiKeyService.DeleteAPIKey + */ + deleteAPIKey: { + methodKind: "unary"; + input: typeof DeleteAPIKeyRequestSchema; + output: typeof DeleteAPIKeyResponseSchema; + }, + /** + * Exchanges an Overmind API key for an Oauth access token. That token can + * then be used to access all other Overmind APIs + * + * @generated from rpc apikeys.ApiKeyService.ExchangeKeyForToken + */ + exchangeKeyForToken: { + methodKind: "unary"; + input: typeof ExchangeKeyForTokenRequestSchema; + output: typeof ExchangeKeyForTokenResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_apikeys, 0); + diff --git a/src/__generated__/auth0support-Auth0Support_connectquery.ts b/src/__generated__/auth0support-Auth0Support_connectquery.ts index 30a74aa..12bbf48 100644 --- a/src/__generated__/auth0support-Auth0Support_connectquery.ts +++ b/src/__generated__/auth0support-Auth0Support_connectquery.ts @@ -1,27 +1,15 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file auth0support.proto (package auth0support, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { Auth0CreateUserRequest, Auth0CreateUserResponse } from "./auth0support_pb.ts"; -import { AdminKeepaliveSourcesRequest, KeepaliveSourcesResponse } from "./account_pb.ts"; +import { Auth0Support } from "./auth0support_pb"; /** * create a new user on first login * * @generated from rpc auth0support.Auth0Support.CreateUser */ -export const createUser = { - localName: "createUser", - name: "CreateUser", - kind: MethodKind.Unary, - I: Auth0CreateUserRequest, - O: Auth0CreateUserResponse, - service: { - typeName: "auth0support.Auth0Support" - } -} as const; +export const createUser = Auth0Support.method.createUser; /** * Updates sources to keep them running in the background. This is called on @@ -30,13 +18,4 @@ export const createUser = { * * @generated from rpc auth0support.Auth0Support.KeepaliveSources */ -export const keepaliveSources = { - localName: "keepaliveSources", - name: "KeepaliveSources", - kind: MethodKind.Unary, - I: AdminKeepaliveSourcesRequest, - O: KeepaliveSourcesResponse, - service: { - typeName: "auth0support.Auth0Support" - } -} as const; +export const keepaliveSources = Auth0Support.method.keepaliveSources; diff --git a/src/__generated__/auth0support_connect.ts b/src/__generated__/auth0support_connect.ts deleted file mode 100644 index 04ab190..0000000 --- a/src/__generated__/auth0support_connect.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file auth0support.proto (package auth0support, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { Auth0CreateUserRequest, Auth0CreateUserResponse } from "./auth0support_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; -import { AdminKeepaliveSourcesRequest, KeepaliveSourcesResponse } from "./account_pb.ts"; - -/** - * The auth0 support service contains the endpoints used by Auth0 Actions to - * post updates and receive additional information into Auth0. - * - * @generated from service auth0support.Auth0Support - */ -export const Auth0Support = { - typeName: "auth0support.Auth0Support", - methods: { - /** - * create a new user on first login - * - * @generated from rpc auth0support.Auth0Support.CreateUser - */ - createUser: { - name: "CreateUser", - I: Auth0CreateUserRequest, - O: Auth0CreateUserResponse, - kind: MethodKind.Unary, - }, - /** - * Updates sources to keep them running in the background. This is called on - * login by auth0 to give us a chance to boot up sources while the app is - * loading. - * - * @generated from rpc auth0support.Auth0Support.KeepaliveSources - */ - keepaliveSources: { - name: "KeepaliveSources", - I: AdminKeepaliveSourcesRequest, - O: KeepaliveSourcesResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/auth0support_pb.ts b/src/__generated__/auth0support_pb.ts index e8c0a18..ce3dd26 100644 --- a/src/__generated__/auth0support_pb.ts +++ b/src/__generated__/auth0support_pb.ts @@ -1,28 +1,37 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file auth0support.proto (package auth0support, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { AdminKeepaliveSourcesRequestSchema, KeepaliveSourcesResponseSchema } from "./account_pb"; +import { file_account } from "./account_pb"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file auth0support.proto. + */ +export const file_auth0support: GenFile = /*@__PURE__*/ + fileDesc("ChJhdXRoMHN1cHBvcnQucHJvdG8SDGF1dGgwc3VwcG9ydCKFAQoWQXV0aDBDcmVhdGVVc2VyUmVxdWVzdBIPCgd1c2VyX2lkGAEgASgJEg0KBWVtYWlsGAIgASgJEgwKBG5hbWUYAyABKAkSFgoOZW1haWxfdmVyaWZpZWQYBCABKAgSEgoKZmlyc3RfbmFtZRgFIAEoCRIRCglsYXN0X25hbWUYBiABKAkiKQoXQXV0aDBDcmVhdGVVc2VyUmVzcG9uc2USDgoGb3JnX2lkGAEgASgJMscBCgxBdXRoMFN1cHBvcnQSWQoKQ3JlYXRlVXNlchIkLmF1dGgwc3VwcG9ydC5BdXRoMENyZWF0ZVVzZXJSZXF1ZXN0GiUuYXV0aDBzdXBwb3J0LkF1dGgwQ3JlYXRlVXNlclJlc3BvbnNlElwKEEtlZXBhbGl2ZVNvdXJjZXMSJS5hY2NvdW50LkFkbWluS2VlcGFsaXZlU291cmNlc1JlcXVlc3QaIS5hY2NvdW50LktlZXBhbGl2ZVNvdXJjZXNSZXNwb25zZUIkWiJnaXRodWIuY29tL292ZXJtaW5kdGVjaC9zZHAtZ287c2RwYgZwcm90bzM", [file_google_protobuf_struct, file_google_protobuf_timestamp, file_account]); /** * @generated from message auth0support.Auth0CreateUserRequest */ -export class Auth0CreateUserRequest extends Message { +export type Auth0CreateUserRequest = Message<"auth0support.Auth0CreateUserRequest"> & { /** * The Auth0 User ID * * @generated from field: string user_id = 1; */ - userId = ""; + userId: string; /** * The user's email address * * @generated from field: string email = 2; */ - email = ""; + email: string; /** * The user's full name. This will be split and stored as first_name and @@ -32,96 +41,83 @@ export class Auth0CreateUserRequest extends Message { * * @generated from field: string name = 3; */ - name = ""; + name: string; /** * Whether the user's email address has been verified * * @generated from field: bool email_verified = 4; */ - emailVerified = false; + emailVerified: boolean; /** * The user's first name * * @generated from field: string first_name = 5; */ - firstName = ""; + firstName: string; /** * The user's last name * * @generated from field: string last_name = 6; */ - lastName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "auth0support.Auth0CreateUserRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Auth0CreateUserRequest { - return new Auth0CreateUserRequest().fromBinary(bytes, options); - } + lastName: string; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): Auth0CreateUserRequest { - return new Auth0CreateUserRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Auth0CreateUserRequest { - return new Auth0CreateUserRequest().fromJsonString(jsonString, options); - } - - static equals(a: Auth0CreateUserRequest | PlainMessage | undefined, b: Auth0CreateUserRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(Auth0CreateUserRequest, a, b); - } -} +/** + * Describes the message auth0support.Auth0CreateUserRequest. + * Use `create(Auth0CreateUserRequestSchema)` to create a new message. + */ +export const Auth0CreateUserRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_auth0support, 0); /** * @generated from message auth0support.Auth0CreateUserResponse */ -export class Auth0CreateUserResponse extends Message { +export type Auth0CreateUserResponse = Message<"auth0support.Auth0CreateUserResponse"> & { /** * @generated from field: string org_id = 1; */ - orgId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "auth0support.Auth0CreateUserResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + orgId: string; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): Auth0CreateUserResponse { - return new Auth0CreateUserResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Auth0CreateUserResponse { - return new Auth0CreateUserResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Auth0CreateUserResponse { - return new Auth0CreateUserResponse().fromJsonString(jsonString, options); - } +/** + * Describes the message auth0support.Auth0CreateUserResponse. + * Use `create(Auth0CreateUserResponseSchema)` to create a new message. + */ +export const Auth0CreateUserResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_auth0support, 1); - static equals(a: Auth0CreateUserResponse | PlainMessage | undefined, b: Auth0CreateUserResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(Auth0CreateUserResponse, a, b); - } -} +/** + * The auth0 support service contains the endpoints used by Auth0 Actions to + * post updates and receive additional information into Auth0. + * + * @generated from service auth0support.Auth0Support + */ +export const Auth0Support: GenService<{ + /** + * create a new user on first login + * + * @generated from rpc auth0support.Auth0Support.CreateUser + */ + createUser: { + methodKind: "unary"; + input: typeof Auth0CreateUserRequestSchema; + output: typeof Auth0CreateUserResponseSchema; + }, + /** + * Updates sources to keep them running in the background. This is called on + * login by auth0 to give us a chance to boot up sources while the app is + * loading. + * + * @generated from rpc auth0support.Auth0Support.KeepaliveSources + */ + keepaliveSources: { + methodKind: "unary"; + input: typeof AdminKeepaliveSourcesRequestSchema; + output: typeof KeepaliveSourcesResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_auth0support, 0); diff --git a/src/__generated__/bookmarks-BookmarksService_connectquery.ts b/src/__generated__/bookmarks-BookmarksService_connectquery.ts index 06f8ac0..88e231a 100644 --- a/src/__generated__/bookmarks-BookmarksService_connectquery.ts +++ b/src/__generated__/bookmarks-BookmarksService_connectquery.ts @@ -1,99 +1,43 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file bookmarks.proto (package bookmarks, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { CreateBookmarkRequest, CreateBookmarkResponse, DeleteBookmarkRequest, DeleteBookmarkResponse, GetAffectedBookmarksRequest, GetAffectedBookmarksResponse, GetBookmarkRequest, GetBookmarkResponse, ListBookmarkResponse, ListBookmarksRequest, UpdateBookmarkRequest, UpdateBookmarkResponse } from "./bookmarks_pb.ts"; +import { BookmarksService } from "./bookmarks_pb"; /** * ListBookmarks returns all bookmarks of the current user. note that this does not include the actual bookmark data, use GetBookmark for that * * @generated from rpc bookmarks.BookmarksService.ListBookmarks */ -export const listBookmarks = { - localName: "listBookmarks", - name: "ListBookmarks", - kind: MethodKind.Unary, - I: ListBookmarksRequest, - O: ListBookmarkResponse, - service: { - typeName: "bookmarks.BookmarksService" - } -} as const; +export const listBookmarks = BookmarksService.method.listBookmarks; /** * CreateBookmark creates a new bookmark * * @generated from rpc bookmarks.BookmarksService.CreateBookmark */ -export const createBookmark = { - localName: "createBookmark", - name: "CreateBookmark", - kind: MethodKind.Unary, - I: CreateBookmarkRequest, - O: CreateBookmarkResponse, - service: { - typeName: "bookmarks.BookmarksService" - } -} as const; +export const createBookmark = BookmarksService.method.createBookmark; /** * GetBookmark returns the bookmark with the given UUID. This can also return snapshots as bookmarks and will strip the stored items from the response. * * @generated from rpc bookmarks.BookmarksService.GetBookmark */ -export const getBookmark = { - localName: "getBookmark", - name: "GetBookmark", - kind: MethodKind.Unary, - I: GetBookmarkRequest, - O: GetBookmarkResponse, - service: { - typeName: "bookmarks.BookmarksService" - } -} as const; +export const getBookmark = BookmarksService.method.getBookmark; /** * @generated from rpc bookmarks.BookmarksService.UpdateBookmark */ -export const updateBookmark = { - localName: "updateBookmark", - name: "UpdateBookmark", - kind: MethodKind.Unary, - I: UpdateBookmarkRequest, - O: UpdateBookmarkResponse, - service: { - typeName: "bookmarks.BookmarksService" - } -} as const; +export const updateBookmark = BookmarksService.method.updateBookmark; /** * @generated from rpc bookmarks.BookmarksService.DeleteBookmark */ -export const deleteBookmark = { - localName: "deleteBookmark", - name: "DeleteBookmark", - kind: MethodKind.Unary, - I: DeleteBookmarkRequest, - O: DeleteBookmarkResponse, - service: { - typeName: "bookmarks.BookmarksService" - } -} as const; +export const deleteBookmark = BookmarksService.method.deleteBookmark; /** * a helper method to find all affected apps for a given blast radius snapshot * * @generated from rpc bookmarks.BookmarksService.GetAffectedBookmarks */ -export const getAffectedBookmarks = { - localName: "getAffectedBookmarks", - name: "GetAffectedBookmarks", - kind: MethodKind.Unary, - I: GetAffectedBookmarksRequest, - O: GetAffectedBookmarksResponse, - service: { - typeName: "bookmarks.BookmarksService" - } -} as const; +export const getAffectedBookmarks = BookmarksService.method.getAffectedBookmarks; diff --git a/src/__generated__/bookmarks_connect.ts b/src/__generated__/bookmarks_connect.ts deleted file mode 100644 index b549ab4..0000000 --- a/src/__generated__/bookmarks_connect.ts +++ /dev/null @@ -1,79 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file bookmarks.proto (package bookmarks, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CreateBookmarkRequest, CreateBookmarkResponse, DeleteBookmarkRequest, DeleteBookmarkResponse, GetAffectedBookmarksRequest, GetAffectedBookmarksResponse, GetBookmarkRequest, GetBookmarkResponse, ListBookmarkResponse, ListBookmarksRequest, UpdateBookmarkRequest, UpdateBookmarkResponse } from "./bookmarks_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * @generated from service bookmarks.BookmarksService - */ -export const BookmarksService = { - typeName: "bookmarks.BookmarksService", - methods: { - /** - * ListBookmarks returns all bookmarks of the current user. note that this does not include the actual bookmark data, use GetBookmark for that - * - * @generated from rpc bookmarks.BookmarksService.ListBookmarks - */ - listBookmarks: { - name: "ListBookmarks", - I: ListBookmarksRequest, - O: ListBookmarkResponse, - kind: MethodKind.Unary, - }, - /** - * CreateBookmark creates a new bookmark - * - * @generated from rpc bookmarks.BookmarksService.CreateBookmark - */ - createBookmark: { - name: "CreateBookmark", - I: CreateBookmarkRequest, - O: CreateBookmarkResponse, - kind: MethodKind.Unary, - }, - /** - * GetBookmark returns the bookmark with the given UUID. This can also return snapshots as bookmarks and will strip the stored items from the response. - * - * @generated from rpc bookmarks.BookmarksService.GetBookmark - */ - getBookmark: { - name: "GetBookmark", - I: GetBookmarkRequest, - O: GetBookmarkResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc bookmarks.BookmarksService.UpdateBookmark - */ - updateBookmark: { - name: "UpdateBookmark", - I: UpdateBookmarkRequest, - O: UpdateBookmarkResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc bookmarks.BookmarksService.DeleteBookmark - */ - deleteBookmark: { - name: "DeleteBookmark", - I: DeleteBookmarkRequest, - O: DeleteBookmarkResponse, - kind: MethodKind.Unary, - }, - /** - * a helper method to find all affected apps for a given blast radius snapshot - * - * @generated from rpc bookmarks.BookmarksService.GetAffectedBookmarks - */ - getAffectedBookmarks: { - name: "GetAffectedBookmarks", - I: GetAffectedBookmarksRequest, - O: GetAffectedBookmarksResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/bookmarks_pb.ts b/src/__generated__/bookmarks_pb.ts index 8ff9c06..12d11a2 100644 --- a/src/__generated__/bookmarks_pb.ts +++ b/src/__generated__/bookmarks_pb.ts @@ -1,18 +1,27 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file bookmarks.proto (package bookmarks, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Query, Reference } from "./items_pb.ts"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { Query, Reference } from "./items_pb"; +import { file_items } from "./items_pb"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file bookmarks.proto. + */ +export const file_bookmarks: GenFile = /*@__PURE__*/ + fileDesc("Cg9ib29rbWFya3MucHJvdG8SCWJvb2ttYXJrcyJsCghCb29rbWFyaxItCghtZXRhZGF0YRgBIAEoCzIbLmJvb2ttYXJrcy5Cb29rbWFya01ldGFkYXRhEjEKCnByb3BlcnRpZXMYAiABKAsyHS5ib29rbWFya3MuQm9va21hcmtQcm9wZXJ0aWVzIoUBChJCb29rbWFya1Byb3BlcnRpZXMSDAoEbmFtZRgBIAEoCRITCgtkZXNjcmlwdGlvbhgCIAEoCRIXCgdxdWVyaWVzGAMgAygLMgYuUXVlcnkSIQoNZXhjbHVkZWRJdGVtcxgEIAMoCzIKLlJlZmVyZW5jZRIQCghpc1N5c3RlbRgFIAEoCCJNChBCb29rbWFya01ldGFkYXRhEgwKBFVVSUQYASABKAwSKwoHY3JlYXRlZBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiFgoUTGlzdEJvb2ttYXJrc1JlcXVlc3QiPgoUTGlzdEJvb2ttYXJrUmVzcG9uc2USJgoJYm9va21hcmtzGAMgAygLMhMuYm9va21hcmtzLkJvb2ttYXJrIkoKFUNyZWF0ZUJvb2ttYXJrUmVxdWVzdBIxCgpwcm9wZXJ0aWVzGAEgASgLMh0uYm9va21hcmtzLkJvb2ttYXJrUHJvcGVydGllcyI/ChZDcmVhdGVCb29rbWFya1Jlc3BvbnNlEiUKCGJvb2ttYXJrGAEgASgLMhMuYm9va21hcmtzLkJvb2ttYXJrIiIKEkdldEJvb2ttYXJrUmVxdWVzdBIMCgRVVUlEGAEgASgMIjwKE0dldEJvb2ttYXJrUmVzcG9uc2USJQoIYm9va21hcmsYASABKAsyEy5ib29rbWFya3MuQm9va21hcmsiWAoVVXBkYXRlQm9va21hcmtSZXF1ZXN0EgwKBFVVSUQYASABKAwSMQoKcHJvcGVydGllcxgCIAEoCzIdLmJvb2ttYXJrcy5Cb29rbWFya1Byb3BlcnRpZXMiPwoWVXBkYXRlQm9va21hcmtSZXNwb25zZRIlCghib29rbWFyaxgDIAEoCzITLmJvb2ttYXJrcy5Cb29rbWFyayIlChVEZWxldGVCb29rbWFya1JlcXVlc3QSDAoEVVVJRBgBIAEoDCIYChZEZWxldGVCb29rbWFya1Jlc3BvbnNlIkoKG0dldEFmZmVjdGVkQm9va21hcmtzUmVxdWVzdBIUCgxzbmFwc2hvdFVVSUQYASABKAwSFQoNYm9va21hcmtVVUlEcxgCIAMoDCI1ChxHZXRBZmZlY3RlZEJvb2ttYXJrc1Jlc3BvbnNlEhUKDWJvb2ttYXJrVVVJRHMYASADKAwyoQQKEEJvb2ttYXJrc1NlcnZpY2USUQoNTGlzdEJvb2ttYXJrcxIfLmJvb2ttYXJrcy5MaXN0Qm9va21hcmtzUmVxdWVzdBofLmJvb2ttYXJrcy5MaXN0Qm9va21hcmtSZXNwb25zZRJVCg5DcmVhdGVCb29rbWFyaxIgLmJvb2ttYXJrcy5DcmVhdGVCb29rbWFya1JlcXVlc3QaIS5ib29rbWFya3MuQ3JlYXRlQm9va21hcmtSZXNwb25zZRJMCgtHZXRCb29rbWFyaxIdLmJvb2ttYXJrcy5HZXRCb29rbWFya1JlcXVlc3QaHi5ib29rbWFya3MuR2V0Qm9va21hcmtSZXNwb25zZRJVCg5VcGRhdGVCb29rbWFyaxIgLmJvb2ttYXJrcy5VcGRhdGVCb29rbWFya1JlcXVlc3QaIS5ib29rbWFya3MuVXBkYXRlQm9va21hcmtSZXNwb25zZRJVCg5EZWxldGVCb29rbWFyaxIgLmJvb2ttYXJrcy5EZWxldGVCb29rbWFya1JlcXVlc3QaIS5ib29rbWFya3MuRGVsZXRlQm9va21hcmtSZXNwb25zZRJnChRHZXRBZmZlY3RlZEJvb2ttYXJrcxImLmJvb2ttYXJrcy5HZXRBZmZlY3RlZEJvb2ttYXJrc1JlcXVlc3QaJy5ib29rbWFya3MuR2V0QWZmZWN0ZWRCb29rbWFya3NSZXNwb25zZUIkWiJnaXRodWIuY29tL292ZXJtaW5kdGVjaC9zZHAtZ287c2RwYgZwcm90bzM", [file_google_protobuf_timestamp, file_items]); /** * a complete Bookmark with user-supplied and machine-supplied values * * @generated from message bookmarks.Bookmark */ -export class Bookmark extends Message { +export type Bookmark = Message<"bookmarks.Bookmark"> & { /** * @generated from field: bookmarks.BookmarkMetadata metadata = 1; */ @@ -22,69 +31,48 @@ export class Bookmark extends Message { * @generated from field: bookmarks.BookmarkProperties properties = 2; */ properties?: BookmarkProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.Bookmark"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: BookmarkMetadata }, - { no: 2, name: "properties", kind: "message", T: BookmarkProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Bookmark { - return new Bookmark().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Bookmark { - return new Bookmark().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Bookmark { - return new Bookmark().fromJsonString(jsonString, options); - } - - static equals(a: Bookmark | PlainMessage | undefined, b: Bookmark | PlainMessage | undefined): boolean { - return proto3.util.equals(Bookmark, a, b); - } -} +/** + * Describes the message bookmarks.Bookmark. + * Use `create(BookmarkSchema)` to create a new message. + */ +export const BookmarkSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 0); /** * The user-editable parts of a Bookmark * * @generated from message bookmarks.BookmarkProperties */ -export class BookmarkProperties extends Message { +export type BookmarkProperties = Message<"bookmarks.BookmarkProperties"> & { /** * user supplied name of this bookmark * * @generated from field: string name = 1; */ - name = ""; + name: string; /** * user supplied description of this bookmark * * @generated from field: string description = 2; */ - description = ""; + description: string; /** * queries that make up the bookmark * * @generated from field: repeated Query queries = 3; */ - queries: Query[] = []; + queries: Query[]; /** * Items that should be excluded from the bookmark's results * * @generated from field: repeated Reference excludedItems = 4; */ - excludedItems: Reference[] = []; + excludedItems: Reference[]; /** * Whether this bookmark is a system bookmark. System bookmarks are hidden @@ -93,52 +81,28 @@ export class BookmarkProperties extends Message { * * @generated from field: bool isSystem = 5; */ - isSystem = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.BookmarkProperties"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "queries", kind: "message", T: Query, repeated: true }, - { no: 4, name: "excludedItems", kind: "message", T: Reference, repeated: true }, - { no: 5, name: "isSystem", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); + isSystem: boolean; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): BookmarkProperties { - return new BookmarkProperties().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BookmarkProperties { - return new BookmarkProperties().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BookmarkProperties { - return new BookmarkProperties().fromJsonString(jsonString, options); - } - - static equals(a: BookmarkProperties | PlainMessage | undefined, b: BookmarkProperties | PlainMessage | undefined): boolean { - return proto3.util.equals(BookmarkProperties, a, b); - } -} +/** + * Describes the message bookmarks.BookmarkProperties. + * Use `create(BookmarkPropertiesSchema)` to create a new message. + */ +export const BookmarkPropertiesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 1); /** * Descriptor for a bookmark * * @generated from message bookmarks.BookmarkMetadata */ -export class BookmarkMetadata extends Message { +export type BookmarkMetadata = Message<"bookmarks.BookmarkMetadata"> & { /** * unique id to identify this bookmark * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * timestamp when this bookmark was created @@ -146,35 +110,14 @@ export class BookmarkMetadata extends Message { * @generated from field: google.protobuf.Timestamp created = 2; */ created?: Timestamp; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.BookmarkMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "created", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BookmarkMetadata { - return new BookmarkMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BookmarkMetadata { - return new BookmarkMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BookmarkMetadata { - return new BookmarkMetadata().fromJsonString(jsonString, options); - } - - static equals(a: BookmarkMetadata | PlainMessage | undefined, b: BookmarkMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(BookmarkMetadata, a, b); - } -} +/** + * Describes the message bookmarks.BookmarkMetadata. + * Use `create(BookmarkMetadataSchema)` to create a new message. + */ +export const BookmarkMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 2); /** * list all bookmarks @@ -183,235 +126,117 @@ export class BookmarkMetadata extends Message { * * @generated from message bookmarks.ListBookmarksRequest */ -export class ListBookmarksRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +export type ListBookmarksRequest = Message<"bookmarks.ListBookmarksRequest"> & { +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.ListBookmarksRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListBookmarksRequest { - return new ListBookmarksRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListBookmarksRequest { - return new ListBookmarksRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListBookmarksRequest { - return new ListBookmarksRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListBookmarksRequest | PlainMessage | undefined, b: ListBookmarksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListBookmarksRequest, a, b); - } -} +/** + * Describes the message bookmarks.ListBookmarksRequest. + * Use `create(ListBookmarksRequestSchema)` to create a new message. + */ +export const ListBookmarksRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 3); /** * @generated from message bookmarks.ListBookmarkResponse */ -export class ListBookmarkResponse extends Message { +export type ListBookmarkResponse = Message<"bookmarks.ListBookmarkResponse"> & { /** * @generated from field: repeated bookmarks.Bookmark bookmarks = 3; */ - bookmarks: Bookmark[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + bookmarks: Bookmark[]; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.ListBookmarkResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "bookmarks", kind: "message", T: Bookmark, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListBookmarkResponse { - return new ListBookmarkResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListBookmarkResponse { - return new ListBookmarkResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListBookmarkResponse { - return new ListBookmarkResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListBookmarkResponse | PlainMessage | undefined, b: ListBookmarkResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListBookmarkResponse, a, b); - } -} +/** + * Describes the message bookmarks.ListBookmarkResponse. + * Use `create(ListBookmarkResponseSchema)` to create a new message. + */ +export const ListBookmarkResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 4); /** * creates a new bookmark * * @generated from message bookmarks.CreateBookmarkRequest */ -export class CreateBookmarkRequest extends Message { +export type CreateBookmarkRequest = Message<"bookmarks.CreateBookmarkRequest"> & { /** * @generated from field: bookmarks.BookmarkProperties properties = 1; */ properties?: BookmarkProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.CreateBookmarkRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "properties", kind: "message", T: BookmarkProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateBookmarkRequest { - return new CreateBookmarkRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateBookmarkRequest { - return new CreateBookmarkRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateBookmarkRequest { - return new CreateBookmarkRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateBookmarkRequest | PlainMessage | undefined, b: CreateBookmarkRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateBookmarkRequest, a, b); - } -} +/** + * Describes the message bookmarks.CreateBookmarkRequest. + * Use `create(CreateBookmarkRequestSchema)` to create a new message. + */ +export const CreateBookmarkRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 5); /** * @generated from message bookmarks.CreateBookmarkResponse */ -export class CreateBookmarkResponse extends Message { +export type CreateBookmarkResponse = Message<"bookmarks.CreateBookmarkResponse"> & { /** * @generated from field: bookmarks.Bookmark bookmark = 1; */ bookmark?: Bookmark; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.CreateBookmarkResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bookmark", kind: "message", T: Bookmark }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateBookmarkResponse { - return new CreateBookmarkResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateBookmarkResponse { - return new CreateBookmarkResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateBookmarkResponse { - return new CreateBookmarkResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateBookmarkResponse | PlainMessage | undefined, b: CreateBookmarkResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateBookmarkResponse, a, b); - } -} +/** + * Describes the message bookmarks.CreateBookmarkResponse. + * Use `create(CreateBookmarkResponseSchema)` to create a new message. + */ +export const CreateBookmarkResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 6); /** * gets a specific bookmark * * @generated from message bookmarks.GetBookmarkRequest */ -export class GetBookmarkRequest extends Message { +export type GetBookmarkRequest = Message<"bookmarks.GetBookmarkRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.GetBookmarkRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBookmarkRequest { - return new GetBookmarkRequest().fromBinary(bytes, options); - } + UUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): GetBookmarkRequest { - return new GetBookmarkRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBookmarkRequest { - return new GetBookmarkRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetBookmarkRequest | PlainMessage | undefined, b: GetBookmarkRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBookmarkRequest, a, b); - } -} +/** + * Describes the message bookmarks.GetBookmarkRequest. + * Use `create(GetBookmarkRequestSchema)` to create a new message. + */ +export const GetBookmarkRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 7); /** * @generated from message bookmarks.GetBookmarkResponse */ -export class GetBookmarkResponse extends Message { +export type GetBookmarkResponse = Message<"bookmarks.GetBookmarkResponse"> & { /** * @generated from field: bookmarks.Bookmark bookmark = 1; */ bookmark?: Bookmark; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.GetBookmarkResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bookmark", kind: "message", T: Bookmark }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBookmarkResponse { - return new GetBookmarkResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBookmarkResponse { - return new GetBookmarkResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBookmarkResponse { - return new GetBookmarkResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBookmarkResponse | PlainMessage | undefined, b: GetBookmarkResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBookmarkResponse, a, b); - } -} +/** + * Describes the message bookmarks.GetBookmarkResponse. + * Use `create(GetBookmarkResponseSchema)` to create a new message. + */ +export const GetBookmarkResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 8); /** * updates an existing bookmark * * @generated from message bookmarks.UpdateBookmarkRequest */ -export class UpdateBookmarkRequest extends Message { +export type UpdateBookmarkRequest = Message<"bookmarks.UpdateBookmarkRequest"> & { /** * unique id to identify this bookmark * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * new attributes for this bookmark @@ -419,228 +244,171 @@ export class UpdateBookmarkRequest extends Message { * @generated from field: bookmarks.BookmarkProperties properties = 2; */ properties?: BookmarkProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.UpdateBookmarkRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "properties", kind: "message", T: BookmarkProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateBookmarkRequest { - return new UpdateBookmarkRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateBookmarkRequest { - return new UpdateBookmarkRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateBookmarkRequest { - return new UpdateBookmarkRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateBookmarkRequest | PlainMessage | undefined, b: UpdateBookmarkRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateBookmarkRequest, a, b); - } -} +/** + * Describes the message bookmarks.UpdateBookmarkRequest. + * Use `create(UpdateBookmarkRequestSchema)` to create a new message. + */ +export const UpdateBookmarkRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 9); /** * @generated from message bookmarks.UpdateBookmarkResponse */ -export class UpdateBookmarkResponse extends Message { +export type UpdateBookmarkResponse = Message<"bookmarks.UpdateBookmarkResponse"> & { /** * @generated from field: bookmarks.Bookmark bookmark = 3; */ bookmark?: Bookmark; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.UpdateBookmarkResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "bookmark", kind: "message", T: Bookmark }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateBookmarkResponse { - return new UpdateBookmarkResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateBookmarkResponse { - return new UpdateBookmarkResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateBookmarkResponse { - return new UpdateBookmarkResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateBookmarkResponse | PlainMessage | undefined, b: UpdateBookmarkResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateBookmarkResponse, a, b); - } -} +/** + * Describes the message bookmarks.UpdateBookmarkResponse. + * Use `create(UpdateBookmarkResponseSchema)` to create a new message. + */ +export const UpdateBookmarkResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 10); /** * Delete the bookmark with the specified ID. * * @generated from message bookmarks.DeleteBookmarkRequest */ -export class DeleteBookmarkRequest extends Message { +export type DeleteBookmarkRequest = Message<"bookmarks.DeleteBookmarkRequest"> & { /** * unique id of the bookmark to delete * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.DeleteBookmarkRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteBookmarkRequest { - return new DeleteBookmarkRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteBookmarkRequest { - return new DeleteBookmarkRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteBookmarkRequest { - return new DeleteBookmarkRequest().fromJsonString(jsonString, options); - } + UUID: Uint8Array; +}; - static equals(a: DeleteBookmarkRequest | PlainMessage | undefined, b: DeleteBookmarkRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteBookmarkRequest, a, b); - } -} +/** + * Describes the message bookmarks.DeleteBookmarkRequest. + * Use `create(DeleteBookmarkRequestSchema)` to create a new message. + */ +export const DeleteBookmarkRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 11); /** * @generated from message bookmarks.DeleteBookmarkResponse */ -export class DeleteBookmarkResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.DeleteBookmarkResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteBookmarkResponse { - return new DeleteBookmarkResponse().fromBinary(bytes, options); - } +export type DeleteBookmarkResponse = Message<"bookmarks.DeleteBookmarkResponse"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteBookmarkResponse { - return new DeleteBookmarkResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteBookmarkResponse { - return new DeleteBookmarkResponse().fromJsonString(jsonString, options); - } - - static equals(a: DeleteBookmarkResponse | PlainMessage | undefined, b: DeleteBookmarkResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteBookmarkResponse, a, b); - } -} +/** + * Describes the message bookmarks.DeleteBookmarkResponse. + * Use `create(DeleteBookmarkResponseSchema)` to create a new message. + */ +export const DeleteBookmarkResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 12); /** * @generated from message bookmarks.GetAffectedBookmarksRequest */ -export class GetAffectedBookmarksRequest extends Message { +export type GetAffectedBookmarksRequest = Message<"bookmarks.GetAffectedBookmarksRequest"> & { /** * the snapshot to consider * * @generated from field: bytes snapshotUUID = 1; */ - snapshotUUID = new Uint8Array(0); + snapshotUUID: Uint8Array; /** * the bookmarks to filter * * @generated from field: repeated bytes bookmarkUUIDs = 2; */ - bookmarkUUIDs: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.GetAffectedBookmarksRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "snapshotUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "bookmarkUUIDs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAffectedBookmarksRequest { - return new GetAffectedBookmarksRequest().fromBinary(bytes, options); - } + bookmarkUUIDs: Uint8Array[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): GetAffectedBookmarksRequest { - return new GetAffectedBookmarksRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAffectedBookmarksRequest { - return new GetAffectedBookmarksRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAffectedBookmarksRequest | PlainMessage | undefined, b: GetAffectedBookmarksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAffectedBookmarksRequest, a, b); - } -} +/** + * Describes the message bookmarks.GetAffectedBookmarksRequest. + * Use `create(GetAffectedBookmarksRequestSchema)` to create a new message. + */ +export const GetAffectedBookmarksRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 13); /** * @generated from message bookmarks.GetAffectedBookmarksResponse */ -export class GetAffectedBookmarksResponse extends Message { +export type GetAffectedBookmarksResponse = Message<"bookmarks.GetAffectedBookmarksResponse"> & { /** * the bookmarks that intersected with the snapshot * * @generated from field: repeated bytes bookmarkUUIDs = 1; */ - bookmarkUUIDs: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bookmarks.GetAffectedBookmarksResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bookmarkUUIDs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAffectedBookmarksResponse { - return new GetAffectedBookmarksResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAffectedBookmarksResponse { - return new GetAffectedBookmarksResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAffectedBookmarksResponse { - return new GetAffectedBookmarksResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAffectedBookmarksResponse | PlainMessage | undefined, b: GetAffectedBookmarksResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAffectedBookmarksResponse, a, b); - } -} + bookmarkUUIDs: Uint8Array[]; +}; + +/** + * Describes the message bookmarks.GetAffectedBookmarksResponse. + * Use `create(GetAffectedBookmarksResponseSchema)` to create a new message. + */ +export const GetAffectedBookmarksResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_bookmarks, 14); + +/** + * @generated from service bookmarks.BookmarksService + */ +export const BookmarksService: GenService<{ + /** + * ListBookmarks returns all bookmarks of the current user. note that this does not include the actual bookmark data, use GetBookmark for that + * + * @generated from rpc bookmarks.BookmarksService.ListBookmarks + */ + listBookmarks: { + methodKind: "unary"; + input: typeof ListBookmarksRequestSchema; + output: typeof ListBookmarkResponseSchema; + }, + /** + * CreateBookmark creates a new bookmark + * + * @generated from rpc bookmarks.BookmarksService.CreateBookmark + */ + createBookmark: { + methodKind: "unary"; + input: typeof CreateBookmarkRequestSchema; + output: typeof CreateBookmarkResponseSchema; + }, + /** + * GetBookmark returns the bookmark with the given UUID. This can also return snapshots as bookmarks and will strip the stored items from the response. + * + * @generated from rpc bookmarks.BookmarksService.GetBookmark + */ + getBookmark: { + methodKind: "unary"; + input: typeof GetBookmarkRequestSchema; + output: typeof GetBookmarkResponseSchema; + }, + /** + * @generated from rpc bookmarks.BookmarksService.UpdateBookmark + */ + updateBookmark: { + methodKind: "unary"; + input: typeof UpdateBookmarkRequestSchema; + output: typeof UpdateBookmarkResponseSchema; + }, + /** + * @generated from rpc bookmarks.BookmarksService.DeleteBookmark + */ + deleteBookmark: { + methodKind: "unary"; + input: typeof DeleteBookmarkRequestSchema; + output: typeof DeleteBookmarkResponseSchema; + }, + /** + * a helper method to find all affected apps for a given blast radius snapshot + * + * @generated from rpc bookmarks.BookmarksService.GetAffectedBookmarks + */ + getAffectedBookmarks: { + methodKind: "unary"; + input: typeof GetAffectedBookmarksRequestSchema; + output: typeof GetAffectedBookmarksResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_bookmarks, 0); diff --git a/src/__generated__/changes-ChangesService_connectquery.ts b/src/__generated__/changes-ChangesService_connectquery.ts index 17afdc3..1893ad9 100644 --- a/src/__generated__/changes-ChangesService_connectquery.ts +++ b/src/__generated__/changes-ChangesService_connectquery.ts @@ -1,42 +1,22 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file changes.proto (package changes, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { CreateAppRequest, CreateAppResponse, CreateChangeRequest, CreateChangeResponse, CreateSimpleAppRequest, CreateSimpleAppResponse, DeleteAppRequest, DeleteAppResponse, DeleteChangeRequest, DeleteChangeResponse, GetAffectedAppsRequest, GetAffectedAppsResponse, GetAppRequest, GetAppResponse, GetAppSummariesRequest, GetAppSummariesResponse, GetAppSummaryRequest, GetAppSummaryResponse, GetChangeArchiveRequest, GetChangeArchiveResponse, GetChangeRequest, GetChangeResponse, GetChangeRisksRequest, GetChangeRisksResponse, GetChangeTimelineRequest, GetChangeTimelineResponse, GetDiffRequest, GetDiffResponse, GetOnboardingRequest, GetOnboardingResponse, ListAppChangesRequest, ListAppChangesResponse, ListAppChangesSummaryRequest, ListAppChangesSummaryResponse, ListAppsRequest, ListAppsResponse, ListChangesBySnapshotUUIDRequest, ListChangesBySnapshotUUIDResponse, ListChangesByStatusRequest, ListChangesByStatusResponse, ListChangesRequest, ListChangesResponse, ListChangingItemsSummaryRequest, ListChangingItemsSummaryResponse, ListHomeAppsRequest, ListHomeAppsResponse, ListHomeChangesRequest, ListHomeChangesResponse, PopulateChangeFiltersRequest, PopulateChangeFiltersResponse, RefreshStateRequest, RefreshStateResponse, UpdateAppRequest, UpdateAppResponse, UpdateChangeRequest, UpdateChangeResponse, UpdateOnboardingRequest, UpdateOnboardingResponse } from "./changes_pb.ts"; +import { ChangesService } from "./changes_pb"; /** * Lists all apps * * @generated from rpc changes.ChangesService.ListApps */ -export const listApps = { - localName: "listApps", - name: "ListApps", - kind: MethodKind.Unary, - I: ListAppsRequest, - O: ListAppsResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listApps = ChangesService.method.listApps; /** * Creates a new app * * @generated from rpc changes.ChangesService.CreateApp */ -export const createApp = { - localName: "createApp", - name: "CreateApp", - kind: MethodKind.Unary, - I: CreateAppRequest, - O: CreateAppResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const createApp = ChangesService.method.createApp; /** * Creates an app using just a URL as input. This automatically creates and @@ -44,224 +24,98 @@ export const createApp = { * * @generated from rpc changes.ChangesService.CreateSimpleApp */ -export const createSimpleApp = { - localName: "createSimpleApp", - name: "CreateSimpleApp", - kind: MethodKind.Unary, - I: CreateSimpleAppRequest, - O: CreateSimpleAppResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const createSimpleApp = ChangesService.method.createSimpleApp; /** * Gets the details of an existing app * * @generated from rpc changes.ChangesService.GetApp */ -export const getApp = { - localName: "getApp", - name: "GetApp", - kind: MethodKind.Unary, - I: GetAppRequest, - O: GetAppResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getApp = ChangesService.method.getApp; /** * Updates an existing app * * @generated from rpc changes.ChangesService.UpdateApp */ -export const updateApp = { - localName: "updateApp", - name: "UpdateApp", - kind: MethodKind.Unary, - I: UpdateAppRequest, - O: UpdateAppResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const updateApp = ChangesService.method.updateApp; /** * Deletes an app * * @generated from rpc changes.ChangesService.DeleteApp */ -export const deleteApp = { - localName: "deleteApp", - name: "DeleteApp", - kind: MethodKind.Unary, - I: DeleteAppRequest, - O: DeleteAppResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const deleteApp = ChangesService.method.deleteApp; /** * Lists all changes * * @generated from rpc changes.ChangesService.ListChanges */ -export const listChanges = { - localName: "listChanges", - name: "ListChanges", - kind: MethodKind.Unary, - I: ListChangesRequest, - O: ListChangesResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listChanges = ChangesService.method.listChanges; /** * list all changes in a specific status * * @generated from rpc changes.ChangesService.ListChangesByStatus */ -export const listChangesByStatus = { - localName: "listChangesByStatus", - name: "ListChangesByStatus", - kind: MethodKind.Unary, - I: ListChangesByStatusRequest, - O: ListChangesByStatusResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listChangesByStatus = ChangesService.method.listChangesByStatus; /** * Creates a new change * * @generated from rpc changes.ChangesService.CreateChange */ -export const createChange = { - localName: "createChange", - name: "CreateChange", - kind: MethodKind.Unary, - I: CreateChangeRequest, - O: CreateChangeResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const createChange = ChangesService.method.createChange; /** * Gets the details of an existing change * * @generated from rpc changes.ChangesService.GetChange */ -export const getChange = { - localName: "getChange", - name: "GetChange", - kind: MethodKind.Unary, - I: GetChangeRequest, - O: GetChangeResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getChange = ChangesService.method.getChange; /** * Gets the risks and risk calculation status of an existing change * * @generated from rpc changes.ChangesService.GetChangeRisks */ -export const getChangeRisks = { - localName: "getChangeRisks", - name: "GetChangeRisks", - kind: MethodKind.Unary, - I: GetChangeRisksRequest, - O: GetChangeRisksResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getChangeRisks = ChangesService.method.getChangeRisks; /** * Gets the all data of an existing change for archival * * @generated from rpc changes.ChangesService.GetChangeArchive */ -export const getChangeArchive = { - localName: "getChangeArchive", - name: "GetChangeArchive", - kind: MethodKind.Unary, - I: GetChangeArchiveRequest, - O: GetChangeArchiveResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getChangeArchive = ChangesService.method.getChangeArchive; /** * Updates an existing change * * @generated from rpc changes.ChangesService.UpdateChange */ -export const updateChange = { - localName: "updateChange", - name: "UpdateChange", - kind: MethodKind.Unary, - I: UpdateChangeRequest, - O: UpdateChangeResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const updateChange = ChangesService.method.updateChange; /** * Deletes a change * * @generated from rpc changes.ChangesService.DeleteChange */ -export const deleteChange = { - localName: "deleteChange", - name: "DeleteChange", - kind: MethodKind.Unary, - I: DeleteChangeRequest, - O: DeleteChangeResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const deleteChange = ChangesService.method.deleteChange; /** * Lists all changes for a snapshot UUID * * @generated from rpc changes.ChangesService.ListChangesBySnapshotUUID */ -export const listChangesBySnapshotUUID = { - localName: "listChangesBySnapshotUUID", - name: "ListChangesBySnapshotUUID", - kind: MethodKind.Unary, - I: ListChangesBySnapshotUUIDRequest, - O: ListChangesBySnapshotUUIDResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listChangesBySnapshotUUID = ChangesService.method.listChangesBySnapshotUUID; /** * Get the timeline of changes for a given change * * @generated from rpc changes.ChangesService.GetChangeTimeline */ -export const getChangeTimeline = { - localName: "getChangeTimeline", - name: "GetChangeTimeline", - kind: MethodKind.Unary, - I: GetChangeTimelineRequest, - O: GetChangeTimelineResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getChangeTimeline = ChangesService.method.getChangeTimeline; /** * Ask the gateway to refresh all internal caches and status slots @@ -269,124 +123,52 @@ export const getChangeTimeline = { * * @generated from rpc changes.ChangesService.RefreshState */ -export const refreshState = { - localName: "refreshState", - name: "RefreshState", - kind: MethodKind.Unary, - I: RefreshStateRequest, - O: RefreshStateResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const refreshState = ChangesService.method.refreshState; /** * @generated from rpc changes.ChangesService.GetOnboarding */ -export const getOnboarding = { - localName: "getOnboarding", - name: "GetOnboarding", - kind: MethodKind.Unary, - I: GetOnboardingRequest, - O: GetOnboardingResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getOnboarding = ChangesService.method.getOnboarding; /** * @generated from rpc changes.ChangesService.UpdateOnboarding */ -export const updateOnboarding = { - localName: "updateOnboarding", - name: "UpdateOnboarding", - kind: MethodKind.Unary, - I: UpdateOnboardingRequest, - O: UpdateOnboardingResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const updateOnboarding = ChangesService.method.updateOnboarding; /** * Lists all apps, designed for use in the apps home page * * @generated from rpc changes.ChangesService.ListHomeApps */ -export const listHomeApps = { - localName: "listHomeApps", - name: "ListHomeApps", - kind: MethodKind.Unary, - I: ListHomeAppsRequest, - O: ListHomeAppsResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listHomeApps = ChangesService.method.listHomeApps; /** * Lists all changes, designed for use in the changes home page * * @generated from rpc changes.ChangesService.ListHomeChanges */ -export const listHomeChanges = { - localName: "listHomeChanges", - name: "ListHomeChanges", - kind: MethodKind.Unary, - I: ListHomeChangesRequest, - O: ListHomeChangesResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listHomeChanges = ChangesService.method.listHomeChanges; /** * Gets a summary of an app, used when a user clicks on a given app * * @generated from rpc changes.ChangesService.GetAppSummary */ -export const getAppSummary = { - localName: "getAppSummary", - name: "GetAppSummary", - kind: MethodKind.Unary, - I: GetAppSummaryRequest, - O: GetAppSummaryResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getAppSummary = ChangesService.method.getAppSummary; /** * Gets a summaries of a list of apps * * @generated from rpc changes.ChangesService.GetAppSummaries */ -export const getAppSummaries = { - localName: "getAppSummaries", - name: "GetAppSummaries", - kind: MethodKind.Unary, - I: GetAppSummariesRequest, - O: GetAppSummariesResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getAppSummaries = ChangesService.method.getAppSummaries; /** * Lists all changes affecting an app * * @generated from rpc changes.ChangesService.ListAppChanges */ -export const listAppChanges = { - localName: "listAppChanges", - name: "ListAppChanges", - kind: MethodKind.Unary, - I: ListAppChangesRequest, - O: ListAppChangesResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listAppChanges = ChangesService.method.listAppChanges; /** * Lists all changes affecting an app, returning only a summary of each change @@ -394,16 +176,7 @@ export const listAppChanges = { * * @generated from rpc changes.ChangesService.ListAppChangesSummary */ -export const listAppChangesSummary = { - localName: "listAppChangesSummary", - name: "ListAppChangesSummary", - kind: MethodKind.Unary, - I: ListAppChangesSummaryRequest, - O: ListAppChangesSummaryResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listAppChangesSummary = ChangesService.method.listAppChangesSummary; /** * Returns a list of apps that are affected by this change. This is calculated @@ -412,16 +185,7 @@ export const listAppChangesSummary = { * * @generated from rpc changes.ChangesService.GetAffectedApps */ -export const getAffectedApps = { - localName: "getAffectedApps", - name: "GetAffectedApps", - kind: MethodKind.Unary, - I: GetAffectedAppsRequest, - O: GetAffectedAppsResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getAffectedApps = ChangesService.method.getAffectedApps; /** * Gets the diff summary for all items that were planned to change as part of @@ -430,16 +194,7 @@ export const getAffectedApps = { * * @generated from rpc changes.ChangesService.ListChangingItemsSummary */ -export const listChangingItemsSummary = { - localName: "listChangingItemsSummary", - name: "ListChangingItemsSummary", - kind: MethodKind.Unary, - I: ListChangingItemsSummaryRequest, - O: ListChangingItemsSummaryResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const listChangingItemsSummary = ChangesService.method.listChangingItemsSummary; /** * Gets the full diff of everything that changed as part of this "change". @@ -447,29 +202,11 @@ export const listChangingItemsSummary = { * * @generated from rpc changes.ChangesService.GetDiff */ -export const getDiff = { - localName: "getDiff", - name: "GetDiff", - kind: MethodKind.Unary, - I: GetDiffRequest, - O: GetDiffResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const getDiff = ChangesService.method.getDiff; /** * List all the available repos, authors and statuses that can be used to populate the dropdown filters * * @generated from rpc changes.ChangesService.PopulateChangeFilters */ -export const populateChangeFilters = { - localName: "populateChangeFilters", - name: "PopulateChangeFilters", - kind: MethodKind.Unary, - I: PopulateChangeFiltersRequest, - O: PopulateChangeFiltersResponse, - service: { - typeName: "changes.ChangesService" - } -} as const; +export const populateChangeFilters = ChangesService.method.populateChangeFilters; diff --git a/src/__generated__/changes_connect.ts b/src/__generated__/changes_connect.ts deleted file mode 100644 index ed4aeb8..0000000 --- a/src/__generated__/changes_connect.ts +++ /dev/null @@ -1,428 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file changes.proto (package changes, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CalculateBlastRadiusRequest, CalculateBlastRadiusResponse, CreateAppRequest, CreateAppResponse, CreateChangeRequest, CreateChangeResponse, CreateSimpleAppRequest, CreateSimpleAppResponse, DeleteAppRequest, DeleteAppResponse, DeleteChangeRequest, DeleteChangeResponse, EndChangeRequest, EndChangeResponse, GetAffectedAppsRequest, GetAffectedAppsResponse, GetAppRequest, GetAppResponse, GetAppSummariesRequest, GetAppSummariesResponse, GetAppSummaryRequest, GetAppSummaryResponse, GetChangeArchiveRequest, GetChangeArchiveResponse, GetChangeRequest, GetChangeResponse, GetChangeRisksRequest, GetChangeRisksResponse, GetChangeTimelineRequest, GetChangeTimelineResponse, GetDiffRequest, GetDiffResponse, GetOnboardingRequest, GetOnboardingResponse, ListAppChangesRequest, ListAppChangesResponse, ListAppChangesSummaryRequest, ListAppChangesSummaryResponse, ListAppsRequest, ListAppsResponse, ListChangesBySnapshotUUIDRequest, ListChangesBySnapshotUUIDResponse, ListChangesByStatusRequest, ListChangesByStatusResponse, ListChangesRequest, ListChangesResponse, ListChangingItemsSummaryRequest, ListChangingItemsSummaryResponse, ListHomeAppsRequest, ListHomeAppsResponse, ListHomeChangesRequest, ListHomeChangesResponse, PopulateChangeFiltersRequest, PopulateChangeFiltersResponse, RefreshStateRequest, RefreshStateResponse, SimulateChangeRequest, SimulateChangeResponse, StartChangeRequest, StartChangeResponse, UpdateAppRequest, UpdateAppResponse, UpdateChangeRequest, UpdateChangeResponse, UpdateChangingItemsRequest, UpdateOnboardingRequest, UpdateOnboardingResponse, UpdatePlannedChangesRequest } from "./changes_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * All the request/reply APIs for the Change/App iteration - * - * @generated from service changes.ChangesService - */ -export const ChangesService = { - typeName: "changes.ChangesService", - methods: { - /** - * Lists all apps - * - * @generated from rpc changes.ChangesService.ListApps - */ - listApps: { - name: "ListApps", - I: ListAppsRequest, - O: ListAppsResponse, - kind: MethodKind.Unary, - }, - /** - * Creates a new app - * - * @generated from rpc changes.ChangesService.CreateApp - */ - createApp: { - name: "CreateApp", - I: CreateAppRequest, - O: CreateAppResponse, - kind: MethodKind.Unary, - }, - /** - * Creates an app using just a URL as input. This automatically creates and - * sets the bookmark UUID, along with the url for display in the GUI - * - * @generated from rpc changes.ChangesService.CreateSimpleApp - */ - createSimpleApp: { - name: "CreateSimpleApp", - I: CreateSimpleAppRequest, - O: CreateSimpleAppResponse, - kind: MethodKind.Unary, - }, - /** - * Gets the details of an existing app - * - * @generated from rpc changes.ChangesService.GetApp - */ - getApp: { - name: "GetApp", - I: GetAppRequest, - O: GetAppResponse, - kind: MethodKind.Unary, - }, - /** - * Updates an existing app - * - * @generated from rpc changes.ChangesService.UpdateApp - */ - updateApp: { - name: "UpdateApp", - I: UpdateAppRequest, - O: UpdateAppResponse, - kind: MethodKind.Unary, - }, - /** - * Deletes an app - * - * @generated from rpc changes.ChangesService.DeleteApp - */ - deleteApp: { - name: "DeleteApp", - I: DeleteAppRequest, - O: DeleteAppResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all changes - * - * @generated from rpc changes.ChangesService.ListChanges - */ - listChanges: { - name: "ListChanges", - I: ListChangesRequest, - O: ListChangesResponse, - kind: MethodKind.Unary, - }, - /** - * list all changes in a specific status - * - * @generated from rpc changes.ChangesService.ListChangesByStatus - */ - listChangesByStatus: { - name: "ListChangesByStatus", - I: ListChangesByStatusRequest, - O: ListChangesByStatusResponse, - kind: MethodKind.Unary, - }, - /** - * Creates a new change - * - * @generated from rpc changes.ChangesService.CreateChange - */ - createChange: { - name: "CreateChange", - I: CreateChangeRequest, - O: CreateChangeResponse, - kind: MethodKind.Unary, - }, - /** - * Gets the details of an existing change - * - * @generated from rpc changes.ChangesService.GetChange - */ - getChange: { - name: "GetChange", - I: GetChangeRequest, - O: GetChangeResponse, - kind: MethodKind.Unary, - }, - /** - * Gets the risks and risk calculation status of an existing change - * - * @generated from rpc changes.ChangesService.GetChangeRisks - */ - getChangeRisks: { - name: "GetChangeRisks", - I: GetChangeRisksRequest, - O: GetChangeRisksResponse, - kind: MethodKind.Unary, - }, - /** - * Gets the all data of an existing change for archival - * - * @generated from rpc changes.ChangesService.GetChangeArchive - */ - getChangeArchive: { - name: "GetChangeArchive", - I: GetChangeArchiveRequest, - O: GetChangeArchiveResponse, - kind: MethodKind.Unary, - }, - /** - * Updates an existing change - * - * @generated from rpc changes.ChangesService.UpdateChange - */ - updateChange: { - name: "UpdateChange", - I: UpdateChangeRequest, - O: UpdateChangeResponse, - kind: MethodKind.Unary, - }, - /** - * Deletes a change - * - * @generated from rpc changes.ChangesService.DeleteChange - */ - deleteChange: { - name: "DeleteChange", - I: DeleteChangeRequest, - O: DeleteChangeResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all changes for a snapshot UUID - * - * @generated from rpc changes.ChangesService.ListChangesBySnapshotUUID - */ - listChangesBySnapshotUUID: { - name: "ListChangesBySnapshotUUID", - I: ListChangesBySnapshotUUIDRequest, - O: ListChangesBySnapshotUUIDResponse, - kind: MethodKind.Unary, - }, - /** - * Get the timeline of changes for a given change - * - * @generated from rpc changes.ChangesService.GetChangeTimeline - */ - getChangeTimeline: { - name: "GetChangeTimeline", - I: GetChangeTimelineRequest, - O: GetChangeTimelineResponse, - kind: MethodKind.Unary, - }, - /** - * Ask the gateway to refresh all internal caches and status slots - * The RPC will return immediately doing all processing in the background - * - * @generated from rpc changes.ChangesService.RefreshState - */ - refreshState: { - name: "RefreshState", - I: RefreshStateRequest, - O: RefreshStateResponse, - kind: MethodKind.Unary, - }, - /** - * Calculates the blast radius of a change using the - * `changingItemsBookmarkUUID` as the starting point. If the - * `changingItemsBookmarkUUID` is blank, this will return an error. - * Returns a stream of status updates. The response stream closes when all calculating has been done. - * Executing this RPC will move the Change to the `STATUS_DEFINING` state or return an error. - * - * @generated from rpc changes.ChangesService.CalculateBlastRadius - */ - calculateBlastRadius: { - name: "CalculateBlastRadius", - I: CalculateBlastRadiusRequest, - O: CalculateBlastRadiusResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * Executing this RPC take a snapshot of the current blast radius and store it - * in `systemBeforeSnapshotUUID` and then advance the status to - * `STATUS_HAPPENING`. It can only be called once per change. - * - * @generated from rpc changes.ChangesService.StartChange - */ - startChange: { - name: "StartChange", - I: StartChangeRequest, - O: StartChangeResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * Takes the "after" snapshot, stores it in `systemAfterSnapshotUUID`, calculates - * the change diff and stores it as a list of DiffedItems and - * advances the change status to `STATUS_DONE` - * - * @generated from rpc changes.ChangesService.EndChange - */ - endChange: { - name: "EndChange", - I: EndChangeRequest, - O: EndChangeResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * Simulates a change without the user actually having to do anything. The - * change specified in the request should be in the `STATUS_DEFINING` state. - * It will be moved to the `STATUS_DONE` state after the simulation is - * complete. - * - * @generated from rpc changes.ChangesService.SimulateChange - */ - simulateChange: { - name: "SimulateChange", - I: SimulateChangeRequest, - O: SimulateChangeResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * @generated from rpc changes.ChangesService.GetOnboarding - */ - getOnboarding: { - name: "GetOnboarding", - I: GetOnboardingRequest, - O: GetOnboardingResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc changes.ChangesService.UpdateOnboarding - */ - updateOnboarding: { - name: "UpdateOnboarding", - I: UpdateOnboardingRequest, - O: UpdateOnboardingResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all apps, designed for use in the apps home page - * - * @generated from rpc changes.ChangesService.ListHomeApps - */ - listHomeApps: { - name: "ListHomeApps", - I: ListHomeAppsRequest, - O: ListHomeAppsResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all changes, designed for use in the changes home page - * - * @generated from rpc changes.ChangesService.ListHomeChanges - */ - listHomeChanges: { - name: "ListHomeChanges", - I: ListHomeChangesRequest, - O: ListHomeChangesResponse, - kind: MethodKind.Unary, - }, - /** - * Gets a summary of an app, used when a user clicks on a given app - * - * @generated from rpc changes.ChangesService.GetAppSummary - */ - getAppSummary: { - name: "GetAppSummary", - I: GetAppSummaryRequest, - O: GetAppSummaryResponse, - kind: MethodKind.Unary, - }, - /** - * Gets a summaries of a list of apps - * - * @generated from rpc changes.ChangesService.GetAppSummaries - */ - getAppSummaries: { - name: "GetAppSummaries", - I: GetAppSummariesRequest, - O: GetAppSummariesResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all changes affecting an app - * - * @generated from rpc changes.ChangesService.ListAppChanges - */ - listAppChanges: { - name: "ListAppChanges", - I: ListAppChangesRequest, - O: ListAppChangesResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all changes affecting an app, returning only a summary of each change - * rather than the full details - * - * @generated from rpc changes.ChangesService.ListAppChangesSummary - */ - listAppChangesSummary: { - name: "ListAppChangesSummary", - I: ListAppChangesSummaryRequest, - O: ListAppChangesSummaryResponse, - kind: MethodKind.Unary, - }, - /** - * This sets the items that are changing in a given change, and updates the - * blast radius. In the backend this will convert the references to GET - * requests, save them to a bookmark, and set this as the - * changingItemsBookmarkUUID in the change itself before triggering a blast - * radius calculation - * - * @generated from rpc changes.ChangesService.UpdateChangingItems - */ - updateChangingItems: { - name: "UpdateChangingItems", - I: UpdateChangingItemsRequest, - O: CalculateBlastRadiusResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * This sets the item diffs that are changing in a given change, and updates - * the blast radius. In the backend this will save the item diffs for later - * display and use the item's references to fabricate a bookmark, and set this - * as changingItemsBookmarkUUID in the change itself before triggering a blast - * radius calculation. Note that not all of the changing items have to exist - * in our current sources. - * - * @generated from rpc changes.ChangesService.UpdatePlannedChanges - */ - updatePlannedChanges: { - name: "UpdatePlannedChanges", - I: UpdatePlannedChangesRequest, - O: CalculateBlastRadiusResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * Returns a list of apps that are affected by this change. This is calculated - * by looking at the blast radius snapshot and finding all apps that have - * items in the snapshot. - * - * @generated from rpc changes.ChangesService.GetAffectedApps - */ - getAffectedApps: { - name: "GetAffectedApps", - I: GetAffectedAppsRequest, - O: GetAffectedAppsResponse, - kind: MethodKind.Unary, - }, - /** - * Gets the diff summary for all items that were planned to change as part of - * this change. This includes the high level details of the item, and the - * status (e.g. changed, deleted) but not the diff itself - * - * @generated from rpc changes.ChangesService.ListChangingItemsSummary - */ - listChangingItemsSummary: { - name: "ListChangingItemsSummary", - I: ListChangingItemsSummaryRequest, - O: ListChangingItemsSummaryResponse, - kind: MethodKind.Unary, - }, - /** - * Gets the full diff of everything that changed as part of this "change". - * This includes all items and also edges between them - * - * @generated from rpc changes.ChangesService.GetDiff - */ - getDiff: { - name: "GetDiff", - I: GetDiffRequest, - O: GetDiffResponse, - kind: MethodKind.Unary, - }, - /** - * List all the available repos, authors and statuses that can be used to populate the dropdown filters - * - * @generated from rpc changes.ChangesService.PopulateChangeFilters - */ - populateChangeFilters: { - name: "PopulateChangeFilters", - I: PopulateChangeFiltersRequest, - O: PopulateChangeFiltersResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/changes_pb.ts b/src/__generated__/changes_pb.ts index fec0148..d6106b9 100644 --- a/src/__generated__/changes_pb.ts +++ b/src/__generated__/changes_pb.ts @@ -1,248 +1,81 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file changes.proto (package changes, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Edge, Health, Item, Query, Reference } from "./items_pb.ts"; -import { BlastRadiusConfig } from "./config_pb.ts"; -import { PaginationRequest, PaginationResponse, SortOrder } from "./util_pb.ts"; -import { Bookmark } from "./bookmarks_pb.ts"; -import { Snapshot } from "./snapshots_pb.ts"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { Bookmark } from "./bookmarks_pb"; +import { file_bookmarks } from "./bookmarks_pb"; +import type { Edge, Health, Item, Query, Reference } from "./items_pb"; +import { file_items } from "./items_pb"; +import type { Snapshot } from "./snapshots_pb"; +import { file_snapshots } from "./snapshots_pb"; +import type { BlastRadiusConfig } from "./config_pb"; +import { file_config } from "./config_pb"; +import type { PaginationRequest, PaginationResponse, SortOrder } from "./util_pb"; +import { file_util } from "./util_pb"; +import type { Message } from "@bufbuild/protobuf"; /** - * @generated from enum changes.ItemDiffStatus - */ -export enum ItemDiffStatus { - /** - * @generated from enum value: ITEM_DIFF_STATUS_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * @generated from enum value: ITEM_DIFF_STATUS_UNCHANGED = 1; - */ - UNCHANGED = 1, - - /** - * @generated from enum value: ITEM_DIFF_STATUS_CREATED = 2; - */ - CREATED = 2, - - /** - * @generated from enum value: ITEM_DIFF_STATUS_UPDATED = 3; - */ - UPDATED = 3, - - /** - * @generated from enum value: ITEM_DIFF_STATUS_DELETED = 4; - */ - DELETED = 4, - - /** - * @generated from enum value: ITEM_DIFF_STATUS_REPLACED = 5; - */ - REPLACED = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(ItemDiffStatus) -proto3.util.setEnumType(ItemDiffStatus, "changes.ItemDiffStatus", [ - { no: 0, name: "ITEM_DIFF_STATUS_UNSPECIFIED" }, - { no: 1, name: "ITEM_DIFF_STATUS_UNCHANGED" }, - { no: 2, name: "ITEM_DIFF_STATUS_CREATED" }, - { no: 3, name: "ITEM_DIFF_STATUS_UPDATED" }, - { no: 4, name: "ITEM_DIFF_STATUS_DELETED" }, - { no: 5, name: "ITEM_DIFF_STATUS_REPLACED" }, -]); - -/** - * @generated from enum changes.ChangeStatus - */ -export enum ChangeStatus { - /** - * The change has been created, but the blast radius has not yet been - * calculated. The blast radius can be calculated using the - * `CalculateBlastRadius` RPC. - * - * @generated from enum value: CHANGE_STATUS_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * The blast radius has been calculated, but the change has not yet started. - * The change can be started using the `StartChange` RPC. - * - * @generated from enum value: CHANGE_STATUS_DEFINING = 1; - */ - DEFINING = 1, - - /** - * The change is in progress. The change can be ended using the `EndChange` - * RPC. - * - * @generated from enum value: CHANGE_STATUS_HAPPENING = 2; - */ - HAPPENING = 2, - - /** - * The change has been ended, but the results have not yet been processed. - * - * @generated from enum value: CHANGE_STATUS_PROCESSING = 3; - */ - PROCESSING = 3, - - /** - * The change has been ended and the results have been processed. - * - * @generated from enum value: CHANGE_STATUS_DONE = 4; - */ - DONE = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(ChangeStatus) -proto3.util.setEnumType(ChangeStatus, "changes.ChangeStatus", [ - { no: 0, name: "CHANGE_STATUS_UNSPECIFIED" }, - { no: 1, name: "CHANGE_STATUS_DEFINING" }, - { no: 2, name: "CHANGE_STATUS_HAPPENING" }, - { no: 3, name: "CHANGE_STATUS_PROCESSING" }, - { no: 4, name: "CHANGE_STATUS_DONE" }, -]); - -/** - * @generated from enum changes.OnboardingStatus + * Describes the file changes.proto. */ -export enum OnboardingStatus { - /** - * @generated from enum value: ONBOARDING_STATUS_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * @generated from enum value: ONBOARDING_STATUS_ADD_AWS_ACCOUNT = 1; - */ - ADD_AWS_ACCOUNT = 1, - - /** - * @generated from enum value: ONBOARDING_STATUS_ADD_APP = 2; - */ - ADD_APP = 2, - - /** - * @generated from enum value: ONBOARDING_STATUS_CREATE_CHANGE = 3; - */ - CREATE_CHANGE = 3, - - /** - * @generated from enum value: ONBOARDING_STATUS_SIMULATE_CHANGE = 4; - */ - SIMULATE_CHANGE = 4, - - /** - * @generated from enum value: ONBOARDING_STATUS_DONE = 5; - */ - DONE = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(OnboardingStatus) -proto3.util.setEnumType(OnboardingStatus, "changes.OnboardingStatus", [ - { no: 0, name: "ONBOARDING_STATUS_UNSPECIFIED" }, - { no: 1, name: "ONBOARDING_STATUS_ADD_AWS_ACCOUNT" }, - { no: 2, name: "ONBOARDING_STATUS_ADD_APP" }, - { no: 3, name: "ONBOARDING_STATUS_CREATE_CHANGE" }, - { no: 4, name: "ONBOARDING_STATUS_SIMULATE_CHANGE" }, - { no: 5, name: "ONBOARDING_STATUS_DONE" }, -]); +export const file_changes: GenFile = /*@__PURE__*/ + fileDesc("Cg1jaGFuZ2VzLnByb3RvEgdjaGFuZ2VzIi4KGEdldENoYW5nZVRpbWVsaW5lUmVxdWVzdBISCgpjaGFuZ2VVVUlEGAEgASgMIkoKGUdldENoYW5nZVRpbWVsaW5lUmVzcG9uc2USLQoHZW50cmllcxgBIAMoCzIcLmNoYW5nZXMuQ2hhbmdlVGltZWxpbmVFbnRyeSKWAQoTQ2hhbmdlVGltZWxpbmVFbnRyeRIlCgZzdGF0dXMYASABKA4yFS5jaGFuZ2VzLkNoYW5nZVN0YXR1cxIVCg1zdGF0dXNNZXNzYWdlGAIgASgJEi4KCmhhcHBlbmVkQXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhEKCWFjdG9yTmFtZRgEIAEoCSIkCg5HZXREaWZmUmVxdWVzdBISCgpjaGFuZ2VVVUlEGAEgASgMIqYBCg9HZXREaWZmUmVzcG9uc2USKAoNZXhwZWN0ZWRJdGVtcxgBIAMoCzIRLmNoYW5nZXMuSXRlbURpZmYSKgoPdW5leHBlY3RlZEl0ZW1zGAMgAygLMhEuY2hhbmdlcy5JdGVtRGlmZhIUCgVlZGdlcxgCIAMoCzIFLkVkZ2USJwoMbWlzc2luZ0l0ZW1zGAQgAygLMhEuY2hhbmdlcy5JdGVtRGlmZiI1Ch9MaXN0Q2hhbmdpbmdJdGVtc1N1bW1hcnlSZXF1ZXN0EhIKCmNoYW5nZVVVSUQYASABKAwiSwogTGlzdENoYW5naW5nSXRlbXNTdW1tYXJ5UmVzcG9uc2USJwoFaXRlbXMYASADKAsyGC5jaGFuZ2VzLkl0ZW1EaWZmU3VtbWFyeSIsChZHZXRBZmZlY3RlZEFwcHNSZXF1ZXN0EhIKCmNoYW5nZVVVSUQYASABKAwiPAoXR2V0QWZmZWN0ZWRBcHBzUmVzcG9uc2USIQoEYXBwcxgBIAMoCzITLmNoYW5nZXMuQXBwU3VtbWFyeSJTChpVcGRhdGVDaGFuZ2luZ0l0ZW1zUmVxdWVzdBISCgpjaGFuZ2VVVUlEGAEgASgMEiEKDWNoYW5naW5nSXRlbXMYAiADKAsyCi5SZWZlcmVuY2UiZQoOTWFwcGVkSXRlbURpZmYSHwoEaXRlbRgBIAEoCzIRLmNoYW5nZXMuSXRlbURpZmYSIQoMbWFwcGluZ1F1ZXJ5GAIgASgLMgYuUXVlcnlIAIgBAUIPCg1fbWFwcGluZ1F1ZXJ5IsIBChtVcGRhdGVQbGFubmVkQ2hhbmdlc1JlcXVlc3QSEgoKY2hhbmdlVVVJRBgBIAEoDBIuCg1jaGFuZ2luZ0l0ZW1zGAIgAygLMhcuY2hhbmdlcy5NYXBwZWRJdGVtRGlmZhJBChlibGFzdFJhZGl1c0NvbmZpZ092ZXJyaWRlGAMgASgLMhkuY29uZmlnLkJsYXN0UmFkaXVzQ29uZmlnSACIAQFCHAoaX2JsYXN0UmFkaXVzQ29uZmlnT3ZlcnJpZGUiLwocTGlzdEFwcENoYW5nZXNTdW1tYXJ5UmVxdWVzdBIPCgdhcHBVVUlEGAEgASgMIkgKHUxpc3RBcHBDaGFuZ2VzU3VtbWFyeVJlc3BvbnNlEicKB2NoYW5nZXMYASADKAsyFi5jaGFuZ2VzLkNoYW5nZVN1bW1hcnkiJAoUR2V0QXBwU3VtbWFyeVJlcXVlc3QSDAoEVVVJRBgBIAEoDCI5ChVHZXRBcHBTdW1tYXJ5UmVzcG9uc2USIAoDYXBwGAEgASgLMhMuY2hhbmdlcy5BcHBTdW1tYXJ5IicKFkdldEFwcFN1bW1hcmllc1JlcXVlc3QSDQoFVVVJRHMYASADKAwiPAoXR2V0QXBwU3VtbWFyaWVzUmVzcG9uc2USIQoEYXBwcxgBIAMoCzITLmNoYW5nZXMuQXBwU3VtbWFyeSKBAQoWTGlzdEhvbWVDaGFuZ2VzUmVxdWVzdBImCgpwYWdpbmF0aW9uGAEgASgLMhIuUGFnaW5hdGlvblJlcXVlc3QSMwoHZmlsdGVycxgCIAEoCzIdLmNoYW5nZXMuQ2hhbmdlRmlsdGVyc1JlcXVlc3RIAIgBAUIKCghfZmlsdGVycyKcAgoUQ2hhbmdlRmlsdGVyc1JlcXVlc3QSDQoFcmVwb3MYASADKAkSNQoEdGFncxgCIAMoCzInLmNoYW5nZXMuQ2hhbmdlRmlsdGVyc1JlcXVlc3QuVGFnc0VudHJ5EiUKBXJpc2tzGAMgAygOMhYuY2hhbmdlcy5SaXNrLlNldmVyaXR5Eg8KB2F1dGhvcnMYBCADKAkSJwoIc3RhdHVzZXMYBSADKA4yFS5jaGFuZ2VzLkNoYW5nZVN0YXR1cxIiCglzb3J0T3JkZXIYBiABKA4yCi5Tb3J0T3JkZXJIAIgBARorCglUYWdzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUIMCgpfc29ydE9yZGVyImsKF0xpc3RIb21lQ2hhbmdlc1Jlc3BvbnNlEicKB2NoYW5nZXMYASADKAsyFi5jaGFuZ2VzLkNoYW5nZVN1bW1hcnkSJwoKcGFnaW5hdGlvbhgCIAEoCzITLlBhZ2luYXRpb25SZXNwb25zZSIeChxQb3B1bGF0ZUNoYW5nZUZpbHRlcnNSZXF1ZXN0Ij8KHVBvcHVsYXRlQ2hhbmdlRmlsdGVyc1Jlc3BvbnNlEg0KBXJlcG9zGAEgAygJEg8KB2F1dGhvcnMYAiADKAkiFQoTTGlzdEhvbWVBcHBzUmVxdWVzdCI5ChRMaXN0SG9tZUFwcHNSZXNwb25zZRIhCgRhcHBzGAEgAygLMhMuY2hhbmdlcy5BcHBTdW1tYXJ5InIKD0l0ZW1EaWZmU3VtbWFyeRIYCgRpdGVtGAEgASgLMgouUmVmZXJlbmNlEicKBnN0YXR1cxgEIAEoDjIXLmNoYW5nZXMuSXRlbURpZmZTdGF0dXMSHAoLaGVhbHRoQWZ0ZXIYBSABKA4yBy5IZWFsdGgiegoISXRlbURpZmYSGAoEaXRlbRgBIAEoCzIKLlJlZmVyZW5jZRInCgZzdGF0dXMYAiABKA4yFy5jaGFuZ2VzLkl0ZW1EaWZmU3RhdHVzEhUKBmJlZm9yZRgDIAEoCzIFLkl0ZW0SFAoFYWZ0ZXIYBCABKAsyBS5JdGVtItMBCgpBcHBTdW1tYXJ5EgwKBFVVSUQYASABKAwSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRIbChNudW1DaGFuZ2VzQWZmZWN0aW5nGAQgASgFEhAKCG51bUl0ZW1zGAUgASgFEi0KCWNyZWF0ZWRBdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEwoLY3JlYXRvck5hbWUYByABKAkSCwoDdXJsGAkgASgJEhQKDGJvb2ttYXJrVVVJRBgKIAEoDCJZCgNBcHASJgoIbWV0YWRhdGEYASABKAsyFC5jaGFuZ2VzLkFwcE1ldGFkYXRhEioKCnByb3BlcnRpZXMYAiABKAsyFi5jaGFuZ2VzLkFwcFByb3BlcnRpZXMimwIKC0FwcE1ldGFkYXRhEgwKBFVVSUQYASABKAwSLQoJY3JlYXRlZEF0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBItCgl1cGRhdGVkQXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhkKBWl0ZW1zGAQgAygLMgouUmVmZXJlbmNlEjQKEGl0ZW1zTGFzdFVwZGF0ZWQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhsKE251bUNoYW5nZXNBZmZlY3RpbmcYBiABKAUSEAoIbnVtSXRlbXMYCCABKAUSEwoLY3JlYXRvck5hbWUYByABKAkSCwoDdXJsGAkgASgJIkgKDUFwcFByb3BlcnRpZXMSDAoEbmFtZRgBIAEoCRITCgtkZXNjcmlwdGlvbhgCIAEoCRIUCgxib29rbWFya1VVSUQYAyABKAwiEQoPTGlzdEFwcHNSZXF1ZXN0Ii4KEExpc3RBcHBzUmVzcG9uc2USGgoEYXBwcxgBIAMoCzIMLmNoYW5nZXMuQXBwIj4KEENyZWF0ZUFwcFJlcXVlc3QSKgoKcHJvcGVydGllcxgBIAEoCzIWLmNoYW5nZXMuQXBwUHJvcGVydGllcyIuChFDcmVhdGVBcHBSZXNwb25zZRIZCgNhcHAYASABKAsyDC5jaGFuZ2VzLkFwcCJIChZDcmVhdGVTaW1wbGVBcHBSZXF1ZXN0EgwKBG5hbWUYASABKAkSEwoLZGVzY3JpcHRpb24YAiABKAkSCwoDdXJsGAMgASgJIjQKF0NyZWF0ZVNpbXBsZUFwcFJlc3BvbnNlEhkKA2FwcBgBIAEoCzIMLmNoYW5nZXMuQXBwIh0KDUdldEFwcFJlcXVlc3QSDAoEVVVJRBgBIAEoDCIrCg5HZXRBcHBSZXNwb25zZRIZCgNhcHAYASABKAsyDC5jaGFuZ2VzLkFwcCJMChBVcGRhdGVBcHBSZXF1ZXN0EgwKBFVVSUQYASABKAwSKgoKcHJvcGVydGllcxgCIAEoCzIWLmNoYW5nZXMuQXBwUHJvcGVydGllcyIuChFVcGRhdGVBcHBSZXNwb25zZRIZCgNhcHAYASABKAsyDC5jaGFuZ2VzLkFwcCIgChBEZWxldGVBcHBSZXF1ZXN0EgwKBFVVSUQYASABKAwiEwoRRGVsZXRlQXBwUmVzcG9uc2UiJQoVTGlzdEFwcENoYW5nZXNSZXF1ZXN0EgwKBFVVSUQYASABKAwiOgoWTGlzdEFwcENoYW5nZXNSZXNwb25zZRIgCgdjaGFuZ2VzGAEgAygLMg8uY2hhbmdlcy5DaGFuZ2UizgMKDUNoYW5nZVN1bW1hcnkSDAoEVVVJRBgBIAEoDBINCgV0aXRsZRgCIAEoCRIlCgZzdGF0dXMYAyABKA4yFS5jaGFuZ2VzLkNoYW5nZVN0YXR1cxISCgp0aWNrZXRMaW5rGAQgASgJEi0KCWNyZWF0ZWRBdBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEwoLY3JlYXRvck5hbWUYBiABKAkSFAoMY3JlYXRvckVtYWlsGA8gASgJEhcKD251bUFmZmVjdGVkQXBwcxgIIAEoBRIYChBudW1BZmZlY3RlZEl0ZW1zGAkgASgFEhgKEG51bUFmZmVjdGVkRWRnZXMYCiABKAUSEgoKbnVtTG93UmlzaxgLIAEoBRIVCg1udW1NZWRpdW1SaXNrGAwgASgFEhMKC251bUhpZ2hSaXNrGA0gASgFEhMKC2Rlc2NyaXB0aW9uGA4gASgJEgwKBHJlcG8YECABKAkSLgoEdGFncxgRIAMoCzIgLmNoYW5nZXMuQ2hhbmdlU3VtbWFyeS5UYWdzRW50cnkaKwoJVGFnc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiYgoGQ2hhbmdlEikKCG1ldGFkYXRhGAEgASgLMhcuY2hhbmdlcy5DaGFuZ2VNZXRhZGF0YRItCgpwcm9wZXJ0aWVzGAIgASgLMhkuY2hhbmdlcy5DaGFuZ2VQcm9wZXJ0aWVzIqcGCg5DaGFuZ2VNZXRhZGF0YRIMCgRVVUlEGAEgASgMEi0KCWNyZWF0ZWRBdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLQoJdXBkYXRlZEF0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIlCgZzdGF0dXMYBCABKA4yFS5jaGFuZ2VzLkNoYW5nZVN0YXR1cxITCgtjcmVhdG9yTmFtZRgFIAEoCRIUCgxjcmVhdG9yRW1haWwYEyABKAkSFwoPbnVtQWZmZWN0ZWRBcHBzGAYgASgFEhgKEG51bUFmZmVjdGVkSXRlbXMYByABKAUSGAoQbnVtQWZmZWN0ZWRFZGdlcxgRIAEoBRIZChFudW1VbmNoYW5nZWRJdGVtcxgIIAEoBRIXCg9udW1DcmVhdGVkSXRlbXMYCSABKAUSFwoPbnVtVXBkYXRlZEl0ZW1zGAogASgFEhgKEG51bVJlcGxhY2VkSXRlbXMYEiABKAUSFwoPbnVtRGVsZXRlZEl0ZW1zGAsgASgFEkEKE1Vua25vd25IZWFsdGhDaGFuZ2UYDCABKAsyJC5jaGFuZ2VzLkNoYW5nZU1ldGFkYXRhLkhlYWx0aENoYW5nZRI8Cg5Pa0hlYWx0aENoYW5nZRgNIAEoCzIkLmNoYW5nZXMuQ2hhbmdlTWV0YWRhdGEuSGVhbHRoQ2hhbmdlEkEKE1dhcm5pbmdIZWFsdGhDaGFuZ2UYDiABKAsyJC5jaGFuZ2VzLkNoYW5nZU1ldGFkYXRhLkhlYWx0aENoYW5nZRI/ChFFcnJvckhlYWx0aENoYW5nZRgPIAEoCzIkLmNoYW5nZXMuQ2hhbmdlTWV0YWRhdGEuSGVhbHRoQ2hhbmdlEkEKE1BlbmRpbmdIZWFsdGhDaGFuZ2UYECABKAsyJC5jaGFuZ2VzLkNoYW5nZU1ldGFkYXRhLkhlYWx0aENoYW5nZRpCCgxIZWFsdGhDaGFuZ2USDQoFYWRkZWQYASABKAUSDwoHcmVtb3ZlZBgCIAEoBRISCgpmaW5hbFRvdGFsGAMgASgFItEDChBDaGFuZ2VQcm9wZXJ0aWVzEg0KBXRpdGxlGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEhIKCnRpY2tldExpbmsYBCABKAkSDQoFb3duZXIYBSABKAkSEAoIY2NFbWFpbHMYBiABKAkSIQoZY2hhbmdpbmdJdGVtc0Jvb2ttYXJrVVVJRBgHIAEoDBIfChdibGFzdFJhZGl1c1NuYXBzaG90VVVJRBgLIAEoDBIgChhzeXN0ZW1CZWZvcmVTbmFwc2hvdFVVSUQYCCABKAwSHwoXc3lzdGVtQWZ0ZXJTbmFwc2hvdFVVSUQYCSABKAwSGAoQYWZmZWN0ZWRBcHBzVVVJRBgKIAMoDBIpCg5wbGFubmVkQ2hhbmdlcxgMIAMoCzIRLmNoYW5nZXMuSXRlbURpZmYSDwoHcmF3UGxhbhgNIAEoCRITCgtjb2RlQ2hhbmdlcxgOIAEoCRIMCgRyZXBvGA8gASgJEjEKBHRhZ3MYECADKAsyIy5jaGFuZ2VzLkNoYW5nZVByb3BlcnRpZXMuVGFnc0VudHJ5GisKCVRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBSgQIARACIhQKEkxpc3RDaGFuZ2VzUmVxdWVzdCI3ChNMaXN0Q2hhbmdlc1Jlc3BvbnNlEiAKB2NoYW5nZXMYASADKAsyDy5jaGFuZ2VzLkNoYW5nZSJDChpMaXN0Q2hhbmdlc0J5U3RhdHVzUmVxdWVzdBIlCgZzdGF0dXMYASABKA4yFS5jaGFuZ2VzLkNoYW5nZVN0YXR1cyI/ChtMaXN0Q2hhbmdlc0J5U3RhdHVzUmVzcG9uc2USIAoHY2hhbmdlcxgBIAMoCzIPLmNoYW5nZXMuQ2hhbmdlIkQKE0NyZWF0ZUNoYW5nZVJlcXVlc3QSLQoKcHJvcGVydGllcxgBIAEoCzIZLmNoYW5nZXMuQ2hhbmdlUHJvcGVydGllcyI3ChRDcmVhdGVDaGFuZ2VSZXNwb25zZRIfCgZjaGFuZ2UYASABKAsyDy5jaGFuZ2VzLkNoYW5nZSIuChBHZXRDaGFuZ2VSZXF1ZXN0EgwKBFVVSUQYASABKAwSDAoEc2xpbRgCIAEoCCI0ChFHZXRDaGFuZ2VSZXNwb25zZRIfCgZjaGFuZ2UYASABKAsyDy5jaGFuZ2VzLkNoYW5nZSIlChVHZXRDaGFuZ2VSaXNrc1JlcXVlc3QSDAoEVVVJRBgBIAEoDCKxAQoSQ2hhbmdlUmlza01ldGFkYXRhEj0KFXJpc2tDYWxjdWxhdGlvblN0YXR1cxgBIAEoCzIeLmNoYW5nZXMuUmlza0NhbGN1bGF0aW9uU3RhdHVzEhwKBXJpc2tzGAUgAygLMg0uY2hhbmdlcy5SaXNrEhIKCm51bUxvd1Jpc2sYBiABKAUSFQoNbnVtTWVkaXVtUmlzaxgHIAEoBRITCgtudW1IaWdoUmlzaxgIIAEoBSJRChZHZXRDaGFuZ2VSaXNrc1Jlc3BvbnNlEjcKEmNoYW5nZVJpc2tNZXRhZGF0YRgBIAEoCzIbLmNoYW5nZXMuQ2hhbmdlUmlza01ldGFkYXRhIlIKE1VwZGF0ZUNoYW5nZVJlcXVlc3QSDAoEVVVJRBgBIAEoDBItCgpwcm9wZXJ0aWVzGAIgASgLMhkuY2hhbmdlcy5DaGFuZ2VQcm9wZXJ0aWVzIjcKFFVwZGF0ZUNoYW5nZVJlc3BvbnNlEh8KBmNoYW5nZRgBIAEoCzIPLmNoYW5nZXMuQ2hhbmdlIiMKE0RlbGV0ZUNoYW5nZVJlcXVlc3QSDAoEVVVJRBgBIAEoDCIwCiBMaXN0Q2hhbmdlc0J5U25hcHNob3RVVUlEUmVxdWVzdBIMCgRVVUlEGAEgASgMIkUKIUxpc3RDaGFuZ2VzQnlTbmFwc2hvdFVVSURSZXNwb25zZRIgCgdjaGFuZ2VzGAEgAygLMg8uY2hhbmdlcy5DaGFuZ2UiFgoURGVsZXRlQ2hhbmdlUmVzcG9uc2UiFQoTUmVmcmVzaFN0YXRlUmVxdWVzdCIWChRSZWZyZXNoU3RhdGVSZXNwb25zZSJAChtDYWxjdWxhdGVCbGFzdFJhZGl1c1JlcXVlc3QSEgoKY2hhbmdlVVVJRBgBIAEoDBINCgVmb3JjZRgCIAEoCCL/AQocQ2FsY3VsYXRlQmxhc3RSYWRpdXNSZXNwb25zZRI6CgVzdGF0ZRgBIAEoDjIrLmNoYW5nZXMuQ2FsY3VsYXRlQmxhc3RSYWRpdXNSZXNwb25zZS5TdGF0ZRIQCghudW1JdGVtcxgCIAEoDRIQCghudW1FZGdlcxgDIAEoDRIOCgZlcnJvcnMYBCADKAkibwoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIVChFTVEFURV9ESVNDT1ZFUklORxABEhAKDFNUQVRFX1NBVklORxACEhYKElNUQVRFX0ZJTkRJTkdfQVBQUxADEg4KClNUQVRFX0RPTkUQBCIoChJTdGFydENoYW5nZVJlcXVlc3QSEgoKY2hhbmdlVVVJRBgBIAEoDCLSAQoTU3RhcnRDaGFuZ2VSZXNwb25zZRIxCgVzdGF0ZRgBIAEoDjIiLmNoYW5nZXMuU3RhcnRDaGFuZ2VSZXNwb25zZS5TdGF0ZRIQCghudW1JdGVtcxgCIAEoDRIQCghOdW1FZGdlcxgDIAEoDSJkCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEhkKFVNUQVRFX1RBS0lOR19TTkFQU0hPVBABEhkKFVNUQVRFX1NBVklOR19TTkFQU0hPVBACEg4KClNUQVRFX0RPTkUQAyImChBFbmRDaGFuZ2VSZXF1ZXN0EhIKCmNoYW5nZVVVSUQYASABKAwizgEKEUVuZENoYW5nZVJlc3BvbnNlEi8KBXN0YXRlGAEgASgOMiAuY2hhbmdlcy5FbmRDaGFuZ2VSZXNwb25zZS5TdGF0ZRIQCghudW1JdGVtcxgCIAEoDRIQCghOdW1FZGdlcxgDIAEoDSJkCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEhkKFVNUQVRFX1RBS0lOR19TTkFQU0hPVBABEhkKFVNUQVRFX1NBVklOR19TTkFQU0hPVBACEg4KClNUQVRFX0RPTkUQAyJuCgpPbmJvYXJkaW5nEi0KCG1ldGFkYXRhGAEgASgLMhsuY2hhbmdlcy5PbmJvYXJkaW5nTWV0YWRhdGESMQoKcHJvcGVydGllcxgCIAEoCzIdLmNoYW5nZXMuT25ib2FyZGluZ1Byb3BlcnRpZXMiVwoST25ib2FyZGluZ01ldGFkYXRhEisKB2NyZWF0ZWQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhQKDGhhc0F3c1NvdXJjZRgDIAEoCCKDAQoUT25ib2FyZGluZ1Byb3BlcnRpZXMSKQoGc3RhdHVzGAEgASgOMhkuY2hhbmdlcy5PbmJvYXJkaW5nU3RhdHVzEhUKDWF3c1NvdXJjZVVVSUQYAiABKAwSDwoHYXBwVVVJRBgDIAEoDBISCgpjaGFuZ2VVVUlEGAQgASgMSgQIBRAGIhYKFEdldE9uYm9hcmRpbmdSZXF1ZXN0IkAKFUdldE9uYm9hcmRpbmdSZXNwb25zZRInCgpvbmJvYXJkaW5nGAEgASgLMhMuY2hhbmdlcy5PbmJvYXJkaW5nIkwKF1VwZGF0ZU9uYm9hcmRpbmdSZXF1ZXN0EjEKCnByb3BlcnRpZXMYAiABKAsyHS5jaGFuZ2VzLk9uYm9hcmRpbmdQcm9wZXJ0aWVzIkMKGFVwZGF0ZU9uYm9hcmRpbmdSZXNwb25zZRInCgpvbmJvYXJkaW5nGAEgASgLMhMuY2hhbmdlcy5PbmJvYXJkaW5nIisKFVNpbXVsYXRlQ2hhbmdlUmVxdWVzdBISCgpjaGFuZ2VVVUlEGAEgASgMIj8KFlNpbXVsYXRlQ2hhbmdlUmVzcG9uc2USDAoEZG9uZRgBIAEoCBIXCg9wZXJjZW50Q29tcGxldGUYAiABKA0i5AEKBFJpc2sSDAoEVVVJRBgFIAEoDBINCgV0aXRsZRgBIAEoCRIoCghzZXZlcml0eRgCIAEoDjIWLmNoYW5nZXMuUmlzay5TZXZlcml0eRITCgtkZXNjcmlwdGlvbhgDIAEoCRIgCgxyZWxhdGVkSXRlbXMYBCADKAsyCi5SZWZlcmVuY2UiXgoIU2V2ZXJpdHkSGAoUU0VWRVJJVFlfVU5TUEVDSUZJRUQQABIQCgxTRVZFUklUWV9MT1cQARITCg9TRVZFUklUWV9NRURJVU0QAhIRCg1TRVZFUklUWV9ISUdIEAMi7AMKFVJpc2tDYWxjdWxhdGlvblN0YXR1cxI1CgZzdGF0dXMYASABKA4yJS5jaGFuZ2VzLlJpc2tDYWxjdWxhdGlvblN0YXR1cy5TdGF0dXMSTAoScHJvZ3Jlc3NNaWxlc3RvbmVzGAUgAygLMjAuY2hhbmdlcy5SaXNrQ2FsY3VsYXRpb25TdGF0dXMuUHJvZ3Jlc3NNaWxlc3RvbmUa3QEKEVByb2dyZXNzTWlsZXN0b25lEhMKC2Rlc2NyaXB0aW9uGAEgASgJEkcKBnN0YXR1cxgCIAEoDjI3LmNoYW5nZXMuUmlza0NhbGN1bGF0aW9uU3RhdHVzLlByb2dyZXNzTWlsZXN0b25lLlN0YXR1cyJqCgZTdGF0dXMSEgoOU1RBVFVTX1BFTkRJTkcQABIVChFTVEFUVVNfSU5QUk9HUkVTUxABEg8KC1NUQVRVU19ET05FEAISEAoMU1RBVFVTX0VSUk9SEAMSEgoOU1RBVFVTX1NLSVBQRUQQBCJuCgZTdGF0dXMSFgoSU1RBVFVTX1VOU1BFQ0lGSUVEEAASFQoRU1RBVFVTX0lOUFJPR1JFU1MQARISCg5TVEFUVVNfU0tJUFBFRBACEg8KC1NUQVRVU19ET05FEAMSEAoMU1RBVFVTX0VSUk9SEAQi/wMKDUNoYW5nZUFyY2hpdmUSHwoGQ2hhbmdlGAEgASgLMg8uY2hhbmdlcy5DaGFuZ2USNwoVY2hhbmdpbmdJdGVtc0Jvb2ttYXJrGAIgASgLMhMuYm9va21hcmtzLkJvb2ttYXJrSACIAQESNQoTYmxhc3RSYWRpdXNTbmFwc2hvdBgDIAEoCzITLnNuYXBzaG90cy5TbmFwc2hvdEgBiAEBEjYKFHN5c3RlbUJlZm9yZVNuYXBzaG90GAQgASgLMhMuc25hcHNob3RzLlNuYXBzaG90SAKIAQESNQoTc3lzdGVtQWZ0ZXJTbmFwc2hvdBgFIAEoCzITLnNuYXBzaG90cy5TbmFwc2hvdEgDiAEBEiIKDGFmZmVjdGVkQXBwcxgGIAMoCzIMLmNoYW5nZXMuQXBwEi4KCHRpbWVsaW5lGAcgAygLMhwuY2hhbmdlcy5DaGFuZ2VUaW1lbGluZUVudHJ5EjcKEmNoYW5nZVJpc2tNZXRhZGF0YRgIIAEoCzIbLmNoYW5nZXMuQ2hhbmdlUmlza01ldGFkYXRhQhgKFl9jaGFuZ2luZ0l0ZW1zQm9va21hcmtCFgoUX2JsYXN0UmFkaXVzU25hcHNob3RCFwoVX3N5c3RlbUJlZm9yZVNuYXBzaG90QhYKFF9zeXN0ZW1BZnRlclNuYXBzaG90IicKF0dldENoYW5nZUFyY2hpdmVSZXF1ZXN0EgwKBFVVSUQYASABKAwiSQoYR2V0Q2hhbmdlQXJjaGl2ZVJlc3BvbnNlEi0KDWNoYW5nZUFyY2hpdmUYASABKAsyFi5jaGFuZ2VzLkNoYW5nZUFyY2hpdmUqywEKDkl0ZW1EaWZmU3RhdHVzEiAKHElURU1fRElGRl9TVEFUVVNfVU5TUEVDSUZJRUQQABIeChpJVEVNX0RJRkZfU1RBVFVTX1VOQ0hBTkdFRBABEhwKGElURU1fRElGRl9TVEFUVVNfQ1JFQVRFRBACEhwKGElURU1fRElGRl9TVEFUVVNfVVBEQVRFRBADEhwKGElURU1fRElGRl9TVEFUVVNfREVMRVRFRBAEEh0KGUlURU1fRElGRl9TVEFUVVNfUkVQTEFDRUQQBSqcAQoMQ2hhbmdlU3RhdHVzEh0KGUNIQU5HRV9TVEFUVVNfVU5TUEVDSUZJRUQQABIaChZDSEFOR0VfU1RBVFVTX0RFRklOSU5HEAESGwoXQ0hBTkdFX1NUQVRVU19IQVBQRU5JTkcQAhIcChhDSEFOR0VfU1RBVFVTX1BST0NFU1NJTkcQAxIWChJDSEFOR0VfU1RBVFVTX0RPTkUQBCrjAQoQT25ib2FyZGluZ1N0YXR1cxIhCh1PTkJPQVJESU5HX1NUQVRVU19VTlNQRUNJRklFRBAAEiUKIU9OQk9BUkRJTkdfU1RBVFVTX0FERF9BV1NfQUNDT1VOVBABEh0KGU9OQk9BUkRJTkdfU1RBVFVTX0FERF9BUFAQAhIjCh9PTkJPQVJESU5HX1NUQVRVU19DUkVBVEVfQ0hBTkdFEAMSJQohT05CT0FSRElOR19TVEFUVVNfU0lNVUxBVEVfQ0hBTkdFEAQSGgoWT05CT0FSRElOR19TVEFUVVNfRE9ORRAFMoIXCg5DaGFuZ2VzU2VydmljZRI/CghMaXN0QXBwcxIYLmNoYW5nZXMuTGlzdEFwcHNSZXF1ZXN0GhkuY2hhbmdlcy5MaXN0QXBwc1Jlc3BvbnNlEkIKCUNyZWF0ZUFwcBIZLmNoYW5nZXMuQ3JlYXRlQXBwUmVxdWVzdBoaLmNoYW5nZXMuQ3JlYXRlQXBwUmVzcG9uc2USVAoPQ3JlYXRlU2ltcGxlQXBwEh8uY2hhbmdlcy5DcmVhdGVTaW1wbGVBcHBSZXF1ZXN0GiAuY2hhbmdlcy5DcmVhdGVTaW1wbGVBcHBSZXNwb25zZRI5CgZHZXRBcHASFi5jaGFuZ2VzLkdldEFwcFJlcXVlc3QaFy5jaGFuZ2VzLkdldEFwcFJlc3BvbnNlEkIKCVVwZGF0ZUFwcBIZLmNoYW5nZXMuVXBkYXRlQXBwUmVxdWVzdBoaLmNoYW5nZXMuVXBkYXRlQXBwUmVzcG9uc2USQgoJRGVsZXRlQXBwEhkuY2hhbmdlcy5EZWxldGVBcHBSZXF1ZXN0GhouY2hhbmdlcy5EZWxldGVBcHBSZXNwb25zZRJICgtMaXN0Q2hhbmdlcxIbLmNoYW5nZXMuTGlzdENoYW5nZXNSZXF1ZXN0GhwuY2hhbmdlcy5MaXN0Q2hhbmdlc1Jlc3BvbnNlEmAKE0xpc3RDaGFuZ2VzQnlTdGF0dXMSIy5jaGFuZ2VzLkxpc3RDaGFuZ2VzQnlTdGF0dXNSZXF1ZXN0GiQuY2hhbmdlcy5MaXN0Q2hhbmdlc0J5U3RhdHVzUmVzcG9uc2USSwoMQ3JlYXRlQ2hhbmdlEhwuY2hhbmdlcy5DcmVhdGVDaGFuZ2VSZXF1ZXN0Gh0uY2hhbmdlcy5DcmVhdGVDaGFuZ2VSZXNwb25zZRJCCglHZXRDaGFuZ2USGS5jaGFuZ2VzLkdldENoYW5nZVJlcXVlc3QaGi5jaGFuZ2VzLkdldENoYW5nZVJlc3BvbnNlElEKDkdldENoYW5nZVJpc2tzEh4uY2hhbmdlcy5HZXRDaGFuZ2VSaXNrc1JlcXVlc3QaHy5jaGFuZ2VzLkdldENoYW5nZVJpc2tzUmVzcG9uc2USVwoQR2V0Q2hhbmdlQXJjaGl2ZRIgLmNoYW5nZXMuR2V0Q2hhbmdlQXJjaGl2ZVJlcXVlc3QaIS5jaGFuZ2VzLkdldENoYW5nZUFyY2hpdmVSZXNwb25zZRJLCgxVcGRhdGVDaGFuZ2USHC5jaGFuZ2VzLlVwZGF0ZUNoYW5nZVJlcXVlc3QaHS5jaGFuZ2VzLlVwZGF0ZUNoYW5nZVJlc3BvbnNlEksKDERlbGV0ZUNoYW5nZRIcLmNoYW5nZXMuRGVsZXRlQ2hhbmdlUmVxdWVzdBodLmNoYW5nZXMuRGVsZXRlQ2hhbmdlUmVzcG9uc2UScgoZTGlzdENoYW5nZXNCeVNuYXBzaG90VVVJRBIpLmNoYW5nZXMuTGlzdENoYW5nZXNCeVNuYXBzaG90VVVJRFJlcXVlc3QaKi5jaGFuZ2VzLkxpc3RDaGFuZ2VzQnlTbmFwc2hvdFVVSURSZXNwb25zZRJaChFHZXRDaGFuZ2VUaW1lbGluZRIhLmNoYW5nZXMuR2V0Q2hhbmdlVGltZWxpbmVSZXF1ZXN0GiIuY2hhbmdlcy5HZXRDaGFuZ2VUaW1lbGluZVJlc3BvbnNlEksKDFJlZnJlc2hTdGF0ZRIcLmNoYW5nZXMuUmVmcmVzaFN0YXRlUmVxdWVzdBodLmNoYW5nZXMuUmVmcmVzaFN0YXRlUmVzcG9uc2USZQoUQ2FsY3VsYXRlQmxhc3RSYWRpdXMSJC5jaGFuZ2VzLkNhbGN1bGF0ZUJsYXN0UmFkaXVzUmVxdWVzdBolLmNoYW5nZXMuQ2FsY3VsYXRlQmxhc3RSYWRpdXNSZXNwb25zZTABEkoKC1N0YXJ0Q2hhbmdlEhsuY2hhbmdlcy5TdGFydENoYW5nZVJlcXVlc3QaHC5jaGFuZ2VzLlN0YXJ0Q2hhbmdlUmVzcG9uc2UwARJECglFbmRDaGFuZ2USGS5jaGFuZ2VzLkVuZENoYW5nZVJlcXVlc3QaGi5jaGFuZ2VzLkVuZENoYW5nZVJlc3BvbnNlMAESUwoOU2ltdWxhdGVDaGFuZ2USHi5jaGFuZ2VzLlNpbXVsYXRlQ2hhbmdlUmVxdWVzdBofLmNoYW5nZXMuU2ltdWxhdGVDaGFuZ2VSZXNwb25zZTABEk4KDUdldE9uYm9hcmRpbmcSHS5jaGFuZ2VzLkdldE9uYm9hcmRpbmdSZXF1ZXN0Gh4uY2hhbmdlcy5HZXRPbmJvYXJkaW5nUmVzcG9uc2USVwoQVXBkYXRlT25ib2FyZGluZxIgLmNoYW5nZXMuVXBkYXRlT25ib2FyZGluZ1JlcXVlc3QaIS5jaGFuZ2VzLlVwZGF0ZU9uYm9hcmRpbmdSZXNwb25zZRJLCgxMaXN0SG9tZUFwcHMSHC5jaGFuZ2VzLkxpc3RIb21lQXBwc1JlcXVlc3QaHS5jaGFuZ2VzLkxpc3RIb21lQXBwc1Jlc3BvbnNlElQKD0xpc3RIb21lQ2hhbmdlcxIfLmNoYW5nZXMuTGlzdEhvbWVDaGFuZ2VzUmVxdWVzdBogLmNoYW5nZXMuTGlzdEhvbWVDaGFuZ2VzUmVzcG9uc2USTgoNR2V0QXBwU3VtbWFyeRIdLmNoYW5nZXMuR2V0QXBwU3VtbWFyeVJlcXVlc3QaHi5jaGFuZ2VzLkdldEFwcFN1bW1hcnlSZXNwb25zZRJUCg9HZXRBcHBTdW1tYXJpZXMSHy5jaGFuZ2VzLkdldEFwcFN1bW1hcmllc1JlcXVlc3QaIC5jaGFuZ2VzLkdldEFwcFN1bW1hcmllc1Jlc3BvbnNlElEKDkxpc3RBcHBDaGFuZ2VzEh4uY2hhbmdlcy5MaXN0QXBwQ2hhbmdlc1JlcXVlc3QaHy5jaGFuZ2VzLkxpc3RBcHBDaGFuZ2VzUmVzcG9uc2USZgoVTGlzdEFwcENoYW5nZXNTdW1tYXJ5EiUuY2hhbmdlcy5MaXN0QXBwQ2hhbmdlc1N1bW1hcnlSZXF1ZXN0GiYuY2hhbmdlcy5MaXN0QXBwQ2hhbmdlc1N1bW1hcnlSZXNwb25zZRJjChNVcGRhdGVDaGFuZ2luZ0l0ZW1zEiMuY2hhbmdlcy5VcGRhdGVDaGFuZ2luZ0l0ZW1zUmVxdWVzdBolLmNoYW5nZXMuQ2FsY3VsYXRlQmxhc3RSYWRpdXNSZXNwb25zZTABEmUKFFVwZGF0ZVBsYW5uZWRDaGFuZ2VzEiQuY2hhbmdlcy5VcGRhdGVQbGFubmVkQ2hhbmdlc1JlcXVlc3QaJS5jaGFuZ2VzLkNhbGN1bGF0ZUJsYXN0UmFkaXVzUmVzcG9uc2UwARJUCg9HZXRBZmZlY3RlZEFwcHMSHy5jaGFuZ2VzLkdldEFmZmVjdGVkQXBwc1JlcXVlc3QaIC5jaGFuZ2VzLkdldEFmZmVjdGVkQXBwc1Jlc3BvbnNlEm8KGExpc3RDaGFuZ2luZ0l0ZW1zU3VtbWFyeRIoLmNoYW5nZXMuTGlzdENoYW5naW5nSXRlbXNTdW1tYXJ5UmVxdWVzdBopLmNoYW5nZXMuTGlzdENoYW5naW5nSXRlbXNTdW1tYXJ5UmVzcG9uc2USPAoHR2V0RGlmZhIXLmNoYW5nZXMuR2V0RGlmZlJlcXVlc3QaGC5jaGFuZ2VzLkdldERpZmZSZXNwb25zZRJmChVQb3B1bGF0ZUNoYW5nZUZpbHRlcnMSJS5jaGFuZ2VzLlBvcHVsYXRlQ2hhbmdlRmlsdGVyc1JlcXVlc3QaJi5jaGFuZ2VzLlBvcHVsYXRlQ2hhbmdlRmlsdGVyc1Jlc3BvbnNlQiRaImdpdGh1Yi5jb20vb3Zlcm1pbmR0ZWNoL3NkcC1nbztzZHBiBnByb3RvMw", [file_google_protobuf_timestamp, file_bookmarks, file_items, file_snapshots, file_config, file_util]); /** * @generated from message changes.GetChangeTimelineRequest */ -export class GetChangeTimelineRequest extends Message { +export type GetChangeTimelineRequest = Message<"changes.GetChangeTimelineRequest"> & { /** * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + changeUUID: Uint8Array; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetChangeTimelineRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChangeTimelineRequest { - return new GetChangeTimelineRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChangeTimelineRequest { - return new GetChangeTimelineRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetChangeTimelineRequest { - return new GetChangeTimelineRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetChangeTimelineRequest | PlainMessage | undefined, b: GetChangeTimelineRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChangeTimelineRequest, a, b); - } -} +/** + * Describes the message changes.GetChangeTimelineRequest. + * Use `create(GetChangeTimelineRequestSchema)` to create a new message. + */ +export const GetChangeTimelineRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 0); /** * @generated from message changes.GetChangeTimelineResponse */ -export class GetChangeTimelineResponse extends Message { +export type GetChangeTimelineResponse = Message<"changes.GetChangeTimelineResponse"> & { /** * @generated from field: repeated changes.ChangeTimelineEntry entries = 1; */ - entries: ChangeTimelineEntry[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + entries: ChangeTimelineEntry[]; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetChangeTimelineResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "entries", kind: "message", T: ChangeTimelineEntry, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChangeTimelineResponse { - return new GetChangeTimelineResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChangeTimelineResponse { - return new GetChangeTimelineResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetChangeTimelineResponse { - return new GetChangeTimelineResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetChangeTimelineResponse | PlainMessage | undefined, b: GetChangeTimelineResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChangeTimelineResponse, a, b); - } -} +/** + * Describes the message changes.GetChangeTimelineResponse. + * Use `create(GetChangeTimelineResponseSchema)` to create a new message. + */ +export const GetChangeTimelineResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 1); /** * @generated from message changes.ChangeTimelineEntry */ -export class ChangeTimelineEntry extends Message { +export type ChangeTimelineEntry = Message<"changes.ChangeTimelineEntry"> & { /** * The status that this event should be associated with. Usually this would be * the status that the changed ended up in as a result of this action * * @generated from field: changes.ChangeStatus status = 1; */ - status = ChangeStatus.UNSPECIFIED; + status: ChangeStatus; /** * The message that describes this event * * @generated from field: string statusMessage = 2; */ - statusMessage = ""; + statusMessage: string; /** * The time that this event happened @@ -256,336 +89,169 @@ export class ChangeTimelineEntry extends Message { * * @generated from field: string actorName = 4; */ - actorName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ChangeTimelineEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(ChangeStatus) }, - { no: 2, name: "statusMessage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "happenedAt", kind: "message", T: Timestamp }, - { no: 4, name: "actorName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeTimelineEntry { - return new ChangeTimelineEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeTimelineEntry { - return new ChangeTimelineEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeTimelineEntry { - return new ChangeTimelineEntry().fromJsonString(jsonString, options); - } - - static equals(a: ChangeTimelineEntry | PlainMessage | undefined, b: ChangeTimelineEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeTimelineEntry, a, b); - } -} + actorName: string; +}; + +/** + * Describes the message changes.ChangeTimelineEntry. + * Use `create(ChangeTimelineEntrySchema)` to create a new message. + */ +export const ChangeTimelineEntrySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 2); /** * @generated from message changes.GetDiffRequest */ -export class GetDiffRequest extends Message { +export type GetDiffRequest = Message<"changes.GetDiffRequest"> & { /** * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetDiffRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDiffRequest { - return new GetDiffRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDiffRequest { - return new GetDiffRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDiffRequest { - return new GetDiffRequest().fromJsonString(jsonString, options); - } + changeUUID: Uint8Array; +}; - static equals(a: GetDiffRequest | PlainMessage | undefined, b: GetDiffRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDiffRequest, a, b); - } -} +/** + * Describes the message changes.GetDiffRequest. + * Use `create(GetDiffRequestSchema)` to create a new message. + */ +export const GetDiffRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 3); /** * @generated from message changes.GetDiffResponse */ -export class GetDiffResponse extends Message { +export type GetDiffResponse = Message<"changes.GetDiffResponse"> & { /** * Items that were planned to be changed, and were changed * * @generated from field: repeated changes.ItemDiff expectedItems = 1; */ - expectedItems: ItemDiff[] = []; + expectedItems: ItemDiff[]; /** * Items that were changed, but were not planned to be changed * * @generated from field: repeated changes.ItemDiff unexpectedItems = 3; */ - unexpectedItems: ItemDiff[] = []; + unexpectedItems: ItemDiff[]; /** * @generated from field: repeated Edge edges = 2; */ - edges: Edge[] = []; + edges: Edge[]; /** * Items that were planned to be changed, but were not changed * * @generated from field: repeated changes.ItemDiff missingItems = 4; */ - missingItems: ItemDiff[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetDiffResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "expectedItems", kind: "message", T: ItemDiff, repeated: true }, - { no: 3, name: "unexpectedItems", kind: "message", T: ItemDiff, repeated: true }, - { no: 2, name: "edges", kind: "message", T: Edge, repeated: true }, - { no: 4, name: "missingItems", kind: "message", T: ItemDiff, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDiffResponse { - return new GetDiffResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDiffResponse { - return new GetDiffResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDiffResponse { - return new GetDiffResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetDiffResponse | PlainMessage | undefined, b: GetDiffResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDiffResponse, a, b); - } -} + missingItems: ItemDiff[]; +}; + +/** + * Describes the message changes.GetDiffResponse. + * Use `create(GetDiffResponseSchema)` to create a new message. + */ +export const GetDiffResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 4); /** * @generated from message changes.ListChangingItemsSummaryRequest */ -export class ListChangingItemsSummaryRequest extends Message { +export type ListChangingItemsSummaryRequest = Message<"changes.ListChangingItemsSummaryRequest"> & { /** * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + changeUUID: Uint8Array; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListChangingItemsSummaryRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListChangingItemsSummaryRequest { - return new ListChangingItemsSummaryRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListChangingItemsSummaryRequest { - return new ListChangingItemsSummaryRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListChangingItemsSummaryRequest { - return new ListChangingItemsSummaryRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListChangingItemsSummaryRequest | PlainMessage | undefined, b: ListChangingItemsSummaryRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListChangingItemsSummaryRequest, a, b); - } -} +/** + * Describes the message changes.ListChangingItemsSummaryRequest. + * Use `create(ListChangingItemsSummaryRequestSchema)` to create a new message. + */ +export const ListChangingItemsSummaryRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 5); /** * @generated from message changes.ListChangingItemsSummaryResponse */ -export class ListChangingItemsSummaryResponse extends Message { +export type ListChangingItemsSummaryResponse = Message<"changes.ListChangingItemsSummaryResponse"> & { /** * @generated from field: repeated changes.ItemDiffSummary items = 1; */ - items: ItemDiffSummary[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + items: ItemDiffSummary[]; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListChangingItemsSummaryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "items", kind: "message", T: ItemDiffSummary, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListChangingItemsSummaryResponse { - return new ListChangingItemsSummaryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListChangingItemsSummaryResponse { - return new ListChangingItemsSummaryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListChangingItemsSummaryResponse { - return new ListChangingItemsSummaryResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListChangingItemsSummaryResponse | PlainMessage | undefined, b: ListChangingItemsSummaryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListChangingItemsSummaryResponse, a, b); - } -} +/** + * Describes the message changes.ListChangingItemsSummaryResponse. + * Use `create(ListChangingItemsSummaryResponseSchema)` to create a new message. + */ +export const ListChangingItemsSummaryResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 6); /** * @generated from message changes.GetAffectedAppsRequest */ -export class GetAffectedAppsRequest extends Message { +export type GetAffectedAppsRequest = Message<"changes.GetAffectedAppsRequest"> & { /** * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + changeUUID: Uint8Array; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetAffectedAppsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAffectedAppsRequest { - return new GetAffectedAppsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAffectedAppsRequest { - return new GetAffectedAppsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAffectedAppsRequest { - return new GetAffectedAppsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAffectedAppsRequest | PlainMessage | undefined, b: GetAffectedAppsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAffectedAppsRequest, a, b); - } -} +/** + * Describes the message changes.GetAffectedAppsRequest. + * Use `create(GetAffectedAppsRequestSchema)` to create a new message. + */ +export const GetAffectedAppsRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 7); /** * @generated from message changes.GetAffectedAppsResponse */ -export class GetAffectedAppsResponse extends Message { +export type GetAffectedAppsResponse = Message<"changes.GetAffectedAppsResponse"> & { /** * @generated from field: repeated changes.AppSummary apps = 1; */ - apps: AppSummary[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + apps: AppSummary[]; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetAffectedAppsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "apps", kind: "message", T: AppSummary, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAffectedAppsResponse { - return new GetAffectedAppsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAffectedAppsResponse { - return new GetAffectedAppsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAffectedAppsResponse { - return new GetAffectedAppsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAffectedAppsResponse | PlainMessage | undefined, b: GetAffectedAppsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAffectedAppsResponse, a, b); - } -} +/** + * Describes the message changes.GetAffectedAppsResponse. + * Use `create(GetAffectedAppsResponseSchema)` to create a new message. + */ +export const GetAffectedAppsResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 8); /** * @generated from message changes.UpdateChangingItemsRequest */ -export class UpdateChangingItemsRequest extends Message { +export type UpdateChangingItemsRequest = Message<"changes.UpdateChangingItemsRequest"> & { /** * The change to update * * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); + changeUUID: Uint8Array; /** * References to the items that are changing * * @generated from field: repeated Reference changingItems = 2; */ - changingItems: Reference[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + changingItems: Reference[]; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.UpdateChangingItemsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "changingItems", kind: "message", T: Reference, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateChangingItemsRequest { - return new UpdateChangingItemsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateChangingItemsRequest { - return new UpdateChangingItemsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateChangingItemsRequest { - return new UpdateChangingItemsRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateChangingItemsRequest | PlainMessage | undefined, b: UpdateChangingItemsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateChangingItemsRequest, a, b); - } -} +/** + * Describes the message changes.UpdateChangingItemsRequest. + * Use `create(UpdateChangingItemsRequestSchema)` to create a new message. + */ +export const UpdateChangingItemsRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 9); /** * @generated from message changes.MappedItemDiff */ -export class MappedItemDiff extends Message { +export type MappedItemDiff = Message<"changes.MappedItemDiff"> & { /** * The item that is changing and any known changes to it * @@ -600,53 +266,32 @@ export class MappedItemDiff extends Message { * @generated from field: optional Query mappingQuery = 2; */ mappingQuery?: Query; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.MappedItemDiff"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "item", kind: "message", T: ItemDiff }, - { no: 2, name: "mappingQuery", kind: "message", T: Query, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MappedItemDiff { - return new MappedItemDiff().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MappedItemDiff { - return new MappedItemDiff().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MappedItemDiff { - return new MappedItemDiff().fromJsonString(jsonString, options); - } - - static equals(a: MappedItemDiff | PlainMessage | undefined, b: MappedItemDiff | PlainMessage | undefined): boolean { - return proto3.util.equals(MappedItemDiff, a, b); - } -} +/** + * Describes the message changes.MappedItemDiff. + * Use `create(MappedItemDiffSchema)` to create a new message. + */ +export const MappedItemDiffSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 10); /** * @generated from message changes.UpdatePlannedChangesRequest */ -export class UpdatePlannedChangesRequest extends Message { +export type UpdatePlannedChangesRequest = Message<"changes.UpdatePlannedChangesRequest"> & { /** * The change to update * * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); + changeUUID: Uint8Array; /** * the changing items * * @generated from field: repeated changes.MappedItemDiff changingItems = 2; */ - changingItems: MappedItemDiff[] = []; + changingItems: MappedItemDiff[]; /** * Overrides the stored blast radius config for this change @@ -654,263 +299,121 @@ export class UpdatePlannedChangesRequest extends Message) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.UpdatePlannedChangesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "changingItems", kind: "message", T: MappedItemDiff, repeated: true }, - { no: 3, name: "blastRadiusConfigOverride", kind: "message", T: BlastRadiusConfig, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdatePlannedChangesRequest { - return new UpdatePlannedChangesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdatePlannedChangesRequest { - return new UpdatePlannedChangesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdatePlannedChangesRequest { - return new UpdatePlannedChangesRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdatePlannedChangesRequest | PlainMessage | undefined, b: UpdatePlannedChangesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdatePlannedChangesRequest, a, b); - } -} +/** + * Describes the message changes.UpdatePlannedChangesRequest. + * Use `create(UpdatePlannedChangesRequestSchema)` to create a new message. + */ +export const UpdatePlannedChangesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 11); /** * @generated from message changes.ListAppChangesSummaryRequest */ -export class ListAppChangesSummaryRequest extends Message { +export type ListAppChangesSummaryRequest = Message<"changes.ListAppChangesSummaryRequest"> & { /** * @generated from field: bytes appUUID = 1; */ - appUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListAppChangesSummaryRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "appUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAppChangesSummaryRequest { - return new ListAppChangesSummaryRequest().fromBinary(bytes, options); - } + appUUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ListAppChangesSummaryRequest { - return new ListAppChangesSummaryRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAppChangesSummaryRequest { - return new ListAppChangesSummaryRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListAppChangesSummaryRequest | PlainMessage | undefined, b: ListAppChangesSummaryRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAppChangesSummaryRequest, a, b); - } -} +/** + * Describes the message changes.ListAppChangesSummaryRequest. + * Use `create(ListAppChangesSummaryRequestSchema)` to create a new message. + */ +export const ListAppChangesSummaryRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 12); /** * @generated from message changes.ListAppChangesSummaryResponse */ -export class ListAppChangesSummaryResponse extends Message { +export type ListAppChangesSummaryResponse = Message<"changes.ListAppChangesSummaryResponse"> & { /** * @generated from field: repeated changes.ChangeSummary changes = 1; */ - changes: ChangeSummary[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListAppChangesSummaryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changes", kind: "message", T: ChangeSummary, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAppChangesSummaryResponse { - return new ListAppChangesSummaryResponse().fromBinary(bytes, options); - } + changes: ChangeSummary[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ListAppChangesSummaryResponse { - return new ListAppChangesSummaryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAppChangesSummaryResponse { - return new ListAppChangesSummaryResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListAppChangesSummaryResponse | PlainMessage | undefined, b: ListAppChangesSummaryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAppChangesSummaryResponse, a, b); - } -} +/** + * Describes the message changes.ListAppChangesSummaryResponse. + * Use `create(ListAppChangesSummaryResponseSchema)` to create a new message. + */ +export const ListAppChangesSummaryResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 13); /** * @generated from message changes.GetAppSummaryRequest */ -export class GetAppSummaryRequest extends Message { +export type GetAppSummaryRequest = Message<"changes.GetAppSummaryRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetAppSummaryRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAppSummaryRequest { - return new GetAppSummaryRequest().fromBinary(bytes, options); - } + UUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): GetAppSummaryRequest { - return new GetAppSummaryRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAppSummaryRequest { - return new GetAppSummaryRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAppSummaryRequest | PlainMessage | undefined, b: GetAppSummaryRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAppSummaryRequest, a, b); - } -} +/** + * Describes the message changes.GetAppSummaryRequest. + * Use `create(GetAppSummaryRequestSchema)` to create a new message. + */ +export const GetAppSummaryRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 14); /** * @generated from message changes.GetAppSummaryResponse */ -export class GetAppSummaryResponse extends Message { +export type GetAppSummaryResponse = Message<"changes.GetAppSummaryResponse"> & { /** * @generated from field: changes.AppSummary app = 1; */ app?: AppSummary; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetAppSummaryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "app", kind: "message", T: AppSummary }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAppSummaryResponse { - return new GetAppSummaryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAppSummaryResponse { - return new GetAppSummaryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAppSummaryResponse { - return new GetAppSummaryResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAppSummaryResponse | PlainMessage | undefined, b: GetAppSummaryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAppSummaryResponse, a, b); - } -} +/** + * Describes the message changes.GetAppSummaryResponse. + * Use `create(GetAppSummaryResponseSchema)` to create a new message. + */ +export const GetAppSummaryResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 15); /** * @generated from message changes.GetAppSummariesRequest */ -export class GetAppSummariesRequest extends Message { +export type GetAppSummariesRequest = Message<"changes.GetAppSummariesRequest"> & { /** * @generated from field: repeated bytes UUIDs = 1; */ - UUIDs: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetAppSummariesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUIDs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAppSummariesRequest { - return new GetAppSummariesRequest().fromBinary(bytes, options); - } + UUIDs: Uint8Array[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): GetAppSummariesRequest { - return new GetAppSummariesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAppSummariesRequest { - return new GetAppSummariesRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAppSummariesRequest | PlainMessage | undefined, b: GetAppSummariesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAppSummariesRequest, a, b); - } -} +/** + * Describes the message changes.GetAppSummariesRequest. + * Use `create(GetAppSummariesRequestSchema)` to create a new message. + */ +export const GetAppSummariesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 16); /** * @generated from message changes.GetAppSummariesResponse */ -export class GetAppSummariesResponse extends Message { +export type GetAppSummariesResponse = Message<"changes.GetAppSummariesResponse"> & { /** * @generated from field: repeated changes.AppSummary apps = 1; */ - apps: AppSummary[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetAppSummariesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "apps", kind: "message", T: AppSummary, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAppSummariesResponse { - return new GetAppSummariesResponse().fromBinary(bytes, options); - } + apps: AppSummary[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): GetAppSummariesResponse { - return new GetAppSummariesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAppSummariesResponse { - return new GetAppSummariesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAppSummariesResponse | PlainMessage | undefined, b: GetAppSummariesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAppSummariesResponse, a, b); - } -} +/** + * Describes the message changes.GetAppSummariesResponse. + * Use `create(GetAppSummariesResponseSchema)` to create a new message. + */ +export const GetAppSummariesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 17); /** * @generated from message changes.ListHomeChangesRequest */ -export class ListHomeChangesRequest extends Message { +export type ListHomeChangesRequest = Message<"changes.ListHomeChangesRequest"> & { /** * @generated from field: PaginationRequest pagination = 1; */ @@ -920,35 +423,14 @@ export class ListHomeChangesRequest extends Message { * @generated from field: optional changes.ChangeFiltersRequest filters = 2; */ filters?: ChangeFiltersRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListHomeChangesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PaginationRequest }, - { no: 2, name: "filters", kind: "message", T: ChangeFiltersRequest, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListHomeChangesRequest { - return new ListHomeChangesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListHomeChangesRequest { - return new ListHomeChangesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListHomeChangesRequest { - return new ListHomeChangesRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListHomeChangesRequest | PlainMessage | undefined, b: ListHomeChangesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListHomeChangesRequest, a, b); - } -} +/** + * Describes the message changes.ListHomeChangesRequest. + * Use `create(ListHomeChangesRequestSchema)` to create a new message. + */ +export const ListHomeChangesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 18); /** * ChangeFiltersRequest is used for filtering on the changes page. @@ -957,31 +439,31 @@ export class ListHomeChangesRequest extends Message { * * @generated from message changes.ChangeFiltersRequest */ -export class ChangeFiltersRequest extends Message { +export type ChangeFiltersRequest = Message<"changes.ChangeFiltersRequest"> & { /** * @generated from field: repeated string repos = 1; */ - repos: string[] = []; + repos: string[]; /** * @generated from field: map tags = 2; */ - tags: { [key: string]: string } = {}; + tags: { [key: string]: string }; /** * @generated from field: repeated changes.Risk.Severity risks = 3; */ - risks: Risk_Severity[] = []; + risks: Risk_Severity[]; /** * @generated from field: repeated string authors = 4; */ - authors: string[] = []; + authors: string[]; /** * @generated from field: repeated changes.ChangeStatus statuses = 5; */ - statuses: ChangeStatus[] = []; + statuses: ChangeStatus[]; /** * the default is SortOrder.DATE_DESCENDING (newest first) @@ -989,224 +471,101 @@ export class ChangeFiltersRequest extends Message { * @generated from field: optional SortOrder sortOrder = 6; */ sortOrder?: SortOrder; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ChangeFiltersRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "repos", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 3, name: "risks", kind: "enum", T: proto3.getEnumType(Risk_Severity), repeated: true }, - { no: 4, name: "authors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "statuses", kind: "enum", T: proto3.getEnumType(ChangeStatus), repeated: true }, - { no: 6, name: "sortOrder", kind: "enum", T: proto3.getEnumType(SortOrder), opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeFiltersRequest { - return new ChangeFiltersRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeFiltersRequest { - return new ChangeFiltersRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeFiltersRequest { - return new ChangeFiltersRequest().fromJsonString(jsonString, options); - } - - static equals(a: ChangeFiltersRequest | PlainMessage | undefined, b: ChangeFiltersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeFiltersRequest, a, b); - } -} +/** + * Describes the message changes.ChangeFiltersRequest. + * Use `create(ChangeFiltersRequestSchema)` to create a new message. + */ +export const ChangeFiltersRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 19); /** * @generated from message changes.ListHomeChangesResponse */ -export class ListHomeChangesResponse extends Message { +export type ListHomeChangesResponse = Message<"changes.ListHomeChangesResponse"> & { /** * @generated from field: repeated changes.ChangeSummary changes = 1; */ - changes: ChangeSummary[] = []; + changes: ChangeSummary[]; /** * @generated from field: PaginationResponse pagination = 2; */ pagination?: PaginationResponse; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListHomeChangesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changes", kind: "message", T: ChangeSummary, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PaginationResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListHomeChangesResponse { - return new ListHomeChangesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListHomeChangesResponse { - return new ListHomeChangesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListHomeChangesResponse { - return new ListHomeChangesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListHomeChangesResponse | PlainMessage | undefined, b: ListHomeChangesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListHomeChangesResponse, a, b); - } -} +/** + * Describes the message changes.ListHomeChangesResponse. + * Use `create(ListHomeChangesResponseSchema)` to create a new message. + */ +export const ListHomeChangesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 20); /** * @generated from message changes.PopulateChangeFiltersRequest */ -export class PopulateChangeFiltersRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.PopulateChangeFiltersRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PopulateChangeFiltersRequest { - return new PopulateChangeFiltersRequest().fromBinary(bytes, options); - } +export type PopulateChangeFiltersRequest = Message<"changes.PopulateChangeFiltersRequest"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): PopulateChangeFiltersRequest { - return new PopulateChangeFiltersRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PopulateChangeFiltersRequest { - return new PopulateChangeFiltersRequest().fromJsonString(jsonString, options); - } - - static equals(a: PopulateChangeFiltersRequest | PlainMessage | undefined, b: PopulateChangeFiltersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PopulateChangeFiltersRequest, a, b); - } -} +/** + * Describes the message changes.PopulateChangeFiltersRequest. + * Use `create(PopulateChangeFiltersRequestSchema)` to create a new message. + */ +export const PopulateChangeFiltersRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 21); /** * @generated from message changes.PopulateChangeFiltersResponse */ -export class PopulateChangeFiltersResponse extends Message { +export type PopulateChangeFiltersResponse = Message<"changes.PopulateChangeFiltersResponse"> & { /** * @generated from field: repeated string repos = 1; */ - repos: string[] = []; + repos: string[]; /** * @generated from field: repeated string authors = 2; */ - authors: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + authors: string[]; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.PopulateChangeFiltersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "repos", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "authors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PopulateChangeFiltersResponse { - return new PopulateChangeFiltersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PopulateChangeFiltersResponse { - return new PopulateChangeFiltersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PopulateChangeFiltersResponse { - return new PopulateChangeFiltersResponse().fromJsonString(jsonString, options); - } - - static equals(a: PopulateChangeFiltersResponse | PlainMessage | undefined, b: PopulateChangeFiltersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PopulateChangeFiltersResponse, a, b); - } -} +/** + * Describes the message changes.PopulateChangeFiltersResponse. + * Use `create(PopulateChangeFiltersResponseSchema)` to create a new message. + */ +export const PopulateChangeFiltersResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 22); /** * @generated from message changes.ListHomeAppsRequest */ -export class ListHomeAppsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListHomeAppsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListHomeAppsRequest { - return new ListHomeAppsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListHomeAppsRequest { - return new ListHomeAppsRequest().fromJson(jsonValue, options); - } +export type ListHomeAppsRequest = Message<"changes.ListHomeAppsRequest"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): ListHomeAppsRequest { - return new ListHomeAppsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListHomeAppsRequest | PlainMessage | undefined, b: ListHomeAppsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListHomeAppsRequest, a, b); - } -} +/** + * Describes the message changes.ListHomeAppsRequest. + * Use `create(ListHomeAppsRequestSchema)` to create a new message. + */ +export const ListHomeAppsRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 23); /** * @generated from message changes.ListHomeAppsResponse */ -export class ListHomeAppsResponse extends Message { +export type ListHomeAppsResponse = Message<"changes.ListHomeAppsResponse"> & { /** * @generated from field: repeated changes.AppSummary apps = 1; */ - apps: AppSummary[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListHomeAppsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "apps", kind: "message", T: AppSummary, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListHomeAppsResponse { - return new ListHomeAppsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListHomeAppsResponse { - return new ListHomeAppsResponse().fromJson(jsonValue, options); - } + apps: AppSummary[]; +}; - static fromJsonString(jsonString: string, options?: Partial): ListHomeAppsResponse { - return new ListHomeAppsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListHomeAppsResponse | PlainMessage | undefined, b: ListHomeAppsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListHomeAppsResponse, a, b); - } -} +/** + * Describes the message changes.ListHomeAppsResponse. + * Use `create(ListHomeAppsResponseSchema)` to create a new message. + */ +export const ListHomeAppsResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 24); /** * Editor's node: I'm using references here rather than just directly @@ -1218,7 +577,7 @@ export class ListHomeAppsResponse extends Message { * * @generated from message changes.ItemDiffSummary */ -export class ItemDiffSummary extends Message { +export type ItemDiffSummary = Message<"changes.ItemDiffSummary"> & { /** * A reference to the item that this diff is related to * @@ -1231,49 +590,27 @@ export class ItemDiffSummary extends Message { * * @generated from field: changes.ItemDiffStatus status = 4; */ - status = ItemDiffStatus.UNSPECIFIED; + status: ItemDiffStatus; /** * The health of the item currently (as opposed to before the change) * * @generated from field: Health healthAfter = 5; */ - healthAfter = Health.UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ItemDiffSummary"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "item", kind: "message", T: Reference }, - { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(ItemDiffStatus) }, - { no: 5, name: "healthAfter", kind: "enum", T: proto3.getEnumType(Health) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ItemDiffSummary { - return new ItemDiffSummary().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ItemDiffSummary { - return new ItemDiffSummary().fromJson(jsonValue, options); - } + healthAfter: Health; +}; - static fromJsonString(jsonString: string, options?: Partial): ItemDiffSummary { - return new ItemDiffSummary().fromJsonString(jsonString, options); - } - - static equals(a: ItemDiffSummary | PlainMessage | undefined, b: ItemDiffSummary | PlainMessage | undefined): boolean { - return proto3.util.equals(ItemDiffSummary, a, b); - } -} +/** + * Describes the message changes.ItemDiffSummary. + * Use `create(ItemDiffSummarySchema)` to create a new message. + */ +export const ItemDiffSummarySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 25); /** * @generated from message changes.ItemDiff */ -export class ItemDiff extends Message { +export type ItemDiff = Message<"changes.ItemDiff"> & { /** * A reference to the item that this diff is related to * @@ -1286,7 +623,7 @@ export class ItemDiff extends Message { * * @generated from field: changes.ItemDiffStatus status = 2; */ - status = ItemDiffStatus.UNSPECIFIED; + status: ItemDiffStatus; /** * @generated from field: Item before = 3; @@ -1297,48 +634,25 @@ export class ItemDiff extends Message { * @generated from field: Item after = 4; */ after?: Item; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ItemDiff"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "item", kind: "message", T: Reference }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(ItemDiffStatus) }, - { no: 3, name: "before", kind: "message", T: Item }, - { no: 4, name: "after", kind: "message", T: Item }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ItemDiff { - return new ItemDiff().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ItemDiff { - return new ItemDiff().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ItemDiff { - return new ItemDiff().fromJsonString(jsonString, options); - } - - static equals(a: ItemDiff | PlainMessage | undefined, b: ItemDiff | PlainMessage | undefined): boolean { - return proto3.util.equals(ItemDiff, a, b); - } -} +/** + * Describes the message changes.ItemDiff. + * Use `create(ItemDiffSchema)` to create a new message. + */ +export const ItemDiffSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 26); /** * @generated from message changes.AppSummary */ -export class AppSummary extends Message { +export type AppSummary = Message<"changes.AppSummary"> & { /** * unique id to identify this app * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * Name of this App @@ -1346,7 +660,7 @@ export class AppSummary extends Message { * * @generated from field: string name = 2; */ - name = ""; + name: string; /** * Description of this App Example: "The Contoso Manager manages the contoso. @@ -1355,21 +669,21 @@ export class AppSummary extends Message { * * @generated from field: string description = 3; */ - description = ""; + description: string; /** * number of changes that have affected this app * * @generated from field: int32 numChangesAffecting = 4; */ - numChangesAffecting = 0; + numChangesAffecting: number; /** * the number of items that make up this app * * @generated from field: int32 numItems = 5; */ - numItems = 0; + numItems: number; /** * timestamp when this app was created @@ -1383,7 +697,7 @@ export class AppSummary extends Message { * * @generated from field: string creatorName = 7; */ - creatorName = ""; + creatorName: string; /** * the url for this app. This will only be set if the app was created using @@ -1391,57 +705,29 @@ export class AppSummary extends Message { * * @generated from field: string url = 9; */ - url = ""; + url: string; /** * UUID of the bookmark query that returns all items in this app * * @generated from field: bytes bookmarkUUID = 10; */ - bookmarkUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.AppSummary"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "numChangesAffecting", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "numItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 6, name: "createdAt", kind: "message", T: Timestamp }, - { no: 7, name: "creatorName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "bookmarkUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AppSummary { - return new AppSummary().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AppSummary { - return new AppSummary().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AppSummary { - return new AppSummary().fromJsonString(jsonString, options); - } - - static equals(a: AppSummary | PlainMessage | undefined, b: AppSummary | PlainMessage | undefined): boolean { - return proto3.util.equals(AppSummary, a, b); - } -} + bookmarkUUID: Uint8Array; +}; + +/** + * Describes the message changes.AppSummary. + * Use `create(AppSummarySchema)` to create a new message. + */ +export const AppSummarySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 27); /** * a complete App with machine-supplied and user-supplied values * * @generated from message changes.App */ -export class App extends Message { +export type App = Message<"changes.App"> & { /** * machine-generated metadata of this app * @@ -1455,48 +741,27 @@ export class App extends Message { * @generated from field: changes.AppProperties properties = 2; */ properties?: AppProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.App"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: AppMetadata }, - { no: 2, name: "properties", kind: "message", T: AppProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): App { - return new App().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): App { - return new App().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): App { - return new App().fromJsonString(jsonString, options); - } - - static equals(a: App | PlainMessage | undefined, b: App | PlainMessage | undefined): boolean { - return proto3.util.equals(App, a, b); - } -} +/** + * Describes the message changes.App. + * Use `create(AppSchema)` to create a new message. + */ +export const AppSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 28); /** * machine-generated metadata of this app * * @generated from message changes.AppMetadata */ -export class AppMetadata extends Message { +export type AppMetadata = Message<"changes.AppMetadata"> & { /** * unique id to identify this app * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * timestamp when this app was created @@ -1517,7 +782,7 @@ export class AppMetadata extends Message { * * @generated from field: repeated Reference items = 4; */ - items: Reference[] = []; + items: Reference[]; /** * the last time that the list of items was updated @@ -1531,21 +796,21 @@ export class AppMetadata extends Message { * * @generated from field: int32 numChangesAffecting = 6; */ - numChangesAffecting = 0; + numChangesAffecting: number; /** * the number of items that make up this app * * @generated from field: int32 numItems = 8; */ - numItems = 0; + numItems: number; /** * the name of the person that created the app * * @generated from field: string creatorName = 7; */ - creatorName = ""; + creatorName: string; /** * the url for this app. This will only be set if the app was created using @@ -1553,57 +818,29 @@ export class AppMetadata extends Message { * * @generated from field: string url = 9; */ - url = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.AppMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "createdAt", kind: "message", T: Timestamp }, - { no: 3, name: "updatedAt", kind: "message", T: Timestamp }, - { no: 4, name: "items", kind: "message", T: Reference, repeated: true }, - { no: 5, name: "itemsLastUpdated", kind: "message", T: Timestamp }, - { no: 6, name: "numChangesAffecting", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 8, name: "numItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "creatorName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AppMetadata { - return new AppMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AppMetadata { - return new AppMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AppMetadata { - return new AppMetadata().fromJsonString(jsonString, options); - } - - static equals(a: AppMetadata | PlainMessage | undefined, b: AppMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(AppMetadata, a, b); - } -} + url: string; +}; + +/** + * Describes the message changes.AppMetadata. + * Use `create(AppMetadataSchema)` to create a new message. + */ +export const AppMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 29); /** * user-supplied properties of this app * * @generated from message changes.AppProperties */ -export class AppProperties extends Message { +export type AppProperties = Message<"changes.AppProperties"> & { /** * Name of this App * Example: "Contoso Manager" * * @generated from field: string name = 1; */ - name = ""; + name: string; /** * Description of this App. Example: "The Contoso Manager manages the contoso. @@ -1612,603 +849,302 @@ export class AppProperties extends Message { * * @generated from field: string description = 2; */ - description = ""; + description: string; /** * UUID of the bookmark query that returns all items in this app * * @generated from field: bytes bookmarkUUID = 3; */ - bookmarkUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.AppProperties"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "bookmarkUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + bookmarkUUID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): AppProperties { - return new AppProperties().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AppProperties { - return new AppProperties().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AppProperties { - return new AppProperties().fromJsonString(jsonString, options); - } - - static equals(a: AppProperties | PlainMessage | undefined, b: AppProperties | PlainMessage | undefined): boolean { - return proto3.util.equals(AppProperties, a, b); - } -} +/** + * Describes the message changes.AppProperties. + * Use `create(AppPropertiesSchema)` to create a new message. + */ +export const AppPropertiesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 30); /** * list all apps * * @generated from message changes.ListAppsRequest */ -export class ListAppsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListAppsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAppsRequest { - return new ListAppsRequest().fromBinary(bytes, options); - } +export type ListAppsRequest = Message<"changes.ListAppsRequest"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ListAppsRequest { - return new ListAppsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAppsRequest { - return new ListAppsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListAppsRequest | PlainMessage | undefined, b: ListAppsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAppsRequest, a, b); - } -} +/** + * Describes the message changes.ListAppsRequest. + * Use `create(ListAppsRequestSchema)` to create a new message. + */ +export const ListAppsRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 31); /** * @generated from message changes.ListAppsResponse */ -export class ListAppsResponse extends Message { +export type ListAppsResponse = Message<"changes.ListAppsResponse"> & { /** * @generated from field: repeated changes.App apps = 1; */ - apps: App[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListAppsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "apps", kind: "message", T: App, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAppsResponse { - return new ListAppsResponse().fromBinary(bytes, options); - } + apps: App[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ListAppsResponse { - return new ListAppsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAppsResponse { - return new ListAppsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListAppsResponse | PlainMessage | undefined, b: ListAppsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAppsResponse, a, b); - } -} +/** + * Describes the message changes.ListAppsResponse. + * Use `create(ListAppsResponseSchema)` to create a new message. + */ +export const ListAppsResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 32); /** * create a new app * * @generated from message changes.CreateAppRequest */ -export class CreateAppRequest extends Message { +export type CreateAppRequest = Message<"changes.CreateAppRequest"> & { /** * @generated from field: changes.AppProperties properties = 1; */ properties?: AppProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.CreateAppRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "properties", kind: "message", T: AppProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateAppRequest { - return new CreateAppRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateAppRequest { - return new CreateAppRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateAppRequest { - return new CreateAppRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateAppRequest | PlainMessage | undefined, b: CreateAppRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateAppRequest, a, b); - } -} +/** + * Describes the message changes.CreateAppRequest. + * Use `create(CreateAppRequestSchema)` to create a new message. + */ +export const CreateAppRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 33); /** * @generated from message changes.CreateAppResponse */ -export class CreateAppResponse extends Message { +export type CreateAppResponse = Message<"changes.CreateAppResponse"> & { /** * @generated from field: changes.App app = 1; */ app?: App; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.CreateAppResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "app", kind: "message", T: App }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateAppResponse { - return new CreateAppResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateAppResponse { - return new CreateAppResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateAppResponse { - return new CreateAppResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateAppResponse | PlainMessage | undefined, b: CreateAppResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateAppResponse, a, b); - } -} +/** + * Describes the message changes.CreateAppResponse. + * Use `create(CreateAppResponseSchema)` to create a new message. + */ +export const CreateAppResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 34); /** * @generated from message changes.CreateSimpleAppRequest */ -export class CreateSimpleAppRequest extends Message { +export type CreateSimpleAppRequest = Message<"changes.CreateSimpleAppRequest"> & { /** * The name of the app * * @generated from field: string name = 1; */ - name = ""; + name: string; /** * The description of the app * * @generated from field: string description = 2; */ - description = ""; + description: string; /** * The URL of the app * * @generated from field: string url = 3; */ - url = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.CreateSimpleAppRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSimpleAppRequest { - return new CreateSimpleAppRequest().fromBinary(bytes, options); - } + url: string; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSimpleAppRequest { - return new CreateSimpleAppRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateSimpleAppRequest { - return new CreateSimpleAppRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateSimpleAppRequest | PlainMessage | undefined, b: CreateSimpleAppRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateSimpleAppRequest, a, b); - } -} +/** + * Describes the message changes.CreateSimpleAppRequest. + * Use `create(CreateSimpleAppRequestSchema)` to create a new message. + */ +export const CreateSimpleAppRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 35); /** * @generated from message changes.CreateSimpleAppResponse */ -export class CreateSimpleAppResponse extends Message { +export type CreateSimpleAppResponse = Message<"changes.CreateSimpleAppResponse"> & { /** * @generated from field: changes.App app = 1; */ app?: App; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.CreateSimpleAppResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "app", kind: "message", T: App }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSimpleAppResponse { - return new CreateSimpleAppResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSimpleAppResponse { - return new CreateSimpleAppResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateSimpleAppResponse { - return new CreateSimpleAppResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateSimpleAppResponse | PlainMessage | undefined, b: CreateSimpleAppResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateSimpleAppResponse, a, b); - } -} +/** + * Describes the message changes.CreateSimpleAppResponse. + * Use `create(CreateSimpleAppResponseSchema)` to create a new message. + */ +export const CreateSimpleAppResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 36); /** * get the details of an existing app * * @generated from message changes.GetAppRequest */ -export class GetAppRequest extends Message { +export type GetAppRequest = Message<"changes.GetAppRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetAppRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAppRequest { - return new GetAppRequest().fromBinary(bytes, options); - } + UUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): GetAppRequest { - return new GetAppRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAppRequest { - return new GetAppRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAppRequest | PlainMessage | undefined, b: GetAppRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAppRequest, a, b); - } -} +/** + * Describes the message changes.GetAppRequest. + * Use `create(GetAppRequestSchema)` to create a new message. + */ +export const GetAppRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 37); /** * @generated from message changes.GetAppResponse */ -export class GetAppResponse extends Message { +export type GetAppResponse = Message<"changes.GetAppResponse"> & { /** * @generated from field: changes.App app = 1; */ app?: App; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetAppResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "app", kind: "message", T: App }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAppResponse { - return new GetAppResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAppResponse { - return new GetAppResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAppResponse { - return new GetAppResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAppResponse | PlainMessage | undefined, b: GetAppResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAppResponse, a, b); - } -} +/** + * Describes the message changes.GetAppResponse. + * Use `create(GetAppResponseSchema)` to create a new message. + */ +export const GetAppResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 38); /** * update an expsting app * * @generated from message changes.UpdateAppRequest */ -export class UpdateAppRequest extends Message { +export type UpdateAppRequest = Message<"changes.UpdateAppRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * @generated from field: changes.AppProperties properties = 2; */ properties?: AppProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.UpdateAppRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "properties", kind: "message", T: AppProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAppRequest { - return new UpdateAppRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAppRequest { - return new UpdateAppRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAppRequest { - return new UpdateAppRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAppRequest | PlainMessage | undefined, b: UpdateAppRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAppRequest, a, b); - } -} +/** + * Describes the message changes.UpdateAppRequest. + * Use `create(UpdateAppRequestSchema)` to create a new message. + */ +export const UpdateAppRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 39); /** * @generated from message changes.UpdateAppResponse */ -export class UpdateAppResponse extends Message { +export type UpdateAppResponse = Message<"changes.UpdateAppResponse"> & { /** * @generated from field: changes.App app = 1; */ app?: App; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.UpdateAppResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "app", kind: "message", T: App }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAppResponse { - return new UpdateAppResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAppResponse { - return new UpdateAppResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAppResponse { - return new UpdateAppResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAppResponse | PlainMessage | undefined, b: UpdateAppResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAppResponse, a, b); - } -} +/** + * Describes the message changes.UpdateAppResponse. + * Use `create(UpdateAppResponseSchema)` to create a new message. + */ +export const UpdateAppResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 40); /** * delete an app * * @generated from message changes.DeleteAppRequest */ -export class DeleteAppRequest extends Message { +export type DeleteAppRequest = Message<"changes.DeleteAppRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.DeleteAppRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAppRequest { - return new DeleteAppRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAppRequest { - return new DeleteAppRequest().fromJson(jsonValue, options); - } + UUID: Uint8Array; +}; - static fromJsonString(jsonString: string, options?: Partial): DeleteAppRequest { - return new DeleteAppRequest().fromJsonString(jsonString, options); - } - - static equals(a: DeleteAppRequest | PlainMessage | undefined, b: DeleteAppRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteAppRequest, a, b); - } -} +/** + * Describes the message changes.DeleteAppRequest. + * Use `create(DeleteAppRequestSchema)` to create a new message. + */ +export const DeleteAppRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 41); /** * @generated from message changes.DeleteAppResponse */ -export class DeleteAppResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.DeleteAppResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAppResponse { - return new DeleteAppResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAppResponse { - return new DeleteAppResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteAppResponse { - return new DeleteAppResponse().fromJsonString(jsonString, options); - } +export type DeleteAppResponse = Message<"changes.DeleteAppResponse"> & { +}; - static equals(a: DeleteAppResponse | PlainMessage | undefined, b: DeleteAppResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteAppResponse, a, b); - } -} +/** + * Describes the message changes.DeleteAppResponse. + * Use `create(DeleteAppResponseSchema)` to create a new message. + */ +export const DeleteAppResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 42); /** * list all changes for an app * * @generated from message changes.ListAppChangesRequest */ -export class ListAppChangesRequest extends Message { +export type ListAppChangesRequest = Message<"changes.ListAppChangesRequest"> & { /** * The UUID of the app to list changes for * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListAppChangesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAppChangesRequest { - return new ListAppChangesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAppChangesRequest { - return new ListAppChangesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAppChangesRequest { - return new ListAppChangesRequest().fromJsonString(jsonString, options); - } + UUID: Uint8Array; +}; - static equals(a: ListAppChangesRequest | PlainMessage | undefined, b: ListAppChangesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAppChangesRequest, a, b); - } -} +/** + * Describes the message changes.ListAppChangesRequest. + * Use `create(ListAppChangesRequestSchema)` to create a new message. + */ +export const ListAppChangesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 43); /** * @generated from message changes.ListAppChangesResponse */ -export class ListAppChangesResponse extends Message { +export type ListAppChangesResponse = Message<"changes.ListAppChangesResponse"> & { /** * The list of changes related to an app * * @generated from field: repeated changes.Change changes = 1; */ - changes: Change[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListAppChangesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changes", kind: "message", T: Change, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAppChangesResponse { - return new ListAppChangesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAppChangesResponse { - return new ListAppChangesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAppChangesResponse { - return new ListAppChangesResponse().fromJsonString(jsonString, options); - } + changes: Change[]; +}; - static equals(a: ListAppChangesResponse | PlainMessage | undefined, b: ListAppChangesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAppChangesResponse, a, b); - } -} +/** + * Describes the message changes.ListAppChangesResponse. + * Use `create(ListAppChangesResponseSchema)` to create a new message. + */ +export const ListAppChangesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 44); /** * A smaller summary of a change * * @generated from message changes.ChangeSummary */ -export class ChangeSummary extends Message { +export type ChangeSummary = Message<"changes.ChangeSummary"> & { /** * unique id to identify this change * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * Short title for this change. @@ -2216,7 +1152,7 @@ export class ChangeSummary extends Message { * * @generated from field: string title = 2; */ - title = ""; + title: string; /** * The current status of this change. This is changed by the lifecycle @@ -2224,7 +1160,7 @@ export class ChangeSummary extends Message { * * @generated from field: changes.ChangeStatus status = 3; */ - status = ChangeStatus.UNSPECIFIED; + status: ChangeStatus; /** * Link to the ticket for this change. @@ -2232,7 +1168,7 @@ export class ChangeSummary extends Message { * * @generated from field: string ticketLink = 4; */ - ticketLink = ""; + ticketLink: string; /** * timestamp when this change was created @@ -2246,56 +1182,56 @@ export class ChangeSummary extends Message { * * @generated from field: string creatorName = 6; */ - creatorName = ""; + creatorName: string; /** * The email of the user that created the change * * @generated from field: string creatorEmail = 15; */ - creatorEmail = ""; + creatorEmail: string; /** * The number of apps that will be affected by this change * * @generated from field: int32 numAffectedApps = 8; */ - numAffectedApps = 0; + numAffectedApps: number; /** * The number of items in the blast radius of this change * * @generated from field: int32 numAffectedItems = 9; */ - numAffectedItems = 0; + numAffectedItems: number; /** * The number of edges in the blast radius of this change * * @generated from field: int32 numAffectedEdges = 10; */ - numAffectedEdges = 0; + numAffectedEdges: number; /** * The number of low risks in this change * * @generated from field: int32 numLowRisk = 11; */ - numLowRisk = 0; + numLowRisk: number; /** * The number of medium risks in this change * * @generated from field: int32 numMediumRisk = 12; */ - numMediumRisk = 0; + numMediumRisk: number; /** * The number of high risks in this change * * @generated from field: int32 numHighRisk = 13; */ - numHighRisk = 0; + numHighRisk: number; /** * Quick description of the change. @@ -2303,71 +1239,36 @@ export class ChangeSummary extends Message { * * @generated from field: string description = 14; */ - description = ""; + description: string; /** * Repo information; can be an empty string. CLI attempts auto-population, but users can override. Not necessarily a URL. The UI will be responsible for any formatting/shortnening/sprucing up should it be required. * * @generated from field: string repo = 16; */ - repo = ""; + repo: string; /** * User-defined tags associated with this change, will be populated via the CLI and not the UI. * * @generated from field: map tags = 17; */ - tags: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ChangeSummary"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ChangeStatus) }, - { no: 4, name: "ticketLink", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "createdAt", kind: "message", T: Timestamp }, - { no: 6, name: "creatorName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 15, name: "creatorEmail", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "numAffectedApps", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 9, name: "numAffectedItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 10, name: "numAffectedEdges", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 11, name: "numLowRisk", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 12, name: "numMediumRisk", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 13, name: "numHighRisk", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 14, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "repo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 17, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeSummary { - return new ChangeSummary().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeSummary { - return new ChangeSummary().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeSummary { - return new ChangeSummary().fromJsonString(jsonString, options); - } - - static equals(a: ChangeSummary | PlainMessage | undefined, b: ChangeSummary | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeSummary, a, b); - } -} + tags: { [key: string]: string }; +}; + +/** + * Describes the message changes.ChangeSummary. + * Use `create(ChangeSummarySchema)` to create a new message. + */ +export const ChangeSummarySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 45); /** * a complete Change with machine-supplied and user-supplied values * * @generated from message changes.Change */ -export class Change extends Message { +export type Change = Message<"changes.Change"> & { /** * machine-generated metadata of this change * @@ -2381,48 +1282,27 @@ export class Change extends Message { * @generated from field: changes.ChangeProperties properties = 2; */ properties?: ChangeProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.Change"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: ChangeMetadata }, - { no: 2, name: "properties", kind: "message", T: ChangeProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Change { - return new Change().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Change { - return new Change().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Change { - return new Change().fromJsonString(jsonString, options); - } - - static equals(a: Change | PlainMessage | undefined, b: Change | PlainMessage | undefined): boolean { - return proto3.util.equals(Change, a, b); - } -} +/** + * Describes the message changes.Change. + * Use `create(ChangeSchema)` to create a new message. + */ +export const ChangeSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 46); /** * machine-generated metadata of this change * * @generated from message changes.ChangeMetadata */ -export class ChangeMetadata extends Message { +export type ChangeMetadata = Message<"changes.ChangeMetadata"> & { /** * unique id to identify this change * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * timestamp when this change was created @@ -2444,42 +1324,42 @@ export class ChangeMetadata extends Message { * * @generated from field: changes.ChangeStatus status = 4; */ - status = ChangeStatus.UNSPECIFIED; + status: ChangeStatus; /** * The name of the user that created the change * * @generated from field: string creatorName = 5; */ - creatorName = ""; + creatorName: string; /** * The email of the user that created the change * * @generated from field: string creatorEmail = 19; */ - creatorEmail = ""; + creatorEmail: string; /** * The number of apps that will be affected by this change * * @generated from field: int32 numAffectedApps = 6; */ - numAffectedApps = 0; + numAffectedApps: number; /** * The number of items in the blast radius if this change * * @generated from field: int32 numAffectedItems = 7; */ - numAffectedItems = 0; + numAffectedItems: number; /** * The number of edges in the blast radius if this change * * @generated from field: int32 numAffectedEdges = 17; */ - numAffectedEdges = 0; + numAffectedEdges: number; /** * The number of items within the blast radius that were not affected by this @@ -2487,35 +1367,35 @@ export class ChangeMetadata extends Message { * * @generated from field: int32 numUnchangedItems = 8; */ - numUnchangedItems = 0; + numUnchangedItems: number; /** * The number of items that were created as part of this change * * @generated from field: int32 numCreatedItems = 9; */ - numCreatedItems = 0; + numCreatedItems: number; /** * The number of items that were updated as part of this change * * @generated from field: int32 numUpdatedItems = 10; */ - numUpdatedItems = 0; + numUpdatedItems: number; /** * The number of items that were replaced as part of this change * * @generated from field: int32 numReplacedItems = 18; */ - numReplacedItems = 0; + numReplacedItems: number; /** * The number of items that were deleted as part of this change * * @generated from field: int32 numDeletedItems = 11; */ - numDeletedItems = 0; + numDeletedItems: number; /** * @generated from field: changes.ChangeMetadata.HealthChange UnknownHealthChange = 12; @@ -2541,52 +1421,14 @@ export class ChangeMetadata extends Message { * @generated from field: changes.ChangeMetadata.HealthChange PendingHealthChange = 16; */ PendingHealthChange?: ChangeMetadata_HealthChange; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ChangeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "createdAt", kind: "message", T: Timestamp }, - { no: 3, name: "updatedAt", kind: "message", T: Timestamp }, - { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(ChangeStatus) }, - { no: 5, name: "creatorName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 19, name: "creatorEmail", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "numAffectedApps", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "numAffectedItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 17, name: "numAffectedEdges", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 8, name: "numUnchangedItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 9, name: "numCreatedItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 10, name: "numUpdatedItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 18, name: "numReplacedItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 11, name: "numDeletedItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 12, name: "UnknownHealthChange", kind: "message", T: ChangeMetadata_HealthChange }, - { no: 13, name: "OkHealthChange", kind: "message", T: ChangeMetadata_HealthChange }, - { no: 14, name: "WarningHealthChange", kind: "message", T: ChangeMetadata_HealthChange }, - { no: 15, name: "ErrorHealthChange", kind: "message", T: ChangeMetadata_HealthChange }, - { no: 16, name: "PendingHealthChange", kind: "message", T: ChangeMetadata_HealthChange }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeMetadata { - return new ChangeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeMetadata { - return new ChangeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeMetadata { - return new ChangeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: ChangeMetadata | PlainMessage | undefined, b: ChangeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeMetadata, a, b); - } -} +/** + * Describes the message changes.ChangeMetadata. + * Use `create(ChangeMetadataSchema)` to create a new message. + */ +export const ChangeMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 47); /** * Represents the current state of a given health state, and the amount that @@ -2596,14 +1438,14 @@ export class ChangeMetadata extends Message { * * @generated from message changes.ChangeMetadata.HealthChange */ -export class ChangeMetadata_HealthChange extends Message { +export type ChangeMetadata_HealthChange = Message<"changes.ChangeMetadata.HealthChange"> & { /** * The number of items that were added to this health state as part of the * change * * @generated from field: int32 added = 1; */ - added = 0; + added: number; /** * The number of items that were removed them this health state as part of @@ -2611,58 +1453,36 @@ export class ChangeMetadata_HealthChange extends Message) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ChangeMetadata.HealthChange"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "added", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "removed", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "finalTotal", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeMetadata_HealthChange { - return new ChangeMetadata_HealthChange().fromBinary(bytes, options); - } + finalTotal: number; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeMetadata_HealthChange { - return new ChangeMetadata_HealthChange().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeMetadata_HealthChange { - return new ChangeMetadata_HealthChange().fromJsonString(jsonString, options); - } - - static equals(a: ChangeMetadata_HealthChange | PlainMessage | undefined, b: ChangeMetadata_HealthChange | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeMetadata_HealthChange, a, b); - } -} +/** + * Describes the message changes.ChangeMetadata.HealthChange. + * Use `create(ChangeMetadata_HealthChangeSchema)` to create a new message. + */ +export const ChangeMetadata_HealthChangeSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 47, 0); /** * user-supplied properties of this change * * @generated from message changes.ChangeProperties */ -export class ChangeProperties extends Message { +export type ChangeProperties = Message<"changes.ChangeProperties"> & { /** * Short title for this change. * Example: "database upgrade" * * @generated from field: string title = 2; */ - title = ""; + title: string; /** * Quick description of the change. @@ -2670,7 +1490,7 @@ export class ChangeProperties extends Message { * * @generated from field: string description = 3; */ - description = ""; + description: string; /** * Link to the ticket for this change. @@ -2678,7 +1498,7 @@ export class ChangeProperties extends Message { * * @generated from field: string ticketLink = 4; */ - ticketLink = ""; + ticketLink: string; /** * The owner of this change. @@ -2686,7 +1506,7 @@ export class ChangeProperties extends Message { * * @generated from field: string owner = 5; */ - owner = ""; + owner: string; /** * A comma-separated list of emails to keep updated with the status of this change. @@ -2694,7 +1514,7 @@ export class ChangeProperties extends Message { * * @generated from field: string ccEmails = 6; */ - ccEmails = ""; + ccEmails: string; /** * UUID of a bookmark for the item queries of the items *directly* affected by @@ -2703,7 +1523,7 @@ export class ChangeProperties extends Message { * * @generated from field: bytes changingItemsBookmarkUUID = 7; */ - changingItemsBookmarkUUID = new Uint8Array(0); + changingItemsBookmarkUUID: Uint8Array; /** * UUID of a snapshot for the item queries of the items *indirectly* affected @@ -2712,338 +1532,186 @@ export class ChangeProperties extends Message { * * @generated from field: bytes blastRadiusSnapshotUUID = 11; */ - blastRadiusSnapshotUUID = new Uint8Array(0); + blastRadiusSnapshotUUID: Uint8Array; /** * UUID of the whole-system snapshot created before the change has started. * * @generated from field: bytes systemBeforeSnapshotUUID = 8; */ - systemBeforeSnapshotUUID = new Uint8Array(0); + systemBeforeSnapshotUUID: Uint8Array; /** * UUID of the whole-system snapshot created after the change has finished. * * @generated from field: bytes systemAfterSnapshotUUID = 9; */ - systemAfterSnapshotUUID = new Uint8Array(0); + systemAfterSnapshotUUID: Uint8Array; /** * list of UUIDs for apps affected by this change. * * @generated from field: repeated bytes affectedAppsUUID = 10; */ - affectedAppsUUID: Uint8Array[] = []; + affectedAppsUUID: Uint8Array[]; /** * a list of item diffs that were planned to be changed as part of this change. For all items that we could map, the ItemDiff.Reference will be set to the actual item found. * * @generated from field: repeated changes.ItemDiff plannedChanges = 12; */ - plannedChanges: ItemDiff[] = []; + plannedChanges: ItemDiff[]; /** * The raw plan output for calculating the change's risks. * * @generated from field: string rawPlan = 13; */ - rawPlan = ""; + rawPlan: string; /** * The code changes of this change for calculating the change's risks. * * @generated from field: string codeChanges = 14; */ - codeChanges = ""; + codeChanges: string; /** * Repo information; can be an empty string. CLI attempts auto-population, but users can override. Not necessarily a URL. The UI will be responsible for any formatting/shortnening/sprucing up should it be required. * * @generated from field: string repo = 15; */ - repo = ""; + repo: string; /** * User-defined tags associated with this change, will be populated via the CLI and not the UI. * * @generated from field: map tags = 16; */ - tags: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ChangeProperties"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "ticketLink", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "ccEmails", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "changingItemsBookmarkUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 11, name: "blastRadiusSnapshotUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "systemBeforeSnapshotUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "systemAfterSnapshotUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "affectedAppsUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 12, name: "plannedChanges", kind: "message", T: ItemDiff, repeated: true }, - { no: 13, name: "rawPlan", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 14, name: "codeChanges", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 15, name: "repo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeProperties { - return new ChangeProperties().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeProperties { - return new ChangeProperties().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeProperties { - return new ChangeProperties().fromJsonString(jsonString, options); - } - - static equals(a: ChangeProperties | PlainMessage | undefined, b: ChangeProperties | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeProperties, a, b); - } -} + tags: { [key: string]: string }; +}; + +/** + * Describes the message changes.ChangeProperties. + * Use `create(ChangePropertiesSchema)` to create a new message. + */ +export const ChangePropertiesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 48); /** * list all changes * * @generated from message changes.ListChangesRequest */ -export class ListChangesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListChangesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListChangesRequest { - return new ListChangesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListChangesRequest { - return new ListChangesRequest().fromJson(jsonValue, options); - } +export type ListChangesRequest = Message<"changes.ListChangesRequest"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): ListChangesRequest { - return new ListChangesRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListChangesRequest | PlainMessage | undefined, b: ListChangesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListChangesRequest, a, b); - } -} +/** + * Describes the message changes.ListChangesRequest. + * Use `create(ListChangesRequestSchema)` to create a new message. + */ +export const ListChangesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 49); /** * @generated from message changes.ListChangesResponse */ -export class ListChangesResponse extends Message { +export type ListChangesResponse = Message<"changes.ListChangesResponse"> & { /** * @generated from field: repeated changes.Change changes = 1; */ - changes: Change[] = []; + changes: Change[]; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListChangesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changes", kind: "message", T: Change, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListChangesResponse { - return new ListChangesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListChangesResponse { - return new ListChangesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListChangesResponse { - return new ListChangesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListChangesResponse | PlainMessage | undefined, b: ListChangesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListChangesResponse, a, b); - } -} +/** + * Describes the message changes.ListChangesResponse. + * Use `create(ListChangesResponseSchema)` to create a new message. + */ +export const ListChangesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 50); /** * list all changes in a specific status * * @generated from message changes.ListChangesByStatusRequest */ -export class ListChangesByStatusRequest extends Message { +export type ListChangesByStatusRequest = Message<"changes.ListChangesByStatusRequest"> & { /** * @generated from field: changes.ChangeStatus status = 1; */ - status = ChangeStatus.UNSPECIFIED; + status: ChangeStatus; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListChangesByStatusRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(ChangeStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListChangesByStatusRequest { - return new ListChangesByStatusRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListChangesByStatusRequest { - return new ListChangesByStatusRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListChangesByStatusRequest { - return new ListChangesByStatusRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListChangesByStatusRequest | PlainMessage | undefined, b: ListChangesByStatusRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListChangesByStatusRequest, a, b); - } -} +/** + * Describes the message changes.ListChangesByStatusRequest. + * Use `create(ListChangesByStatusRequestSchema)` to create a new message. + */ +export const ListChangesByStatusRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 51); /** * @generated from message changes.ListChangesByStatusResponse */ -export class ListChangesByStatusResponse extends Message { +export type ListChangesByStatusResponse = Message<"changes.ListChangesByStatusResponse"> & { /** * @generated from field: repeated changes.Change changes = 1; */ - changes: Change[] = []; + changes: Change[]; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListChangesByStatusResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changes", kind: "message", T: Change, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListChangesByStatusResponse { - return new ListChangesByStatusResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListChangesByStatusResponse { - return new ListChangesByStatusResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListChangesByStatusResponse { - return new ListChangesByStatusResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListChangesByStatusResponse | PlainMessage | undefined, b: ListChangesByStatusResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListChangesByStatusResponse, a, b); - } -} +/** + * Describes the message changes.ListChangesByStatusResponse. + * Use `create(ListChangesByStatusResponseSchema)` to create a new message. + */ +export const ListChangesByStatusResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 52); /** * create a new change * * @generated from message changes.CreateChangeRequest */ -export class CreateChangeRequest extends Message { +export type CreateChangeRequest = Message<"changes.CreateChangeRequest"> & { /** * @generated from field: changes.ChangeProperties properties = 1; */ properties?: ChangeProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.CreateChangeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "properties", kind: "message", T: ChangeProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateChangeRequest { - return new CreateChangeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateChangeRequest { - return new CreateChangeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateChangeRequest { - return new CreateChangeRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateChangeRequest | PlainMessage | undefined, b: CreateChangeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateChangeRequest, a, b); - } -} +/** + * Describes the message changes.CreateChangeRequest. + * Use `create(CreateChangeRequestSchema)` to create a new message. + */ +export const CreateChangeRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 53); /** * @generated from message changes.CreateChangeResponse */ -export class CreateChangeResponse extends Message { +export type CreateChangeResponse = Message<"changes.CreateChangeResponse"> & { /** * @generated from field: changes.Change change = 1; */ change?: Change; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.CreateChangeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "change", kind: "message", T: Change }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateChangeResponse { - return new CreateChangeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateChangeResponse { - return new CreateChangeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateChangeResponse { - return new CreateChangeResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateChangeResponse | PlainMessage | undefined, b: CreateChangeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateChangeResponse, a, b); - } -} +/** + * Describes the message changes.CreateChangeResponse. + * Use `create(CreateChangeResponseSchema)` to create a new message. + */ +export const CreateChangeResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 54); /** * get the details of a specific change * * @generated from message changes.GetChangeRequest */ -export class GetChangeRequest extends Message { +export type GetChangeRequest = Message<"changes.GetChangeRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * Return a slimmed down version of the change. This will exclude the @@ -3053,117 +1721,56 @@ export class GetChangeRequest extends Message { * * @generated from field: bool slim = 2; */ - slim = false; + slim: boolean; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetChangeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "slim", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChangeRequest { - return new GetChangeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChangeRequest { - return new GetChangeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetChangeRequest { - return new GetChangeRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetChangeRequest | PlainMessage | undefined, b: GetChangeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChangeRequest, a, b); - } -} +/** + * Describes the message changes.GetChangeRequest. + * Use `create(GetChangeRequestSchema)` to create a new message. + */ +export const GetChangeRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 55); /** * @generated from message changes.GetChangeResponse */ -export class GetChangeResponse extends Message { +export type GetChangeResponse = Message<"changes.GetChangeResponse"> & { /** * @generated from field: changes.Change change = 1; */ change?: Change; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetChangeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "change", kind: "message", T: Change }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChangeResponse { - return new GetChangeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChangeResponse { - return new GetChangeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetChangeResponse { - return new GetChangeResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetChangeResponse | PlainMessage | undefined, b: GetChangeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChangeResponse, a, b); - } -} +/** + * Describes the message changes.GetChangeResponse. + * Use `create(GetChangeResponseSchema)` to create a new message. + */ +export const GetChangeResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 56); /** * get the details of a specific change * * @generated from message changes.GetChangeRisksRequest */ -export class GetChangeRisksRequest extends Message { +export type GetChangeRisksRequest = Message<"changes.GetChangeRisksRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetChangeRisksRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChangeRisksRequest { - return new GetChangeRisksRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChangeRisksRequest { - return new GetChangeRisksRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetChangeRisksRequest { - return new GetChangeRisksRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetChangeRisksRequest | PlainMessage | undefined, b: GetChangeRisksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChangeRisksRequest, a, b); - } -} +/** + * Describes the message changes.GetChangeRisksRequest. + * Use `create(GetChangeRisksRequestSchema)` to create a new message. + */ +export const GetChangeRisksRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 57); /** * @generated from message changes.ChangeRiskMetadata */ -export class ChangeRiskMetadata extends Message { +export type ChangeRiskMetadata = Message<"changes.ChangeRiskMetadata"> & { /** * The status of the risk calculation * @@ -3176,398 +1783,199 @@ export class ChangeRiskMetadata extends Message { * * @generated from field: repeated changes.Risk risks = 5; */ - risks: Risk[] = []; + risks: Risk[]; /** * The number of low risks in this change * * @generated from field: int32 numLowRisk = 6; */ - numLowRisk = 0; + numLowRisk: number; /** * The number of medium risks in this change * * @generated from field: int32 numMediumRisk = 7; */ - numMediumRisk = 0; + numMediumRisk: number; /** * The number of high risks in this change * * @generated from field: int32 numHighRisk = 8; */ - numHighRisk = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ChangeRiskMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "riskCalculationStatus", kind: "message", T: RiskCalculationStatus }, - { no: 5, name: "risks", kind: "message", T: Risk, repeated: true }, - { no: 6, name: "numLowRisk", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "numMediumRisk", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 8, name: "numHighRisk", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeRiskMetadata { - return new ChangeRiskMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeRiskMetadata { - return new ChangeRiskMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeRiskMetadata { - return new ChangeRiskMetadata().fromJsonString(jsonString, options); - } - - static equals(a: ChangeRiskMetadata | PlainMessage | undefined, b: ChangeRiskMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeRiskMetadata, a, b); - } -} + numHighRisk: number; +}; + +/** + * Describes the message changes.ChangeRiskMetadata. + * Use `create(ChangeRiskMetadataSchema)` to create a new message. + */ +export const ChangeRiskMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 58); /** * @generated from message changes.GetChangeRisksResponse */ -export class GetChangeRisksResponse extends Message { +export type GetChangeRisksResponse = Message<"changes.GetChangeRisksResponse"> & { /** * @generated from field: changes.ChangeRiskMetadata changeRiskMetadata = 1; */ changeRiskMetadata?: ChangeRiskMetadata; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetChangeRisksResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeRiskMetadata", kind: "message", T: ChangeRiskMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChangeRisksResponse { - return new GetChangeRisksResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChangeRisksResponse { - return new GetChangeRisksResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetChangeRisksResponse { - return new GetChangeRisksResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetChangeRisksResponse | PlainMessage | undefined, b: GetChangeRisksResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChangeRisksResponse, a, b); - } -} +/** + * Describes the message changes.GetChangeRisksResponse. + * Use `create(GetChangeRisksResponseSchema)` to create a new message. + */ +export const GetChangeRisksResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 59); /** * update an existing change * * @generated from message changes.UpdateChangeRequest */ -export class UpdateChangeRequest extends Message { +export type UpdateChangeRequest = Message<"changes.UpdateChangeRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * @generated from field: changes.ChangeProperties properties = 2; */ properties?: ChangeProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.UpdateChangeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "properties", kind: "message", T: ChangeProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateChangeRequest { - return new UpdateChangeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateChangeRequest { - return new UpdateChangeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateChangeRequest { - return new UpdateChangeRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateChangeRequest | PlainMessage | undefined, b: UpdateChangeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateChangeRequest, a, b); - } -} +/** + * Describes the message changes.UpdateChangeRequest. + * Use `create(UpdateChangeRequestSchema)` to create a new message. + */ +export const UpdateChangeRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 60); /** * @generated from message changes.UpdateChangeResponse */ -export class UpdateChangeResponse extends Message { +export type UpdateChangeResponse = Message<"changes.UpdateChangeResponse"> & { /** * @generated from field: changes.Change change = 1; */ change?: Change; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.UpdateChangeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "change", kind: "message", T: Change }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateChangeResponse { - return new UpdateChangeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateChangeResponse { - return new UpdateChangeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateChangeResponse { - return new UpdateChangeResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateChangeResponse | PlainMessage | undefined, b: UpdateChangeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateChangeResponse, a, b); - } -} +/** + * Describes the message changes.UpdateChangeResponse. + * Use `create(UpdateChangeResponseSchema)` to create a new message. + */ +export const UpdateChangeResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 61); /** * delete a change * * @generated from message changes.DeleteChangeRequest */ -export class DeleteChangeRequest extends Message { +export type DeleteChangeRequest = Message<"changes.DeleteChangeRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + UUID: Uint8Array; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.DeleteChangeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteChangeRequest { - return new DeleteChangeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteChangeRequest { - return new DeleteChangeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteChangeRequest { - return new DeleteChangeRequest().fromJsonString(jsonString, options); - } - - static equals(a: DeleteChangeRequest | PlainMessage | undefined, b: DeleteChangeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteChangeRequest, a, b); - } -} +/** + * Describes the message changes.DeleteChangeRequest. + * Use `create(DeleteChangeRequestSchema)` to create a new message. + */ +export const DeleteChangeRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 62); /** * list changes for a snapshot UUID * * @generated from message changes.ListChangesBySnapshotUUIDRequest */ -export class ListChangesBySnapshotUUIDRequest extends Message { +export type ListChangesBySnapshotUUIDRequest = Message<"changes.ListChangesBySnapshotUUIDRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + UUID: Uint8Array; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListChangesBySnapshotUUIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListChangesBySnapshotUUIDRequest { - return new ListChangesBySnapshotUUIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListChangesBySnapshotUUIDRequest { - return new ListChangesBySnapshotUUIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListChangesBySnapshotUUIDRequest { - return new ListChangesBySnapshotUUIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListChangesBySnapshotUUIDRequest | PlainMessage | undefined, b: ListChangesBySnapshotUUIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListChangesBySnapshotUUIDRequest, a, b); - } -} +/** + * Describes the message changes.ListChangesBySnapshotUUIDRequest. + * Use `create(ListChangesBySnapshotUUIDRequestSchema)` to create a new message. + */ +export const ListChangesBySnapshotUUIDRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 63); /** * @generated from message changes.ListChangesBySnapshotUUIDResponse */ -export class ListChangesBySnapshotUUIDResponse extends Message { +export type ListChangesBySnapshotUUIDResponse = Message<"changes.ListChangesBySnapshotUUIDResponse"> & { /** * @generated from field: repeated changes.Change changes = 1; */ - changes: Change[] = []; + changes: Change[]; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ListChangesBySnapshotUUIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changes", kind: "message", T: Change, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListChangesBySnapshotUUIDResponse { - return new ListChangesBySnapshotUUIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListChangesBySnapshotUUIDResponse { - return new ListChangesBySnapshotUUIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListChangesBySnapshotUUIDResponse { - return new ListChangesBySnapshotUUIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListChangesBySnapshotUUIDResponse | PlainMessage | undefined, b: ListChangesBySnapshotUUIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListChangesBySnapshotUUIDResponse, a, b); - } -} +/** + * Describes the message changes.ListChangesBySnapshotUUIDResponse. + * Use `create(ListChangesBySnapshotUUIDResponseSchema)` to create a new message. + */ +export const ListChangesBySnapshotUUIDResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 64); /** * @generated from message changes.DeleteChangeResponse */ -export class DeleteChangeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +export type DeleteChangeResponse = Message<"changes.DeleteChangeResponse"> & { +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.DeleteChangeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteChangeResponse { - return new DeleteChangeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteChangeResponse { - return new DeleteChangeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteChangeResponse { - return new DeleteChangeResponse().fromJsonString(jsonString, options); - } - - static equals(a: DeleteChangeResponse | PlainMessage | undefined, b: DeleteChangeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteChangeResponse, a, b); - } -} +/** + * Describes the message changes.DeleteChangeResponse. + * Use `create(DeleteChangeResponseSchema)` to create a new message. + */ +export const DeleteChangeResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 65); /** * @generated from message changes.RefreshStateRequest */ -export class RefreshStateRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.RefreshStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export type RefreshStateRequest = Message<"changes.RefreshStateRequest"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): RefreshStateRequest { - return new RefreshStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RefreshStateRequest { - return new RefreshStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RefreshStateRequest { - return new RefreshStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: RefreshStateRequest | PlainMessage | undefined, b: RefreshStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RefreshStateRequest, a, b); - } -} +/** + * Describes the message changes.RefreshStateRequest. + * Use `create(RefreshStateRequestSchema)` to create a new message. + */ +export const RefreshStateRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 66); /** * @generated from message changes.RefreshStateResponse */ -export class RefreshStateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.RefreshStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RefreshStateResponse { - return new RefreshStateResponse().fromBinary(bytes, options); - } +export type RefreshStateResponse = Message<"changes.RefreshStateResponse"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): RefreshStateResponse { - return new RefreshStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RefreshStateResponse { - return new RefreshStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: RefreshStateResponse | PlainMessage | undefined, b: RefreshStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RefreshStateResponse, a, b); - } -} +/** + * Describes the message changes.RefreshStateResponse. + * Use `create(RefreshStateResponseSchema)` to create a new message. + */ +export const RefreshStateResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 67); /** * @generated from message changes.CalculateBlastRadiusRequest */ -export class CalculateBlastRadiusRequest extends Message { +export type CalculateBlastRadiusRequest = Message<"changes.CalculateBlastRadiusRequest"> & { /** * ID of the change to calculate the blast radius for. * * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); + changeUUID: Uint8Array; /** * If true, the blast radius will be calculated again, even if it was already. @@ -3577,55 +1985,34 @@ export class CalculateBlastRadiusRequest extends Message) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.CalculateBlastRadiusRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "force", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); + force: boolean; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): CalculateBlastRadiusRequest { - return new CalculateBlastRadiusRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CalculateBlastRadiusRequest { - return new CalculateBlastRadiusRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CalculateBlastRadiusRequest { - return new CalculateBlastRadiusRequest().fromJsonString(jsonString, options); - } - - static equals(a: CalculateBlastRadiusRequest | PlainMessage | undefined, b: CalculateBlastRadiusRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CalculateBlastRadiusRequest, a, b); - } -} +/** + * Describes the message changes.CalculateBlastRadiusRequest. + * Use `create(CalculateBlastRadiusRequestSchema)` to create a new message. + */ +export const CalculateBlastRadiusRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 68); /** * @generated from message changes.CalculateBlastRadiusResponse */ -export class CalculateBlastRadiusResponse extends Message { +export type CalculateBlastRadiusResponse = Message<"changes.CalculateBlastRadiusResponse"> & { /** * @generated from field: changes.CalculateBlastRadiusResponse.State state = 1; */ - state = CalculateBlastRadiusResponse_State.UNSPECIFIED; + state: CalculateBlastRadiusResponse_State; /** * @generated from field: uint32 numItems = 2; */ - numItems = 0; + numItems: number; /** * @generated from field: uint32 numEdges = 3; */ - numEdges = 0; + numEdges: number; /** * A list of errors that were encountered as part of calculating the blast @@ -3634,38 +2021,15 @@ export class CalculateBlastRadiusResponse extends Message) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.CalculateBlastRadiusResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(CalculateBlastRadiusResponse_State) }, - { no: 2, name: "numItems", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "numEdges", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "errors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CalculateBlastRadiusResponse { - return new CalculateBlastRadiusResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CalculateBlastRadiusResponse { - return new CalculateBlastRadiusResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CalculateBlastRadiusResponse { - return new CalculateBlastRadiusResponse().fromJsonString(jsonString, options); - } - - static equals(a: CalculateBlastRadiusResponse | PlainMessage | undefined, b: CalculateBlastRadiusResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CalculateBlastRadiusResponse, a, b); - } -} + errors: string[]; +}; + +/** + * Describes the message changes.CalculateBlastRadiusResponse. + * Use `create(CalculateBlastRadiusResponseSchema)` to create a new message. + */ +export const CalculateBlastRadiusResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 69); /** * @generated from enum changes.CalculateBlastRadiusResponse.State @@ -3706,100 +2070,56 @@ export enum CalculateBlastRadiusResponse_State { */ DONE = 4, } -// Retrieve enum metadata with: proto3.getEnumType(CalculateBlastRadiusResponse_State) -proto3.util.setEnumType(CalculateBlastRadiusResponse_State, "changes.CalculateBlastRadiusResponse.State", [ - { no: 0, name: "STATE_UNSPECIFIED" }, - { no: 1, name: "STATE_DISCOVERING" }, - { no: 2, name: "STATE_SAVING" }, - { no: 3, name: "STATE_FINDING_APPS" }, - { no: 4, name: "STATE_DONE" }, -]); + +/** + * Describes the enum changes.CalculateBlastRadiusResponse.State. + */ +export const CalculateBlastRadiusResponse_StateSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 69, 0); /** * @generated from message changes.StartChangeRequest */ -export class StartChangeRequest extends Message { +export type StartChangeRequest = Message<"changes.StartChangeRequest"> & { /** * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.StartChangeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StartChangeRequest { - return new StartChangeRequest().fromBinary(bytes, options); - } + changeUUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): StartChangeRequest { - return new StartChangeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StartChangeRequest { - return new StartChangeRequest().fromJsonString(jsonString, options); - } - - static equals(a: StartChangeRequest | PlainMessage | undefined, b: StartChangeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(StartChangeRequest, a, b); - } -} +/** + * Describes the message changes.StartChangeRequest. + * Use `create(StartChangeRequestSchema)` to create a new message. + */ +export const StartChangeRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 70); /** * @generated from message changes.StartChangeResponse */ -export class StartChangeResponse extends Message { +export type StartChangeResponse = Message<"changes.StartChangeResponse"> & { /** * @generated from field: changes.StartChangeResponse.State state = 1; */ - state = StartChangeResponse_State.UNSPECIFIED; + state: StartChangeResponse_State; /** * @generated from field: uint32 numItems = 2; */ - numItems = 0; + numItems: number; /** * @generated from field: uint32 NumEdges = 3; */ - NumEdges = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.StartChangeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(StartChangeResponse_State) }, - { no: 2, name: "numItems", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "NumEdges", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StartChangeResponse { - return new StartChangeResponse().fromBinary(bytes, options); - } + NumEdges: number; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): StartChangeResponse { - return new StartChangeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StartChangeResponse { - return new StartChangeResponse().fromJsonString(jsonString, options); - } - - static equals(a: StartChangeResponse | PlainMessage | undefined, b: StartChangeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(StartChangeResponse, a, b); - } -} +/** + * Describes the message changes.StartChangeResponse. + * Use `create(StartChangeResponseSchema)` to create a new message. + */ +export const StartChangeResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 71); /** * @generated from enum changes.StartChangeResponse.State @@ -3833,99 +2153,56 @@ export enum StartChangeResponse_State { */ DONE = 3, } -// Retrieve enum metadata with: proto3.getEnumType(StartChangeResponse_State) -proto3.util.setEnumType(StartChangeResponse_State, "changes.StartChangeResponse.State", [ - { no: 0, name: "STATE_UNSPECIFIED" }, - { no: 1, name: "STATE_TAKING_SNAPSHOT" }, - { no: 2, name: "STATE_SAVING_SNAPSHOT" }, - { no: 3, name: "STATE_DONE" }, -]); + +/** + * Describes the enum changes.StartChangeResponse.State. + */ +export const StartChangeResponse_StateSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 71, 0); /** * @generated from message changes.EndChangeRequest */ -export class EndChangeRequest extends Message { +export type EndChangeRequest = Message<"changes.EndChangeRequest"> & { /** * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.EndChangeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EndChangeRequest { - return new EndChangeRequest().fromBinary(bytes, options); - } + changeUUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): EndChangeRequest { - return new EndChangeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EndChangeRequest { - return new EndChangeRequest().fromJsonString(jsonString, options); - } - - static equals(a: EndChangeRequest | PlainMessage | undefined, b: EndChangeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EndChangeRequest, a, b); - } -} +/** + * Describes the message changes.EndChangeRequest. + * Use `create(EndChangeRequestSchema)` to create a new message. + */ +export const EndChangeRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 72); /** * @generated from message changes.EndChangeResponse */ -export class EndChangeResponse extends Message { +export type EndChangeResponse = Message<"changes.EndChangeResponse"> & { /** * @generated from field: changes.EndChangeResponse.State state = 1; */ - state = EndChangeResponse_State.UNSPECIFIED; + state: EndChangeResponse_State; /** * @generated from field: uint32 numItems = 2; */ - numItems = 0; + numItems: number; /** * @generated from field: uint32 NumEdges = 3; */ - NumEdges = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.EndChangeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(EndChangeResponse_State) }, - { no: 2, name: "numItems", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "NumEdges", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EndChangeResponse { - return new EndChangeResponse().fromBinary(bytes, options); - } + NumEdges: number; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): EndChangeResponse { - return new EndChangeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EndChangeResponse { - return new EndChangeResponse().fromJsonString(jsonString, options); - } - - static equals(a: EndChangeResponse | PlainMessage | undefined, b: EndChangeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(EndChangeResponse, a, b); - } -} +/** + * Describes the message changes.EndChangeResponse. + * Use `create(EndChangeResponseSchema)` to create a new message. + */ +export const EndChangeResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 73); /** * @generated from enum changes.EndChangeResponse.State @@ -3959,20 +2236,19 @@ export enum EndChangeResponse_State { */ DONE = 3, } -// Retrieve enum metadata with: proto3.getEnumType(EndChangeResponse_State) -proto3.util.setEnumType(EndChangeResponse_State, "changes.EndChangeResponse.State", [ - { no: 0, name: "STATE_UNSPECIFIED" }, - { no: 1, name: "STATE_TAKING_SNAPSHOT" }, - { no: 2, name: "STATE_SAVING_SNAPSHOT" }, - { no: 3, name: "STATE_DONE" }, -]); + +/** + * Describes the enum changes.EndChangeResponse.State. + */ +export const EndChangeResponse_StateSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 73, 0); /** * complete Onboarding information with machine-supplied and user-supplied values * * @generated from message changes.Onboarding */ -export class Onboarding extends Message { +export type Onboarding = Message<"changes.Onboarding"> & { /** * machine-generated metadata of this onboarding info * @@ -3986,42 +2262,21 @@ export class Onboarding extends Message { * @generated from field: changes.OnboardingProperties properties = 2; */ properties?: OnboardingProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.Onboarding"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: OnboardingMetadata }, - { no: 2, name: "properties", kind: "message", T: OnboardingProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Onboarding { - return new Onboarding().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Onboarding { - return new Onboarding().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Onboarding { - return new Onboarding().fromJsonString(jsonString, options); - } - - static equals(a: Onboarding | PlainMessage | undefined, b: Onboarding | PlainMessage | undefined): boolean { - return proto3.util.equals(Onboarding, a, b); - } -} +/** + * Describes the message changes.Onboarding. + * Use `create(OnboardingSchema)` to create a new message. + */ +export const OnboardingSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 74); /** * machine-generated metadata of this onboarding info * * @generated from message changes.OnboardingMetadata */ -export class OnboardingMetadata extends Message { +export type OnboardingMetadata = Message<"changes.OnboardingMetadata"> & { /** * timestamp when this onboarding info was created * @@ -4034,297 +2289,155 @@ export class OnboardingMetadata extends Message { * * @generated from field: bool hasAwsSource = 3; */ - hasAwsSource = false; + hasAwsSource: boolean; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.OnboardingMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "created", kind: "message", T: Timestamp }, - { no: 3, name: "hasAwsSource", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): OnboardingMetadata { - return new OnboardingMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): OnboardingMetadata { - return new OnboardingMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): OnboardingMetadata { - return new OnboardingMetadata().fromJsonString(jsonString, options); - } - - static equals(a: OnboardingMetadata | PlainMessage | undefined, b: OnboardingMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(OnboardingMetadata, a, b); - } -} +/** + * Describes the message changes.OnboardingMetadata. + * Use `create(OnboardingMetadataSchema)` to create a new message. + */ +export const OnboardingMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 75); /** * user-supplied properties of this onboarding info * * @generated from message changes.OnboardingProperties */ -export class OnboardingProperties extends Message { +export type OnboardingProperties = Message<"changes.OnboardingProperties"> & { /** * The current status of this onboarding info. * * @generated from field: changes.OnboardingStatus status = 1; */ - status = OnboardingStatus.UNSPECIFIED; + status: OnboardingStatus; /** * The UUID for the aws-source that was configured as part of onboarding * * @generated from field: bytes awsSourceUUID = 2; */ - awsSourceUUID = new Uint8Array(0); + awsSourceUUID: Uint8Array; /** * The UUID of the app that was created as part of onboarding * * @generated from field: bytes appUUID = 3; */ - appUUID = new Uint8Array(0); + appUUID: Uint8Array; /** * The UUID of the change that was created as part of onboarding * * @generated from field: bytes changeUUID = 4; */ - changeUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.OnboardingProperties"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(OnboardingStatus) }, - { no: 2, name: "awsSourceUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "appUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): OnboardingProperties { - return new OnboardingProperties().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): OnboardingProperties { - return new OnboardingProperties().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): OnboardingProperties { - return new OnboardingProperties().fromJsonString(jsonString, options); - } - - static equals(a: OnboardingProperties | PlainMessage | undefined, b: OnboardingProperties | PlainMessage | undefined): boolean { - return proto3.util.equals(OnboardingProperties, a, b); - } -} + changeUUID: Uint8Array; +}; + +/** + * Describes the message changes.OnboardingProperties. + * Use `create(OnboardingPropertiesSchema)` to create a new message. + */ +export const OnboardingPropertiesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 76); /** * get the onboarding status * * @generated from message changes.GetOnboardingRequest */ -export class GetOnboardingRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetOnboardingRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetOnboardingRequest { - return new GetOnboardingRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetOnboardingRequest { - return new GetOnboardingRequest().fromJson(jsonValue, options); - } +export type GetOnboardingRequest = Message<"changes.GetOnboardingRequest"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): GetOnboardingRequest { - return new GetOnboardingRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetOnboardingRequest | PlainMessage | undefined, b: GetOnboardingRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetOnboardingRequest, a, b); - } -} +/** + * Describes the message changes.GetOnboardingRequest. + * Use `create(GetOnboardingRequestSchema)` to create a new message. + */ +export const GetOnboardingRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 77); /** * @generated from message changes.GetOnboardingResponse */ -export class GetOnboardingResponse extends Message { +export type GetOnboardingResponse = Message<"changes.GetOnboardingResponse"> & { /** * @generated from field: changes.Onboarding onboarding = 1; */ onboarding?: Onboarding; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetOnboardingResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "onboarding", kind: "message", T: Onboarding }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetOnboardingResponse { - return new GetOnboardingResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetOnboardingResponse { - return new GetOnboardingResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetOnboardingResponse { - return new GetOnboardingResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetOnboardingResponse | PlainMessage | undefined, b: GetOnboardingResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetOnboardingResponse, a, b); - } -} +/** + * Describes the message changes.GetOnboardingResponse. + * Use `create(GetOnboardingResponseSchema)` to create a new message. + */ +export const GetOnboardingResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 78); /** * update onboarding status * * @generated from message changes.UpdateOnboardingRequest */ -export class UpdateOnboardingRequest extends Message { +export type UpdateOnboardingRequest = Message<"changes.UpdateOnboardingRequest"> & { /** * @generated from field: changes.OnboardingProperties properties = 2; */ properties?: OnboardingProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.UpdateOnboardingRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "properties", kind: "message", T: OnboardingProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateOnboardingRequest { - return new UpdateOnboardingRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateOnboardingRequest { - return new UpdateOnboardingRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateOnboardingRequest { - return new UpdateOnboardingRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateOnboardingRequest | PlainMessage | undefined, b: UpdateOnboardingRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateOnboardingRequest, a, b); - } -} +/** + * Describes the message changes.UpdateOnboardingRequest. + * Use `create(UpdateOnboardingRequestSchema)` to create a new message. + */ +export const UpdateOnboardingRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 79); /** * @generated from message changes.UpdateOnboardingResponse */ -export class UpdateOnboardingResponse extends Message { +export type UpdateOnboardingResponse = Message<"changes.UpdateOnboardingResponse"> & { /** * @generated from field: changes.Onboarding onboarding = 1; */ onboarding?: Onboarding; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.UpdateOnboardingResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "onboarding", kind: "message", T: Onboarding }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateOnboardingResponse { - return new UpdateOnboardingResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateOnboardingResponse { - return new UpdateOnboardingResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateOnboardingResponse { - return new UpdateOnboardingResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateOnboardingResponse | PlainMessage | undefined, b: UpdateOnboardingResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateOnboardingResponse, a, b); - } -} +/** + * Describes the message changes.UpdateOnboardingResponse. + * Use `create(UpdateOnboardingResponseSchema)` to create a new message. + */ +export const UpdateOnboardingResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 80); /** * @generated from message changes.SimulateChangeRequest */ -export class SimulateChangeRequest extends Message { +export type SimulateChangeRequest = Message<"changes.SimulateChangeRequest"> & { /** * The ID of the change to simulate * * @generated from field: bytes changeUUID = 1; */ - changeUUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.SimulateChangeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SimulateChangeRequest { - return new SimulateChangeRequest().fromBinary(bytes, options); - } + changeUUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): SimulateChangeRequest { - return new SimulateChangeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SimulateChangeRequest { - return new SimulateChangeRequest().fromJsonString(jsonString, options); - } - - static equals(a: SimulateChangeRequest | PlainMessage | undefined, b: SimulateChangeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SimulateChangeRequest, a, b); - } -} +/** + * Describes the message changes.SimulateChangeRequest. + * Use `create(SimulateChangeRequestSchema)` to create a new message. + */ +export const SimulateChangeRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 81); /** * @generated from message changes.SimulateChangeResponse */ -export class SimulateChangeResponse extends Message { +export type SimulateChangeResponse = Message<"changes.SimulateChangeResponse"> & { /** * Whether the simulation is complete * * @generated from field: bool done = 1; */ - done = false; + done: boolean; /** * How far through the simulation process we are. This will be pretty @@ -4333,97 +2446,52 @@ export class SimulateChangeResponse extends Message { * * @generated from field: uint32 percentComplete = 2; */ - percentComplete = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.SimulateChangeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "done", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "percentComplete", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); + percentComplete: number; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): SimulateChangeResponse { - return new SimulateChangeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SimulateChangeResponse { - return new SimulateChangeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SimulateChangeResponse { - return new SimulateChangeResponse().fromJsonString(jsonString, options); - } - - static equals(a: SimulateChangeResponse | PlainMessage | undefined, b: SimulateChangeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SimulateChangeResponse, a, b); - } -} +/** + * Describes the message changes.SimulateChangeResponse. + * Use `create(SimulateChangeResponseSchema)` to create a new message. + */ +export const SimulateChangeResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 82); /** * @generated from message changes.Risk */ -export class Risk extends Message { +export type Risk = Message<"changes.Risk"> & { /** * @generated from field: bytes UUID = 5; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * @generated from field: string title = 1; */ - title = ""; + title: string; /** * @generated from field: changes.Risk.Severity severity = 2; */ - severity = Risk_Severity.UNSPECIFIED; + severity: Risk_Severity; /** * @generated from field: string description = 3; */ - description = ""; + description: string; /** * @generated from field: repeated Reference relatedItems = 4; */ - relatedItems: Reference[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.Risk"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 5, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "severity", kind: "enum", T: proto3.getEnumType(Risk_Severity) }, - { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "relatedItems", kind: "message", T: Reference, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Risk { - return new Risk().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Risk { - return new Risk().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Risk { - return new Risk().fromJsonString(jsonString, options); - } - - static equals(a: Risk | PlainMessage | undefined, b: Risk | PlainMessage | undefined): boolean { - return proto3.util.equals(Risk, a, b); - } -} + relatedItems: Reference[]; +}; + +/** + * Describes the message changes.Risk. + * Use `create(RiskSchema)` to create a new message. + */ +export const RiskSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 83); /** * @generated from enum changes.Risk.Severity @@ -4449,22 +2517,21 @@ export enum Risk_Severity { */ HIGH = 3, } -// Retrieve enum metadata with: proto3.getEnumType(Risk_Severity) -proto3.util.setEnumType(Risk_Severity, "changes.Risk.Severity", [ - { no: 0, name: "SEVERITY_UNSPECIFIED" }, - { no: 1, name: "SEVERITY_LOW" }, - { no: 2, name: "SEVERITY_MEDIUM" }, - { no: 3, name: "SEVERITY_HIGH" }, -]); + +/** + * Describes the enum changes.Risk.Severity. + */ +export const Risk_SeveritySchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 83, 0); /** * @generated from message changes.RiskCalculationStatus */ -export class RiskCalculationStatus extends Message { +export type RiskCalculationStatus = Message<"changes.RiskCalculationStatus"> & { /** * @generated from field: changes.RiskCalculationStatus.Status status = 1; */ - status = RiskCalculationStatus_Status.UNSPECIFIED; + status: RiskCalculationStatus_Status; /** * Milestones within the risk calculation process. They will be populated when @@ -4473,121 +2540,41 @@ export class RiskCalculationStatus extends Message { * * @generated from field: repeated changes.RiskCalculationStatus.ProgressMilestone progressMilestones = 5; */ - progressMilestones: RiskCalculationStatus_ProgressMilestone[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.RiskCalculationStatus"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(RiskCalculationStatus_Status) }, - { no: 5, name: "progressMilestones", kind: "message", T: RiskCalculationStatus_ProgressMilestone, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RiskCalculationStatus { - return new RiskCalculationStatus().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RiskCalculationStatus { - return new RiskCalculationStatus().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RiskCalculationStatus { - return new RiskCalculationStatus().fromJsonString(jsonString, options); - } - - static equals(a: RiskCalculationStatus | PlainMessage | undefined, b: RiskCalculationStatus | PlainMessage | undefined): boolean { - return proto3.util.equals(RiskCalculationStatus, a, b); - } -} + progressMilestones: RiskCalculationStatus_ProgressMilestone[]; +}; /** - * @generated from enum changes.RiskCalculationStatus.Status + * Describes the message changes.RiskCalculationStatus. + * Use `create(RiskCalculationStatusSchema)` to create a new message. */ -export enum RiskCalculationStatus_Status { - /** - * @generated from enum value: STATUS_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * @generated from enum value: STATUS_INPROGRESS = 1; - */ - INPROGRESS = 1, - - /** - * @generated from enum value: STATUS_SKIPPED = 2; - */ - SKIPPED = 2, - - /** - * @generated from enum value: STATUS_DONE = 3; - */ - DONE = 3, - - /** - * @generated from enum value: STATUS_ERROR = 4; - */ - ERROR = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(RiskCalculationStatus_Status) -proto3.util.setEnumType(RiskCalculationStatus_Status, "changes.RiskCalculationStatus.Status", [ - { no: 0, name: "STATUS_UNSPECIFIED" }, - { no: 1, name: "STATUS_INPROGRESS" }, - { no: 2, name: "STATUS_SKIPPED" }, - { no: 3, name: "STATUS_DONE" }, - { no: 4, name: "STATUS_ERROR" }, -]); +export const RiskCalculationStatusSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 84); /** * @generated from message changes.RiskCalculationStatus.ProgressMilestone */ -export class RiskCalculationStatus_ProgressMilestone extends Message { +export type RiskCalculationStatus_ProgressMilestone = Message<"changes.RiskCalculationStatus.ProgressMilestone"> & { /** * The description of this milestone * * @generated from field: string description = 1; */ - description = ""; + description: string; /** * The status of this milestone * * @generated from field: changes.RiskCalculationStatus.ProgressMilestone.Status status = 2; */ - status = RiskCalculationStatus_ProgressMilestone_Status.PENDING; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.RiskCalculationStatus.ProgressMilestone"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(RiskCalculationStatus_ProgressMilestone_Status) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RiskCalculationStatus_ProgressMilestone { - return new RiskCalculationStatus_ProgressMilestone().fromBinary(bytes, options); - } + status: RiskCalculationStatus_ProgressMilestone_Status; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): RiskCalculationStatus_ProgressMilestone { - return new RiskCalculationStatus_ProgressMilestone().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RiskCalculationStatus_ProgressMilestone { - return new RiskCalculationStatus_ProgressMilestone().fromJsonString(jsonString, options); - } - - static equals(a: RiskCalculationStatus_ProgressMilestone | PlainMessage | undefined, b: RiskCalculationStatus_ProgressMilestone | PlainMessage | undefined): boolean { - return proto3.util.equals(RiskCalculationStatus_ProgressMilestone, a, b); - } -} +/** + * Describes the message changes.RiskCalculationStatus.ProgressMilestone. + * Use `create(RiskCalculationStatus_ProgressMilestoneSchema)` to create a new message. + */ +export const RiskCalculationStatus_ProgressMilestoneSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 84, 0); /** * @generated from enum changes.RiskCalculationStatus.ProgressMilestone.Status @@ -4630,19 +2617,53 @@ export enum RiskCalculationStatus_ProgressMilestone_Status { */ SKIPPED = 4, } -// Retrieve enum metadata with: proto3.getEnumType(RiskCalculationStatus_ProgressMilestone_Status) -proto3.util.setEnumType(RiskCalculationStatus_ProgressMilestone_Status, "changes.RiskCalculationStatus.ProgressMilestone.Status", [ - { no: 0, name: "STATUS_PENDING" }, - { no: 1, name: "STATUS_INPROGRESS" }, - { no: 2, name: "STATUS_DONE" }, - { no: 3, name: "STATUS_ERROR" }, - { no: 4, name: "STATUS_SKIPPED" }, -]); + +/** + * Describes the enum changes.RiskCalculationStatus.ProgressMilestone.Status. + */ +export const RiskCalculationStatus_ProgressMilestone_StatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 84, 0, 0); + +/** + * @generated from enum changes.RiskCalculationStatus.Status + */ +export enum RiskCalculationStatus_Status { + /** + * @generated from enum value: STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: STATUS_INPROGRESS = 1; + */ + INPROGRESS = 1, + + /** + * @generated from enum value: STATUS_SKIPPED = 2; + */ + SKIPPED = 2, + + /** + * @generated from enum value: STATUS_DONE = 3; + */ + DONE = 3, + + /** + * @generated from enum value: STATUS_ERROR = 4; + */ + ERROR = 4, +} + +/** + * Describes the enum changes.RiskCalculationStatus.Status. + */ +export const RiskCalculationStatus_StatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 84, 0); /** * @generated from message changes.ChangeArchive */ -export class ChangeArchive extends Message { +export type ChangeArchive = Message<"changes.ChangeArchive"> & { /** * @generated from field: changes.Change Change = 1; */ @@ -4671,124 +2692,572 @@ export class ChangeArchive extends Message { /** * @generated from field: repeated changes.App affectedApps = 6; */ - affectedApps: App[] = []; + affectedApps: App[]; /** * @generated from field: repeated changes.ChangeTimelineEntry timeline = 7; */ - timeline: ChangeTimelineEntry[] = []; + timeline: ChangeTimelineEntry[]; /** * @generated from field: changes.ChangeRiskMetadata changeRiskMetadata = 8; */ changeRiskMetadata?: ChangeRiskMetadata; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.ChangeArchive"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "Change", kind: "message", T: Change }, - { no: 2, name: "changingItemsBookmark", kind: "message", T: Bookmark, opt: true }, - { no: 3, name: "blastRadiusSnapshot", kind: "message", T: Snapshot, opt: true }, - { no: 4, name: "systemBeforeSnapshot", kind: "message", T: Snapshot, opt: true }, - { no: 5, name: "systemAfterSnapshot", kind: "message", T: Snapshot, opt: true }, - { no: 6, name: "affectedApps", kind: "message", T: App, repeated: true }, - { no: 7, name: "timeline", kind: "message", T: ChangeTimelineEntry, repeated: true }, - { no: 8, name: "changeRiskMetadata", kind: "message", T: ChangeRiskMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeArchive { - return new ChangeArchive().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeArchive { - return new ChangeArchive().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeArchive { - return new ChangeArchive().fromJsonString(jsonString, options); - } - - static equals(a: ChangeArchive | PlainMessage | undefined, b: ChangeArchive | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeArchive, a, b); - } -} +/** + * Describes the message changes.ChangeArchive. + * Use `create(ChangeArchiveSchema)` to create a new message. + */ +export const ChangeArchiveSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 85); /** * @generated from message changes.GetChangeArchiveRequest */ -export class GetChangeArchiveRequest extends Message { +export type GetChangeArchiveRequest = Message<"changes.GetChangeArchiveRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; +}; + +/** + * Describes the message changes.GetChangeArchiveRequest. + * Use `create(GetChangeArchiveRequestSchema)` to create a new message. + */ +export const GetChangeArchiveRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 86); + +/** + * @generated from message changes.GetChangeArchiveResponse + */ +export type GetChangeArchiveResponse = Message<"changes.GetChangeArchiveResponse"> & { + /** + * @generated from field: changes.ChangeArchive changeArchive = 1; + */ + changeArchive?: ChangeArchive; +}; + +/** + * Describes the message changes.GetChangeArchiveResponse. + * Use `create(GetChangeArchiveResponseSchema)` to create a new message. + */ +export const GetChangeArchiveResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_changes, 87); - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +/** + * @generated from enum changes.ItemDiffStatus + */ +export enum ItemDiffStatus { + /** + * @generated from enum value: ITEM_DIFF_STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetChangeArchiveRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + /** + * @generated from enum value: ITEM_DIFF_STATUS_UNCHANGED = 1; + */ + UNCHANGED = 1, - static fromBinary(bytes: Uint8Array, options?: Partial): GetChangeArchiveRequest { - return new GetChangeArchiveRequest().fromBinary(bytes, options); - } + /** + * @generated from enum value: ITEM_DIFF_STATUS_CREATED = 2; + */ + CREATED = 2, - static fromJson(jsonValue: JsonValue, options?: Partial): GetChangeArchiveRequest { - return new GetChangeArchiveRequest().fromJson(jsonValue, options); - } + /** + * @generated from enum value: ITEM_DIFF_STATUS_UPDATED = 3; + */ + UPDATED = 3, - static fromJsonString(jsonString: string, options?: Partial): GetChangeArchiveRequest { - return new GetChangeArchiveRequest().fromJsonString(jsonString, options); - } + /** + * @generated from enum value: ITEM_DIFF_STATUS_DELETED = 4; + */ + DELETED = 4, - static equals(a: GetChangeArchiveRequest | PlainMessage | undefined, b: GetChangeArchiveRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChangeArchiveRequest, a, b); - } + /** + * @generated from enum value: ITEM_DIFF_STATUS_REPLACED = 5; + */ + REPLACED = 5, } /** - * @generated from message changes.GetChangeArchiveResponse + * Describes the enum changes.ItemDiffStatus. */ -export class GetChangeArchiveResponse extends Message { +export const ItemDiffStatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 0); + +/** + * @generated from enum changes.ChangeStatus + */ +export enum ChangeStatus { /** - * @generated from field: changes.ChangeArchive changeArchive = 1; + * The change has been created, but the blast radius has not yet been + * calculated. The blast radius can be calculated using the + * `CalculateBlastRadius` RPC. + * + * @generated from enum value: CHANGE_STATUS_UNSPECIFIED = 0; */ - changeArchive?: ChangeArchive; + UNSPECIFIED = 0, - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + /** + * The blast radius has been calculated, but the change has not yet started. + * The change can be started using the `StartChange` RPC. + * + * @generated from enum value: CHANGE_STATUS_DEFINING = 1; + */ + DEFINING = 1, - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "changes.GetChangeArchiveResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeArchive", kind: "message", T: ChangeArchive }, - ]); + /** + * The change is in progress. The change can be ended using the `EndChange` + * RPC. + * + * @generated from enum value: CHANGE_STATUS_HAPPENING = 2; + */ + HAPPENING = 2, - static fromBinary(bytes: Uint8Array, options?: Partial): GetChangeArchiveResponse { - return new GetChangeArchiveResponse().fromBinary(bytes, options); - } + /** + * The change has been ended, but the results have not yet been processed. + * + * @generated from enum value: CHANGE_STATUS_PROCESSING = 3; + */ + PROCESSING = 3, + + /** + * The change has been ended and the results have been processed. + * + * @generated from enum value: CHANGE_STATUS_DONE = 4; + */ + DONE = 4, +} + +/** + * Describes the enum changes.ChangeStatus. + */ +export const ChangeStatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 1); + +/** + * @generated from enum changes.OnboardingStatus + */ +export enum OnboardingStatus { + /** + * @generated from enum value: ONBOARDING_STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, - static fromJson(jsonValue: JsonValue, options?: Partial): GetChangeArchiveResponse { - return new GetChangeArchiveResponse().fromJson(jsonValue, options); - } + /** + * @generated from enum value: ONBOARDING_STATUS_ADD_AWS_ACCOUNT = 1; + */ + ADD_AWS_ACCOUNT = 1, - static fromJsonString(jsonString: string, options?: Partial): GetChangeArchiveResponse { - return new GetChangeArchiveResponse().fromJsonString(jsonString, options); - } + /** + * @generated from enum value: ONBOARDING_STATUS_ADD_APP = 2; + */ + ADD_APP = 2, - static equals(a: GetChangeArchiveResponse | PlainMessage | undefined, b: GetChangeArchiveResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChangeArchiveResponse, a, b); - } + /** + * @generated from enum value: ONBOARDING_STATUS_CREATE_CHANGE = 3; + */ + CREATE_CHANGE = 3, + + /** + * @generated from enum value: ONBOARDING_STATUS_SIMULATE_CHANGE = 4; + */ + SIMULATE_CHANGE = 4, + + /** + * @generated from enum value: ONBOARDING_STATUS_DONE = 5; + */ + DONE = 5, } +/** + * Describes the enum changes.OnboardingStatus. + */ +export const OnboardingStatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_changes, 2); + +/** + * All the request/reply APIs for the Change/App iteration + * + * @generated from service changes.ChangesService + */ +export const ChangesService: GenService<{ + /** + * Lists all apps + * + * @generated from rpc changes.ChangesService.ListApps + */ + listApps: { + methodKind: "unary"; + input: typeof ListAppsRequestSchema; + output: typeof ListAppsResponseSchema; + }, + /** + * Creates a new app + * + * @generated from rpc changes.ChangesService.CreateApp + */ + createApp: { + methodKind: "unary"; + input: typeof CreateAppRequestSchema; + output: typeof CreateAppResponseSchema; + }, + /** + * Creates an app using just a URL as input. This automatically creates and + * sets the bookmark UUID, along with the url for display in the GUI + * + * @generated from rpc changes.ChangesService.CreateSimpleApp + */ + createSimpleApp: { + methodKind: "unary"; + input: typeof CreateSimpleAppRequestSchema; + output: typeof CreateSimpleAppResponseSchema; + }, + /** + * Gets the details of an existing app + * + * @generated from rpc changes.ChangesService.GetApp + */ + getApp: { + methodKind: "unary"; + input: typeof GetAppRequestSchema; + output: typeof GetAppResponseSchema; + }, + /** + * Updates an existing app + * + * @generated from rpc changes.ChangesService.UpdateApp + */ + updateApp: { + methodKind: "unary"; + input: typeof UpdateAppRequestSchema; + output: typeof UpdateAppResponseSchema; + }, + /** + * Deletes an app + * + * @generated from rpc changes.ChangesService.DeleteApp + */ + deleteApp: { + methodKind: "unary"; + input: typeof DeleteAppRequestSchema; + output: typeof DeleteAppResponseSchema; + }, + /** + * Lists all changes + * + * @generated from rpc changes.ChangesService.ListChanges + */ + listChanges: { + methodKind: "unary"; + input: typeof ListChangesRequestSchema; + output: typeof ListChangesResponseSchema; + }, + /** + * list all changes in a specific status + * + * @generated from rpc changes.ChangesService.ListChangesByStatus + */ + listChangesByStatus: { + methodKind: "unary"; + input: typeof ListChangesByStatusRequestSchema; + output: typeof ListChangesByStatusResponseSchema; + }, + /** + * Creates a new change + * + * @generated from rpc changes.ChangesService.CreateChange + */ + createChange: { + methodKind: "unary"; + input: typeof CreateChangeRequestSchema; + output: typeof CreateChangeResponseSchema; + }, + /** + * Gets the details of an existing change + * + * @generated from rpc changes.ChangesService.GetChange + */ + getChange: { + methodKind: "unary"; + input: typeof GetChangeRequestSchema; + output: typeof GetChangeResponseSchema; + }, + /** + * Gets the risks and risk calculation status of an existing change + * + * @generated from rpc changes.ChangesService.GetChangeRisks + */ + getChangeRisks: { + methodKind: "unary"; + input: typeof GetChangeRisksRequestSchema; + output: typeof GetChangeRisksResponseSchema; + }, + /** + * Gets the all data of an existing change for archival + * + * @generated from rpc changes.ChangesService.GetChangeArchive + */ + getChangeArchive: { + methodKind: "unary"; + input: typeof GetChangeArchiveRequestSchema; + output: typeof GetChangeArchiveResponseSchema; + }, + /** + * Updates an existing change + * + * @generated from rpc changes.ChangesService.UpdateChange + */ + updateChange: { + methodKind: "unary"; + input: typeof UpdateChangeRequestSchema; + output: typeof UpdateChangeResponseSchema; + }, + /** + * Deletes a change + * + * @generated from rpc changes.ChangesService.DeleteChange + */ + deleteChange: { + methodKind: "unary"; + input: typeof DeleteChangeRequestSchema; + output: typeof DeleteChangeResponseSchema; + }, + /** + * Lists all changes for a snapshot UUID + * + * @generated from rpc changes.ChangesService.ListChangesBySnapshotUUID + */ + listChangesBySnapshotUUID: { + methodKind: "unary"; + input: typeof ListChangesBySnapshotUUIDRequestSchema; + output: typeof ListChangesBySnapshotUUIDResponseSchema; + }, + /** + * Get the timeline of changes for a given change + * + * @generated from rpc changes.ChangesService.GetChangeTimeline + */ + getChangeTimeline: { + methodKind: "unary"; + input: typeof GetChangeTimelineRequestSchema; + output: typeof GetChangeTimelineResponseSchema; + }, + /** + * Ask the gateway to refresh all internal caches and status slots + * The RPC will return immediately doing all processing in the background + * + * @generated from rpc changes.ChangesService.RefreshState + */ + refreshState: { + methodKind: "unary"; + input: typeof RefreshStateRequestSchema; + output: typeof RefreshStateResponseSchema; + }, + /** + * Calculates the blast radius of a change using the + * `changingItemsBookmarkUUID` as the starting point. If the + * `changingItemsBookmarkUUID` is blank, this will return an error. + * Returns a stream of status updates. The response stream closes when all calculating has been done. + * Executing this RPC will move the Change to the `STATUS_DEFINING` state or return an error. + * + * @generated from rpc changes.ChangesService.CalculateBlastRadius + */ + calculateBlastRadius: { + methodKind: "server_streaming"; + input: typeof CalculateBlastRadiusRequestSchema; + output: typeof CalculateBlastRadiusResponseSchema; + }, + /** + * Executing this RPC take a snapshot of the current blast radius and store it + * in `systemBeforeSnapshotUUID` and then advance the status to + * `STATUS_HAPPENING`. It can only be called once per change. + * + * @generated from rpc changes.ChangesService.StartChange + */ + startChange: { + methodKind: "server_streaming"; + input: typeof StartChangeRequestSchema; + output: typeof StartChangeResponseSchema; + }, + /** + * Takes the "after" snapshot, stores it in `systemAfterSnapshotUUID`, calculates + * the change diff and stores it as a list of DiffedItems and + * advances the change status to `STATUS_DONE` + * + * @generated from rpc changes.ChangesService.EndChange + */ + endChange: { + methodKind: "server_streaming"; + input: typeof EndChangeRequestSchema; + output: typeof EndChangeResponseSchema; + }, + /** + * Simulates a change without the user actually having to do anything. The + * change specified in the request should be in the `STATUS_DEFINING` state. + * It will be moved to the `STATUS_DONE` state after the simulation is + * complete. + * + * @generated from rpc changes.ChangesService.SimulateChange + */ + simulateChange: { + methodKind: "server_streaming"; + input: typeof SimulateChangeRequestSchema; + output: typeof SimulateChangeResponseSchema; + }, + /** + * @generated from rpc changes.ChangesService.GetOnboarding + */ + getOnboarding: { + methodKind: "unary"; + input: typeof GetOnboardingRequestSchema; + output: typeof GetOnboardingResponseSchema; + }, + /** + * @generated from rpc changes.ChangesService.UpdateOnboarding + */ + updateOnboarding: { + methodKind: "unary"; + input: typeof UpdateOnboardingRequestSchema; + output: typeof UpdateOnboardingResponseSchema; + }, + /** + * Lists all apps, designed for use in the apps home page + * + * @generated from rpc changes.ChangesService.ListHomeApps + */ + listHomeApps: { + methodKind: "unary"; + input: typeof ListHomeAppsRequestSchema; + output: typeof ListHomeAppsResponseSchema; + }, + /** + * Lists all changes, designed for use in the changes home page + * + * @generated from rpc changes.ChangesService.ListHomeChanges + */ + listHomeChanges: { + methodKind: "unary"; + input: typeof ListHomeChangesRequestSchema; + output: typeof ListHomeChangesResponseSchema; + }, + /** + * Gets a summary of an app, used when a user clicks on a given app + * + * @generated from rpc changes.ChangesService.GetAppSummary + */ + getAppSummary: { + methodKind: "unary"; + input: typeof GetAppSummaryRequestSchema; + output: typeof GetAppSummaryResponseSchema; + }, + /** + * Gets a summaries of a list of apps + * + * @generated from rpc changes.ChangesService.GetAppSummaries + */ + getAppSummaries: { + methodKind: "unary"; + input: typeof GetAppSummariesRequestSchema; + output: typeof GetAppSummariesResponseSchema; + }, + /** + * Lists all changes affecting an app + * + * @generated from rpc changes.ChangesService.ListAppChanges + */ + listAppChanges: { + methodKind: "unary"; + input: typeof ListAppChangesRequestSchema; + output: typeof ListAppChangesResponseSchema; + }, + /** + * Lists all changes affecting an app, returning only a summary of each change + * rather than the full details + * + * @generated from rpc changes.ChangesService.ListAppChangesSummary + */ + listAppChangesSummary: { + methodKind: "unary"; + input: typeof ListAppChangesSummaryRequestSchema; + output: typeof ListAppChangesSummaryResponseSchema; + }, + /** + * This sets the items that are changing in a given change, and updates the + * blast radius. In the backend this will convert the references to GET + * requests, save them to a bookmark, and set this as the + * changingItemsBookmarkUUID in the change itself before triggering a blast + * radius calculation + * + * @generated from rpc changes.ChangesService.UpdateChangingItems + */ + updateChangingItems: { + methodKind: "server_streaming"; + input: typeof UpdateChangingItemsRequestSchema; + output: typeof CalculateBlastRadiusResponseSchema; + }, + /** + * This sets the item diffs that are changing in a given change, and updates + * the blast radius. In the backend this will save the item diffs for later + * display and use the item's references to fabricate a bookmark, and set this + * as changingItemsBookmarkUUID in the change itself before triggering a blast + * radius calculation. Note that not all of the changing items have to exist + * in our current sources. + * + * @generated from rpc changes.ChangesService.UpdatePlannedChanges + */ + updatePlannedChanges: { + methodKind: "server_streaming"; + input: typeof UpdatePlannedChangesRequestSchema; + output: typeof CalculateBlastRadiusResponseSchema; + }, + /** + * Returns a list of apps that are affected by this change. This is calculated + * by looking at the blast radius snapshot and finding all apps that have + * items in the snapshot. + * + * @generated from rpc changes.ChangesService.GetAffectedApps + */ + getAffectedApps: { + methodKind: "unary"; + input: typeof GetAffectedAppsRequestSchema; + output: typeof GetAffectedAppsResponseSchema; + }, + /** + * Gets the diff summary for all items that were planned to change as part of + * this change. This includes the high level details of the item, and the + * status (e.g. changed, deleted) but not the diff itself + * + * @generated from rpc changes.ChangesService.ListChangingItemsSummary + */ + listChangingItemsSummary: { + methodKind: "unary"; + input: typeof ListChangingItemsSummaryRequestSchema; + output: typeof ListChangingItemsSummaryResponseSchema; + }, + /** + * Gets the full diff of everything that changed as part of this "change". + * This includes all items and also edges between them + * + * @generated from rpc changes.ChangesService.GetDiff + */ + getDiff: { + methodKind: "unary"; + input: typeof GetDiffRequestSchema; + output: typeof GetDiffResponseSchema; + }, + /** + * List all the available repos, authors and statuses that can be used to populate the dropdown filters + * + * @generated from rpc changes.ChangesService.PopulateChangeFilters + */ + populateChangeFilters: { + methodKind: "unary"; + input: typeof PopulateChangeFiltersRequestSchema; + output: typeof PopulateChangeFiltersResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_changes, 0); + diff --git a/src/__generated__/cli-ConfigService_connectquery.ts b/src/__generated__/cli-ConfigService_connectquery.ts index fd63597..ea1fe9f 100644 --- a/src/__generated__/cli-ConfigService_connectquery.ts +++ b/src/__generated__/cli-ConfigService_connectquery.ts @@ -1,35 +1,15 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file cli.proto (package cli, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { GetConfigRequest, GetConfigResponse, SetConfigRequest, SetConfigResponse } from "./cli_pb.ts"; +import { ConfigService } from "./cli_pb"; /** * @generated from rpc cli.ConfigService.GetConfig */ -export const getConfig = { - localName: "getConfig", - name: "GetConfig", - kind: MethodKind.Unary, - I: GetConfigRequest, - O: GetConfigResponse, - service: { - typeName: "cli.ConfigService" - } -} as const; +export const getConfig = ConfigService.method.getConfig; /** * @generated from rpc cli.ConfigService.SetConfig */ -export const setConfig = { - localName: "setConfig", - name: "SetConfig", - kind: MethodKind.Unary, - I: SetConfigRequest, - O: SetConfigResponse, - service: { - typeName: "cli.ConfigService" - } -} as const; +export const setConfig = ConfigService.method.setConfig; diff --git a/src/__generated__/cli_connect.ts b/src/__generated__/cli_connect.ts deleted file mode 100644 index 633ddc9..0000000 --- a/src/__generated__/cli_connect.ts +++ /dev/null @@ -1,37 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file cli.proto (package cli, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { GetConfigRequest, GetConfigResponse, SetConfigRequest, SetConfigResponse } from "./cli_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * a simple key-value store to store the config for the CLI - * - * @generated from service cli.ConfigService - */ -export const ConfigService = { - typeName: "cli.ConfigService", - methods: { - /** - * @generated from rpc cli.ConfigService.GetConfig - */ - getConfig: { - name: "GetConfig", - I: GetConfigRequest, - O: GetConfigResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc cli.ConfigService.SetConfig - */ - setConfig: { - name: "SetConfig", - I: SetConfigRequest, - O: SetConfigResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/cli_pb.ts b/src/__generated__/cli_pb.ts index 07145cd..1cc32c5 100644 --- a/src/__generated__/cli_pb.ts +++ b/src/__generated__/cli_pb.ts @@ -1,156 +1,108 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file cli.proto (package cli, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file cli.proto. + */ +export const file_cli: GenFile = /*@__PURE__*/ + fileDesc("CgljbGkucHJvdG8SA2NsaSIfChBHZXRDb25maWdSZXF1ZXN0EgsKA2tleRgBIAEoCSIiChFHZXRDb25maWdSZXNwb25zZRINCgV2YWx1ZRgBIAEoCSIuChBTZXRDb25maWdSZXF1ZXN0EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCSITChFTZXRDb25maWdSZXNwb25zZTKLAQoNQ29uZmlnU2VydmljZRI8CglHZXRDb25maWcSFS5jbGkuR2V0Q29uZmlnUmVxdWVzdBoWLmNsaS5HZXRDb25maWdSZXNwb25zZSIAEjwKCVNldENvbmZpZxIVLmNsaS5TZXRDb25maWdSZXF1ZXN0GhYuY2xpLlNldENvbmZpZ1Jlc3BvbnNlIgBCJFoiZ2l0aHViLmNvbS9vdmVybWluZHRlY2gvc2RwLWdvO3NkcGIGcHJvdG8z"); /** * @generated from message cli.GetConfigRequest */ -export class GetConfigRequest extends Message { +export type GetConfigRequest = Message<"cli.GetConfigRequest"> & { /** * @generated from field: string key = 1; */ - key = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cli.GetConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + key: string; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): GetConfigRequest { - return new GetConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetConfigRequest { - return new GetConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetConfigRequest { - return new GetConfigRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetConfigRequest | PlainMessage | undefined, b: GetConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetConfigRequest, a, b); - } -} +/** + * Describes the message cli.GetConfigRequest. + * Use `create(GetConfigRequestSchema)` to create a new message. + */ +export const GetConfigRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_cli, 0); /** * @generated from message cli.GetConfigResponse */ -export class GetConfigResponse extends Message { +export type GetConfigResponse = Message<"cli.GetConfigResponse"> & { /** * @generated from field: string value = 1; */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cli.GetConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetConfigResponse { - return new GetConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetConfigResponse { - return new GetConfigResponse().fromJson(jsonValue, options); - } + value: string; +}; - static fromJsonString(jsonString: string, options?: Partial): GetConfigResponse { - return new GetConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetConfigResponse | PlainMessage | undefined, b: GetConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetConfigResponse, a, b); - } -} +/** + * Describes the message cli.GetConfigResponse. + * Use `create(GetConfigResponseSchema)` to create a new message. + */ +export const GetConfigResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_cli, 1); /** * @generated from message cli.SetConfigRequest */ -export class SetConfigRequest extends Message { +export type SetConfigRequest = Message<"cli.SetConfigRequest"> & { /** * @generated from field: string key = 1; */ - key = ""; + key: string; /** * @generated from field: string value = 2; */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + value: string; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cli.SetConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SetConfigRequest { - return new SetConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SetConfigRequest { - return new SetConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SetConfigRequest { - return new SetConfigRequest().fromJsonString(jsonString, options); - } - - static equals(a: SetConfigRequest | PlainMessage | undefined, b: SetConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SetConfigRequest, a, b); - } -} +/** + * Describes the message cli.SetConfigRequest. + * Use `create(SetConfigRequestSchema)` to create a new message. + */ +export const SetConfigRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_cli, 2); /** * @generated from message cli.SetConfigResponse */ -export class SetConfigResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cli.SetConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SetConfigResponse { - return new SetConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SetConfigResponse { - return new SetConfigResponse().fromJson(jsonValue, options); - } +export type SetConfigResponse = Message<"cli.SetConfigResponse"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): SetConfigResponse { - return new SetConfigResponse().fromJsonString(jsonString, options); - } +/** + * Describes the message cli.SetConfigResponse. + * Use `create(SetConfigResponseSchema)` to create a new message. + */ +export const SetConfigResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_cli, 3); - static equals(a: SetConfigResponse | PlainMessage | undefined, b: SetConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SetConfigResponse, a, b); - } -} +/** + * a simple key-value store to store the config for the CLI + * + * @generated from service cli.ConfigService + */ +export const ConfigService: GenService<{ + /** + * @generated from rpc cli.ConfigService.GetConfig + */ + getConfig: { + methodKind: "unary"; + input: typeof GetConfigRequestSchema; + output: typeof GetConfigResponseSchema; + }, + /** + * @generated from rpc cli.ConfigService.SetConfig + */ + setConfig: { + methodKind: "unary"; + input: typeof SetConfigRequestSchema; + output: typeof SetConfigResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_cli, 0); diff --git a/src/__generated__/config-ConfigurationService_connectquery.ts b/src/__generated__/config-ConfigurationService_connectquery.ts index ecd0b55..2f445c2 100644 --- a/src/__generated__/config-ConfigurationService_connectquery.ts +++ b/src/__generated__/config-ConfigurationService_connectquery.ts @@ -1,42 +1,22 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file config.proto (package config, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { CreateHcpConfigRequest, CreateHcpConfigResponse, DeleteHcpConfigRequest, DeleteHcpConfigResponse, GetAccountConfigRequest, GetAccountConfigResponse, GetHcpConfigRequest, GetHcpConfigResponse, UpdateAccountConfigRequest, UpdateAccountConfigResponse } from "./config_pb.ts"; +import { ConfigurationService } from "./config_pb"; /** * Get the account config for the user's account * * @generated from rpc config.ConfigurationService.GetAccountConfig */ -export const getAccountConfig = { - localName: "getAccountConfig", - name: "GetAccountConfig", - kind: MethodKind.Unary, - I: GetAccountConfigRequest, - O: GetAccountConfigResponse, - service: { - typeName: "config.ConfigurationService" - } -} as const; +export const getAccountConfig = ConfigurationService.method.getAccountConfig; /** * Update the account config for the user's account * * @generated from rpc config.ConfigurationService.UpdateAccountConfig */ -export const updateAccountConfig = { - localName: "updateAccountConfig", - name: "UpdateAccountConfig", - kind: MethodKind.Unary, - I: UpdateAccountConfigRequest, - O: UpdateAccountConfigResponse, - service: { - typeName: "config.ConfigurationService" - } -} as const; +export const updateAccountConfig = ConfigurationService.method.updateAccountConfig; /** * Create a new HCP Terraform config for the user's account. This follows @@ -45,45 +25,18 @@ export const updateAccountConfig = { * * @generated from rpc config.ConfigurationService.CreateHcpConfig */ -export const createHcpConfig = { - localName: "createHcpConfig", - name: "CreateHcpConfig", - kind: MethodKind.Unary, - I: CreateHcpConfigRequest, - O: CreateHcpConfigResponse, - service: { - typeName: "config.ConfigurationService" - } -} as const; +export const createHcpConfig = ConfigurationService.method.createHcpConfig; /** * Get the existing HCP Terraform config for the user's account. * * @generated from rpc config.ConfigurationService.GetHcpConfig */ -export const getHcpConfig = { - localName: "getHcpConfig", - name: "GetHcpConfig", - kind: MethodKind.Unary, - I: GetHcpConfigRequest, - O: GetHcpConfigResponse, - service: { - typeName: "config.ConfigurationService" - } -} as const; +export const getHcpConfig = ConfigurationService.method.getHcpConfig; /** * Remove the existing HCP Terraform config from the user's account. * * @generated from rpc config.ConfigurationService.DeleteHcpConfig */ -export const deleteHcpConfig = { - localName: "deleteHcpConfig", - name: "DeleteHcpConfig", - kind: MethodKind.Unary, - I: DeleteHcpConfigRequest, - O: DeleteHcpConfigResponse, - service: { - typeName: "config.ConfigurationService" - } -} as const; +export const deleteHcpConfig = ConfigurationService.method.deleteHcpConfig; diff --git a/src/__generated__/config_connect.ts b/src/__generated__/config_connect.ts deleted file mode 100644 index a0f5792..0000000 --- a/src/__generated__/config_connect.ts +++ /dev/null @@ -1,76 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file config.proto (package config, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CreateHcpConfigRequest, CreateHcpConfigResponse, DeleteHcpConfigRequest, DeleteHcpConfigResponse, GetAccountConfigRequest, GetAccountConfigResponse, GetHcpConfigRequest, GetHcpConfigResponse, UpdateAccountConfigRequest, UpdateAccountConfigResponse } from "./config_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * a simple key-value store to store configuration data for accounts and users (TODO) - * - * @generated from service config.ConfigurationService - */ -export const ConfigurationService = { - typeName: "config.ConfigurationService", - methods: { - /** - * Get the account config for the user's account - * - * @generated from rpc config.ConfigurationService.GetAccountConfig - */ - getAccountConfig: { - name: "GetAccountConfig", - I: GetAccountConfigRequest, - O: GetAccountConfigResponse, - kind: MethodKind.Unary, - }, - /** - * Update the account config for the user's account - * - * @generated from rpc config.ConfigurationService.UpdateAccountConfig - */ - updateAccountConfig: { - name: "UpdateAccountConfig", - I: UpdateAccountConfigRequest, - O: UpdateAccountConfigResponse, - kind: MethodKind.Unary, - }, - /** - * Create a new HCP Terraform config for the user's account. This follows - * the same flow as CreateAPIKey, to create a new API key that is then used - * for the HCP Terraform endpoint URL. - * - * @generated from rpc config.ConfigurationService.CreateHcpConfig - */ - createHcpConfig: { - name: "CreateHcpConfig", - I: CreateHcpConfigRequest, - O: CreateHcpConfigResponse, - kind: MethodKind.Unary, - }, - /** - * Get the existing HCP Terraform config for the user's account. - * - * @generated from rpc config.ConfigurationService.GetHcpConfig - */ - getHcpConfig: { - name: "GetHcpConfig", - I: GetHcpConfigRequest, - O: GetHcpConfigResponse, - kind: MethodKind.Unary, - }, - /** - * Remove the existing HCP Terraform config from the user's account. - * - * @generated from rpc config.ConfigurationService.DeleteHcpConfig - */ - deleteHcpConfig: { - name: "DeleteHcpConfig", - I: DeleteHcpConfigRequest, - O: DeleteHcpConfigResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/config_pb.ts b/src/__generated__/config_pb.ts index 7e47598..a908cc7 100644 --- a/src/__generated__/config_pb.ts +++ b/src/__generated__/config_pb.ts @@ -1,11 +1,18 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file config.proto (package config, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { CreateAPIKeyResponse } from "./apikeys_pb.ts"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { CreateAPIKeyResponse } from "./apikeys_pb"; +import { file_apikeys } from "./apikeys_pb"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file config.proto. + */ +export const file_config: GenFile = /*@__PURE__*/ + fileDesc("Cgxjb25maWcucHJvdG8SBmNvbmZpZyI4ChFCbGFzdFJhZGl1c0NvbmZpZxIQCghtYXhJdGVtcxgBIAEoBRIRCglsaW5rRGVwdGgYAiABKAUigQIKDUFjY291bnRDb25maWcSQgoRYmxhc3RSYWRpdXNQcmVzZXQYAiABKA4yJy5jb25maWcuQWNjb3VudENvbmZpZy5CbGFzdFJhZGl1c1ByZXNldBIzCgtibGFzdFJhZGl1cxgBIAEoCzIZLmNvbmZpZy5CbGFzdFJhZGl1c0NvbmZpZ0gAiAEBEiMKG3NraXBVbm1hcHBlZENoYW5nZXNGb3JSaXNrcxgDIAEoCCJCChFCbGFzdFJhZGl1c1ByZXNldBIKCgZDVVNUT00QABIJCgVRVUlDSxABEgwKCERFVEFJTEVEEAISCAoERlVMTBADQg4KDF9ibGFzdFJhZGl1cyIZChdHZXRBY2NvdW50Q29uZmlnUmVxdWVzdCJBChhHZXRBY2NvdW50Q29uZmlnUmVzcG9uc2USJQoGY29uZmlnGAEgASgLMhUuY29uZmlnLkFjY291bnRDb25maWciQwoaVXBkYXRlQWNjb3VudENvbmZpZ1JlcXVlc3QSJQoGY29uZmlnGAEgASgLMhUuY29uZmlnLkFjY291bnRDb25maWciRAobVXBkYXRlQWNjb3VudENvbmZpZ1Jlc3BvbnNlEiUKBmNvbmZpZxgBIAEoCzIVLmNvbmZpZy5BY2NvdW50Q29uZmlnIjcKFkNyZWF0ZUhjcENvbmZpZ1JlcXVlc3QSHQoVZmluYWxGcm9udGVuZFJlZGlyZWN0GAEgASgJImsKF0NyZWF0ZUhjcENvbmZpZ1Jlc3BvbnNlEiEKBmNvbmZpZxgBIAEoCzIRLmNvbmZpZy5IY3BDb25maWcSLQoGYXBpS2V5GAIgASgLMh0uYXBpa2V5cy5DcmVhdGVBUElLZXlSZXNwb25zZSItCglIY3BDb25maWcSEAoIZW5kcG9pbnQYASABKAkSDgoGc2VjcmV0GAIgASgJIhUKE0dldEhjcENvbmZpZ1JlcXVlc3QikwEKFEdldEhjcENvbmZpZ1Jlc3BvbnNlEiEKBmNvbmZpZxgBIAEoCzIRLmNvbmZpZy5IY3BDb25maWcSMwoGc3RhdHVzGAIgASgOMiMuY29uZmlnLkdldEhjcENvbmZpZ1Jlc3BvbnNlLlN0YXR1cyIjCgZTdGF0dXMSDgoKQ09ORklHVVJFRBAAEgkKBUVSUk9SEAEiGAoWRGVsZXRlSGNwQ29uZmlnUmVxdWVzdCIZChdEZWxldGVIY3BDb25maWdSZXNwb25zZTLAAwoUQ29uZmlndXJhdGlvblNlcnZpY2USVQoQR2V0QWNjb3VudENvbmZpZxIfLmNvbmZpZy5HZXRBY2NvdW50Q29uZmlnUmVxdWVzdBogLmNvbmZpZy5HZXRBY2NvdW50Q29uZmlnUmVzcG9uc2USXgoTVXBkYXRlQWNjb3VudENvbmZpZxIiLmNvbmZpZy5VcGRhdGVBY2NvdW50Q29uZmlnUmVxdWVzdBojLmNvbmZpZy5VcGRhdGVBY2NvdW50Q29uZmlnUmVzcG9uc2USUgoPQ3JlYXRlSGNwQ29uZmlnEh4uY29uZmlnLkNyZWF0ZUhjcENvbmZpZ1JlcXVlc3QaHy5jb25maWcuQ3JlYXRlSGNwQ29uZmlnUmVzcG9uc2USSQoMR2V0SGNwQ29uZmlnEhsuY29uZmlnLkdldEhjcENvbmZpZ1JlcXVlc3QaHC5jb25maWcuR2V0SGNwQ29uZmlnUmVzcG9uc2USUgoPRGVsZXRlSGNwQ29uZmlnEh4uY29uZmlnLkRlbGV0ZUhjcENvbmZpZ1JlcXVlc3QaHy5jb25maWcuRGVsZXRlSGNwQ29uZmlnUmVzcG9uc2VCJFoiZ2l0aHViLmNvbS9vdmVybWluZHRlY2gvc2RwLWdvO3NkcGIGcHJvdG8z", [file_apikeys]); /** * The config that is used when calculating the blast radius for a change, this @@ -14,7 +21,7 @@ import { CreateAPIKeyResponse } from "./apikeys_pb.ts"; * * @generated from message config.BlastRadiusConfig */ -export class BlastRadiusConfig extends Message { +export type BlastRadiusConfig = Message<"config.BlastRadiusConfig"> & { /** * The maximum number of items that can be returned in a single blast radius * request. Once a request has hit this limit, all currently running @@ -22,43 +29,22 @@ export class BlastRadiusConfig extends Message { * * @generated from field: int32 maxItems = 1; */ - maxItems = 0; + maxItems: number; /** * How deeply to link when calculating the blast radius for a change * * @generated from field: int32 linkDepth = 2; */ - linkDepth = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.BlastRadiusConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "maxItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "linkDepth", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlastRadiusConfig { - return new BlastRadiusConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlastRadiusConfig { - return new BlastRadiusConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlastRadiusConfig { - return new BlastRadiusConfig().fromJsonString(jsonString, options); - } - - static equals(a: BlastRadiusConfig | PlainMessage | undefined, b: BlastRadiusConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(BlastRadiusConfig, a, b); - } -} + linkDepth: number; +}; + +/** + * Describes the message config.BlastRadiusConfig. + * Use `create(BlastRadiusConfigSchema)` to create a new message. + */ +export const BlastRadiusConfigSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 0); /** * This account config is stored in the `kv.Store` protobuf key-value store in @@ -69,7 +55,7 @@ export class BlastRadiusConfig extends Message { * * @generated from message config.AccountConfig */ -export class AccountConfig extends Message { +export type AccountConfig = Message<"config.AccountConfig"> & { /** * The preset that we should use when calculating the blast radius for a * change. If this is set to "CUSTOM" then the `blastRadius` config should be @@ -77,7 +63,7 @@ export class AccountConfig extends Message { * * @generated from field: config.AccountConfig.BlastRadiusPreset blastRadiusPreset = 2; */ - blastRadiusPreset = AccountConfig_BlastRadiusPreset.CUSTOM; + blastRadiusPreset: AccountConfig_BlastRadiusPreset; /** * The blast radius config for this account, this is only required if the @@ -96,37 +82,15 @@ export class AccountConfig extends Message { * * @generated from field: bool skipUnmappedChangesForRisks = 3; */ - skipUnmappedChangesForRisks = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.AccountConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "blastRadiusPreset", kind: "enum", T: proto3.getEnumType(AccountConfig_BlastRadiusPreset) }, - { no: 1, name: "blastRadius", kind: "message", T: BlastRadiusConfig, opt: true }, - { no: 3, name: "skipUnmappedChangesForRisks", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountConfig { - return new AccountConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountConfig { - return new AccountConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountConfig { - return new AccountConfig().fromJsonString(jsonString, options); - } - - static equals(a: AccountConfig | PlainMessage | undefined, b: AccountConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountConfig, a, b); - } -} + skipUnmappedChangesForRisks: boolean; +}; + +/** + * Describes the message config.AccountConfig. + * Use `create(AccountConfigSchema)` to create a new message. + */ +export const AccountConfigSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 1); /** * @generated from enum config.AccountConfig.BlastRadiusPreset @@ -162,162 +126,83 @@ export enum AccountConfig_BlastRadiusPreset { */ FULL = 3, } -// Retrieve enum metadata with: proto3.getEnumType(AccountConfig_BlastRadiusPreset) -proto3.util.setEnumType(AccountConfig_BlastRadiusPreset, "config.AccountConfig.BlastRadiusPreset", [ - { no: 0, name: "CUSTOM" }, - { no: 1, name: "QUICK" }, - { no: 2, name: "DETAILED" }, - { no: 3, name: "FULL" }, -]); /** - * @generated from message config.GetAccountConfigRequest + * Describes the enum config.AccountConfig.BlastRadiusPreset. */ -export class GetAccountConfigRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.GetAccountConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export const AccountConfig_BlastRadiusPresetSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_config, 1, 0); - static fromBinary(bytes: Uint8Array, options?: Partial): GetAccountConfigRequest { - return new GetAccountConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAccountConfigRequest { - return new GetAccountConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAccountConfigRequest { - return new GetAccountConfigRequest().fromJsonString(jsonString, options); - } +/** + * @generated from message config.GetAccountConfigRequest + */ +export type GetAccountConfigRequest = Message<"config.GetAccountConfigRequest"> & { +}; - static equals(a: GetAccountConfigRequest | PlainMessage | undefined, b: GetAccountConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAccountConfigRequest, a, b); - } -} +/** + * Describes the message config.GetAccountConfigRequest. + * Use `create(GetAccountConfigRequestSchema)` to create a new message. + */ +export const GetAccountConfigRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 2); /** * @generated from message config.GetAccountConfigResponse */ -export class GetAccountConfigResponse extends Message { +export type GetAccountConfigResponse = Message<"config.GetAccountConfigResponse"> & { /** * @generated from field: config.AccountConfig config = 1; */ config?: AccountConfig; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.GetAccountConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "config", kind: "message", T: AccountConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAccountConfigResponse { - return new GetAccountConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAccountConfigResponse { - return new GetAccountConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAccountConfigResponse { - return new GetAccountConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAccountConfigResponse | PlainMessage | undefined, b: GetAccountConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAccountConfigResponse, a, b); - } -} +/** + * Describes the message config.GetAccountConfigResponse. + * Use `create(GetAccountConfigResponseSchema)` to create a new message. + */ +export const GetAccountConfigResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 3); /** * Updates the account config for the user's account. * * @generated from message config.UpdateAccountConfigRequest */ -export class UpdateAccountConfigRequest extends Message { +export type UpdateAccountConfigRequest = Message<"config.UpdateAccountConfigRequest"> & { /** * @generated from field: config.AccountConfig config = 1; */ config?: AccountConfig; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.UpdateAccountConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "config", kind: "message", T: AccountConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAccountConfigRequest { - return new UpdateAccountConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAccountConfigRequest { - return new UpdateAccountConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAccountConfigRequest { - return new UpdateAccountConfigRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAccountConfigRequest | PlainMessage | undefined, b: UpdateAccountConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAccountConfigRequest, a, b); - } -} +/** + * Describes the message config.UpdateAccountConfigRequest. + * Use `create(UpdateAccountConfigRequestSchema)` to create a new message. + */ +export const UpdateAccountConfigRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 4); /** * @generated from message config.UpdateAccountConfigResponse */ -export class UpdateAccountConfigResponse extends Message { +export type UpdateAccountConfigResponse = Message<"config.UpdateAccountConfigResponse"> & { /** * @generated from field: config.AccountConfig config = 1; */ config?: AccountConfig; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.UpdateAccountConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "config", kind: "message", T: AccountConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAccountConfigResponse { - return new UpdateAccountConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAccountConfigResponse { - return new UpdateAccountConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAccountConfigResponse { - return new UpdateAccountConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAccountConfigResponse | PlainMessage | undefined, b: UpdateAccountConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAccountConfigResponse, a, b); - } -} +/** + * Describes the message config.UpdateAccountConfigResponse. + * Use `create(UpdateAccountConfigResponseSchema)` to create a new message. + */ +export const UpdateAccountConfigResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 5); /** * @generated from message config.CreateHcpConfigRequest */ -export class CreateHcpConfigRequest extends Message { +export type CreateHcpConfigRequest = Message<"config.CreateHcpConfigRequest"> & { /** * The URL that the user should be redirected to after the whole process is * over. This should be a page in the frontend, probably the HCP Terraform @@ -325,40 +210,20 @@ export class CreateHcpConfigRequest extends Message { * * @generated from field: string finalFrontendRedirect = 1; */ - finalFrontendRedirect = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.CreateHcpConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "finalFrontendRedirect", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateHcpConfigRequest { - return new CreateHcpConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateHcpConfigRequest { - return new CreateHcpConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateHcpConfigRequest { - return new CreateHcpConfigRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateHcpConfigRequest | PlainMessage | undefined, b: CreateHcpConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateHcpConfigRequest, a, b); - } -} + finalFrontendRedirect: string; +}; + +/** + * Describes the message config.CreateHcpConfigRequest. + * Use `create(CreateHcpConfigRequestSchema)` to create a new message. + */ +export const CreateHcpConfigRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 6); /** * @generated from message config.CreateHcpConfigResponse */ -export class CreateHcpConfigResponse extends Message { +export type CreateHcpConfigResponse = Message<"config.CreateHcpConfigResponse"> & { /** * The configuration of the HCP Run Task that was created * @@ -374,118 +239,58 @@ export class CreateHcpConfigResponse extends Message { * @generated from field: apikeys.CreateAPIKeyResponse apiKey = 2; */ apiKey?: CreateAPIKeyResponse; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.CreateHcpConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "config", kind: "message", T: HcpConfig }, - { no: 2, name: "apiKey", kind: "message", T: CreateAPIKeyResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateHcpConfigResponse { - return new CreateHcpConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateHcpConfigResponse { - return new CreateHcpConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateHcpConfigResponse { - return new CreateHcpConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateHcpConfigResponse | PlainMessage | undefined, b: CreateHcpConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateHcpConfigResponse, a, b); - } -} +/** + * Describes the message config.CreateHcpConfigResponse. + * Use `create(CreateHcpConfigResponseSchema)` to create a new message. + */ +export const CreateHcpConfigResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 7); /** * @generated from message config.HcpConfig */ -export class HcpConfig extends Message { +export type HcpConfig = Message<"config.HcpConfig"> & { /** * the Endpoint URL for the HCP Run Task configuration * * @generated from field: string endpoint = 1; */ - endpoint = ""; + endpoint: string; /** * the HMAC secret for the HCP Run Task configuration * * @generated from field: string secret = 2; */ - secret = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.HcpConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HcpConfig { - return new HcpConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HcpConfig { - return new HcpConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HcpConfig { - return new HcpConfig().fromJsonString(jsonString, options); - } - - static equals(a: HcpConfig | PlainMessage | undefined, b: HcpConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(HcpConfig, a, b); - } -} + secret: string; +}; /** - * @generated from message config.GetHcpConfigRequest + * Describes the message config.HcpConfig. + * Use `create(HcpConfigSchema)` to create a new message. */ -export class GetHcpConfigRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.GetHcpConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export const HcpConfigSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 8); - static fromBinary(bytes: Uint8Array, options?: Partial): GetHcpConfigRequest { - return new GetHcpConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetHcpConfigRequest { - return new GetHcpConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetHcpConfigRequest { - return new GetHcpConfigRequest().fromJsonString(jsonString, options); - } +/** + * @generated from message config.GetHcpConfigRequest + */ +export type GetHcpConfigRequest = Message<"config.GetHcpConfigRequest"> & { +}; - static equals(a: GetHcpConfigRequest | PlainMessage | undefined, b: GetHcpConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetHcpConfigRequest, a, b); - } -} +/** + * Describes the message config.GetHcpConfigRequest. + * Use `create(GetHcpConfigRequestSchema)` to create a new message. + */ +export const GetHcpConfigRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 9); /** * @generated from message config.GetHcpConfigResponse */ -export class GetHcpConfigResponse extends Message { +export type GetHcpConfigResponse = Message<"config.GetHcpConfigResponse"> & { /** * @generated from field: config.HcpConfig config = 1; */ @@ -494,36 +299,15 @@ export class GetHcpConfigResponse extends Message { /** * @generated from field: config.GetHcpConfigResponse.Status status = 2; */ - status = GetHcpConfigResponse_Status.CONFIGURED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.GetHcpConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "config", kind: "message", T: HcpConfig }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(GetHcpConfigResponse_Status) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetHcpConfigResponse { - return new GetHcpConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetHcpConfigResponse { - return new GetHcpConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetHcpConfigResponse { - return new GetHcpConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetHcpConfigResponse | PlainMessage | undefined, b: GetHcpConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetHcpConfigResponse, a, b); - } -} + status: GetHcpConfigResponse_Status; +}; + +/** + * Describes the message config.GetHcpConfigResponse. + * Use `create(GetHcpConfigResponseSchema)` to create a new message. + */ +export const GetHcpConfigResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 10); /** * @generated from enum config.GetHcpConfigResponse.Status @@ -545,71 +329,97 @@ export enum GetHcpConfigResponse_Status { */ ERROR = 1, } -// Retrieve enum metadata with: proto3.getEnumType(GetHcpConfigResponse_Status) -proto3.util.setEnumType(GetHcpConfigResponse_Status, "config.GetHcpConfigResponse.Status", [ - { no: 0, name: "CONFIGURED" }, - { no: 1, name: "ERROR" }, -]); /** - * @generated from message config.DeleteHcpConfigRequest + * Describes the enum config.GetHcpConfigResponse.Status. */ -export class DeleteHcpConfigRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.DeleteHcpConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteHcpConfigRequest { - return new DeleteHcpConfigRequest().fromBinary(bytes, options); - } +export const GetHcpConfigResponse_StatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_config, 10, 0); - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteHcpConfigRequest { - return new DeleteHcpConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteHcpConfigRequest { - return new DeleteHcpConfigRequest().fromJsonString(jsonString, options); - } +/** + * @generated from message config.DeleteHcpConfigRequest + */ +export type DeleteHcpConfigRequest = Message<"config.DeleteHcpConfigRequest"> & { +}; - static equals(a: DeleteHcpConfigRequest | PlainMessage | undefined, b: DeleteHcpConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteHcpConfigRequest, a, b); - } -} +/** + * Describes the message config.DeleteHcpConfigRequest. + * Use `create(DeleteHcpConfigRequestSchema)` to create a new message. + */ +export const DeleteHcpConfigRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 11); /** * @generated from message config.DeleteHcpConfigResponse */ -export class DeleteHcpConfigResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "config.DeleteHcpConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteHcpConfigResponse { - return new DeleteHcpConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteHcpConfigResponse { - return new DeleteHcpConfigResponse().fromJson(jsonValue, options); - } +export type DeleteHcpConfigResponse = Message<"config.DeleteHcpConfigResponse"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): DeleteHcpConfigResponse { - return new DeleteHcpConfigResponse().fromJsonString(jsonString, options); - } +/** + * Describes the message config.DeleteHcpConfigResponse. + * Use `create(DeleteHcpConfigResponseSchema)` to create a new message. + */ +export const DeleteHcpConfigResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_config, 12); - static equals(a: DeleteHcpConfigResponse | PlainMessage | undefined, b: DeleteHcpConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteHcpConfigResponse, a, b); - } -} +/** + * a simple key-value store to store configuration data for accounts and users (TODO) + * + * @generated from service config.ConfigurationService + */ +export const ConfigurationService: GenService<{ + /** + * Get the account config for the user's account + * + * @generated from rpc config.ConfigurationService.GetAccountConfig + */ + getAccountConfig: { + methodKind: "unary"; + input: typeof GetAccountConfigRequestSchema; + output: typeof GetAccountConfigResponseSchema; + }, + /** + * Update the account config for the user's account + * + * @generated from rpc config.ConfigurationService.UpdateAccountConfig + */ + updateAccountConfig: { + methodKind: "unary"; + input: typeof UpdateAccountConfigRequestSchema; + output: typeof UpdateAccountConfigResponseSchema; + }, + /** + * Create a new HCP Terraform config for the user's account. This follows + * the same flow as CreateAPIKey, to create a new API key that is then used + * for the HCP Terraform endpoint URL. + * + * @generated from rpc config.ConfigurationService.CreateHcpConfig + */ + createHcpConfig: { + methodKind: "unary"; + input: typeof CreateHcpConfigRequestSchema; + output: typeof CreateHcpConfigResponseSchema; + }, + /** + * Get the existing HCP Terraform config for the user's account. + * + * @generated from rpc config.ConfigurationService.GetHcpConfig + */ + getHcpConfig: { + methodKind: "unary"; + input: typeof GetHcpConfigRequestSchema; + output: typeof GetHcpConfigResponseSchema; + }, + /** + * Remove the existing HCP Terraform config from the user's account. + * + * @generated from rpc config.ConfigurationService.DeleteHcpConfig + */ + deleteHcpConfig: { + methodKind: "unary"; + input: typeof DeleteHcpConfigRequestSchema; + output: typeof DeleteHcpConfigResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_config, 0); diff --git a/src/__generated__/gateway_pb.ts b/src/__generated__/gateway_pb.ts index 1a83509..4533894 100644 --- a/src/__generated__/gateway_pb.ts +++ b/src/__generated__/gateway_pb.ts @@ -1,20 +1,31 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file gateway.proto (package gateway, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { CancelQuery, Edge, Expand, Item, Query, QueryError, QueryMethod, QueryStatus, Reference, UndoExpand, UndoQuery } from "./items_pb.ts"; -import { ResponderState } from "./responses_pb.ts"; -import { ChangeStatus } from "./changes_pb.ts"; +import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; +import type { ChangeStatus } from "./changes_pb"; +import { file_changes } from "./changes_pb"; +import type { CancelQuery, Edge, Expand, Item, Query, QueryError, QueryMethod, QueryStatus, Reference, UndoExpand, UndoQuery } from "./items_pb"; +import { file_items } from "./items_pb"; +import type { ResponderState } from "./responses_pb"; +import { file_responses } from "./responses_pb"; +import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file gateway.proto. + */ +export const file_gateway: GenFile = /*@__PURE__*/ + fileDesc("Cg1nYXRld2F5LnByb3RvEgdnYXRld2F5IvsDCg5HYXRld2F5UmVxdWVzdBIXCgVxdWVyeRgBIAEoCzIGLlF1ZXJ5SAASIwoLY2FuY2VsUXVlcnkYAyABKAsyDC5DYW5jZWxRdWVyeUgAEh8KCXVuZG9RdWVyeRgEIAEoCzIKLlVuZG9RdWVyeUgAEhkKBmV4cGFuZBgHIAEoCzIHLkV4cGFuZEgAEiEKCnVuZG9FeHBhbmQYCCABKAsyCy5VbmRvRXhwYW5kSAASLwoNc3RvcmVTbmFwc2hvdBgKIAEoCzIWLmdhdGV3YXkuU3RvcmVTbmFwc2hvdEgAEi0KDGxvYWRTbmFwc2hvdBgLIAEoCzIVLmdhdGV3YXkuTG9hZFNuYXBzaG90SAASLwoNc3RvcmVCb29rbWFyaxgOIAEoCzIWLmdhdGV3YXkuU3RvcmVCb29rbWFya0gAEi0KDGxvYWRCb29rbWFyaxgPIAEoCzIVLmdhdGV3YXkuTG9hZEJvb2ttYXJrSAASKwoLY2hhdE1lc3NhZ2UYECABKAsyFC5nYXRld2F5LkNoYXRNZXNzYWdlSAASOQoRbWluU3RhdHVzSW50ZXJ2YWwYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25IAYgBAUIOCgxyZXF1ZXN0X3R5cGVCFAoSX21pblN0YXR1c0ludGVydmFsIq8FCg9HYXRld2F5UmVzcG9uc2USGAoHbmV3SXRlbRgCIAEoCzIFLkl0ZW1IABIYCgduZXdFZGdlGAMgASgLMgUuRWRnZUgAEi8KBnN0YXR1cxgEIAEoCzIdLmdhdGV3YXkuR2F0ZXdheVJlcXVlc3RTdGF0dXNIABIPCgVlcnJvchgFIAEoCUgAEiEKCnF1ZXJ5RXJyb3IYBiABKAsyCy5RdWVyeUVycm9ySAASIAoKZGVsZXRlSXRlbRgHIAEoCzIKLlJlZmVyZW5jZUgAEhsKCmRlbGV0ZUVkZ2UYCCABKAsyBS5FZGdlSAASGwoKdXBkYXRlSXRlbRgJIAEoCzIFLkl0ZW1IABI7ChNzbmFwc2hvdFN0b3JlUmVzdWx0GAsgASgLMhwuZ2F0ZXdheS5TbmFwc2hvdFN0b3JlUmVzdWx0SAASOQoSc25hcHNob3RMb2FkUmVzdWx0GAwgASgLMhsuZ2F0ZXdheS5TbmFwc2hvdExvYWRSZXN1bHRIABI7ChNib29rbWFya1N0b3JlUmVzdWx0GA8gASgLMhwuZ2F0ZXdheS5Cb29rbWFya1N0b3JlUmVzdWx0SAASOQoSYm9va21hcmtMb2FkUmVzdWx0GBAgASgLMhsuZ2F0ZXdheS5Cb29rbWFya0xvYWRSZXN1bHRIABIjCgtxdWVyeVN0YXR1cxgRIAEoCzIMLlF1ZXJ5U3RhdHVzSAASLQoMY2hhdFJlc3BvbnNlGBIgASgLMhUuZ2F0ZXdheS5DaGF0UmVzcG9uc2VIABInCgl0b29sU3RhcnQYEyABKAsyEi5nYXRld2F5LlRvb2xTdGFydEgAEikKCnRvb2xGaW5pc2gYFCABKAsyEy5nYXRld2F5LlRvb2xGaW5pc2hIAEIPCg1yZXNwb25zZV90eXBlIvkCChRHYXRld2F5UmVxdWVzdFN0YXR1cxJLCg9yZXNwb25kZXJTdGF0ZXMYASADKAsyMi5nYXRld2F5LkdhdGV3YXlSZXF1ZXN0U3RhdHVzLlJlc3BvbmRlclN0YXRlc0VudHJ5EjYKB3N1bW1hcnkYAyABKAsyJS5nYXRld2F5LkdhdGV3YXlSZXF1ZXN0U3RhdHVzLlN1bW1hcnkSHgoWcG9zdFByb2Nlc3NpbmdDb21wbGV0ZRgEIAEoCBpHChRSZXNwb25kZXJTdGF0ZXNFbnRyeRILCgNrZXkYASABKAkSHgoFdmFsdWUYAiABKA4yDy5SZXNwb25kZXJTdGF0ZToCOAEacwoHU3VtbWFyeRIPCgd3b3JraW5nGAEgASgFEg8KB3N0YWxsZWQYAiABKAUSEAoIY29tcGxldGUYAyABKAUSDQoFZXJyb3IYBCABKAUSEQoJY2FuY2VsbGVkGAUgASgFEhIKCnJlc3BvbmRlcnMYBiABKAUiUwoNU3RvcmVCb29rbWFyaxIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEg0KBW1zZ0lEGAMgASgMEhAKCGlzU3lzdGVtGAQgASgIImUKE0Jvb2ttYXJrU3RvcmVSZXN1bHQSDwoHc3VjY2VzcxgBIAEoCBIUCgxlcnJvck1lc3NhZ2UYAiABKAkSDQoFbXNnSUQYBCABKAwSEgoKYm9va21hcmtJRBgFIAEoDEoECAMQBCJuCgxMb2FkQm9va21hcmsSDAoEVVVJRBgBIAEoDBINCgVtc2dJRBgCIAEoDBITCgtpZ25vcmVDYWNoZRgDIAEoCBIsCghkZWFkbGluZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiZQoSQm9va21hcmtMb2FkUmVzdWx0Eg8KB3N1Y2Nlc3MYASABKAgSFAoMZXJyb3JNZXNzYWdlGAIgASgJEhkKEXN0YXJ0ZWRRdWVyeVVVSURzGAMgAygMEg0KBW1zZ0lEGAQgASgMIkEKDVN0b3JlU25hcHNob3QSDAoEbmFtZRgBIAEoCRITCgtkZXNjcmlwdGlvbhgCIAEoCRINCgVtc2dJRBgDIAEoDCJlChNTbmFwc2hvdFN0b3JlUmVzdWx0Eg8KB3N1Y2Nlc3MYASABKAgSFAoMZXJyb3JNZXNzYWdlGAIgASgJEg0KBW1zZ0lEGAQgASgMEhIKCnNuYXBzaG90SUQYBSABKAxKBAgDEAQiKwoMTG9hZFNuYXBzaG90EgwKBFVVSUQYASABKAwSDQoFbXNnSUQYAiABKAwiSgoSU25hcHNob3RMb2FkUmVzdWx0Eg8KB3N1Y2Nlc3MYASABKAgSFAoMZXJyb3JNZXNzYWdlGAIgASgJEg0KBW1zZ0lEGAQgASgMIj8KC0NoYXRNZXNzYWdlEg4KBHRleHQYASABKAlIABIQCgZjYW5jZWwYAiABKAhIAEIOCgxyZXF1ZXN0X3R5cGUiGgoMVG9vbE1ldGFkYXRhEgoKAmlkGAEgASgJIloKDlF1ZXJ5VG9vbFN0YXJ0EgwKBHR5cGUYASABKAkSHAoGbWV0aG9kGAIgASgOMgwuUXVlcnlNZXRob2QSDQoFcXVlcnkYAyABKAkSDQoFc2NvcGUYBCABKAkiIwoPUXVlcnlUb29sRmluaXNoEhAKCG51bUl0ZW1zGAEgASgFIlIKFVJlbGF0aW9uc2hpcFRvb2xTdGFydBIMCgR0eXBlGAEgASgJEhwKFHVuaXF1ZUF0dHJpYnV0ZVZhbHVlGAIgASgJEg0KBXNjb3BlGAMgASgJIioKFlJlbGF0aW9uc2hpcFRvb2xGaW5pc2gSEAoIbnVtSXRlbXMYASABKAUiWAobQ2hhbmdlc0J5UmVmZXJlbmNlVG9vbFN0YXJ0EgwKBHR5cGUYASABKAkSHAoUdW5pcXVlQXR0cmlidXRlVmFsdWUYAiABKAkSDQoFc2NvcGUYAyABKAkivAEKGENoYW5nZUJ5UmVmZXJlbmNlU3VtbWFyeRINCgV0aXRsZRgBIAEoCRIMCgRVVUlEGAIgASgMEi0KCWNyZWF0ZWRBdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDQoFb3duZXIYBCABKAkSGAoQbnVtQWZmZWN0ZWRJdGVtcxgFIAEoBRIrCgxjaGFuZ2VTdGF0dXMYBiABKA4yFS5jaGFuZ2VzLkNoYW5nZVN0YXR1cyJaChxDaGFuZ2VzQnlSZWZlcmVuY2VUb29sRmluaXNoEjoKD2NoYW5nZVN1bW1hcmllcxgBIAMoCzIhLmdhdGV3YXkuQ2hhbmdlQnlSZWZlcmVuY2VTdW1tYXJ5IucBCglUb29sU3RhcnQSJwoIbWV0YWRhdGEYASABKAsyFS5nYXRld2F5LlRvb2xNZXRhZGF0YRIoCgVxdWVyeRgCIAEoCzIXLmdhdGV3YXkuUXVlcnlUb29sU3RhcnRIABI2CgxyZWxhdGlvbnNoaXAYAyABKAsyHi5nYXRld2F5LlJlbGF0aW9uc2hpcFRvb2xTdGFydEgAEkIKEmNoYW5nZXNCeVJlZmVyZW5jZRgEIAEoCzIkLmdhdGV3YXkuQ2hhbmdlc0J5UmVmZXJlbmNlVG9vbFN0YXJ0SABCCwoJdG9vbF90eXBlIvoBCgpUb29sRmluaXNoEicKCG1ldGFkYXRhGAEgASgLMhUuZ2F0ZXdheS5Ub29sTWV0YWRhdGESDQoFZXJyb3IYAiABKAkSKQoFcXVlcnkYAyABKAsyGC5nYXRld2F5LlF1ZXJ5VG9vbEZpbmlzaEgAEjcKDHJlbGF0aW9uc2hpcBgEIAEoCzIfLmdhdGV3YXkuUmVsYXRpb25zaGlwVG9vbEZpbmlzaEgAEkMKEmNoYW5nZXNCeVJlZmVyZW5jZRgFIAEoCzIlLmdhdGV3YXkuQ2hhbmdlc0J5UmVmZXJlbmNlVG9vbEZpbmlzaEgAQgsKCXRvb2xfdHlwZSIrCgxDaGF0UmVzcG9uc2USDAoEdGV4dBgBIAEoCRINCgVlcnJvchgCIAEoCUIkWiJnaXRodWIuY29tL292ZXJtaW5kdGVjaC9zZHAtZ287c2RwYgZwcm90bzM", [file_changes, file_items, file_responses, file_google_protobuf_duration, file_google_protobuf_timestamp]); /** * A union of all request made to the gateway. * * @generated from message gateway.GatewayRequest */ -export class GatewayRequest extends Message { +export type GatewayRequest = Message<"gateway.GatewayRequest"> & { /** * @generated from oneof gateway.GatewayRequest.request_type */ @@ -109,7 +120,7 @@ export class GatewayRequest extends Message { */ value: ChatMessage; case: "chatMessage"; - } | { case: undefined; value?: undefined } = { case: undefined }; + } | { case: undefined; value?: undefined }; /** * Minimum time between status updates. Setting this value too low can result in too many status messages @@ -117,44 +128,14 @@ export class GatewayRequest extends Message { * @generated from field: optional google.protobuf.Duration minStatusInterval = 2; */ minStatusInterval?: Duration; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.GatewayRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "query", kind: "message", T: Query, oneof: "request_type" }, - { no: 3, name: "cancelQuery", kind: "message", T: CancelQuery, oneof: "request_type" }, - { no: 4, name: "undoQuery", kind: "message", T: UndoQuery, oneof: "request_type" }, - { no: 7, name: "expand", kind: "message", T: Expand, oneof: "request_type" }, - { no: 8, name: "undoExpand", kind: "message", T: UndoExpand, oneof: "request_type" }, - { no: 10, name: "storeSnapshot", kind: "message", T: StoreSnapshot, oneof: "request_type" }, - { no: 11, name: "loadSnapshot", kind: "message", T: LoadSnapshot, oneof: "request_type" }, - { no: 14, name: "storeBookmark", kind: "message", T: StoreBookmark, oneof: "request_type" }, - { no: 15, name: "loadBookmark", kind: "message", T: LoadBookmark, oneof: "request_type" }, - { no: 16, name: "chatMessage", kind: "message", T: ChatMessage, oneof: "request_type" }, - { no: 2, name: "minStatusInterval", kind: "message", T: Duration, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GatewayRequest { - return new GatewayRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GatewayRequest { - return new GatewayRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GatewayRequest { - return new GatewayRequest().fromJsonString(jsonString, options); - } - - static equals(a: GatewayRequest | PlainMessage | undefined, b: GatewayRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GatewayRequest, a, b); - } -} +/** + * Describes the message gateway.GatewayRequest. + * Use `create(GatewayRequestSchema)` to create a new message. + */ +export const GatewayRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 0); /** * The gateway will always respond with this type of message, @@ -163,7 +144,7 @@ export class GatewayRequest extends Message { * * @generated from message gateway.GatewayResponse */ -export class GatewayResponse extends Message { +export type GatewayResponse = Message<"gateway.GatewayResponse"> & { /** * @generated from oneof gateway.GatewayResponse.response_type */ @@ -281,61 +262,26 @@ export class GatewayResponse extends Message { */ value: ToolFinish; case: "toolFinish"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.GatewayResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "newItem", kind: "message", T: Item, oneof: "response_type" }, - { no: 3, name: "newEdge", kind: "message", T: Edge, oneof: "response_type" }, - { no: 4, name: "status", kind: "message", T: GatewayRequestStatus, oneof: "response_type" }, - { no: 5, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "response_type" }, - { no: 6, name: "queryError", kind: "message", T: QueryError, oneof: "response_type" }, - { no: 7, name: "deleteItem", kind: "message", T: Reference, oneof: "response_type" }, - { no: 8, name: "deleteEdge", kind: "message", T: Edge, oneof: "response_type" }, - { no: 9, name: "updateItem", kind: "message", T: Item, oneof: "response_type" }, - { no: 11, name: "snapshotStoreResult", kind: "message", T: SnapshotStoreResult, oneof: "response_type" }, - { no: 12, name: "snapshotLoadResult", kind: "message", T: SnapshotLoadResult, oneof: "response_type" }, - { no: 15, name: "bookmarkStoreResult", kind: "message", T: BookmarkStoreResult, oneof: "response_type" }, - { no: 16, name: "bookmarkLoadResult", kind: "message", T: BookmarkLoadResult, oneof: "response_type" }, - { no: 17, name: "queryStatus", kind: "message", T: QueryStatus, oneof: "response_type" }, - { no: 18, name: "chatResponse", kind: "message", T: ChatResponse, oneof: "response_type" }, - { no: 19, name: "toolStart", kind: "message", T: ToolStart, oneof: "response_type" }, - { no: 20, name: "toolFinish", kind: "message", T: ToolFinish, oneof: "response_type" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GatewayResponse { - return new GatewayResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GatewayResponse { - return new GatewayResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GatewayResponse { - return new GatewayResponse().fromJsonString(jsonString, options); - } - - static equals(a: GatewayResponse | PlainMessage | undefined, b: GatewayResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GatewayResponse, a, b); - } -} + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message gateway.GatewayResponse. + * Use `create(GatewayResponseSchema)` to create a new message. + */ +export const GatewayResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 1); /** * Contains the status of the gateway request. * * @generated from message gateway.GatewayRequestStatus */ -export class GatewayRequestStatus extends Message { +export type GatewayRequestStatus = Message<"gateway.GatewayRequestStatus"> & { /** * @generated from field: map responderStates = 1; */ - responderStates: { [key: string]: ResponderState } = {}; + responderStates: { [key: string]: ResponderState }; /** * @generated from field: gateway.GatewayRequestStatus.Summary summary = 3; @@ -350,104 +296,57 @@ export class GatewayRequestStatus extends Message { * * @generated from field: bool postProcessingComplete = 4; */ - postProcessingComplete = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + postProcessingComplete: boolean; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.GatewayRequestStatus"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "responderStates", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "enum", T: proto3.getEnumType(ResponderState)} }, - { no: 3, name: "summary", kind: "message", T: GatewayRequestStatus_Summary }, - { no: 4, name: "postProcessingComplete", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GatewayRequestStatus { - return new GatewayRequestStatus().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GatewayRequestStatus { - return new GatewayRequestStatus().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GatewayRequestStatus { - return new GatewayRequestStatus().fromJsonString(jsonString, options); - } - - static equals(a: GatewayRequestStatus | PlainMessage | undefined, b: GatewayRequestStatus | PlainMessage | undefined): boolean { - return proto3.util.equals(GatewayRequestStatus, a, b); - } -} +/** + * Describes the message gateway.GatewayRequestStatus. + * Use `create(GatewayRequestStatusSchema)` to create a new message. + */ +export const GatewayRequestStatusSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 2); /** * @generated from message gateway.GatewayRequestStatus.Summary */ -export class GatewayRequestStatus_Summary extends Message { +export type GatewayRequestStatus_Summary = Message<"gateway.GatewayRequestStatus.Summary"> & { /** * @generated from field: int32 working = 1; */ - working = 0; + working: number; /** * @generated from field: int32 stalled = 2; */ - stalled = 0; + stalled: number; /** * @generated from field: int32 complete = 3; */ - complete = 0; + complete: number; /** * @generated from field: int32 error = 4; */ - error = 0; + error: number; /** * @generated from field: int32 cancelled = 5; */ - cancelled = 0; + cancelled: number; /** * @generated from field: int32 responders = 6; */ - responders = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.GatewayRequestStatus.Summary"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "working", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "stalled", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "complete", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "error", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "cancelled", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 6, name: "responders", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GatewayRequestStatus_Summary { - return new GatewayRequestStatus_Summary().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GatewayRequestStatus_Summary { - return new GatewayRequestStatus_Summary().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GatewayRequestStatus_Summary { - return new GatewayRequestStatus_Summary().fromJsonString(jsonString, options); - } - - static equals(a: GatewayRequestStatus_Summary | PlainMessage | undefined, b: GatewayRequestStatus_Summary | PlainMessage | undefined): boolean { - return proto3.util.equals(GatewayRequestStatus_Summary, a, b); - } -} + responders: number; +}; + +/** + * Describes the message gateway.GatewayRequestStatus.Summary. + * Use `create(GatewayRequestStatus_SummarySchema)` to create a new message. + */ +export const GatewayRequestStatus_SummarySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 2, 0); /** * Ask the gateway to store the current state as bookmark with the specified details. @@ -455,27 +354,27 @@ export class GatewayRequestStatus_Summary extends Message { +export type StoreBookmark = Message<"gateway.StoreBookmark"> & { /** * user supplied name of this bookmark * * @generated from field: string name = 1; */ - name = ""; + name: string; /** * user supplied description of this bookmark * * @generated from field: string description = 2; */ - description = ""; + description: string; /** * a correlation ID to match up requests and responses. set this to a value unique per connection * * @generated from field: bytes msgID = 3; */ - msgID = new Uint8Array(0); + msgID: Uint8Array; /** * whether this bookmark should be stored as a system bookmark. System @@ -484,99 +383,53 @@ export class StoreBookmark extends Message { * * @generated from field: bool isSystem = 4; */ - isSystem = false; + isSystem: boolean; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.StoreBookmark"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "msgID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "isSystem", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StoreBookmark { - return new StoreBookmark().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StoreBookmark { - return new StoreBookmark().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StoreBookmark { - return new StoreBookmark().fromJsonString(jsonString, options); - } - - static equals(a: StoreBookmark | PlainMessage | undefined, b: StoreBookmark | PlainMessage | undefined): boolean { - return proto3.util.equals(StoreBookmark, a, b); - } -} +/** + * Describes the message gateway.StoreBookmark. + * Use `create(StoreBookmarkSchema)` to create a new message. + */ +export const StoreBookmarkSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 3); /** * After a bookmark is successfully stored, this reply with the new bookmark's details is sent. * * @generated from message gateway.BookmarkStoreResult */ -export class BookmarkStoreResult extends Message { +export type BookmarkStoreResult = Message<"gateway.BookmarkStoreResult"> & { /** * @generated from field: bool success = 1; */ - success = false; + success: boolean; /** * @generated from field: string errorMessage = 2; */ - errorMessage = ""; + errorMessage: string; /** * a correlation ID to match up requests and responses. this field returns the contents of the request's msgID * * @generated from field: bytes msgID = 4; */ - msgID = new Uint8Array(0); + msgID: Uint8Array; /** * UUID of the newly created bookmark * * @generated from field: bytes bookmarkID = 5; */ - bookmarkID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.BookmarkStoreResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "errorMessage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "msgID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "bookmarkID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + bookmarkID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): BookmarkStoreResult { - return new BookmarkStoreResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BookmarkStoreResult { - return new BookmarkStoreResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BookmarkStoreResult { - return new BookmarkStoreResult().fromJsonString(jsonString, options); - } - - static equals(a: BookmarkStoreResult | PlainMessage | undefined, b: BookmarkStoreResult | PlainMessage | undefined): boolean { - return proto3.util.equals(BookmarkStoreResult, a, b); - } -} +/** + * Describes the message gateway.BookmarkStoreResult. + * Use `create(BookmarkStoreResultSchema)` to create a new message. + */ +export const BookmarkStoreResultSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 4); /** * Ask the gateway to load the specified bookmark into the current state. @@ -584,27 +437,27 @@ export class BookmarkStoreResult extends Message { * * @generated from message gateway.LoadBookmark */ -export class LoadBookmark extends Message { +export type LoadBookmark = Message<"gateway.LoadBookmark"> & { /** * unique id of the bookmark to load * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * a correlation ID to match up requests and responses. set this to a value unique per connection * * @generated from field: bytes msgID = 2; */ - msgID = new Uint8Array(0); + msgID: Uint8Array; /** * set to true to force fetching fresh data * * @generated from field: bool ignoreCache = 3; */ - ignoreCache = false; + ignoreCache: boolean; /** * The time at which the gateway should stop processing the queries spawned by this request @@ -612,96 +465,50 @@ export class LoadBookmark extends Message { * @generated from field: google.protobuf.Timestamp deadline = 4; */ deadline?: Timestamp; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.LoadBookmark"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "msgID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "ignoreCache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "deadline", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LoadBookmark { - return new LoadBookmark().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LoadBookmark { - return new LoadBookmark().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LoadBookmark { - return new LoadBookmark().fromJsonString(jsonString, options); - } - - static equals(a: LoadBookmark | PlainMessage | undefined, b: LoadBookmark | PlainMessage | undefined): boolean { - return proto3.util.equals(LoadBookmark, a, b); - } -} +/** + * Describes the message gateway.LoadBookmark. + * Use `create(LoadBookmarkSchema)` to create a new message. + */ +export const LoadBookmarkSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 5); /** * @generated from message gateway.BookmarkLoadResult */ -export class BookmarkLoadResult extends Message { +export type BookmarkLoadResult = Message<"gateway.BookmarkLoadResult"> & { /** * @generated from field: bool success = 1; */ - success = false; + success: boolean; /** * @generated from field: string errorMessage = 2; */ - errorMessage = ""; + errorMessage: string; /** * UUIDs of all queries that have been started as a result of loading this bookmark * * @generated from field: repeated bytes startedQueryUUIDs = 3; */ - startedQueryUUIDs: Uint8Array[] = []; + startedQueryUUIDs: Uint8Array[]; /** * a correlation ID to match up requests and responses. this field returns the contents of the request's msgID * * @generated from field: bytes msgID = 4; */ - msgID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.BookmarkLoadResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "errorMessage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "startedQueryUUIDs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 4, name: "msgID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + msgID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): BookmarkLoadResult { - return new BookmarkLoadResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BookmarkLoadResult { - return new BookmarkLoadResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BookmarkLoadResult { - return new BookmarkLoadResult().fromJsonString(jsonString, options); - } - - static equals(a: BookmarkLoadResult | PlainMessage | undefined, b: BookmarkLoadResult | PlainMessage | undefined): boolean { - return proto3.util.equals(BookmarkLoadResult, a, b); - } -} +/** + * Describes the message gateway.BookmarkLoadResult. + * Use `create(BookmarkLoadResultSchema)` to create a new message. + */ +export const BookmarkLoadResultSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 6); /** * Ask the gateway to store the current state as snapshot with the specified details. @@ -709,118 +516,73 @@ export class BookmarkLoadResult extends Message { * * @generated from message gateway.StoreSnapshot */ -export class StoreSnapshot extends Message { +export type StoreSnapshot = Message<"gateway.StoreSnapshot"> & { /** * user supplied name of this snapshot * * @generated from field: string name = 1; */ - name = ""; + name: string; /** * user supplied description of this snapshot * * @generated from field: string description = 2; */ - description = ""; + description: string; /** * a correlation ID to match up requests and responses. set this to a value unique per connection * * @generated from field: bytes msgID = 3; */ - msgID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.StoreSnapshot"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "msgID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StoreSnapshot { - return new StoreSnapshot().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StoreSnapshot { - return new StoreSnapshot().fromJson(jsonValue, options); - } + msgID: Uint8Array; +}; - static fromJsonString(jsonString: string, options?: Partial): StoreSnapshot { - return new StoreSnapshot().fromJsonString(jsonString, options); - } - - static equals(a: StoreSnapshot | PlainMessage | undefined, b: StoreSnapshot | PlainMessage | undefined): boolean { - return proto3.util.equals(StoreSnapshot, a, b); - } -} +/** + * Describes the message gateway.StoreSnapshot. + * Use `create(StoreSnapshotSchema)` to create a new message. + */ +export const StoreSnapshotSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 7); /** * After a snapshot is successfully stored, this reply with the new snapshot's details is sent. * * @generated from message gateway.SnapshotStoreResult */ -export class SnapshotStoreResult extends Message { +export type SnapshotStoreResult = Message<"gateway.SnapshotStoreResult"> & { /** * @generated from field: bool success = 1; */ - success = false; + success: boolean; /** * @generated from field: string errorMessage = 2; */ - errorMessage = ""; + errorMessage: string; /** * a correlation ID to match up requests and responses. this field returns the contents of the request's msgID * * @generated from field: bytes msgID = 4; */ - msgID = new Uint8Array(0); + msgID: Uint8Array; /** * The UUID of the newly stored snapshot * * @generated from field: bytes snapshotID = 5; */ - snapshotID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.SnapshotStoreResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "errorMessage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "msgID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "snapshotID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + snapshotID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotStoreResult { - return new SnapshotStoreResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotStoreResult { - return new SnapshotStoreResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotStoreResult { - return new SnapshotStoreResult().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotStoreResult | PlainMessage | undefined, b: SnapshotStoreResult | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotStoreResult, a, b); - } -} +/** + * Describes the message gateway.SnapshotStoreResult. + * Use `create(SnapshotStoreResultSchema)` to create a new message. + */ +export const SnapshotStoreResultSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 8); /** * Ask the gateway to load the specified snapshot into the current state. @@ -828,105 +590,62 @@ export class SnapshotStoreResult extends Message { * * @generated from message gateway.LoadSnapshot */ -export class LoadSnapshot extends Message { +export type LoadSnapshot = Message<"gateway.LoadSnapshot"> & { /** * unique id of the snapshot to load * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * a correlation ID to match up requests and responses. set this to a value unique per connection * * @generated from field: bytes msgID = 2; */ - msgID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.LoadSnapshot"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "msgID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LoadSnapshot { - return new LoadSnapshot().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LoadSnapshot { - return new LoadSnapshot().fromJson(jsonValue, options); - } + msgID: Uint8Array; +}; - static fromJsonString(jsonString: string, options?: Partial): LoadSnapshot { - return new LoadSnapshot().fromJsonString(jsonString, options); - } - - static equals(a: LoadSnapshot | PlainMessage | undefined, b: LoadSnapshot | PlainMessage | undefined): boolean { - return proto3.util.equals(LoadSnapshot, a, b); - } -} +/** + * Describes the message gateway.LoadSnapshot. + * Use `create(LoadSnapshotSchema)` to create a new message. + */ +export const LoadSnapshotSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 9); /** * @generated from message gateway.SnapshotLoadResult */ -export class SnapshotLoadResult extends Message { +export type SnapshotLoadResult = Message<"gateway.SnapshotLoadResult"> & { /** * @generated from field: bool success = 1; */ - success = false; + success: boolean; /** * @generated from field: string errorMessage = 2; */ - errorMessage = ""; + errorMessage: string; /** * a correlation ID to match up requests and responses. this field returns the contents of the request's msgID * * @generated from field: bytes msgID = 4; */ - msgID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + msgID: Uint8Array; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.SnapshotLoadResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "errorMessage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "msgID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotLoadResult { - return new SnapshotLoadResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotLoadResult { - return new SnapshotLoadResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotLoadResult { - return new SnapshotLoadResult().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotLoadResult | PlainMessage | undefined, b: SnapshotLoadResult | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotLoadResult, a, b); - } -} +/** + * Describes the message gateway.SnapshotLoadResult. + * Use `create(SnapshotLoadResultSchema)` to create a new message. + */ +export const SnapshotLoadResultSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 10); /** * @generated from message gateway.ChatMessage */ -export class ChatMessage extends Message { +export type ChatMessage = Message<"gateway.ChatMessage"> & { /** * The message to create * @@ -946,320 +665,172 @@ export class ChatMessage extends Message { */ value: boolean; case: "cancel"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.ChatMessage"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "request_type" }, - { no: 2, name: "cancel", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "request_type" }, - ]); + } | { case: undefined; value?: undefined }; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): ChatMessage { - return new ChatMessage().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChatMessage { - return new ChatMessage().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChatMessage { - return new ChatMessage().fromJsonString(jsonString, options); - } - - static equals(a: ChatMessage | PlainMessage | undefined, b: ChatMessage | PlainMessage | undefined): boolean { - return proto3.util.equals(ChatMessage, a, b); - } -} +/** + * Describes the message gateway.ChatMessage. + * Use `create(ChatMessageSchema)` to create a new message. + */ +export const ChatMessageSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 11); /** * @generated from message gateway.ToolMetadata */ -export class ToolMetadata extends Message { +export type ToolMetadata = Message<"gateway.ToolMetadata"> & { /** * A unique ID that tracks this tool call and can be used to correlate messages * * @generated from field: string id = 1; */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.ToolMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ToolMetadata { - return new ToolMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ToolMetadata { - return new ToolMetadata().fromJson(jsonValue, options); - } + id: string; +}; - static fromJsonString(jsonString: string, options?: Partial): ToolMetadata { - return new ToolMetadata().fromJsonString(jsonString, options); - } - - static equals(a: ToolMetadata | PlainMessage | undefined, b: ToolMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(ToolMetadata, a, b); - } -} +/** + * Describes the message gateway.ToolMetadata. + * Use `create(ToolMetadataSchema)` to create a new message. + */ +export const ToolMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 12); /** * @generated from message gateway.QueryToolStart */ -export class QueryToolStart extends Message { +export type QueryToolStart = Message<"gateway.QueryToolStart"> & { /** * @generated from field: string type = 1; */ - type = ""; + type: string; /** * @generated from field: QueryMethod method = 2; */ - method = QueryMethod.GET; + method: QueryMethod; /** * @generated from field: string query = 3; */ - query = ""; + query: string; /** * @generated from field: string scope = 4; */ - scope = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.QueryToolStart"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "method", kind: "enum", T: proto3.getEnumType(QueryMethod) }, - { no: 3, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + scope: string; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): QueryToolStart { - return new QueryToolStart().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryToolStart { - return new QueryToolStart().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryToolStart { - return new QueryToolStart().fromJsonString(jsonString, options); - } - - static equals(a: QueryToolStart | PlainMessage | undefined, b: QueryToolStart | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryToolStart, a, b); - } -} +/** + * Describes the message gateway.QueryToolStart. + * Use `create(QueryToolStartSchema)` to create a new message. + */ +export const QueryToolStartSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 13); /** * @generated from message gateway.QueryToolFinish */ -export class QueryToolFinish extends Message { +export type QueryToolFinish = Message<"gateway.QueryToolFinish"> & { /** * @generated from field: int32 numItems = 1; */ - numItems = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.QueryToolFinish"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "numItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryToolFinish { - return new QueryToolFinish().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryToolFinish { - return new QueryToolFinish().fromJson(jsonValue, options); - } + numItems: number; +}; - static fromJsonString(jsonString: string, options?: Partial): QueryToolFinish { - return new QueryToolFinish().fromJsonString(jsonString, options); - } - - static equals(a: QueryToolFinish | PlainMessage | undefined, b: QueryToolFinish | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryToolFinish, a, b); - } -} +/** + * Describes the message gateway.QueryToolFinish. + * Use `create(QueryToolFinishSchema)` to create a new message. + */ +export const QueryToolFinishSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 14); /** * @generated from message gateway.RelationshipToolStart */ -export class RelationshipToolStart extends Message { +export type RelationshipToolStart = Message<"gateway.RelationshipToolStart"> & { /** * @generated from field: string type = 1; */ - type = ""; + type: string; /** * @generated from field: string uniqueAttributeValue = 2; */ - uniqueAttributeValue = ""; + uniqueAttributeValue: string; /** * @generated from field: string scope = 3; */ - scope = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + scope: string; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.RelationshipToolStart"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "uniqueAttributeValue", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RelationshipToolStart { - return new RelationshipToolStart().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RelationshipToolStart { - return new RelationshipToolStart().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RelationshipToolStart { - return new RelationshipToolStart().fromJsonString(jsonString, options); - } - - static equals(a: RelationshipToolStart | PlainMessage | undefined, b: RelationshipToolStart | PlainMessage | undefined): boolean { - return proto3.util.equals(RelationshipToolStart, a, b); - } -} +/** + * Describes the message gateway.RelationshipToolStart. + * Use `create(RelationshipToolStartSchema)` to create a new message. + */ +export const RelationshipToolStartSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 15); /** * @generated from message gateway.RelationshipToolFinish */ -export class RelationshipToolFinish extends Message { +export type RelationshipToolFinish = Message<"gateway.RelationshipToolFinish"> & { /** * @generated from field: int32 numItems = 1; */ - numItems = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.RelationshipToolFinish"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "numItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); + numItems: number; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): RelationshipToolFinish { - return new RelationshipToolFinish().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RelationshipToolFinish { - return new RelationshipToolFinish().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RelationshipToolFinish { - return new RelationshipToolFinish().fromJsonString(jsonString, options); - } - - static equals(a: RelationshipToolFinish | PlainMessage | undefined, b: RelationshipToolFinish | PlainMessage | undefined): boolean { - return proto3.util.equals(RelationshipToolFinish, a, b); - } -} +/** + * Describes the message gateway.RelationshipToolFinish. + * Use `create(RelationshipToolFinishSchema)` to create a new message. + */ +export const RelationshipToolFinishSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 16); /** * @generated from message gateway.ChangesByReferenceToolStart */ -export class ChangesByReferenceToolStart extends Message { +export type ChangesByReferenceToolStart = Message<"gateway.ChangesByReferenceToolStart"> & { /** * @generated from field: string type = 1; */ - type = ""; + type: string; /** * @generated from field: string uniqueAttributeValue = 2; */ - uniqueAttributeValue = ""; + uniqueAttributeValue: string; /** * @generated from field: string scope = 3; */ - scope = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.ChangesByReferenceToolStart"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "uniqueAttributeValue", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangesByReferenceToolStart { - return new ChangesByReferenceToolStart().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangesByReferenceToolStart { - return new ChangesByReferenceToolStart().fromJson(jsonValue, options); - } + scope: string; +}; - static fromJsonString(jsonString: string, options?: Partial): ChangesByReferenceToolStart { - return new ChangesByReferenceToolStart().fromJsonString(jsonString, options); - } - - static equals(a: ChangesByReferenceToolStart | PlainMessage | undefined, b: ChangesByReferenceToolStart | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangesByReferenceToolStart, a, b); - } -} +/** + * Describes the message gateway.ChangesByReferenceToolStart. + * Use `create(ChangesByReferenceToolStartSchema)` to create a new message. + */ +export const ChangesByReferenceToolStartSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 17); /** * @generated from message gateway.ChangeByReferenceSummary */ -export class ChangeByReferenceSummary extends Message { +export type ChangeByReferenceSummary = Message<"gateway.ChangeByReferenceSummary"> & { /** * from ChangeProperties * * @generated from field: string title = 1; */ - title = ""; + title: string; /** * from ChangeMetadata * * @generated from field: bytes UUID = 2; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * From ChangeMetadata @@ -1273,96 +844,51 @@ export class ChangeByReferenceSummary extends Message * * @generated from field: string owner = 4; */ - owner = ""; + owner: string; /** * From ChangeMetadata * * @generated from field: int32 numAffectedItems = 5; */ - numAffectedItems = 0; + numAffectedItems: number; /** * From ChangeMetadata * * @generated from field: changes.ChangeStatus changeStatus = 6; */ - changeStatus = ChangeStatus.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.ChangeByReferenceSummary"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "createdAt", kind: "message", T: Timestamp }, - { no: 4, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "numAffectedItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 6, name: "changeStatus", kind: "enum", T: proto3.getEnumType(ChangeStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangeByReferenceSummary { - return new ChangeByReferenceSummary().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChangeByReferenceSummary { - return new ChangeByReferenceSummary().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangeByReferenceSummary { - return new ChangeByReferenceSummary().fromJsonString(jsonString, options); - } - - static equals(a: ChangeByReferenceSummary | PlainMessage | undefined, b: ChangeByReferenceSummary | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangeByReferenceSummary, a, b); - } -} + changeStatus: ChangeStatus; +}; + +/** + * Describes the message gateway.ChangeByReferenceSummary. + * Use `create(ChangeByReferenceSummarySchema)` to create a new message. + */ +export const ChangeByReferenceSummarySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 18); /** * @generated from message gateway.ChangesByReferenceToolFinish */ -export class ChangesByReferenceToolFinish extends Message { +export type ChangesByReferenceToolFinish = Message<"gateway.ChangesByReferenceToolFinish"> & { /** * @generated from field: repeated gateway.ChangeByReferenceSummary changeSummaries = 1; */ - changeSummaries: ChangeByReferenceSummary[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.ChangesByReferenceToolFinish"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "changeSummaries", kind: "message", T: ChangeByReferenceSummary, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChangesByReferenceToolFinish { - return new ChangesByReferenceToolFinish().fromBinary(bytes, options); - } + changeSummaries: ChangeByReferenceSummary[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ChangesByReferenceToolFinish { - return new ChangesByReferenceToolFinish().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChangesByReferenceToolFinish { - return new ChangesByReferenceToolFinish().fromJsonString(jsonString, options); - } - - static equals(a: ChangesByReferenceToolFinish | PlainMessage | undefined, b: ChangesByReferenceToolFinish | PlainMessage | undefined): boolean { - return proto3.util.equals(ChangesByReferenceToolFinish, a, b); - } -} +/** + * Describes the message gateway.ChangesByReferenceToolFinish. + * Use `create(ChangesByReferenceToolFinishSchema)` to create a new message. + */ +export const ChangesByReferenceToolFinishSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 19); /** * @generated from message gateway.ToolStart */ -export class ToolStart extends Message { +export type ToolStart = Message<"gateway.ToolStart"> & { /** * @generated from field: gateway.ToolMetadata metadata = 1; */ @@ -1389,43 +915,20 @@ export class ToolStart extends Message { */ value: ChangesByReferenceToolStart; case: "changesByReference"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.ToolStart"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: ToolMetadata }, - { no: 2, name: "query", kind: "message", T: QueryToolStart, oneof: "tool_type" }, - { no: 3, name: "relationship", kind: "message", T: RelationshipToolStart, oneof: "tool_type" }, - { no: 4, name: "changesByReference", kind: "message", T: ChangesByReferenceToolStart, oneof: "tool_type" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ToolStart { - return new ToolStart().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ToolStart { - return new ToolStart().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ToolStart { - return new ToolStart().fromJsonString(jsonString, options); - } - - static equals(a: ToolStart | PlainMessage | undefined, b: ToolStart | PlainMessage | undefined): boolean { - return proto3.util.equals(ToolStart, a, b); - } -} + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message gateway.ToolStart. + * Use `create(ToolStartSchema)` to create a new message. + */ +export const ToolStartSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 20); /** * @generated from message gateway.ToolFinish */ -export class ToolFinish extends Message { +export type ToolFinish = Message<"gateway.ToolFinish"> & { /** * @generated from field: gateway.ToolMetadata metadata = 1; */ @@ -1434,7 +937,7 @@ export class ToolFinish extends Message { /** * @generated from field: string error = 2; */ - error = ""; + error: string; /** * @generated from oneof gateway.ToolFinish.tool_type @@ -1457,80 +960,35 @@ export class ToolFinish extends Message { */ value: ChangesByReferenceToolFinish; case: "changesByReference"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.ToolFinish"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: ToolMetadata }, - { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "query", kind: "message", T: QueryToolFinish, oneof: "tool_type" }, - { no: 4, name: "relationship", kind: "message", T: RelationshipToolFinish, oneof: "tool_type" }, - { no: 5, name: "changesByReference", kind: "message", T: ChangesByReferenceToolFinish, oneof: "tool_type" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ToolFinish { - return new ToolFinish().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ToolFinish { - return new ToolFinish().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ToolFinish { - return new ToolFinish().fromJsonString(jsonString, options); - } - - static equals(a: ToolFinish | PlainMessage | undefined, b: ToolFinish | PlainMessage | undefined): boolean { - return proto3.util.equals(ToolFinish, a, b); - } -} + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message gateway.ToolFinish. + * Use `create(ToolFinishSchema)` to create a new message. + */ +export const ToolFinishSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 21); /** * @generated from message gateway.ChatResponse */ -export class ChatResponse extends Message { +export type ChatResponse = Message<"gateway.ChatResponse"> & { /** * @generated from field: string text = 1; */ - text = ""; + text: string; /** * @generated from field: string error = 2; */ - error = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gateway.ChatResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChatResponse { - return new ChatResponse().fromBinary(bytes, options); - } + error: string; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ChatResponse { - return new ChatResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChatResponse { - return new ChatResponse().fromJsonString(jsonString, options); - } - - static equals(a: ChatResponse | PlainMessage | undefined, b: ChatResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ChatResponse, a, b); - } -} +/** + * Describes the message gateway.ChatResponse. + * Use `create(ChatResponseSchema)` to create a new message. + */ +export const ChatResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_gateway, 22); diff --git a/src/__generated__/invites-InviteService_connectquery.ts b/src/__generated__/invites-InviteService_connectquery.ts index 047b9ee..4b07dd9 100644 --- a/src/__generated__/invites-InviteService_connectquery.ts +++ b/src/__generated__/invites-InviteService_connectquery.ts @@ -1,63 +1,25 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file invites.proto (package invites, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { CreateInviteRequest, CreateInviteResponse, ListInvitesRequest, ListInvitesResponse, ResendInviteRequest, ResendInviteResponse, RevokeInviteRequest, RevokeInviteResponse } from "./invites_pb.ts"; +import { InviteService } from "./invites_pb"; /** * @generated from rpc invites.InviteService.CreateInvite */ -export const createInvite = { - localName: "createInvite", - name: "CreateInvite", - kind: MethodKind.Unary, - I: CreateInviteRequest, - O: CreateInviteResponse, - service: { - typeName: "invites.InviteService" - } -} as const; +export const createInvite = InviteService.method.createInvite; /** * @generated from rpc invites.InviteService.ListInvites */ -export const listInvites = { - localName: "listInvites", - name: "ListInvites", - kind: MethodKind.Unary, - I: ListInvitesRequest, - O: ListInvitesResponse, - service: { - typeName: "invites.InviteService" - } -} as const; +export const listInvites = InviteService.method.listInvites; /** * @generated from rpc invites.InviteService.RevokeInvite */ -export const revokeInvite = { - localName: "revokeInvite", - name: "RevokeInvite", - kind: MethodKind.Unary, - I: RevokeInviteRequest, - O: RevokeInviteResponse, - service: { - typeName: "invites.InviteService" - } -} as const; +export const revokeInvite = InviteService.method.revokeInvite; /** * @generated from rpc invites.InviteService.ResendInvite */ -export const resendInvite = { - localName: "resendInvite", - name: "ResendInvite", - kind: MethodKind.Unary, - I: ResendInviteRequest, - O: ResendInviteResponse, - service: { - typeName: "invites.InviteService" - } -} as const; +export const resendInvite = InviteService.method.resendInvite; diff --git a/src/__generated__/invites_connect.ts b/src/__generated__/invites_connect.ts deleted file mode 100644 index a43b1e7..0000000 --- a/src/__generated__/invites_connect.ts +++ /dev/null @@ -1,55 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file invites.proto (package invites, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CreateInviteRequest, CreateInviteResponse, ListInvitesRequest, ListInvitesResponse, ResendInviteRequest, ResendInviteResponse, RevokeInviteRequest, RevokeInviteResponse } from "./invites_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * provides all operations for inviting people to an organization - * - * @generated from service invites.InviteService - */ -export const InviteService = { - typeName: "invites.InviteService", - methods: { - /** - * @generated from rpc invites.InviteService.CreateInvite - */ - createInvite: { - name: "CreateInvite", - I: CreateInviteRequest, - O: CreateInviteResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc invites.InviteService.ListInvites - */ - listInvites: { - name: "ListInvites", - I: ListInvitesRequest, - O: ListInvitesResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc invites.InviteService.RevokeInvite - */ - revokeInvite: { - name: "RevokeInvite", - I: RevokeInviteRequest, - O: RevokeInviteResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc invites.InviteService.ResendInvite - */ - resendInvite: { - name: "ResendInvite", - I: ResendInviteRequest, - O: ResendInviteResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/invites_pb.ts b/src/__generated__/invites_pb.ts index 97577d0..ed33b35 100644 --- a/src/__generated__/invites_pb.ts +++ b/src/__generated__/invites_pb.ts @@ -1,121 +1,69 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file invites.proto (package invites, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file invites.proto. + */ +export const file_invites: GenFile = /*@__PURE__*/ + fileDesc("Cg1pbnZpdGVzLnByb3RvEgdpbnZpdGVzIiUKE0NyZWF0ZUludml0ZVJlcXVlc3QSDgoGZW1haWxzGAEgAygJIhYKFENyZWF0ZUludml0ZVJlc3BvbnNlIqsBCgZJbnZpdGUSDQoFZW1haWwYASABKAkSLAoGc3RhdHVzGAIgASgOMhwuaW52aXRlcy5JbnZpdGUuSW52aXRlU3RhdHVzImQKDEludml0ZVN0YXR1cxIdChlJTlZJVEVfU1RBVFVTX1VOU1BFQ0lGSUVEEAASGQoVSU5WSVRFX1NUQVRVU19JTlZJVEVEEAESGgoWSU5WSVRFX1NUQVRVU19BQ0NFUFRFRBACIhQKEkxpc3RJbnZpdGVzUmVxdWVzdCI3ChNMaXN0SW52aXRlc1Jlc3BvbnNlEiAKB2ludml0ZXMYASADKAsyDy5pbnZpdGVzLkludml0ZSIkChNSZXZva2VJbnZpdGVSZXF1ZXN0Eg0KBWVtYWlsGAEgASgJIhYKFFJldm9rZUludml0ZVJlc3BvbnNlIiQKE1Jlc2VuZEludml0ZVJlcXVlc3QSDQoFZW1haWwYASABKAkiFgoUUmVzZW5kSW52aXRlUmVzcG9uc2UywAIKDUludml0ZVNlcnZpY2USSwoMQ3JlYXRlSW52aXRlEhwuaW52aXRlcy5DcmVhdGVJbnZpdGVSZXF1ZXN0Gh0uaW52aXRlcy5DcmVhdGVJbnZpdGVSZXNwb25zZRJICgtMaXN0SW52aXRlcxIbLmludml0ZXMuTGlzdEludml0ZXNSZXF1ZXN0GhwuaW52aXRlcy5MaXN0SW52aXRlc1Jlc3BvbnNlEksKDFJldm9rZUludml0ZRIcLmludml0ZXMuUmV2b2tlSW52aXRlUmVxdWVzdBodLmludml0ZXMuUmV2b2tlSW52aXRlUmVzcG9uc2USSwoMUmVzZW5kSW52aXRlEhwuaW52aXRlcy5SZXNlbmRJbnZpdGVSZXF1ZXN0Gh0uaW52aXRlcy5SZXNlbmRJbnZpdGVSZXNwb25zZUIkWiJnaXRodWIuY29tL292ZXJtaW5kdGVjaC9zZHAtZ287c2RwYgZwcm90bzM", [file_google_protobuf_struct, file_google_protobuf_timestamp]); /** * @generated from message invites.CreateInviteRequest */ -export class CreateInviteRequest extends Message { +export type CreateInviteRequest = Message<"invites.CreateInviteRequest"> & { /** * @generated from field: repeated string emails = 1; */ - emails: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.CreateInviteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "emails", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateInviteRequest { - return new CreateInviteRequest().fromBinary(bytes, options); - } + emails: string[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): CreateInviteRequest { - return new CreateInviteRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateInviteRequest { - return new CreateInviteRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateInviteRequest | PlainMessage | undefined, b: CreateInviteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateInviteRequest, a, b); - } -} +/** + * Describes the message invites.CreateInviteRequest. + * Use `create(CreateInviteRequestSchema)` to create a new message. + */ +export const CreateInviteRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 0); /** * @generated from message invites.CreateInviteResponse */ -export class CreateInviteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +export type CreateInviteResponse = Message<"invites.CreateInviteResponse"> & { +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.CreateInviteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateInviteResponse { - return new CreateInviteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateInviteResponse { - return new CreateInviteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateInviteResponse { - return new CreateInviteResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateInviteResponse | PlainMessage | undefined, b: CreateInviteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateInviteResponse, a, b); - } -} +/** + * Describes the message invites.CreateInviteResponse. + * Use `create(CreateInviteResponseSchema)` to create a new message. + */ +export const CreateInviteResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 1); /** * @generated from message invites.Invite */ -export class Invite extends Message { +export type Invite = Message<"invites.Invite"> & { /** * @generated from field: string email = 1; */ - email = ""; + email: string; /** * @generated from field: invites.Invite.InviteStatus status = 2; */ - status = Invite_InviteStatus.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.Invite"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(Invite_InviteStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Invite { - return new Invite().fromBinary(bytes, options); - } + status: Invite_InviteStatus; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): Invite { - return new Invite().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Invite { - return new Invite().fromJsonString(jsonString, options); - } - - static equals(a: Invite | PlainMessage | undefined, b: Invite | PlainMessage | undefined): boolean { - return proto3.util.equals(Invite, a, b); - } -} +/** + * Describes the message invites.Invite. + * Use `create(InviteSchema)` to create a new message. + */ +export const InviteSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 2); /** * @generated from enum invites.Invite.InviteStatus @@ -140,214 +88,141 @@ export enum Invite_InviteStatus { */ ACCEPTED = 2, } -// Retrieve enum metadata with: proto3.getEnumType(Invite_InviteStatus) -proto3.util.setEnumType(Invite_InviteStatus, "invites.Invite.InviteStatus", [ - { no: 0, name: "INVITE_STATUS_UNSPECIFIED" }, - { no: 1, name: "INVITE_STATUS_INVITED" }, - { no: 2, name: "INVITE_STATUS_ACCEPTED" }, -]); /** - * @generated from message invites.ListInvitesRequest + * Describes the enum invites.Invite.InviteStatus. */ -export class ListInvitesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +export const Invite_InviteStatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_invites, 2, 0); - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.ListInvitesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListInvitesRequest { - return new ListInvitesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListInvitesRequest { - return new ListInvitesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListInvitesRequest { - return new ListInvitesRequest().fromJsonString(jsonString, options); - } +/** + * @generated from message invites.ListInvitesRequest + */ +export type ListInvitesRequest = Message<"invites.ListInvitesRequest"> & { +}; - static equals(a: ListInvitesRequest | PlainMessage | undefined, b: ListInvitesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListInvitesRequest, a, b); - } -} +/** + * Describes the message invites.ListInvitesRequest. + * Use `create(ListInvitesRequestSchema)` to create a new message. + */ +export const ListInvitesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 3); /** * @generated from message invites.ListInvitesResponse */ -export class ListInvitesResponse extends Message { +export type ListInvitesResponse = Message<"invites.ListInvitesResponse"> & { /** * @generated from field: repeated invites.Invite invites = 1; */ - invites: Invite[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + invites: Invite[]; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.ListInvitesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "invites", kind: "message", T: Invite, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListInvitesResponse { - return new ListInvitesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListInvitesResponse { - return new ListInvitesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListInvitesResponse { - return new ListInvitesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListInvitesResponse | PlainMessage | undefined, b: ListInvitesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListInvitesResponse, a, b); - } -} +/** + * Describes the message invites.ListInvitesResponse. + * Use `create(ListInvitesResponseSchema)` to create a new message. + */ +export const ListInvitesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 4); /** * @generated from message invites.RevokeInviteRequest */ -export class RevokeInviteRequest extends Message { +export type RevokeInviteRequest = Message<"invites.RevokeInviteRequest"> & { /** * @generated from field: string email = 1; */ - email = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.RevokeInviteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RevokeInviteRequest { - return new RevokeInviteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RevokeInviteRequest { - return new RevokeInviteRequest().fromJson(jsonValue, options); - } + email: string; +}; - static fromJsonString(jsonString: string, options?: Partial): RevokeInviteRequest { - return new RevokeInviteRequest().fromJsonString(jsonString, options); - } - - static equals(a: RevokeInviteRequest | PlainMessage | undefined, b: RevokeInviteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RevokeInviteRequest, a, b); - } -} +/** + * Describes the message invites.RevokeInviteRequest. + * Use `create(RevokeInviteRequestSchema)` to create a new message. + */ +export const RevokeInviteRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 5); /** * @generated from message invites.RevokeInviteResponse */ -export class RevokeInviteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.RevokeInviteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export type RevokeInviteResponse = Message<"invites.RevokeInviteResponse"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): RevokeInviteResponse { - return new RevokeInviteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RevokeInviteResponse { - return new RevokeInviteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RevokeInviteResponse { - return new RevokeInviteResponse().fromJsonString(jsonString, options); - } - - static equals(a: RevokeInviteResponse | PlainMessage | undefined, b: RevokeInviteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RevokeInviteResponse, a, b); - } -} +/** + * Describes the message invites.RevokeInviteResponse. + * Use `create(RevokeInviteResponseSchema)` to create a new message. + */ +export const RevokeInviteResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 6); /** * @generated from message invites.ResendInviteRequest */ -export class ResendInviteRequest extends Message { +export type ResendInviteRequest = Message<"invites.ResendInviteRequest"> & { /** * @generated from field: string email = 1; */ - email = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.ResendInviteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResendInviteRequest { - return new ResendInviteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResendInviteRequest { - return new ResendInviteRequest().fromJson(jsonValue, options); - } + email: string; +}; - static fromJsonString(jsonString: string, options?: Partial): ResendInviteRequest { - return new ResendInviteRequest().fromJsonString(jsonString, options); - } - - static equals(a: ResendInviteRequest | PlainMessage | undefined, b: ResendInviteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ResendInviteRequest, a, b); - } -} +/** + * Describes the message invites.ResendInviteRequest. + * Use `create(ResendInviteRequestSchema)` to create a new message. + */ +export const ResendInviteRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 7); /** * @generated from message invites.ResendInviteResponse */ -export class ResendInviteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "invites.ResendInviteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export type ResendInviteResponse = Message<"invites.ResendInviteResponse"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): ResendInviteResponse { - return new ResendInviteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResendInviteResponse { - return new ResendInviteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResendInviteResponse { - return new ResendInviteResponse().fromJsonString(jsonString, options); - } +/** + * Describes the message invites.ResendInviteResponse. + * Use `create(ResendInviteResponseSchema)` to create a new message. + */ +export const ResendInviteResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_invites, 8); - static equals(a: ResendInviteResponse | PlainMessage | undefined, b: ResendInviteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ResendInviteResponse, a, b); - } -} +/** + * provides all operations for inviting people to an organization + * + * @generated from service invites.InviteService + */ +export const InviteService: GenService<{ + /** + * @generated from rpc invites.InviteService.CreateInvite + */ + createInvite: { + methodKind: "unary"; + input: typeof CreateInviteRequestSchema; + output: typeof CreateInviteResponseSchema; + }, + /** + * @generated from rpc invites.InviteService.ListInvites + */ + listInvites: { + methodKind: "unary"; + input: typeof ListInvitesRequestSchema; + output: typeof ListInvitesResponseSchema; + }, + /** + * @generated from rpc invites.InviteService.RevokeInvite + */ + revokeInvite: { + methodKind: "unary"; + input: typeof RevokeInviteRequestSchema; + output: typeof RevokeInviteResponseSchema; + }, + /** + * @generated from rpc invites.InviteService.ResendInvite + */ + resendInvite: { + methodKind: "unary"; + input: typeof ResendInviteRequestSchema; + output: typeof ResendInviteResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_invites, 0); diff --git a/src/__generated__/items_pb.ts b/src/__generated__/items_pb.ts index 8f7fff1..9eecbee 100644 --- a/src/__generated__/items_pb.ts +++ b/src/__generated__/items_pb.ts @@ -1,102 +1,20 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file items.proto (syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; -import { Response } from "./responses_pb.ts"; +import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; +import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { Response } from "./responses_pb"; +import { file_responses } from "./responses_pb"; +import type { JsonObject, Message } from "@bufbuild/protobuf"; /** - * Represents the health of something, the meaning of each state may depend on - * the context in which it is used but should be reasonably obvious - * - * @generated from enum Health + * Describes the file items.proto. */ -export enum Health { - /** - * The health could not be determined - * - * @generated from enum value: HEALTH_UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * Functioning normally - * - * @generated from enum value: HEALTH_OK = 1; - */ - OK = 1, - - /** - * Functioning, but degraded - * - * @generated from enum value: HEALTH_WARNING = 2; - */ - WARNING = 2, - - /** - * Not functioning - * - * @generated from enum value: HEALTH_ERROR = 3; - */ - ERROR = 3, - - /** - * Health state is transitioning, such as when something is first provisioned - * - * @generated from enum value: HEALTH_PENDING = 4; - */ - PENDING = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(Health) -proto3.util.setEnumType(Health, "Health", [ - { no: 0, name: "HEALTH_UNKNOWN" }, - { no: 1, name: "HEALTH_OK" }, - { no: 2, name: "HEALTH_WARNING" }, - { no: 3, name: "HEALTH_ERROR" }, - { no: 4, name: "HEALTH_PENDING" }, -]); - -/** - * QueryMethod represents the available query methods. The details of these - * methods are: - * - * GET: This takes a single unique query and should only return a single item. - * If an item matching the parameter passed doesn't exist the server should - * fail - * - * LIST: This takes no query (or ignores it) and should return all items that it - * can find - * - * SEARCH: This takes a non-unique query which is designed to be used as a - * search term. It should return some number of items (or zero) which - * match the query - * - * @generated from enum QueryMethod - */ -export enum QueryMethod { - /** - * @generated from enum value: GET = 0; - */ - GET = 0, - - /** - * @generated from enum value: LIST = 1; - */ - LIST = 1, - - /** - * @generated from enum value: SEARCH = 2; - */ - SEARCH = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(QueryMethod) -proto3.util.setEnumType(QueryMethod, "QueryMethod", [ - { no: 0, name: "GET" }, - { no: 1, name: "LIST" }, - { no: 2, name: "SEARCH" }, -]); +export const file_items: GenFile = /*@__PURE__*/ + fileDesc("CgtpdGVtcy5wcm90byIrChBCbGFzdFByb3BhZ2F0aW9uEgoKAmluGAEgASgIEgsKA291dBgCIAEoCCJVCg9MaW5rZWRJdGVtUXVlcnkSFQoFcXVlcnkYASABKAsyBi5RdWVyeRIrChBibGFzdFByb3BhZ2F0aW9uGAIgASgLMhEuQmxhc3RQcm9wYWdhdGlvbiJTCgpMaW5rZWRJdGVtEhgKBGl0ZW0YASABKAsyCi5SZWZlcmVuY2USKwoQYmxhc3RQcm9wYWdhdGlvbhgCIAEoCzIRLkJsYXN0UHJvcGFnYXRpb24iwgIKBEl0ZW0SDAoEdHlwZRgBIAEoCRIXCg91bmlxdWVBdHRyaWJ1dGUYAiABKAkSIwoKYXR0cmlidXRlcxgDIAEoCzIPLkl0ZW1BdHRyaWJ1dGVzEhsKCG1ldGFkYXRhGAQgASgLMgkuTWV0YWRhdGESDQoFc2NvcGUYBSABKAkSKwoRbGlua2VkSXRlbVF1ZXJpZXMYECADKAsyEC5MaW5rZWRJdGVtUXVlcnkSIAoLbGlua2VkSXRlbXMYESADKAsyCy5MaW5rZWRJdGVtEhwKBmhlYWx0aBgSIAEoDjIHLkhlYWx0aEgAiAEBEh0KBHRhZ3MYEyADKAsyDy5JdGVtLlRhZ3NFbnRyeRorCglUYWdzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUIJCgdfaGVhbHRoIj0KDkl0ZW1BdHRyaWJ1dGVzEisKCmF0dHJTdHJ1Y3QYASABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Iu8BCghNZXRhZGF0YRISCgpzb3VyY2VOYW1lGAIgASgJEhsKC3NvdXJjZVF1ZXJ5GAMgASgLMgYuUXVlcnkSLQoJdGltZXN0YW1wGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI1Cg5zb3VyY2VEdXJhdGlvbhgFIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkICGAESPAoVc291cmNlRHVyYXRpb25QZXJJdGVtGAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uQgIYARIOCgZoaWRkZW4YByABKAgiHQoFSXRlbXMSFAoFaXRlbXMYASADKAsyBS5JdGVtIqwCCgVRdWVyeRIMCgR0eXBlGAEgASgJEhwKBm1ldGhvZBgCIAEoDjIMLlF1ZXJ5TWV0aG9kEg0KBXF1ZXJ5GAMgASgJEjUKEnJlY3Vyc2lvbkJlaGF2aW91chgEIAEoCzIZLlF1ZXJ5LlJlY3Vyc2lvbkJlaGF2aW91chINCgVzY29wZRgFIAEoCRITCgtpZ25vcmVDYWNoZRgGIAEoCBIMCgRVVUlEGAcgASgMEiwKCGRlYWRsaW5lGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBpLChJSZWN1cnNpb25CZWhhdmlvdXISEQoJbGlua0RlcHRoGAEgASgNEiIKGmZvbGxvd09ubHlCbGFzdFByb3BhZ2F0aW9uGAIgASgISgQICBAJIncKDVF1ZXJ5UmVzcG9uc2USGAoHbmV3SXRlbRgCIAEoCzIFLkl0ZW1IABIdCghyZXNwb25zZRgDIAEoCzIJLlJlc3BvbnNlSAASHAoFZXJyb3IYBCABKAsyCy5RdWVyeUVycm9ySABCDwoNcmVzcG9uc2VfdHlwZSKYAQoLUXVlcnlTdGF0dXMSDAoEVVVJRBgBIAEoDBIjCgZzdGF0dXMYAiABKA4yEy5RdWVyeVN0YXR1cy5TdGF0dXMiVgoGU3RhdHVzEg8KC1VOU1BFQ0lGSUVEEAASCwoHU1RBUlRFRBABEg0KCUNBTkNFTExFRBADEgsKB0VSUk9SRUQQBBIMCghGSU5JU0hFRBAFIgQIAhACIuUBCgpRdWVyeUVycm9yEgwKBFVVSUQYASABKAwSKAoJZXJyb3JUeXBlGAIgASgOMhUuUXVlcnlFcnJvci5FcnJvclR5cGUSEwoLZXJyb3JTdHJpbmcYAyABKAkSDQoFc2NvcGUYBCABKAkSEgoKc291cmNlTmFtZRgFIAEoCRIQCghpdGVtVHlwZRgGIAEoCRIVCg1yZXNwb25kZXJOYW1lGAcgASgJIj4KCUVycm9yVHlwZRIJCgVPVEhFUhAAEgwKCE5PVEZPVU5EEAESCwoHTk9TQ09QRRACEgsKB1RJTUVPVVQQAyIbCgtDYW5jZWxRdWVyeRIMCgRVVUlEGAEgASgMIhkKCVVuZG9RdWVyeRIMCgRVVUlEGAEgASgMInEKBkV4cGFuZBIYCgRpdGVtGAEgASgLMgouUmVmZXJlbmNlEhEKCWxpbmtEZXB0aBgCIAEoDRIMCgRVVUlEGAMgASgMEiwKCGRlYWRsaW5lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCIaCgpVbmRvRXhwYW5kEgwKBFVVSUQYASABKAwihAEKCVJlZmVyZW5jZRIMCgR0eXBlGAEgASgJEhwKFHVuaXF1ZUF0dHJpYnV0ZVZhbHVlGAIgASgJEg0KBXNjb3BlGAMgASgJEg8KB2lzUXVlcnkYBCABKAgSDQoFcXVlcnkYBSABKAkSHAoGbWV0aG9kGAYgASgOMgwuUXVlcnlNZXRob2QiZQoERWRnZRIYCgRmcm9tGAEgASgLMgouUmVmZXJlbmNlEhYKAnRvGAIgASgLMgouUmVmZXJlbmNlEisKEGJsYXN0UHJvcGFnYXRpb24YAyABKAsyES5CbGFzdFByb3BhZ2F0aW9uKmUKBkhlYWx0aBISCg5IRUFMVEhfVU5LTk9XThAAEg0KCUhFQUxUSF9PSxABEhIKDkhFQUxUSF9XQVJOSU5HEAISEAoMSEVBTFRIX0VSUk9SEAMSEgoOSEVBTFRIX1BFTkRJTkcQBCosCgtRdWVyeU1ldGhvZBIHCgNHRVQQABIICgRMSVNUEAESCgoGU0VBUkNIEAJCJFoiZ2l0aHViLmNvbS9vdmVybWluZHRlY2gvc2RwLWdvO3NkcGIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp, file_responses]); /** * This message stores additional information on Edges (and edge-like constructs) to determine how configuration changes can impact @@ -116,56 +34,35 @@ proto3.util.setEnumType(QueryMethod, "QueryMethod", [ * * @generated from message BlastPropagation */ -export class BlastPropagation extends Message { +export type BlastPropagation = Message<"BlastPropagation"> & { /** * is true if changes on linked items can affect this item * * @generated from field: bool in = 1; */ - in = false; + in: boolean; /** * is true if changes on this item can affect linked items * * @generated from field: bool out = 2; */ - out = false; + out: boolean; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "BlastPropagation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "in", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "out", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlastPropagation { - return new BlastPropagation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlastPropagation { - return new BlastPropagation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlastPropagation { - return new BlastPropagation().fromJsonString(jsonString, options); - } - - static equals(a: BlastPropagation | PlainMessage | undefined, b: BlastPropagation | PlainMessage | undefined): boolean { - return proto3.util.equals(BlastPropagation, a, b); - } -} +/** + * Describes the message BlastPropagation. + * Use `create(BlastPropagationSchema)` to create a new message. + */ +export const BlastPropagationSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 0); /** * An annotated query to indicate potential linked items. * * @generated from message LinkedItemQuery */ -export class LinkedItemQuery extends Message { +export type LinkedItemQuery = Message<"LinkedItemQuery"> & { /** * the query that would find linked items * @@ -179,42 +76,21 @@ export class LinkedItemQuery extends Message { * @generated from field: BlastPropagation blastPropagation = 2; */ blastPropagation?: BlastPropagation; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "LinkedItemQuery"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "query", kind: "message", T: Query }, - { no: 2, name: "blastPropagation", kind: "message", T: BlastPropagation }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LinkedItemQuery { - return new LinkedItemQuery().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LinkedItemQuery { - return new LinkedItemQuery().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LinkedItemQuery { - return new LinkedItemQuery().fromJsonString(jsonString, options); - } - - static equals(a: LinkedItemQuery | PlainMessage | undefined, b: LinkedItemQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(LinkedItemQuery, a, b); - } -} +/** + * Describes the message LinkedItemQuery. + * Use `create(LinkedItemQuerySchema)` to create a new message. + */ +export const LinkedItemQuerySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 1); /** * An annotated reference to list linked items. * * @generated from message LinkedItem */ -export class LinkedItem extends Message { +export type LinkedItem = Message<"LinkedItem"> & { /** * the linked item * @@ -228,35 +104,14 @@ export class LinkedItem extends Message { * @generated from field: BlastPropagation blastPropagation = 2; */ blastPropagation?: BlastPropagation; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "LinkedItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "item", kind: "message", T: Reference }, - { no: 2, name: "blastPropagation", kind: "message", T: BlastPropagation }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LinkedItem { - return new LinkedItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LinkedItem { - return new LinkedItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LinkedItem { - return new LinkedItem().fromJsonString(jsonString, options); - } - - static equals(a: LinkedItem | PlainMessage | undefined, b: LinkedItem | PlainMessage | undefined): boolean { - return proto3.util.equals(LinkedItem, a, b); - } -} +/** + * Describes the message LinkedItem. + * Use `create(LinkedItemSchema)` to create a new message. + */ +export const LinkedItemSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 2); /** * This is the same as Item within the package with a couple of exceptions, no @@ -265,16 +120,16 @@ export class LinkedItem extends Message { * * @generated from message Item */ -export class Item extends Message { +export type Item = Message<"Item"> & { /** * @generated from field: string type = 1; */ - type = ""; + type: string; /** * @generated from field: string uniqueAttribute = 2; */ - uniqueAttribute = ""; + uniqueAttribute: string; /** * @generated from field: ItemAttributes attributes = 3; @@ -295,7 +150,7 @@ export class Item extends Message { * * @generated from field: string scope = 5; */ - scope = ""; + scope: string; /** * Not all items will have relatedItems we are are using a two byte @@ -303,14 +158,14 @@ export class Item extends Message { * * @generated from field: repeated LinkedItemQuery linkedItemQueries = 16; */ - linkedItemQueries: LinkedItemQuery[] = []; + linkedItemQueries: LinkedItemQuery[]; /** * Linked items * * @generated from field: repeated LinkedItem linkedItems = 17; */ - linkedItems: LinkedItem[] = []; + linkedItems: LinkedItem[]; /** * (optional) Represents the health of the item. Only items that have a @@ -327,43 +182,15 @@ export class Item extends Message { * * @generated from field: map tags = 19; */ - tags: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Item"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "uniqueAttribute", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "attributes", kind: "message", T: ItemAttributes }, - { no: 4, name: "metadata", kind: "message", T: Metadata }, - { no: 5, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "linkedItemQueries", kind: "message", T: LinkedItemQuery, repeated: true }, - { no: 17, name: "linkedItems", kind: "message", T: LinkedItem, repeated: true }, - { no: 18, name: "health", kind: "enum", T: proto3.getEnumType(Health), opt: true }, - { no: 19, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Item { - return new Item().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Item { - return new Item().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Item { - return new Item().fromJsonString(jsonString, options); - } - - static equals(a: Item | PlainMessage | undefined, b: Item | PlainMessage | undefined): boolean { - return proto3.util.equals(Item, a, b); - } -} + tags: { [key: string]: string }; +}; + +/** + * Describes the message Item. + * Use `create(ItemSchema)` to create a new message. + */ +export const ItemSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 3); /** * ItemAttributes represents the known attributes for an item. These are likely @@ -373,52 +200,32 @@ export class Item extends Message { * * @generated from message ItemAttributes */ -export class ItemAttributes extends Message { +export type ItemAttributes = Message<"ItemAttributes"> & { /** * @generated from field: google.protobuf.Struct attrStruct = 1; */ - attrStruct?: Struct; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ItemAttributes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attrStruct", kind: "message", T: Struct }, - ]); + attrStruct?: JsonObject; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): ItemAttributes { - return new ItemAttributes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ItemAttributes { - return new ItemAttributes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ItemAttributes { - return new ItemAttributes().fromJsonString(jsonString, options); - } - - static equals(a: ItemAttributes | PlainMessage | undefined, b: ItemAttributes | PlainMessage | undefined): boolean { - return proto3.util.equals(ItemAttributes, a, b); - } -} +/** + * Describes the message ItemAttributes. + * Use `create(ItemAttributesSchema)` to create a new message. + */ +export const ItemAttributesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 4); /** * Metadata about the item. Where it came from, how long it took, etc. * * @generated from message Metadata */ -export class Metadata extends Message { +export type Metadata = Message<"Metadata"> & { /** * This is the name of the source that was used to find the item. * * @generated from field: string sourceName = 2; */ - sourceName = ""; + sourceName: string; /** * The query that caused this item to be found. This is for gateway-internal use and will not be exposed to the frontend. @@ -468,106 +275,61 @@ export class Metadata extends Message { * * @generated from field: bool hidden = 7; */ - hidden = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Metadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "sourceName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sourceQuery", kind: "message", T: Query }, - { no: 4, name: "timestamp", kind: "message", T: Timestamp }, - { no: 5, name: "sourceDuration", kind: "message", T: Duration }, - { no: 6, name: "sourceDurationPerItem", kind: "message", T: Duration }, - { no: 7, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { - return new Metadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { - return new Metadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Metadata { - return new Metadata().fromJsonString(jsonString, options); - } - - static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { - return proto3.util.equals(Metadata, a, b); - } -} + hidden: boolean; +}; + +/** + * Describes the message Metadata. + * Use `create(MetadataSchema)` to create a new message. + */ +export const MetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 5); /** * This is a list of items, like a List() would return * * @generated from message Items */ -export class Items extends Message { +export type Items = Message<"Items"> & { /** * @generated from field: repeated Item items = 1; */ - items: Item[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Items"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "items", kind: "message", T: Item, repeated: true }, - ]); + items: Item[]; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): Items { - return new Items().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Items { - return new Items().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Items { - return new Items().fromJsonString(jsonString, options); - } - - static equals(a: Items | PlainMessage | undefined, b: Items | PlainMessage | undefined): boolean { - return proto3.util.equals(Items, a, b); - } -} +/** + * Describes the message Items. + * Use `create(ItemsSchema)` to create a new message. + */ +export const ItemsSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 6); /** * Query represents a query for an item or a list of items. * * @generated from message Query */ -export class Query extends Message { +export type Query = Message<"Query"> & { /** * The type of item to search for. "*" means all types * * @generated from field: string type = 1; */ - type = ""; + type: string; /** * Which method to use when looking for it * * @generated from field: QueryMethod method = 2; */ - method = QueryMethod.GET; + method: QueryMethod; /** * What query should be passed to that method * * @generated from field: string query = 3; */ - query = ""; + query: string; /** * Defines how this query should behave when finding new items @@ -582,7 +344,7 @@ export class Query extends Message { * * @generated from field: string scope = 5; */ - scope = ""; + scope: string; /** * Whether to ignore the cache and execute the query regardless. @@ -595,7 +357,7 @@ export class Query extends Message { * * @generated from field: bool ignoreCache = 6; */ - ignoreCache = false; + ignoreCache: boolean; /** * A UUID to uniquely identify the query. This should be stored by the @@ -605,7 +367,7 @@ export class Query extends Message { * * @generated from field: bytes UUID = 7; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * The deadline for this query. When the deadline elapses, results become @@ -617,48 +379,21 @@ export class Query extends Message { * @generated from field: google.protobuf.Timestamp deadline = 9; */ deadline?: Timestamp; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Query"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "method", kind: "enum", T: proto3.getEnumType(QueryMethod) }, - { no: 3, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "recursionBehaviour", kind: "message", T: Query_RecursionBehaviour }, - { no: 5, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "ignoreCache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "deadline", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Query { - return new Query().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Query { - return new Query().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Query { - return new Query().fromJsonString(jsonString, options); - } - - static equals(a: Query | PlainMessage | undefined, b: Query | PlainMessage | undefined): boolean { - return proto3.util.equals(Query, a, b); - } -} +/** + * Describes the message Query. + * Use `create(QuerySchema)` to create a new message. + */ +export const QuerySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 7); /** * Defines how this query should behave when finding new items * * @generated from message Query.RecursionBehaviour */ -export class Query_RecursionBehaviour extends Message { +export type Query_RecursionBehaviour = Message<"Query.RecursionBehaviour"> & { /** * How deeply to link items. A value of 0 will mean that items are not linked. * To resolve linked items "infinitely" simply set this to a high number, with @@ -667,48 +402,27 @@ export class Query_RecursionBehaviour extends Message * * @generated from field: uint32 linkDepth = 1; */ - linkDepth = 0; + linkDepth: number; /** * set to true to only follow links that propagate configuration change impact * * @generated from field: bool followOnlyBlastPropagation = 2; */ - followOnlyBlastPropagation = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Query.RecursionBehaviour"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "linkDepth", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "followOnlyBlastPropagation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Query_RecursionBehaviour { - return new Query_RecursionBehaviour().fromBinary(bytes, options); - } + followOnlyBlastPropagation: boolean; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): Query_RecursionBehaviour { - return new Query_RecursionBehaviour().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Query_RecursionBehaviour { - return new Query_RecursionBehaviour().fromJsonString(jsonString, options); - } - - static equals(a: Query_RecursionBehaviour | PlainMessage | undefined, b: Query_RecursionBehaviour | PlainMessage | undefined): boolean { - return proto3.util.equals(Query_RecursionBehaviour, a, b); - } -} +/** + * Describes the message Query.RecursionBehaviour. + * Use `create(Query_RecursionBehaviourSchema)` to create a new message. + */ +export const Query_RecursionBehaviourSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 7, 0); /** * @generated from message QueryResponse */ -export class QueryResponse extends Message { +export type QueryResponse = Message<"QueryResponse"> & { /** * @generated from oneof QueryResponse.response_type */ @@ -736,84 +450,41 @@ export class QueryResponse extends Message { */ value: QueryError; case: "error"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "QueryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "newItem", kind: "message", T: Item, oneof: "response_type" }, - { no: 3, name: "response", kind: "message", T: Response, oneof: "response_type" }, - { no: 4, name: "error", kind: "message", T: QueryError, oneof: "response_type" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryResponse { - return new QueryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryResponse { - return new QueryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryResponse { - return new QueryResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryResponse | PlainMessage | undefined, b: QueryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryResponse, a, b); - } -} + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message QueryResponse. + * Use `create(QueryResponseSchema)` to create a new message. + */ +export const QueryResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 8); /** * QueryStatus informs the client of status updates of all queries running in this session. * * @generated from message QueryStatus */ -export class QueryStatus extends Message { +export type QueryStatus = Message<"QueryStatus"> & { /** * UUID of the query * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * @generated from field: QueryStatus.Status status = 2; */ - status = QueryStatus_Status.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "QueryStatus"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(QueryStatus_Status) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryStatus { - return new QueryStatus().fromBinary(bytes, options); - } + status: QueryStatus_Status; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): QueryStatus { - return new QueryStatus().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryStatus { - return new QueryStatus().fromJsonString(jsonString, options); - } - - static equals(a: QueryStatus | PlainMessage | undefined, b: QueryStatus | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryStatus, a, b); - } -} +/** + * Describes the message QueryStatus. + * Use `create(QueryStatusSchema)` to create a new message. + */ +export const QueryStatusSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 9); /** * The error type. Any types in here will be gracefully handled unless the @@ -861,102 +532,74 @@ export enum QueryStatus_Status { */ FINISHED = 5, } -// Retrieve enum metadata with: proto3.getEnumType(QueryStatus_Status) -proto3.util.setEnumType(QueryStatus_Status, "QueryStatus.Status", [ - { no: 0, name: "UNSPECIFIED" }, - { no: 1, name: "STARTED" }, - { no: 3, name: "CANCELLED" }, - { no: 4, name: "ERRORED" }, - { no: 5, name: "FINISHED" }, -]); + +/** + * Describes the enum QueryStatus.Status. + */ +export const QueryStatus_StatusSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_items, 9, 0); /** * QueryError is sent back when an item query fails * * @generated from message QueryError */ -export class QueryError extends Message { +export type QueryError = Message<"QueryError"> & { /** * UUID of the item query that this response is in relation to (in binary * format) * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * @generated from field: QueryError.ErrorType errorType = 2; */ - errorType = QueryError_ErrorType.OTHER; + errorType: QueryError_ErrorType; /** * The string contents of the error * * @generated from field: string errorString = 3; */ - errorString = ""; + errorString: string; /** * The scope from which the error was raised * * @generated from field: string scope = 4; */ - scope = ""; + scope: string; /** * The name of the source which raised the error (if relevant) * * @generated from field: string sourceName = 5; */ - sourceName = ""; + sourceName: string; /** * The type of item that we were looking for at the time of the error * * @generated from field: string itemType = 6; */ - itemType = ""; + itemType: string; /** * The name of the responder that this error was raised from * * @generated from field: string responderName = 7; */ - responderName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "QueryError"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "errorType", kind: "enum", T: proto3.getEnumType(QueryError_ErrorType) }, - { no: 3, name: "errorString", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sourceName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "itemType", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "responderName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryError { - return new QueryError().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryError { - return new QueryError().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryError { - return new QueryError().fromJsonString(jsonString, options); - } - - static equals(a: QueryError | PlainMessage | undefined, b: QueryError | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryError, a, b); - } -} + responderName: string; +}; + +/** + * Describes the message QueryError. + * Use `create(QueryErrorSchema)` to create a new message. + */ +export const QueryErrorSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 10); /** * The error type. Any types in here will be gracefully handled unless the @@ -1001,13 +644,12 @@ export enum QueryError_ErrorType { */ TIMEOUT = 3, } -// Retrieve enum metadata with: proto3.getEnumType(QueryError_ErrorType) -proto3.util.setEnumType(QueryError_ErrorType, "QueryError.ErrorType", [ - { no: 0, name: "OTHER" }, - { no: 1, name: "NOTFOUND" }, - { no: 2, name: "NOSCOPE" }, - { no: 3, name: "TIMEOUT" }, -]); + +/** + * Describes the enum QueryError.ErrorType. + */ +export const QueryError_ErrorTypeSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_items, 10, 0); /** * The message signals that the Query with the corresponding UUID should @@ -1017,41 +659,21 @@ proto3.util.setEnumType(QueryError_ErrorType, "QueryError.ErrorType", [ * * @generated from message CancelQuery */ -export class CancelQuery extends Message { +export type CancelQuery = Message<"CancelQuery"> & { /** * UUID of the Query to cancel * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "CancelQuery"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + UUID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): CancelQuery { - return new CancelQuery().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CancelQuery { - return new CancelQuery().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CancelQuery { - return new CancelQuery().fromJsonString(jsonString, options); - } - - static equals(a: CancelQuery | PlainMessage | undefined, b: CancelQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(CancelQuery, a, b); - } -} +/** + * Describes the message CancelQuery. + * Use `create(CancelQuerySchema)` to create a new message. + */ +export const CancelQuerySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 11); /** * This message is sent to the gateway to instruct it to "undo" a query. This @@ -1062,41 +684,21 @@ export class CancelQuery extends Message { * * @generated from message UndoQuery */ -export class UndoQuery extends Message { +export type UndoQuery = Message<"UndoQuery"> & { /** * UUID of the Query to cancel * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "UndoQuery"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + UUID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): UndoQuery { - return new UndoQuery().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UndoQuery { - return new UndoQuery().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UndoQuery { - return new UndoQuery().fromJsonString(jsonString, options); - } - - static equals(a: UndoQuery | PlainMessage | undefined, b: UndoQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(UndoQuery, a, b); - } -} +/** + * Describes the message UndoQuery. + * Use `create(UndoQuerySchema)` to create a new message. + */ +export const UndoQuerySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 12); /** * This requests that the gateway "expands" an item. This involves executing all @@ -1109,7 +711,7 @@ export class UndoQuery extends Message { * * @generated from message Expand */ -export class Expand extends Message { +export type Expand = Message<"Expand"> & { /** * The item that should be expanded * @@ -1122,7 +724,7 @@ export class Expand extends Message { * * @generated from field: uint32 linkDepth = 2; */ - linkDepth = 0; + linkDepth: number; /** * A UUID to uniquely identify the request. This should be stored by the @@ -1132,7 +734,7 @@ export class Expand extends Message { * * @generated from field: bytes UUID = 3; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * The time at which the gateway should stop processing the queries spawned by this request @@ -1140,37 +742,14 @@ export class Expand extends Message { * @generated from field: google.protobuf.Timestamp deadline = 4; */ deadline?: Timestamp; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Expand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "item", kind: "message", T: Reference }, - { no: 2, name: "linkDepth", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "deadline", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Expand { - return new Expand().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Expand { - return new Expand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Expand { - return new Expand().fromJsonString(jsonString, options); - } - - static equals(a: Expand | PlainMessage | undefined, b: Expand | PlainMessage | undefined): boolean { - return proto3.util.equals(Expand, a, b); - } -} +/** + * Describes the message Expand. + * Use `create(ExpandSchema)` to create a new message. + */ +export const ExpandSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 13); /** * This message is sent to the gateway to instruct it to "undo" an Expand. This @@ -1181,41 +760,21 @@ export class Expand extends Message { * * @generated from message UndoExpand */ -export class UndoExpand extends Message { +export type UndoExpand = Message<"UndoExpand"> & { /** * UUID of the Expand to cancel * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "UndoExpand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UndoExpand { - return new UndoExpand().fromBinary(bytes, options); - } + UUID: Uint8Array; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): UndoExpand { - return new UndoExpand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UndoExpand { - return new UndoExpand().fromJsonString(jsonString, options); - } - - static equals(a: UndoExpand | PlainMessage | undefined, b: UndoExpand | PlainMessage | undefined): boolean { - return proto3.util.equals(UndoExpand, a, b); - } -} +/** + * Describes the message UndoExpand. + * Use `create(UndoExpandSchema)` to create a new message. + */ +export const UndoExpandSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 14); /** * Reference to an item @@ -1229,69 +788,44 @@ export class UndoExpand extends Message { * * @generated from message Reference */ -export class Reference extends Message { +export type Reference = Message<"Reference"> & { /** * @generated from field: string type = 1; */ - type = ""; + type: string; /** * @generated from field: string uniqueAttributeValue = 2; */ - uniqueAttributeValue = ""; + uniqueAttributeValue: string; /** * @generated from field: string scope = 3; */ - scope = ""; + scope: string; /** * @generated from field: bool isQuery = 4; */ - isQuery = false; + isQuery: boolean; /** * @generated from field: string query = 5; */ - query = ""; + query: string; /** * @generated from field: QueryMethod method = 6; */ - method = QueryMethod.GET; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Reference"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "uniqueAttributeValue", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "isQuery", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "method", kind: "enum", T: proto3.getEnumType(QueryMethod) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Reference { - return new Reference().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Reference { - return new Reference().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Reference { - return new Reference().fromJsonString(jsonString, options); - } - - static equals(a: Reference | PlainMessage | undefined, b: Reference | PlainMessage | undefined): boolean { - return proto3.util.equals(Reference, a, b); - } -} + method: QueryMethod; +}; + +/** + * Describes the message Reference. + * Use `create(ReferenceSchema)` to create a new message. + */ +export const ReferenceSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 15); /** * Edge Represents a link between two items, it is not used in regular SDP @@ -1301,7 +835,7 @@ export class Reference extends Message { * * @generated from message Edge */ -export class Edge extends Message { +export type Edge = Message<"Edge"> & { /** * @generated from field: Reference from = 1; */ @@ -1316,34 +850,101 @@ export class Edge extends Message { * @generated from field: BlastPropagation blastPropagation = 3; */ blastPropagation?: BlastPropagation; +}; + +/** + * Describes the message Edge. + * Use `create(EdgeSchema)` to create a new message. + */ +export const EdgeSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_items, 16); + +/** + * Represents the health of something, the meaning of each state may depend on + * the context in which it is used but should be reasonably obvious + * + * @generated from enum Health + */ +export enum Health { + /** + * The health could not be determined + * + * @generated from enum value: HEALTH_UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * Functioning normally + * + * @generated from enum value: HEALTH_OK = 1; + */ + OK = 1, - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Edge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "from", kind: "message", T: Reference }, - { no: 2, name: "to", kind: "message", T: Reference }, - { no: 3, name: "blastPropagation", kind: "message", T: BlastPropagation }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Edge { - return new Edge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Edge { - return new Edge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Edge { - return new Edge().fromJsonString(jsonString, options); - } - - static equals(a: Edge | PlainMessage | undefined, b: Edge | PlainMessage | undefined): boolean { - return proto3.util.equals(Edge, a, b); - } + /** + * Functioning, but degraded + * + * @generated from enum value: HEALTH_WARNING = 2; + */ + WARNING = 2, + + /** + * Not functioning + * + * @generated from enum value: HEALTH_ERROR = 3; + */ + ERROR = 3, + + /** + * Health state is transitioning, such as when something is first provisioned + * + * @generated from enum value: HEALTH_PENDING = 4; + */ + PENDING = 4, } +/** + * Describes the enum Health. + */ +export const HealthSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_items, 0); + +/** + * QueryMethod represents the available query methods. The details of these + * methods are: + * + * GET: This takes a single unique query and should only return a single item. + * If an item matching the parameter passed doesn't exist the server should + * fail + * + * LIST: This takes no query (or ignores it) and should return all items that it + * can find + * + * SEARCH: This takes a non-unique query which is designed to be used as a + * search term. It should return some number of items (or zero) which + * match the query + * + * @generated from enum QueryMethod + */ +export enum QueryMethod { + /** + * @generated from enum value: GET = 0; + */ + GET = 0, + + /** + * @generated from enum value: LIST = 1; + */ + LIST = 1, + + /** + * @generated from enum value: SEARCH = 2; + */ + SEARCH = 2, +} + +/** + * Describes the enum QueryMethod. + */ +export const QueryMethodSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_items, 1); + diff --git a/src/__generated__/responses_pb.ts b/src/__generated__/responses_pb.ts index 791d1a6..05b25ff 100644 --- a/src/__generated__/responses_pb.ts +++ b/src/__generated__/responses_pb.ts @@ -1,83 +1,39 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file responses.proto (syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3 } from "@bufbuild/protobuf"; +import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; +import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Duration } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_duration } from "@bufbuild/protobuf/wkt"; +import type { Message } from "@bufbuild/protobuf"; /** - * ResponderState represents the state of the responder, note that both - * COMPLETE and ERROR are completion states i.e. do not expect any more items - * to be returned from the query - * - * @generated from enum ResponderState + * Describes the file responses.proto. */ -export enum ResponderState { - /** - * The responder is still gathering data - * - * @generated from enum value: WORKING = 0; - */ - WORKING = 0, - - /** - * The query is complete - * - * @generated from enum value: COMPLETE = 1; - */ - COMPLETE = 1, - - /** - * All sources have returned errors - * - * @generated from enum value: ERROR = 2; - */ - ERROR = 2, - - /** - * Work has been cancelled while in progress - * - * @generated from enum value: CANCELLED = 3; - */ - CANCELLED = 3, - - /** - * The responder has not set a response in the expected interval - * - * @generated from enum value: STALLED = 4; - */ - STALLED = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(ResponderState) -proto3.util.setEnumType(ResponderState, "ResponderState", [ - { no: 0, name: "WORKING" }, - { no: 1, name: "COMPLETE" }, - { no: 2, name: "ERROR" }, - { no: 3, name: "CANCELLED" }, - { no: 4, name: "STALLED" }, -]); +export const file_responses: GenFile = /*@__PURE__*/ + fileDesc("Cg9yZXNwb25zZXMucHJvdG8ikwEKCFJlc3BvbnNlEhEKCXJlc3BvbmRlchgBIAEoCRIeCgVzdGF0ZRgCIAEoDjIPLlJlc3BvbmRlclN0YXRlEi8KDG5leHRVcGRhdGVJbhgDIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIMCgRVVUlEGAQgASgMEhUKDXJlc3BvbmRlclVVSUQYBSABKAwqUgoOUmVzcG9uZGVyU3RhdGUSCwoHV09SS0lORxAAEgwKCENPTVBMRVRFEAESCQoFRVJST1IQAhINCglDQU5DRUxMRUQQAxILCgdTVEFMTEVEEARCJFoiZ2l0aHViLmNvbS9vdmVybWluZHRlY2gvc2RwLWdvO3NkcGIGcHJvdG8z", [file_google_protobuf_duration]); /** * Response is returned when a query is made * * @generated from message Response */ -export class Response extends Message { +export type Response = Message<"Response"> & { /** * The name of the responder that is working on a response. This is purely * informational * * @generated from field: string responder = 1; */ - responder = ""; + responder: string; /** * The state of the responder * * @generated from field: ResponderState state = 2; */ - state = ResponderState.WORKING; + state: ResponderState; /** * The timespan within which to expect the next update. (e.g. 10s) If no @@ -94,7 +50,7 @@ export class Response extends Message { * * @generated from field: bytes UUID = 4; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * The ID of the responder that is working on a response. This is used for @@ -103,37 +59,63 @@ export class Response extends Message { * * @generated from field: bytes responderUUID = 5; */ - responderUUID = new Uint8Array(0); + responderUUID: Uint8Array; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } +/** + * Describes the message Response. + * Use `create(ResponseSchema)` to create a new message. + */ +export const ResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_responses, 0); - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Response"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "responder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(ResponderState) }, - { no: 3, name: "nextUpdateIn", kind: "message", T: Duration }, - { no: 4, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "responderUUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); +/** + * ResponderState represents the state of the responder, note that both + * COMPLETE and ERROR are completion states i.e. do not expect any more items + * to be returned from the query + * + * @generated from enum ResponderState + */ +export enum ResponderState { + /** + * The responder is still gathering data + * + * @generated from enum value: WORKING = 0; + */ + WORKING = 0, - static fromBinary(bytes: Uint8Array, options?: Partial): Response { - return new Response().fromBinary(bytes, options); - } + /** + * The query is complete + * + * @generated from enum value: COMPLETE = 1; + */ + COMPLETE = 1, - static fromJson(jsonValue: JsonValue, options?: Partial): Response { - return new Response().fromJson(jsonValue, options); - } + /** + * All sources have returned errors + * + * @generated from enum value: ERROR = 2; + */ + ERROR = 2, - static fromJsonString(jsonString: string, options?: Partial): Response { - return new Response().fromJsonString(jsonString, options); - } + /** + * Work has been cancelled while in progress + * + * @generated from enum value: CANCELLED = 3; + */ + CANCELLED = 3, - static equals(a: Response | PlainMessage | undefined, b: Response | PlainMessage | undefined): boolean { - return proto3.util.equals(Response, a, b); - } + /** + * The responder has not set a response in the expected interval + * + * @generated from enum value: STALLED = 4; + */ + STALLED = 4, } +/** + * Describes the enum ResponderState. + */ +export const ResponderStateSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_responses, 0); + diff --git a/src/__generated__/revlink-RevlinkService_connectquery.ts b/src/__generated__/revlink-RevlinkService_connectquery.ts index a77ba60..a631e00 100644 --- a/src/__generated__/revlink-RevlinkService_connectquery.ts +++ b/src/__generated__/revlink-RevlinkService_connectquery.ts @@ -1,23 +1,12 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file revlink.proto (package revlink, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { GetReverseLinksRequest, GetReverseLinksResponse } from "./revlink_pb.ts"; +import { RevlinkService } from "./revlink_pb"; /** * Gets reverse links for a given item * * @generated from rpc revlink.RevlinkService.GetReverseLinks */ -export const getReverseLinks = { - localName: "getReverseLinks", - name: "GetReverseLinks", - kind: MethodKind.Unary, - I: GetReverseLinksRequest, - O: GetReverseLinksResponse, - service: { - typeName: "revlink.RevlinkService" - } -} as const; +export const getReverseLinks = RevlinkService.method.getReverseLinks; diff --git a/src/__generated__/revlink_connect.ts b/src/__generated__/revlink_connect.ts deleted file mode 100644 index 050abc5..0000000 --- a/src/__generated__/revlink_connect.ts +++ /dev/null @@ -1,39 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file revlink.proto (package revlink, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { GetReverseLinksRequest, GetReverseLinksResponse, IngestGatewayResponseRequest, IngestGatewayResponsesResponse } from "./revlink_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * @generated from service revlink.RevlinkService - */ -export const RevlinkService = { - typeName: "revlink.RevlinkService", - methods: { - /** - * Gets reverse links for a given item - * - * @generated from rpc revlink.RevlinkService.GetReverseLinks - */ - getReverseLinks: { - name: "GetReverseLinks", - I: GetReverseLinksRequest, - O: GetReverseLinksResponse, - kind: MethodKind.Unary, - }, - /** - * Ingests a stream of gateway responses - * - * @generated from rpc revlink.RevlinkService.IngestGatewayResponses - */ - ingestGatewayResponses: { - name: "IngestGatewayResponses", - I: IngestGatewayResponseRequest, - O: IngestGatewayResponsesResponse, - kind: MethodKind.ClientStreaming, - }, - } -} as const; - diff --git a/src/__generated__/revlink_pb.ts b/src/__generated__/revlink_pb.ts index b9feae7..cd820bf 100644 --- a/src/__generated__/revlink_pb.ts +++ b/src/__generated__/revlink_pb.ts @@ -1,22 +1,30 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file revlink.proto (package revlink, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Edge, Item, LinkedItemQuery, Reference } from "./items_pb.ts"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Edge, Item, LinkedItemQuery, Reference } from "./items_pb"; +import { file_items } from "./items_pb"; +import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file revlink.proto. + */ +export const file_revlink: GenFile = /*@__PURE__*/ + fileDesc("Cg1yZXZsaW5rLnByb3RvEgdyZXZsaW5rImcKFkdldFJldmVyc2VMaW5rc1JlcXVlc3QSDwoHYWNjb3VudBgBIAEoCRIYCgRpdGVtGAIgASgLMgouUmVmZXJlbmNlEiIKGmZvbGxvd09ubHlCbGFzdFByb3BhZ2F0aW9uGAMgASgIIkYKF0dldFJldmVyc2VMaW5rc1Jlc3BvbnNlEisKEWxpbmtlZEl0ZW1RdWVyaWVzGAEgAygLMhAuTGlua2VkSXRlbVF1ZXJ5InQKHEluZ2VzdEdhdGV3YXlSZXNwb25zZVJlcXVlc3QSDwoHYWNjb3VudBgBIAEoCRIYCgduZXdJdGVtGAIgASgLMgUuSXRlbUgAEhgKB25ld0VkZ2UYAyABKAsyBS5FZGdlSABCDwoNcmVzcG9uc2VfdHlwZSJUCh5Jbmdlc3RHYXRld2F5UmVzcG9uc2VzUmVzcG9uc2USGAoQbnVtSXRlbXNSZWNlaXZlZBgBIAEoBRIYChBudW1FZGdlc1JlY2VpdmVkGAIgASgFMtIBCg5SZXZsaW5rU2VydmljZRJUCg9HZXRSZXZlcnNlTGlua3MSHy5yZXZsaW5rLkdldFJldmVyc2VMaW5rc1JlcXVlc3QaIC5yZXZsaW5rLkdldFJldmVyc2VMaW5rc1Jlc3BvbnNlEmoKFkluZ2VzdEdhdGV3YXlSZXNwb25zZXMSJS5yZXZsaW5rLkluZ2VzdEdhdGV3YXlSZXNwb25zZVJlcXVlc3QaJy5yZXZsaW5rLkluZ2VzdEdhdGV3YXlSZXNwb25zZXNSZXNwb25zZSgBQiRaImdpdGh1Yi5jb20vb3Zlcm1pbmR0ZWNoL3NkcC1nbztzZHBiBnByb3RvMw", [file_items, file_google_protobuf_timestamp]); /** * @generated from message revlink.GetReverseLinksRequest */ -export class GetReverseLinksRequest extends Message { +export type GetReverseLinksRequest = Message<"revlink.GetReverseLinksRequest"> & { /** * The account that the item belongs to * * @generated from field: string account = 1; */ - account = ""; + account: string; /** * The item that you would like to find reverse links for @@ -30,88 +38,46 @@ export class GetReverseLinksRequest extends Message { * * @generated from field: bool followOnlyBlastPropagation = 3; */ - followOnlyBlastPropagation = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "revlink.GetReverseLinksRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "item", kind: "message", T: Reference }, - { no: 3, name: "followOnlyBlastPropagation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetReverseLinksRequest { - return new GetReverseLinksRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetReverseLinksRequest { - return new GetReverseLinksRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetReverseLinksRequest { - return new GetReverseLinksRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetReverseLinksRequest | PlainMessage | undefined, b: GetReverseLinksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetReverseLinksRequest, a, b); - } -} + followOnlyBlastPropagation: boolean; +}; + +/** + * Describes the message revlink.GetReverseLinksRequest. + * Use `create(GetReverseLinksRequestSchema)` to create a new message. + */ +export const GetReverseLinksRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_revlink, 0); /** * @generated from message revlink.GetReverseLinksResponse */ -export class GetReverseLinksResponse extends Message { +export type GetReverseLinksResponse = Message<"revlink.GetReverseLinksResponse"> & { /** * The item queries that should be executed in order to find items that link * to the requested item * * @generated from field: repeated LinkedItemQuery linkedItemQueries = 1; */ - linkedItemQueries: LinkedItemQuery[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } + linkedItemQueries: LinkedItemQuery[]; +}; - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "revlink.GetReverseLinksResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "linkedItemQueries", kind: "message", T: LinkedItemQuery, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetReverseLinksResponse { - return new GetReverseLinksResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetReverseLinksResponse { - return new GetReverseLinksResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetReverseLinksResponse { - return new GetReverseLinksResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetReverseLinksResponse | PlainMessage | undefined, b: GetReverseLinksResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetReverseLinksResponse, a, b); - } -} +/** + * Describes the message revlink.GetReverseLinksResponse. + * Use `create(GetReverseLinksResponseSchema)` to create a new message. + */ +export const GetReverseLinksResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_revlink, 1); /** * @generated from message revlink.IngestGatewayResponseRequest */ -export class IngestGatewayResponseRequest extends Message { +export type IngestGatewayResponseRequest = Message<"revlink.IngestGatewayResponseRequest"> & { /** * The account that the response belongs to * * @generated from field: string account = 1; */ - account = ""; + account: string; /** * The response type to ingest @@ -134,78 +100,62 @@ export class IngestGatewayResponseRequest extends Message) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "revlink.IngestGatewayResponseRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "newItem", kind: "message", T: Item, oneof: "response_type" }, - { no: 3, name: "newEdge", kind: "message", T: Edge, oneof: "response_type" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IngestGatewayResponseRequest { - return new IngestGatewayResponseRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IngestGatewayResponseRequest { - return new IngestGatewayResponseRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IngestGatewayResponseRequest { - return new IngestGatewayResponseRequest().fromJsonString(jsonString, options); - } - - static equals(a: IngestGatewayResponseRequest | PlainMessage | undefined, b: IngestGatewayResponseRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(IngestGatewayResponseRequest, a, b); - } -} + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message revlink.IngestGatewayResponseRequest. + * Use `create(IngestGatewayResponseRequestSchema)` to create a new message. + */ +export const IngestGatewayResponseRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_revlink, 2); /** * @generated from message revlink.IngestGatewayResponsesResponse */ -export class IngestGatewayResponsesResponse extends Message { +export type IngestGatewayResponsesResponse = Message<"revlink.IngestGatewayResponsesResponse"> & { /** * @generated from field: int32 numItemsReceived = 1; */ - numItemsReceived = 0; + numItemsReceived: number; /** * @generated from field: int32 numEdgesReceived = 2; */ - numEdgesReceived = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "revlink.IngestGatewayResponsesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "numItemsReceived", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "numEdgesReceived", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IngestGatewayResponsesResponse { - return new IngestGatewayResponsesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IngestGatewayResponsesResponse { - return new IngestGatewayResponsesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IngestGatewayResponsesResponse { - return new IngestGatewayResponsesResponse().fromJsonString(jsonString, options); - } - - static equals(a: IngestGatewayResponsesResponse | PlainMessage | undefined, b: IngestGatewayResponsesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(IngestGatewayResponsesResponse, a, b); - } -} + numEdgesReceived: number; +}; + +/** + * Describes the message revlink.IngestGatewayResponsesResponse. + * Use `create(IngestGatewayResponsesResponseSchema)` to create a new message. + */ +export const IngestGatewayResponsesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_revlink, 3); + +/** + * @generated from service revlink.RevlinkService + */ +export const RevlinkService: GenService<{ + /** + * Gets reverse links for a given item + * + * @generated from rpc revlink.RevlinkService.GetReverseLinks + */ + getReverseLinks: { + methodKind: "unary"; + input: typeof GetReverseLinksRequestSchema; + output: typeof GetReverseLinksResponseSchema; + }, + /** + * Ingests a stream of gateway responses + * + * @generated from rpc revlink.RevlinkService.IngestGatewayResponses + */ + ingestGatewayResponses: { + methodKind: "client_streaming"; + input: typeof IngestGatewayResponseRequestSchema; + output: typeof IngestGatewayResponsesResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_revlink, 0); diff --git a/src/__generated__/snapshots-SnapshotsService_connectquery.ts b/src/__generated__/snapshots-SnapshotsService_connectquery.ts index c8427ab..0ff9e50 100644 --- a/src/__generated__/snapshots-SnapshotsService_connectquery.ts +++ b/src/__generated__/snapshots-SnapshotsService_connectquery.ts @@ -1,91 +1,35 @@ -// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-connect-query v2.0.0 with parameter "target=ts" // @generated from file snapshots.proto (package snapshots, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { MethodKind } from "@bufbuild/protobuf"; -import { CreateSnapshotRequest, CreateSnapshotResponse, DeleteSnapshotRequest, DeleteSnapshotResponse, GetSnapshotRequest, GetSnapshotResponse, ListSnapshotResponse, ListSnapshotsByGUNRequest, ListSnapshotsByGUNResponse, ListSnapshotsRequest, UpdateSnapshotRequest, UpdateSnapshotResponse } from "./snapshots_pb.ts"; +import { SnapshotsService } from "./snapshots_pb"; /** * @generated from rpc snapshots.SnapshotsService.ListSnapshots */ -export const listSnapshots = { - localName: "listSnapshots", - name: "ListSnapshots", - kind: MethodKind.Unary, - I: ListSnapshotsRequest, - O: ListSnapshotResponse, - service: { - typeName: "snapshots.SnapshotsService" - } -} as const; +export const listSnapshots = SnapshotsService.method.listSnapshots; /** * @generated from rpc snapshots.SnapshotsService.CreateSnapshot */ -export const createSnapshot = { - localName: "createSnapshot", - name: "CreateSnapshot", - kind: MethodKind.Unary, - I: CreateSnapshotRequest, - O: CreateSnapshotResponse, - service: { - typeName: "snapshots.SnapshotsService" - } -} as const; +export const createSnapshot = SnapshotsService.method.createSnapshot; /** * @generated from rpc snapshots.SnapshotsService.GetSnapshot */ -export const getSnapshot = { - localName: "getSnapshot", - name: "GetSnapshot", - kind: MethodKind.Unary, - I: GetSnapshotRequest, - O: GetSnapshotResponse, - service: { - typeName: "snapshots.SnapshotsService" - } -} as const; +export const getSnapshot = SnapshotsService.method.getSnapshot; /** * @generated from rpc snapshots.SnapshotsService.UpdateSnapshot */ -export const updateSnapshot = { - localName: "updateSnapshot", - name: "UpdateSnapshot", - kind: MethodKind.Unary, - I: UpdateSnapshotRequest, - O: UpdateSnapshotResponse, - service: { - typeName: "snapshots.SnapshotsService" - } -} as const; +export const updateSnapshot = SnapshotsService.method.updateSnapshot; /** * @generated from rpc snapshots.SnapshotsService.DeleteSnapshot */ -export const deleteSnapshot = { - localName: "deleteSnapshot", - name: "DeleteSnapshot", - kind: MethodKind.Unary, - I: DeleteSnapshotRequest, - O: DeleteSnapshotResponse, - service: { - typeName: "snapshots.SnapshotsService" - } -} as const; +export const deleteSnapshot = SnapshotsService.method.deleteSnapshot; /** * @generated from rpc snapshots.SnapshotsService.ListSnapshotByGUN */ -export const listSnapshotByGUN = { - localName: "listSnapshotByGUN", - name: "ListSnapshotByGUN", - kind: MethodKind.Unary, - I: ListSnapshotsByGUNRequest, - O: ListSnapshotsByGUNResponse, - service: { - typeName: "snapshots.SnapshotsService" - } -} as const; +export const listSnapshotByGUN = SnapshotsService.method.listSnapshotByGUN; diff --git a/src/__generated__/snapshots_connect.ts b/src/__generated__/snapshots_connect.ts deleted file mode 100644 index cf6425a..0000000 --- a/src/__generated__/snapshots_connect.ts +++ /dev/null @@ -1,71 +0,0 @@ -// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=.ts" -// @generated from file snapshots.proto (package snapshots, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CreateSnapshotRequest, CreateSnapshotResponse, DeleteSnapshotRequest, DeleteSnapshotResponse, GetSnapshotRequest, GetSnapshotResponse, ListSnapshotResponse, ListSnapshotsByGUNRequest, ListSnapshotsByGUNResponse, ListSnapshotsRequest, UpdateSnapshotRequest, UpdateSnapshotResponse } from "./snapshots_pb.ts"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * @generated from service snapshots.SnapshotsService - */ -export const SnapshotsService = { - typeName: "snapshots.SnapshotsService", - methods: { - /** - * @generated from rpc snapshots.SnapshotsService.ListSnapshots - */ - listSnapshots: { - name: "ListSnapshots", - I: ListSnapshotsRequest, - O: ListSnapshotResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc snapshots.SnapshotsService.CreateSnapshot - */ - createSnapshot: { - name: "CreateSnapshot", - I: CreateSnapshotRequest, - O: CreateSnapshotResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc snapshots.SnapshotsService.GetSnapshot - */ - getSnapshot: { - name: "GetSnapshot", - I: GetSnapshotRequest, - O: GetSnapshotResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc snapshots.SnapshotsService.UpdateSnapshot - */ - updateSnapshot: { - name: "UpdateSnapshot", - I: UpdateSnapshotRequest, - O: UpdateSnapshotResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc snapshots.SnapshotsService.DeleteSnapshot - */ - deleteSnapshot: { - name: "DeleteSnapshot", - I: DeleteSnapshotRequest, - O: DeleteSnapshotResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc snapshots.SnapshotsService.ListSnapshotByGUN - */ - listSnapshotByGUN: { - name: "ListSnapshotByGUN", - I: ListSnapshotsByGUNRequest, - O: ListSnapshotsByGUNResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/src/__generated__/snapshots_pb.ts b/src/__generated__/snapshots_pb.ts index 56fce80..b593777 100644 --- a/src/__generated__/snapshots_pb.ts +++ b/src/__generated__/snapshots_pb.ts @@ -1,18 +1,29 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file snapshots.proto (package snapshots, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Item, Query, Reference } from "./items_pb.ts"; -import { Bookmark } from "./bookmarks_pb.ts"; -import { PaginationRequest, PaginationResponse } from "./util_pb.ts"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { Bookmark } from "./bookmarks_pb"; +import { file_bookmarks } from "./bookmarks_pb"; +import type { Item, Query, Reference } from "./items_pb"; +import { file_items } from "./items_pb"; +import type { PaginationRequest, PaginationResponse } from "./util_pb"; +import { file_util } from "./util_pb"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file snapshots.proto. + */ +export const file_snapshots: GenFile = /*@__PURE__*/ + fileDesc("Cg9zbmFwc2hvdHMucHJvdG8SCXNuYXBzaG90cyJsCghTbmFwc2hvdBItCghtZXRhZGF0YRgBIAEoCzIbLnNuYXBzaG90cy5TbmFwc2hvdE1ldGFkYXRhEjEKCnByb3BlcnRpZXMYAiABKAsyHS5zbmFwc2hvdHMuU25hcHNob3RQcm9wZXJ0aWVzIokBChJTbmFwc2hvdFByb3BlcnRpZXMSDAoEbmFtZRgBIAEoCRITCgtkZXNjcmlwdGlvbhgCIAEoCRIXCgdxdWVyaWVzGAMgAygLMgYuUXVlcnkSIQoNZXhjbHVkZWRJdGVtcxgEIAMoCzIKLlJlZmVyZW5jZRIUCgVpdGVtcxgFIAMoCzIFLkl0ZW0iTQoQU25hcHNob3RNZXRhZGF0YRIMCgRVVUlEGAEgASgMEisKB2NyZWF0ZWQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIhYKFExpc3RTbmFwc2hvdHNSZXF1ZXN0Ij4KFExpc3RTbmFwc2hvdFJlc3BvbnNlEiYKCXNuYXBzaG90cxgBIAMoCzITLnNuYXBzaG90cy5TbmFwc2hvdCJKChVDcmVhdGVTbmFwc2hvdFJlcXVlc3QSMQoKcHJvcGVydGllcxgBIAEoCzIdLnNuYXBzaG90cy5TbmFwc2hvdFByb3BlcnRpZXMiPwoWQ3JlYXRlU25hcHNob3RSZXNwb25zZRIlCghzbmFwc2hvdBgBIAEoCzITLnNuYXBzaG90cy5TbmFwc2hvdCIiChJHZXRTbmFwc2hvdFJlcXVlc3QSDAoEVVVJRBgBIAEoDCI8ChNHZXRTbmFwc2hvdFJlc3BvbnNlEiUKCHNuYXBzaG90GAEgASgLMhMuc25hcHNob3RzLlNuYXBzaG90IlgKFVVwZGF0ZVNuYXBzaG90UmVxdWVzdBIMCgRVVUlEGAEgASgMEjEKCnByb3BlcnRpZXMYAiABKAsyHS5zbmFwc2hvdHMuU25hcHNob3RQcm9wZXJ0aWVzIj8KFlVwZGF0ZVNuYXBzaG90UmVzcG9uc2USJQoIc25hcHNob3QYASABKAsyEy5zbmFwc2hvdHMuU25hcHNob3QiJQoVRGVsZXRlU25hcHNob3RSZXF1ZXN0EgwKBFVVSUQYASABKAwiGAoWRGVsZXRlU25hcHNob3RSZXNwb25zZSIXChVHZXRJbml0aWFsRGF0YVJlcXVlc3QifgoWR2V0SW5pdGlhbERhdGFSZXNwb25zZRIwChNibGFzdFJhZGl1c1NuYXBzaG90GAEgASgLMhMuc25hcHNob3RzLlNuYXBzaG90EjIKFWNoYW5naW5nSXRlbXNCb29rbWFyaxgCIAEoCzITLmJvb2ttYXJrcy5Cb29rbWFyayJfChlMaXN0U25hcHNob3RzQnlHVU5SZXF1ZXN0EhoKEmdsb2JhbGx5VW5pcXVlTmFtZRgBIAEoCRImCgpwYWdpbmF0aW9uGAIgASgLMhIuUGFnaW5hdGlvblJlcXVlc3QiVAoaTGlzdFNuYXBzaG90c0J5R1VOUmVzcG9uc2USDQoFVVVJRHMYASADKAwSJwoKcGFnaW5hdGlvbhgCIAEoCzITLlBhZ2luYXRpb25SZXNwb25zZTKaBAoQU25hcHNob3RzU2VydmljZRJRCg1MaXN0U25hcHNob3RzEh8uc25hcHNob3RzLkxpc3RTbmFwc2hvdHNSZXF1ZXN0Gh8uc25hcHNob3RzLkxpc3RTbmFwc2hvdFJlc3BvbnNlElUKDkNyZWF0ZVNuYXBzaG90EiAuc25hcHNob3RzLkNyZWF0ZVNuYXBzaG90UmVxdWVzdBohLnNuYXBzaG90cy5DcmVhdGVTbmFwc2hvdFJlc3BvbnNlEkwKC0dldFNuYXBzaG90Eh0uc25hcHNob3RzLkdldFNuYXBzaG90UmVxdWVzdBoeLnNuYXBzaG90cy5HZXRTbmFwc2hvdFJlc3BvbnNlElUKDlVwZGF0ZVNuYXBzaG90EiAuc25hcHNob3RzLlVwZGF0ZVNuYXBzaG90UmVxdWVzdBohLnNuYXBzaG90cy5VcGRhdGVTbmFwc2hvdFJlc3BvbnNlElUKDkRlbGV0ZVNuYXBzaG90EiAuc25hcHNob3RzLkRlbGV0ZVNuYXBzaG90UmVxdWVzdBohLnNuYXBzaG90cy5EZWxldGVTbmFwc2hvdFJlc3BvbnNlEmAKEUxpc3RTbmFwc2hvdEJ5R1VOEiQuc25hcHNob3RzLkxpc3RTbmFwc2hvdHNCeUdVTlJlcXVlc3QaJS5zbmFwc2hvdHMuTGlzdFNuYXBzaG90c0J5R1VOUmVzcG9uc2VCJFoiZ2l0aHViLmNvbS9vdmVybWluZHRlY2gvc2RwLWdvO3NkcGIGcHJvdG8z", [file_google_protobuf_timestamp, file_bookmarks, file_items, file_util]); /** * @generated from message snapshots.Snapshot */ -export class Snapshot extends Message { +export type Snapshot = Message<"snapshots.Snapshot"> & { /** * @generated from field: snapshots.SnapshotMetadata metadata = 1; */ @@ -22,117 +33,72 @@ export class Snapshot extends Message { * @generated from field: snapshots.SnapshotProperties properties = 2; */ properties?: SnapshotProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.Snapshot"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: SnapshotMetadata }, - { no: 2, name: "properties", kind: "message", T: SnapshotProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Snapshot { - return new Snapshot().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Snapshot { - return new Snapshot().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Snapshot { - return new Snapshot().fromJsonString(jsonString, options); - } - - static equals(a: Snapshot | PlainMessage | undefined, b: Snapshot | PlainMessage | undefined): boolean { - return proto3.util.equals(Snapshot, a, b); - } -} +/** + * Describes the message snapshots.Snapshot. + * Use `create(SnapshotSchema)` to create a new message. + */ +export const SnapshotSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 0); /** * @generated from message snapshots.SnapshotProperties */ -export class SnapshotProperties extends Message { +export type SnapshotProperties = Message<"snapshots.SnapshotProperties"> & { /** * name of this snapshot * * @generated from field: string name = 1; */ - name = ""; + name: string; /** * description of this snapshot * * @generated from field: string description = 2; */ - description = ""; + description: string; /** * queries that make up the snapshot * * @generated from field: repeated Query queries = 3; */ - queries: Query[] = []; + queries: Query[]; /** * items that should be excluded from the snapshot's results * * @generated from field: repeated Reference excludedItems = 4; */ - excludedItems: Reference[] = []; + excludedItems: Reference[]; /** * items stored in the snapshot * * @generated from field: repeated Item items = 5; */ - items: Item[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.SnapshotProperties"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "queries", kind: "message", T: Query, repeated: true }, - { no: 4, name: "excludedItems", kind: "message", T: Reference, repeated: true }, - { no: 5, name: "items", kind: "message", T: Item, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotProperties { - return new SnapshotProperties().fromBinary(bytes, options); - } + items: Item[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotProperties { - return new SnapshotProperties().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotProperties { - return new SnapshotProperties().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotProperties | PlainMessage | undefined, b: SnapshotProperties | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotProperties, a, b); - } -} +/** + * Describes the message snapshots.SnapshotProperties. + * Use `create(SnapshotPropertiesSchema)` to create a new message. + */ +export const SnapshotPropertiesSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 1); /** * @generated from message snapshots.SnapshotMetadata */ -export class SnapshotMetadata extends Message { +export type SnapshotMetadata = Message<"snapshots.SnapshotMetadata"> & { /** * unique id to identify this snapshot * * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * timestamp when this snapshot was created @@ -140,455 +106,219 @@ export class SnapshotMetadata extends Message { * @generated from field: google.protobuf.Timestamp created = 2; */ created?: Timestamp; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.SnapshotMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "created", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotMetadata { - return new SnapshotMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotMetadata { - return new SnapshotMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotMetadata { - return new SnapshotMetadata().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotMetadata | PlainMessage | undefined, b: SnapshotMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotMetadata, a, b); - } -} +/** + * Describes the message snapshots.SnapshotMetadata. + * Use `create(SnapshotMetadataSchema)` to create a new message. + */ +export const SnapshotMetadataSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 2); /** * lists all snapshots * * @generated from message snapshots.ListSnapshotsRequest */ -export class ListSnapshotsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.ListSnapshotsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export type ListSnapshotsRequest = Message<"snapshots.ListSnapshotsRequest"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): ListSnapshotsRequest { - return new ListSnapshotsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSnapshotsRequest { - return new ListSnapshotsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListSnapshotsRequest { - return new ListSnapshotsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListSnapshotsRequest | PlainMessage | undefined, b: ListSnapshotsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListSnapshotsRequest, a, b); - } -} +/** + * Describes the message snapshots.ListSnapshotsRequest. + * Use `create(ListSnapshotsRequestSchema)` to create a new message. + */ +export const ListSnapshotsRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 3); /** * @generated from message snapshots.ListSnapshotResponse */ -export class ListSnapshotResponse extends Message { +export type ListSnapshotResponse = Message<"snapshots.ListSnapshotResponse"> & { /** * the list of all snapshots * * @generated from field: repeated snapshots.Snapshot snapshots = 1; */ - snapshots: Snapshot[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.ListSnapshotResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "snapshots", kind: "message", T: Snapshot, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListSnapshotResponse { - return new ListSnapshotResponse().fromBinary(bytes, options); - } + snapshots: Snapshot[]; +}; - static fromJson(jsonValue: JsonValue, options?: Partial): ListSnapshotResponse { - return new ListSnapshotResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListSnapshotResponse { - return new ListSnapshotResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListSnapshotResponse | PlainMessage | undefined, b: ListSnapshotResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListSnapshotResponse, a, b); - } -} +/** + * Describes the message snapshots.ListSnapshotResponse. + * Use `create(ListSnapshotResponseSchema)` to create a new message. + */ +export const ListSnapshotResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 4); /** * creates a new snapshot * * @generated from message snapshots.CreateSnapshotRequest */ -export class CreateSnapshotRequest extends Message { +export type CreateSnapshotRequest = Message<"snapshots.CreateSnapshotRequest"> & { /** * properties of the new snapshot * * @generated from field: snapshots.SnapshotProperties properties = 1; */ properties?: SnapshotProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.CreateSnapshotRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "properties", kind: "message", T: SnapshotProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSnapshotRequest { - return new CreateSnapshotRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSnapshotRequest { - return new CreateSnapshotRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateSnapshotRequest { - return new CreateSnapshotRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateSnapshotRequest | PlainMessage | undefined, b: CreateSnapshotRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateSnapshotRequest, a, b); - } -} +/** + * Describes the message snapshots.CreateSnapshotRequest. + * Use `create(CreateSnapshotRequestSchema)` to create a new message. + */ +export const CreateSnapshotRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 5); /** * @generated from message snapshots.CreateSnapshotResponse */ -export class CreateSnapshotResponse extends Message { +export type CreateSnapshotResponse = Message<"snapshots.CreateSnapshotResponse"> & { /** * the newly created snapshot * * @generated from field: snapshots.Snapshot snapshot = 1; */ snapshot?: Snapshot; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.CreateSnapshotResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "snapshot", kind: "message", T: Snapshot }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSnapshotResponse { - return new CreateSnapshotResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSnapshotResponse { - return new CreateSnapshotResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateSnapshotResponse { - return new CreateSnapshotResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateSnapshotResponse | PlainMessage | undefined, b: CreateSnapshotResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateSnapshotResponse, a, b); - } -} +/** + * Describes the message snapshots.CreateSnapshotResponse. + * Use `create(CreateSnapshotResponseSchema)` to create a new message. + */ +export const CreateSnapshotResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 6); /** * get the details of a specific snapshot * * @generated from message snapshots.GetSnapshotRequest */ -export class GetSnapshotRequest extends Message { +export type GetSnapshotRequest = Message<"snapshots.GetSnapshotRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.GetSnapshotRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + UUID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): GetSnapshotRequest { - return new GetSnapshotRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSnapshotRequest { - return new GetSnapshotRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSnapshotRequest { - return new GetSnapshotRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetSnapshotRequest | PlainMessage | undefined, b: GetSnapshotRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSnapshotRequest, a, b); - } -} +/** + * Describes the message snapshots.GetSnapshotRequest. + * Use `create(GetSnapshotRequestSchema)` to create a new message. + */ +export const GetSnapshotRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 7); /** * @generated from message snapshots.GetSnapshotResponse */ -export class GetSnapshotResponse extends Message { +export type GetSnapshotResponse = Message<"snapshots.GetSnapshotResponse"> & { /** * @generated from field: snapshots.Snapshot snapshot = 1; */ snapshot?: Snapshot; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.GetSnapshotResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "snapshot", kind: "message", T: Snapshot }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSnapshotResponse { - return new GetSnapshotResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSnapshotResponse { - return new GetSnapshotResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSnapshotResponse { - return new GetSnapshotResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetSnapshotResponse | PlainMessage | undefined, b: GetSnapshotResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSnapshotResponse, a, b); - } -} +/** + * Describes the message snapshots.GetSnapshotResponse. + * Use `create(GetSnapshotResponseSchema)` to create a new message. + */ +export const GetSnapshotResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 8); /** * updates the properties of an existing snapshot * * @generated from message snapshots.UpdateSnapshotRequest */ -export class UpdateSnapshotRequest extends Message { +export type UpdateSnapshotRequest = Message<"snapshots.UpdateSnapshotRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); + UUID: Uint8Array; /** * @generated from field: snapshots.SnapshotProperties properties = 2; */ properties?: SnapshotProperties; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.UpdateSnapshotRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "properties", kind: "message", T: SnapshotProperties }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSnapshotRequest { - return new UpdateSnapshotRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSnapshotRequest { - return new UpdateSnapshotRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateSnapshotRequest { - return new UpdateSnapshotRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateSnapshotRequest | PlainMessage | undefined, b: UpdateSnapshotRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateSnapshotRequest, a, b); - } -} +/** + * Describes the message snapshots.UpdateSnapshotRequest. + * Use `create(UpdateSnapshotRequestSchema)` to create a new message. + */ +export const UpdateSnapshotRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 9); /** * @generated from message snapshots.UpdateSnapshotResponse */ -export class UpdateSnapshotResponse extends Message { +export type UpdateSnapshotResponse = Message<"snapshots.UpdateSnapshotResponse"> & { /** * the updated version of the snapshot * * @generated from field: snapshots.Snapshot snapshot = 1; */ snapshot?: Snapshot; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.UpdateSnapshotResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "snapshot", kind: "message", T: Snapshot }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSnapshotResponse { - return new UpdateSnapshotResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSnapshotResponse { - return new UpdateSnapshotResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateSnapshotResponse { - return new UpdateSnapshotResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateSnapshotResponse | PlainMessage | undefined, b: UpdateSnapshotResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateSnapshotResponse, a, b); - } -} +/** + * Describes the message snapshots.UpdateSnapshotResponse. + * Use `create(UpdateSnapshotResponseSchema)` to create a new message. + */ +export const UpdateSnapshotResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 10); /** * deletes a given snapshot * * @generated from message snapshots.DeleteSnapshotRequest */ -export class DeleteSnapshotRequest extends Message { +export type DeleteSnapshotRequest = Message<"snapshots.DeleteSnapshotRequest"> & { /** * @generated from field: bytes UUID = 1; */ - UUID = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.DeleteSnapshotRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUID", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + UUID: Uint8Array; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSnapshotRequest { - return new DeleteSnapshotRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSnapshotRequest { - return new DeleteSnapshotRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteSnapshotRequest { - return new DeleteSnapshotRequest().fromJsonString(jsonString, options); - } - - static equals(a: DeleteSnapshotRequest | PlainMessage | undefined, b: DeleteSnapshotRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteSnapshotRequest, a, b); - } -} +/** + * Describes the message snapshots.DeleteSnapshotRequest. + * Use `create(DeleteSnapshotRequestSchema)` to create a new message. + */ +export const DeleteSnapshotRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 11); /** * @generated from message snapshots.DeleteSnapshotResponse */ -export class DeleteSnapshotResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.DeleteSnapshotResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSnapshotResponse { - return new DeleteSnapshotResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSnapshotResponse { - return new DeleteSnapshotResponse().fromJson(jsonValue, options); - } +export type DeleteSnapshotResponse = Message<"snapshots.DeleteSnapshotResponse"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): DeleteSnapshotResponse { - return new DeleteSnapshotResponse().fromJsonString(jsonString, options); - } - - static equals(a: DeleteSnapshotResponse | PlainMessage | undefined, b: DeleteSnapshotResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteSnapshotResponse, a, b); - } -} +/** + * Describes the message snapshots.DeleteSnapshotResponse. + * Use `create(DeleteSnapshotResponseSchema)` to create a new message. + */ +export const DeleteSnapshotResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 12); /** * get the initial data * * @generated from message snapshots.GetInitialDataRequest */ -export class GetInitialDataRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.GetInitialDataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); +export type GetInitialDataRequest = Message<"snapshots.GetInitialDataRequest"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): GetInitialDataRequest { - return new GetInitialDataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetInitialDataRequest { - return new GetInitialDataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetInitialDataRequest { - return new GetInitialDataRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetInitialDataRequest | PlainMessage | undefined, b: GetInitialDataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetInitialDataRequest, a, b); - } -} +/** + * Describes the message snapshots.GetInitialDataRequest. + * Use `create(GetInitialDataRequestSchema)` to create a new message. + */ +export const GetInitialDataRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 13); /** * @generated from message snapshots.GetInitialDataResponse */ -export class GetInitialDataResponse extends Message { +export type GetInitialDataResponse = Message<"snapshots.GetInitialDataResponse"> & { /** * @generated from field: snapshots.Snapshot blastRadiusSnapshot = 1; */ @@ -598,119 +328,111 @@ export class GetInitialDataResponse extends Message { * @generated from field: bookmarks.Bookmark changingItemsBookmark = 2; */ changingItemsBookmark?: Bookmark; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.GetInitialDataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "blastRadiusSnapshot", kind: "message", T: Snapshot }, - { no: 2, name: "changingItemsBookmark", kind: "message", T: Bookmark }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetInitialDataResponse { - return new GetInitialDataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetInitialDataResponse { - return new GetInitialDataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetInitialDataResponse { - return new GetInitialDataResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetInitialDataResponse | PlainMessage | undefined, b: GetInitialDataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetInitialDataResponse, a, b); - } -} +/** + * Describes the message snapshots.GetInitialDataResponse. + * Use `create(GetInitialDataResponseSchema)` to create a new message. + */ +export const GetInitialDataResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 14); /** * @generated from message snapshots.ListSnapshotsByGUNRequest */ -export class ListSnapshotsByGUNRequest extends Message { +export type ListSnapshotsByGUNRequest = Message<"snapshots.ListSnapshotsByGUNRequest"> & { /** * @generated from field: string globallyUniqueName = 1; */ - globallyUniqueName = ""; + globallyUniqueName: string; /** * @generated from field: PaginationRequest pagination = 2; */ pagination?: PaginationRequest; +}; - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.ListSnapshotsByGUNRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "globallyUniqueName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PaginationRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListSnapshotsByGUNRequest { - return new ListSnapshotsByGUNRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSnapshotsByGUNRequest { - return new ListSnapshotsByGUNRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListSnapshotsByGUNRequest { - return new ListSnapshotsByGUNRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListSnapshotsByGUNRequest | PlainMessage | undefined, b: ListSnapshotsByGUNRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListSnapshotsByGUNRequest, a, b); - } -} +/** + * Describes the message snapshots.ListSnapshotsByGUNRequest. + * Use `create(ListSnapshotsByGUNRequestSchema)` to create a new message. + */ +export const ListSnapshotsByGUNRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 15); /** * @generated from message snapshots.ListSnapshotsByGUNResponse */ -export class ListSnapshotsByGUNResponse extends Message { +export type ListSnapshotsByGUNResponse = Message<"snapshots.ListSnapshotsByGUNResponse"> & { /** * @generated from field: repeated bytes UUIDs = 1; */ - UUIDs: Uint8Array[] = []; + UUIDs: Uint8Array[]; /** * @generated from field: PaginationResponse pagination = 2; */ pagination?: PaginationResponse; +}; + +/** + * Describes the message snapshots.ListSnapshotsByGUNResponse. + * Use `create(ListSnapshotsByGUNResponseSchema)` to create a new message. + */ +export const ListSnapshotsByGUNResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_snapshots, 16); - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "snapshots.ListSnapshotsByGUNResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "UUIDs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PaginationResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListSnapshotsByGUNResponse { - return new ListSnapshotsByGUNResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSnapshotsByGUNResponse { - return new ListSnapshotsByGUNResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListSnapshotsByGUNResponse { - return new ListSnapshotsByGUNResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListSnapshotsByGUNResponse | PlainMessage | undefined, b: ListSnapshotsByGUNResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListSnapshotsByGUNResponse, a, b); - } -} +/** + * @generated from service snapshots.SnapshotsService + */ +export const SnapshotsService: GenService<{ + /** + * @generated from rpc snapshots.SnapshotsService.ListSnapshots + */ + listSnapshots: { + methodKind: "unary"; + input: typeof ListSnapshotsRequestSchema; + output: typeof ListSnapshotResponseSchema; + }, + /** + * @generated from rpc snapshots.SnapshotsService.CreateSnapshot + */ + createSnapshot: { + methodKind: "unary"; + input: typeof CreateSnapshotRequestSchema; + output: typeof CreateSnapshotResponseSchema; + }, + /** + * @generated from rpc snapshots.SnapshotsService.GetSnapshot + */ + getSnapshot: { + methodKind: "unary"; + input: typeof GetSnapshotRequestSchema; + output: typeof GetSnapshotResponseSchema; + }, + /** + * @generated from rpc snapshots.SnapshotsService.UpdateSnapshot + */ + updateSnapshot: { + methodKind: "unary"; + input: typeof UpdateSnapshotRequestSchema; + output: typeof UpdateSnapshotResponseSchema; + }, + /** + * @generated from rpc snapshots.SnapshotsService.DeleteSnapshot + */ + deleteSnapshot: { + methodKind: "unary"; + input: typeof DeleteSnapshotRequestSchema; + output: typeof DeleteSnapshotResponseSchema; + }, + /** + * @generated from rpc snapshots.SnapshotsService.ListSnapshotByGUN + */ + listSnapshotByGUN: { + methodKind: "unary"; + input: typeof ListSnapshotsByGUNRequestSchema; + output: typeof ListSnapshotsByGUNResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_snapshots, 0); diff --git a/src/__generated__/util_pb.ts b/src/__generated__/util_pb.ts index 0060888..adb38cc 100644 --- a/src/__generated__/util_pb.ts +++ b/src/__generated__/util_pb.ts @@ -1,62 +1,28 @@ -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" +// @generated by protoc-gen-es v2.2.3 with parameter "target=ts" // @generated from file util.proto (syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; +import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Message } from "@bufbuild/protobuf"; /** - * @generated from enum SortOrder + * Describes the file util.proto. */ -export enum SortOrder { - /** - * A-Z - * - * @generated from enum value: ALPHABETICAL_ASCENDING = 0; - */ - ALPHABETICAL_ASCENDING = 0, - - /** - * Z-A - * - * @generated from enum value: ALPHABETICAL_DESCENDING = 1; - */ - ALPHABETICAL_DESCENDING = 1, - - /** - * Oldest first - * - * @generated from enum value: DATE_ASCENDING = 2; - */ - DATE_ASCENDING = 2, - - /** - * Newest first - * - * @generated from enum value: DATE_DESCENDING = 3; - */ - DATE_DESCENDING = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(SortOrder) -proto3.util.setEnumType(SortOrder, "SortOrder", [ - { no: 0, name: "ALPHABETICAL_ASCENDING" }, - { no: 1, name: "ALPHABETICAL_DESCENDING" }, - { no: 2, name: "DATE_ASCENDING" }, - { no: 3, name: "DATE_DESCENDING" }, -]); +export const file_util: GenFile = /*@__PURE__*/ + fileDesc("Cgp1dGlsLnByb3RvIjMKEVBhZ2luYXRpb25SZXF1ZXN0EhAKCHBhZ2VTaXplGAEgASgFEgwKBHBhZ2UYAiABKAUiXAoSUGFnaW5hdGlvblJlc3BvbnNlEhAKCHBhZ2VTaXplGAEgASgFEhIKCnRvdGFsSXRlbXMYAiABKAUSDAoEcGFnZRgDIAEoBRISCgp0b3RhbFBhZ2VzGAQgASgFKm0KCVNvcnRPcmRlchIaChZBTFBIQUJFVElDQUxfQVNDRU5ESU5HEAASGwoXQUxQSEFCRVRJQ0FMX0RFU0NFTkRJTkcQARISCg5EQVRFX0FTQ0VORElORxACEhMKD0RBVEVfREVTQ0VORElORxADQiRaImdpdGh1Yi5jb20vb3Zlcm1pbmR0ZWNoL3NkcC1nbztzZHBiBnByb3RvMw"); /** * @generated from message PaginationRequest */ -export class PaginationRequest extends Message { +export type PaginationRequest = Message<"PaginationRequest"> & { /** * The number of items to return in a single page. The minimum is 10 and the * maximum is 100. * * @generated from field: int32 pageSize = 1; */ - pageSize = 0; + pageSize: number; /** * The page number to return. the first page is 1. If the page number is @@ -65,47 +31,26 @@ export class PaginationRequest extends Message { * * @generated from field: int32 page = 2; */ - page = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "PaginationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pageSize", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PaginationRequest { - return new PaginationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PaginationRequest { - return new PaginationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PaginationRequest { - return new PaginationRequest().fromJsonString(jsonString, options); - } - - static equals(a: PaginationRequest | PlainMessage | undefined, b: PaginationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PaginationRequest, a, b); - } -} + page: number; +}; + +/** + * Describes the message PaginationRequest. + * Use `create(PaginationRequestSchema)` to create a new message. + */ +export const PaginationRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_util, 0); /** * @generated from message PaginationResponse */ -export class PaginationResponse extends Message { +export type PaginationResponse = Message<"PaginationResponse"> & { /** * The number of items in the current page * * @generated from field: int32 pageSize = 1; */ - pageSize = 0; + pageSize: number; /** * The total number of items available. Expensive to calculate @@ -114,7 +59,7 @@ export class PaginationResponse extends Message { * * @generated from field: int32 totalItems = 2; */ - totalItems = 0; + totalItems: number; /** * The current page number, NB if the user provided a negative page number, @@ -124,7 +69,7 @@ export class PaginationResponse extends Message { * * @generated from field: int32 page = 3; */ - page = 0; + page: number; /** * The total number of pages available. based on the totalItems and pageSize. @@ -132,36 +77,52 @@ export class PaginationResponse extends Message { * * @generated from field: int32 totalPages = 4; */ - totalPages = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "PaginationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pageSize", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "totalItems", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "totalPages", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PaginationResponse { - return new PaginationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PaginationResponse { - return new PaginationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PaginationResponse { - return new PaginationResponse().fromJsonString(jsonString, options); - } - - static equals(a: PaginationResponse | PlainMessage | undefined, b: PaginationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PaginationResponse, a, b); - } + totalPages: number; +}; + +/** + * Describes the message PaginationResponse. + * Use `create(PaginationResponseSchema)` to create a new message. + */ +export const PaginationResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_util, 1); + +/** + * @generated from enum SortOrder + */ +export enum SortOrder { + /** + * A-Z + * + * @generated from enum value: ALPHABETICAL_ASCENDING = 0; + */ + ALPHABETICAL_ASCENDING = 0, + + /** + * Z-A + * + * @generated from enum value: ALPHABETICAL_DESCENDING = 1; + */ + ALPHABETICAL_DESCENDING = 1, + + /** + * Oldest first + * + * @generated from enum value: DATE_ASCENDING = 2; + */ + DATE_ASCENDING = 2, + + /** + * Newest first + * + * @generated from enum value: DATE_DESCENDING = 3; + */ + DATE_DESCENDING = 3, } +/** + * Describes the enum SortOrder. + */ +export const SortOrderSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_util, 0); + diff --git a/src/__tests__/gateway.test.ts b/src/__tests__/gateway.test.ts index 36d27bc..9d64dd2 100644 --- a/src/__tests__/gateway.test.ts +++ b/src/__tests__/gateway.test.ts @@ -21,15 +21,18 @@ import { } from '../events' import { GatewaySession } from '../gateway-session' import { - ChangeByReferenceSummary, + ChangeByReferenceSummarySchema, ChangesByReferenceToolFinish, - GatewayResponse, + GatewayRequestSchema, + GatewayRequestStatus_SummarySchema, + GatewayResponseSchema, QueryMethod, - StoreBookmark, - StoreSnapshot, + StoreBookmarkSchema, + StoreSnapshotSchema, } from '../protobuf' import * as data from './sampledata.helper' -import { Timestamp } from '@bufbuild/protobuf' +import { create, toBinary, toJsonString } from '@bufbuild/protobuf' +import { TimestampSchema } from '@bufbuild/protobuf/wkt' // create a WS instance const TestServerAddress = 'ws://localhost:31274' @@ -63,7 +66,7 @@ describe('GatewaySession', () => { gs.sendRequest(data.gatewayRequest.itemRequest) expect(await server.nextMessage).toEqual( - data.gatewayRequest.itemRequest.toBinary(), + toBinary(GatewayRequestSchema, data.gatewayRequest.itemRequest), ) }) }) @@ -82,7 +85,7 @@ describe('GatewaySession', () => { describe('Error', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'error', value: 'some error', @@ -99,13 +102,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('NewItem', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'newItem', value: data.item.dylan, @@ -122,13 +125,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('ChatResponse', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'chatResponse', value: { @@ -147,14 +150,14 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('ToolStart', () => { describe('Query', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'toolStart', value: { @@ -187,13 +190,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('Relationship', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'toolStart', value: { @@ -224,13 +227,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('ChangesByReference', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'toolStart', value: { @@ -263,7 +266,7 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) }) @@ -271,7 +274,7 @@ describe('GatewaySession', () => { describe('Query', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'toolFinish', value: { @@ -298,13 +301,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('Relationship', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'toolFinish', value: { @@ -331,13 +334,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('ChangesByReference', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'toolFinish', value: { @@ -345,11 +348,11 @@ describe('GatewaySession', () => { case: 'changesByReference', value: { changeSummaries: [ - new ChangeByReferenceSummary({ + create(ChangeByReferenceSummarySchema, { title: 'Some title', numAffectedItems: 123, owner: 'Some owner', - createdAt: new Timestamp({ + createdAt: create(TimestampSchema, { nanos: 100, seconds: BigInt(100_000_000), }), @@ -376,14 +379,14 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) }) describe('NewEdge', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'newEdge', value: data.edge.basic, @@ -401,13 +404,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('QueryError', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'queryError', value: data.error.NOSCOPE, @@ -427,13 +430,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('DeleteItem', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'deleteItem', value: data.reference, @@ -453,13 +456,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('DeleteEdge', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'deleteEdge', value: data.edge.basic, @@ -481,13 +484,13 @@ describe('GatewaySession', () => { { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('UpdateItem', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'updateItem', value: data.item.dylan, @@ -499,21 +502,19 @@ describe('GatewaySession', () => { UpdateItemEvent, (event) => { expect(event.detail.scope).toEqual(data.item.dylan.scope) - expect(event.detail.getType()).toEqual( - data.item.dylan.getType(), - ) + expect(event.detail.type).toEqual(data.item.dylan.type) resolve(undefined) }, { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('Status', () => { it('should call the callback', () => new Promise((resolve) => { - const response = new GatewayResponse({ + const response = create(GatewayResponseSchema, { responseType: { case: 'status', value: data.gatewayStatus.working, @@ -527,25 +528,34 @@ describe('GatewaySession', () => { expect(event.detail.postProcessingComplete).toEqual( data.gatewayStatus.working.postProcessingComplete, ) - expect(event.detail.summary?.toJsonString()).toEqual( - data.gatewayStatus.working.summary?.toJsonString(), - ) + if (event.detail.summary && data.gatewayStatus.working.summary) + expect( + toJsonString( + GatewayRequestStatus_SummarySchema, + event.detail.summary, + ), + ).toEqual( + toJsonString( + GatewayRequestStatus_SummarySchema, + data.gatewayStatus.working.summary, + ), + ) resolve(undefined) }, { once: true }, ) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) it('should update the status', () => new Promise((resolve) => { - const working = new GatewayResponse({ + const working = create(GatewayResponseSchema, { responseType: { case: 'status', value: data.gatewayStatus.working, }, }) - const doneResponse = new GatewayResponse({ + const doneResponse = create(GatewayResponseSchema, { responseType: { case: 'status', value: data.gatewayStatus.done, @@ -559,9 +569,19 @@ describe('GatewaySession', () => { expect(gs.status?.postProcessingComplete).toEqual( data.gatewayStatus.working.postProcessingComplete, ) - expect(gs.status?.summary?.toJsonString()).toEqual( - data.gatewayStatus.working.summary?.toJsonString(), - ) + if (gs.status?.summary && data.gatewayStatus.working.summary) { + expect( + toJsonString( + GatewayRequestStatus_SummarySchema, + gs.status?.summary, + ), + ).toEqual( + toJsonString( + GatewayRequestStatus_SummarySchema, + data.gatewayStatus.working.summary, + ), + ) + } // Add the second test gs.addEventListener( @@ -570,20 +590,32 @@ describe('GatewaySession', () => { expect(gs.status?.postProcessingComplete).toEqual( data.gatewayStatus.done.postProcessingComplete, ) - expect(gs.status?.summary?.toJsonString()).toEqual( - data.gatewayStatus.done.summary?.toJsonString(), - ) + if (gs.status?.summary && data.gatewayStatus.done.summary) { + expect( + toJsonString( + GatewayRequestStatus_SummarySchema, + gs.status?.summary, + ), + ).toEqual( + toJsonString( + GatewayRequestStatus_SummarySchema, + data.gatewayStatus.done.summary, + ), + ) + } resolve(undefined) }, { once: true }, ) - server.send(doneResponse.toBinary().buffer) + server.send( + toBinary(GatewayResponseSchema, doneResponse).buffer, + ) }, { once: true }, ) - server.send(working.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, working).buffer) })) }) }) @@ -606,8 +638,8 @@ describe('GatewaySession', () => { description: 'new description', msgID: parse(v4()), } - const bookmark = new StoreBookmark(data) - const response = new GatewayResponse({ + const bookmark = create(StoreBookmarkSchema, data) + const response = create(GatewayResponseSchema, { responseType: { case: 'bookmarkStoreResult', value: { @@ -624,7 +656,7 @@ describe('GatewaySession', () => { resolve(undefined) }) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) describe('storeSnapshot', () => { @@ -635,8 +667,8 @@ describe('GatewaySession', () => { description: 'new description', msgID: parse(v4()), } - const snapshot = new StoreSnapshot(data) - const response = new GatewayResponse({ + const snapshot = create(StoreSnapshotSchema, data) + const response = create(GatewayResponseSchema, { responseType: { case: 'snapshotStoreResult', value: { @@ -653,7 +685,7 @@ describe('GatewaySession', () => { resolve(undefined) }) - server.send(response.toBinary().buffer) + server.send(toBinary(GatewayResponseSchema, response).buffer) })) }) }) diff --git a/src/__tests__/sampledata.helper.ts b/src/__tests__/sampledata.helper.ts index 1517666..d44c7f4 100644 --- a/src/__tests__/sampledata.helper.ts +++ b/src/__tests__/sampledata.helper.ts @@ -1,38 +1,37 @@ +import { create } from '@bufbuild/protobuf' import { parse } from 'uuid' -import { newDuration, newItemAttributes } from '../util' -import { - CancelQuery, - Edge, - GatewayRequest, - Item, - Query, - QueryError, - Reference, - QueryMethod, - ResponderState, - Expand, - UndoQuery, - QueryError_ErrorType, -} from '../protobuf' -import { Response } from '../__generated__/responses_pb' import { - GatewayRequestStatus, - GatewayRequestStatus_Summary, + GatewayRequestSchema, + GatewayRequestStatus_SummarySchema, + GatewayRequestStatusSchema, } from '../__generated__/gateway_pb' -import { LinkedItem } from '../__generated__/items_pb' +import { + CancelQuerySchema, + EdgeSchema, + ExpandSchema, + ItemSchema, + LinkedItemSchema, + QueryErrorSchema, + QuerySchema, + ReferenceSchema, + UndoQuerySchema, +} from '../__generated__/items_pb' +import { ResponseSchema } from '../__generated__/responses_pb' +import { QueryError_ErrorType, QueryMethod, ResponderState } from '../protobuf' +import { newDuration, newItemAttributes } from '../util' export const error = { - NOTFOUND: new QueryError({ + NOTFOUND: create(QueryErrorSchema, { errorString: 'Could not be found', errorType: QueryError_ErrorType.NOTFOUND, scope: 'test.scope', }), - NOSCOPE: new QueryError({ + NOSCOPE: create(QueryErrorSchema, { errorString: 'Scope does not exist', errorType: QueryError_ErrorType.NOSCOPE, scope: 'test.scope', }), - OTHER: new QueryError({ + OTHER: create(QueryErrorSchema, { errorString: 'Unknown error', errorType: QueryError_ErrorType.OTHER, scope: 'test.scope', @@ -40,28 +39,28 @@ export const error = { } export const response = { - WORKING: new Response({ + WORKING: create(ResponseSchema, { responder: 'test.scope', state: ResponderState.WORKING, nextUpdateIn: newDuration(100), }), - COMPLETE: new Response({ + COMPLETE: create(ResponseSchema, { responder: 'test.scope', state: ResponderState.COMPLETE, nextUpdateIn: newDuration(100), }), - CANCELLED: new Response({ + CANCELLED: create(ResponseSchema, { responder: 'test.scope', state: ResponderState.CANCELLED, }), - ERROR: new Response({ + ERROR: create(ResponseSchema, { responder: 'test.scope', state: ResponderState.ERROR, }), } export const request = { - LIST: new Query({ + LIST: create(QuerySchema, { type: 'package', method: QueryMethod.LIST, recursionBehaviour: { linkDepth: 90 }, @@ -72,7 +71,7 @@ export const request = { } export const item = { - process: new Item({ + process: create(ItemSchema, { type: 'process', scope: 'myPod', uniqueAttribute: 'pid', @@ -82,7 +81,7 @@ export const item = { cpuPercent: 99.99, }), }), - dylan: new Item({ + dylan: create(ItemSchema, { scope: 'global', uniqueAttribute: 'name', type: 'person', @@ -91,8 +90,8 @@ export const item = { age: 27, }), linkedItems: [ - new LinkedItem({ - item: new Reference({ + create(LinkedItemSchema, { + item: create(ReferenceSchema, { scope: 'global', type: 'person', uniqueAttributeValue: 'katie', @@ -100,7 +99,7 @@ export const item = { }), ], }), - katie: new Item({ + katie: create(ItemSchema, { scope: 'global', uniqueAttribute: 'name', type: 'person', @@ -113,30 +112,30 @@ export const item = { export const items = [item.process, item.dylan, item.katie] -export const cancelQuery = new CancelQuery({ +export const cancelQuery = create(CancelQuerySchema, { UUID: parse('a520d67f-0b2a-4852-87d2-d02bbc74ad89'), }) -export const undoQuery = new UndoQuery({ +export const undoQuery = create(UndoQuerySchema, { UUID: parse('a520d67f-0b2a-4852-87d2-d02bbc74ad89'), }) -export const reference = new Reference({ +export const reference = create(ReferenceSchema, { scope: 'global', type: 'ip', uniqueAttributeValue: '1.1.1.1', }) -export const expand = new Expand({ +export const expand = create(ExpandSchema, { item: reference, linkDepth: 1, }) export const gatewayRequest = { - itemRequest: new GatewayRequest({ + itemRequest: create(GatewayRequestSchema, { requestType: { case: 'query', - value: new Query({ + value: create(QuerySchema, { scope: 'test', recursionBehaviour: { linkDepth: 10 }, method: QueryMethod.GET, @@ -146,10 +145,10 @@ export const gatewayRequest = { }), }, }), - cancel: new GatewayRequest({ + cancel: create(GatewayRequestSchema, { requestType: { case: 'cancelQuery', - value: new CancelQuery({ + value: create(CancelQuerySchema, { UUID: parse('a520d67f-0b2a-4852-87d2-d02bbc74ad89'), }), }, @@ -157,14 +156,14 @@ export const gatewayRequest = { } export const gatewayStatus = { - working: new GatewayRequestStatus({ + working: create(GatewayRequestStatusSchema, { responderStates: { 'responder.cancel': ResponderState.CANCELLED, 'responder.complete': ResponderState.COMPLETE, 'responder.error': ResponderState.ERROR, 'responder.working': ResponderState.WORKING, }, - summary: new GatewayRequestStatus_Summary({ + summary: create(GatewayRequestStatus_SummarySchema, { cancelled: 1, complete: 1, error: 1, @@ -174,14 +173,14 @@ export const gatewayStatus = { }), postProcessingComplete: false, }), - done: new GatewayRequestStatus({ + done: create(GatewayRequestStatusSchema, { responderStates: { 'responder.cancel': ResponderState.CANCELLED, 'responder.complete': ResponderState.COMPLETE, 'responder.error': ResponderState.ERROR, 'responder.working': ResponderState.COMPLETE, }, - summary: new GatewayRequestStatus_Summary({ + summary: create(GatewayRequestStatus_SummarySchema, { cancelled: 1, complete: 2, error: 1, @@ -194,13 +193,13 @@ export const gatewayStatus = { } export const edge = { - basic: new Edge({ - from: new Reference({ + basic: create(EdgeSchema, { + from: create(ReferenceSchema, { scope: 'test', type: 'user', uniqueAttributeValue: 'Dylan', }), - to: new Reference({ + to: create(ReferenceSchema, { scope: 'test', type: 'dog', uniqueAttributeValue: 'Manny', diff --git a/src/__tests__/util.test.ts b/src/__tests__/util.test.ts index ab59e80..086ba22 100644 --- a/src/__tests__/util.test.ts +++ b/src/__tests__/util.test.ts @@ -7,7 +7,9 @@ import { getGloballyUniqueName, toReference, } from '../util' -import { Item } from '../protobuf' +import { ItemSchema } from '../protobuf' +import { create } from '@bufbuild/protobuf' +import { timestampDate } from '@bufbuild/protobuf/wkt' describe('Util namespace', () => { describe('#newTimestamp', () => { @@ -15,7 +17,7 @@ describe('Util namespace', () => { const now = new Date() const ts = newTimestamp(now) - expect(now.toISOString()).toEqual(ts.toDate().toISOString()) + expect(now.toISOString()).toEqual(timestampDate(ts).toISOString()) }) }) @@ -30,7 +32,7 @@ describe('Util namespace', () => { describe('#newReference', () => { it('returns a fully populated reference', () => { - const item = new Item({ + const item = create(ItemSchema, { type: 'person', uniqueAttribute: 'name', attributes: newItemAttributes({ @@ -61,7 +63,7 @@ describe('Util namespace', () => { describe('#getUniqueAttributeValue', () => { it('returns the correct value', () => { - const item = new Item({ + const item = create(ItemSchema, { type: 'person', uniqueAttribute: 'name', attributes: newItemAttributes({ @@ -77,7 +79,7 @@ describe('Util namespace', () => { describe('#getGloballyUniqueName', () => { it('returns the correct value', () => { - const item = new Item({ + const item = create(ItemSchema, { type: 'person', uniqueAttribute: 'name', scope: 'scope', diff --git a/src/gateway-session.ts b/src/gateway-session.ts index 4d35ec3..68003c7 100644 --- a/src/gateway-session.ts +++ b/src/gateway-session.ts @@ -23,13 +23,10 @@ import { Edge, GatewayRequest, GatewayRequestStatus, - GatewayResponse, Item, QueryStatus, QueryError, Reference, - UndoQuery, - UndoExpand, BookmarkStoreResult, BookmarkLoadResult, SnapshotStoreResult, @@ -39,7 +36,12 @@ import { ChatResponse, ToolStart, ToolFinish, + GatewayRequestSchema, + UndoQuerySchema, + UndoExpandSchema, + GatewayResponseSchema, } from './protobuf' +import { create, fromBinary, toBinary } from '@bufbuild/protobuf' export interface CustomEventListener { (evt: CustomEvent): void @@ -181,7 +183,8 @@ export class GatewaySession extends EventTarget { // Loop over the data using the index for (let i = 0; i < data.length; i++) { // Process the message - this._processMessage(data[i].msg) + // eslint-disable-next-line unicorn/prefer-spread + this._processMessage(data[i].msg.slice().buffer) // If we are not at the end of the array, calculate the time to wait if (i < data.length - 1) { @@ -204,7 +207,7 @@ export class GatewaySession extends EventTarget { */ _processMessage(buffer: ArrayBuffer) { const binary = new Uint8Array(buffer) - const response = GatewayResponse.fromBinary(binary) + const response = fromBinary(GatewayResponseSchema, binary) switch (response.responseType.case) { case 'error': { @@ -582,7 +585,7 @@ export class GatewaySession extends EventTarget { * @param request The request to send */ sendRequest(request: GatewayRequest) { - const binary = request.toBinary() + const binary = toBinary(GatewayRequestSchema, request) this.socket.send(binary) } @@ -594,32 +597,32 @@ export class GatewaySession extends EventTarget { switch (request.requestType.case) { case 'query': { { - const undoReq = new GatewayRequest({ + const undoReq = create(GatewayRequestSchema, { requestType: { case: 'undoQuery', - value: new UndoQuery({ + value: create(UndoQuerySchema, { UUID: request.requestType.value.UUID, }), }, }) - const binary = undoReq.toBinary() + const binary = toBinary(GatewayRequestSchema, undoReq) this.socket.send(binary) } break } case 'expand': { { - const undoReq = new GatewayRequest({ + const undoReq = create(GatewayRequestSchema, { requestType: { case: 'undoExpand', - value: new UndoExpand({ + value: create(UndoExpandSchema, { UUID: request.requestType.value.UUID, }), }, }) - const binary = undoReq.toBinary() + const binary = toBinary(GatewayRequestSchema, undoReq) this.socket.send(binary) } break @@ -637,7 +640,7 @@ export class GatewaySession extends EventTarget { bookmark.msgID = parse(v4()) } - const req = new GatewayRequest({ + const req = create(GatewayRequestSchema, { requestType: { case: 'storeBookmark', value: bookmark, @@ -673,7 +676,7 @@ export class GatewaySession extends EventTarget { snapshot.msgID = parse(v4()) } - const req = new GatewayRequest({ + const req = create(GatewayRequestSchema, { requestType: { case: 'storeSnapshot', value: snapshot, diff --git a/src/index.ts b/src/index.ts index 0fb49ea..a73b034 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,5 +3,4 @@ export * from './request-progress' export * from './responder' export * from './util' export * from './protobuf' -export * from './services' export * from './connect' diff --git a/src/protobuf.ts b/src/protobuf.ts index 76e0d05..b877497 100644 --- a/src/protobuf.ts +++ b/src/protobuf.ts @@ -12,4 +12,3 @@ export * from './__generated__/revlink_pb' export * from './__generated__/snapshots_pb' export * from './__generated__/config_pb' export * from './__generated__/util_pb' -export type { PartialMessage } from '@bufbuild/protobuf' diff --git a/src/services.ts b/src/services.ts deleted file mode 100644 index d549a5d..0000000 --- a/src/services.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Services -export * from './__generated__/account_connect' -export * from './__generated__/apikeys_connect' -export * from './__generated__/auth0support_connect' -export * from './__generated__/bookmarks_connect' -export * from './__generated__/changes_connect' -export * from './__generated__/invites_connect' -export * from './__generated__/snapshots_connect' -export * from './__generated__/config_connect' diff --git a/src/util.ts b/src/util.ts index bb21c97..56b0aa5 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,5 +1,17 @@ -import { Duration, JsonValue, Struct, Timestamp } from '@bufbuild/protobuf' -import { Item, ItemAttributes, Reference } from './protobuf' +import { create, JsonValue } from '@bufbuild/protobuf' +import { + Item, + ItemAttributes, + ItemAttributesSchema, + Reference, + ReferenceSchema, +} from './protobuf' +import { + Duration, + DurationSchema, + Timestamp, + TimestampSchema, +} from '@bufbuild/protobuf/wkt' /** * Creates a new ItemAttributes object from any javascript object that has @@ -10,9 +22,8 @@ import { Item, ItemAttributes, Reference } from './protobuf' export function newItemAttributes(value: { [key: string]: JsonValue }): ItemAttributes { - const attributes = new ItemAttributes() - attributes.attrStruct = new Struct() - attributes.attrStruct.fromJson(value) + const attributes = create(ItemAttributesSchema) + attributes.attrStruct = value return attributes } @@ -23,7 +34,7 @@ export function newItemAttributes(value: { * @returns A reference to that item */ export function toReference(item: Item): Reference { - const reference = new Reference() + const reference = create(ReferenceSchema) reference.scope = item.scope reference.type = item.type reference.uniqueAttributeValue = getUniqueAttributeValue(item) @@ -37,7 +48,7 @@ export function toReference(item: Item): Reference { * @returns A timestamp in protobuf format */ export function newTimestamp(date: Date): Timestamp { - const t = new Timestamp() + const t = create(TimestampSchema) t.seconds = BigInt(Math.floor(date.getTime() / 1000)) t.nanos = date.getMilliseconds() * 1_000_000 return t @@ -49,10 +60,9 @@ export function newTimestamp(date: Date): Timestamp { * @returns A duration in protobuf format */ export function newDuration(ms: number): Duration { - const d = new Duration({ - nanos: (ms % 1000) * 1e6, - seconds: BigInt(Math.floor(ms / 1000)), - }) + const d = create(DurationSchema) + d.nanos = (ms % 1000) * 1e6 + d.seconds = BigInt(Math.floor(ms / 1000)) return d } @@ -65,7 +75,10 @@ export function newDuration(ms: number): Duration { */ export function newDeadline(ms: number): Timestamp { const deadline = new Date(Date.now() + ms) - return Timestamp.fromDate(deadline) + const t = create(TimestampSchema) + t.seconds = BigInt(Math.floor(deadline.getTime() / 1000)) + t.nanos = deadline.getMilliseconds() * 1_000_000 + return t } /** @@ -78,13 +91,12 @@ export function newDeadline(ms: number): Timestamp { export function getAttributeValue( attributes: ItemAttributes, name: string, -): T | undefined { - const j = attributes.attrStruct?.toJson() +): JsonValue | undefined { + const j = attributes.attrStruct if (!j) { return undefined } - // @ts-expect-error // come back and type this properly. return j[name] }