@structured-id/proto 0.9.0 → 0.11.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.
@@ -1,5 +1,6 @@
1
1
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
2
2
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
3
+ import type { BackChannelLogoutRequest } from "./application_session.js";
3
4
  import type { EndApplicationSessionResponse } from "./application_session.js";
4
5
  import type { EndApplicationSessionRequest } from "./application_session.js";
5
6
  import type { ApplicationSession } from "./application_session.js";
@@ -58,7 +59,8 @@ export interface IApplicationSessionServiceClient {
58
59
  *
59
60
  * No cookie, or one naming no live session of this application's
60
61
  * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer
61
- * session was ended elsewhere is ended here too and is UNAUTHENTICATED. A
62
+ * session was ended elsewhere (a back-channel logout received, or a
63
+ * revocation known here) is ended here too and is UNAUTHENTICATED. A
62
64
  * session store or revocation check that cannot be answered is UNAVAILABLE
63
65
  * with RetryInfo: an outage never reads as a signed-out user.
64
66
  *
@@ -84,6 +86,26 @@ export interface IApplicationSessionServiceClient {
84
86
  * @generated from protobuf rpc: EndApplicationSession
85
87
  */
86
88
  endApplicationSession(input: EndApplicationSessionRequest, options?: RpcOptions): UnaryCall<EndApplicationSessionRequest, EndApplicationSessionResponse>;
89
+ /**
90
+ * The issuer's back-channel logout (OpenID Connect Back-Channel Logout 1.0
91
+ * §2.5): the application's issuer posts a `logout_token` here when a
92
+ * session it issued to this client ends. The adapter validates it as §2.6
93
+ * states (the connection's exact issuer and its keys, `typ` `logout+jwt`,
94
+ * `aud` this client, the logout event, no `nonce`) and ends every
95
+ * application session of that issuer session (`sid`). The client is
96
+ * registered with the session required (§2.2), so a token naming no
97
+ * session is `invalid_request` and ends nothing. A sign-in completing for
98
+ * an ended issuer session afterwards opens nothing.
99
+ *
100
+ * Server to server, so the answer is HTTP (§2.8): `x-http-code` 200 with
101
+ * `cache-control: no-store` once the end is recorded in the session store;
102
+ * 400 with the JSON error `invalid_request` for a token that does not
103
+ * validate; 503 when the session store cannot be reached, so the issuer
104
+ * retries.
105
+ *
106
+ * @generated from protobuf rpc: ReceiveBackChannelLogout
107
+ */
108
+ receiveBackChannelLogout(input: BackChannelLogoutRequest, options?: RpcOptions): UnaryCall<BackChannelLogoutRequest, HttpBody>;
87
109
  }
88
110
  /**
89
111
  * @generated from protobuf service sid.v1.authn.ApplicationSessionService
@@ -141,7 +163,8 @@ export declare class ApplicationSessionServiceClient implements IApplicationSess
141
163
  *
142
164
  * No cookie, or one naming no live session of this application's
143
165
  * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer
144
- * session was ended elsewhere is ended here too and is UNAUTHENTICATED. A
166
+ * session was ended elsewhere (a back-channel logout received, or a
167
+ * revocation known here) is ended here too and is UNAUTHENTICATED. A
145
168
  * session store or revocation check that cannot be answered is UNAVAILABLE
146
169
  * with RetryInfo: an outage never reads as a signed-out user.
147
170
  *
@@ -167,4 +190,24 @@ export declare class ApplicationSessionServiceClient implements IApplicationSess
167
190
  * @generated from protobuf rpc: EndApplicationSession
168
191
  */
169
192
  endApplicationSession(input: EndApplicationSessionRequest, options?: RpcOptions): UnaryCall<EndApplicationSessionRequest, EndApplicationSessionResponse>;
193
+ /**
194
+ * The issuer's back-channel logout (OpenID Connect Back-Channel Logout 1.0
195
+ * §2.5): the application's issuer posts a `logout_token` here when a
196
+ * session it issued to this client ends. The adapter validates it as §2.6
197
+ * states (the connection's exact issuer and its keys, `typ` `logout+jwt`,
198
+ * `aud` this client, the logout event, no `nonce`) and ends every
199
+ * application session of that issuer session (`sid`). The client is
200
+ * registered with the session required (§2.2), so a token naming no
201
+ * session is `invalid_request` and ends nothing. A sign-in completing for
202
+ * an ended issuer session afterwards opens nothing.
203
+ *
204
+ * Server to server, so the answer is HTTP (§2.8): `x-http-code` 200 with
205
+ * `cache-control: no-store` once the end is recorded in the session store;
206
+ * 400 with the JSON error `invalid_request` for a token that does not
207
+ * validate; 503 when the session store cannot be reached, so the issuer
208
+ * retries.
209
+ *
210
+ * @generated from protobuf rpc: ReceiveBackChannelLogout
211
+ */
212
+ receiveBackChannelLogout(input: BackChannelLogoutRequest, options?: RpcOptions): UnaryCall<BackChannelLogoutRequest, HttpBody>;
170
213
  }
@@ -62,7 +62,8 @@ export class ApplicationSessionServiceClient {
62
62
  *
63
63
  * No cookie, or one naming no live session of this application's
64
64
  * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer
65
- * session was ended elsewhere is ended here too and is UNAUTHENTICATED. A
65
+ * session was ended elsewhere (a back-channel logout received, or a
66
+ * revocation known here) is ended here too and is UNAUTHENTICATED. A
66
67
  * session store or revocation check that cannot be answered is UNAVAILABLE
67
68
  * with RetryInfo: an outage never reads as a signed-out user.
68
69
  *
@@ -94,5 +95,28 @@ export class ApplicationSessionServiceClient {
94
95
  const method = this.methods[3], opt = this._transport.mergeOptions(options);
95
96
  return stackIntercept("unary", this._transport, method, opt, input);
96
97
  }
98
+ /**
99
+ * The issuer's back-channel logout (OpenID Connect Back-Channel Logout 1.0
100
+ * §2.5): the application's issuer posts a `logout_token` here when a
101
+ * session it issued to this client ends. The adapter validates it as §2.6
102
+ * states (the connection's exact issuer and its keys, `typ` `logout+jwt`,
103
+ * `aud` this client, the logout event, no `nonce`) and ends every
104
+ * application session of that issuer session (`sid`). The client is
105
+ * registered with the session required (§2.2), so a token naming no
106
+ * session is `invalid_request` and ends nothing. A sign-in completing for
107
+ * an ended issuer session afterwards opens nothing.
108
+ *
109
+ * Server to server, so the answer is HTTP (§2.8): `x-http-code` 200 with
110
+ * `cache-control: no-store` once the end is recorded in the session store;
111
+ * 400 with the JSON error `invalid_request` for a token that does not
112
+ * validate; 503 when the session store cannot be reached, so the issuer
113
+ * retries.
114
+ *
115
+ * @generated from protobuf rpc: ReceiveBackChannelLogout
116
+ */
117
+ receiveBackChannelLogout(input, options) {
118
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
119
+ return stackIntercept("unary", this._transport, method, opt, input);
120
+ }
97
121
  }
