@structured-id/proto 0.8.0 → 0.10.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 (138) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/generated/sid/v1/account/account.client.d.ts +24 -32
  3. package/dist/generated/sid/v1/account/account.client.js +12 -16
  4. package/dist/generated/sid/v1/account/account.client.js.map +1 -1
  5. package/dist/generated/sid/v1/account/account.js +18 -18
  6. package/dist/generated/sid/v1/account/account.js.map +1 -1
  7. package/dist/generated/sid/v1/admin/admin.js +5 -5
  8. package/dist/generated/sid/v1/admin/admin.js.map +1 -1
  9. package/dist/generated/sid/v1/admin/admin_roles.js +5 -5
  10. package/dist/generated/sid/v1/admin/admin_roles.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/branding.client.d.ts +0 -2
  12. package/dist/generated/sid/v1/admin/branding.client.js +0 -1
  13. package/dist/generated/sid/v1/admin/branding.client.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/branding.js +4 -4
  15. package/dist/generated/sid/v1/admin/branding.js.map +1 -1
  16. package/dist/generated/sid/v1/admin/enrollment.js +4 -4
  17. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  18. package/dist/generated/sid/v1/admin/events.js +1 -1
  19. package/dist/generated/sid/v1/admin/events.js.map +1 -1
  20. package/dist/generated/sid/v1/admin/flow.client.d.ts +8 -4
  21. package/dist/generated/sid/v1/admin/flow.client.js +4 -2
  22. package/dist/generated/sid/v1/admin/flow.client.js.map +1 -1
  23. package/dist/generated/sid/v1/admin/flow.js +4 -4
  24. package/dist/generated/sid/v1/admin/flow.js.map +1 -1
  25. package/dist/generated/sid/v1/admin/keys.js +3 -3
  26. package/dist/generated/sid/v1/admin/keys.js.map +1 -1
  27. package/dist/generated/sid/v1/admin/login_experience.js +3 -3
  28. package/dist/generated/sid/v1/admin/login_experience.js.map +1 -1
  29. package/dist/generated/sid/v1/admin/migration.js +3 -3
  30. package/dist/generated/sid/v1/admin/migration.js.map +1 -1
  31. package/dist/generated/sid/v1/admin/notifications.js +3 -3
  32. package/dist/generated/sid/v1/admin/notifications.js.map +1 -1
  33. package/dist/generated/sid/v1/admin/operations.js +5 -5
  34. package/dist/generated/sid/v1/admin/operations.js.map +1 -1
  35. package/dist/generated/sid/v1/admin/organizations.js +1 -1
  36. package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
  37. package/dist/generated/sid/v1/admin/provisioning.client.d.ts +16 -16
  38. package/dist/generated/sid/v1/admin/provisioning.client.js +8 -8
  39. package/dist/generated/sid/v1/admin/provisioning.client.js.map +1 -1
  40. package/dist/generated/sid/v1/admin/provisioning.js +6 -6
  41. package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
  42. package/dist/generated/sid/v1/admin/scopes.js +7 -7
  43. package/dist/generated/sid/v1/admin/scopes.js.map +1 -1
  44. package/dist/generated/sid/v1/admin/security.client.d.ts +10 -4
  45. package/dist/generated/sid/v1/admin/security.client.js +5 -2
  46. package/dist/generated/sid/v1/admin/security.client.js.map +1 -1
  47. package/dist/generated/sid/v1/admin/security.d.ts +17 -0
  48. package/dist/generated/sid/v1/admin/security.js +26 -10
  49. package/dist/generated/sid/v1/admin/security.js.map +1 -1
  50. package/dist/generated/sid/v1/admin/sessions.js +3 -3
  51. package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
  52. package/dist/generated/sid/v1/admin/settings.js +11 -11
  53. package/dist/generated/sid/v1/admin/settings.js.map +1 -1
  54. package/dist/generated/sid/v1/admin/user_profile.js +1 -1
  55. package/dist/generated/sid/v1/admin/user_profile.js.map +1 -1
  56. package/dist/generated/sid/v1/admin/webhooks.js +9 -9
  57. package/dist/generated/sid/v1/admin/webhooks.js.map +1 -1
  58. package/dist/generated/sid/v1/attestation/attestation.client.d.ts +4 -2
  59. package/dist/generated/sid/v1/attestation/attestation.client.js +2 -1
  60. package/dist/generated/sid/v1/attestation/attestation.client.js.map +1 -1
  61. package/dist/generated/sid/v1/attestation/attestation.js +3 -3
  62. package/dist/generated/sid/v1/attestation/attestation.js.map +1 -1
  63. package/dist/generated/sid/v1/authn/application_session.client.d.ts +45 -2
  64. package/dist/generated/sid/v1/authn/application_session.client.js +25 -1
  65. package/dist/generated/sid/v1/authn/application_session.client.js.map +1 -1
  66. package/dist/generated/sid/v1/authn/application_session.d.ts +24 -0
  67. package/dist/generated/sid/v1/authn/application_session.js +52 -5
  68. package/dist/generated/sid/v1/authn/application_session.js.map +1 -1
  69. package/dist/generated/sid/v1/authn/auth.client.d.ts +40 -36
  70. package/dist/generated/sid/v1/authn/auth.client.js +80 -80
  71. package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
  72. package/dist/generated/sid/v1/authn/auth.d.ts +102 -160
  73. package/dist/generated/sid/v1/authn/auth.js +123 -306
  74. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  75. package/dist/generated/sid/v1/authn/flows.js +16 -16
  76. package/dist/generated/sid/v1/authn/flows.js.map +1 -1
  77. package/dist/generated/sid/v1/authn/issuer.client.d.ts +44 -0
  78. package/dist/generated/sid/v1/authn/issuer.client.js +24 -0
  79. package/dist/generated/sid/v1/authn/issuer.client.js.map +1 -1
  80. package/dist/generated/sid/v1/authn/issuer.d.ts +40 -0
  81. package/dist/generated/sid/v1/authn/issuer.js +78 -14
  82. package/dist/generated/sid/v1/authn/issuer.js.map +1 -1
  83. package/dist/generated/sid/v1/authn/native_session.d.ts +189 -0
  84. package/dist/generated/sid/v1/authn/native_session.js +265 -0
  85. package/dist/generated/sid/v1/authn/native_session.js.map +1 -0
  86. package/dist/generated/sid/v1/authn/password_history.js +2 -2
  87. package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
  88. package/dist/generated/sid/v1/authn/sender_proof.d.ts +114 -0
  89. package/dist/generated/sid/v1/authn/sender_proof.js +132 -0
  90. package/dist/generated/sid/v1/authn/sender_proof.js.map +1 -0
  91. package/dist/generated/sid/v1/authn/system_integration.js +1 -1
  92. package/dist/generated/sid/v1/authn/system_integration.js.map +1 -1
  93. package/dist/generated/sid/v1/authz/authz.client.d.ts +14 -2
  94. package/dist/generated/sid/v1/authz/authz.client.js +7 -1
  95. package/dist/generated/sid/v1/authz/authz.client.js.map +1 -1
  96. package/dist/generated/sid/v1/authz/authz.d.ts +6 -87
  97. package/dist/generated/sid/v1/authz/authz.js +18 -128
  98. package/dist/generated/sid/v1/authz/authz.js.map +1 -1
  99. package/dist/generated/sid/v1/authz/forward_auth.js +1 -1
  100. package/dist/generated/sid/v1/authz/forward_auth.js.map +1 -1
  101. package/dist/generated/sid/v1/authz/governance.js +3 -3
  102. package/dist/generated/sid/v1/authz/governance.js.map +1 -1
  103. package/dist/generated/sid/v1/common/operation.client.d.ts +47 -0
  104. package/dist/generated/sid/v1/common/operation.client.js +30 -0
  105. package/dist/generated/sid/v1/common/operation.client.js.map +1 -0
  106. package/dist/generated/sid/v1/common/operation.d.ts +126 -0
  107. package/dist/generated/sid/v1/common/operation.js +179 -0
  108. package/dist/generated/sid/v1/common/operation.js.map +1 -0
  109. package/dist/generated/sid/v1/federation/upstream.js +5 -5
  110. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  111. package/dist/generated/sid/v1/identity/identity.js +19 -19
  112. package/dist/generated/sid/v1/identity/identity.js.map +1 -1
  113. package/dist/generated/sid/v1/ids/ids.d.ts +2 -0
  114. package/dist/generated/sid/v1/ids/ids.js +1 -0
  115. package/dist/generated/sid/v1/ids/ids.js.map +1 -1
  116. package/dist/generated/sid/v1/machine/machine_user.client.d.ts +6 -2
  117. package/dist/generated/sid/v1/machine/machine_user.client.js +3 -1
  118. package/dist/generated/sid/v1/machine/machine_user.client.js.map +1 -1
  119. package/dist/generated/sid/v1/machine/machine_user.js +10 -10
  120. package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
  121. package/dist/generated/sid/v1/machine/pat.client.d.ts +4 -2
  122. package/dist/generated/sid/v1/machine/pat.client.js +2 -1
  123. package/dist/generated/sid/v1/machine/pat.client.js.map +1 -1
  124. package/dist/generated/sid/v1/machine/pat.js +4 -4
  125. package/dist/generated/sid/v1/machine/pat.js.map +1 -1
  126. package/dist/generated/sid/v1/projects/projects.client.d.ts +22 -12
  127. package/dist/generated/sid/v1/projects/projects.client.js +11 -6
  128. package/dist/generated/sid/v1/projects/projects.client.js.map +1 -1
  129. package/dist/generated/sid/v1/projects/projects.js +19 -19
  130. package/dist/generated/sid/v1/projects/projects.js.map +1 -1
  131. package/dist/generated/sid/v1/scim/scim.js +14 -14
  132. package/dist/generated/sid/v1/scim/scim.js.map +1 -1
  133. package/dist/generated/sid/v1/test/test.js +8 -8
  134. package/dist/generated/sid/v1/test/test.js.map +1 -1
  135. package/dist/totp.d.ts +16 -0
  136. package/dist/totp.js +64 -0
  137. package/dist/totp.js.map +1 -0
  138. package/package.json +6 -2
