@structured-id/proto 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/generated/google/protobuf/descriptor.d.ts +61 -0
- package/dist/generated/google/protobuf/descriptor.js +72 -1
- package/dist/generated/google/protobuf/descriptor.js.map +1 -1
- package/dist/generated/google/protobuf/struct.d.ts +3 -3
- package/dist/generated/google/protobuf/struct.js +3 -3
- package/dist/generated/google/protobuf/struct.js.map +1 -1
- package/dist/generated/sid/v1/account/account.client.d.ts +24 -32
- package/dist/generated/sid/v1/account/account.client.js +12 -16
- package/dist/generated/sid/v1/account/account.client.js.map +1 -1
- package/dist/generated/sid/v1/account/account.js +18 -18
- package/dist/generated/sid/v1/account/account.js.map +1 -1
- package/dist/generated/sid/v1/admin/admin.js +5 -5
- package/dist/generated/sid/v1/admin/admin.js.map +1 -1
- package/dist/generated/sid/v1/admin/admin_roles.js +5 -5
- package/dist/generated/sid/v1/admin/admin_roles.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.client.d.ts +0 -2
- package/dist/generated/sid/v1/admin/branding.client.js +0 -1
- package/dist/generated/sid/v1/admin/branding.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.js +4 -4
- package/dist/generated/sid/v1/admin/branding.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.js +4 -4
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/events.js +1 -1
- package/dist/generated/sid/v1/admin/events.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.client.d.ts +8 -4
- package/dist/generated/sid/v1/admin/flow.client.js +4 -2
- package/dist/generated/sid/v1/admin/flow.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.js +4 -4
- package/dist/generated/sid/v1/admin/flow.js.map +1 -1
- package/dist/generated/sid/v1/admin/keys.js +3 -3
- package/dist/generated/sid/v1/admin/keys.js.map +1 -1
- package/dist/generated/sid/v1/admin/login_experience.js +3 -3
- package/dist/generated/sid/v1/admin/login_experience.js.map +1 -1
- package/dist/generated/sid/v1/admin/migration.js +3 -3
- package/dist/generated/sid/v1/admin/migration.js.map +1 -1
- package/dist/generated/sid/v1/admin/notifications.js +3 -3
- package/dist/generated/sid/v1/admin/notifications.js.map +1 -1
- package/dist/generated/sid/v1/admin/operations.js +5 -5
- package/dist/generated/sid/v1/admin/operations.js.map +1 -1
- package/dist/generated/sid/v1/admin/organizations.js +1 -1
- package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
- package/dist/generated/sid/v1/admin/provisioning.client.d.ts +16 -16
- package/dist/generated/sid/v1/admin/provisioning.client.js +8 -8
- package/dist/generated/sid/v1/admin/provisioning.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/provisioning.js +6 -6
- package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
- package/dist/generated/sid/v1/admin/scopes.js +7 -7
- package/dist/generated/sid/v1/admin/scopes.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.client.d.ts +10 -4
- package/dist/generated/sid/v1/admin/security.client.js +5 -2
- package/dist/generated/sid/v1/admin/security.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.js +9 -9
- package/dist/generated/sid/v1/admin/security.js.map +1 -1
- package/dist/generated/sid/v1/admin/sessions.js +3 -3
- package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
- package/dist/generated/sid/v1/admin/settings.js +11 -11
- package/dist/generated/sid/v1/admin/settings.js.map +1 -1
- package/dist/generated/sid/v1/admin/user_profile.js +1 -1
- package/dist/generated/sid/v1/admin/user_profile.js.map +1 -1
- package/dist/generated/sid/v1/admin/webhooks.js +9 -9
- package/dist/generated/sid/v1/admin/webhooks.js.map +1 -1
- package/dist/generated/sid/v1/attestation/attestation.client.d.ts +4 -2
- package/dist/generated/sid/v1/attestation/attestation.client.js +2 -1
- package/dist/generated/sid/v1/attestation/attestation.client.js.map +1 -1
- package/dist/generated/sid/v1/attestation/attestation.js +3 -3
- package/dist/generated/sid/v1/attestation/attestation.js.map +1 -1
- package/dist/generated/sid/v1/authn/application_session.js +4 -4
- package/dist/generated/sid/v1/authn/application_session.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.client.d.ts +16 -4
- package/dist/generated/sid/v1/authn/auth.client.js +8 -2
- package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +24 -0
- package/dist/generated/sid/v1/authn/auth.js +98 -50
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/flows.js +16 -16
- package/dist/generated/sid/v1/authn/flows.js.map +1 -1
- package/dist/generated/sid/v1/authn/issuer.client.d.ts +44 -0
- package/dist/generated/sid/v1/authn/issuer.client.js +24 -0
- package/dist/generated/sid/v1/authn/issuer.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/issuer.d.ts +40 -0
- package/dist/generated/sid/v1/authn/issuer.js +78 -14
- package/dist/generated/sid/v1/authn/issuer.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.js +2 -2
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/authn/sender_proof.d.ts +114 -0
- package/dist/generated/sid/v1/authn/sender_proof.js +132 -0
- package/dist/generated/sid/v1/authn/sender_proof.js.map +1 -0
- package/dist/generated/sid/v1/authn/system_integration.js +1 -1
- package/dist/generated/sid/v1/authn/system_integration.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.client.d.ts +14 -2
- package/dist/generated/sid/v1/authz/authz.client.js +7 -1
- package/dist/generated/sid/v1/authz/authz.client.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +149 -97
- package/dist/generated/sid/v1/authz/authz.js +224 -158
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/authz/forward_auth.js +1 -1
- package/dist/generated/sid/v1/authz/forward_auth.js.map +1 -1
- package/dist/generated/sid/v1/authz/governance.js +3 -3
- package/dist/generated/sid/v1/authz/governance.js.map +1 -1
- package/dist/generated/sid/v1/common/errors.d.ts +7 -0
- package/dist/generated/sid/v1/common/errors.js +7 -0
- package/dist/generated/sid/v1/common/errors.js.map +1 -1
- package/dist/generated/sid/v1/common/operation.client.d.ts +47 -0
- package/dist/generated/sid/v1/common/operation.client.js +30 -0
- package/dist/generated/sid/v1/common/operation.client.js.map +1 -0
- package/dist/generated/sid/v1/common/operation.d.ts +126 -0
- package/dist/generated/sid/v1/common/operation.js +179 -0
- package/dist/generated/sid/v1/common/operation.js.map +1 -0
- package/dist/generated/sid/v1/federation/upstream.js +5 -5
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.js +19 -19
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.client.d.ts +6 -2
- package/dist/generated/sid/v1/machine/machine_user.client.js +3 -1
- package/dist/generated/sid/v1/machine/machine_user.client.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.js +10 -10
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/dist/generated/sid/v1/machine/pat.client.d.ts +4 -2
- package/dist/generated/sid/v1/machine/pat.client.js +2 -1
- package/dist/generated/sid/v1/machine/pat.client.js.map +1 -1
- package/dist/generated/sid/v1/machine/pat.js +4 -4
- package/dist/generated/sid/v1/machine/pat.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.client.d.ts +22 -12
- package/dist/generated/sid/v1/projects/projects.client.js +11 -6
- package/dist/generated/sid/v1/projects/projects.client.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.js +19 -19
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/dist/generated/sid/v1/scim/scim.js +14 -14
- package/dist/generated/sid/v1/scim/scim.js.map +1 -1
- package/dist/generated/sid/v1/test/test.js +8 -8
- package/dist/generated/sid/v1/test/test.js.map +1 -1
- package/dist/generated/sid/v1/ui/public_settings.d.ts +9 -0
- package/dist/generated/sid/v1/ui/public_settings.js +9 -1
- package/dist/generated/sid/v1/ui/public_settings.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/errors.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAkCnD;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,WAyiBX;AAziBD,WAAY,WAAW;IACnB;;OAEG;IACH,qFAA4B,CAAA;IAC5B;;;;OAIG;IACH,uEAAqB,CAAA;IACrB;;;;OAIG;IACH,+EAAyB,CAAA;IACzB;;;;OAIG;IACH,uEAAqB,CAAA;IACrB;;;;OAIG;IACH,6EAAwB,CAAA;IACxB;;;;OAIG;IACH,iEAAkB,CAAA;IAClB;;;;OAIG;IACH,uEAAqB,CAAA;IACrB;;;;;OAKG;IACH,+EAAyB,CAAA;IACzB;;;;OAIG;IACH,yEAAsB,CAAA;IACtB;;;;;;OAMG;IACH,yGAAsC,CAAA;IACtC;;;;OAIG;IACH,kGAAmC,CAAA;IACnC;;;;OAIG;IACH,4FAAgC,CAAA;IAChC;;;;OAIG;IACH,kFAA2B,CAAA;IAC3B;;;;OAIG;IACH,wEAAsB,CAAA;IACtB;;;;OAIG;IACH,oEAAoB,CAAA;IACpB;;;;OAIG;IACH,oEAAoB,CAAA;IACpB;;;;;OAKG;IACH,sEAAqB,CAAA;IACrB;;;;;OAKG;IACH,gFAA0B,CAAA;IAC1B;;;;OAIG;IACH,gEAAkB,CAAA;IAClB;;;;OAIG;IACH,gEAAkB,CAAA;IAClB;;;;OAIG;IAC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heck\n// @generated from protobuf file \"sid/v1/common/errors.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// StructuredID gRPC Error Model.\n//\n// Machine-readable error reason codes for programmatic handling.\n// Used with google.rpc.ErrorInfo as status detail.\n//\n// Domain: \"structured.id\", the same for every installation whatever host\n// serves it. A reason is stable within its domain (AIP-193); reasons defined\n// elsewhere carry their own domain.\n//\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * The challenge of a CAPTCHA_REQUIRED refusal, packed as an additional status\n * detail beside ErrorInfo: no canonical google.rpc detail carries it.\n *\n * @generated from protobuf message sid.v1.common.CaptchaChallenge\n */\nexport interface CaptchaChallenge {\n /**\n * Server-issued identifier of this challenge; the client sends it back with\n * the solution. Valid only for the sign-in it was issued for.\n *\n * @generated from protobuf field: string challenge_id = 1\n */\n challengeId: string;\n /**\n * Which solver the client runs.\n *\n * @generated from protobuf field: sid.v1.common.CaptchaKind kind = 2\n */\n kind: CaptchaKind;\n /**\n * Public site key of a third-party widget; empty for the SID proof of work.\n *\n * @generated from protobuf field: string site_key = 3\n */\n siteKey: string;\n /**\n * Required leading zero bits of the SID proof of work; 0 for a widget.\n *\n * @generated from protobuf field: uint32 difficulty = 4\n */\n difficulty: number;\n}\n/**\n * Machine-readable error reason codes.\n *\n * Each code maps to a specific gRPC status code (see comments).\n * Clients switch on `reason` field of google.rpc.ErrorInfo for\n * programmatic error handling.\n *\n * @generated from protobuf enum sid.v1.common.ErrorReason\n */\nexport enum ErrorReason {\n /**\n * @generated from protobuf enum value: ERROR_REASON_UNSPECIFIED = 0;\n */\n ERROR_REASON_UNSPECIFIED = 0,\n /**\n * Profile does not exist.\n *\n * @generated from protobuf enum value: PROFILE_NOT_FOUND = 1;\n */\n PROFILE_NOT_FOUND = 1,\n /**\n * OAuth2 application/client not found.\n *\n * @generated from protobuf enum value: APPLICATION_NOT_FOUND = 2;\n */\n APPLICATION_NOT_FOUND = 2,\n /**\n * Session not found or expired.\n *\n * @generated from protobuf enum value: SESSION_NOT_FOUND = 3;\n */\n SESSION_NOT_FOUND = 3,\n /**\n * Credential not found.\n *\n * @generated from protobuf enum value: CREDENTIAL_NOT_FOUND = 4;\n */\n CREDENTIAL_NOT_FOUND = 4,\n /**\n * Role not found.\n *\n * @generated from protobuf enum value: ROLE_NOT_FOUND = 5;\n */\n ROLE_NOT_FOUND = 5,\n /**\n * Project not found.\n *\n * @generated from protobuf enum value: PROJECT_NOT_FOUND = 6;\n */\n PROJECT_NOT_FOUND = 6,\n /**\n * No OIDC issuer has this handle. The request is refused before any\n * authentication or key lookup; it never falls back to another issuer.\n *\n * @generated from protobuf enum value: OIDC_ISSUER_NOT_FOUND = 7;\n */\n OIDC_ISSUER_NOT_FOUND = 7,\n /**\n * Protected resource not found.\n *\n * @generated from protobuf enum value: RESOURCE_NOT_FOUND = 8;\n */\n RESOURCE_NOT_FOUND = 8,\n /**\n * The forward-auth route configuration has no protected application of\n * this name; the reverse proxy's address names an application it does not\n * protect.\n *\n * @generated from protobuf enum value: FORWARD_AUTH_APPLICATION_NOT_FOUND = 9;\n */\n FORWARD_AUTH_APPLICATION_NOT_FOUND = 9,\n /**\n * No initial access token has this identifier.\n *\n * @generated from protobuf enum value: INITIAL_ACCESS_TOKEN_NOT_FOUND = 13;\n */\n INITIAL_ACCESS_TOKEN_NOT_FOUND = 13,\n /**\n * No upstream identity provider has this identifier.\n *\n * @generated from protobuf enum value: UPSTREAM_PROVIDER_NOT_FOUND = 14;\n */\n UPSTREAM_PROVIDER_NOT_FOUND = 14,\n /**\n * No machine user (service account, bot, agent) has this identifier.\n *\n * @generated from protobuf enum value: MACHINE_USER_NOT_FOUND = 15;\n */\n MACHINE_USER_NOT_FOUND = 15,\n /**\n * The caller has no consent record for this site (OAuth2 client).\n *\n * @generated from protobuf enum value: CONSENT_NOT_FOUND = 16;\n */\n CONSENT_NOT_FOUND = 16,\n /**\n * The caller's profile has no phone with this identifier.\n *\n * @generated from protobuf enum value: PHONE_NOT_FOUND = 17;\n */\n PHONE_NOT_FOUND = 17,\n /**\n * The caller's profile has no email with this identifier.\n *\n * @generated from protobuf enum value: EMAIL_NOT_FOUND = 18;\n */\n EMAIL_NOT_FOUND = 18,\n /**\n * The caller has no device with this identifier (another profile's device\n * is not found either).\n *\n * @generated from protobuf enum value: DEVICE_NOT_FOUND = 19;\n */\n DEVICE_NOT_FOUND = 19,\n /**\n * Invalid credentials (password, WebAuthn assertion, etc.).\n * Security: status.message MUST be generic (\"authentication failed\").\n *\n * @generated from protobuf enum value: AUTHENTICATION_FAILED = 10;\n */\n AUTHENTICATION_FAILED = 10,\n /**\n * Access token expired.\n *\n * @generated from protobuf enum value: TOKEN_EXPIRED = 11;\n */\n TOKEN_EXPIRED = 11,\n /**\n * Token malformed, invalid signature, or wrong issuer.\n *\n * @generated from protobuf enum value: TOKEN_INVALID = 12;\n */\n TOKEN_INVALID = 12,\n /**\n * Caller lacks required permissions (the authorization decision denied it).\n *\n * @generated from protobuf enum value: INSUFFICIENT_PERMISSIONS = 20;\n */\n INSUFFICIENT_PERMISSIONS = 20,\n /**\n * OAuth2 scope not granted for this operation.\n *\n * @generated from protobuf enum value: SCOPE_NOT_GRANTED = 21;\n */\n SCOPE_NOT_GRANTED = 21,\n /**\n * A sign-in policy refuses this sign-in outright (a blocked address or\n * country, a method the policy never accepts). The refusal names no rule;\n * retrying the same sign-in does not help.\n *\n * @generated from protobuf enum value: SIGN_IN_REFUSED = 22;\n */\n SIGN_IN_REFUSED = 22,\n /**\n * Self-registration is restricted on this installation. ErrorInfo metadata\n * `requirement` names what is missing: `instance_claim` (the first\n * administrator's claim token), `admin_only` (only administrators create\n * accounts), `invite` (an invite code), `email` (an email address) or\n * `email_domain` (an address in an allowed domain).\n *\n * @generated from protobuf enum value: REGISTRATION_RESTRICTED = 23;\n */\n REGISTRATION_RESTRICTED = 23,\n /**\n * A state-changing browser call did not echo its session's CSRF token in\n * `x-csrf-token` (absent, repeated or another session's). The session is\n * left as it was; the page reads the token again with the session.\n *\n * @generated from protobuf enum value: CSRF_TOKEN_INVALID = 24;\n */\n CSRF_TOKEN_INVALID = 24,\n /**\n * Profile with this identifier already exists.\n *\n * @generated from protobuf enum value: PROFILE_ALREADY_EXISTS = 30;\n */\n PROFILE_ALREADY_EXISTS = 30,\n /**\n * Email address already registered.\n *\n * @generated from protobuf enum value: EMAIL_ALREADY_REGISTERED = 31;\n */\n EMAIL_ALREADY_REGISTERED = 31,\n /**\n * Username already taken.\n *\n * @generated from protobuf enum value: USERNAME_ALREADY_TAKEN = 32;\n */\n USERNAME_ALREADY_TAKEN = 32,\n /**\n * The operation key already names a command with a different method or\n * inputs; a new command needs a new key.\n *\n * @generated from protobuf enum value: OPERATION_KEY_CONFLICT = 33;\n */\n OPERATION_KEY_CONFLICT = 33,\n /**\n * The application already has a role of this kind (one client role and one\n * resource role per application).\n *\n * @generated from protobuf enum value: APPLICATION_ROLE_EXISTS = 34;\n */\n APPLICATION_ROLE_EXISTS = 34,\n /**\n * The issuer already has, or had, a protected resource with this resource\n * indicator; an indicator is never given to another resource.\n *\n * @generated from protobuf enum value: RESOURCE_INDICATOR_TAKEN = 35;\n */\n RESOURCE_INDICATOR_TAKEN = 35,\n /**\n * Phone number already registered to another account.\n *\n * @generated from protobuf enum value: PHONE_ALREADY_REGISTERED = 36;\n */\n PHONE_ALREADY_REGISTERED = 36,\n /**\n * The project already has a role with this key or display name.\n *\n * @generated from protobuf enum value: ROLE_ALREADY_EXISTS = 37;\n */\n ROLE_ALREADY_EXISTS = 37,\n /**\n * An upstream identity provider with this name already exists.\n *\n * @generated from protobuf enum value: UPSTREAM_PROVIDER_ALREADY_EXISTS = 38;\n */\n UPSTREAM_PROVIDER_ALREADY_EXISTS = 38,\n /**\n * A device login handle (an NFC tag, a face embedding) is held by another\n * account; such a handle identifies one account only. A username has its\n * own USERNAME_ALREADY_TAKEN.\n *\n * @generated from protobuf enum value: PRINCIPAL_ALREADY_HELD = 39;\n */\n PRINCIPAL_ALREADY_HELD = 39,\n /**\n * Field value does not pass validation.\n *\n * @generated from protobuf enum value: INVALID_FIELD_VALUE = 40;\n */\n INVALID_FIELD_VALUE = 40,\n /**\n * Required field is missing.\n *\n * @generated from protobuf enum value: REQUIRED_FIELD_MISSING = 41;\n */\n REQUIRED_FIELD_MISSING = 41,\n /**\n * The password installation's proof does not verify for its operation and\n * request. A new operation with a fresh proof is needed; retrying the same\n * proof cannot succeed.\n *\n * @generated from protobuf enum value: PASSWORD_PROOF_INVALID = 42;\n */\n PASSWORD_PROOF_INVALID = 42,\n /**\n * MFA enrollment required before proceeding.\n *\n * @generated from protobuf enum value: MFA_REQUIRED = 50;\n */\n MFA_REQUIRED = 50,\n /**\n * Account suspended by administrator.\n *\n * @generated from protobuf enum value: ACCOUNT_SUSPENDED = 51;\n */\n ACCOUNT_SUSPENDED = 51,\n /**\n * Account locked due to brute-force protection.\n *\n * @generated from protobuf enum value: ACCOUNT_LOCKED = 52;\n */\n ACCOUNT_LOCKED = 52,\n /**\n * User consent required before granting access.\n *\n * @generated from protobuf enum value: CONSENT_REQUIRED = 53;\n */\n CONSENT_REQUIRED = 53,\n /**\n * Credential has been revoked.\n *\n * @generated from protobuf enum value: CREDENTIAL_REVOKED = 54;\n */\n CREDENTIAL_REVOKED = 54,\n /**\n * Account is in closure/quarantine state.\n *\n * @generated from protobuf enum value: ACCOUNT_CLOSED = 55;\n */\n ACCOUNT_CLOSED = 55,\n /**\n * The operation completed, but its result is no longer kept; it is not\n * executed again.\n *\n * @generated from protobuf enum value: OPERATION_RESULT_UNAVAILABLE = 56;\n */\n OPERATION_RESULT_UNAVAILABLE = 56,\n /**\n * The operation is outside the window in which a retry is admitted.\n *\n * @generated from protobuf enum value: OPERATION_EXPIRED = 57;\n */\n OPERATION_EXPIRED = 57,\n /**\n * The protected resource is retired with its application: it takes no\n * changes and no access.\n *\n * @generated from protobuf enum value: RESOURCE_RETIRED = 58;\n */\n RESOURCE_RETIRED = 58,\n /**\n * The client and the resource belong to different issuers; access is\n * granted only within one issuer.\n *\n * @generated from protobuf enum value: ISSUER_MISMATCH = 59;\n */\n ISSUER_MISMATCH = 59,\n /**\n * The installation's own integration is not provisioned or an\n * administrator disabled it; its backend cannot serve until it is enabled.\n *\n * @generated from protobuf enum value: SYSTEM_INTEGRATION_UNAVAILABLE = 61;\n */\n SYSTEM_INTEGRATION_UNAVAILABLE = 61,\n /**\n * The resource is one SID provisions and keeps (the installation's own\n * integration or the system project): it is disabled, not deleted, and its\n * settings are not edited by hand.\n *\n * @generated from protobuf enum value: SYSTEM_MANAGED = 62;\n */\n SYSTEM_MANAGED = 62,\n /**\n * The new password matches one the owner's retained history holds. Which\n * entry matched is never disclosed.\n *\n * @generated from protobuf enum value: PASSWORD_REUSED = 63;\n */\n PASSWORD_REUSED = 63,\n /**\n * A stronger authentication is required first. PreconditionFailure\n * violations name it: type \"acr\" with the required acr value as subject,\n * or type \"amr\" with each acceptable method.\n *\n * @generated from protobuf enum value: STEP_UP_REQUIRED = 64;\n */\n STEP_UP_REQUIRED = 64,\n /**\n * A CAPTCHA must be solved first; the status carries a CaptchaChallenge\n * detail, and the solution goes back with the same request.\n *\n * @generated from protobuf enum value: CAPTCHA_REQUIRED = 65;\n */\n CAPTCHA_REQUIRED = 65,\n /**\n * The account's password is stored in a legacy form and must be migrated\n * through the migration flow before this call.\n *\n * @generated from protobuf enum value: LEGACY_MIGRATION_REQUIRED = 66;\n */\n LEGACY_MIGRATION_REQUIRED = 66,\n /**\n * The resource is not in a state that allows the call (a deleted machine\n * user, a consumed reset session, a decided access request).\n * PreconditionFailure type names the state, subject the resource.\n *\n * @generated from protobuf enum value: INVALID_STATE = 67;\n */\n INVALID_STATE = 67,\n /**\n * The provider or capability the call needs is not configured in this\n * deployment; an administrator can enable it.\n *\n * @generated from protobuf enum value: FEATURE_NOT_CONFIGURED = 68;\n */\n FEATURE_NOT_CONFIGURED = 68,\n /**\n * Rate limit exceeded (login attempts, API calls, etc.).\n *\n * @generated from protobuf enum value: RATE_LIMIT_EXCEEDED = 60;\n */\n RATE_LIMIT_EXCEEDED = 60,\n /**\n * A count limit is reached (for example the active tokens a user may hold);\n * QuotaFailure names the limit. Retrying does not help until something is\n * removed.\n *\n * @generated from protobuf enum value: QUOTA_EXCEEDED = 69;\n */\n QUOTA_EXCEEDED = 69,\n /**\n * Concurrent modification detected (optimistic locking).\n *\n * @generated from protobuf enum value: CONCURRENT_MODIFICATION = 70;\n */\n CONCURRENT_MODIFICATION = 70,\n /**\n * The same logical operation is still executing; retry it later with the\n * same key.\n *\n * @generated from protobuf enum value: OPERATION_IN_PROGRESS = 71;\n */\n OPERATION_IN_PROGRESS = 71,\n /**\n * Password history cannot be checked now (evaluator, history keys or\n * checker capacity). Nothing was installed; retry after the RetryInfo delay.\n * Ordinary sign-in is not affected.\n *\n * @generated from protobuf enum value: PASSWORD_HISTORY_UNAVAILABLE = 100;\n */\n PASSWORD_HISTORY_UNAVAILABLE = 100,\n /**\n * The service is in maintenance mode; retry after the RetryInfo delay.\n *\n * @generated from protobuf enum value: SERVICE_MAINTENANCE = 101;\n */\n SERVICE_MAINTENANCE = 101,\n /**\n * A dependency the call needs (storage, cache, revocation state, rate\n * limiter, verification keys) cannot be reached; retry after the RetryInfo\n * delay. Nothing was changed.\n *\n * @generated from protobuf enum value: DEPENDENCY_UNAVAILABLE = 102;\n */\n DEPENDENCY_UNAVAILABLE = 102,\n /**\n * The caller holds no principal (login handle or contact) with this\n * identifier; one held only by other accounts is not found either, except\n * for an administrator.\n *\n * @generated from protobuf enum value: PRINCIPAL_NOT_FOUND = 110;\n */\n PRINCIPAL_NOT_FOUND = 110,\n /**\n * The caller's account has no data export to download or acknowledge.\n *\n * @generated from protobuf enum value: EXPORT_NOT_FOUND = 111;\n */\n EXPORT_NOT_FOUND = 111,\n /**\n * The caller's account has no closure request to cancel.\n *\n * @generated from protobuf enum value: CLOSURE_REQUEST_NOT_FOUND = 112;\n */\n CLOSURE_REQUEST_NOT_FOUND = 112,\n /**\n * No group has this identifier, or the project has no group of this name.\n *\n * @generated from protobuf enum value: GROUP_NOT_FOUND = 113;\n */\n GROUP_NOT_FOUND = 113,\n /**\n * No authorization policy has this identifier.\n *\n * @generated from protobuf enum value: POLICY_NOT_FOUND = 114;\n */\n POLICY_NOT_FOUND = 114,\n /**\n * No access request has this identifier.\n *\n * @generated from protobuf enum value: ACCESS_REQUEST_NOT_FOUND = 115;\n */\n ACCESS_REQUEST_NOT_FOUND = 115,\n /**\n * No notification template has this identifier, or the template has no\n * content for the requested channel.\n *\n * @generated from protobuf enum value: TEMPLATE_NOT_FOUND = 116;\n */\n TEMPLATE_NOT_FOUND = 116,\n /**\n * The device has no live key attestation (none was registered, or it was\n * revoked).\n *\n * @generated from protobuf enum value: ATTESTATION_NOT_FOUND = 117;\n */\n ATTESTATION_NOT_FOUND = 117,\n /**\n * The profile has no metadata entry with this key.\n *\n * @generated from protobuf enum value: PROFILE_METADATA_NOT_FOUND = 118;\n */\n PROFILE_METADATA_NOT_FOUND = 118,\n /**\n * No branding configuration has this identifier, or the project has no\n * published branding.\n *\n * @generated from protobuf enum value: BRANDING_NOT_FOUND = 119;\n */\n BRANDING_NOT_FOUND = 119,\n /**\n * The project has no saved configuration for this flow type.\n *\n * @generated from protobuf enum value: FLOW_CONFIG_NOT_FOUND = 130;\n */\n FLOW_CONFIG_NOT_FOUND = 130,\n /**\n * No flow action has this identifier.\n *\n * @generated from protobuf enum value: FLOW_ACTION_NOT_FOUND = 131;\n */\n FLOW_ACTION_NOT_FOUND = 131,\n /**\n * No invite has this identifier.\n *\n * @generated from protobuf enum value: INVITE_NOT_FOUND = 132;\n */\n INVITE_NOT_FOUND = 132,\n /**\n * No organization has this identifier, or the caller is not a member of it\n * (a member-only lookup does not disclose that the organization exists).\n *\n * @generated from protobuf enum value: ORGANIZATION_NOT_FOUND = 133;\n */\n ORGANIZATION_NOT_FOUND = 133,\n /**\n * The organization has no provisioning connector with this identifier.\n *\n * @generated from protobuf enum value: PROVISIONING_CONNECTOR_NOT_FOUND = 134;\n */\n PROVISIONING_CONNECTOR_NOT_FOUND = 134,\n /**\n * The project already has a group of this name.\n *\n * @generated from protobuf enum value: GROUP_ALREADY_EXISTS = 120;\n */\n GROUP_ALREADY_EXISTS = 120,\n /**\n * The project already has an authorization policy of this name.\n *\n * @generated from protobuf enum value: POLICY_ALREADY_EXISTS = 121;\n */\n POLICY_ALREADY_EXISTS = 121,\n /**\n * The device already has a live key attestation; RotateDeviceKey replaces\n * its key.\n *\n * @generated from protobuf enum value: ATTESTATION_ALREADY_EXISTS = 122;\n */\n ATTESTATION_ALREADY_EXISTS = 122,\n /**\n * The operation's outcome cannot be established yet; retry it with the\n * same key, never with a new one.\n *\n * @generated from protobuf enum value: OPERATION_OUTCOME_UNKNOWN = 95;\n */\n OPERATION_OUTCOME_UNKNOWN = 95,\n /**\n * The feature is not part of this server build. Retrying does not help;\n * InstanceInfo.edition names the build.\n *\n * @generated from protobuf enum value: FEATURE_NOT_AVAILABLE = 80;\n */\n FEATURE_NOT_AVAILABLE = 80,\n /**\n * Unrecoverable internal error.\n *\n * @generated from protobuf enum value: INTERNAL_ERROR = 90;\n */\n INTERNAL_ERROR = 90\n}\n/**\n * Solver of a CAPTCHA challenge.\n *\n * @generated from protobuf enum sid.v1.common.CaptchaKind\n */\nexport enum CaptchaKind {\n /**\n * @generated from protobuf enum value: CAPTCHA_KIND_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * SID's own proof of work, solved without a third party.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_SID_POW = 1;\n */\n SID_POW = 1,\n /**\n * hCaptcha widget.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_HCAPTCHA = 2;\n */\n HCAPTCHA = 2,\n /**\n * Cloudflare Turnstile widget.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_TURNSTILE = 3;\n */\n TURNSTILE = 3\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass CaptchaChallenge$Type extends MessageType<CaptchaChallenge> {\n constructor() {\n super(\"sid.v1.common.CaptchaChallenge\", [\n { no: 1, name: \"challenge_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"kind\", kind: \"enum\", T: () => [\"sid.v1.common.CaptchaKind\", CaptchaKind, \"CAPTCHA_KIND_\"] },\n { no: 3, name: \"site_key\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"difficulty\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<CaptchaChallenge>): CaptchaChallenge {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challengeId = \"\";\n message.kind = 0;\n message.siteKey = \"\";\n message.difficulty = 0;\n if (value !== undefined)\n reflectionMergePartial<CaptchaChallenge>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CaptchaChallenge): CaptchaChallenge {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string challenge_id */ 1:\n message.challengeId = reader.string();\n break;\n case /* sid.v1.common.CaptchaKind kind */ 2:\n message.kind = reader.int32();\n break;\n case /* string site_key */ 3:\n message.siteKey = reader.string();\n break;\n case /* uint32 difficulty */ 4:\n message.difficulty = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: CaptchaChallenge, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string challenge_id = 1; */\n if (message.challengeId !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.challengeId);\n /* sid.v1.common.CaptchaKind kind = 2; */\n if (message.kind !== 0)\n writer.tag(2, WireType.Varint).int32(message.kind);\n /* string site_key = 3; */\n if (message.siteKey !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.siteKey);\n /* uint32 difficulty = 4; */\n if (message.difficulty !== 0)\n writer.tag(4, WireType.Varint).uint32(message.difficulty);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.CaptchaChallenge\n */\nexport const CaptchaChallenge = new CaptchaChallenge$Type();\n"]}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/errors.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAkCnD;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,WAgjBX;AAhjBD,WAAY,WAAW;IACnB;;OAEG;IACH,qFAA4B,CAAA;IAC5B;;;;OAIG;IACH,uEAAqB,CAAA;IACrB;;;;OAIG;IACH,+EAAyB,CAAA;IACzB;;;;OAIG;IACH,uEAAqB,CAAA;IACrB;;;;OAIG;IACH,6EAAwB,CAAA;IACxB;;;;OAIG;IACH,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AAI,OAAO,CAAC,UAAU,KAAK,CAAC;YACxB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC9D,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,qBAAqB,EAAE,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/common/errors.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// StructuredID gRPC Error Model.\n//\n// Machine-readable error reason codes for programmatic handling.\n// Used with google.rpc.ErrorInfo as status detail.\n//\n// Domain: \"structured.id\", the same for every installation whatever host\n// serves it. A reason is stable within its domain (AIP-193); reasons defined\n// elsewhere carry their own domain.\n//\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * The challenge of a CAPTCHA_REQUIRED refusal, packed as an additional status\n * detail beside ErrorInfo: no canonical google.rpc detail carries it.\n *\n * @generated from protobuf message sid.v1.common.CaptchaChallenge\n */\nexport interface CaptchaChallenge {\n /**\n * Server-issued identifier of this challenge; the client sends it back with\n * the solution. Valid only for the sign-in it was issued for.\n *\n * @generated from protobuf field: string challenge_id = 1\n */\n challengeId: string;\n /**\n * Which solver the client runs.\n *\n * @generated from protobuf field: sid.v1.common.CaptchaKind kind = 2\n */\n kind: CaptchaKind;\n /**\n * Public site key of a third-party widget; empty for the SID proof of work.\n *\n * @generated from protobuf field: string site_key = 3\n */\n siteKey: string;\n /**\n * Required leading zero bits of the SID proof of work; 0 for a widget.\n *\n * @generated from protobuf field: uint32 difficulty = 4\n */\n difficulty: number;\n}\n/**\n * Machine-readable error reason codes.\n *\n * Each code maps to a specific gRPC status code (see comments).\n * Clients switch on `reason` field of google.rpc.ErrorInfo for\n * programmatic error handling.\n *\n * @generated from protobuf enum sid.v1.common.ErrorReason\n */\nexport enum ErrorReason {\n /**\n * @generated from protobuf enum value: ERROR_REASON_UNSPECIFIED = 0;\n */\n ERROR_REASON_UNSPECIFIED = 0,\n /**\n * Profile does not exist.\n *\n * @generated from protobuf enum value: PROFILE_NOT_FOUND = 1;\n */\n PROFILE_NOT_FOUND = 1,\n /**\n * OAuth2 application/client not found.\n *\n * @generated from protobuf enum value: APPLICATION_NOT_FOUND = 2;\n */\n APPLICATION_NOT_FOUND = 2,\n /**\n * Session not found or expired.\n *\n * @generated from protobuf enum value: SESSION_NOT_FOUND = 3;\n */\n SESSION_NOT_FOUND = 3,\n /**\n * Credential not found.\n *\n * @generated from protobuf enum value: CREDENTIAL_NOT_FOUND = 4;\n */\n CREDENTIAL_NOT_FOUND = 4,\n /**\n * Role not found.\n *\n * @generated from protobuf enum value: ROLE_NOT_FOUND = 5;\n */\n ROLE_NOT_FOUND = 5,\n /**\n * Project not found.\n *\n * @generated from protobuf enum value: PROJECT_NOT_FOUND = 6;\n */\n PROJECT_NOT_FOUND = 6,\n /**\n * No OIDC issuer has this handle. The request is refused before any\n * authentication or key lookup; it never falls back to another issuer.\n *\n * @generated from protobuf enum value: OIDC_ISSUER_NOT_FOUND = 7;\n */\n OIDC_ISSUER_NOT_FOUND = 7,\n /**\n * Protected resource not found.\n *\n * @generated from protobuf enum value: RESOURCE_NOT_FOUND = 8;\n */\n RESOURCE_NOT_FOUND = 8,\n /**\n * The forward-auth route configuration has no protected application of\n * this name; the reverse proxy's address names an application it does not\n * protect.\n *\n * @generated from protobuf enum value: FORWARD_AUTH_APPLICATION_NOT_FOUND = 9;\n */\n FORWARD_AUTH_APPLICATION_NOT_FOUND = 9,\n /**\n * No initial access token has this identifier.\n *\n * @generated from protobuf enum value: INITIAL_ACCESS_TOKEN_NOT_FOUND = 13;\n */\n INITIAL_ACCESS_TOKEN_NOT_FOUND = 13,\n /**\n * No upstream identity provider has this identifier.\n *\n * @generated from protobuf enum value: UPSTREAM_PROVIDER_NOT_FOUND = 14;\n */\n UPSTREAM_PROVIDER_NOT_FOUND = 14,\n /**\n * No machine user (service account, bot, agent) has this identifier.\n *\n * @generated from protobuf enum value: MACHINE_USER_NOT_FOUND = 15;\n */\n MACHINE_USER_NOT_FOUND = 15,\n /**\n * The caller has no consent record for this site (OAuth2 client).\n *\n * @generated from protobuf enum value: CONSENT_NOT_FOUND = 16;\n */\n CONSENT_NOT_FOUND = 16,\n /**\n * The caller's profile has no phone with this identifier.\n *\n * @generated from protobuf enum value: PHONE_NOT_FOUND = 17;\n */\n PHONE_NOT_FOUND = 17,\n /**\n * The caller's profile has no email with this identifier.\n *\n * @generated from protobuf enum value: EMAIL_NOT_FOUND = 18;\n */\n EMAIL_NOT_FOUND = 18,\n /**\n * The caller has no device with this identifier (another profile's device\n * is not found either).\n *\n * @generated from protobuf enum value: DEVICE_NOT_FOUND = 19;\n */\n DEVICE_NOT_FOUND = 19,\n /**\n * Invalid credentials (password, WebAuthn assertion, etc.).\n * Security: status.message MUST be generic (\"authentication failed\").\n *\n * @generated from protobuf enum value: AUTHENTICATION_FAILED = 10;\n */\n AUTHENTICATION_FAILED = 10,\n /**\n * Access token expired.\n *\n * @generated from protobuf enum value: TOKEN_EXPIRED = 11;\n */\n TOKEN_EXPIRED = 11,\n /**\n * Token malformed, invalid signature, or wrong issuer.\n *\n * @generated from protobuf enum value: TOKEN_INVALID = 12;\n */\n TOKEN_INVALID = 12,\n /**\n * Caller lacks required permissions (the authorization decision denied it).\n *\n * @generated from protobuf enum value: INSUFFICIENT_PERMISSIONS = 20;\n */\n INSUFFICIENT_PERMISSIONS = 20,\n /**\n * OAuth2 scope not granted for this operation.\n *\n * @generated from protobuf enum value: SCOPE_NOT_GRANTED = 21;\n */\n SCOPE_NOT_GRANTED = 21,\n /**\n * A sign-in policy refuses this sign-in outright (a blocked address or\n * country, a method the policy never accepts). The refusal names no rule;\n * retrying the same sign-in does not help.\n *\n * @generated from protobuf enum value: SIGN_IN_REFUSED = 22;\n */\n SIGN_IN_REFUSED = 22,\n /**\n * Self-registration is restricted on this installation. ErrorInfo metadata\n * `requirement` names what is missing: `instance_claim` (the first\n * administrator's claim token), `admin_only` (only administrators create\n * accounts), `invite` (an invite code), `email` (an email address) or\n * `email_domain` (an address in an allowed domain).\n *\n * @generated from protobuf enum value: REGISTRATION_RESTRICTED = 23;\n */\n REGISTRATION_RESTRICTED = 23,\n /**\n * A state-changing browser call did not echo its session's CSRF token in\n * `x-csrf-token` (absent, repeated or another session's). The session is\n * left as it was; the page reads the token again with the session.\n *\n * @generated from protobuf enum value: CSRF_TOKEN_INVALID = 24;\n */\n CSRF_TOKEN_INVALID = 24,\n /**\n * Profile with this identifier already exists.\n *\n * @generated from protobuf enum value: PROFILE_ALREADY_EXISTS = 30;\n */\n PROFILE_ALREADY_EXISTS = 30,\n /**\n * Email address already registered.\n *\n * @generated from protobuf enum value: EMAIL_ALREADY_REGISTERED = 31;\n */\n EMAIL_ALREADY_REGISTERED = 31,\n /**\n * Username already taken.\n *\n * @generated from protobuf enum value: USERNAME_ALREADY_TAKEN = 32;\n */\n USERNAME_ALREADY_TAKEN = 32,\n /**\n * The operation key already names a command with a different method or\n * inputs; a new command needs a new key.\n *\n * @generated from protobuf enum value: OPERATION_KEY_CONFLICT = 33;\n */\n OPERATION_KEY_CONFLICT = 33,\n /**\n * The application already has a role of this kind (one client role and one\n * resource role per application).\n *\n * @generated from protobuf enum value: APPLICATION_ROLE_EXISTS = 34;\n */\n APPLICATION_ROLE_EXISTS = 34,\n /**\n * The issuer already has, or had, a protected resource with this resource\n * indicator; an indicator is never given to another resource.\n *\n * @generated from protobuf enum value: RESOURCE_INDICATOR_TAKEN = 35;\n */\n RESOURCE_INDICATOR_TAKEN = 35,\n /**\n * Phone number already registered to another account.\n *\n * @generated from protobuf enum value: PHONE_ALREADY_REGISTERED = 36;\n */\n PHONE_ALREADY_REGISTERED = 36,\n /**\n * The project already has a role with this key or display name.\n *\n * @generated from protobuf enum value: ROLE_ALREADY_EXISTS = 37;\n */\n ROLE_ALREADY_EXISTS = 37,\n /**\n * An upstream identity provider with this name already exists.\n *\n * @generated from protobuf enum value: UPSTREAM_PROVIDER_ALREADY_EXISTS = 38;\n */\n UPSTREAM_PROVIDER_ALREADY_EXISTS = 38,\n /**\n * A device login handle (an NFC tag, a face embedding) is held by another\n * account; such a handle identifies one account only. A username has its\n * own USERNAME_ALREADY_TAKEN.\n *\n * @generated from protobuf enum value: PRINCIPAL_ALREADY_HELD = 39;\n */\n PRINCIPAL_ALREADY_HELD = 39,\n /**\n * Field value does not pass validation.\n *\n * @generated from protobuf enum value: INVALID_FIELD_VALUE = 40;\n */\n INVALID_FIELD_VALUE = 40,\n /**\n * Required field is missing.\n *\n * @generated from protobuf enum value: REQUIRED_FIELD_MISSING = 41;\n */\n REQUIRED_FIELD_MISSING = 41,\n /**\n * The password installation's proof does not verify for its operation and\n * request. A new operation with a fresh proof is needed; retrying the same\n * proof cannot succeed.\n *\n * @generated from protobuf enum value: PASSWORD_PROOF_INVALID = 42;\n */\n PASSWORD_PROOF_INVALID = 42,\n /**\n * MFA enrollment required before proceeding.\n *\n * @generated from protobuf enum value: MFA_REQUIRED = 50;\n */\n MFA_REQUIRED = 50,\n /**\n * Account suspended by administrator.\n *\n * @generated from protobuf enum value: ACCOUNT_SUSPENDED = 51;\n */\n ACCOUNT_SUSPENDED = 51,\n /**\n * Account locked due to brute-force protection.\n *\n * @generated from protobuf enum value: ACCOUNT_LOCKED = 52;\n */\n ACCOUNT_LOCKED = 52,\n /**\n * User consent required before granting access.\n *\n * @generated from protobuf enum value: CONSENT_REQUIRED = 53;\n */\n CONSENT_REQUIRED = 53,\n /**\n * Credential has been revoked.\n *\n * @generated from protobuf enum value: CREDENTIAL_REVOKED = 54;\n */\n CREDENTIAL_REVOKED = 54,\n /**\n * Account is in closure/quarantine state.\n *\n * @generated from protobuf enum value: ACCOUNT_CLOSED = 55;\n */\n ACCOUNT_CLOSED = 55,\n /**\n * The operation completed, but its result is no longer kept; it is not\n * executed again.\n *\n * @generated from protobuf enum value: OPERATION_RESULT_UNAVAILABLE = 56;\n */\n OPERATION_RESULT_UNAVAILABLE = 56,\n /**\n * The operation is outside the window in which a retry is admitted.\n *\n * @generated from protobuf enum value: OPERATION_EXPIRED = 57;\n */\n OPERATION_EXPIRED = 57,\n /**\n * The protected resource is retired with its application: it takes no\n * changes and no access.\n *\n * @generated from protobuf enum value: RESOURCE_RETIRED = 58;\n */\n RESOURCE_RETIRED = 58,\n /**\n * The client and the resource belong to different issuers; access is\n * granted only within one issuer.\n *\n * @generated from protobuf enum value: ISSUER_MISMATCH = 59;\n */\n ISSUER_MISMATCH = 59,\n /**\n * The installation's own integration is not provisioned or an\n * administrator disabled it; its backend cannot serve until it is enabled.\n *\n * @generated from protobuf enum value: SYSTEM_INTEGRATION_UNAVAILABLE = 61;\n */\n SYSTEM_INTEGRATION_UNAVAILABLE = 61,\n /**\n * The resource is one SID provisions and keeps (the installation's own\n * integration or the system project): it is disabled, not deleted, and its\n * settings are not edited by hand.\n *\n * @generated from protobuf enum value: SYSTEM_MANAGED = 62;\n */\n SYSTEM_MANAGED = 62,\n /**\n * The new password matches one the owner's retained history holds. Which\n * entry matched is never disclosed.\n *\n * @generated from protobuf enum value: PASSWORD_REUSED = 63;\n */\n PASSWORD_REUSED = 63,\n /**\n * A stronger authentication is required first. PreconditionFailure\n * violations name it: type \"acr\" with the required acr value as subject,\n * or type \"amr\" with each acceptable method.\n *\n * @generated from protobuf enum value: STEP_UP_REQUIRED = 64;\n */\n STEP_UP_REQUIRED = 64,\n /**\n * A CAPTCHA must be solved first; the status carries a CaptchaChallenge\n * detail, and the solution goes back with the same request.\n *\n * @generated from protobuf enum value: CAPTCHA_REQUIRED = 65;\n */\n CAPTCHA_REQUIRED = 65,\n /**\n * The account's password is stored in a legacy form and must be migrated\n * through the migration flow before this call.\n *\n * @generated from protobuf enum value: LEGACY_MIGRATION_REQUIRED = 66;\n */\n LEGACY_MIGRATION_REQUIRED = 66,\n /**\n * The resource is not in a state that allows the call (a deleted machine\n * user, a consumed reset session, a decided access request).\n * PreconditionFailure type names the state, subject the resource.\n *\n * @generated from protobuf enum value: INVALID_STATE = 67;\n */\n INVALID_STATE = 67,\n /**\n * The provider or capability the call needs is not configured in this\n * deployment; an administrator can enable it.\n *\n * @generated from protobuf enum value: FEATURE_NOT_CONFIGURED = 68;\n */\n FEATURE_NOT_CONFIGURED = 68,\n /**\n * Self-registration was deliberately closed. Not a store that cannot answer,\n * nor a setting never initialized.\n *\n * @generated from protobuf enum value: REGISTRATION_DISABLED = 72;\n */\n REGISTRATION_DISABLED = 72,\n /**\n * Rate limit exceeded (login attempts, API calls, etc.).\n *\n * @generated from protobuf enum value: RATE_LIMIT_EXCEEDED = 60;\n */\n RATE_LIMIT_EXCEEDED = 60,\n /**\n * A count limit is reached (for example the active tokens a user may hold);\n * QuotaFailure names the limit. Retrying does not help until something is\n * removed.\n *\n * @generated from protobuf enum value: QUOTA_EXCEEDED = 69;\n */\n QUOTA_EXCEEDED = 69,\n /**\n * Concurrent modification detected (optimistic locking).\n *\n * @generated from protobuf enum value: CONCURRENT_MODIFICATION = 70;\n */\n CONCURRENT_MODIFICATION = 70,\n /**\n * The same logical operation is still executing; retry it later with the\n * same key.\n *\n * @generated from protobuf enum value: OPERATION_IN_PROGRESS = 71;\n */\n OPERATION_IN_PROGRESS = 71,\n /**\n * Password history cannot be checked now (evaluator, history keys or\n * checker capacity). Nothing was installed; retry after the RetryInfo delay.\n * Ordinary sign-in is not affected.\n *\n * @generated from protobuf enum value: PASSWORD_HISTORY_UNAVAILABLE = 100;\n */\n PASSWORD_HISTORY_UNAVAILABLE = 100,\n /**\n * The service is in maintenance mode; retry after the RetryInfo delay.\n *\n * @generated from protobuf enum value: SERVICE_MAINTENANCE = 101;\n */\n SERVICE_MAINTENANCE = 101,\n /**\n * A dependency the call needs (storage, cache, revocation state, rate\n * limiter, verification keys) cannot be reached; retry after the RetryInfo\n * delay. Nothing was changed.\n *\n * @generated from protobuf enum value: DEPENDENCY_UNAVAILABLE = 102;\n */\n DEPENDENCY_UNAVAILABLE = 102,\n /**\n * The caller holds no principal (login handle or contact) with this\n * identifier; one held only by other accounts is not found either, except\n * for an administrator.\n *\n * @generated from protobuf enum value: PRINCIPAL_NOT_FOUND = 110;\n */\n PRINCIPAL_NOT_FOUND = 110,\n /**\n * The caller's account has no data export to download or acknowledge.\n *\n * @generated from protobuf enum value: EXPORT_NOT_FOUND = 111;\n */\n EXPORT_NOT_FOUND = 111,\n /**\n * The caller's account has no closure request to cancel.\n *\n * @generated from protobuf enum value: CLOSURE_REQUEST_NOT_FOUND = 112;\n */\n CLOSURE_REQUEST_NOT_FOUND = 112,\n /**\n * No group has this identifier, or the project has no group of this name.\n *\n * @generated from protobuf enum value: GROUP_NOT_FOUND = 113;\n */\n GROUP_NOT_FOUND = 113,\n /**\n * No authorization policy has this identifier.\n *\n * @generated from protobuf enum value: POLICY_NOT_FOUND = 114;\n */\n POLICY_NOT_FOUND = 114,\n /**\n * No access request has this identifier.\n *\n * @generated from protobuf enum value: ACCESS_REQUEST_NOT_FOUND = 115;\n */\n ACCESS_REQUEST_NOT_FOUND = 115,\n /**\n * No notification template has this identifier, or the template has no\n * content for the requested channel.\n *\n * @generated from protobuf enum value: TEMPLATE_NOT_FOUND = 116;\n */\n TEMPLATE_NOT_FOUND = 116,\n /**\n * The device has no live key attestation (none was registered, or it was\n * revoked).\n *\n * @generated from protobuf enum value: ATTESTATION_NOT_FOUND = 117;\n */\n ATTESTATION_NOT_FOUND = 117,\n /**\n * The profile has no metadata entry with this key.\n *\n * @generated from protobuf enum value: PROFILE_METADATA_NOT_FOUND = 118;\n */\n PROFILE_METADATA_NOT_FOUND = 118,\n /**\n * No branding configuration has this identifier, or the project has no\n * published branding.\n *\n * @generated from protobuf enum value: BRANDING_NOT_FOUND = 119;\n */\n BRANDING_NOT_FOUND = 119,\n /**\n * The project has no saved configuration for this flow type.\n *\n * @generated from protobuf enum value: FLOW_CONFIG_NOT_FOUND = 130;\n */\n FLOW_CONFIG_NOT_FOUND = 130,\n /**\n * No flow action has this identifier.\n *\n * @generated from protobuf enum value: FLOW_ACTION_NOT_FOUND = 131;\n */\n FLOW_ACTION_NOT_FOUND = 131,\n /**\n * No invite has this identifier.\n *\n * @generated from protobuf enum value: INVITE_NOT_FOUND = 132;\n */\n INVITE_NOT_FOUND = 132,\n /**\n * No organization has this identifier, or the caller is not a member of it\n * (a member-only lookup does not disclose that the organization exists).\n *\n * @generated from protobuf enum value: ORGANIZATION_NOT_FOUND = 133;\n */\n ORGANIZATION_NOT_FOUND = 133,\n /**\n * The organization has no provisioning connector with this identifier.\n *\n * @generated from protobuf enum value: PROVISIONING_CONNECTOR_NOT_FOUND = 134;\n */\n PROVISIONING_CONNECTOR_NOT_FOUND = 134,\n /**\n * The project already has a group of this name.\n *\n * @generated from protobuf enum value: GROUP_ALREADY_EXISTS = 120;\n */\n GROUP_ALREADY_EXISTS = 120,\n /**\n * The project already has an authorization policy of this name.\n *\n * @generated from protobuf enum value: POLICY_ALREADY_EXISTS = 121;\n */\n POLICY_ALREADY_EXISTS = 121,\n /**\n * The device already has a live key attestation; RotateDeviceKey replaces\n * its key.\n *\n * @generated from protobuf enum value: ATTESTATION_ALREADY_EXISTS = 122;\n */\n ATTESTATION_ALREADY_EXISTS = 122,\n /**\n * The operation's outcome cannot be established yet; retry it with the\n * same key, never with a new one.\n *\n * @generated from protobuf enum value: OPERATION_OUTCOME_UNKNOWN = 95;\n */\n OPERATION_OUTCOME_UNKNOWN = 95,\n /**\n * The feature is not part of this server build. Retrying does not help;\n * InstanceInfo.edition names the build.\n *\n * @generated from protobuf enum value: FEATURE_NOT_AVAILABLE = 80;\n */\n FEATURE_NOT_AVAILABLE = 80,\n /**\n * Unrecoverable internal error.\n *\n * @generated from protobuf enum value: INTERNAL_ERROR = 90;\n */\n INTERNAL_ERROR = 90\n}\n/**\n * Solver of a CAPTCHA challenge.\n *\n * @generated from protobuf enum sid.v1.common.CaptchaKind\n */\nexport enum CaptchaKind {\n /**\n * @generated from protobuf enum value: CAPTCHA_KIND_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * SID's own proof of work, solved without a third party.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_SID_POW = 1;\n */\n SID_POW = 1,\n /**\n * hCaptcha widget.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_HCAPTCHA = 2;\n */\n HCAPTCHA = 2,\n /**\n * Cloudflare Turnstile widget.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_TURNSTILE = 3;\n */\n TURNSTILE = 3\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass CaptchaChallenge$Type extends MessageType<CaptchaChallenge> {\n constructor() {\n super(\"sid.v1.common.CaptchaChallenge\", [\n { no: 1, name: \"challenge_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"kind\", kind: \"enum\", T: () => [\"sid.v1.common.CaptchaKind\", CaptchaKind, \"CAPTCHA_KIND_\"] },\n { no: 3, name: \"site_key\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"difficulty\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<CaptchaChallenge>): CaptchaChallenge {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challengeId = \"\";\n message.kind = 0;\n message.siteKey = \"\";\n message.difficulty = 0;\n if (value !== undefined)\n reflectionMergePartial<CaptchaChallenge>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CaptchaChallenge): CaptchaChallenge {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string challenge_id */ 1:\n message.challengeId = reader.string();\n break;\n case /* sid.v1.common.CaptchaKind kind */ 2:\n message.kind = reader.int32();\n break;\n case /* string site_key */ 3:\n message.siteKey = reader.string();\n break;\n case /* uint32 difficulty */ 4:\n message.difficulty = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: CaptchaChallenge, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string challenge_id = 1; */\n if (message.challengeId !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.challengeId);\n /* sid.v1.common.CaptchaKind kind = 2; */\n if (message.kind !== 0)\n writer.tag(2, WireType.Varint).int32(message.kind);\n /* string site_key = 3; */\n if (message.siteKey !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.siteKey);\n /* uint32 difficulty = 4; */\n if (message.difficulty !== 0)\n writer.tag(4, WireType.Varint).uint32(message.difficulty);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.CaptchaChallenge\n */\nexport const CaptchaChallenge = new CaptchaChallenge$Type();\n"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
2
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
import type { OperationPeriod } from "./operation.js";
|
|
4
|
+
import type { GetOperationPeriodRequest } from "./operation.js";
|
|
5
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
7
|
+
/**
|
|
8
|
+
* The server-issued periods keyed commands are admitted under.
|
|
9
|
+
*
|
|
10
|
+
* @generated from protobuf service sid.v1.common.OperationService
|
|
11
|
+
*/
|
|
12
|
+
export interface IOperationServiceClient {
|
|
13
|
+
/**
|
|
14
|
+
* The period a new keyed command names, issued by the store that owns the
|
|
15
|
+
* operation. A period serves many commands; a caller obtains it once,
|
|
16
|
+
* saves it with the key before the first submission and keeps both
|
|
17
|
+
* across every retry. Open to every caller: a period conveys no
|
|
18
|
+
* permission and selects no issuer, tenant or store.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf rpc: GetOperationPeriod
|
|
21
|
+
*/
|
|
22
|
+
getOperationPeriod(input: GetOperationPeriodRequest, options?: RpcOptions): UnaryCall<GetOperationPeriodRequest, OperationPeriod>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The server-issued periods keyed commands are admitted under.
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf service sid.v1.common.OperationService
|
|
28
|
+
*/
|
|
29
|
+
export declare class OperationServiceClient implements IOperationServiceClient, ServiceInfo {
|
|
30
|
+
private readonly _transport;
|
|
31
|
+
typeName: string;
|
|
32
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
33
|
+
options: {
|
|
34
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
35
|
+
};
|
|
36
|
+
constructor(_transport: RpcTransport);
|
|
37
|
+
/**
|
|
38
|
+
* The period a new keyed command names, issued by the store that owns the
|
|
39
|
+
* operation. A period serves many commands; a caller obtains it once,
|
|
40
|
+
* saves it with the key before the first submission and keeps both
|
|
41
|
+
* across every retry. Open to every caller: a period conveys no
|
|
42
|
+
* permission and selects no issuer, tenant or store.
|
|
43
|
+
*
|
|
44
|
+
* @generated from protobuf rpc: GetOperationPeriod
|
|
45
|
+
*/
|
|
46
|
+
getOperationPeriod(input: GetOperationPeriodRequest, options?: RpcOptions): UnaryCall<GetOperationPeriodRequest, OperationPeriod>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OperationService } from "./operation.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
/**
|
|
4
|
+
* The server-issued periods keyed commands are admitted under.
|
|
5
|
+
*
|
|
6
|
+
* @generated from protobuf service sid.v1.common.OperationService
|
|
7
|
+
*/
|
|
8
|
+
export class OperationServiceClient {
|
|
9
|
+
_transport;
|
|
10
|
+
typeName = OperationService.typeName;
|
|
11
|
+
methods = OperationService.methods;
|
|
12
|
+
options = OperationService.options;
|
|
13
|
+
constructor(_transport) {
|
|
14
|
+
this._transport = _transport;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The period a new keyed command names, issued by the store that owns the
|
|
18
|
+
* operation. A period serves many commands; a caller obtains it once,
|
|
19
|
+
* saves it with the key before the first submission and keeps both
|
|
20
|
+
* across every retry. Open to every caller: a period conveys no
|
|
21
|
+
* permission and selects no issuer, tenant or store.
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf rpc: GetOperationPeriod
|
|
24
|
+
*/
|
|
25
|
+
getOperationPeriod(input, options) {
|
|
26
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
27
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=operation.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/operation.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAsB1D;;;;GAIG;AACH,MAAM,OAAO,sBAAsB;IAIF;IAH7B,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,CAAC;IACrC,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC;IACnC,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC;IACnC,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;;;;;OAQG;IACH,kBAAkB,CAAC,KAAgC,EAAE,OAAoB;QACrE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA6C,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpH,CAAC;CACJ","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/common/operation.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { OperationService } from \"./operation.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { OperationPeriod } from \"./operation.js\";\nimport type { GetOperationPeriodRequest } from \"./operation.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * The server-issued periods keyed commands are admitted under.\n *\n * @generated from protobuf service sid.v1.common.OperationService\n */\nexport interface IOperationServiceClient {\n /**\n * The period a new keyed command names, issued by the store that owns the\n * operation. A period serves many commands; a caller obtains it once,\n * saves it with the key before the first submission and keeps both\n * across every retry. Open to every caller: a period conveys no\n * permission and selects no issuer, tenant or store.\n *\n * @generated from protobuf rpc: GetOperationPeriod\n */\n getOperationPeriod(input: GetOperationPeriodRequest, options?: RpcOptions): UnaryCall<GetOperationPeriodRequest, OperationPeriod>;\n}\n/**\n * The server-issued periods keyed commands are admitted under.\n *\n * @generated from protobuf service sid.v1.common.OperationService\n */\nexport class OperationServiceClient implements IOperationServiceClient, ServiceInfo {\n typeName = OperationService.typeName;\n methods = OperationService.methods;\n options = OperationService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * The period a new keyed command names, issued by the store that owns the\n * operation. A period serves many commands; a caller obtains it once,\n * saves it with the key before the first submission and keeps both\n * across every retry. Open to every caller: a period conveys no\n * permission and selects no issuer, tenant or store.\n *\n * @generated from protobuf rpc: GetOperationPeriod\n */\n getOperationPeriod(input: GetOperationPeriodRequest, options?: RpcOptions): UnaryCall<GetOperationPeriodRequest, OperationPeriod> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetOperationPeriodRequest, OperationPeriod>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
2
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
+
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
9
|
+
/**
|
|
10
|
+
* The retry rule of one method.
|
|
11
|
+
*
|
|
12
|
+
* @generated from protobuf message sid.v1.common.RetryRule
|
|
13
|
+
*/
|
|
14
|
+
export interface RetryRule {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf oneof: rule
|
|
17
|
+
*/
|
|
18
|
+
rule: {
|
|
19
|
+
oneofKind: "keyed";
|
|
20
|
+
/**
|
|
21
|
+
* The caller names its command by an operation context, created once
|
|
22
|
+
* before the first submission and kept across every retry: the
|
|
23
|
+
* `idempotency-key` request metadata (the Idempotency-Key header of
|
|
24
|
+
* draft-ietf-httpapi-idempotency-key-header-08 §2.1, a Structured
|
|
25
|
+
* Field String, the same encoded value in gRPC metadata and HTTP) and
|
|
26
|
+
* the `sid-operation-period` metadata (SID-Operation-Period in HTTP:
|
|
27
|
+
* one canonical unsigned decimal period from OperationService). A
|
|
28
|
+
* retry under the same context answers with the result recorded by the
|
|
29
|
+
* first commit and applies nothing again; a call with a missing,
|
|
30
|
+
* malformed or duplicated context is refused before any effect, and
|
|
31
|
+
* one under a retired period with OPERATION_EXPIRED.
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf field: bool keyed = 3
|
|
34
|
+
*/
|
|
35
|
+
keyed: boolean;
|
|
36
|
+
} | {
|
|
37
|
+
oneofKind: "ceremony";
|
|
38
|
+
/**
|
|
39
|
+
* The method follows its protocol's own consume or replay rule, stated
|
|
40
|
+
* here with the normative section where the protocol is standardized
|
|
41
|
+
* (for example RFC 6749 §4.1.2 for an authorization code). It takes no
|
|
42
|
+
* operation context and its result is never replayed from the keyed
|
|
43
|
+
* record; a protocol that names its own operation (a password
|
|
44
|
+
* operation, a reset) may answer a retry of that same operation with
|
|
45
|
+
* the outcome it recorded, as its rule states.
|
|
46
|
+
*
|
|
47
|
+
* @generated from protobuf field: string ceremony = 1
|
|
48
|
+
*/
|
|
49
|
+
ceremony: string;
|
|
50
|
+
} | {
|
|
51
|
+
oneofKind: "natural";
|
|
52
|
+
/**
|
|
53
|
+
* The method's effect is the same however often it is applied: the
|
|
54
|
+
* invariant that makes it so and what a repeat answers, including after
|
|
55
|
+
* an intervening change.
|
|
56
|
+
*
|
|
57
|
+
* @generated from protobuf field: string natural = 2
|
|
58
|
+
*/
|
|
59
|
+
natural: string;
|
|
60
|
+
} | {
|
|
61
|
+
oneofKind: undefined;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf message sid.v1.common.GetOperationPeriodRequest
|
|
66
|
+
*/
|
|
67
|
+
export interface GetOperationPeriodRequest {
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* One server-issued period.
|
|
71
|
+
*
|
|
72
|
+
* @generated from protobuf message sid.v1.common.OperationPeriod
|
|
73
|
+
*/
|
|
74
|
+
export interface OperationPeriod {
|
|
75
|
+
/**
|
|
76
|
+
* The period: an unsigned epoch the owning store issued, carried by a
|
|
77
|
+
* keyed command as its `sid-operation-period` metadata. Not a timestamp.
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf field: uint64 period = 1
|
|
80
|
+
*/
|
|
81
|
+
period: bigint;
|
|
82
|
+
/**
|
|
83
|
+
* Until when a new command named with this period is admitted. A command
|
|
84
|
+
* first submitted before this bound may still be retried within the
|
|
85
|
+
* store's retention; one under a retired period is refused with
|
|
86
|
+
* OPERATION_EXPIRED.
|
|
87
|
+
*
|
|
88
|
+
* @generated from protobuf field: google.protobuf.Timestamp accepted_until = 2
|
|
89
|
+
*/
|
|
90
|
+
acceptedUntil?: Timestamp;
|
|
91
|
+
}
|
|
92
|
+
declare class RetryRule$Type extends MessageType<RetryRule> {
|
|
93
|
+
constructor();
|
|
94
|
+
create(value?: PartialMessage<RetryRule>): RetryRule;
|
|
95
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RetryRule): RetryRule;
|
|
96
|
+
internalBinaryWrite(message: RetryRule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @generated MessageType for protobuf message sid.v1.common.RetryRule
|
|
100
|
+
*/
|
|
101
|
+
export declare const RetryRule: RetryRule$Type;
|
|
102
|
+
declare class GetOperationPeriodRequest$Type extends MessageType<GetOperationPeriodRequest> {
|
|
103
|
+
constructor();
|
|
104
|
+
create(value?: PartialMessage<GetOperationPeriodRequest>): GetOperationPeriodRequest;
|
|
105
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOperationPeriodRequest): GetOperationPeriodRequest;
|
|
106
|
+
internalBinaryWrite(message: GetOperationPeriodRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @generated MessageType for protobuf message sid.v1.common.GetOperationPeriodRequest
|
|
110
|
+
*/
|
|
111
|
+
export declare const GetOperationPeriodRequest: GetOperationPeriodRequest$Type;
|
|
112
|
+
declare class OperationPeriod$Type extends MessageType<OperationPeriod> {
|
|
113
|
+
constructor();
|
|
114
|
+
create(value?: PartialMessage<OperationPeriod>): OperationPeriod;
|
|
115
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OperationPeriod): OperationPeriod;
|
|
116
|
+
internalBinaryWrite(message: OperationPeriod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @generated MessageType for protobuf message sid.v1.common.OperationPeriod
|
|
120
|
+
*/
|
|
121
|
+
export declare const OperationPeriod: OperationPeriod$Type;
|
|
122
|
+
/**
|
|
123
|
+
* @generated ServiceType for protobuf service sid.v1.common.OperationService
|
|
124
|
+
*/
|
|
125
|
+
export declare const OperationService: ServiceType;
|
|
126
|
+
export {};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "sid/v1/common/operation.proto" (package "sid.v1.common", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
8
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
9
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
11
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
12
|
+
class RetryRule$Type extends MessageType {
|
|
13
|
+
constructor() {
|
|
14
|
+
super("sid.v1.common.RetryRule", [
|
|
15
|
+
{ no: 3, name: "keyed", kind: "scalar", oneof: "rule", T: 8 /*ScalarType.BOOL*/ },
|
|
16
|
+
{ no: 1, name: "ceremony", kind: "scalar", oneof: "rule", T: 9 /*ScalarType.STRING*/ },
|
|
17
|
+
{ no: 2, name: "natural", kind: "scalar", oneof: "rule", T: 9 /*ScalarType.STRING*/ }
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
create(value) {
|
|
21
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22
|
+
message.rule = { oneofKind: undefined };
|
|
23
|
+
if (value !== undefined)
|
|
24
|
+
reflectionMergePartial(this, message, value);
|
|
25
|
+
return message;
|
|
26
|
+
}
|
|
27
|
+
internalBinaryRead(reader, length, options, target) {
|
|
28
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
let [fieldNo, wireType] = reader.tag();
|
|
31
|
+
switch (fieldNo) {
|
|
32
|
+
case /* bool keyed */ 3:
|
|
33
|
+
message.rule = {
|
|
34
|
+
oneofKind: "keyed",
|
|
35
|
+
keyed: reader.bool()
|
|
36
|
+
};
|
|
37
|
+
break;
|
|
38
|
+
case /* string ceremony */ 1:
|
|
39
|
+
message.rule = {
|
|
40
|
+
oneofKind: "ceremony",
|
|
41
|
+
ceremony: reader.string()
|
|
42
|
+
};
|
|
43
|
+
break;
|
|
44
|
+
case /* string natural */ 2:
|
|
45
|
+
message.rule = {
|
|
46
|
+
oneofKind: "natural",
|
|
47
|
+
natural: reader.string()
|
|
48
|
+
};
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
let u = options.readUnknownField;
|
|
52
|
+
if (u === "throw")
|
|
53
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
54
|
+
let d = reader.skip(wireType);
|
|
55
|
+
if (u !== false)
|
|
56
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return message;
|
|
60
|
+
}
|
|
61
|
+
internalBinaryWrite(message, writer, options) {
|
|
62
|
+
/* string ceremony = 1; */
|
|
63
|
+
if (message.rule.oneofKind === "ceremony")
|
|
64
|
+
writer.tag(1, WireType.LengthDelimited).string(message.rule.ceremony);
|
|
65
|
+
/* string natural = 2; */
|
|
66
|
+
if (message.rule.oneofKind === "natural")
|
|
67
|
+
writer.tag(2, WireType.LengthDelimited).string(message.rule.natural);
|
|
68
|
+
/* bool keyed = 3; */
|
|
69
|
+
if (message.rule.oneofKind === "keyed")
|
|
70
|
+
writer.tag(3, WireType.Varint).bool(message.rule.keyed);
|
|
71
|
+
let u = options.writeUnknownFields;
|
|
72
|
+
if (u !== false)
|
|
73
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
74
|
+
return writer;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @generated MessageType for protobuf message sid.v1.common.RetryRule
|
|
79
|
+
*/
|
|
80
|
+
export const RetryRule = new RetryRule$Type();
|
|
81
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
82
|
+
class GetOperationPeriodRequest$Type extends MessageType {
|
|
83
|
+
constructor() {
|
|
84
|
+
super("sid.v1.common.GetOperationPeriodRequest", []);
|
|
85
|
+
}
|
|
86
|
+
create(value) {
|
|
87
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
88
|
+
if (value !== undefined)
|
|
89
|
+
reflectionMergePartial(this, message, value);
|
|
90
|
+
return message;
|
|
91
|
+
}
|
|
92
|
+
internalBinaryRead(reader, length, options, target) {
|
|
93
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
94
|
+
while (reader.pos < end) {
|
|
95
|
+
let [fieldNo, wireType] = reader.tag();
|
|
96
|
+
switch (fieldNo) {
|
|
97
|
+
default:
|
|
98
|
+
let u = options.readUnknownField;
|
|
99
|
+
if (u === "throw")
|
|
100
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
101
|
+
let d = reader.skip(wireType);
|
|
102
|
+
if (u !== false)
|
|
103
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return message;
|
|
107
|
+
}
|
|
108
|
+
internalBinaryWrite(message, writer, options) {
|
|
109
|
+
let u = options.writeUnknownFields;
|
|
110
|
+
if (u !== false)
|
|
111
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
112
|
+
return writer;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @generated MessageType for protobuf message sid.v1.common.GetOperationPeriodRequest
|
|
117
|
+
*/
|
|
118
|
+
export const GetOperationPeriodRequest = new GetOperationPeriodRequest$Type();
|
|
119
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
120
|
+
class OperationPeriod$Type extends MessageType {
|
|
121
|
+
constructor() {
|
|
122
|
+
super("sid.v1.common.OperationPeriod", [
|
|
123
|
+
{ no: 1, name: "period", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
124
|
+
{ no: 2, name: "accepted_until", kind: "message", T: () => Timestamp }
|
|
125
|
+
]);
|
|
126
|
+
}
|
|
127
|
+
create(value) {
|
|
128
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
129
|
+
message.period = 0n;
|
|
130
|
+
if (value !== undefined)
|
|
131
|
+
reflectionMergePartial(this, message, value);
|
|
132
|
+
return message;
|
|
133
|
+
}
|
|
134
|
+
internalBinaryRead(reader, length, options, target) {
|
|
135
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
136
|
+
while (reader.pos < end) {
|
|
137
|
+
let [fieldNo, wireType] = reader.tag();
|
|
138
|
+
switch (fieldNo) {
|
|
139
|
+
case /* uint64 period */ 1:
|
|
140
|
+
message.period = reader.uint64().toBigInt();
|
|
141
|
+
break;
|
|
142
|
+
case /* google.protobuf.Timestamp accepted_until */ 2:
|
|
143
|
+
message.acceptedUntil = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.acceptedUntil);
|
|
144
|
+
break;
|
|
145
|
+
default:
|
|
146
|
+
let u = options.readUnknownField;
|
|
147
|
+
if (u === "throw")
|
|
148
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
149
|
+
let d = reader.skip(wireType);
|
|
150
|
+
if (u !== false)
|
|
151
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return message;
|
|
155
|
+
}
|
|
156
|
+
internalBinaryWrite(message, writer, options) {
|
|
157
|
+
/* uint64 period = 1; */
|
|
158
|
+
if (message.period !== 0n)
|
|
159
|
+
writer.tag(1, WireType.Varint).uint64(message.period);
|
|
160
|
+
/* google.protobuf.Timestamp accepted_until = 2; */
|
|
161
|
+
if (message.acceptedUntil)
|
|
162
|
+
Timestamp.internalBinaryWrite(message.acceptedUntil, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
163
|
+
let u = options.writeUnknownFields;
|
|
164
|
+
if (u !== false)
|
|
165
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
166
|
+
return writer;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @generated MessageType for protobuf message sid.v1.common.OperationPeriod
|
|
171
|
+
*/
|
|
172
|
+
export const OperationPeriod = new OperationPeriod$Type();
|
|
173
|
+
/**
|
|
174
|
+
* @generated ServiceType for protobuf service sid.v1.common.OperationService
|
|
175
|
+
*/
|
|
176
|
+
export const OperationService = new ServiceType("sid.v1.common.OperationService", [
|
|
177
|
+
{ name: "GetOperationPeriod", idempotency: "IDEMPOTENT", options: { "google.api.http": { get: "/v1/operations/period" }, "sid.v1.common.retry": { natural: "the current period is answered, issued when none is current: a repeat answers the same period until a later one replaces it, and no call retires a period another caller still holds within its acceptance bound" } }, I: GetOperationPeriodRequest, O: OperationPeriod }
|
|
178
|
+
]);
|
|
179
|
+
//# sourceMappingURL=operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/operation.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,yGAAyG;AACzG,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS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AC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC1D;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,WAAW,CAAC,gCAAgC,EAAE;IAC9E,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,EAAE,qBAAqB,EAAE,EAAE,OAAO,EAAE,kNAAkN,EAAE,EAAE,EAAE,CAAC,EAAE,yBAAyB,EAAE,CAAC,EAAE,eAAe,EAAE;CACxa,CAAC,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/common/operation.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.js\";\n/**\n * The retry rule of one method.\n *\n * @generated from protobuf message sid.v1.common.RetryRule\n */\nexport interface RetryRule {\n /**\n * @generated from protobuf oneof: rule\n */\n rule: {\n oneofKind: \"keyed\";\n /**\n * The caller names its command by an operation context, created once\n * before the first submission and kept across every retry: the\n * `idempotency-key` request metadata (the Idempotency-Key header of\n * draft-ietf-httpapi-idempotency-key-header-08 §2.1, a Structured\n * Field String, the same encoded value in gRPC metadata and HTTP) and\n * the `sid-operation-period` metadata (SID-Operation-Period in HTTP:\n * one canonical unsigned decimal period from OperationService). A\n * retry under the same context answers with the result recorded by the\n * first commit and applies nothing again; a call with a missing,\n * malformed or duplicated context is refused before any effect, and\n * one under a retired period with OPERATION_EXPIRED.\n *\n * @generated from protobuf field: bool keyed = 3\n */\n keyed: boolean;\n } | {\n oneofKind: \"ceremony\";\n /**\n * The method follows its protocol's own consume or replay rule, stated\n * here with the normative section where the protocol is standardized\n * (for example RFC 6749 §4.1.2 for an authorization code). It takes no\n * operation context and its result is never replayed from the keyed\n * record; a protocol that names its own operation (a password\n * operation, a reset) may answer a retry of that same operation with\n * the outcome it recorded, as its rule states.\n *\n * @generated from protobuf field: string ceremony = 1\n */\n ceremony: string;\n } | {\n oneofKind: \"natural\";\n /**\n * The method's effect is the same however often it is applied: the\n * invariant that makes it so and what a repeat answers, including after\n * an intervening change.\n *\n * @generated from protobuf field: string natural = 2\n */\n natural: string;\n } | {\n oneofKind: undefined;\n };\n}\n/**\n * @generated from protobuf message sid.v1.common.GetOperationPeriodRequest\n */\nexport interface GetOperationPeriodRequest {\n}\n/**\n * One server-issued period.\n *\n * @generated from protobuf message sid.v1.common.OperationPeriod\n */\nexport interface OperationPeriod {\n /**\n * The period: an unsigned epoch the owning store issued, carried by a\n * keyed command as its `sid-operation-period` metadata. Not a timestamp.\n *\n * @generated from protobuf field: uint64 period = 1\n */\n period: bigint;\n /**\n * Until when a new command named with this period is admitted. A command\n * first submitted before this bound may still be retried within the\n * store's retention; one under a retired period is refused with\n * OPERATION_EXPIRED.\n *\n * @generated from protobuf field: google.protobuf.Timestamp accepted_until = 2\n */\n acceptedUntil?: Timestamp;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass RetryRule$Type extends MessageType<RetryRule> {\n constructor() {\n super(\"sid.v1.common.RetryRule\", [\n { no: 3, name: \"keyed\", kind: \"scalar\", oneof: \"rule\", T: 8 /*ScalarType.BOOL*/ },\n { no: 1, name: \"ceremony\", kind: \"scalar\", oneof: \"rule\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"natural\", kind: \"scalar\", oneof: \"rule\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<RetryRule>): RetryRule {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.rule = { oneofKind: undefined };\n if (value !== undefined)\n reflectionMergePartial<RetryRule>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RetryRule): RetryRule {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bool keyed */ 3:\n message.rule = {\n oneofKind: \"keyed\",\n keyed: reader.bool()\n };\n break;\n case /* string ceremony */ 1:\n message.rule = {\n oneofKind: \"ceremony\",\n ceremony: reader.string()\n };\n break;\n case /* string natural */ 2:\n message.rule = {\n oneofKind: \"natural\",\n natural: reader.string()\n };\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: RetryRule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string ceremony = 1; */\n if (message.rule.oneofKind === \"ceremony\")\n writer.tag(1, WireType.LengthDelimited).string(message.rule.ceremony);\n /* string natural = 2; */\n if (message.rule.oneofKind === \"natural\")\n writer.tag(2, WireType.LengthDelimited).string(message.rule.natural);\n /* bool keyed = 3; */\n if (message.rule.oneofKind === \"keyed\")\n writer.tag(3, WireType.Varint).bool(message.rule.keyed);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.RetryRule\n */\nexport const RetryRule = new RetryRule$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetOperationPeriodRequest$Type extends MessageType<GetOperationPeriodRequest> {\n constructor() {\n super(\"sid.v1.common.GetOperationPeriodRequest\", []);\n }\n create(value?: PartialMessage<GetOperationPeriodRequest>): GetOperationPeriodRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<GetOperationPeriodRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOperationPeriodRequest): GetOperationPeriodRequest {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: GetOperationPeriodRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.GetOperationPeriodRequest\n */\nexport const GetOperationPeriodRequest = new GetOperationPeriodRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass OperationPeriod$Type extends MessageType<OperationPeriod> {\n constructor() {\n super(\"sid.v1.common.OperationPeriod\", [\n { no: 1, name: \"period\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"accepted_until\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<OperationPeriod>): OperationPeriod {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.period = 0n;\n if (value !== undefined)\n reflectionMergePartial<OperationPeriod>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OperationPeriod): OperationPeriod {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 period */ 1:\n message.period = reader.uint64().toBigInt();\n break;\n case /* google.protobuf.Timestamp accepted_until */ 2:\n message.acceptedUntil = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.acceptedUntil);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: OperationPeriod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 period = 1; */\n if (message.period !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.period);\n /* google.protobuf.Timestamp accepted_until = 2; */\n if (message.acceptedUntil)\n Timestamp.internalBinaryWrite(message.acceptedUntil, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.OperationPeriod\n */\nexport const OperationPeriod = new OperationPeriod$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.common.OperationService\n */\nexport const OperationService = new ServiceType(\"sid.v1.common.OperationService\", [\n { name: \"GetOperationPeriod\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { get: \"/v1/operations/period\" }, \"sid.v1.common.retry\": { natural: \"the current period is answered, issued when none is current: a repeat answers the same period until a later one replaces it, and no call retires a period another caller still holds within its acceptance bound\" } }, I: GetOperationPeriodRequest, O: OperationPeriod }\n]);\n"]}
|
|
@@ -1316,13 +1316,13 @@ export const UpstreamLinkingRequired = new UpstreamLinkingRequired$Type();
|
|
|
1316
1316
|
* @generated ServiceType for protobuf service sid.v1.federation.UpstreamService
|
|
1317
1317
|
*/
|
|
1318
1318
|
export const UpstreamService = new ServiceType("sid.v1.federation.UpstreamService", [
|
|
1319
|
-
{ name: "CreateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/upstream/providers", body: "*" } }, I: CreateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1319
|
+
{ name: "CreateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/upstream/providers", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1320
1320
|
{ name: "GetUpstreamProvider", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers/{provider_id}" } }, I: GetUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1321
|
-
{ name: "UpdateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/upstream/providers/{provider_id}", body: "*" } }, I: UpdateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1322
|
-
{ name: "DeleteUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/upstream/providers/{provider_id}" } }, I: DeleteUpstreamProviderRequest, O: DeleteUpstreamProviderResponse },
|
|
1321
|
+
{ name: "UpdateUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/upstream/providers/{provider_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateUpstreamProviderRequest, O: UpstreamProviderResponse },
|
|
1322
|
+
{ name: "DeleteUpstreamProvider", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/upstream/providers/{provider_id}" }, "sid.v1.common.retry": { natural: "a provider id is never reused, so a deleted provider stays deleted: a repeat deletes nothing and answers as the first" } }, I: DeleteUpstreamProviderRequest, O: DeleteUpstreamProviderResponse },
|
|
1323
1323
|
{ name: "ListUpstreamProviders", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers" } }, I: ListUpstreamProvidersRequest, O: ListUpstreamProvidersResponse },
|
|
1324
1324
|
{ name: "ListEnabledProviders", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/upstream/providers/enabled" } }, I: ListEnabledProvidersRequest, O: ListEnabledProvidersResponse },
|
|
1325
|
-
{ name: "InitiateUpstreamAuth", options: { "google.api.http": { post: "/v1/upstream/auth/initiate", body: "*" } }, I: InitiateUpstreamAuthRequest, O: InitiateUpstreamAuthResponse },
|
|
1326
|
-
{ name: "HandleUpstreamCallback", options: { "google.api.http": { post: "/v1/upstream/auth/callback", body: "*" } }, I: HandleUpstreamCallbackRequest, O: HandleUpstreamCallbackResponse }
|
|
1325
|
+
{ name: "InitiateUpstreamAuth", options: { "google.api.http": { post: "/v1/upstream/auth/initiate", body: "*" }, "sid.v1.common.retry": { ceremony: "each request opens its own single-use sign-in state; nothing changes before its callback" } }, I: InitiateUpstreamAuthRequest, O: InitiateUpstreamAuthResponse },
|
|
1326
|
+
{ name: "HandleUpstreamCallback", options: { "google.api.http": { post: "/v1/upstream/auth/callback", body: "*" }, "sid.v1.common.retry": { ceremony: "RFC 6749 \u00A710.12: the sign-in state is taken by its callback; a repeat finds none and signs nobody in" } }, I: HandleUpstreamCallbackRequest, O: HandleUpstreamCallbackResponse }
|
|
1327
1327
|
]);
|
|
1328
1328
|
//# sourceMappingURL=upstream.js.map
|