@structured-id/proto 0.18.0 → 0.19.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.
Files changed (156) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/generated/sid/v1/account/account.client.d.ts +14 -2
  3. package/dist/generated/sid/v1/account/account.client.js +7 -1
  4. package/dist/generated/sid/v1/account/account.client.js.map +1 -1
  5. package/dist/generated/sid/v1/account/account.js +28 -28
  6. package/dist/generated/sid/v1/account/account.js.map +1 -1
  7. package/dist/generated/sid/v1/admin/admin.client.d.ts +2 -0
  8. package/dist/generated/sid/v1/admin/admin.client.js +1 -0
  9. package/dist/generated/sid/v1/admin/admin.client.js.map +1 -1
  10. package/dist/generated/sid/v1/admin/admin.js +7 -7
  11. package/dist/generated/sid/v1/admin/admin.js.map +1 -1
  12. package/dist/generated/sid/v1/admin/admin_roles.js +11 -11
  13. package/dist/generated/sid/v1/admin/admin_roles.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/analytics.js +5 -5
  15. package/dist/generated/sid/v1/admin/analytics.js.map +1 -1
  16. package/dist/generated/sid/v1/admin/branding.js +8 -8
  17. package/dist/generated/sid/v1/admin/branding.js.map +1 -1
  18. package/dist/generated/sid/v1/admin/enrollment.client.js +3 -0
  19. package/dist/generated/sid/v1/admin/enrollment.client.js.map +1 -1
  20. package/dist/generated/sid/v1/admin/enrollment.js +10 -10
  21. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  22. package/dist/generated/sid/v1/admin/events.js +10 -10
  23. package/dist/generated/sid/v1/admin/events.js.map +1 -1
  24. package/dist/generated/sid/v1/admin/flow.js +8 -8
  25. package/dist/generated/sid/v1/admin/flow.js.map +1 -1
  26. package/dist/generated/sid/v1/admin/keys.js +6 -6
  27. package/dist/generated/sid/v1/admin/keys.js.map +1 -1
  28. package/dist/generated/sid/v1/admin/login_experience.js +7 -7
  29. package/dist/generated/sid/v1/admin/login_experience.js.map +1 -1
  30. package/dist/generated/sid/v1/admin/migration.js +7 -7
  31. package/dist/generated/sid/v1/admin/migration.js.map +1 -1
  32. package/dist/generated/sid/v1/admin/notifications.client.d.ts +6 -0
  33. package/dist/generated/sid/v1/admin/notifications.client.js +3 -0
  34. package/dist/generated/sid/v1/admin/notifications.client.js.map +1 -1
  35. package/dist/generated/sid/v1/admin/notifications.js +6 -6
  36. package/dist/generated/sid/v1/admin/notifications.js.map +1 -1
  37. package/dist/generated/sid/v1/admin/operations.js +14 -14
  38. package/dist/generated/sid/v1/admin/operations.js.map +1 -1
  39. package/dist/generated/sid/v1/admin/organizations.js +2 -2
  40. package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
  41. package/dist/generated/sid/v1/admin/provisioning.js +10 -10
  42. package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
  43. package/dist/generated/sid/v1/admin/scopes.js +11 -11
  44. package/dist/generated/sid/v1/admin/scopes.js.map +1 -1
  45. package/dist/generated/sid/v1/admin/security.js +25 -25
  46. package/dist/generated/sid/v1/admin/security.js.map +1 -1
  47. package/dist/generated/sid/v1/admin/sessions.js +5 -5
  48. package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
  49. package/dist/generated/sid/v1/admin/settings.d.ts +269 -12
  50. package/dist/generated/sid/v1/admin/settings.js +315 -53
  51. package/dist/generated/sid/v1/admin/settings.js.map +1 -1
  52. package/dist/generated/sid/v1/admin/user_profile.js +2 -2
  53. package/dist/generated/sid/v1/admin/user_profile.js.map +1 -1
  54. package/dist/generated/sid/v1/admin/webhooks.js +16 -16
  55. package/dist/generated/sid/v1/admin/webhooks.js.map +1 -1
  56. package/dist/generated/sid/v1/attestation/attestation.client.d.ts +12 -0
  57. package/dist/generated/sid/v1/attestation/attestation.client.js +6 -0
  58. package/dist/generated/sid/v1/attestation/attestation.client.js.map +1 -1
  59. package/dist/generated/sid/v1/attestation/attestation.js +6 -6
  60. package/dist/generated/sid/v1/attestation/attestation.js.map +1 -1
  61. package/dist/generated/sid/v1/authn/application_session.js +5 -5
  62. package/dist/generated/sid/v1/authn/application_session.js.map +1 -1
  63. package/dist/generated/sid/v1/authn/auth.client.d.ts +102 -0
  64. package/dist/generated/sid/v1/authn/auth.client.js +88 -21
  65. package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
  66. package/dist/generated/sid/v1/authn/auth.d.ts +300 -11
  67. package/dist/generated/sid/v1/authn/auth.js +597 -59
  68. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  69. package/dist/generated/sid/v1/authn/flows.js +26 -26
  70. package/dist/generated/sid/v1/authn/flows.js.map +1 -1
  71. package/dist/generated/sid/v1/authn/issuer.client.d.ts +8 -2
  72. package/dist/generated/sid/v1/authn/issuer.client.js +4 -1
  73. package/dist/generated/sid/v1/authn/issuer.client.js.map +1 -1
  74. package/dist/generated/sid/v1/authn/issuer.d.ts +13 -6
  75. package/dist/generated/sid/v1/authn/issuer.js +19 -19
  76. package/dist/generated/sid/v1/authn/issuer.js.map +1 -1
  77. package/dist/generated/sid/v1/authn/password_history.client.d.ts +2 -2
  78. package/dist/generated/sid/v1/authn/password_history.client.js +1 -1
  79. package/dist/generated/sid/v1/authn/password_history.client.js.map +1 -1
  80. package/dist/generated/sid/v1/authn/password_history.d.ts +15 -0
  81. package/dist/generated/sid/v1/authn/password_history.js +11 -3
  82. package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
  83. package/dist/generated/sid/v1/authn/system_integration.js +1 -1
  84. package/dist/generated/sid/v1/authn/system_integration.js.map +1 -1
  85. package/dist/generated/sid/v1/authz/authz.client.d.ts +60 -0
  86. package/dist/generated/sid/v1/authz/authz.client.js +49 -17
  87. package/dist/generated/sid/v1/authz/authz.client.js.map +1 -1
  88. package/dist/generated/sid/v1/authz/authz.d.ts +195 -2
  89. package/dist/generated/sid/v1/authz/authz.js +322 -29
  90. package/dist/generated/sid/v1/authz/authz.js.map +1 -1
  91. package/dist/generated/sid/v1/authz/forward_auth.js +1 -1
  92. package/dist/generated/sid/v1/authz/forward_auth.js.map +1 -1
  93. package/dist/generated/sid/v1/authz/governance.js +4 -4
  94. package/dist/generated/sid/v1/authz/governance.js.map +1 -1
  95. package/dist/generated/sid/v1/common/access.d.ts +219 -0
  96. package/dist/generated/sid/v1/common/access.js +285 -0
  97. package/dist/generated/sid/v1/common/access.js.map +1 -0
  98. package/dist/generated/sid/v1/common/errors.d.ts +45 -0
  99. package/dist/generated/sid/v1/common/errors.js +45 -0
  100. package/dist/generated/sid/v1/common/errors.js.map +1 -1
  101. package/dist/generated/sid/v1/common/maintenance.d.ts +50 -0
  102. package/dist/generated/sid/v1/common/maintenance.js +56 -0
  103. package/dist/generated/sid/v1/common/maintenance.js.map +1 -0
  104. package/dist/generated/sid/v1/common/operation.js +1 -1
  105. package/dist/generated/sid/v1/common/operation.js.map +1 -1
  106. package/dist/generated/sid/v1/events/event_stream.js +2 -2
  107. package/dist/generated/sid/v1/events/event_stream.js.map +1 -1
  108. package/dist/generated/sid/v1/federation/entry.client.d.ts +190 -0
  109. package/dist/generated/sid/v1/federation/entry.client.js +123 -0
  110. package/dist/generated/sid/v1/federation/entry.client.js.map +1 -0
  111. package/dist/generated/sid/v1/federation/entry.d.ts +490 -0
  112. package/dist/generated/sid/v1/federation/entry.js +795 -0
  113. package/dist/generated/sid/v1/federation/entry.js.map +1 -0
  114. package/dist/generated/sid/v1/federation/platform_ca.client.d.ts +77 -0
  115. package/dist/generated/sid/v1/federation/platform_ca.client.js +47 -0
  116. package/dist/generated/sid/v1/federation/platform_ca.client.js.map +1 -0
  117. package/dist/generated/sid/v1/federation/platform_ca.d.ts +186 -0
  118. package/dist/generated/sid/v1/federation/platform_ca.js +285 -0
  119. package/dist/generated/sid/v1/federation/platform_ca.js.map +1 -0
  120. package/dist/generated/sid/v1/federation/site.client.d.ts +99 -0
  121. package/dist/generated/sid/v1/federation/site.client.js +62 -0
  122. package/dist/generated/sid/v1/federation/site.client.js.map +1 -0
  123. package/dist/generated/sid/v1/federation/site.d.ts +219 -0
  124. package/dist/generated/sid/v1/federation/site.js +416 -0
  125. package/dist/generated/sid/v1/federation/site.js.map +1 -0
  126. package/dist/generated/sid/v1/federation/site_admission.client.d.ts +71 -0
  127. package/dist/generated/sid/v1/federation/site_admission.client.js +42 -0
  128. package/dist/generated/sid/v1/federation/site_admission.client.js.map +1 -0
  129. package/dist/generated/sid/v1/federation/site_admission.d.ts +36 -0
  130. package/dist/generated/sid/v1/federation/site_admission.js +64 -0
  131. package/dist/generated/sid/v1/federation/site_admission.js.map +1 -0
  132. package/dist/generated/sid/v1/federation/upstream.js +8 -8
  133. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  134. package/dist/generated/sid/v1/identity/identity.client.d.ts +6 -0
  135. package/dist/generated/sid/v1/identity/identity.client.js +3 -0
  136. package/dist/generated/sid/v1/identity/identity.client.js.map +1 -1
  137. package/dist/generated/sid/v1/identity/identity.d.ts +19 -1
  138. package/dist/generated/sid/v1/identity/identity.js +49 -31
  139. package/dist/generated/sid/v1/identity/identity.js.map +1 -1
  140. package/dist/generated/sid/v1/machine/machine_user.js +14 -14
  141. package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
  142. package/dist/generated/sid/v1/machine/pat.js +7 -7
  143. package/dist/generated/sid/v1/machine/pat.js.map +1 -1
  144. package/dist/generated/sid/v1/projects/projects.d.ts +32 -6
  145. package/dist/generated/sid/v1/projects/projects.js +34 -27
  146. package/dist/generated/sid/v1/projects/projects.js.map +1 -1
  147. package/dist/generated/sid/v1/scim/scim.js +28 -28
  148. package/dist/generated/sid/v1/scim/scim.js.map +1 -1
  149. package/dist/generated/sid/v1/test/test.client.d.ts +2 -0
  150. package/dist/generated/sid/v1/test/test.client.js +1 -0
  151. package/dist/generated/sid/v1/test/test.client.js.map +1 -1
  152. package/dist/generated/sid/v1/test/test.js +12 -12
  153. package/dist/generated/sid/v1/test/test.js.map +1 -1
  154. package/dist/generated/sid/v1/ui/public_settings.js +2 -2
  155. package/dist/generated/sid/v1/ui/public_settings.js.map +1 -1
  156. package/package.json +3 -3