@@ -1,3 +1,5 @@
1
+ import type { Empty } from "../../../google/protobuf/empty.js";
2
+ import type { AdmitSenderProofRequest } from "./issuer.js";
1
3
  import type { ProtectedResourceTarget } from "./issuer.js";
2
4
  import type { GetProtectedResourceRequest } from "./issuer.js";
3
5
  import type { OidcIssuer } from "./issuer.js";
@@ -367,6 +369,27 @@ export interface IOidcIssuerServiceClient {
367
369
  * @generated from protobuf rpc: GetProtectedResource
368
370
  */
369
371
  getProtectedResource(input: GetProtectedResourceRequest, options?: RpcOptions): UnaryCall<GetProtectedResourceRequest, ProtectedResourceTarget>;
372
+ /**
373
+ * Admit one original request's sender proof at the issuer of its token
374
+ * (RFC 9449 §11.1), for a request the verifier answers without a
375
+ * permission question. The caller authenticates with its own client
376
+ * credential and must be configured as the verifier of the resource for
377
+ * the proof's kind; anyone else is PERMISSION_DENIED with ErrorInfo
378
+ * reason INSUFFICIENT_PERMISSIONS. The token must be this issuer's, for the
379
+ * resource, and bound to the confirmed key.
380
+ *
381
+ * A proof is admitted for one request. A repeat of the same request (the
382
+ * same `request_id` with the same token, method, URI and resource) within
383
+ * the confirmation's window answers OK again without extending the
384
+ * admission; the proof presented for any other request, or with any of
385
+ * these changed, is UNAUTHENTICATED with ErrorInfo reason TOKEN_INVALID
386
+ * and `oauthError` `invalid_dpop_proof`. When the
387
+ * admission cannot be decided the call is UNAVAILABLE, and the verifier
388
+ * refuses the original request; it never admits it on its own.
389
+ *
390
+ * @generated from protobuf rpc: AdmitSenderProof
391
+ */
392
+ admitSenderProof(input: AdmitSenderProofRequest, options?: RpcOptions): UnaryCall<AdmitSenderProofRequest, Empty>;
370
393
  }
371
394
  /**
372
395
  * OidcIssuerService lets services that verify an issuer's tokens resolve the
@@ -404,4 +427,25 @@ export declare class OidcIssuerServiceClient implements IOidcIssuerServiceClient
404
427
  * @generated from protobuf rpc: GetProtectedResource
405
428
  */
406
429
  getProtectedResource(input: GetProtectedResourceRequest, options?: RpcOptions): UnaryCall<GetProtectedResourceRequest, ProtectedResourceTarget>;
430
+ /**
431
+ * Admit one original request's sender proof at the issuer of its token
432
+ * (RFC 9449 §11.1), for a request the verifier answers without a
433
+ * permission question. The caller authenticates with its own client
434
+ * credential and must be configured as the verifier of the resource for
435
+ * the proof's kind; anyone else is PERMISSION_DENIED with ErrorInfo
436
+ * reason INSUFFICIENT_PERMISSIONS. The token must be this issuer's, for the
437
+ * resource, and bound to the confirmed key.
438
+ *
439
+ * A proof is admitted for one request. A repeat of the same request (the
440
+ * same `request_id` with the same token, method, URI and resource) within
441
+ * the confirmation's window answers OK again without extending the
442
+ * admission; the proof presented for any other request, or with any of
443
+ * these changed, is UNAUTHENTICATED with ErrorInfo reason TOKEN_INVALID
444
+ * and `oauthError` `invalid_dpop_proof`. When the
445
+ * admission cannot be decided the call is UNAVAILABLE, and the verifier
446
+ * refuses the original request; it never admits it on its own.
447
+ *
448
+ * @generated from protobuf rpc: AdmitSenderProof
449
+ */
450
+ admitSenderProof(input: AdmitSenderProofRequest, options?: RpcOptions): UnaryCall<AdmitSenderProofRequest, Empty>;
407
451
  }
@@ -274,5 +274,29 @@ export class OidcIssuerServiceClient {
274
274
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
275
275
  return stackIntercept("unary", this._transport, method, opt, input);
276
276
  }
277
+ /**
278
+ * Admit one original request's sender proof at the issuer of its token
279
+ * (RFC 9449 §11.1), for a request the verifier answers without a
280
+ * permission question. The caller authenticates with its own client
281
+ * credential and must be configured as the verifier of the resource for
282
+ * the proof's kind; anyone else is PERMISSION_DENIED with ErrorInfo
283
+ * reason INSUFFICIENT_PERMISSIONS. The token must be this issuer's, for the
284
+ * resource, and bound to the confirmed key.
285
+ *
286
+ * A proof is admitted for one request. A repeat of the same request (the
287
+ * same `request_id` with the same token, method, URI and resource) within
288
+ * the confirmation's window answers OK again without extending the
289
+ * admission; the proof presented for any other request, or with any of
290
+ * these changed, is UNAUTHENTICATED with ErrorInfo reason TOKEN_INVALID
291
+ * and `oauthError` `invalid_dpop_proof`. When the
292
+ * admission cannot be decided the call is UNAVAILABLE, and the verifier
293
+ * refuses the original request; it never admits it on its own.
294
+ *
295
+ * @generated from protobuf rpc: AdmitSenderProof
296
+ */
297
+ admitSenderProof(input, options) {
298
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
299
+ return stackIntercept("unary", this._transport, method, opt, input);
300
+ }
277
301
  }