98
122
  //# sourceMappingURL=application_session.client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"application_session.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/application_session.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAMrE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAiF1D;;GAEG;AACH,MAAM,OAAO,+BAA+B;IAIX;IAH7B,QAAQ,GAAG,yBAAyB,CAAC,QAAQ,CAAC;IAC9C,OAAO,GAAG,yBAAyB,CAAC,OAAO,CAAC;IAC5C,OAAO,GAAG,yBAAyB,CAAC,OAAO,CAAC;IAC5C,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,KAAyB,EAAE,OAAoB;QACvD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA+B,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACtG,CAAC;IACD;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,KAA4B,EAAE,OAAoB;QAC7D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAkC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACzG,CAAC;IACD;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CAAC,KAAmC,EAAE,OAAoB;QAC3E,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAmD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC1H,CAAC;IACD;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CAAC,KAAmC,EAAE,OAAoB;QAC3E,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA8D,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACrI,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/application_session.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { ApplicationSessionService } from \"./application_session.js\";\nimport type { EndApplicationSessionResponse } from \"./application_session.js\";\nimport type { EndApplicationSessionRequest } from \"./application_session.js\";\nimport type { ApplicationSession } from \"./application_session.js\";\nimport type { GetApplicationSessionRequest } from \"./application_session.js\";\nimport type { CompleteSignInRequest } from \"./application_session.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { HttpBody } from \"../../../google/api/httpbody.js\";\nimport type { StartSignInRequest } from \"./application_session.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * @generated from protobuf service sid.v1.authn.ApplicationSessionService\n */\nexport interface IApplicationSessionServiceClient {\n /**\n * Start a sign-in: redirect the browser to the issuer's authorization\n * endpoint (RFC 6749 §4.1.1) with the code flow, S256 PKCE (RFC 7636\n * §4.3), the application's resource (RFC 8707 §2) and a fresh `state` and\n * `nonce`, recorded server-side for the callback.\n *\n * A browser navigation, so the answer is HTTP: `x-http-code` 302 with\n * `location` in the response metadata and an empty body. Before the\n * installation has provisioned the application's client the answer is 503\n * and nothing is recorded.\n *\n * Records a single-use sign-in on every call, so a repeat is another\n * sign-in.\n *\n * @generated from protobuf rpc: StartSignIn\n */\n startSignIn(input: StartSignInRequest, options?: RpcOptions): UnaryCall<StartSignInRequest, HttpBody>;\n /**\n * Complete a sign-in from the issuer's authorization response (RFC 6749\n * §4.1.2): take the recorded sign-in its `state` names, exactly once, check\n * that the issuer answered (RFC 9207 §2.4), redeem the code with the\n * client's key (`private_key_jwt`, RFC 7523 §2.2), validate the access\n * token for the application's resource (RFC 9068 §4) and the ID token for\n * this client and nonce (OIDC Core 1.0 §3.1.3.7), and open the session.\n *\n * A browser navigation, so the answer is HTTP: `x-http-code` 302 to the\n * local path the sign-in started from, with the session cookie in\n * `set-cookie` (host-only, `Secure`, `HttpOnly`, `SameSite=Lax`). An\n * unknown, used or expired `state`, or an answer from another issuer, is\n * 400; an authorization error is 403; a redemption or token the issuer\n * got wrong is 502; a session store that cannot be reached is 503.\n *\n * Consumes the sign-in its `state` names, so a repeat is refused.\n *\n * @generated from protobuf rpc: CompleteSignIn\n */\n completeSignIn(input: CompleteSignInRequest, options?: RpcOptions): UnaryCall<CompleteSignInRequest, HttpBody>;\n /**\n * The signed-in user of the session the request's cookie names, and the\n * session's CSRF token, which every state-changing call echoes in\n * `x-csrf-token`. The application's page calls it over gRPC-Web on its own\n * origin; the cookie travels in the request metadata.\n *\n * No cookie, or one naming no live session of this application's\n * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer\n * session was ended elsewhere is ended here too and is UNAUTHENTICATED. A\n * session store or revocation check that cannot be answered is UNAVAILABLE\n * with RetryInfo: an outage never reads as a signed-out user.\n *\n * Extends the session's idle window; repeating it does nothing more.\n *\n * @generated from protobuf rpc: GetApplicationSession\n */\n getApplicationSession(input: GetApplicationSessionRequest, options?: RpcOptions): UnaryCall<GetApplicationSessionRequest, ApplicationSession>;\n /**\n * End the application session the request's cookie names and revoke the\n * grant behind it at the issuer (RFC 7009 §2.1); the response metadata\n * carries a `set-cookie` that clears the cookie. Requires the session's\n * CSRF token in `x-csrf-token` (a mismatch is PERMISSION_DENIED,\n * CSRF_TOKEN_INVALID). Ends the application session only: the issuer's\n * sign-in session and other applications are not touched.\n *\n * Without a cookie the answer is UNAUTHENTICATED. A session store that\n * cannot be reached is UNAVAILABLE and nothing is cleared.\n *\n * A repeat finds no session and answers GRANT_OUTCOME_UNKNOWN; nothing more\n * is ended.\n *\n * @generated from protobuf rpc: EndApplicationSession\n */\n endApplicationSession(input: EndApplicationSessionRequest, options?: RpcOptions): UnaryCall<EndApplicationSessionRequest, EndApplicationSessionResponse>;\n}\n/**\n * @generated from protobuf service sid.v1.authn.ApplicationSessionService\n */\nexport class ApplicationSessionServiceClient implements IApplicationSessionServiceClient, ServiceInfo {\n typeName = ApplicationSessionService.typeName;\n methods = ApplicationSessionService.methods;\n options = ApplicationSessionService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Start a sign-in: redirect the browser to the issuer's authorization\n * endpoint (RFC 6749 §4.1.1) with the code flow, S256 PKCE (RFC 7636\n * §4.3), the application's resource (RFC 8707 §2) and a fresh `state` and\n * `nonce`, recorded server-side for the callback.\n *\n * A browser navigation, so the answer is HTTP: `x-http-code` 302 with\n * `location` in the response metadata and an empty body. Before the\n * installation has provisioned the application's client the answer is 503\n * and nothing is recorded.\n *\n * Records a single-use sign-in on every call, so a repeat is another\n * sign-in.\n *\n * @generated from protobuf rpc: StartSignIn\n */\n startSignIn(input: StartSignInRequest, options?: RpcOptions): UnaryCall<StartSignInRequest, HttpBody> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<StartSignInRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Complete a sign-in from the issuer's authorization response (RFC 6749\n * §4.1.2): take the recorded sign-in its `state` names, exactly once, check\n * that the issuer answered (RFC 9207 §2.4), redeem the code with the\n * client's key (`private_key_jwt`, RFC 7523 §2.2), validate the access\n * token for the application's resource (RFC 9068 §4) and the ID token for\n * this client and nonce (OIDC Core 1.0 §3.1.3.7), and open the session.\n *\n * A browser navigation, so the answer is HTTP: `x-http-code` 302 to the\n * local path the sign-in started from, with the session cookie in\n * `set-cookie` (host-only, `Secure`, `HttpOnly`, `SameSite=Lax`). An\n * unknown, used or expired `state`, or an answer from another issuer, is\n * 400; an authorization error is 403; a redemption or token the issuer\n * got wrong is 502; a session store that cannot be reached is 503.\n *\n * Consumes the sign-in its `state` names, so a repeat is refused.\n *\n * @generated from protobuf rpc: CompleteSignIn\n */\n completeSignIn(input: CompleteSignInRequest, options?: RpcOptions): UnaryCall<CompleteSignInRequest, HttpBody> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<CompleteSignInRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The signed-in user of the session the request's cookie names, and the\n * session's CSRF token, which every state-changing call echoes in\n * `x-csrf-token`. The application's page calls it over gRPC-Web on its own\n * origin; the cookie travels in the request metadata.\n *\n * No cookie, or one naming no live session of this application's\n * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer\n * session was ended elsewhere is ended here too and is UNAUTHENTICATED. A\n * session store or revocation check that cannot be answered is UNAVAILABLE\n * with RetryInfo: an outage never reads as a signed-out user.\n *\n * Extends the session's idle window; repeating it does nothing more.\n *\n * @generated from protobuf rpc: GetApplicationSession\n */\n getApplicationSession(input: GetApplicationSessionRequest, options?: RpcOptions): UnaryCall<GetApplicationSessionRequest, ApplicationSession> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetApplicationSessionRequest, ApplicationSession>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * End the application session the request's cookie names and revoke the\n * grant behind it at the issuer (RFC 7009 §2.1); the response metadata\n * carries a `set-cookie` that clears the cookie. Requires the session's\n * CSRF token in `x-csrf-token` (a mismatch is PERMISSION_DENIED,\n * CSRF_TOKEN_INVALID). Ends the application session only: the issuer's\n * sign-in session and other applications are not touched.\n *\n * Without a cookie the answer is UNAUTHENTICATED. A session store that\n * cannot be reached is UNAVAILABLE and nothing is cleared.\n *\n * A repeat finds no session and answers GRANT_OUTCOME_UNKNOWN; nothing more\n * is ended.\n *\n * @generated from protobuf rpc: EndApplicationSession\n */\n endApplicationSession(input: EndApplicationSessionRequest, options?: RpcOptions): UnaryCall<EndApplicationSessionRequest, EndApplicationSessionResponse> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<EndApplicationSessionRequest, EndApplicationSessionResponse>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