@@ -388,6 +388,14 @@ export var ErrorReason;
388
388
  * @generated from protobuf enum value: REGISTRATION_DISABLED = 72;
389
389
  */
390
390
  ErrorReason[ErrorReason["REGISTRATION_DISABLED"] = 72] = "REGISTRATION_DISABLED";
391
+ /**
392
+ * A role assignment set is no longer at the revision the replacement was
393
+ * decided against: nothing was written. ErrorInfo metadata `currentRevision`
394
+ * carries the set's revision; the caller reads the set again and decides.
395
+ *
396
+ * @generated from protobuf enum value: ROLE_ASSIGNMENT_SET_CHANGED = 73;
397
+ */
398
+ ErrorReason[ErrorReason["ROLE_ASSIGNMENT_SET_CHANGED"] = 73] = "ROLE_ASSIGNMENT_SET_CHANGED";
391
399
  /**
392
400
  * Rate limit exceeded (login attempts, API calls, etc.).
393
401
  *
@@ -533,6 +541,12 @@ export var ErrorReason;
533
541
  * @generated from protobuf enum value: PROVISIONING_CONNECTOR_NOT_FOUND = 134;
534
542
  */
535
543
  ErrorReason[ErrorReason["PROVISIONING_CONNECTOR_NOT_FOUND"] = 134] = "PROVISIONING_CONNECTOR_NOT_FOUND";