278
302
  //# sourceMappingURL=issuer.client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"issuer.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/issuer.client.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,oGAAoG;AACpG,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAQlD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAmL1D;;;;;;;GAOG;AACH,MAAM,OAAO,yBAAyB;IAIL;IAH7B,QAAQ,GAAG,mBAAmB,CAAC,QAAQ,CAAC;IACxC,OAAO,GAAG,mBAAmB,CAAC,OAAO,CAAC;IACtC,OA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@generated from protobuf file \"sid/v1/authn/issuer.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { OidcIssuerService } from \"./issuer.js\";\nimport type { ProtectedResourceTarget } from \"./issuer.js\";\nimport type { GetProtectedResourceRequest } from \"./issuer.js\";\nimport type { OidcIssuer } from \"./issuer.js\";\nimport type { GetOidcIssuerRequest } from \"./issuer.js\";\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { OidcProviderService } from \"./issuer.js\";\nimport type { RegistrationRequest } from \"./issuer.js\";\nimport type { EndSessionRequest } from \"./issuer.js\";\nimport type { ProtocolRequest } from \"./issuer.js\";\nimport type { HttpBody } from \"../../../google/api/httpbody.js\";\nimport type { OAuth2AuthorizeRequest } from \"./auth.js\";\nimport type { UserInfo } from \"./issuer.js\";\nimport type { JsonWebKeySet } from \"./issuer.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { ProviderMetadata } from \"./issuer.js\";\nimport type { IssuerHandleRequest } from \"./issuer.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * OidcProviderService publishes one issuer's metadata and signing keys to its\n * relying parties. Every document belongs to the issuer the handle names; an\n * unknown handle is NOT_FOUND with ErrorInfo reason OIDC_ISSUER_NOT_FOUND and\n * never falls back to another issuer. There is no issuer-less document.\n *\n * @generated from protobuf service sid.v1.authn.OidcProviderService\n */\nexport interface IOidcProviderServiceClient {\n /**\n * The issuer's metadata (OpenID Connect Discovery 1.0 §3–4, RFC 8414 §2–3).\n * One document answers both discovery algorithms: the OIDC location under\n * the issuer path and the RFC 8414 well-known location with the issuer path\n * appended.\n *\n * @generated from protobuf rpc: GetProviderMetadata\n */\n getProviderMetadata(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, ProviderMetadata>;\n /**\n * The issuer's JSON Web Key Set (RFC 7517 §5): the public keys that verify\n * its tokens. The response metadata carries `cache-control` for HTTP caches.\n *\n * @generated from protobuf rpc: GetJwks\n */\n getJwks(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, JsonWebKeySet>;\n /**\n * UserInfo (OIDC Core 1.0 §5.3) over GET. The access token travels in the\n * `authorization` metadata, `Bearer` (RFC 6750 §2.1) or `DPoP` with a proof\n * in the `dpop` metadata (RFC 9449 §7.1); only tokens this issuer signed are\n * accepted. A refused token is UNAUTHENTICATED with a `www-authenticate`\n * response metadata challenge (RFC 6750 §3, RFC 9449 §7.1). GET and POST\n * are separate RPCs because a DPoP proof names the request method. A DPoP\n * proof is recorded against replay, so the call is not free of effects; a\n * repeat with the same proof is refused.\n *\n * @generated from protobuf rpc: GetUserInfo\n */\n getUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo>;\n /**\n * UserInfo over POST (OIDC Core 1.0 §5.3.1); the same answer as GetUserInfo.\n *\n * @generated from protobuf rpc: PostUserInfo\n */\n postUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo>;\n /**\n * The browser authorization endpoint (RFC 6749 §3.1) over GET, the query\n * parameters bound to the request fields. The answer is an HTTP redirect\n * (`x-http-code` 303 and `location` response metadata, RFC 9700 §4.11): to\n * the client's registered redirect URI with `code` or `error`, `state` and\n * `iss` (RFC 9207 §2), or, when the user must sign in first, to the sign-in\n * page with this request to return to. A request whose client or exact\n * redirect URI is not established is answered with a page and never\n * redirected (RFC 6749 §4.1.2.1). The signed-in user's token, when a\n * gateway holds one, travels in the `authorization` metadata.\n *\n * @generated from protobuf rpc: GetAuthorize\n */\n getAuthorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, HttpBody>;\n /**\n * The authorization endpoint over POST with a form body (OIDC Core 1.0\n * §3.1.2.1); the same answer as GetAuthorize. Parameters it does not know\n * are ignored (RFC 6749 §3.1).\n *\n * @generated from protobuf rpc: PostAuthorize\n */\n postAuthorize(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * RP-Initiated Logout (OIDC RP-Initiated Logout 1.0 §2) over GET. The\n * browser's IdP session is read from its `__Host-sid_session` cookie\n * (`cookie` metadata). A valid `id_token_hint` of this issuer ends the\n * application session it names; when that session reuses the browser's\n * IdP session, single sign-on ends too and the answer clears the cookie.\n * Otherwise ending the browser's IdP session needs the user's confirmation\n * (§2): the answer is a page with a form that confirms it by POST. A\n * `post_logout_redirect_uri` is followed only for a valid `id_token_hint`\n * whose client registered exactly that URI (§3): the answer is then a 303\n * to it with `state`, or, while the browser's IdP session remains, the\n * confirmation page, which returns there after either choice. Otherwise the\n * answer is a page.\n *\n * @generated from protobuf rpc: GetEndSession\n */\n getEndSession(input: EndSessionRequest, options?: RpcOptions): UnaryCall<EndSessionRequest, HttpBody>;\n /**\n * RP-Initiated Logout over POST with a form body: the same parameters as\n * GetEndSession, plus `confirmation`, the one-time value of the\n * confirmation page's form, which ends the browser's IdP session it was\n * issued for and returns to the post-logout redirect URI that page was\n * shown for, if any.\n *\n * @generated from protobuf rpc: PostEndSession\n */\n postEndSession(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n // The endpoints below are the HTTP form of AuthService's OAuth RPCs, with\n // the same logic: the request body is the `application/x-www-form-urlencoded`\n // form the RFC defines, the answer is the RFC's JSON with its HTTP status in\n // the `x-http-code` response metadata and its headers (`cache-control`,\n // `pragma`, `www-authenticate`) as response metadata. A refusal is an OK\n // gRPC call carrying the RFC error body; typed gRPC clients use AuthService.\n // HTTP Basic client authentication travels in the `authorization` metadata,\n // a DPoP proof in `dpop`.\n\n /**\n * Token endpoint (RFC 6749 §3.2): every grant, including the device_code\n * grant (RFC 8628 §3.4). Success is RFC 6749 §5.1 JSON with\n * `cache-control: no-store`; a refusal is RFC 6749 §5.2 or RFC 8628 §3.5\n * JSON, 401 with a `www-authenticate` challenge for `invalid_client` when\n * the client used HTTP Basic, 400 otherwise.\n *\n * @generated from protobuf rpc: Token\n */\n token(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * Token introspection (RFC 7662 §2): RFC 7662 §2.2 JSON, `{\"active\":false}`\n * for any token this issuer does not vouch for. A client assertion is\n * recorded against replay, so the call is not free of effects.\n *\n * @generated from protobuf rpc: Introspect\n */\n introspect(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * Token revocation (RFC 7009 §2): 200 with an empty body, also for a token\n * that is unknown or already revoked (RFC 7009 §2.2).\n *\n * @generated from protobuf rpc: Revoke\n */\n revoke(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * Device authorization (RFC 8628 §3.1): RFC 8628 §3.2 JSON; a refusal is\n * RFC 6749 §5.2 JSON as at the token endpoint.\n *\n * @generated from protobuf rpc: DeviceAuthorization\n */\n deviceAuthorization(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n // The registration endpoints below are the HTTP form of ProjectService's\n // dynamic registration RPCs, with the same logic. Bodies are\n // `application/json` client metadata (RFC 7591 §2); the initial access\n // token or registration access token travels as a bearer token in the\n // `authorization` metadata. A refusal is an OK gRPC call carrying the RFC\n // error body with its HTTP status in `x-http-code`.\n\n /**\n * Client registration (RFC 7591 §3.1). Success is 201 with every\n * registered metadata value, the credentials and the management location\n * (RFC 7591 §3.2.1, RFC 7592 §3); invalid metadata is 400 with\n * `invalid_client_metadata` or `invalid_redirect_uri` (RFC 7591 §3.2.2); a\n * missing or invalid initial access token is 401 (RFC 6750 §3.1).\n *\n * @generated from protobuf rpc: Register\n */\n register(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * Read a registration (RFC 7592 §2.1): the client's current metadata as at\n * registration, without its secret. An invalid registration access token,\n * or a client this issuer does not have, is 401 (RFC 7592 §2.1).\n *\n * @generated from protobuf rpc: ReadRegistration\n */\n readRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;\n /**\n * Update a registration (RFC 7592 §2.2): the body replaces the client's\n * metadata and is validated as a registration; a refused update changes\n * nothing.\n *\n * @generated from protobuf rpc: UpdateRegistration\n */\n updateRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;\n /**\n * Delete a registration (RFC 7592 §2.3): 204 with no body.\n *\n * @generated from protobuf rpc: DeleteRegistration\n */\n deleteRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;\n}\n/**\n * OidcProviderService publishes one issuer's metadata and signing keys to its\n * relying parties. Every document belongs to the issuer the handle names; an\n * unknown handle is NOT_FOUND with ErrorInfo reason OIDC_ISSUER_NOT_FOUND and\n * never falls back to another issuer. There is no issuer-less document.\n *\n * @generated from protobuf service sid.v1.authn.OidcProviderService\n */\nexport class OidcProviderServiceClient implements IOidcProviderServiceClient, ServiceInfo {\n typeName = OidcProviderService.typeName;\n methods = OidcProviderService.methods;\n options = OidcProviderService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * The issuer's metadata (OpenID Connect Discovery 1.0 §3–4, RFC 8414 §2–3).\n * One document answers both discovery algorithms: the OIDC location under\n * the issuer path and the RFC 8414 well-known location with the issuer path\n * appended.\n *\n * @generated from protobuf rpc: GetProviderMetadata\n */\n getProviderMetadata(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, ProviderMetadata> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<IssuerHandleRequest, ProviderMetadata>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The issuer's JSON Web Key Set (RFC 7517 §5): the public keys that verify\n * its tokens. The response metadata carries `cache-control` for HTTP caches.\n *\n * @generated from protobuf rpc: GetJwks\n */\n getJwks(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, JsonWebKeySet> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<IssuerHandleRequest, JsonWebKeySet>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * UserInfo (OIDC Core 1.0 §5.3) over GET. The access token travels in the\n * `authorization` metadata, `Bearer` (RFC 6750 §2.1) or `DPoP` with a proof\n * in the `dpop` metadata (RFC 9449 §7.1); only tokens this issuer signed are\n * accepted. A refused token is UNAUTHENTICATED with a `www-authenticate`\n * response metadata challenge (RFC 6750 §3, RFC 9449 §7.1). GET and POST\n * are separate RPCs because a DPoP proof names the request method. A DPoP\n * proof is recorded against replay, so the call is not free of effects; a\n * repeat with the same proof is refused.\n *\n * @generated from protobuf rpc: GetUserInfo\n */\n getUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<IssuerHandleRequest, UserInfo>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * UserInfo over POST (OIDC Core 1.0 §5.3.1); the same answer as GetUserInfo.\n *\n * @generated from protobuf rpc: PostUserInfo\n */\n postUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<IssuerHandleRequest, UserInfo>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The browser authorization endpoint (RFC 6749 §3.1) over GET, the query\n * parameters bound to the request fields. The answer is an HTTP redirect\n * (`x-http-code` 303 and `location` response metadata, RFC 9700 §4.11): to\n * the client's registered redirect URI with `code` or `error`, `state` and\n * `iss` (RFC 9207 §2), or, when the user must sign in first, to the sign-in\n * page with this request to return to. A request whose client or exact\n * redirect URI is not established is answered with a page and never\n * redirected (RFC 6749 §4.1.2.1). The signed-in user's token, when a\n * gateway holds one, travels in the `authorization` metadata.\n *\n * @generated from protobuf rpc: GetAuthorize\n */\n getAuthorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, HttpBody> {\n const method = this.methods[4], opt = this._transport.mergeOptions(options);\n return stackIntercept<OAuth2AuthorizeRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The authorization endpoint over POST with a form body (OIDC Core 1.0\n * §3.1.2.1); the same answer as GetAuthorize. Parameters it does not know\n * are ignored (RFC 6749 §3.1).\n *\n * @generated from protobuf rpc: PostAuthorize\n */\n postAuthorize(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[5], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * RP-Initiated Logout (OIDC RP-Initiated Logout 1.0 §2) over GET. The\n * browser's IdP session is read from its `__Host-sid_session` cookie\n * (`cookie` metadata). A valid `id_token_hint` of this issuer ends the\n * application session it names; when that session reuses the browser's\n * IdP session, single sign-on ends too and the answer clears the cookie.\n * Otherwise ending the browser's IdP session needs the user's confirmation\n * (§2): the answer is a page with a form that confirms it by POST. A\n * `post_logout_redirect_uri` is followed only for a valid `id_token_hint`\n * whose client registered exactly that URI (§3): the answer is then a 303\n * to it with `state`, or, while the browser's IdP session remains, the\n * confirmation page, which returns there after either choice. Otherwise the\n * answer is a page.\n *\n * @generated from protobuf rpc: GetEndSession\n */\n getEndSession(input: EndSessionRequest, options?: RpcOptions): UnaryCall<EndSessionRequest, HttpBody> {\n const method = this.methods[6], opt = this._transport.mergeOptions(options);\n return stackIntercept<EndSessionRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * RP-Initiated Logout over POST with a form body: the same parameters as\n * GetEndSession, plus `confirmation`, the one-time value of the\n * confirmation page's form, which ends the browser's IdP session it was\n * issued for and returns to the post-logout redirect URI that page was\n * shown for, if any.\n *\n * @generated from protobuf rpc: PostEndSession\n */\n postEndSession(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[7], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n // The endpoints below are the HTTP form of AuthService's OAuth RPCs, with\n // the same logic: the request body is the `application/x-www-form-urlencoded`\n // form the RFC defines, the answer is the RFC's JSON with its HTTP status in\n // the `x-http-code` response metadata and its headers (`cache-control`,\n // `pragma`, `www-authenticate`) as response metadata. A refusal is an OK\n // gRPC call carrying the RFC error body; typed gRPC clients use AuthService.\n // HTTP Basic client authentication travels in the `authorization` metadata,\n // a DPoP proof in `dpop`.\n\n /**\n * Token endpoint (RFC 6749 §3.2): every grant, including the device_code\n * grant (RFC 8628 §3.4). Success is RFC 6749 §5.1 JSON with\n * `cache-control: no-store`; a refusal is RFC 6749 §5.2 or RFC 8628 §3.5\n * JSON, 401 with a `www-authenticate` challenge for `invalid_client` when\n * the client used HTTP Basic, 400 otherwise.\n *\n * @generated from protobuf rpc: Token\n */\n token(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[8], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Token introspection (RFC 7662 §2): RFC 7662 §2.2 JSON, `{\"active\":false}`\n * for any token this issuer does not vouch for. A client assertion is\n * recorded against replay, so the call is not free of effects.\n *\n * @generated from protobuf rpc: Introspect\n */\n introspect(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[9], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Token revocation (RFC 7009 §2): 200 with an empty body, also for a token\n * that is unknown or already revoked (RFC 7009 §2.2).\n *\n * @generated from protobuf rpc: Revoke\n */\n revoke(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[10], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Device authorization (RFC 8628 §3.1): RFC 8628 §3.2 JSON; a refusal is\n * RFC 6749 §5.2 JSON as at the token endpoint.\n *\n * @generated from protobuf rpc: DeviceAuthorization\n */\n deviceAuthorization(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[11], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n // The registration endpoints below are the HTTP form of ProjectService's\n // dynamic registration RPCs, with the same logic. Bodies are\n // `application/json` client metadata (RFC 7591 §2); the initial access\n // token or registration access token travels as a bearer token in the\n // `authorization` metadata. A refusal is an OK gRPC call carrying the RFC\n // error body with its HTTP status in `x-http-code`.\n\n /**\n * Client registration (RFC 7591 §3.1). Success is 201 with every\n * registered metadata value, the credentials and the management location\n * (RFC 7591 §3.2.1, RFC 7592 §3); invalid metadata is 400 with\n * `invalid_client_metadata` or `invalid_redirect_uri` (RFC 7591 §3.2.2); a\n * missing or invalid initial access token is 401 (RFC 6750 §3.1).\n *\n * @generated from protobuf rpc: Register\n */\n register(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[12], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Read a registration (RFC 7592 §2.1): the client's current metadata as at\n * registration, without its secret. An invalid registration access token,\n * or a client this issuer does not have, is 401 (RFC 7592 §2.1).\n *\n * @generated from protobuf rpc: ReadRegistration\n */\n readRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody> {\n const method = this.methods[13], opt = this._transport.mergeOptions(options);\n return stackIntercept<RegistrationRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Update a registration (RFC 7592 §2.2): the body replaces the client's\n * metadata and is validated as a registration; a refused update changes\n * nothing.\n *\n * @generated from protobuf rpc: UpdateRegistration\n */\n updateRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody> {\n const method = this.methods[14], opt = this._transport.mergeOptions(options);\n return stackIntercept<RegistrationRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Delete a registration (RFC 7592 §2.3): 204 with no body.\n *\n * @generated from protobuf rpc: DeleteRegistration\n */\n deleteRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody> {\n const method = this.methods[15], opt = this._transport.mergeOptions(options);\n return stackIntercept<RegistrationRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n}\n/**\n * OidcIssuerService lets services that verify an issuer's tokens resolve the\n * issuer and its keys by handle, and the registered resource a token must be\n * issued for.\n *\n * Internal only, no HTTP annotation: relying parties use OidcProviderService.\n *\n * @generated from protobuf service sid.v1.authn.OidcIssuerService\n */\nexport interface IOidcIssuerServiceClient {\n /**\n * Look up an issuer by handle. An unknown handle is NOT_FOUND with\n * ErrorInfo reason OIDC_ISSUER_NOT_FOUND and a ResourceInfo naming the\n * handle; the caller refuses the request and never falls back to another\n * issuer.\n *\n * @generated from protobuf rpc: GetOidcIssuer\n */\n getOidcIssuer(input: GetOidcIssuerRequest, options?: RpcOptions): UnaryCall<GetOidcIssuerRequest, OidcIssuer>;\n /**\n * Resolve the protected resource a route of the ingress configuration names\n * before a token is accepted for it. The resource must be registered under\n * this issuer: an unknown issuer or indicator is NOT_FOUND with ErrorInfo\n * reason RESOURCE_NOT_FOUND and a ResourceInfo naming the indicator. The\n * caller refuses the route and never falls back to another target.\n *\n * @generated from protobuf rpc: GetProtectedResource\n */\n getProtectedResource(input: GetProtectedResourceRequest, options?: RpcOptions): UnaryCall<GetProtectedResourceRequest, ProtectedResourceTarget>;\n}\n/**\n * OidcIssuerService lets services that verify an issuer's tokens resolve the\n * issuer and its keys by handle, and the registered resource a token must be\n * issued for.\n *\n * Internal only, no HTTP annotation: relying parties use OidcProviderService.\n *\n * @generated from protobuf service sid.v1.authn.OidcIssuerService\n */\nexport class OidcIssuerServiceClient implements IOidcIssuerServiceClient, ServiceInfo {\n typeName = OidcIssuerService.typeName;\n methods = OidcIssuerService.methods;\n options = OidcIssuerService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Look up an issuer by handle. An unknown handle is NOT_FOUND with\n * ErrorInfo reason OIDC_ISSUER_NOT_FOUND and a ResourceInfo naming the\n * handle; the caller refuses the request and never falls back to another\n * issuer.\n *\n * @generated from protobuf rpc: GetOidcIssuer\n */\n getOidcIssuer(input: GetOidcIssuerRequest, options?: RpcOptions): UnaryCall<GetOidcIssuerRequest, OidcIssuer> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetOidcIssuerRequest, OidcIssuer>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Resolve the protected resource a route of the ingress configuration names\n * before a token is accepted for it. The resource must be registered under\n * this issuer: an unknown issuer or indicator is NOT_FOUND with ErrorInfo\n * reason RESOURCE_NOT_FOUND and a ResourceInfo naming the indicator. The\n * caller refuses the route and never falls back to another target.\n *\n * @generated from protobuf rpc: GetProtectedResource\n */\n getProtectedResource(input: GetProtectedResourceRequest, options?: RpcOptions): UnaryCall<GetProtectedResourceRequest, ProtectedResourceTarget> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetProtectedResourceRequest, ProtectedResourceTarget>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