1
+ {"version":3,"file":"application_session.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/application_session.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAOrE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAsG1D;;GAEG;AACH,MAAM,OAAO,+BAA+B;IAIX;IAH7B,QAAQ,GAAG,yBAAyB,CAAC,QAAQ,CAAC;IAC9C,OAAO,GAAG,yBAAyB,CAAC,OAAO,CAAC;IAC5C,OAAO,GAAG,yBAAyB,CAAC,OAAO,CAAC;IAC5C,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,KAAyB,EAAE,OAAoB;QACvD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,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,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAqC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC5G,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/application_session.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { ApplicationSessionService } from \"./application_session.js\";\nimport type { BackChannelLogoutRequest } from \"./application_session.js\";\nimport type { EndApplicationSessionResponse } from \"./application_session.js\";\nimport type { EndApplicationSessionRequest } from \"./application_session.js\";\nimport type { ApplicationSession } from \"./application_session.js\";\nimport type { GetApplicationSessionRequest } from \"./application_session.js\";\nimport type { CompleteSignInRequest } from \"./application_session.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { HttpBody } from \"../../../google/api/httpbody.js\";\nimport type { StartSignInRequest } from \"./application_session.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * @generated from protobuf service sid.v1.authn.ApplicationSessionService\n */\nexport interface IApplicationSessionServiceClient {\n /**\n * Start a sign-in: redirect the browser to the issuer's authorization\n * endpoint (RFC 6749 §4.1.1) with the code flow, S256 PKCE (RFC 7636\n * §4.3), the application's resource (RFC 8707 §2) and a fresh `state` and\n * `nonce`, recorded server-side for the callback.\n *\n * A browser navigation, so the answer is HTTP: `x-http-code` 302 with\n * `location` in the response metadata and an empty body. Before the\n * installation has provisioned the application's client the answer is 503\n * and nothing is recorded.\n *\n * Records a single-use sign-in on every call, so a repeat is another\n * sign-in.\n *\n * @generated from protobuf rpc: StartSignIn\n */\n startSignIn(input: StartSignInRequest, options?: RpcOptions): UnaryCall<StartSignInRequest, HttpBody>;\n /**\n * Complete a sign-in from the issuer's authorization response (RFC 6749\n * §4.1.2): take the recorded sign-in its `state` names, exactly once, check\n * that the issuer answered (RFC 9207 §2.4), redeem the code with the\n * client's key (`private_key_jwt`, RFC 7523 §2.2), validate the access\n * token for the application's resource (RFC 9068 §4) and the ID token for\n * this client and nonce (OIDC Core 1.0 §3.1.3.7), and open the session.\n *\n * A browser navigation, so the answer is HTTP: `x-http-code` 302 to the\n * local path the sign-in started from, with the session cookie in\n * `set-cookie` (host-only, `Secure`, `HttpOnly`, `SameSite=Lax`). An\n * unknown, used or expired `state`, or an answer from another issuer, is\n * 400; an authorization error is 403; a redemption or token the issuer\n * got wrong is 502; a session store that cannot be reached is 503.\n *\n * Consumes the sign-in its `state` names, so a repeat is refused.\n *\n * @generated from protobuf rpc: CompleteSignIn\n */\n completeSignIn(input: CompleteSignInRequest, options?: RpcOptions): UnaryCall<CompleteSignInRequest, HttpBody>;\n /**\n * The signed-in user of the session the request's cookie names, and the\n * session's CSRF token, which every state-changing call echoes in\n * `x-csrf-token`. The application's page calls it over gRPC-Web on its own\n * origin; the cookie travels in the request metadata.\n *\n * No cookie, or one naming no live session of this application's\n * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer\n * session was ended elsewhere (a back-channel logout received, or a\n * revocation known here) is ended here too and is UNAUTHENTICATED. A\n * session store or revocation check that cannot be answered is UNAVAILABLE\n * with RetryInfo: an outage never reads as a signed-out user.\n *\n * Extends the session's idle window; repeating it does nothing more.\n *\n * @generated from protobuf rpc: GetApplicationSession\n */\n getApplicationSession(input: GetApplicationSessionRequest, options?: RpcOptions): UnaryCall<GetApplicationSessionRequest, ApplicationSession>;\n /**\n * End the application session the request's cookie names and revoke the\n * grant behind it at the issuer (RFC 7009 §2.1); the response metadata\n * carries a `set-cookie` that clears the cookie. Requires the session's\n * CSRF token in `x-csrf-token` (a mismatch is PERMISSION_DENIED,\n * CSRF_TOKEN_INVALID). Ends the application session only: the issuer's\n * sign-in session and other applications are not touched.\n *\n * Without a cookie the answer is UNAUTHENTICATED. A session store that\n * cannot be reached is UNAVAILABLE and nothing is cleared.\n *\n * A repeat finds no session and answers GRANT_OUTCOME_UNKNOWN; nothing more\n * is ended.\n *\n * @generated from protobuf rpc: EndApplicationSession\n */\n endApplicationSession(input: EndApplicationSessionRequest, options?: RpcOptions): UnaryCall<EndApplicationSessionRequest, EndApplicationSessionResponse>;\n /**\n * The issuer's back-channel logout (OpenID Connect Back-Channel Logout 1.0\n * §2.5): the application's issuer posts a `logout_token` here when a\n * session it issued to this client ends. The adapter validates it as §2.6\n * states (the connection's exact issuer and its keys, `typ` `logout+jwt`,\n * `aud` this client, the logout event, no `nonce`) and ends every\n * application session of that issuer session (`sid`). The client is\n * registered with the session required (§2.2), so a token naming no\n * session is `invalid_request` and ends nothing. A sign-in completing for\n * an ended issuer session afterwards opens nothing.\n *\n * Server to server, so the answer is HTTP (§2.8): `x-http-code` 200 with\n * `cache-control: no-store` once the end is recorded in the session store;\n * 400 with the JSON error `invalid_request` for a token that does not\n * validate; 503 when the session store cannot be reached, so the issuer\n * retries.\n *\n * @generated from protobuf rpc: ReceiveBackChannelLogout\n */\n receiveBackChannelLogout(input: BackChannelLogoutRequest, options?: RpcOptions): UnaryCall<BackChannelLogoutRequest, HttpBody>;\n}\n/**\n * @generated from protobuf service sid.v1.authn.ApplicationSessionService\n */\nexport class ApplicationSessionServiceClient implements IApplicationSessionServiceClient, ServiceInfo {\n typeName = ApplicationSessionService.typeName;\n methods = ApplicationSessionService.methods;\n options = ApplicationSessionService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Start a sign-in: redirect the browser to the issuer's authorization\n * endpoint (RFC 6749 §4.1.1) with the code flow, S256 PKCE (RFC 7636\n * §4.3), the application's resource (RFC 8707 §2) and a fresh `state` and\n * `nonce`, recorded server-side for the callback.\n *\n * A browser navigation, so the answer is HTTP: `x-http-code` 302 with\n * `location` in the response metadata and an empty body. Before the\n * installation has provisioned the application's client the answer is 503\n * and nothing is recorded.\n *\n * Records a single-use sign-in on every call, so a repeat is another\n * sign-in.\n *\n * @generated from protobuf rpc: StartSignIn\n */\n startSignIn(input: StartSignInRequest, options?: RpcOptions): UnaryCall<StartSignInRequest, HttpBody> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<StartSignInRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Complete a sign-in from the issuer's authorization response (RFC 6749\n * §4.1.2): take the recorded sign-in its `state` names, exactly once, check\n * that the issuer answered (RFC 9207 §2.4), redeem the code with the\n * client's key (`private_key_jwt`, RFC 7523 §2.2), validate the access\n * token for the application's resource (RFC 9068 §4) and the ID token for\n * this client and nonce (OIDC Core 1.0 §3.1.3.7), and open the session.\n *\n * A browser navigation, so the answer is HTTP: `x-http-code` 302 to the\n * local path the sign-in started from, with the session cookie in\n * `set-cookie` (host-only, `Secure`, `HttpOnly`, `SameSite=Lax`). An\n * unknown, used or expired `state`, or an answer from another issuer, is\n * 400; an authorization error is 403; a redemption or token the issuer\n * got wrong is 502; a session store that cannot be reached is 503.\n *\n * Consumes the sign-in its `state` names, so a repeat is refused.\n *\n * @generated from protobuf rpc: CompleteSignIn\n */\n completeSignIn(input: CompleteSignInRequest, options?: RpcOptions): UnaryCall<CompleteSignInRequest, HttpBody> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<CompleteSignInRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The signed-in user of the session the request's cookie names, and the\n * session's CSRF token, which every state-changing call echoes in\n * `x-csrf-token`. The application's page calls it over gRPC-Web on its own\n * origin; the cookie travels in the request metadata.\n *\n * No cookie, or one naming no live session of this application's\n * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer\n * session was ended elsewhere (a back-channel logout received, or a\n * revocation known here) is ended here too and is UNAUTHENTICATED. A\n * session store or revocation check that cannot be answered is UNAVAILABLE\n * with RetryInfo: an outage never reads as a signed-out user.\n *\n * Extends the session's idle window; repeating it does nothing more.\n *\n * @generated from protobuf rpc: GetApplicationSession\n */\n getApplicationSession(input: GetApplicationSessionRequest, options?: RpcOptions): UnaryCall<GetApplicationSessionRequest, ApplicationSession> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetApplicationSessionRequest, ApplicationSession>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * End the application session the request's cookie names and revoke the\n * grant behind it at the issuer (RFC 7009 §2.1); the response metadata\n * carries a `set-cookie` that clears the cookie. Requires the session's\n * CSRF token in `x-csrf-token` (a mismatch is PERMISSION_DENIED,\n * CSRF_TOKEN_INVALID). Ends the application session only: the issuer's\n * sign-in session and other applications are not touched.\n *\n * Without a cookie the answer is UNAUTHENTICATED. A session store that\n * cannot be reached is UNAVAILABLE and nothing is cleared.\n *\n * A repeat finds no session and answers GRANT_OUTCOME_UNKNOWN; nothing more\n * is ended.\n *\n * @generated from protobuf rpc: EndApplicationSession\n */\n endApplicationSession(input: EndApplicationSessionRequest, options?: RpcOptions): UnaryCall<EndApplicationSessionRequest, EndApplicationSessionResponse> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<EndApplicationSessionRequest, EndApplicationSessionResponse>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The issuer's back-channel logout (OpenID Connect Back-Channel Logout 1.0\n * §2.5): the application's issuer posts a `logout_token` here when a\n * session it issued to this client ends. The adapter validates it as §2.6\n * states (the connection's exact issuer and its keys, `typ` `logout+jwt`,\n * `aud` this client, the logout event, no `nonce`) and ends every\n * application session of that issuer session (`sid`). The client is\n * registered with the session required (§2.2), so a token naming no\n * session is `invalid_request` and ends nothing. A sign-in completing for\n * an ended issuer session afterwards opens nothing.\n *\n * Server to server, so the answer is HTTP (§2.8): `x-http-code` 200 with\n * `cache-control: no-store` once the end is recorded in the session store;\n * 400 with the JSON error `invalid_request` for a token that does not\n * validate; 503 when the session store cannot be reached, so the issuer\n * retries.\n *\n * @generated from protobuf rpc: ReceiveBackChannelLogout\n */\n receiveBackChannelLogout(input: BackChannelLogoutRequest, options?: RpcOptions): UnaryCall<BackChannelLogoutRequest, HttpBody> {\n const method = this.methods[4], opt = this._transport.mergeOptions(options);\n return stackIntercept<BackChannelLogoutRequest, HttpBody>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
@@ -5,6 +5,20 @@ 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 { HttpBody } from "../../../google/api/httpbody.js";
9
+ /**
10
+ * @generated from protobuf message sid.v1.authn.BackChannelLogoutRequest
11
+ */
12
+ export interface BackChannelLogoutRequest {
13
+ /**
14
+ * The issuer's POST as it arrived: the `application/x-www-form-urlencoded`
15
+ * form carrying `logout_token` (Back-Channel Logout 1.0 §2.5), sent by the
16
+ * issuer, never by a browser.
17
+ *
18
+ * @generated from protobuf field: google.api.HttpBody body = 1
19
+ */
20
+ body?: HttpBody;
21
+ }
8
22
  /**
9
23
  * @generated from protobuf message sid.v1.authn.StartSignInRequest
10
24
  */
@@ -157,6 +171,16 @@ export declare enum GrantOutcome {
157
171
  */
158
172
  UNKNOWN = 4
159
173
  }
174
+ declare class BackChannelLogoutRequest$Type extends MessageType<BackChannelLogoutRequest> {
175
+ constructor();
176
+ create(value?: PartialMessage<BackChannelLogoutRequest>): BackChannelLogoutRequest;
177
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BackChannelLogoutRequest): BackChannelLogoutRequest;
178
+ internalBinaryWrite(message: BackChannelLogoutRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
179
+ }
180
+ /**
181
+ * @generated MessageType for protobuf message sid.v1.authn.BackChannelLogoutRequest
182
+ */
183
+ export declare const BackChannelLogoutRequest: BackChannelLogoutRequest$Type;
160
184
  declare class StartSignInRequest$Type extends MessageType<StartSignInRequest> {
161
185
  constructor();
162
186
  create(value?: PartialMessage<StartSignInRequest>): StartSignInRequest;
@@ -2,12 +2,12 @@
2
2
  // @generated from protobuf file "sid/v1/authn/application_session.proto" (package "sid.v1.authn", syntax proto3)
3
3
  // tslint:disable
4
4
  // @ts-nocheck
5
- import { HttpBody } from "../../../google/api/httpbody.js";
6
5
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
7
6
  import { WireType } from "@protobuf-ts/runtime";
8
7
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
9
8
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
10
9
  import { MessageType } from "@protobuf-ts/runtime";
10
+ import { HttpBody } from "../../../google/api/httpbody.js";
11
11
  /**
12
12
  * What became of the grant behind an ended application session.
13
13
  *
@@ -47,6 +47,52 @@ export var GrantOutcome;
47
47
  GrantOutcome[GrantOutcome["UNKNOWN"] = 4] = "UNKNOWN";
48
48
  })(GrantOutcome || (GrantOutcome = {}));
49
49
  // @generated message type with reflection information, may provide speed optimized methods
50
+ class BackChannelLogoutRequest$Type extends MessageType {
51
+ constructor() {
52
+ super("sid.v1.authn.BackChannelLogoutRequest", [
53
+ { no: 1, name: "body", kind: "message", T: () => HttpBody }
54
+ ]);
55
+ }
56
+ create(value) {
57
+ const message = globalThis.Object.create((this.messagePrototype));
58
+ if (value !== undefined)
59
+ reflectionMergePartial(this, message, value);
60
+ return message;
61
+ }
62
+ internalBinaryRead(reader, length, options, target) {
63
+ let message = target ?? this.create(), end = reader.pos + length;
64
+ while (reader.pos < end) {
65
+ let [fieldNo, wireType] = reader.tag();
66
+ switch (fieldNo) {
67
+ case /* google.api.HttpBody body */ 1:
68
+ message.body = HttpBody.internalBinaryRead(reader, reader.uint32(), options, message.body);
69
+ break;
70
+ default:
71
+ let u = options.readUnknownField;
72
+ if (u === "throw")
73
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
74
+ let d = reader.skip(wireType);
75
+ if (u !== false)
76
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
77
+ }
78
+ }
79
+ return message;
80
+ }
81
+ internalBinaryWrite(message, writer, options) {
82
+ /* google.api.HttpBody body = 1; */
83
+ if (message.body)
84
+ HttpBody.internalBinaryWrite(message.body, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
85
+ let u = options.writeUnknownFields;
86
+ if (u !== false)
87
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
88
+ return writer;
89
+ }
90
+ }
91
+ /**
92
+ * @generated MessageType for protobuf message sid.v1.authn.BackChannelLogoutRequest
93
+ */
94
+ export const BackChannelLogoutRequest = new BackChannelLogoutRequest$Type();
95
+ // @generated message type with reflection information, may provide speed optimized methods
50
96
  class StartSignInRequest$Type extends MessageType {
51
97
  constructor() {
52
98
  super("sid.v1.authn.StartSignInRequest", [
@@ -375,6 +421,7 @@ export const ApplicationSessionService = new ServiceType("sid.v1.authn.Applicati
375
421
  { name: "StartSignIn", options: { "google.api.http": { get: "/auth/login" }, "sid.v1.common.retry": { ceremony: "RFC 6749 \u00A710.12: each call records its own single-use sign-in state; nothing else changes before its callback" } }, I: StartSignInRequest, O: HttpBody },
376
422
  { name: "CompleteSignIn", options: { "google.api.http": { get: "/auth/callback" }, "sid.v1.common.retry": { ceremony: "RFC 6749 \u00A710.12: the sign-in its state names is consumed by its completion; a repeat is refused and creates no session" } }, I: CompleteSignInRequest, O: HttpBody },
377
423
  { name: "GetApplicationSession", idempotency: "IDEMPOTENT", options: { "sid.v1.common.retry": { natural: "the call only moves the session's idle window to now: a repeat moves it to the same point again and changes nothing else" } }, I: GetApplicationSessionRequest, O: ApplicationSession },
378
- { name: "EndApplicationSession", idempotency: "IDEMPOTENT", options: { "sid.v1.common.retry": { natural: "an ended session stays ended and is never resumed: a repeat finds no session, ends nothing more and answers GRANT_OUTCOME_UNKNOWN" } }, I: EndApplicationSessionRequest, O: EndApplicationSessionResponse }
424
+ { name: "EndApplicationSession", idempotency: "IDEMPOTENT", options: { "sid.v1.common.retry": { natural: "an ended session stays ended and is never resumed: a repeat finds no session, ends nothing more and answers GRANT_OUTCOME_UNKNOWN" } }, I: EndApplicationSessionRequest, O: EndApplicationSessionResponse },
425
+ { name: "ReceiveBackChannelLogout", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/auth/backchannel-logout", body: "body" }, "sid.v1.common.retry": { natural: "an ended issuer session stays ended here: a repeat of the token, or a later token naming the same session, ends nothing more and answers 200 again" } }, I: BackChannelLogoutRequest, O: HttpBody }
379
426
  ]);
380
427
  //# sourceMappingURL=application_session.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"application_session.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/application_session.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,iHAAiH;AACjH,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,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;AAoHnD;;;;GAIG;AACH,MAAM,CAAN,IAAY,YA+BX;AA/BD,WAAY,YAAY;IACpB;;OAEG;IACH,6DAAe,CAAA;IACf;;;;OAIG;IACH,qDAAW,CAAA;IACX;;;;;OAKG;IACH,6DAAe,CAAA;IACf;;;;OAIG;IACH,+CAAQ,CAAA;IACR;;;;;OAKG;IACH,qDAAW,CAAA;AACf,CAAC,EA/BW,YA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,qBAAqB,EAAE,EAAE,OAAO,EAAE,0HAA0H,EAAE,EAAE,EAAE,CAAC,EAAE,4BAA4B,EAAE,CAAC,EAAE,kBAAkB,EAAE;IACjS,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE,EAAE,OAAO,EAAE,mIAAmI,EAAE,EAAE,EAAE,CAAC,EAAE,4BAA4B,EAAE,CAAC,EAAE,6BAA6B,EAAE;CACxT,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/authn/application_session.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { HttpBody } from \"../../../google/api/httpbody.js\";\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\";\n/**\n * @generated from protobuf message sid.v1.authn.StartSignInRequest\n */\nexport interface StartSignInRequest {\n /**\n * Where on the application's origin to return after sign-in: a local path\n * starting with a single `/`. Anything else (another origin, `//host`,\n * `/\\host`, control characters) returns to `/` (RFC 9700 §4.11). Supplied\n * by the page that sends the browser here.\n *\n * @generated from protobuf field: string rd = 1\n */\n rd: string;\n}\n/**\n * @generated from protobuf message sid.v1.authn.CompleteSignInRequest\n */\nexport interface CompleteSignInRequest {\n /**\n * The `state` the sign-in sent, as the issuer returned it (RFC 6749\n * §4.1.2). Names the recorded sign-in; anything but a value this adapter\n * issued is refused.\n *\n * @generated from protobuf field: string state = 1\n */\n state: string;\n /**\n * The authorization code, absent when the issuer answered an error.\n *\n * @generated from protobuf field: optional string code = 2\n */\n code?: string;\n /**\n * The issuer's error code (RFC 6749 §4.1.2.1), when it refused.\n *\n * @generated from protobuf field: optional string error = 3\n */\n error?: string;\n /**\n * The issuer that answered (RFC 9207 §2); must be the connection's issuer.\n *\n * @generated from protobuf field: optional string iss = 4\n */\n iss?: string;\n}\n/**\n * @generated from protobuf message sid.v1.authn.GetApplicationSessionRequest\n */\nexport interface GetApplicationSessionRequest {\n}\n/**\n * The signed-in user as this application's issuer names it, and the session's\n * CSRF token.\n *\n * @generated from protobuf message sid.v1.authn.ApplicationSession\n */\nexport interface ApplicationSession {\n /**\n * The user's subject at this application (`sub` of the issuer's tokens for\n * it): recipient-scoped and opaque; its shape does not say what kind of\n * identifier it is.\n *\n * @generated from protobuf field: string sub = 1\n */\n sub: string;\n /**\n * Email address from the sign-in's ID token, when disclosed to this\n * application.\n *\n * @generated from protobuf field: optional string email = 2\n */\n email?: string;\n /**\n * Display name from the sign-in's ID token, when disclosed.\n *\n * @generated from protobuf field: optional string name = 3\n */\n name?: string;\n /**\n * Username from the sign-in's ID token, when disclosed.\n *\n * @generated from protobuf field: optional string preferred_username = 4\n */\n preferredUsername?: string;\n /**\n * Authentication context class of the sign-in (`acr`, OIDC Core 1.0 §2).\n *\n * @generated from protobuf field: string acr = 5\n */\n acr: string;\n /**\n * The session's synchronizer token: echoed in `x-csrf-token` on every\n * state-changing call of this session. Bound to this session only; not a\n * credential by itself.\n *\n * @generated from protobuf field: string csrf_token = 6\n */\n csrfToken: string;\n}\n/**\n * @generated from protobuf message sid.v1.authn.EndApplicationSessionRequest\n */\nexport interface EndApplicationSessionRequest {\n}\n/**\n * @generated from protobuf message sid.v1.authn.EndApplicationSessionResponse\n */\nexport interface EndApplicationSessionResponse {\n /**\n * What became of the issuer's grant behind the ended session.\n *\n * @generated from protobuf field: sid.v1.authn.GrantOutcome grant = 1\n */\n grant: GrantOutcome;\n}\n/**\n * What became of the grant behind an ended application session.\n *\n * @generated from protobuf enum sid.v1.authn.GrantOutcome\n */\nexport enum GrantOutcome {\n /**\n * @generated from protobuf enum value: GRANT_OUTCOME_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * The issuer revoked it: its refresh token no longer works.\n *\n * @generated from protobuf enum value: GRANT_OUTCOME_REVOKED = 1;\n */\n REVOKED = 1,\n /**\n * A grant stood behind the session and the issuer did not revoke it; it\n * lives until it expires, though nobody holds its token any more.\n *\n * @generated from protobuf enum value: GRANT_OUTCOME_NOT_REVOKED = 2;\n */\n NOT_REVOKED = 2,\n /**\n * No grant stood behind the session.\n *\n * @generated from protobuf enum value: GRANT_OUTCOME_NONE = 3;\n */\n NONE = 3,\n /**\n * Not known: the session was already gone, or the revocation's answer was\n * lost after it may have taken effect.\n *\n * @generated from protobuf enum value: GRANT_OUTCOME_UNKNOWN = 4;\n */\n UNKNOWN = 4\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass StartSignInRequest$Type extends MessageType<StartSignInRequest> {\n constructor() {\n super(\"sid.v1.authn.StartSignInRequest\", [\n { no: 1, name: \"rd\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StartSignInRequest>): StartSignInRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.rd = \"\";\n if (value !== undefined)\n reflectionMergePartial<StartSignInRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartSignInRequest): StartSignInRequest {\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 rd */ 1:\n message.rd = reader.string();\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: StartSignInRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string rd = 1; */\n if (message.rd !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.rd);\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.authn.StartSignInRequest\n */\nexport const StartSignInRequest = new StartSignInRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CompleteSignInRequest$Type extends MessageType<CompleteSignInRequest> {\n constructor() {\n super(\"sid.v1.authn.CompleteSignInRequest\", [\n { no: 1, name: \"state\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"code\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"error\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"iss\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<CompleteSignInRequest>): CompleteSignInRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.state = \"\";\n if (value !== undefined)\n reflectionMergePartial<CompleteSignInRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CompleteSignInRequest): CompleteSignInRequest {\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 state */ 1:\n message.state = reader.string();\n break;\n case /* optional string code */ 2:\n message.code = reader.string();\n break;\n case /* optional string error */ 3:\n message.error = reader.string();\n break;\n case /* optional string iss */ 4:\n message.iss = reader.string();\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: CompleteSignInRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string state = 1; */\n if (message.state !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.state);\n /* optional string code = 2; */\n if (message.code !== undefined)\n writer.tag(2, WireType.LengthDelimited).string(message.code);\n /* optional string error = 3; */\n if (message.error !== undefined)\n writer.tag(3, WireType.LengthDelimited).string(message.error);\n /* optional string iss = 4; */\n if (message.iss !== undefined)\n writer.tag(4, WireType.LengthDelimited).string(message.iss);\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.authn.CompleteSignInRequest\n */\nexport const CompleteSignInRequest = new CompleteSignInRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetApplicationSessionRequest$Type extends MessageType<GetApplicationSessionRequest> {\n constructor() {\n super(\"sid.v1.authn.GetApplicationSessionRequest\", []);\n }\n create(value?: PartialMessage<GetApplicationSessionRequest>): GetApplicationSessionRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<GetApplicationSessionRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetApplicationSessionRequest): GetApplicationSessionRequest {\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: GetApplicationSessionRequest, 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.authn.GetApplicationSessionRequest\n */\nexport const GetApplicationSessionRequest = new GetApplicationSessionRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ApplicationSession$Type extends MessageType<ApplicationSession> {\n constructor() {\n super(\"sid.v1.authn.ApplicationSession\", [\n { no: 1, name: \"sub\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"email\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"name\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"preferred_username\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 5, name: \"acr\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 6, name: \"csrf_token\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<ApplicationSession>): ApplicationSession {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.sub = \"\";\n message.acr = \"\";\n message.csrfToken = \"\";\n if (value !== undefined)\n reflectionMergePartial<ApplicationSession>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ApplicationSession): ApplicationSession {\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 sub */ 1:\n message.sub = reader.string();\n break;\n case /* optional string email */ 2:\n message.email = reader.string();\n break;\n case /* optional string name */ 3:\n message.name = reader.string();\n break;\n case /* optional string preferred_username */ 4:\n message.preferredUsername = reader.string();\n break;\n case /* string acr */ 5:\n message.acr = reader.string();\n break;\n case /* string csrf_token */ 6:\n message.csrfToken = reader.string();\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: ApplicationSession, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string sub = 1; */\n if (message.sub !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.sub);\n /* optional string email = 2; */\n if (message.email !== undefined)\n writer.tag(2, WireType.LengthDelimited).string(message.email);\n /* optional string name = 3; */\n if (message.name !== undefined)\n writer.tag(3, WireType.LengthDelimited).string(message.name);\n /* optional string preferred_username = 4; */\n if (message.preferredUsername !== undefined)\n writer.tag(4, WireType.LengthDelimited).string(message.preferredUsername);\n /* string acr = 5; */\n if (message.acr !== \"\")\n writer.tag(5, WireType.LengthDelimited).string(message.acr);\n /* string csrf_token = 6; */\n if (message.csrfToken !== \"\")\n writer.tag(6, WireType.LengthDelimited).string(message.csrfToken);\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.authn.ApplicationSession\n */\nexport const ApplicationSession = new ApplicationSession$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EndApplicationSessionRequest$Type extends MessageType<EndApplicationSessionRequest> {\n constructor() {\n super(\"sid.v1.authn.EndApplicationSessionRequest\", []);\n }\n create(value?: PartialMessage<EndApplicationSessionRequest>): EndApplicationSessionRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<EndApplicationSessionRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndApplicationSessionRequest): EndApplicationSessionRequest {\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: EndApplicationSessionRequest, 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.authn.EndApplicationSessionRequest\n */\nexport const EndApplicationSessionRequest = new EndApplicationSessionRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EndApplicationSessionResponse$Type extends MessageType<EndApplicationSessionResponse> {\n constructor() {\n super(\"sid.v1.authn.EndApplicationSessionResponse\", [\n { no: 1, name: \"grant\", kind: \"enum\", T: () => [\"sid.v1.authn.GrantOutcome\", GrantOutcome, \"GRANT_OUTCOME_\"] }\n ]);\n }\n create(value?: PartialMessage<EndApplicationSessionResponse>): EndApplicationSessionResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.grant = 0;\n if (value !== undefined)\n reflectionMergePartial<EndApplicationSessionResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndApplicationSessionResponse): EndApplicationSessionResponse {\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 /* sid.v1.authn.GrantOutcome grant */ 1:\n message.grant = reader.int32();\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: EndApplicationSessionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.authn.GrantOutcome grant = 1; */\n if (message.grant !== 0)\n writer.tag(1, WireType.Varint).int32(message.grant);\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.authn.EndApplicationSessionResponse\n */\nexport const EndApplicationSessionResponse = new EndApplicationSessionResponse$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.authn.ApplicationSessionService\n */\nexport const ApplicationSessionService = new ServiceType(\"sid.v1.authn.ApplicationSessionService\", [\n { name: \"StartSignIn\", options: { \"google.api.http\": { get: \"/auth/login\" }, \"sid.v1.common.retry\": { ceremony: \"RFC 6749 \\u00A710.12: each call records its own single-use sign-in state; nothing else changes before its callback\" } }, I: StartSignInRequest, O: HttpBody },\n { name: \"CompleteSignIn\", options: { \"google.api.http\": { get: \"/auth/callback\" }, \"sid.v1.common.retry\": { ceremony: \"RFC 6749 \\u00A710.12: the sign-in its state names is consumed by its completion; a repeat is refused and creates no session\" } }, I: CompleteSignInRequest, O: HttpBody },\n { name: \"GetApplicationSession\", idempotency: \"IDEMPOTENT\", options: { \"sid.v1.common.retry\": { natural: \"the call only moves the session's idle window to now: a repeat moves it to the same point again and changes nothing else\" } }, I: GetApplicationSessionRequest, O: ApplicationSession },\n { name: \"EndApplicationSession\", idempotency: \"IDEMPOTENT\", options: { \"sid.v1.common.retry\": { natural: \"an ended session stays ended and is never resumed: a repeat finds no session, ends nothing more and answers GRANT_OUTCOME_UNKNOWN\" } }, I: EndApplicationSessionRequest, O: EndApplicationSessionResponse }\n]);\n"]}
1
+ {"version":3,"file":"application_session.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/application_session.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,iHAAiH;AACjH,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,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAiI3D;;;;GAIG;AACH,MAAM,CAAN,IAAY,YA+BX;AA/BD,WAAY,YAAY;IACpB;;OAEG;IACH,6DAAe,CAAA;IACf;;;;OAIG;IACH,qDAAW,CAAA;IACX;;;;;OAKG;IACH,6DAAe,CAAA;IACf;;;;OAIG;IACH,+CAAQ,CAAA;IACR;;;;;OAKG;IACH,qDAAW,CAAA;AACf,CAAC,EA/BW,YAAY,KAAZ,YAAY,QA+BvB;AACD,2FAA2F;AAC3F,MAAM,6BAA8B,SAAQ,WAAqC;IAC7E;QACI,KAAK,CAAC,uCAAuC,EAAE;YAC3C,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE;SAC9D,CAAC,CAAC;IACP,CAAC;IACD,MAAM,CAAC,KAAgD;QACnD,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAiB,CAAC,CAAC,CAAC;QACnE,IAAI,KAAK,KAAK,SAAS;YACnB,sBAAsB,CAA2B,IAAI,EAAE,OAAO,E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AC/F,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,qBAAqB,EAAE,EAAE,QAAQ,EAAE,oHAAoH,EAAE,EAAE,EAAE,CAAC,EAAE,kBAAkB,EAAE,CAAC,EAAE,QAAQ,EAAE;IAC9Q,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,EAAE,qBAAqB,EAAE,EAAE,QAAQ,EAAE,6HAA6H,EAAE,EAAE,EAAE,CAAC,EAAE,qBAAqB,EAAE,CAAC,EAAE,QAAQ,EAAE;IAChS,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE,EAAE,OAAO,EAAE,0HAA0H,EAAE,EAAE,EAAE,CAAC,EAAE,4BAA4B,EAAE,CAAC,EAAE,kBAAkB,EAAE;IACjS,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE,EAAE,OAAO,EAAE,mIAAmI,EAAE,EAAE,EAAE,CAAC,EAAE,4BAA4B,EAAE,CAAC,EAAE,6BAA6B,EAAE;IACrT,EAAE,IAAI,EAAE,0BAA0B,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,qBAAqB,EAAE,EAAE,OAAO,EAAE,oJAAoJ,EAAE,EAAE,EAAE,CAAC,EAAE,wBAAwB,EAAE,CAAC,EAAE,QAAQ,EAAE;CAC1X,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/authn/application_session.proto\" (package \"sid.v1.authn\", 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 { HttpBody } from \"../../../google/api/httpbody.js\";\n/**\n * @generated from protobuf message sid.v1.authn.BackChannelLogoutRequest\n */\nexport interface BackChannelLogoutRequest {\n /**\n * The issuer's POST as it arrived: the `application/x-www-form-urlencoded`\n * form carrying `logout_token` (Back-Channel Logout 1.0 §2.5), sent by the\n * issuer, never by a browser.\n *\n * @generated from protobuf field: google.api.HttpBody body = 1\n */\n body?: HttpBody;\n}\n/**\n * @generated from protobuf message sid.v1.authn.StartSignInRequest\n */\nexport interface StartSignInRequest {\n /**\n * Where on the application's origin to return after sign-in: a local path\n * starting with a single `/`. Anything else (another origin, `//host`,\n * `/\\host`, control characters) returns to `/` (RFC 9700 §4.11). Supplied\n * by the page that sends the browser here.\n *\n * @generated from protobuf field: string rd = 1\n */\n rd: string;\n}\n/**\n * @generated from protobuf message sid.v1.authn.CompleteSignInRequest\n */\nexport interface CompleteSignInRequest {\n /**\n * The `state` the sign-in sent, as the issuer returned it (RFC 6749\n * §4.1.2). Names the recorded sign-in; anything but a value this adapter\n * issued is refused.\n *\n * @generated from protobuf field: string state = 1\n */\n state: string;\n /**\n * The authorization code, absent when the issuer answered an error.\n *\n * @generated from protobuf field: optional string code = 2\n */\n code?: string;\n /**\n * The issuer's error code (RFC 6749 §4.1.2.1), when it refused.\n *\n * @generated from protobuf field: optional string error = 3\n */\n error?: string;\n /**\n * The issuer that answered (RFC 9207 §2); must be the connection's issuer.\n *\n * @generated from protobuf field: optional string iss = 4\n */\n iss?: string;\n}\n/**\n * @generated from protobuf message sid.v1.authn.GetApplicationSessionRequest\n */\nexport interface GetApplicationSessionRequest {\n}\n/**\n * The signed-in user as this application's issuer names it, and the session's\n * CSRF token.\n *\n * @generated from protobuf message sid.v1.authn.ApplicationSession\n */\nexport interface ApplicationSession {\n /**\n * The user's subject at this application (`sub` of the issuer's tokens for\n * it): recipient-scoped and opaque; its shape does not say what kind of\n * identifier it is.\n *\n * @generated from protobuf field: string sub = 1\n */\n sub: string;\n /**\n * Email address from the sign-in's ID token, when disclosed to this\n * application.\n *\n * @generated from protobuf field: optional string email = 2\n */\n email?: string;\n /**\n * Display name from the sign-in's ID token, when disclosed.\n *\n * @generated from protobuf field: optional string name = 3\n */\n name?: string;\n /**\n * Username from the sign-in's ID token, when disclosed.\n *\n * @generated from protobuf field: optional string preferred_username = 4\n */\n preferredUsername?: string;\n /**\n * Authentication context class of the sign-in (`acr`, OIDC Core 1.0 §2).\n *\n * @generated from protobuf field: string acr = 5\n */\n acr: string;\n /**\n * The session's synchronizer token: echoed in `x-csrf-token` on every\n * state-changing call of this session. Bound to this session only; not a\n * credential by itself.\n *\n * @generated from protobuf field: string csrf_token = 6\n */\n csrfToken: string;\n}\n/**\n * @generated from protobuf message sid.v1.authn.EndApplicationSessionRequest\n */\nexport interface EndApplicationSessionRequest {\n}\n/**\n * @generated from protobuf message sid.v1.authn.EndApplicationSessionResponse\n */\nexport interface EndApplicationSessionResponse {\n /**\n * What became of the issuer's grant behind the ended session.\n *\n * @generated from protobuf field: sid.v1.authn.GrantOutcome grant = 1\n */\n grant: GrantOutcome;\n}\n/**\n * What became of the grant behind an ended application session.\n *\n * @generated from protobuf enum sid.v1.authn.GrantOutcome\n */\nexport enum GrantOutcome {\n /**\n * @generated from protobuf enum value: GRANT_OUTCOME_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * The issuer revoked it: its refresh token no longer works.\n *\n * @generated from protobuf enum value: GRANT_OUTCOME_REVOKED = 1;\n */\n REVOKED = 1,\n /**\n * A grant stood behind the session and the issuer did not revoke it; it\n * lives until it expires, though nobody holds its token any more.\n *\n * @generated from protobuf enum value: GRANT_OUTCOME_NOT_REVOKED = 2;\n */\n NOT_REVOKED = 2,\n /**\n * No grant stood behind the session.\n *\n * @generated from protobuf enum value: GRANT_OUTCOME_NONE = 3;\n */\n NONE = 3,\n /**\n * Not known: the session was already gone, or the revocation's answer was\n * lost after it may have taken effect.\n *\n * @generated from protobuf enum value: GRANT_OUTCOME_UNKNOWN = 4;\n */\n UNKNOWN = 4\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass BackChannelLogoutRequest$Type extends MessageType<BackChannelLogoutRequest> {\n constructor() {\n super(\"sid.v1.authn.BackChannelLogoutRequest\", [\n { no: 1, name: \"body\", kind: \"message\", T: () => HttpBody }\n ]);\n }\n create(value?: PartialMessage<BackChannelLogoutRequest>): BackChannelLogoutRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<BackChannelLogoutRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BackChannelLogoutRequest): BackChannelLogoutRequest {\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 /* google.api.HttpBody body */ 1:\n message.body = HttpBody.internalBinaryRead(reader, reader.uint32(), options, message.body);\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: BackChannelLogoutRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* google.api.HttpBody body = 1; */\n if (message.body)\n HttpBody.internalBinaryWrite(message.body, writer.tag(1, 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.authn.BackChannelLogoutRequest\n */\nexport const BackChannelLogoutRequest = new BackChannelLogoutRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StartSignInRequest$Type extends MessageType<StartSignInRequest> {\n constructor() {\n super(\"sid.v1.authn.StartSignInRequest\", [\n { no: 1, name: \"rd\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StartSignInRequest>): StartSignInRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.rd = \"\";\n if (value !== undefined)\n reflectionMergePartial<StartSignInRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartSignInRequest): StartSignInRequest {\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 rd */ 1:\n message.rd = reader.string();\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: StartSignInRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string rd = 1; */\n if (message.rd !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.rd);\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.authn.StartSignInRequest\n */\nexport const StartSignInRequest = new StartSignInRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CompleteSignInRequest$Type extends MessageType<CompleteSignInRequest> {\n constructor() {\n super(\"sid.v1.authn.CompleteSignInRequest\", [\n { no: 1, name: \"state\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"code\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"error\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"iss\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<CompleteSignInRequest>): CompleteSignInRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.state = \"\";\n if (value !== undefined)\n reflectionMergePartial<CompleteSignInRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CompleteSignInRequest): CompleteSignInRequest {\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 state */ 1:\n message.state = reader.string();\n break;\n case /* optional string code */ 2:\n message.code = reader.string();\n break;\n case /* optional string error */ 3:\n message.error = reader.string();\n break;\n case /* optional string iss */ 4:\n message.iss = reader.string();\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: CompleteSignInRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string state = 1; */\n if (message.state !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.state);\n /* optional string code = 2; */\n if (message.code !== undefined)\n writer.tag(2, WireType.LengthDelimited).string(message.code);\n /* optional string error = 3; */\n if (message.error !== undefined)\n writer.tag(3, WireType.LengthDelimited).string(message.error);\n /* optional string iss = 4; */\n if (message.iss !== undefined)\n writer.tag(4, WireType.LengthDelimited).string(message.iss);\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.authn.CompleteSignInRequest\n */\nexport const CompleteSignInRequest = new CompleteSignInRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetApplicationSessionRequest$Type extends MessageType<GetApplicationSessionRequest> {\n constructor() {\n super(\"sid.v1.authn.GetApplicationSessionRequest\", []);\n }\n create(value?: PartialMessage<GetApplicationSessionRequest>): GetApplicationSessionRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<GetApplicationSessionRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetApplicationSessionRequest): GetApplicationSessionRequest {\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: GetApplicationSessionRequest, 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.authn.GetApplicationSessionRequest\n */\nexport const GetApplicationSessionRequest = new GetApplicationSessionRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ApplicationSession$Type extends MessageType<ApplicationSession> {\n constructor() {\n super(\"sid.v1.authn.ApplicationSession\", [\n { no: 1, name: \"sub\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"email\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"name\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"preferred_username\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 5, name: \"acr\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 6, name: \"csrf_token\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<ApplicationSession>): ApplicationSession {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.sub = \"\";\n message.acr = \"\";\n message.csrfToken = \"\";\n if (value !== undefined)\n reflectionMergePartial<ApplicationSession>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ApplicationSession): ApplicationSession {\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 sub */ 1:\n message.sub = reader.string();\n break;\n case /* optional string email */ 2:\n message.email = reader.string();\n break;\n case /* optional string name */ 3:\n message.name = reader.string();\n break;\n case /* optional string preferred_username */ 4:\n message.preferredUsername = reader.string();\n break;\n case /* string acr */ 5:\n message.acr = reader.string();\n break;\n case /* string csrf_token */ 6:\n message.csrfToken = reader.string();\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: ApplicationSession, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string sub = 1; */\n if (message.sub !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.sub);\n /* optional string email = 2; */\n if (message.email !== undefined)\n writer.tag(2, WireType.LengthDelimited).string(message.email);\n /* optional string name = 3; */\n if (message.name !== undefined)\n writer.tag(3, WireType.LengthDelimited).string(message.name);\n /* optional string preferred_username = 4; */\n if (message.preferredUsername !== undefined)\n writer.tag(4, WireType.LengthDelimited).string(message.preferredUsername);\n /* string acr = 5; */\n if (message.acr !== \"\")\n writer.tag(5, WireType.LengthDelimited).string(message.acr);\n /* string csrf_token = 6; */\n if (message.csrfToken !== \"\")\n writer.tag(6, WireType.LengthDelimited).string(message.csrfToken);\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.authn.ApplicationSession\n */\nexport const ApplicationSession = new ApplicationSession$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EndApplicationSessionRequest$Type extends MessageType<EndApplicationSessionRequest> {\n constructor() {\n super(\"sid.v1.authn.EndApplicationSessionRequest\", []);\n }\n create(value?: PartialMessage<EndApplicationSessionRequest>): EndApplicationSessionRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<EndApplicationSessionRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndApplicationSessionRequest): EndApplicationSessionRequest {\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: EndApplicationSessionRequest, 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.authn.EndApplicationSessionRequest\n */\nexport const EndApplicationSessionRequest = new EndApplicationSessionRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EndApplicationSessionResponse$Type extends MessageType<EndApplicationSessionResponse> {\n constructor() {\n super(\"sid.v1.authn.EndApplicationSessionResponse\", [\n { no: 1, name: \"grant\", kind: \"enum\", T: () => [\"sid.v1.authn.GrantOutcome\", GrantOutcome, \"GRANT_OUTCOME_\"] }\n ]);\n }\n create(value?: PartialMessage<EndApplicationSessionResponse>): EndApplicationSessionResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.grant = 0;\n if (value !== undefined)\n reflectionMergePartial<EndApplicationSessionResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndApplicationSessionResponse): EndApplicationSessionResponse {\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 /* sid.v1.authn.GrantOutcome grant */ 1:\n message.grant = reader.int32();\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: EndApplicationSessionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.authn.GrantOutcome grant = 1; */\n if (message.grant !== 0)\n writer.tag(1, WireType.Varint).int32(message.grant);\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.authn.EndApplicationSessionResponse\n */\nexport const EndApplicationSessionResponse = new EndApplicationSessionResponse$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.authn.ApplicationSessionService\n */\nexport const ApplicationSessionService = new ServiceType(\"sid.v1.authn.ApplicationSessionService\", [\n { name: \"StartSignIn\", options: { \"google.api.http\": { get: \"/auth/login\" }, \"sid.v1.common.retry\": { ceremony: \"RFC 6749 \\u00A710.12: each call records its own single-use sign-in state; nothing else changes before its callback\" } }, I: StartSignInRequest, O: HttpBody },\n { name: \"CompleteSignIn\", options: { \"google.api.http\": { get: \"/auth/callback\" }, \"sid.v1.common.retry\": { ceremony: \"RFC 6749 \\u00A710.12: the sign-in its state names is consumed by its completion; a repeat is refused and creates no session\" } }, I: CompleteSignInRequest, O: HttpBody },\n { name: \"GetApplicationSession\", idempotency: \"IDEMPOTENT\", options: { \"sid.v1.common.retry\": { natural: \"the call only moves the session's idle window to now: a repeat moves it to the same point again and changes nothing else\" } }, I: GetApplicationSessionRequest, O: ApplicationSession },\n { name: \"EndApplicationSession\", idempotency: \"IDEMPOTENT\", options: { \"sid.v1.common.retry\": { natural: \"an ended session stays ended and is never resumed: a repeat finds no session, ends nothing more and answers GRANT_OUTCOME_UNKNOWN\" } }, I: EndApplicationSessionRequest, O: EndApplicationSessionResponse },\n { name: \"ReceiveBackChannelLogout\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/auth/backchannel-logout\", body: \"body\" }, \"sid.v1.common.retry\": { natural: \"an ended issuer session stays ended here: a repeat of the token, or a later token naming the same session, ends nothing more and answers 200 again\" } }, I: BackChannelLogoutRequest, O: HttpBody }\n]);\n"]}
@@ -67,6 +67,8 @@ import type { ResolvePrincipalResponse } from "./auth.js";
67
67
  import type { ResolvePrincipalRequest } from "./auth.js";
68
68
  import type { ValidateSessionResponse } from "./auth.js";
69
69
  import type { ValidateSessionRequest } from "./auth.js";
70
+ import type { RefreshNativeSessionResponse } from "./native_session.js";
71
+ import type { RefreshNativeSessionRequest } from "./native_session.js";
70
72
  import type { LegacyMigrateFinishResponse } from "./auth.js";
71
73
  import type { LegacyMigrateFinishRequest } from "./auth.js";
72
74
  import type { LegacyMigrateStartResponse } from "./auth.js";
@@ -112,10 +114,6 @@ import type { OpaqueLoginFinishResponse } from "./auth.js";
112
114
  import type { OpaqueLoginFinishRequest } from "./auth.js";
113
115
  import type { OpaqueLoginStartResponse } from "./auth.js";
114
116
  import type { OpaqueLoginStartRequest } from "./auth.js";
115
- import type { OpaqueRegistrationFinishResponse } from "./auth.js";
116
- import type { OpaqueRegistrationFinishRequest } from "./auth.js";
117
- import type { OpaqueRegistrationStartResponse } from "./auth.js";
118
- import type { OpaqueRegistrationStartRequest } from "./auth.js";
119
117
  import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
120
118
  import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
121
119
  /**
@@ -125,21 +123,9 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
125
123
  */
126
124
  export interface IAuthServiceClient {
127
125
  /**
128
- * OPAQUE password authentication (RFC 9807).
126
+ * OPAQUE password authentication (RFC 9807). Self-registration runs
127
+ * through OpaqueZkppRegistrationStart and OpaqueZkppRegistrationFinish.
129
128
  *
130
- * Plain OPAQUE registration creates no account: both registration RPCs
131
- * are refused with FEATURE_NOT_AVAILABLE. Self-registration runs through
132
- * OpaqueZkppRegistrationStart and OpaqueZkppRegistrationFinish, which
133
- * carry the claim token and invite code the enrollment policy needs.
134
- *
135
- * @generated from protobuf rpc: OpaqueRegistrationStart
136
- */
137
- opaqueRegistrationStart(input: OpaqueRegistrationStartRequest, options?: RpcOptions): UnaryCall<OpaqueRegistrationStartRequest, OpaqueRegistrationStartResponse>;
138
- /**
139
- * @generated from protobuf rpc: OpaqueRegistrationFinish
140
- */
141
- opaqueRegistrationFinish(input: OpaqueRegistrationFinishRequest, options?: RpcOptions): UnaryCall<OpaqueRegistrationFinishRequest, OpaqueRegistrationFinishResponse>;
142
- /**
143
129
  * @generated from protobuf rpc: OpaqueLoginStart
144
130
  */
145
131
  opaqueLoginStart(input: OpaqueLoginStartRequest, options?: RpcOptions): UnaryCall<OpaqueLoginStartRequest, OpaqueLoginStartResponse>;
@@ -289,6 +275,15 @@ export interface IAuthServiceClient {
289
275
  * @generated from protobuf rpc: LegacyMigrateFinish
290
276
  */
291
277
  legacyMigrateFinish(input: LegacyMigrateFinishRequest, options?: RpcOptions): UnaryCall<LegacyMigrateFinishRequest, LegacyMigrateFinishResponse>;
278
+ /**
279
+ * Refresh a native session bound to its application key, or redeliver the
280
+ * generation a lost response carried (native_session.proto). Proof and
281
+ * presented credential in request metadata; the access token and the next
282
+ * generation in response metadata.
283
+ *
284
+ * @generated from protobuf rpc: RefreshNativeSession
285
+ */
286
+ refreshNativeSession(input: RefreshNativeSessionRequest, options?: RpcOptions): UnaryCall<RefreshNativeSessionRequest, RefreshNativeSessionResponse>;
292
287
  /**
293
288
  * Session validation.
294
289
  *
@@ -472,21 +467,9 @@ export declare class AuthServiceClient implements IAuthServiceClient, ServiceInf
472
467
  };
473
468
  constructor(_transport: RpcTransport);
474
469
  /**
475
- * OPAQUE password authentication (RFC 9807).
470
+ * OPAQUE password authentication (RFC 9807). Self-registration runs
471
+ * through OpaqueZkppRegistrationStart and OpaqueZkppRegistrationFinish.
476
472
  *
477
- * Plain OPAQUE registration creates no account: both registration RPCs
478
- * are refused with FEATURE_NOT_AVAILABLE. Self-registration runs through
479
- * OpaqueZkppRegistrationStart and OpaqueZkppRegistrationFinish, which
480
- * carry the claim token and invite code the enrollment policy needs.
481
- *
482
- * @generated from protobuf rpc: OpaqueRegistrationStart
483
- */
484
- opaqueRegistrationStart(input: OpaqueRegistrationStartRequest, options?: RpcOptions): UnaryCall<OpaqueRegistrationStartRequest, OpaqueRegistrationStartResponse>;
485
- /**
486
- * @generated from protobuf rpc: OpaqueRegistrationFinish
487
- */
488
- opaqueRegistrationFinish(input: OpaqueRegistrationFinishRequest, options?: RpcOptions): UnaryCall<OpaqueRegistrationFinishRequest, OpaqueRegistrationFinishResponse>;
489
- /**
490
473
  * @generated from protobuf rpc: OpaqueLoginStart
491
474
  */
492
475
  opaqueLoginStart(input: OpaqueLoginStartRequest, options?: RpcOptions): UnaryCall<OpaqueLoginStartRequest, OpaqueLoginStartResponse>;
@@ -636,6 +619,15 @@ export declare class AuthServiceClient implements IAuthServiceClient, ServiceInf
636
619
  * @generated from protobuf rpc: LegacyMigrateFinish
637
620
  */
638
621
  legacyMigrateFinish(input: LegacyMigrateFinishRequest, options?: RpcOptions): UnaryCall<LegacyMigrateFinishRequest, LegacyMigrateFinishResponse>;
622
+ /**
623
+ * Refresh a native session bound to its application key, or redeliver the
624
+ * generation a lost response carried (native_session.proto). Proof and
625
+ * presented credential in request metadata; the access token and the next
626
+ * generation in response metadata.
627
+ *
628
+ * @generated from protobuf rpc: RefreshNativeSession
629
+ */
630
+ refreshNativeSession(input: RefreshNativeSessionRequest, options?: RpcOptions): UnaryCall<RefreshNativeSessionRequest, RefreshNativeSessionResponse>;
639
631
  /**
640
632
  * Session validation.
641
633
  *