544
+ /**
545
+ * The installation has no entry connection with this handle.
546
+ *
547
+ * @generated from protobuf enum value: ENTRY_CONNECTION_NOT_FOUND = 135;
548
+ */
549
+ ErrorReason[ErrorReason["ENTRY_CONNECTION_NOT_FOUND"] = 135] = "ENTRY_CONNECTION_NOT_FOUND";
536
550
  /**
537
551
  * The project already has a group of this name.
538
552
  *
@@ -552,6 +566,37 @@ export var ErrorReason;
552
566
  * @generated from protobuf enum value: ATTESTATION_ALREADY_EXISTS = 122;
553
567
  */
554
568
  ErrorReason[ErrorReason["ATTESTATION_ALREADY_EXISTS"] = 122] = "ATTESTATION_ALREADY_EXISTS";
569
+ /**
570
+ * The issuer already has an entry connection in this installation: one
571
+ * issuer has one connection.
572
+ *
573
+ * @generated from protobuf enum value: ENTRY_CONNECTION_ALREADY_EXISTS = 123;
574
+ */
575
+ ErrorReason[ErrorReason["ENTRY_CONNECTION_ALREADY_EXISTS"] = 123] = "ENTRY_CONNECTION_ALREADY_EXISTS";
576
+ /**
577
+ * A site's admission statement is not authentic for what it states: its
578
+ * participant certificate is not on an admitted path, not for the
579
+ * federation participant purpose, known revoked, or does not enroll the
580
+ * statement's organization, site and entry, or the statement is outside
581
+ * its time. Publishing the same statement again cannot succeed.
582
+ *
583
+ * @generated from protobuf enum value: SITE_ADMISSION_NOT_AUTHENTIC = 136;
584
+ */
585
+ ErrorReason[ErrorReason["SITE_ADMISSION_NOT_AUTHENTIC"] = 136] = "SITE_ADMISSION_NOT_AUTHENTIC";
586
+ /**
587
+ * A site's admission statement repeats a settings revision already held
588
+ * for its entry with other conditions; one revision names one content.
589
+ *
590
+ * @generated from protobuf enum value: SITE_ADMISSION_REVISION_CONFLICT = 137;
591
+ */
592
+ ErrorReason[ErrorReason["SITE_ADMISSION_REVISION_CONFLICT"] = 137] = "SITE_ADMISSION_REVISION_CONFLICT";
593
+ /**
594
+ * A newer settings revision is already held for the statement's entry:
595
+ * the older statement has nothing left to deliver.
596
+ *
597
+ * @generated from protobuf enum value: SITE_ADMISSION_SUPERSEDED = 138;
598
+ */
599
+ ErrorReason[ErrorReason["SITE_ADMISSION_SUPERSEDED"] = 138] = "SITE_ADMISSION_SUPERSEDED";
555
600
  /**
556
601
  * The operation's outcome cannot be established yet; retry it with the
557
602
  * same key, never with a new one.
@@ -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,WAgjBX;AAhjBD,WAAY,WAAW;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vD,0BAA0B;QAC1B,IAAI,OAAO,CAAC,OAAO,KAAK,EAAE;YACtB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACpE,4BAA4B;QAC5B,IAAI,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"]}
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,WA6lBX;AA7lBD,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,oE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AU,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 * A role assignment set is no longer at the revision the replacement was\n * decided against: nothing was written. ErrorInfo metadata `currentRevision`\n * carries the set's revision; the caller reads the set again and decides.\n *\n * @generated from protobuf enum value: ROLE_ASSIGNMENT_SET_CHANGED = 73;\n */\n ROLE_ASSIGNMENT_SET_CHANGED = 73,\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 installation has no entry connection with this handle.\n *\n * @generated from protobuf enum value: ENTRY_CONNECTION_NOT_FOUND = 135;\n */\n ENTRY_CONNECTION_NOT_FOUND = 135,\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 issuer already has an entry connection in this installation: one\n * issuer has one connection.\n *\n * @generated from protobuf enum value: ENTRY_CONNECTION_ALREADY_EXISTS = 123;\n */\n ENTRY_CONNECTION_ALREADY_EXISTS = 123,\n /**\n * A site's admission statement is not authentic for what it states: its\n * participant certificate is not on an admitted path, not for the\n * federation participant purpose, known revoked, or does not enroll the\n * statement's organization, site and entry, or the statement is outside\n * its time. Publishing the same statement again cannot succeed.\n *\n * @generated from protobuf enum value: SITE_ADMISSION_NOT_AUTHENTIC = 136;\n */\n SITE_ADMISSION_NOT_AUTHENTIC = 136,\n /**\n * A site's admission statement repeats a settings revision already held\n * for its entry with other conditions; one revision names one content.\n *\n * @generated from protobuf enum value: SITE_ADMISSION_REVISION_CONFLICT = 137;\n */\n SITE_ADMISSION_REVISION_CONFLICT = 137,\n /**\n * A newer settings revision is already held for the statement's entry:\n * the older statement has nothing left to deliver.\n *\n * @generated from protobuf enum value: SITE_ADMISSION_SUPERSEDED = 138;\n */\n SITE_ADMISSION_SUPERSEDED = 138,\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,50 @@
1
+ /**
2
+ * The maintenance purpose of one method.
3
+ *
4
+ * @generated from protobuf enum sid.v1.common.MaintenancePurpose
5
+ */
6
+ export declare enum MaintenancePurpose {
7
+ /**
8
+ * Not a purpose; never declared.
9
+ *
10
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_UNSPECIFIED = 0;
11
+ */
12
+ UNSPECIFIED = 0,
13
+ /**
14
+ * A step of signing in: resolving the login, its challenges and factors
15
+ * (including the enrollment a sign-in's policy requires before it
16
+ * completes), the decision of a sign-in to a service, the session it
17
+ * establishes or renews, and the context the signed-in page reads to go
18
+ * on. Kept during backup maintenance with the writes the sign-in needs
19
+ * (challenge, replay, attempt and session state, audit); during full
20
+ * maintenance only for an entry the scope keeps open, such as authorized
21
+ * management.
22
+ *
23
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_SIGN_IN = 1;
24
+ */
25
+ SIGN_IN = 1,
26
+ /**
27
+ * Reads the caller's own data and changes nothing. Kept during backup
28
+ * maintenance; refused during full maintenance.
29
+ *
30
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_READ = 2;
31
+ */
32
+ READ = 2,
33
+ /**
34
+ * A change: registration, a profile, setting, contact or credential
35
+ * change (removing a passkey or ending another session included), a
36
+ * password change or reset. Refused during either level.
37
+ *
38
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_CHANGE = 3;
39
+ */
40
+ CHANGE = 3,
41
+ /**
42
+ * Use of a credential already issued, by the application holding it
43
+ * (validation, introspection, revocation): a permission check, kept
44
+ * during either level, as applications keep using issued credentials
45
+ * under their normal lifetime.
46
+ *
47
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_ISSUED_CREDENTIAL = 4;
48
+ */
49
+ ISSUED_CREDENTIAL = 4
50
+ }
@@ -0,0 +1,56 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck
2
+ // @generated from protobuf file "sid/v1/common/maintenance.proto" (package "sid.v1.common", syntax proto3)
3
+ // tslint:disable
4
+ // @ts-nocheck
5
+ /**
6
+ * The maintenance purpose of one method.
7
+ *
8
+ * @generated from protobuf enum sid.v1.common.MaintenancePurpose
9
+ */
10
+ export var MaintenancePurpose;
11
+ (function (MaintenancePurpose) {
12
+ /**
13
+ * Not a purpose; never declared.
14
+ *
15
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_UNSPECIFIED = 0;
16
+ */
17
+ MaintenancePurpose[MaintenancePurpose["UNSPECIFIED"] = 0] = "UNSPECIFIED";
18
+ /**
19
+ * A step of signing in: resolving the login, its challenges and factors
20
+ * (including the enrollment a sign-in's policy requires before it
21
+ * completes), the decision of a sign-in to a service, the session it
22
+ * establishes or renews, and the context the signed-in page reads to go
23
+ * on. Kept during backup maintenance with the writes the sign-in needs
24
+ * (challenge, replay, attempt and session state, audit); during full
25
+ * maintenance only for an entry the scope keeps open, such as authorized
26
+ * management.
27
+ *
28
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_SIGN_IN = 1;
29
+ */
30
+ MaintenancePurpose[MaintenancePurpose["SIGN_IN"] = 1] = "SIGN_IN";
31
+ /**
32
+ * Reads the caller's own data and changes nothing. Kept during backup
33
+ * maintenance; refused during full maintenance.
34
+ *
35
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_READ = 2;
36
+ */
37
+ MaintenancePurpose[MaintenancePurpose["READ"] = 2] = "READ";
38
+ /**
39
+ * A change: registration, a profile, setting, contact or credential
40
+ * change (removing a passkey or ending another session included), a
41
+ * password change or reset. Refused during either level.
42
+ *
43
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_CHANGE = 3;
44
+ */
45
+ MaintenancePurpose[MaintenancePurpose["CHANGE"] = 3] = "CHANGE";
46
+ /**
47
+ * Use of a credential already issued, by the application holding it
48
+ * (validation, introspection, revocation): a permission check, kept
49
+ * during either level, as applications keep using issued credentials
50
+ * under their normal lifetime.
51
+ *
52
+ * @generated from protobuf enum value: MAINTENANCE_PURPOSE_ISSUED_CREDENTIAL = 4;
53
+ */
54
+ MaintenancePurpose[MaintenancePurpose["ISSUED_CREDENTIAL"] = 4] = "ISSUED_CREDENTIAL";
55
+ })(MaintenancePurpose || (MaintenancePurpose = {}));
56
+ //# sourceMappingURL=maintenance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maintenance.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/maintenance.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,2GAA2G;AAC3G,iBAAiB;AACjB,cAAc;AACd;;;;GAIG;AACH,MAAM,CAAN,IAAY,kBA4CX;AA5CD,WAAY,kBAAkB;IAC1B;;;;OAIG;IACH,yEAAe,CAAA;IACf;;;;;;;;;;;OAWG;IACH,iEAAW,CAAA;IACX;;;;;OAKG;IACH,2DAAQ,CAAA;IACR;;;;;;OAMG;IACH,+DAAU,CAAA;IACV;;;;;;;OAOG;IACH,qFAAqB,CAAA;AACzB,CAAC,EA5CW,kBAAkB,KAAlB,kBAAkB,QA4C7B","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/common/maintenance.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n/**\n * The maintenance purpose of one method.\n *\n * @generated from protobuf enum sid.v1.common.MaintenancePurpose\n */\nexport enum MaintenancePurpose {\n /**\n * Not a purpose; never declared.\n *\n * @generated from protobuf enum value: MAINTENANCE_PURPOSE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * A step of signing in: resolving the login, its challenges and factors\n * (including the enrollment a sign-in's policy requires before it\n * completes), the decision of a sign-in to a service, the session it\n * establishes or renews, and the context the signed-in page reads to go\n * on. Kept during backup maintenance with the writes the sign-in needs\n * (challenge, replay, attempt and session state, audit); during full\n * maintenance only for an entry the scope keeps open, such as authorized\n * management.\n *\n * @generated from protobuf enum value: MAINTENANCE_PURPOSE_SIGN_IN = 1;\n */\n SIGN_IN = 1,\n /**\n * Reads the caller's own data and changes nothing. Kept during backup\n * maintenance; refused during full maintenance.\n *\n * @generated from protobuf enum value: MAINTENANCE_PURPOSE_READ = 2;\n */\n READ = 2,\n /**\n * A change: registration, a profile, setting, contact or credential\n * change (removing a passkey or ending another session included), a\n * password change or reset. Refused during either level.\n *\n * @generated from protobuf enum value: MAINTENANCE_PURPOSE_CHANGE = 3;\n */\n CHANGE = 3,\n /**\n * Use of a credential already issued, by the application holding it\n * (validation, introspection, revocation): a permission check, kept\n * during either level, as applications keep using issued credentials\n * under their normal lifetime.\n *\n * @generated from protobuf enum value: MAINTENANCE_PURPOSE_ISSUED_CREDENTIAL = 4;\n */\n ISSUED_CREDENTIAL = 4\n}\n"]}
@@ -174,6 +174,6 @@ export const OperationPeriod = new OperationPeriod$Type();
174
174
  * @generated ServiceType for protobuf service sid.v1.common.OperationService