1
+ {"version":3,"file":"issuer.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/issuer.client.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,oGAAoG;AACpG,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,i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C,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAuD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC9H,CAAC;IACD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CAAC,KAA8B,EAAE,OAAoB;QACjE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAiC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACxG,CAAC;CACJ","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/authn/issuer.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { OidcIssuerService } from \"./issuer.js\";\nimport type { Empty } from \"../../../google/protobuf/empty.js\";\nimport type { AdmitSenderProofRequest } from \"./issuer.js\";\nimport type { ProtectedResourceTarget } from \"./issuer.js\";\nimport type { GetProtectedResourceRequest } from \"./issuer.js\";\nimport type { OidcIssuer } from \"./issuer.js\";\nimport type { GetOidcIssuerRequest } from \"./issuer.js\";\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { OidcProviderService } from \"./issuer.js\";\nimport type { RegistrationRequest } from \"./issuer.js\";\nimport type { EndSessionRequest } from \"./issuer.js\";\nimport type { ProtocolRequest } from \"./issuer.js\";\nimport type { HttpBody } from \"../../../google/api/httpbody.js\";\nimport type { OAuth2AuthorizeRequest } from \"./auth.js\";\nimport type { UserInfo } from \"./issuer.js\";\nimport type { JsonWebKeySet } from \"./issuer.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { ProviderMetadata } from \"./issuer.js\";\nimport type { IssuerHandleRequest } from \"./issuer.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * OidcProviderService publishes one issuer's metadata and signing keys to its\n * relying parties. Every document belongs to the issuer the handle names; an\n * unknown handle is NOT_FOUND with ErrorInfo reason OIDC_ISSUER_NOT_FOUND and\n * never falls back to another issuer. There is no issuer-less document.\n *\n * @generated from protobuf service sid.v1.authn.OidcProviderService\n */\nexport interface IOidcProviderServiceClient {\n /**\n * The issuer's metadata (OpenID Connect Discovery 1.0 §3–4, RFC 8414 §2–3).\n * One document answers both discovery algorithms: the OIDC location under\n * the issuer path and the RFC 8414 well-known location with the issuer path\n * appended.\n *\n * @generated from protobuf rpc: GetProviderMetadata\n */\n getProviderMetadata(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, ProviderMetadata>;\n /**\n * The issuer's JSON Web Key Set (RFC 7517 §5): the public keys that verify\n * its tokens. The response metadata carries `cache-control` for HTTP caches.\n *\n * @generated from protobuf rpc: GetJwks\n */\n getJwks(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, JsonWebKeySet>;\n /**\n * UserInfo (OIDC Core 1.0 §5.3) over GET. The access token travels in the\n * `authorization` metadata, `Bearer` (RFC 6750 §2.1) or `DPoP` with a proof\n * in the `dpop` metadata (RFC 9449 §7.1); only tokens this issuer signed are\n * accepted. A refused token is UNAUTHENTICATED with a `www-authenticate`\n * response metadata challenge (RFC 6750 §3, RFC 9449 §7.1). GET and POST\n * are separate RPCs because a DPoP proof names the request method. A DPoP\n * proof is recorded against replay, so the call is not free of effects; a\n * repeat with the same proof is refused.\n *\n * @generated from protobuf rpc: GetUserInfo\n */\n getUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo>;\n /**\n * UserInfo over POST (OIDC Core 1.0 §5.3.1); the same answer as GetUserInfo.\n *\n * @generated from protobuf rpc: PostUserInfo\n */\n postUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo>;\n /**\n * The browser authorization endpoint (RFC 6749 §3.1) over GET, the query\n * parameters bound to the request fields. The answer is an HTTP redirect\n * (`x-http-code` 303 and `location` response metadata, RFC 9700 §4.11): to\n * the client's registered redirect URI with `code` or `error`, `state` and\n * `iss` (RFC 9207 §2), or, when the user must sign in first, to the sign-in\n * page with this request to return to. A request whose client or exact\n * redirect URI is not established is answered with a page and never\n * redirected (RFC 6749 §4.1.2.1). The signed-in user's token, when a\n * gateway holds one, travels in the `authorization` metadata.\n *\n * @generated from protobuf rpc: GetAuthorize\n */\n getAuthorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, HttpBody>;\n /**\n * The authorization endpoint over POST with a form body (OIDC Core 1.0\n * §3.1.2.1); the same answer as GetAuthorize. Parameters it does not know\n * are ignored (RFC 6749 §3.1).\n *\n * @generated from protobuf rpc: PostAuthorize\n */\n postAuthorize(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * RP-Initiated Logout (OIDC RP-Initiated Logout 1.0 §2) over GET. The\n * browser's IdP session is read from its `__Host-sid_session` cookie\n * (`cookie` metadata). A valid `id_token_hint` of this issuer ends the\n * application session it names; when that session reuses the browser's\n * IdP session, single sign-on ends too and the answer clears the cookie.\n * Otherwise ending the browser's IdP session needs the user's confirmation\n * (§2): the answer is a page with a form that confirms it by POST. A\n * `post_logout_redirect_uri` is followed only for a valid `id_token_hint`\n * whose client registered exactly that URI (§3): the answer is then a 303\n * to it with `state`, or, while the browser's IdP session remains, the\n * confirmation page, which returns there after either choice. Otherwise the\n * answer is a page.\n *\n * @generated from protobuf rpc: GetEndSession\n */\n getEndSession(input: EndSessionRequest, options?: RpcOptions): UnaryCall<EndSessionRequest, HttpBody>;\n /**\n * RP-Initiated Logout over POST with a form body: the same parameters as\n * GetEndSession, plus `confirmation`, the one-time value of the\n * confirmation page's form, which ends the browser's IdP session it was\n * issued for and returns to the post-logout redirect URI that page was\n * shown for, if any.\n *\n * @generated from protobuf rpc: PostEndSession\n */\n postEndSession(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n // The endpoints below are the HTTP form of AuthService's OAuth RPCs, with\n // the same logic: the request body is the `application/x-www-form-urlencoded`\n // form the RFC defines, the answer is the RFC's JSON with its HTTP status in\n // the `x-http-code` response metadata and its headers (`cache-control`,\n // `pragma`, `www-authenticate`) as response metadata. A refusal is an OK\n // gRPC call carrying the RFC error body; typed gRPC clients use AuthService.\n // HTTP Basic client authentication travels in the `authorization` metadata,\n // a DPoP proof in `dpop`.\n\n /**\n * Token endpoint (RFC 6749 §3.2): every grant, including the device_code\n * grant (RFC 8628 §3.4). Success is RFC 6749 §5.1 JSON with\n * `cache-control: no-store`; a refusal is RFC 6749 §5.2 or RFC 8628 §3.5\n * JSON, 401 with a `www-authenticate` challenge for `invalid_client` when\n * the client used HTTP Basic, 400 otherwise.\n *\n * @generated from protobuf rpc: Token\n */\n token(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * Token introspection (RFC 7662 §2): RFC 7662 §2.2 JSON, `{\"active\":false}`\n * for any token this issuer does not vouch for. A client assertion is\n * recorded against replay, so the call is not free of effects.\n *\n * @generated from protobuf rpc: Introspect\n */\n introspect(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * Token revocation (RFC 7009 §2): 200 with an empty body, also for a token\n * that is unknown or already revoked (RFC 7009 §2.2).\n *\n * @generated from protobuf rpc: Revoke\n */\n revoke(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * Device authorization (RFC 8628 §3.1): RFC 8628 §3.2 JSON; a refusal is\n * RFC 6749 §5.2 JSON as at the token endpoint.\n *\n * @generated from protobuf rpc: DeviceAuthorization\n */\n deviceAuthorization(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n // The registration endpoints below are the HTTP form of ProjectService's\n // dynamic registration RPCs, with the same logic. Bodies are\n // `application/json` client metadata (RFC 7591 §2); the initial access\n // token or registration access token travels as a bearer token in the\n // `authorization` metadata. A refusal is an OK gRPC call carrying the RFC\n // error body with its HTTP status in `x-http-code`.\n\n /**\n * Client registration (RFC 7591 §3.1). Success is 201 with every\n * registered metadata value, the credentials and the management location\n * (RFC 7591 §3.2.1, RFC 7592 §3); invalid metadata is 400 with\n * `invalid_client_metadata` or `invalid_redirect_uri` (RFC 7591 §3.2.2); a\n * missing or invalid initial access token is 401 (RFC 6750 §3.1).\n *\n * @generated from protobuf rpc: Register\n */\n register(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;\n /**\n * Read a registration (RFC 7592 §2.1): the client's current metadata as at\n * registration, without its secret. An invalid registration access token,\n * or a client this issuer does not have, is 401 (RFC 7592 §2.1).\n *\n * @generated from protobuf rpc: ReadRegistration\n */\n readRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;\n /**\n * Update a registration (RFC 7592 §2.2): the body replaces the client's\n * metadata and is validated as a registration; a refused update changes\n * nothing.\n *\n * @generated from protobuf rpc: UpdateRegistration\n */\n updateRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;\n /**\n * Delete a registration (RFC 7592 §2.3): 204 with no body.\n *\n * @generated from protobuf rpc: DeleteRegistration\n */\n deleteRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;\n}\n/**\n * OidcProviderService publishes one issuer's metadata and signing keys to its\n * relying parties. Every document belongs to the issuer the handle names; an\n * unknown handle is NOT_FOUND with ErrorInfo reason OIDC_ISSUER_NOT_FOUND and\n * never falls back to another issuer. There is no issuer-less document.\n *\n * @generated from protobuf service sid.v1.authn.OidcProviderService\n */\nexport class OidcProviderServiceClient implements IOidcProviderServiceClient, ServiceInfo {\n typeName = OidcProviderService.typeName;\n methods = OidcProviderService.methods;\n options = OidcProviderService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * The issuer's metadata (OpenID Connect Discovery 1.0 §3–4, RFC 8414 §2–3).\n * One document answers both discovery algorithms: the OIDC location under\n * the issuer path and the RFC 8414 well-known location with the issuer path\n * appended.\n *\n * @generated from protobuf rpc: GetProviderMetadata\n */\n getProviderMetadata(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, ProviderMetadata> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<IssuerHandleRequest, ProviderMetadata>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The issuer's JSON Web Key Set (RFC 7517 §5): the public keys that verify\n * its tokens. The response metadata carries `cache-control` for HTTP caches.\n *\n * @generated from protobuf rpc: GetJwks\n */\n getJwks(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, JsonWebKeySet> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<IssuerHandleRequest, JsonWebKeySet>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * UserInfo (OIDC Core 1.0 §5.3) over GET. The access token travels in the\n * `authorization` metadata, `Bearer` (RFC 6750 §2.1) or `DPoP` with a proof\n * in the `dpop` metadata (RFC 9449 §7.1); only tokens this issuer signed are\n * accepted. A refused token is UNAUTHENTICATED with a `www-authenticate`\n * response metadata challenge (RFC 6750 §3, RFC 9449 §7.1). GET and POST\n * are separate RPCs because a DPoP proof names the request method. A DPoP\n * proof is recorded against replay, so the call is not free of effects; a\n * repeat with the same proof is refused.\n *\n * @generated from protobuf rpc: GetUserInfo\n */\n getUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<IssuerHandleRequest, UserInfo>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * UserInfo over POST (OIDC Core 1.0 §5.3.1); the same answer as GetUserInfo.\n *\n * @generated from protobuf rpc: PostUserInfo\n */\n postUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<IssuerHandleRequest, UserInfo>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The browser authorization endpoint (RFC 6749 §3.1) over GET, the query\n * parameters bound to the request fields. The answer is an HTTP redirect\n * (`x-http-code` 303 and `location` response metadata, RFC 9700 §4.11): to\n * the client's registered redirect URI with `code` or `error`, `state` and\n * `iss` (RFC 9207 §2), or, when the user must sign in first, to the sign-in\n * page with this request to return to. A request whose client or exact\n * redirect URI is not established is answered with a page and never\n * redirected (RFC 6749 §4.1.2.1). The signed-in user's token, when a\n * gateway holds one, travels in the `authorization` metadata.\n *\n * @generated from protobuf rpc: GetAuthorize\n */\n getAuthorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, HttpBody> {\n const method = this.methods[4], opt = this._transport.mergeOptions(options);\n return stackIntercept<OAuth2AuthorizeRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The authorization endpoint over POST with a form body (OIDC Core 1.0\n * §3.1.2.1); the same answer as GetAuthorize. Parameters it does not know\n * are ignored (RFC 6749 §3.1).\n *\n * @generated from protobuf rpc: PostAuthorize\n */\n postAuthorize(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[5], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * RP-Initiated Logout (OIDC RP-Initiated Logout 1.0 §2) over GET. The\n * browser's IdP session is read from its `__Host-sid_session` cookie\n * (`cookie` metadata). A valid `id_token_hint` of this issuer ends the\n * application session it names; when that session reuses the browser's\n * IdP session, single sign-on ends too and the answer clears the cookie.\n * Otherwise ending the browser's IdP session needs the user's confirmation\n * (§2): the answer is a page with a form that confirms it by POST. A\n * `post_logout_redirect_uri` is followed only for a valid `id_token_hint`\n * whose client registered exactly that URI (§3): the answer is then a 303\n * to it with `state`, or, while the browser's IdP session remains, the\n * confirmation page, which returns there after either choice. Otherwise the\n * answer is a page.\n *\n * @generated from protobuf rpc: GetEndSession\n */\n getEndSession(input: EndSessionRequest, options?: RpcOptions): UnaryCall<EndSessionRequest, HttpBody> {\n const method = this.methods[6], opt = this._transport.mergeOptions(options);\n return stackIntercept<EndSessionRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * RP-Initiated Logout over POST with a form body: the same parameters as\n * GetEndSession, plus `confirmation`, the one-time value of the\n * confirmation page's form, which ends the browser's IdP session it was\n * issued for and returns to the post-logout redirect URI that page was\n * shown for, if any.\n *\n * @generated from protobuf rpc: PostEndSession\n */\n postEndSession(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[7], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n // The endpoints below are the HTTP form of AuthService's OAuth RPCs, with\n // the same logic: the request body is the `application/x-www-form-urlencoded`\n // form the RFC defines, the answer is the RFC's JSON with its HTTP status in\n // the `x-http-code` response metadata and its headers (`cache-control`,\n // `pragma`, `www-authenticate`) as response metadata. A refusal is an OK\n // gRPC call carrying the RFC error body; typed gRPC clients use AuthService.\n // HTTP Basic client authentication travels in the `authorization` metadata,\n // a DPoP proof in `dpop`.\n\n /**\n * Token endpoint (RFC 6749 §3.2): every grant, including the device_code\n * grant (RFC 8628 §3.4). Success is RFC 6749 §5.1 JSON with\n * `cache-control: no-store`; a refusal is RFC 6749 §5.2 or RFC 8628 §3.5\n * JSON, 401 with a `www-authenticate` challenge for `invalid_client` when\n * the client used HTTP Basic, 400 otherwise.\n *\n * @generated from protobuf rpc: Token\n */\n token(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[8], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Token introspection (RFC 7662 §2): RFC 7662 §2.2 JSON, `{\"active\":false}`\n * for any token this issuer does not vouch for. A client assertion is\n * recorded against replay, so the call is not free of effects.\n *\n * @generated from protobuf rpc: Introspect\n */\n introspect(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[9], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Token revocation (RFC 7009 §2): 200 with an empty body, also for a token\n * that is unknown or already revoked (RFC 7009 §2.2).\n *\n * @generated from protobuf rpc: Revoke\n */\n revoke(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[10], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Device authorization (RFC 8628 §3.1): RFC 8628 §3.2 JSON; a refusal is\n * RFC 6749 §5.2 JSON as at the token endpoint.\n *\n * @generated from protobuf rpc: DeviceAuthorization\n */\n deviceAuthorization(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[11], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n // The registration endpoints below are the HTTP form of ProjectService's\n // dynamic registration RPCs, with the same logic. Bodies are\n // `application/json` client metadata (RFC 7591 §2); the initial access\n // token or registration access token travels as a bearer token in the\n // `authorization` metadata. A refusal is an OK gRPC call carrying the RFC\n // error body with its HTTP status in `x-http-code`.\n\n /**\n * Client registration (RFC 7591 §3.1). Success is 201 with every\n * registered metadata value, the credentials and the management location\n * (RFC 7591 §3.2.1, RFC 7592 §3); invalid metadata is 400 with\n * `invalid_client_metadata` or `invalid_redirect_uri` (RFC 7591 §3.2.2); a\n * missing or invalid initial access token is 401 (RFC 6750 §3.1).\n *\n * @generated from protobuf rpc: Register\n */\n register(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody> {\n const method = this.methods[12], opt = this._transport.mergeOptions(options);\n return stackIntercept<ProtocolRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Read a registration (RFC 7592 §2.1): the client's current metadata as at\n * registration, without its secret. An invalid registration access token,\n * or a client this issuer does not have, is 401 (RFC 7592 §2.1).\n *\n * @generated from protobuf rpc: ReadRegistration\n */\n readRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody> {\n const method = this.methods[13], opt = this._transport.mergeOptions(options);\n return stackIntercept<RegistrationRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Update a registration (RFC 7592 §2.2): the body replaces the client's\n * metadata and is validated as a registration; a refused update changes\n * nothing.\n *\n * @generated from protobuf rpc: UpdateRegistration\n */\n updateRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody> {\n const method = this.methods[14], opt = this._transport.mergeOptions(options);\n return stackIntercept<RegistrationRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Delete a registration (RFC 7592 §2.3): 204 with no body.\n *\n * @generated from protobuf rpc: DeleteRegistration\n */\n deleteRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody> {\n const method = this.methods[15], opt = this._transport.mergeOptions(options);\n return stackIntercept<RegistrationRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n}\n/**\n * OidcIssuerService lets services that verify an issuer's tokens resolve the\n * issuer and its keys by handle, and the registered resource a token must be\n * issued for.\n *\n * Internal only, no HTTP annotation: relying parties use OidcProviderService.\n *\n * @generated from protobuf service sid.v1.authn.OidcIssuerService\n */\nexport interface IOidcIssuerServiceClient {\n /**\n * Look up an issuer by handle. An unknown handle is NOT_FOUND with\n * ErrorInfo reason OIDC_ISSUER_NOT_FOUND and a ResourceInfo naming the\n * handle; the caller refuses the request and never falls back to another\n * issuer.\n *\n * @generated from protobuf rpc: GetOidcIssuer\n */\n getOidcIssuer(input: GetOidcIssuerRequest, options?: RpcOptions): UnaryCall<GetOidcIssuerRequest, OidcIssuer>;\n /**\n * Resolve the protected resource a route of the ingress configuration names\n * before a token is accepted for it. The resource must be registered under\n * this issuer: an unknown issuer or indicator is NOT_FOUND with ErrorInfo\n * reason RESOURCE_NOT_FOUND and a ResourceInfo naming the indicator. The\n * caller refuses the route and never falls back to another target.\n *\n * @generated from protobuf rpc: GetProtectedResource\n */\n getProtectedResource(input: GetProtectedResourceRequest, options?: RpcOptions): UnaryCall<GetProtectedResourceRequest, ProtectedResourceTarget>;\n /**\n * Admit one original request's sender proof at the issuer of its token\n * (RFC 9449 §11.1), for a request the verifier answers without a\n * permission question. The caller authenticates with its own client\n * credential and must be configured as the verifier of the resource for\n * the proof's kind; anyone else is PERMISSION_DENIED with ErrorInfo\n * reason INSUFFICIENT_PERMISSIONS. The token must be this issuer's, for the\n * resource, and bound to the confirmed key.\n *\n * A proof is admitted for one request. A repeat of the same request (the\n * same `request_id` with the same token, method, URI and resource) within\n * the confirmation's window answers OK again without extending the\n * admission; the proof presented for any other request, or with any of\n * these changed, is UNAUTHENTICATED with ErrorInfo reason TOKEN_INVALID\n * and `oauthError` `invalid_dpop_proof`. When the\n * admission cannot be decided the call is UNAVAILABLE, and the verifier\n * refuses the original request; it never admits it on its own.\n *\n * @generated from protobuf rpc: AdmitSenderProof\n */\n admitSenderProof(input: AdmitSenderProofRequest, options?: RpcOptions): UnaryCall<AdmitSenderProofRequest, Empty>;\n}\n/**\n * OidcIssuerService lets services that verify an issuer's tokens resolve the\n * issuer and its keys by handle, and the registered resource a token must be\n * issued for.\n *\n * Internal only, no HTTP annotation: relying parties use OidcProviderService.\n *\n * @generated from protobuf service sid.v1.authn.OidcIssuerService\n */\nexport class OidcIssuerServiceClient implements IOidcIssuerServiceClient, ServiceInfo {\n typeName = OidcIssuerService.typeName;\n methods = OidcIssuerService.methods;\n options = OidcIssuerService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Look up an issuer by handle. An unknown handle is NOT_FOUND with\n * ErrorInfo reason OIDC_ISSUER_NOT_FOUND and a ResourceInfo naming the\n * handle; the caller refuses the request and never falls back to another\n * issuer.\n *\n * @generated from protobuf rpc: GetOidcIssuer\n */\n getOidcIssuer(input: GetOidcIssuerRequest, options?: RpcOptions): UnaryCall<GetOidcIssuerRequest, OidcIssuer> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetOidcIssuerRequest, OidcIssuer>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Resolve the protected resource a route of the ingress configuration names\n * before a token is accepted for it. The resource must be registered under\n * this issuer: an unknown issuer or indicator is NOT_FOUND with ErrorInfo\n * reason RESOURCE_NOT_FOUND and a ResourceInfo naming the indicator. The\n * caller refuses the route and never falls back to another target.\n *\n * @generated from protobuf rpc: GetProtectedResource\n */\n getProtectedResource(input: GetProtectedResourceRequest, options?: RpcOptions): UnaryCall<GetProtectedResourceRequest, ProtectedResourceTarget> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetProtectedResourceRequest, ProtectedResourceTarget>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Admit one original request's sender proof at the issuer of its token\n * (RFC 9449 §11.1), for a request the verifier answers without a\n * permission question. The caller authenticates with its own client\n * credential and must be configured as the verifier of the resource for\n * the proof's kind; anyone else is PERMISSION_DENIED with ErrorInfo\n * reason INSUFFICIENT_PERMISSIONS. The token must be this issuer's, for the\n * resource, and bound to the confirmed key.\n *\n * A proof is admitted for one request. A repeat of the same request (the\n * same `request_id` with the same token, method, URI and resource) within\n * the confirmation's window answers OK again without extending the\n * admission; the proof presented for any other request, or with any of\n * these changed, is UNAUTHENTICATED with ErrorInfo reason TOKEN_INVALID\n * and `oauthError` `invalid_dpop_proof`. When the\n * admission cannot be decided the call is UNAVAILABLE, and the verifier\n * refuses the original request; it never admits it on its own.\n *\n * @generated from protobuf rpc: AdmitSenderProof\n */\n admitSenderProof(input: AdmitSenderProofRequest, options?: RpcOptions): UnaryCall<AdmitSenderProofRequest, Empty> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<AdmitSenderProofRequest, Empty>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
@@ -5,6 +5,7 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
5
  import type { IBinaryReader } from "@protobuf-ts/runtime";
6
6
  import type { PartialMessage } from "@protobuf-ts/runtime";
7
7
  import { MessageType } from "@protobuf-ts/runtime";
8
+ import { RequestConfirmation } from "./sender_proof.js";
8
9
  import { ResourceId } from "../ids/ids.js";
9
10
  import { HttpBody } from "../../../google/api/httpbody.js";
10
11
  /**
@@ -436,6 +437,35 @@ export interface JsonWebKey {
436
437
  */
437
438
  x: string;
438
439
  }
440
+ /**
441
+ * One original request whose sender proof a verifier asks the token's issuer
442
+ * to admit.
443
+ *
444
+ * @generated from protobuf message sid.v1.authn.AdmitSenderProofRequest
445
+ */
446
+ export interface AdmitSenderProofRequest {
447
+ /**
448
+ * The access token exactly as the original request presented it (JWS
449
+ * compact serialization or an opaque access token), unchanged. Never
450
+ * logged or echoed.
451
+ *
452
+ * @generated from protobuf field: string access_token = 1
453
+ */
454
+ accessToken: string;
455
+ /**
456
+ * The registered resource the original request was made to: the token's
457
+ * audience, as GetProtectedResource resolved it.
458
+ *
459
+ * @generated from protobuf field: sid.v1.ids.ResourceId resource = 2
460
+ */
461
+ resource?: ResourceId;
462
+ /**
463
+ * What the verifier checked about the request and its proof.
464
+ *
465
+ * @generated from protobuf field: sid.v1.authn.RequestConfirmation confirmation = 3
466
+ */
467
+ confirmation?: RequestConfirmation;
468
+ }
439
469
  /**
440
470
  * @generated from protobuf message sid.v1.authn.GetOidcIssuerRequest
441
471
  */
@@ -631,6 +661,16 @@ declare class JsonWebKey$Type extends MessageType<JsonWebKey> {
631
661
  * @generated MessageType for protobuf message sid.v1.authn.JsonWebKey
632
662
  */
633
663
  export declare const JsonWebKey: JsonWebKey$Type;
664
+ declare class AdmitSenderProofRequest$Type extends MessageType<AdmitSenderProofRequest> {
665
+ constructor();
666
+ create(value?: PartialMessage<AdmitSenderProofRequest>): AdmitSenderProofRequest;
667
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdmitSenderProofRequest): AdmitSenderProofRequest;
668
+ internalBinaryWrite(message: AdmitSenderProofRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
669
+ }
670
+ /**
671
+ * @generated MessageType for protobuf message sid.v1.authn.AdmitSenderProofRequest
672
+ */
673
+ export declare const AdmitSenderProofRequest: AdmitSenderProofRequest$Type;
634
674
  declare class GetOidcIssuerRequest$Type extends MessageType<GetOidcIssuerRequest> {
635
675
  constructor();
636
676
  create(value?: PartialMessage<GetOidcIssuerRequest>): GetOidcIssuerRequest;
@@ -2,12 +2,14 @@
2
2
  // @generated from protobuf file "sid/v1/authn/issuer.proto" (package "sid.v1.authn", syntax proto3)
3
3
  // tslint:disable
4
4
  // @ts-nocheck
5
+ import { Empty } from "../../../google/protobuf/empty.js";
5
6
  import { OAuth2AuthorizeRequest } from "./auth.js";
6
7
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
7
8
  import { WireType } from "@protobuf-ts/runtime";
8
9
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
9
10
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
10
11
  import { MessageType } from "@protobuf-ts/runtime";
12
+ import { RequestConfirmation } from "./sender_proof.js";
11
13
  import { ResourceId } from "../ids/ids.js";
12
14
  import { HttpBody } from "../../../google/api/httpbody.js";
13
15
  // @generated message type with reflection information, may provide speed optimized methods
@@ -741,6 +743,67 @@ class JsonWebKey$Type extends MessageType {
741
743
  */
742
744
  export const JsonWebKey = new JsonWebKey$Type();
743
745
  // @generated message type with reflection information, may provide speed optimized methods
746
+ class AdmitSenderProofRequest$Type extends MessageType {
747
+ constructor() {
748
+ super("sid.v1.authn.AdmitSenderProofRequest", [
749
+ { no: 1, name: "access_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
750
+ { no: 2, name: "resource", kind: "message", T: () => ResourceId },
751
+ { no: 3, name: "confirmation", kind: "message", T: () => RequestConfirmation }
752
+ ]);
753
+ }
754
+ create(value) {
755
+ const message = globalThis.Object.create((this.messagePrototype));
756
+ message.accessToken = "";
757
+ if (value !== undefined)
758
+ reflectionMergePartial(this, message, value);
759
+ return message;
760
+ }
761
+ internalBinaryRead(reader, length, options, target) {
762
+ let message = target ?? this.create(), end = reader.pos + length;
763
+ while (reader.pos < end) {
764
+ let [fieldNo, wireType] = reader.tag();
765
+ switch (fieldNo) {
766
+ case /* string access_token */ 1:
767
+ message.accessToken = reader.string();
768
+ break;
769
+ case /* sid.v1.ids.ResourceId resource */ 2:
770
+ message.resource = ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.resource);
771
+ break;
772
+ case /* sid.v1.authn.RequestConfirmation confirmation */ 3:
773
+ message.confirmation = RequestConfirmation.internalBinaryRead(reader, reader.uint32(), options, message.confirmation);
774
+ break;
775
+ default:
776
+ let u = options.readUnknownField;
777
+ if (u === "throw")
778
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
779
+ let d = reader.skip(wireType);
780
+ if (u !== false)
781
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
782
+ }
783
+ }
784
+ return message;
785
+ }
786
+ internalBinaryWrite(message, writer, options) {
787
+ /* string access_token = 1; */
788
+ if (message.accessToken !== "")
789
+ writer.tag(1, WireType.LengthDelimited).string(message.accessToken);
790
+ /* sid.v1.ids.ResourceId resource = 2; */
791
+ if (message.resource)
792
+ ResourceId.internalBinaryWrite(message.resource, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
793
+ /* sid.v1.authn.RequestConfirmation confirmation = 3; */
794
+ if (message.confirmation)
795
+ RequestConfirmation.internalBinaryWrite(message.confirmation, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
796
+ let u = options.writeUnknownFields;
797
+ if (u !== false)
798
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
799
+ return writer;
800
+ }
801
+ }
802
+ /**
803
+ * @generated MessageType for protobuf message sid.v1.authn.AdmitSenderProofRequest
804
+ */
805
+ export const AdmitSenderProofRequest = new AdmitSenderProofRequest$Type();
806
+ // @generated message type with reflection information, may provide speed optimized methods
744
807
  class GetOidcIssuerRequest$Type extends MessageType {
745
808
  constructor() {
746
809
  super("sid.v1.authn.GetOidcIssuerRequest", [
@@ -1028,26 +1091,27 @@ export const IssuerPublicKey = new IssuerPublicKey$Type();
1028
1091
  export const OidcProviderService = new ServiceType("sid.v1.authn.OidcProviderService", [
1029
1092
  { name: "GetProviderMetadata", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/i/{issuer_handle}/.well-known/openid-configuration", additionalBindings: [{ get: "/.well-known/oauth-authorization-server/i/{issuer_handle}" }] } }, I: IssuerHandleRequest, O: ProviderMetadata },
1030
1093
  { name: "GetJwks", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/i/{issuer_handle}/jwks" } }, I: IssuerHandleRequest, O: JsonWebKeySet },
1031
- { name: "GetUserInfo", idempotency: "IDEMPOTENT", options: { "google.api.http": { get: "/i/{issuer_handle}/userinfo" } }, I: IssuerHandleRequest, O: UserInfo },
1032
- { name: "PostUserInfo", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/i/{issuer_handle}/userinfo", body: "*" } }, I: IssuerHandleRequest, O: UserInfo },
1033
- { name: "GetAuthorize", options: { "google.api.http": { get: "/i/{issuer_handle}/oauth2/authorize" } }, I: OAuth2AuthorizeRequest, O: HttpBody },
1034
- { name: "PostAuthorize", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/authorize", body: "body" } }, I: ProtocolRequest, O: HttpBody },
1035
- { name: "GetEndSession", options: { "google.api.http": { get: "/i/{issuer_handle}/oauth2/end-session" } }, I: EndSessionRequest, O: HttpBody },
1036
- { name: "PostEndSession", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/end-session", body: "body" } }, I: ProtocolRequest, O: HttpBody },
1037
- { name: "Token", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/token", body: "body" } }, I: ProtocolRequest, O: HttpBody },
1038
- { name: "Introspect", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/introspect", body: "body" } }, I: ProtocolRequest, O: HttpBody },
1039
- { name: "Revoke", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/revoke", body: "body" } }, I: ProtocolRequest, O: HttpBody },
1040
- { name: "DeviceAuthorization", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/device", body: "body" } }, I: ProtocolRequest, O: HttpBody },
1041
- { name: "Register", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/register", body: "body" } }, I: ProtocolRequest, O: HttpBody },
1094
+ { name: "GetUserInfo", idempotency: "IDEMPOTENT", options: { "google.api.http": { get: "/i/{issuer_handle}/userinfo" }, "sid.v1.common.retry": { ceremony: "RFC 9449 \u00A711.1: a DPoP proof is admitted once; the request otherwise only reads" } }, I: IssuerHandleRequest, O: UserInfo },
1095
+ { name: "PostUserInfo", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/i/{issuer_handle}/userinfo", body: "*" }, "sid.v1.common.retry": { ceremony: "RFC 9449 \u00A711.1: a DPoP proof is admitted once; the request otherwise only reads" } }, I: IssuerHandleRequest, O: UserInfo },
1096
+ { name: "GetAuthorize", options: { "google.api.http": { get: "/i/{issuer_handle}/oauth2/authorize" }, "sid.v1.common.retry": { ceremony: "RFC 6749 \u00A74.1.2: each authorization request issues its own single-use code" } }, I: OAuth2AuthorizeRequest, O: HttpBody },
1097
+ { name: "PostAuthorize", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/authorize", body: "body" }, "sid.v1.common.retry": { ceremony: "RFC 6749 \u00A74.1.2: each authorization request issues its own single-use code" } }, I: ProtocolRequest, O: HttpBody },
1098
+ { name: "GetEndSession", options: { "google.api.http": { get: "/i/{issuer_handle}/oauth2/end-session" }, "sid.v1.common.retry": { ceremony: "OpenID RP-Initiated Logout 1.0: an ended session stays ended; a repeat finds nothing to end and signs nobody else out, and a confirmation is answered once" } }, I: EndSessionRequest, O: HttpBody },
1099
+ { name: "PostEndSession", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/end-session", body: "body" }, "sid.v1.common.retry": { ceremony: "OpenID RP-Initiated Logout 1.0: an ended session stays ended; a repeat finds nothing to end and signs nobody else out, and a confirmation is answered once" } }, I: ProtocolRequest, O: HttpBody },
1100
+ { name: "Token", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/token", body: "body" }, "sid.v1.common.retry": { ceremony: "RFC 6749 \u00A74.1.2 and \u00A710.4: a code or rotated refresh token is consumed once; a second use is refused, never answered with tokens" } }, I: ProtocolRequest, O: HttpBody },
1101
+ { name: "Introspect", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/introspect", body: "body" }, "sid.v1.common.retry": { ceremony: "RFC 7523 \u00A73: a client assertion's jti is admitted once; the answer otherwise only reads the token" } }, I: ProtocolRequest, O: HttpBody },
1102
+ { name: "Revoke", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/revoke", body: "body" }, "sid.v1.common.retry": { ceremony: "RFC 7009 \u00A72.2: revoking a revoked or unknown token answers success and changes nothing" } }, I: ProtocolRequest, O: HttpBody },
1103
+ { name: "DeviceAuthorization", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/device", body: "body" }, "sid.v1.common.retry": { ceremony: "RFC 8628 \u00A73.2: each request issues its own device and user codes" } }, I: ProtocolRequest, O: HttpBody },
1104
+ { name: "Register", options: { "google.api.http": { post: "/i/{issuer_handle}/oauth2/register", body: "body" }, "sid.v1.common.retry": { ceremony: "RFC 7591 \u00A73: the client presents no operation key; each registration issues a new client, its secret and registration access token once" } }, I: ProtocolRequest, O: HttpBody },
1042
1105
  { name: "ReadRegistration", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/i/{issuer_handle}/oauth2/register/{client_id}" } }, I: RegistrationRequest, O: HttpBody },
1043
- { name: "UpdateRegistration", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/i/{issuer_handle}/oauth2/register/{client_id}", body: "body" } }, I: RegistrationRequest, O: HttpBody },
1044
- { name: "DeleteRegistration", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/i/{issuer_handle}/oauth2/register/{client_id}" } }, I: RegistrationRequest, O: HttpBody }
1106
+ { name: "UpdateRegistration", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/i/{issuer_handle}/oauth2/register/{client_id}", body: "body" }, "sid.v1.common.retry": { ceremony: "RFC 7592 \u00A72.2: the request carries the client's whole metadata and replaces it, so a repeat leaves the same registration" } }, I: RegistrationRequest, O: HttpBody },
1107
+ { name: "DeleteRegistration", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/i/{issuer_handle}/oauth2/register/{client_id}" }, "sid.v1.common.retry": { ceremony: "RFC 7592 \u00A72.3: deletion invalidates the client and its registration access token, so a repeat is refused and changes nothing" } }, I: RegistrationRequest, O: HttpBody }
1045
1108
  ]);
1046
1109
  /**
1047
1110
  * @generated ServiceType for protobuf service sid.v1.authn.OidcIssuerService
1048
1111
  */
1049
1112
  export const OidcIssuerService = new ServiceType("sid.v1.authn.OidcIssuerService", [
1050
1113
  { name: "GetOidcIssuer", idempotency: "NO_SIDE_EFFECTS", options: {}, I: GetOidcIssuerRequest, O: OidcIssuer },
1051
- { name: "GetProtectedResource", idempotency: "NO_SIDE_EFFECTS", options: {}, I: GetProtectedResourceRequest, O: ProtectedResourceTarget }
1114
+ { name: "GetProtectedResource", idempotency: "NO_SIDE_EFFECTS", options: {}, I: GetProtectedResourceRequest, O: ProtectedResourceTarget },
1115
+ { name: "AdmitSenderProof", idempotency: "IDEMPOTENT", options: { "sid.v1.common.retry": { ceremony: "RFC 9449 \u00A711.1: a proof is admitted once, for one original request; a repeat for that same request confirms the first answer, and any other use of the proof is refused as a replay" } }, I: AdmitSenderProofRequest, O: Empty }
1052
1116
  ]);
1053
1117
  //# sourceMappingURL=issuer.js.map