175
175
  */
176
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 }
177
+ { name: "GetOperationPeriod", idempotency: "IDEMPOTENT", options: { "google.api.http": { get: "/v1/operations/period" }, "sid.v1.common.access": { open: "a period conveys no permission and selects no issuer, tenant or store" }, "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
178
  ]);
179
179
  //# sourceMappingURL=operation.js.map
@@ -1 +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,EAAE,MAAM,uCAAuC,CAAC;AAoFl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AAI,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 = 1\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 = 2\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 = 3\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: 1, name: \"keyed\", kind: \"scalar\", oneof: \"rule\", T: 8 /*ScalarType.BOOL*/ },\n { no: 2, name: \"ceremony\", kind: \"scalar\", oneof: \"rule\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, 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 */ 1:\n message.rule = {\n oneofKind: \"keyed\",\n keyed: reader.bool()\n };\n break;\n case /* string ceremony */ 2:\n message.rule = {\n oneofKind: \"ceremony\",\n ceremony: reader.string()\n };\n break;\n case /* string natural */ 3:\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 /* bool keyed = 1; */\n if (message.rule.oneofKind === \"keyed\")\n writer.tag(1, WireType.Varint).bool(message.rule.keyed);\n /* string ceremony = 2; */\n if (message.rule.oneofKind === \"ceremony\")\n writer.tag(2, WireType.LengthDelimited).string(message.rule.ceremony);\n /* string natural = 3; */\n if (message.rule.oneofKind === \"natural\")\n writer.tag(3, WireType.LengthDelimited).string(message.rule.natural);\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"]}
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,EAAE,MAAM,uCAAuC,CAAC;AAoFlE,2FAA2F;AAC3F,MAAM,cAAe,SAAQ,WAAsB;IAC/C;QACI,KAAK,CAAC,yBAAyB,EAAE;YAC7B,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,mBAAmB,EAAE;YACjF,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,qBAAqB,EAAE;YACtF,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,qBAAqB,EAAE;SACxF,CAAC,C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,EAAE,OAAO,EAAE,kNAAkN,EAAE,EAAE,EAAE,CAAC,EAAE,yBAAyB,EAAE,CAAC,EAAE,eAAe,EAAE;CACnhB,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 = 1\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 = 2\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 = 3\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: 1, name: \"keyed\", kind: \"scalar\", oneof: \"rule\", T: 8 /*ScalarType.BOOL*/ },\n { no: 2, name: \"ceremony\", kind: \"scalar\", oneof: \"rule\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, 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 */ 1:\n message.rule = {\n oneofKind: \"keyed\",\n keyed: reader.bool()\n };\n break;\n case /* string ceremony */ 2:\n message.rule = {\n oneofKind: \"ceremony\",\n ceremony: reader.string()\n };\n break;\n case /* string natural */ 3:\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 /* bool keyed = 1; */\n if (message.rule.oneofKind === \"keyed\")\n writer.tag(1, WireType.Varint).bool(message.rule.keyed);\n /* string ceremony = 2; */\n if (message.rule.oneofKind === \"ceremony\")\n writer.tag(2, WireType.LengthDelimited).string(message.rule.ceremony);\n /* string natural = 3; */\n if (message.rule.oneofKind === \"natural\")\n writer.tag(3, WireType.LengthDelimited).string(message.rule.natural);\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.access\": { open: \"a period conveys no permission and selects no issuer, tenant or store\" }, \"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"]}
@@ -254,7 +254,7 @@ export const ReplayRequest = new ReplayRequest$Type();
254
254
  * @generated ServiceType for protobuf service sid.v1.events.EventStreamService
255
255
  */
256
256
  export const EventStreamService = new ServiceType("sid.v1.events.EventStreamService", [
257
- { name: "Subscribe", idempotency: "NO_SIDE_EFFECTS", serverStreaming: true, options: {}, I: SubscribeRequest, O: CloudEvent },
258
- { name: "Replay", idempotency: "NO_SIDE_EFFECTS", serverStreaming: true, options: {}, I: ReplayRequest, O: CloudEvent }
257
+ { name: "Subscribe", idempotency: "NO_SIDE_EFFECTS", serverStreaming: true, options: { "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: SubscribeRequest, O: CloudEvent },
258
+ { name: "Replay", idempotency: "NO_SIDE_EFFECTS", serverStreaming: true, options: { "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: ReplayRequest, O: CloudEvent }
259
259
  ]);
260
260
  //# sourceMappingURL=event_stream.js.map