@structured-id/proto 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.0](https://github.com/structured-id/sdk/compare/typescript-proto-v0.4.1...typescript-proto-v0.5.0) (2026-10-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * **proto:** application session service ([#28](https://github.com/structured-id/sdk/issues/28)) ([dfe8b01](https://github.com/structured-id/sdk/commit/dfe8b010c37a2099966ca0e2dc21703c6d36acf8)), closes [#27](https://github.com/structured-id/sdk/issues/27)
9
+
3
10
  ## [0.4.1](https://github.com/structured-id/sdk/compare/typescript-proto-v0.4.0...typescript-proto-v0.4.1) (2026-10-22)
4
11
 
5
12
 
@@ -0,0 +1,170 @@
1
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
2
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
3
+ import type { EndApplicationSessionResponse } from "./application_session.js";
4
+ import type { EndApplicationSessionRequest } from "./application_session.js";
5
+ import type { ApplicationSession } from "./application_session.js";
6
+ import type { GetApplicationSessionRequest } from "./application_session.js";
7
+ import type { CompleteSignInRequest } from "./application_session.js";
8
+ import type { HttpBody } from "../../../google/api/httpbody.js";
9
+ import type { StartSignInRequest } from "./application_session.js";
10
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
11
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
12
+ /**
13
+ * @generated from protobuf service sid.v1.authn.ApplicationSessionService
14
+ */
15
+ export interface IApplicationSessionServiceClient {
16
+ /**
17
+ * Start a sign-in: redirect the browser to the issuer's authorization
18
+ * endpoint (RFC 6749 §4.1.1) with the code flow, S256 PKCE (RFC 7636
19
+ * §4.3), the application's resource (RFC 8707 §2) and a fresh `state` and
20
+ * `nonce`, recorded server-side for the callback.
21
+ *
22
+ * A browser navigation, so the answer is HTTP: `x-http-code` 302 with
23
+ * `location` in the response metadata and an empty body. Before the
24
+ * installation has provisioned the application's client the answer is 503
25
+ * and nothing is recorded.
26
+ *
27
+ * Records a single-use sign-in on every call, so a repeat is another
28
+ * sign-in.
29
+ *
30
+ * @generated from protobuf rpc: StartSignIn
31
+ */
32
+ startSignIn(input: StartSignInRequest, options?: RpcOptions): UnaryCall<StartSignInRequest, HttpBody>;
33
+ /**
34
+ * Complete a sign-in from the issuer's authorization response (RFC 6749
35
+ * §4.1.2): take the recorded sign-in its `state` names, exactly once, check
36
+ * that the issuer answered (RFC 9207 §2.4), redeem the code with the
37
+ * client's key (`private_key_jwt`, RFC 7523 §2.2), validate the access
38
+ * token for the application's resource (RFC 9068 §4) and the ID token for
39
+ * this client and nonce (OIDC Core 1.0 §3.1.3.7), and open the session.
40
+ *
41
+ * A browser navigation, so the answer is HTTP: `x-http-code` 302 to the
42
+ * local path the sign-in started from, with the session cookie in
43
+ * `set-cookie` (host-only, `Secure`, `HttpOnly`, `SameSite=Lax`). An
44
+ * unknown, used or expired `state`, or an answer from another issuer, is
45
+ * 400; an authorization error is 403; a redemption or token the issuer
46
+ * got wrong is 502; a session store that cannot be reached is 503.
47
+ *
48
+ * Consumes the sign-in its `state` names, so a repeat is refused.
49
+ *
50
+ * @generated from protobuf rpc: CompleteSignIn
51
+ */
52
+ completeSignIn(input: CompleteSignInRequest, options?: RpcOptions): UnaryCall<CompleteSignInRequest, HttpBody>;
53
+ /**
54
+ * The signed-in user of the session the request's cookie names, and the
55
+ * session's CSRF token, which every state-changing call echoes in
56
+ * `x-csrf-token`. The application's page calls it over gRPC-Web on its own
57
+ * origin; the cookie travels in the request metadata.
58
+ *
59
+ * No cookie, or one naming no live session of this application's
60
+ * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer
61
+ * session was ended elsewhere is ended here too and is UNAUTHENTICATED. A
62
+ * session store or revocation check that cannot be answered is UNAVAILABLE
63
+ * with RetryInfo: an outage never reads as a signed-out user.
64
+ *
65
+ * Extends the session's idle window; repeating it does nothing more.
66
+ *
67
+ * @generated from protobuf rpc: GetApplicationSession
68
+ */
69
+ getApplicationSession(input: GetApplicationSessionRequest, options?: RpcOptions): UnaryCall<GetApplicationSessionRequest, ApplicationSession>;
70
+ /**
71
+ * End the application session the request's cookie names and revoke the
72
+ * grant behind it at the issuer (RFC 7009 §2.1); the response metadata
73
+ * carries a `set-cookie` that clears the cookie. Requires the session's
74
+ * CSRF token in `x-csrf-token` (a mismatch is PERMISSION_DENIED,
75
+ * CSRF_TOKEN_INVALID). Ends the application session only: the issuer's
76
+ * sign-in session and other applications are not touched.
77
+ *
78
+ * Without a cookie the answer is UNAUTHENTICATED. A session store that
79
+ * cannot be reached is UNAVAILABLE and nothing is cleared.
80
+ *
81
+ * A repeat finds no session and answers GRANT_OUTCOME_UNKNOWN; nothing more
82
+ * is ended.
83
+ *
84
+ * @generated from protobuf rpc: EndApplicationSession
85
+ */
86
+ endApplicationSession(input: EndApplicationSessionRequest, options?: RpcOptions): UnaryCall<EndApplicationSessionRequest, EndApplicationSessionResponse>;
87
+ }
88
+ /**
89
+ * @generated from protobuf service sid.v1.authn.ApplicationSessionService
90
+ */
91
+ export declare class ApplicationSessionServiceClient implements IApplicationSessionServiceClient, ServiceInfo {
92
+ private readonly _transport;
93
+ typeName: string;
94
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
95
+ options: {
96
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
97
+ };
98
+ constructor(_transport: RpcTransport);
99
+ /**
100
+ * Start a sign-in: redirect the browser to the issuer's authorization
101
+ * endpoint (RFC 6749 §4.1.1) with the code flow, S256 PKCE (RFC 7636
102
+ * §4.3), the application's resource (RFC 8707 §2) and a fresh `state` and
103
+ * `nonce`, recorded server-side for the callback.
104
+ *
105
+ * A browser navigation, so the answer is HTTP: `x-http-code` 302 with
106
+ * `location` in the response metadata and an empty body. Before the
107
+ * installation has provisioned the application's client the answer is 503
108
+ * and nothing is recorded.
109
+ *
110
+ * Records a single-use sign-in on every call, so a repeat is another
111
+ * sign-in.
112
+ *
113
+ * @generated from protobuf rpc: StartSignIn
114
+ */
115
+ startSignIn(input: StartSignInRequest, options?: RpcOptions): UnaryCall<StartSignInRequest, HttpBody>;
116
+ /**
117
+ * Complete a sign-in from the issuer's authorization response (RFC 6749
118
+ * §4.1.2): take the recorded sign-in its `state` names, exactly once, check
119
+ * that the issuer answered (RFC 9207 §2.4), redeem the code with the
120
+ * client's key (`private_key_jwt`, RFC 7523 §2.2), validate the access
121
+ * token for the application's resource (RFC 9068 §4) and the ID token for
122
+ * this client and nonce (OIDC Core 1.0 §3.1.3.7), and open the session.
123
+ *
124
+ * A browser navigation, so the answer is HTTP: `x-http-code` 302 to the
125
+ * local path the sign-in started from, with the session cookie in
126
+ * `set-cookie` (host-only, `Secure`, `HttpOnly`, `SameSite=Lax`). An
127
+ * unknown, used or expired `state`, or an answer from another issuer, is
128
+ * 400; an authorization error is 403; a redemption or token the issuer
129
+ * got wrong is 502; a session store that cannot be reached is 503.
130
+ *
131
+ * Consumes the sign-in its `state` names, so a repeat is refused.
132
+ *
133
+ * @generated from protobuf rpc: CompleteSignIn
134
+ */
135
+ completeSignIn(input: CompleteSignInRequest, options?: RpcOptions): UnaryCall<CompleteSignInRequest, HttpBody>;
136
+ /**
137
+ * The signed-in user of the session the request's cookie names, and the
138
+ * session's CSRF token, which every state-changing call echoes in
139
+ * `x-csrf-token`. The application's page calls it over gRPC-Web on its own
140
+ * origin; the cookie travels in the request metadata.
141
+ *
142
+ * No cookie, or one naming no live session of this application's
143
+ * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer
144
+ * session was ended elsewhere is ended here too and is UNAUTHENTICATED. A
145
+ * session store or revocation check that cannot be answered is UNAVAILABLE
146
+ * with RetryInfo: an outage never reads as a signed-out user.
147
+ *
148
+ * Extends the session's idle window; repeating it does nothing more.
149
+ *
150
+ * @generated from protobuf rpc: GetApplicationSession
151
+ */
152
+ getApplicationSession(input: GetApplicationSessionRequest, options?: RpcOptions): UnaryCall<GetApplicationSessionRequest, ApplicationSession>;
153
+ /**
154
+ * End the application session the request's cookie names and revoke the
155
+ * grant behind it at the issuer (RFC 7009 §2.1); the response metadata
156
+ * carries a `set-cookie` that clears the cookie. Requires the session's
157
+ * CSRF token in `x-csrf-token` (a mismatch is PERMISSION_DENIED,
158
+ * CSRF_TOKEN_INVALID). Ends the application session only: the issuer's
159
+ * sign-in session and other applications are not touched.
160
+ *
161
+ * Without a cookie the answer is UNAUTHENTICATED. A session store that
162
+ * cannot be reached is UNAVAILABLE and nothing is cleared.
163
+ *
164
+ * A repeat finds no session and answers GRANT_OUTCOME_UNKNOWN; nothing more
165
+ * is ended.
166
+ *
167
+ * @generated from protobuf rpc: EndApplicationSession
168
+ */
169
+ endApplicationSession(input: EndApplicationSessionRequest, options?: RpcOptions): UnaryCall<EndApplicationSessionRequest, EndApplicationSessionResponse>;
170
+ }
@@ -0,0 +1,98 @@
1
+ import { ApplicationSessionService } from "./application_session.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ /**
4
+ * @generated from protobuf service sid.v1.authn.ApplicationSessionService
5
+ */
6
+ export class ApplicationSessionServiceClient {
7
+ _transport;
8
+ typeName = ApplicationSessionService.typeName;
9
+ methods = ApplicationSessionService.methods;
10
+ options = ApplicationSessionService.options;
11
+ constructor(_transport) {
12
+ this._transport = _transport;
13
+ }
14
+ /**
15
+ * Start a sign-in: redirect the browser to the issuer's authorization
16
+ * endpoint (RFC 6749 §4.1.1) with the code flow, S256 PKCE (RFC 7636
17
+ * §4.3), the application's resource (RFC 8707 §2) and a fresh `state` and
18
+ * `nonce`, recorded server-side for the callback.
19
+ *
20
+ * A browser navigation, so the answer is HTTP: `x-http-code` 302 with
21
+ * `location` in the response metadata and an empty body. Before the
22
+ * installation has provisioned the application's client the answer is 503
23
+ * and nothing is recorded.
24
+ *
25
+ * Records a single-use sign-in on every call, so a repeat is another
26
+ * sign-in.
27
+ *
28
+ * @generated from protobuf rpc: StartSignIn
29
+ */
30
+ startSignIn(input, options) {
31
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
32
+ return stackIntercept("unary", this._transport, method, opt, input);
33
+ }
34
+ /**
35
+ * Complete a sign-in from the issuer's authorization response (RFC 6749
36
+ * §4.1.2): take the recorded sign-in its `state` names, exactly once, check
37
+ * that the issuer answered (RFC 9207 §2.4), redeem the code with the
38
+ * client's key (`private_key_jwt`, RFC 7523 §2.2), validate the access
39
+ * token for the application's resource (RFC 9068 §4) and the ID token for
40
+ * this client and nonce (OIDC Core 1.0 §3.1.3.7), and open the session.
41
+ *
42
+ * A browser navigation, so the answer is HTTP: `x-http-code` 302 to the
43
+ * local path the sign-in started from, with the session cookie in
44
+ * `set-cookie` (host-only, `Secure`, `HttpOnly`, `SameSite=Lax`). An
45
+ * unknown, used or expired `state`, or an answer from another issuer, is
46
+ * 400; an authorization error is 403; a redemption or token the issuer
47
+ * got wrong is 502; a session store that cannot be reached is 503.
48
+ *
49
+ * Consumes the sign-in its `state` names, so a repeat is refused.
50
+ *
51
+ * @generated from protobuf rpc: CompleteSignIn
52
+ */
53
+ completeSignIn(input, options) {
54
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
55
+ return stackIntercept("unary", this._transport, method, opt, input);
56
+ }
57
+ /**
58
+ * The signed-in user of the session the request's cookie names, and the
59
+ * session's CSRF token, which every state-changing call echoes in
60
+ * `x-csrf-token`. The application's page calls it over gRPC-Web on its own
61
+ * origin; the cookie travels in the request metadata.
62
+ *
63
+ * No cookie, or one naming no live session of this application's
64
+ * connection, is UNAUTHENTICATED (TOKEN_INVALID). A session whose issuer
65
+ * session was ended elsewhere is ended here too and is UNAUTHENTICATED. A
66
+ * session store or revocation check that cannot be answered is UNAVAILABLE
67
+ * with RetryInfo: an outage never reads as a signed-out user.
68
+ *
69
+ * Extends the session's idle window; repeating it does nothing more.
70
+ *
71
+ * @generated from protobuf rpc: GetApplicationSession
72
+ */
73
+ getApplicationSession(input, options) {
74
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
75
+ return stackIntercept("unary", this._transport, method, opt, input);
76
+ }
77
+ /**
78
+ * End the application session the request's cookie names and revoke the
79
+ * grant behind it at the issuer (RFC 7009 §2.1); the response metadata
80
+ * carries a `set-cookie` that clears the cookie. Requires the session's
81
+ * CSRF token in `x-csrf-token` (a mismatch is PERMISSION_DENIED,
82
+ * CSRF_TOKEN_INVALID). Ends the application session only: the issuer's
83
+ * sign-in session and other applications are not touched.
84
+ *
85
+ * Without a cookie the answer is UNAUTHENTICATED. A session store that
86
+ * cannot be reached is UNAVAILABLE and nothing is cleared.
87
+ *
88
+ * A repeat finds no session and answers GRANT_OUTCOME_UNKNOWN; nothing more
89
+ * is ended.
90
+ *
91
+ * @generated from protobuf rpc: EndApplicationSession
92
+ */
93
+ endApplicationSession(input, options) {
94
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
95
+ return stackIntercept("unary", this._transport, method, opt, input);
96
+ }
97
+ }
98
+ //# sourceMappingURL=application_session.client.js.map
@@ -0,0 +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,CAA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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"]}
@@ -0,0 +1,224 @@
1
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
2
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
3
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
4
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
6
+ import type { PartialMessage } from "@protobuf-ts/runtime";
7
+ import { MessageType } from "@protobuf-ts/runtime";
8
+ /**
9
+ * @generated from protobuf message sid.v1.authn.StartSignInRequest
10
+ */
11
+ export interface StartSignInRequest {
12
+ /**
13
+ * Where on the application's origin to return after sign-in: a local path
14
+ * starting with a single `/`. Anything else (another origin, `//host`,
15
+ * `/\host`, control characters) returns to `/` (RFC 9700 §4.11). Supplied
16
+ * by the page that sends the browser here.
17
+ *
18
+ * @generated from protobuf field: string rd = 1
19
+ */
20
+ rd: string;
21
+ }
22
+ /**
23
+ * @generated from protobuf message sid.v1.authn.CompleteSignInRequest
24
+ */
25
+ export interface CompleteSignInRequest {
26
+ /**
27
+ * The `state` the sign-in sent, as the issuer returned it (RFC 6749
28
+ * §4.1.2). Names the recorded sign-in; anything but a value this adapter
29
+ * issued is refused.
30
+ *
31
+ * @generated from protobuf field: string state = 1
32
+ */
33
+ state: string;
34
+ /**
35
+ * The authorization code, absent when the issuer answered an error.
36
+ *
37
+ * @generated from protobuf field: optional string code = 2
38
+ */
39
+ code?: string;
40
+ /**
41
+ * The issuer's error code (RFC 6749 §4.1.2.1), when it refused.
42
+ *
43
+ * @generated from protobuf field: optional string error = 3
44
+ */
45
+ error?: string;
46
+ /**
47
+ * The issuer that answered (RFC 9207 §2); must be the connection's issuer.
48
+ *
49
+ * @generated from protobuf field: optional string iss = 4
50
+ */
51
+ iss?: string;
52
+ }
53
+ /**
54
+ * @generated from protobuf message sid.v1.authn.GetApplicationSessionRequest
55
+ */
56
+ export interface GetApplicationSessionRequest {
57
+ }
58
+ /**
59
+ * The signed-in user as this application's issuer names it, and the session's
60
+ * CSRF token.
61
+ *
62
+ * @generated from protobuf message sid.v1.authn.ApplicationSession
63
+ */
64
+ export interface ApplicationSession {
65
+ /**
66
+ * The user's subject at this application (`sub` of the issuer's tokens for
67
+ * it): recipient-scoped and opaque; its shape does not say what kind of
68
+ * identifier it is.
69
+ *
70
+ * @generated from protobuf field: string sub = 1
71
+ */
72
+ sub: string;
73
+ /**
74
+ * Email address from the sign-in's ID token, when disclosed to this
75
+ * application.
76
+ *
77
+ * @generated from protobuf field: optional string email = 2
78
+ */
79
+ email?: string;
80
+ /**
81
+ * Display name from the sign-in's ID token, when disclosed.
82
+ *
83
+ * @generated from protobuf field: optional string name = 3
84
+ */
85
+ name?: string;
86
+ /**
87
+ * Username from the sign-in's ID token, when disclosed.
88
+ *
89
+ * @generated from protobuf field: optional string preferred_username = 4
90
+ */
91
+ preferredUsername?: string;
92
+ /**
93
+ * Authentication context class of the sign-in (`acr`, OIDC Core 1.0 §2).
94
+ *
95
+ * @generated from protobuf field: string acr = 5
96
+ */
97
+ acr: string;
98
+ /**
99
+ * The session's synchronizer token: echoed in `x-csrf-token` on every
100
+ * state-changing call of this session. Bound to this session only; not a
101
+ * credential by itself.
102
+ *
103
+ * @generated from protobuf field: string csrf_token = 6
104
+ */
105
+ csrfToken: string;
106
+ }
107
+ /**
108
+ * @generated from protobuf message sid.v1.authn.EndApplicationSessionRequest
109
+ */
110
+ export interface EndApplicationSessionRequest {
111
+ }
112
+ /**
113
+ * @generated from protobuf message sid.v1.authn.EndApplicationSessionResponse
114
+ */
115
+ export interface EndApplicationSessionResponse {
116
+ /**
117
+ * What became of the issuer's grant behind the ended session.
118
+ *
119
+ * @generated from protobuf field: sid.v1.authn.GrantOutcome grant = 1
120
+ */
121
+ grant: GrantOutcome;
122
+ }
123
+ /**
124
+ * What became of the grant behind an ended application session.
125
+ *
126
+ * @generated from protobuf enum sid.v1.authn.GrantOutcome
127
+ */
128
+ export declare enum GrantOutcome {
129
+ /**
130
+ * @generated from protobuf enum value: GRANT_OUTCOME_UNSPECIFIED = 0;
131
+ */
132
+ UNSPECIFIED = 0,
133
+ /**
134
+ * The issuer revoked it: its refresh token no longer works.
135
+ *
136
+ * @generated from protobuf enum value: GRANT_OUTCOME_REVOKED = 1;
137
+ */
138
+ REVOKED = 1,
139
+ /**
140
+ * A grant stood behind the session and the issuer did not revoke it; it
141
+ * lives until it expires, though nobody holds its token any more.
142
+ *
143
+ * @generated from protobuf enum value: GRANT_OUTCOME_NOT_REVOKED = 2;
144
+ */
145
+ NOT_REVOKED = 2,
146
+ /**
147
+ * No grant stood behind the session.
148
+ *
149
+ * @generated from protobuf enum value: GRANT_OUTCOME_NONE = 3;
150
+ */
151
+ NONE = 3,
152
+ /**
153
+ * Not known: the session was already gone, or the revocation's answer was
154
+ * lost after it may have taken effect.
155
+ *
156
+ * @generated from protobuf enum value: GRANT_OUTCOME_UNKNOWN = 4;
157
+ */
158
+ UNKNOWN = 4
159
+ }
160
+ declare class StartSignInRequest$Type extends MessageType<StartSignInRequest> {
161
+ constructor();
162
+ create(value?: PartialMessage<StartSignInRequest>): StartSignInRequest;
163
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartSignInRequest): StartSignInRequest;
164
+ internalBinaryWrite(message: StartSignInRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
165
+ }
166
+ /**
167
+ * @generated MessageType for protobuf message sid.v1.authn.StartSignInRequest
168
+ */
169
+ export declare const StartSignInRequest: StartSignInRequest$Type;
170
+ declare class CompleteSignInRequest$Type extends MessageType<CompleteSignInRequest> {
171
+ constructor();
172
+ create(value?: PartialMessage<CompleteSignInRequest>): CompleteSignInRequest;
173
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CompleteSignInRequest): CompleteSignInRequest;
174
+ internalBinaryWrite(message: CompleteSignInRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
175
+ }
176
+ /**
177
+ * @generated MessageType for protobuf message sid.v1.authn.CompleteSignInRequest
178
+ */
179
+ export declare const CompleteSignInRequest: CompleteSignInRequest$Type;
180
+ declare class GetApplicationSessionRequest$Type extends MessageType<GetApplicationSessionRequest> {
181
+ constructor();
182
+ create(value?: PartialMessage<GetApplicationSessionRequest>): GetApplicationSessionRequest;
183
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetApplicationSessionRequest): GetApplicationSessionRequest;
184
+ internalBinaryWrite(message: GetApplicationSessionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
185
+ }
186
+ /**
187
+ * @generated MessageType for protobuf message sid.v1.authn.GetApplicationSessionRequest
188
+ */
189
+ export declare const GetApplicationSessionRequest: GetApplicationSessionRequest$Type;
190
+ declare class ApplicationSession$Type extends MessageType<ApplicationSession> {
191
+ constructor();
192
+ create(value?: PartialMessage<ApplicationSession>): ApplicationSession;
193
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ApplicationSession): ApplicationSession;
194
+ internalBinaryWrite(message: ApplicationSession, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
195
+ }
196
+ /**
197
+ * @generated MessageType for protobuf message sid.v1.authn.ApplicationSession
198
+ */
199
+ export declare const ApplicationSession: ApplicationSession$Type;
200
+ declare class EndApplicationSessionRequest$Type extends MessageType<EndApplicationSessionRequest> {
201
+ constructor();
202
+ create(value?: PartialMessage<EndApplicationSessionRequest>): EndApplicationSessionRequest;
203
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndApplicationSessionRequest): EndApplicationSessionRequest;
204
+ internalBinaryWrite(message: EndApplicationSessionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
205
+ }
206
+ /**
207
+ * @generated MessageType for protobuf message sid.v1.authn.EndApplicationSessionRequest
208
+ */
209
+ export declare const EndApplicationSessionRequest: EndApplicationSessionRequest$Type;
210
+ declare class EndApplicationSessionResponse$Type extends MessageType<EndApplicationSessionResponse> {
211
+ constructor();
212
+ create(value?: PartialMessage<EndApplicationSessionResponse>): EndApplicationSessionResponse;
213
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndApplicationSessionResponse): EndApplicationSessionResponse;
214
+ internalBinaryWrite(message: EndApplicationSessionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
215
+ }
216
+ /**
217
+ * @generated MessageType for protobuf message sid.v1.authn.EndApplicationSessionResponse
218
+ */
219
+ export declare const EndApplicationSessionResponse: EndApplicationSessionResponse$Type;
220
+ /**
221
+ * @generated ServiceType for protobuf service sid.v1.authn.ApplicationSessionService
222
+ */
223
+ export declare const ApplicationSessionService: ServiceType;
224
+ export {};
@@ -0,0 +1,380 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck
2
+ // @generated from protobuf file "sid/v1/authn/application_session.proto" (package "sid.v1.authn", syntax proto3)
3
+ // tslint:disable
4
+ // @ts-nocheck
5
+ import { HttpBody } from "../../../google/api/httpbody.js";
6
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
7
+ import { WireType } from "@protobuf-ts/runtime";
8
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
9
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
10
+ import { MessageType } from "@protobuf-ts/runtime";
11
+ /**
12
+ * What became of the grant behind an ended application session.
13
+ *
14
+ * @generated from protobuf enum sid.v1.authn.GrantOutcome
15
+ */
16
+ export var GrantOutcome;
17
+ (function (GrantOutcome) {
18
+ /**
19
+ * @generated from protobuf enum value: GRANT_OUTCOME_UNSPECIFIED = 0;
20
+ */
21
+ GrantOutcome[GrantOutcome["UNSPECIFIED"] = 0] = "UNSPECIFIED";
22
+ /**
23
+ * The issuer revoked it: its refresh token no longer works.
24
+ *
25
+ * @generated from protobuf enum value: GRANT_OUTCOME_REVOKED = 1;
26
+ */
27
+ GrantOutcome[GrantOutcome["REVOKED"] = 1] = "REVOKED";
28
+ /**
29
+ * A grant stood behind the session and the issuer did not revoke it; it
30
+ * lives until it expires, though nobody holds its token any more.
31
+ *
32
+ * @generated from protobuf enum value: GRANT_OUTCOME_NOT_REVOKED = 2;
33
+ */
34
+ GrantOutcome[GrantOutcome["NOT_REVOKED"] = 2] = "NOT_REVOKED";
35
+ /**
36
+ * No grant stood behind the session.
37
+ *
38
+ * @generated from protobuf enum value: GRANT_OUTCOME_NONE = 3;
39
+ */
40
+ GrantOutcome[GrantOutcome["NONE"] = 3] = "NONE";
41
+ /**
42
+ * Not known: the session was already gone, or the revocation's answer was
43
+ * lost after it may have taken effect.
44
+ *
45
+ * @generated from protobuf enum value: GRANT_OUTCOME_UNKNOWN = 4;
46
+ */
47
+ GrantOutcome[GrantOutcome["UNKNOWN"] = 4] = "UNKNOWN";
48
+ })(GrantOutcome || (GrantOutcome = {}));
49
+ // @generated message type with reflection information, may provide speed optimized methods
50
+ class StartSignInRequest$Type extends MessageType {
51
+ constructor() {
52
+ super("sid.v1.authn.StartSignInRequest", [
53
+ { no: 1, name: "rd", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
54
+ ]);
55
+ }
56
+ create(value) {
57
+ const message = globalThis.Object.create((this.messagePrototype));
58
+ message.rd = "";
59
+ if (value !== undefined)
60
+ reflectionMergePartial(this, message, value);
61
+ return message;
62
+ }
63
+ internalBinaryRead(reader, length, options, target) {
64
+ let message = target ?? this.create(), end = reader.pos + length;
65
+ while (reader.pos < end) {
66
+ let [fieldNo, wireType] = reader.tag();
67
+ switch (fieldNo) {
68
+ case /* string rd */ 1:
69
+ message.rd = reader.string();
70
+ break;
71
+ default:
72
+ let u = options.readUnknownField;
73
+ if (u === "throw")
74
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
75
+ let d = reader.skip(wireType);
76
+ if (u !== false)
77
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
78
+ }
79
+ }
80
+ return message;
81
+ }
82
+ internalBinaryWrite(message, writer, options) {
83
+ /* string rd = 1; */
84
+ if (message.rd !== "")
85
+ writer.tag(1, WireType.LengthDelimited).string(message.rd);
86
+ let u = options.writeUnknownFields;
87
+ if (u !== false)
88
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
89
+ return writer;
90
+ }
91
+ }
92
+ /**
93
+ * @generated MessageType for protobuf message sid.v1.authn.StartSignInRequest
94
+ */
95
+ export const StartSignInRequest = new StartSignInRequest$Type();
96
+ // @generated message type with reflection information, may provide speed optimized methods
97
+ class CompleteSignInRequest$Type extends MessageType {
98
+ constructor() {
99
+ super("sid.v1.authn.CompleteSignInRequest", [
100
+ { no: 1, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
101
+ { no: 2, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
102
+ { no: 3, name: "error", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
103
+ { no: 4, name: "iss", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
104
+ ]);
105
+ }
106
+ create(value) {
107
+ const message = globalThis.Object.create((this.messagePrototype));
108
+ message.state = "";
109
+ if (value !== undefined)
110
+ reflectionMergePartial(this, message, value);
111
+ return message;
112
+ }
113
+ internalBinaryRead(reader, length, options, target) {
114
+ let message = target ?? this.create(), end = reader.pos + length;
115
+ while (reader.pos < end) {
116
+ let [fieldNo, wireType] = reader.tag();
117
+ switch (fieldNo) {
118
+ case /* string state */ 1:
119
+ message.state = reader.string();
120
+ break;
121
+ case /* optional string code */ 2:
122
+ message.code = reader.string();
123
+ break;
124
+ case /* optional string error */ 3:
125
+ message.error = reader.string();
126
+ break;
127
+ case /* optional string iss */ 4:
128
+ message.iss = reader.string();
129
+ break;
130
+ default:
131
+ let u = options.readUnknownField;
132
+ if (u === "throw")
133
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
134
+ let d = reader.skip(wireType);
135
+ if (u !== false)
136
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
137
+ }
138
+ }
139
+ return message;
140
+ }
141
+ internalBinaryWrite(message, writer, options) {
142
+ /* string state = 1; */
143
+ if (message.state !== "")
144
+ writer.tag(1, WireType.LengthDelimited).string(message.state);
145
+ /* optional string code = 2; */
146
+ if (message.code !== undefined)
147
+ writer.tag(2, WireType.LengthDelimited).string(message.code);
148
+ /* optional string error = 3; */
149
+ if (message.error !== undefined)
150
+ writer.tag(3, WireType.LengthDelimited).string(message.error);
151
+ /* optional string iss = 4; */
152
+ if (message.iss !== undefined)
153
+ writer.tag(4, WireType.LengthDelimited).string(message.iss);
154
+ let u = options.writeUnknownFields;
155
+ if (u !== false)
156
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
157
+ return writer;
158
+ }
159
+ }
160
+ /**
161
+ * @generated MessageType for protobuf message sid.v1.authn.CompleteSignInRequest
162
+ */
163
+ export const CompleteSignInRequest = new CompleteSignInRequest$Type();
164
+ // @generated message type with reflection information, may provide speed optimized methods
165
+ class GetApplicationSessionRequest$Type extends MessageType {
166
+ constructor() {
167
+ super("sid.v1.authn.GetApplicationSessionRequest", []);
168
+ }
169
+ create(value) {
170
+ const message = globalThis.Object.create((this.messagePrototype));
171
+ if (value !== undefined)
172
+ reflectionMergePartial(this, message, value);
173
+ return message;
174
+ }
175
+ internalBinaryRead(reader, length, options, target) {
176
+ let message = target ?? this.create(), end = reader.pos + length;
177
+ while (reader.pos < end) {
178
+ let [fieldNo, wireType] = reader.tag();
179
+ switch (fieldNo) {
180
+ default:
181
+ let u = options.readUnknownField;
182
+ if (u === "throw")
183
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
184
+ let d = reader.skip(wireType);
185
+ if (u !== false)
186
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
187
+ }
188
+ }
189
+ return message;
190
+ }
191
+ internalBinaryWrite(message, writer, options) {
192
+ let u = options.writeUnknownFields;
193
+ if (u !== false)
194
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
195
+ return writer;
196
+ }
197
+ }
198
+ /**
199
+ * @generated MessageType for protobuf message sid.v1.authn.GetApplicationSessionRequest
200
+ */
201
+ export const GetApplicationSessionRequest = new GetApplicationSessionRequest$Type();
202
+ // @generated message type with reflection information, may provide speed optimized methods
203
+ class ApplicationSession$Type extends MessageType {
204
+ constructor() {
205
+ super("sid.v1.authn.ApplicationSession", [
206
+ { no: 1, name: "sub", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
207
+ { no: 2, name: "email", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
208
+ { no: 3, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
209
+ { no: 4, name: "preferred_username", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
210
+ { no: 5, name: "acr", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
211
+ { no: 6, name: "csrf_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
212
+ ]);
213
+ }
214
+ create(value) {
215
+ const message = globalThis.Object.create((this.messagePrototype));
216
+ message.sub = "";
217
+ message.acr = "";
218
+ message.csrfToken = "";
219
+ if (value !== undefined)
220
+ reflectionMergePartial(this, message, value);
221
+ return message;
222
+ }
223
+ internalBinaryRead(reader, length, options, target) {
224
+ let message = target ?? this.create(), end = reader.pos + length;
225
+ while (reader.pos < end) {
226
+ let [fieldNo, wireType] = reader.tag();
227
+ switch (fieldNo) {
228
+ case /* string sub */ 1:
229
+ message.sub = reader.string();
230
+ break;
231
+ case /* optional string email */ 2:
232
+ message.email = reader.string();
233
+ break;
234
+ case /* optional string name */ 3:
235
+ message.name = reader.string();
236
+ break;
237
+ case /* optional string preferred_username */ 4:
238
+ message.preferredUsername = reader.string();
239
+ break;
240
+ case /* string acr */ 5:
241
+ message.acr = reader.string();
242
+ break;
243
+ case /* string csrf_token */ 6:
244
+ message.csrfToken = reader.string();
245
+ break;
246
+ default:
247
+ let u = options.readUnknownField;
248
+ if (u === "throw")
249
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
250
+ let d = reader.skip(wireType);
251
+ if (u !== false)
252
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
253
+ }
254
+ }
255
+ return message;
256
+ }
257
+ internalBinaryWrite(message, writer, options) {
258
+ /* string sub = 1; */
259
+ if (message.sub !== "")
260
+ writer.tag(1, WireType.LengthDelimited).string(message.sub);
261
+ /* optional string email = 2; */
262
+ if (message.email !== undefined)
263
+ writer.tag(2, WireType.LengthDelimited).string(message.email);
264
+ /* optional string name = 3; */
265
+ if (message.name !== undefined)
266
+ writer.tag(3, WireType.LengthDelimited).string(message.name);
267
+ /* optional string preferred_username = 4; */
268
+ if (message.preferredUsername !== undefined)
269
+ writer.tag(4, WireType.LengthDelimited).string(message.preferredUsername);
270
+ /* string acr = 5; */
271
+ if (message.acr !== "")
272
+ writer.tag(5, WireType.LengthDelimited).string(message.acr);
273
+ /* string csrf_token = 6; */
274
+ if (message.csrfToken !== "")
275
+ writer.tag(6, WireType.LengthDelimited).string(message.csrfToken);
276
+ let u = options.writeUnknownFields;
277
+ if (u !== false)
278
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
279
+ return writer;
280
+ }
281
+ }
282
+ /**
283
+ * @generated MessageType for protobuf message sid.v1.authn.ApplicationSession
284
+ */
285
+ export const ApplicationSession = new ApplicationSession$Type();
286
+ // @generated message type with reflection information, may provide speed optimized methods
287
+ class EndApplicationSessionRequest$Type extends MessageType {
288
+ constructor() {
289
+ super("sid.v1.authn.EndApplicationSessionRequest", []);
290
+ }
291
+ create(value) {
292
+ const message = globalThis.Object.create((this.messagePrototype));
293
+ if (value !== undefined)
294
+ reflectionMergePartial(this, message, value);
295
+ return message;
296
+ }
297
+ internalBinaryRead(reader, length, options, target) {
298
+ let message = target ?? this.create(), end = reader.pos + length;
299
+ while (reader.pos < end) {
300
+ let [fieldNo, wireType] = reader.tag();
301
+ switch (fieldNo) {
302
+ default:
303
+ let u = options.readUnknownField;
304
+ if (u === "throw")
305
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
306
+ let d = reader.skip(wireType);
307
+ if (u !== false)
308
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
309
+ }
310
+ }
311
+ return message;
312
+ }
313
+ internalBinaryWrite(message, writer, options) {
314
+ let u = options.writeUnknownFields;
315
+ if (u !== false)
316
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
317
+ return writer;
318
+ }
319
+ }
320
+ /**
321
+ * @generated MessageType for protobuf message sid.v1.authn.EndApplicationSessionRequest
322
+ */
323
+ export const EndApplicationSessionRequest = new EndApplicationSessionRequest$Type();
324
+ // @generated message type with reflection information, may provide speed optimized methods
325
+ class EndApplicationSessionResponse$Type extends MessageType {
326
+ constructor() {
327
+ super("sid.v1.authn.EndApplicationSessionResponse", [
328
+ { no: 1, name: "grant", kind: "enum", T: () => ["sid.v1.authn.GrantOutcome", GrantOutcome, "GRANT_OUTCOME_"] }
329
+ ]);
330
+ }
331
+ create(value) {
332
+ const message = globalThis.Object.create((this.messagePrototype));
333
+ message.grant = 0;
334
+ if (value !== undefined)
335
+ reflectionMergePartial(this, message, value);
336
+ return message;
337
+ }
338
+ internalBinaryRead(reader, length, options, target) {
339
+ let message = target ?? this.create(), end = reader.pos + length;
340
+ while (reader.pos < end) {
341
+ let [fieldNo, wireType] = reader.tag();
342
+ switch (fieldNo) {
343
+ case /* sid.v1.authn.GrantOutcome grant */ 1:
344
+ message.grant = reader.int32();
345
+ break;
346
+ default:
347
+ let u = options.readUnknownField;
348
+ if (u === "throw")
349
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
350
+ let d = reader.skip(wireType);
351
+ if (u !== false)
352
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
353
+ }
354
+ }
355
+ return message;
356
+ }
357
+ internalBinaryWrite(message, writer, options) {
358
+ /* sid.v1.authn.GrantOutcome grant = 1; */
359
+ if (message.grant !== 0)
360
+ writer.tag(1, WireType.Varint).int32(message.grant);
361
+ let u = options.writeUnknownFields;
362
+ if (u !== false)
363
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
364
+ return writer;
365
+ }
366
+ }
367
+ /**
368
+ * @generated MessageType for protobuf message sid.v1.authn.EndApplicationSessionResponse
369
+ */
370
+ export const EndApplicationSessionResponse = new EndApplicationSessionResponse$Type();
371
+ /**
372
+ * @generated ServiceType for protobuf service sid.v1.authn.ApplicationSessionService
373
+ */
374
+ export const ApplicationSessionService = new ServiceType("sid.v1.authn.ApplicationSessionService", [
375
+ { name: "StartSignIn", options: { "google.api.http": { get: "/auth/login" } }, I: StartSignInRequest, O: HttpBody },
376
+ { name: "CompleteSignIn", options: { "google.api.http": { get: "/auth/callback" } }, I: CompleteSignInRequest, O: HttpBody },
377
+ { name: "GetApplicationSession", idempotency: "IDEMPOTENT", options: {}, I: GetApplicationSessionRequest, O: ApplicationSession },
378
+ { name: "EndApplicationSession", idempotency: "IDEMPOTENT", options: {}, I: EndApplicationSessionRequest, O: EndApplicationSessionResponse }
379
+ ]);
380
+ //# sourceMappingURL=application_session.js.map
@@ -0,0 +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,CA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,EAAE,CAAC,EAAE,kBAAkB,EAAE,CAAC,EAAE,QAAQ,EAAE;IACnH,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,EAAE,qBAAqB,EAAE,CAAC,EAAE,QAAQ,EAAE;IAC5H,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,4BAA4B,EAAE,CAAC,EAAE,kBAAkB,EAAE;IACjI,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,4BAA4B,EAAE,CAAC,EAAE,6BAA6B,EAAE;CAC/I,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\" } }, I: StartSignInRequest, O: HttpBody },\n { name: \"CompleteSignIn\", options: { \"google.api.http\": { get: \"/auth/callback\" } }, I: CompleteSignInRequest, O: HttpBody },\n { name: \"GetApplicationSession\", idempotency: \"IDEMPOTENT\", options: {}, I: GetApplicationSessionRequest, O: ApplicationSession },\n { name: \"EndApplicationSession\", idempotency: \"IDEMPOTENT\", options: {}, I: EndApplicationSessionRequest, O: EndApplicationSessionResponse }\n]);\n"]}
@@ -200,6 +200,14 @@ export declare enum ErrorReason {
200
200
  * @generated from protobuf enum value: REGISTRATION_RESTRICTED = 23;
201
201
  */
202
202
  REGISTRATION_RESTRICTED = 23,
203
+ /**
204
+ * A state-changing browser call did not echo its session's CSRF token in
205
+ * `x-csrf-token` (absent, repeated or another session's). The session is
206
+ * left as it was; the page reads the token again with the session.
207
+ *
208
+ * @generated from protobuf enum value: CSRF_TOKEN_INVALID = 24;
209
+ */
210
+ CSRF_TOKEN_INVALID = 24,
203
211
  /**
204
212
  * Profile with this identifier already exists.
205
213
  *
@@ -166,6 +166,14 @@ export var ErrorReason;
166
166
  * @generated from protobuf enum value: REGISTRATION_RESTRICTED = 23;
167
167
  */
168
168
  ErrorReason[ErrorReason["REGISTRATION_RESTRICTED"] = 23] = "REGISTRATION_RESTRICTED";
169
+ /**
170
+ * A state-changing browser call did not echo its session's CSRF token in
171
+ * `x-csrf-token` (absent, repeated or another session's). The session is
172
+ * left as it was; the page reads the token again with the session.
173
+ *
174
+ * @generated from protobuf enum value: CSRF_TOKEN_INVALID = 24;
175
+ */
176
+ ErrorReason[ErrorReason["CSRF_TOKEN_INVALID"] = 24] = "CSRF_TOKEN_INVALID";
169
177
  /**
170
178
  * Profile with this identifier already exists.
171
179
  *
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/errors.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAkCnD;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,WAiiBX;AAjiBD,WAAY,WAAW;IACnB;;OAEG;IACH,qFAA4B,CAAA;IAC5B;;;;OAIG;IACH,uEAAqB,CAAA;IACrB;;;;OAIG;IACH,+EAAyB,CAAA;IACzB;;;;OAIG;IACH,uEAAqB,CAA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UAAU,KAAK,CAAC;YACxB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC9D,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,qBAAqB,EAAE,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/common/errors.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// StructuredID gRPC Error Model.\n//\n// Machine-readable error reason codes for programmatic handling.\n// Used with google.rpc.ErrorInfo as status detail.\n//\n// Domain: \"structured.id\", the same for every installation whatever host\n// serves it. A reason is stable within its domain (AIP-193); reasons defined\n// elsewhere carry their own domain.\n//\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * The challenge of a CAPTCHA_REQUIRED refusal, packed as an additional status\n * detail beside ErrorInfo: no canonical google.rpc detail carries it.\n *\n * @generated from protobuf message sid.v1.common.CaptchaChallenge\n */\nexport interface CaptchaChallenge {\n /**\n * Server-issued identifier of this challenge; the client sends it back with\n * the solution. Valid only for the sign-in it was issued for.\n *\n * @generated from protobuf field: string challenge_id = 1\n */\n challengeId: string;\n /**\n * Which solver the client runs.\n *\n * @generated from protobuf field: sid.v1.common.CaptchaKind kind = 2\n */\n kind: CaptchaKind;\n /**\n * Public site key of a third-party widget; empty for the SID proof of work.\n *\n * @generated from protobuf field: string site_key = 3\n */\n siteKey: string;\n /**\n * Required leading zero bits of the SID proof of work; 0 for a widget.\n *\n * @generated from protobuf field: uint32 difficulty = 4\n */\n difficulty: number;\n}\n/**\n * Machine-readable error reason codes.\n *\n * Each code maps to a specific gRPC status code (see comments).\n * Clients switch on `reason` field of google.rpc.ErrorInfo for\n * programmatic error handling.\n *\n * @generated from protobuf enum sid.v1.common.ErrorReason\n */\nexport enum ErrorReason {\n /**\n * @generated from protobuf enum value: ERROR_REASON_UNSPECIFIED = 0;\n */\n ERROR_REASON_UNSPECIFIED = 0,\n /**\n * Profile does not exist.\n *\n * @generated from protobuf enum value: PROFILE_NOT_FOUND = 1;\n */\n PROFILE_NOT_FOUND = 1,\n /**\n * OAuth2 application/client not found.\n *\n * @generated from protobuf enum value: APPLICATION_NOT_FOUND = 2;\n */\n APPLICATION_NOT_FOUND = 2,\n /**\n * Session not found or expired.\n *\n * @generated from protobuf enum value: SESSION_NOT_FOUND = 3;\n */\n SESSION_NOT_FOUND = 3,\n /**\n * Credential not found.\n *\n * @generated from protobuf enum value: CREDENTIAL_NOT_FOUND = 4;\n */\n CREDENTIAL_NOT_FOUND = 4,\n /**\n * Role not found.\n *\n * @generated from protobuf enum value: ROLE_NOT_FOUND = 5;\n */\n ROLE_NOT_FOUND = 5,\n /**\n * Project not found.\n *\n * @generated from protobuf enum value: PROJECT_NOT_FOUND = 6;\n */\n PROJECT_NOT_FOUND = 6,\n /**\n * No OIDC issuer has this handle. The request is refused before any\n * authentication or key lookup; it never falls back to another issuer.\n *\n * @generated from protobuf enum value: OIDC_ISSUER_NOT_FOUND = 7;\n */\n OIDC_ISSUER_NOT_FOUND = 7,\n /**\n * Protected resource not found.\n *\n * @generated from protobuf enum value: RESOURCE_NOT_FOUND = 8;\n */\n RESOURCE_NOT_FOUND = 8,\n /**\n * The forward-auth route configuration has no protected application of\n * this name; the reverse proxy's address names an application it does not\n * protect.\n *\n * @generated from protobuf enum value: FORWARD_AUTH_APPLICATION_NOT_FOUND = 9;\n */\n FORWARD_AUTH_APPLICATION_NOT_FOUND = 9,\n /**\n * No initial access token has this identifier.\n *\n * @generated from protobuf enum value: INITIAL_ACCESS_TOKEN_NOT_FOUND = 13;\n */\n INITIAL_ACCESS_TOKEN_NOT_FOUND = 13,\n /**\n * No upstream identity provider has this identifier.\n *\n * @generated from protobuf enum value: UPSTREAM_PROVIDER_NOT_FOUND = 14;\n */\n UPSTREAM_PROVIDER_NOT_FOUND = 14,\n /**\n * No machine user (service account, bot, agent) has this identifier.\n *\n * @generated from protobuf enum value: MACHINE_USER_NOT_FOUND = 15;\n */\n MACHINE_USER_NOT_FOUND = 15,\n /**\n * The caller has no consent record for this site (OAuth2 client).\n *\n * @generated from protobuf enum value: CONSENT_NOT_FOUND = 16;\n */\n CONSENT_NOT_FOUND = 16,\n /**\n * The caller's profile has no phone with this identifier.\n *\n * @generated from protobuf enum value: PHONE_NOT_FOUND = 17;\n */\n PHONE_NOT_FOUND = 17,\n /**\n * The caller's profile has no email with this identifier.\n *\n * @generated from protobuf enum value: EMAIL_NOT_FOUND = 18;\n */\n EMAIL_NOT_FOUND = 18,\n /**\n * The caller has no device with this identifier (another profile's device\n * is not found either).\n *\n * @generated from protobuf enum value: DEVICE_NOT_FOUND = 19;\n */\n DEVICE_NOT_FOUND = 19,\n /**\n * Invalid credentials (password, WebAuthn assertion, etc.).\n * Security: status.message MUST be generic (\"authentication failed\").\n *\n * @generated from protobuf enum value: AUTHENTICATION_FAILED = 10;\n */\n AUTHENTICATION_FAILED = 10,\n /**\n * Access token expired.\n *\n * @generated from protobuf enum value: TOKEN_EXPIRED = 11;\n */\n TOKEN_EXPIRED = 11,\n /**\n * Token malformed, invalid signature, or wrong issuer.\n *\n * @generated from protobuf enum value: TOKEN_INVALID = 12;\n */\n TOKEN_INVALID = 12,\n /**\n * Caller lacks required permissions (the authorization decision denied it).\n *\n * @generated from protobuf enum value: INSUFFICIENT_PERMISSIONS = 20;\n */\n INSUFFICIENT_PERMISSIONS = 20,\n /**\n * OAuth2 scope not granted for this operation.\n *\n * @generated from protobuf enum value: SCOPE_NOT_GRANTED = 21;\n */\n SCOPE_NOT_GRANTED = 21,\n /**\n * A sign-in policy refuses this sign-in outright (a blocked address or\n * country, a method the policy never accepts). The refusal names no rule;\n * retrying the same sign-in does not help.\n *\n * @generated from protobuf enum value: SIGN_IN_REFUSED = 22;\n */\n SIGN_IN_REFUSED = 22,\n /**\n * Self-registration is restricted on this installation. ErrorInfo metadata\n * `requirement` names what is missing: `instance_claim` (the first\n * administrator's claim token), `admin_only` (only administrators create\n * accounts), `invite` (an invite code), `email` (an email address) or\n * `email_domain` (an address in an allowed domain).\n *\n * @generated from protobuf enum value: REGISTRATION_RESTRICTED = 23;\n */\n REGISTRATION_RESTRICTED = 23,\n /**\n * Profile with this identifier already exists.\n *\n * @generated from protobuf enum value: PROFILE_ALREADY_EXISTS = 30;\n */\n PROFILE_ALREADY_EXISTS = 30,\n /**\n * Email address already registered.\n *\n * @generated from protobuf enum value: EMAIL_ALREADY_REGISTERED = 31;\n */\n EMAIL_ALREADY_REGISTERED = 31,\n /**\n * Username already taken.\n *\n * @generated from protobuf enum value: USERNAME_ALREADY_TAKEN = 32;\n */\n USERNAME_ALREADY_TAKEN = 32,\n /**\n * The operation key already names a command with a different method or\n * inputs; a new command needs a new key.\n *\n * @generated from protobuf enum value: OPERATION_KEY_CONFLICT = 33;\n */\n OPERATION_KEY_CONFLICT = 33,\n /**\n * The application already has a role of this kind (one client role and one\n * resource role per application).\n *\n * @generated from protobuf enum value: APPLICATION_ROLE_EXISTS = 34;\n */\n APPLICATION_ROLE_EXISTS = 34,\n /**\n * The issuer already has, or had, a protected resource with this resource\n * indicator; an indicator is never given to another resource.\n *\n * @generated from protobuf enum value: RESOURCE_INDICATOR_TAKEN = 35;\n */\n RESOURCE_INDICATOR_TAKEN = 35,\n /**\n * Phone number already registered to another account.\n *\n * @generated from protobuf enum value: PHONE_ALREADY_REGISTERED = 36;\n */\n PHONE_ALREADY_REGISTERED = 36,\n /**\n * The project already has a role with this key or display name.\n *\n * @generated from protobuf enum value: ROLE_ALREADY_EXISTS = 37;\n */\n ROLE_ALREADY_EXISTS = 37,\n /**\n * An upstream identity provider with this name already exists.\n *\n * @generated from protobuf enum value: UPSTREAM_PROVIDER_ALREADY_EXISTS = 38;\n */\n UPSTREAM_PROVIDER_ALREADY_EXISTS = 38,\n /**\n * A device login handle (an NFC tag, a face embedding) is held by another\n * account; such a handle identifies one account only. A username has its\n * own USERNAME_ALREADY_TAKEN.\n *\n * @generated from protobuf enum value: PRINCIPAL_ALREADY_HELD = 39;\n */\n PRINCIPAL_ALREADY_HELD = 39,\n /**\n * Field value does not pass validation.\n *\n * @generated from protobuf enum value: INVALID_FIELD_VALUE = 40;\n */\n INVALID_FIELD_VALUE = 40,\n /**\n * Required field is missing.\n *\n * @generated from protobuf enum value: REQUIRED_FIELD_MISSING = 41;\n */\n REQUIRED_FIELD_MISSING = 41,\n /**\n * The password installation's proof does not verify for its operation and\n * request. A new operation with a fresh proof is needed; retrying the same\n * proof cannot succeed.\n *\n * @generated from protobuf enum value: PASSWORD_PROOF_INVALID = 42;\n */\n PASSWORD_PROOF_INVALID = 42,\n /**\n * MFA enrollment required before proceeding.\n *\n * @generated from protobuf enum value: MFA_REQUIRED = 50;\n */\n MFA_REQUIRED = 50,\n /**\n * Account suspended by administrator.\n *\n * @generated from protobuf enum value: ACCOUNT_SUSPENDED = 51;\n */\n ACCOUNT_SUSPENDED = 51,\n /**\n * Account locked due to brute-force protection.\n *\n * @generated from protobuf enum value: ACCOUNT_LOCKED = 52;\n */\n ACCOUNT_LOCKED = 52,\n /**\n * User consent required before granting access.\n *\n * @generated from protobuf enum value: CONSENT_REQUIRED = 53;\n */\n CONSENT_REQUIRED = 53,\n /**\n * Credential has been revoked.\n *\n * @generated from protobuf enum value: CREDENTIAL_REVOKED = 54;\n */\n CREDENTIAL_REVOKED = 54,\n /**\n * Account is in closure/quarantine state.\n *\n * @generated from protobuf enum value: ACCOUNT_CLOSED = 55;\n */\n ACCOUNT_CLOSED = 55,\n /**\n * The operation completed, but its result is no longer kept; it is not\n * executed again.\n *\n * @generated from protobuf enum value: OPERATION_RESULT_UNAVAILABLE = 56;\n */\n OPERATION_RESULT_UNAVAILABLE = 56,\n /**\n * The operation is outside the window in which a retry is admitted.\n *\n * @generated from protobuf enum value: OPERATION_EXPIRED = 57;\n */\n OPERATION_EXPIRED = 57,\n /**\n * The protected resource is retired with its application: it takes no\n * changes and no access.\n *\n * @generated from protobuf enum value: RESOURCE_RETIRED = 58;\n */\n RESOURCE_RETIRED = 58,\n /**\n * The client and the resource belong to different issuers; access is\n * granted only within one issuer.\n *\n * @generated from protobuf enum value: ISSUER_MISMATCH = 59;\n */\n ISSUER_MISMATCH = 59,\n /**\n * The installation's own integration is not provisioned or an\n * administrator disabled it; its backend cannot serve until it is enabled.\n *\n * @generated from protobuf enum value: SYSTEM_INTEGRATION_UNAVAILABLE = 61;\n */\n SYSTEM_INTEGRATION_UNAVAILABLE = 61,\n /**\n * The resource is one SID provisions and keeps (the installation's own\n * integration or the system project): it is disabled, not deleted, and its\n * settings are not edited by hand.\n *\n * @generated from protobuf enum value: SYSTEM_MANAGED = 62;\n */\n SYSTEM_MANAGED = 62,\n /**\n * The new password matches one the owner's retained history holds. Which\n * entry matched is never disclosed.\n *\n * @generated from protobuf enum value: PASSWORD_REUSED = 63;\n */\n PASSWORD_REUSED = 63,\n /**\n * A stronger authentication is required first. PreconditionFailure\n * violations name it: type \"acr\" with the required acr value as subject,\n * or type \"amr\" with each acceptable method.\n *\n * @generated from protobuf enum value: STEP_UP_REQUIRED = 64;\n */\n STEP_UP_REQUIRED = 64,\n /**\n * A CAPTCHA must be solved first; the status carries a CaptchaChallenge\n * detail, and the solution goes back with the same request.\n *\n * @generated from protobuf enum value: CAPTCHA_REQUIRED = 65;\n */\n CAPTCHA_REQUIRED = 65,\n /**\n * The account's password is stored in a legacy form and must be migrated\n * through the migration flow before this call.\n *\n * @generated from protobuf enum value: LEGACY_MIGRATION_REQUIRED = 66;\n */\n LEGACY_MIGRATION_REQUIRED = 66,\n /**\n * The resource is not in a state that allows the call (a deleted machine\n * user, a consumed reset session, a decided access request).\n * PreconditionFailure type names the state, subject the resource.\n *\n * @generated from protobuf enum value: INVALID_STATE = 67;\n */\n INVALID_STATE = 67,\n /**\n * The provider or capability the call needs is not configured in this\n * deployment; an administrator can enable it.\n *\n * @generated from protobuf enum value: FEATURE_NOT_CONFIGURED = 68;\n */\n FEATURE_NOT_CONFIGURED = 68,\n /**\n * Rate limit exceeded (login attempts, API calls, etc.).\n *\n * @generated from protobuf enum value: RATE_LIMIT_EXCEEDED = 60;\n */\n RATE_LIMIT_EXCEEDED = 60,\n /**\n * A count limit is reached (for example the active tokens a user may hold);\n * QuotaFailure names the limit. Retrying does not help until something is\n * removed.\n *\n * @generated from protobuf enum value: QUOTA_EXCEEDED = 69;\n */\n QUOTA_EXCEEDED = 69,\n /**\n * Concurrent modification detected (optimistic locking).\n *\n * @generated from protobuf enum value: CONCURRENT_MODIFICATION = 70;\n */\n CONCURRENT_MODIFICATION = 70,\n /**\n * The same logical operation is still executing; retry it later with the\n * same key.\n *\n * @generated from protobuf enum value: OPERATION_IN_PROGRESS = 71;\n */\n OPERATION_IN_PROGRESS = 71,\n /**\n * Password history cannot be checked now (evaluator, history keys or\n * checker capacity). Nothing was installed; retry after the RetryInfo delay.\n * Ordinary sign-in is not affected.\n *\n * @generated from protobuf enum value: PASSWORD_HISTORY_UNAVAILABLE = 100;\n */\n PASSWORD_HISTORY_UNAVAILABLE = 100,\n /**\n * The service is in maintenance mode; retry after the RetryInfo delay.\n *\n * @generated from protobuf enum value: SERVICE_MAINTENANCE = 101;\n */\n SERVICE_MAINTENANCE = 101,\n /**\n * A dependency the call needs (storage, cache, revocation state, rate\n * limiter, verification keys) cannot be reached; retry after the RetryInfo\n * delay. Nothing was changed.\n *\n * @generated from protobuf enum value: DEPENDENCY_UNAVAILABLE = 102;\n */\n DEPENDENCY_UNAVAILABLE = 102,\n /**\n * The caller holds no principal (login handle or contact) with this\n * identifier; one held only by other accounts is not found either, except\n * for an administrator.\n *\n * @generated from protobuf enum value: PRINCIPAL_NOT_FOUND = 110;\n */\n PRINCIPAL_NOT_FOUND = 110,\n /**\n * The caller's account has no data export to download or acknowledge.\n *\n * @generated from protobuf enum value: EXPORT_NOT_FOUND = 111;\n */\n EXPORT_NOT_FOUND = 111,\n /**\n * The caller's account has no closure request to cancel.\n *\n * @generated from protobuf enum value: CLOSURE_REQUEST_NOT_FOUND = 112;\n */\n CLOSURE_REQUEST_NOT_FOUND = 112,\n /**\n * No group has this identifier, or the project has no group of this name.\n *\n * @generated from protobuf enum value: GROUP_NOT_FOUND = 113;\n */\n GROUP_NOT_FOUND = 113,\n /**\n * No authorization policy has this identifier.\n *\n * @generated from protobuf enum value: POLICY_NOT_FOUND = 114;\n */\n POLICY_NOT_FOUND = 114,\n /**\n * No access request has this identifier.\n *\n * @generated from protobuf enum value: ACCESS_REQUEST_NOT_FOUND = 115;\n */\n ACCESS_REQUEST_NOT_FOUND = 115,\n /**\n * No notification template has this identifier, or the template has no\n * content for the requested channel.\n *\n * @generated from protobuf enum value: TEMPLATE_NOT_FOUND = 116;\n */\n TEMPLATE_NOT_FOUND = 116,\n /**\n * The device has no live key attestation (none was registered, or it was\n * revoked).\n *\n * @generated from protobuf enum value: ATTESTATION_NOT_FOUND = 117;\n */\n ATTESTATION_NOT_FOUND = 117,\n /**\n * The profile has no metadata entry with this key.\n *\n * @generated from protobuf enum value: PROFILE_METADATA_NOT_FOUND = 118;\n */\n PROFILE_METADATA_NOT_FOUND = 118,\n /**\n * No branding configuration has this identifier, or the project has no\n * published branding.\n *\n * @generated from protobuf enum value: BRANDING_NOT_FOUND = 119;\n */\n BRANDING_NOT_FOUND = 119,\n /**\n * The project has no saved configuration for this flow type.\n *\n * @generated from protobuf enum value: FLOW_CONFIG_NOT_FOUND = 130;\n */\n FLOW_CONFIG_NOT_FOUND = 130,\n /**\n * No flow action has this identifier.\n *\n * @generated from protobuf enum value: FLOW_ACTION_NOT_FOUND = 131;\n */\n FLOW_ACTION_NOT_FOUND = 131,\n /**\n * No invite has this identifier.\n *\n * @generated from protobuf enum value: INVITE_NOT_FOUND = 132;\n */\n INVITE_NOT_FOUND = 132,\n /**\n * No organization has this identifier, or the caller is not a member of it\n * (a member-only lookup does not disclose that the organization exists).\n *\n * @generated from protobuf enum value: ORGANIZATION_NOT_FOUND = 133;\n */\n ORGANIZATION_NOT_FOUND = 133,\n /**\n * The organization has no provisioning connector with this identifier.\n *\n * @generated from protobuf enum value: PROVISIONING_CONNECTOR_NOT_FOUND = 134;\n */\n PROVISIONING_CONNECTOR_NOT_FOUND = 134,\n /**\n * The project already has a group of this name.\n *\n * @generated from protobuf enum value: GROUP_ALREADY_EXISTS = 120;\n */\n GROUP_ALREADY_EXISTS = 120,\n /**\n * The project already has an authorization policy of this name.\n *\n * @generated from protobuf enum value: POLICY_ALREADY_EXISTS = 121;\n */\n POLICY_ALREADY_EXISTS = 121,\n /**\n * The device already has a live key attestation; RotateDeviceKey replaces\n * its key.\n *\n * @generated from protobuf enum value: ATTESTATION_ALREADY_EXISTS = 122;\n */\n ATTESTATION_ALREADY_EXISTS = 122,\n /**\n * The operation's outcome cannot be established yet; retry it with the\n * same key, never with a new one.\n *\n * @generated from protobuf enum value: OPERATION_OUTCOME_UNKNOWN = 95;\n */\n OPERATION_OUTCOME_UNKNOWN = 95,\n /**\n * The feature is not part of this server build. Retrying does not help;\n * InstanceInfo.edition names the build.\n *\n * @generated from protobuf enum value: FEATURE_NOT_AVAILABLE = 80;\n */\n FEATURE_NOT_AVAILABLE = 80,\n /**\n * Unrecoverable internal error.\n *\n * @generated from protobuf enum value: INTERNAL_ERROR = 90;\n */\n INTERNAL_ERROR = 90\n}\n/**\n * Solver of a CAPTCHA challenge.\n *\n * @generated from protobuf enum sid.v1.common.CaptchaKind\n */\nexport enum CaptchaKind {\n /**\n * @generated from protobuf enum value: CAPTCHA_KIND_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * SID's own proof of work, solved without a third party.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_SID_POW = 1;\n */\n SID_POW = 1,\n /**\n * hCaptcha widget.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_HCAPTCHA = 2;\n */\n HCAPTCHA = 2,\n /**\n * Cloudflare Turnstile widget.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_TURNSTILE = 3;\n */\n TURNSTILE = 3\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass CaptchaChallenge$Type extends MessageType<CaptchaChallenge> {\n constructor() {\n super(\"sid.v1.common.CaptchaChallenge\", [\n { no: 1, name: \"challenge_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"kind\", kind: \"enum\", T: () => [\"sid.v1.common.CaptchaKind\", CaptchaKind, \"CAPTCHA_KIND_\"] },\n { no: 3, name: \"site_key\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"difficulty\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<CaptchaChallenge>): CaptchaChallenge {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challengeId = \"\";\n message.kind = 0;\n message.siteKey = \"\";\n message.difficulty = 0;\n if (value !== undefined)\n reflectionMergePartial<CaptchaChallenge>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CaptchaChallenge): CaptchaChallenge {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string challenge_id */ 1:\n message.challengeId = reader.string();\n break;\n case /* sid.v1.common.CaptchaKind kind */ 2:\n message.kind = reader.int32();\n break;\n case /* string site_key */ 3:\n message.siteKey = reader.string();\n break;\n case /* uint32 difficulty */ 4:\n message.difficulty = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: CaptchaChallenge, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string challenge_id = 1; */\n if (message.challengeId !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.challengeId);\n /* sid.v1.common.CaptchaKind kind = 2; */\n if (message.kind !== 0)\n writer.tag(2, WireType.Varint).int32(message.kind);\n /* string site_key = 3; */\n if (message.siteKey !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.siteKey);\n /* uint32 difficulty = 4; */\n if (message.difficulty !== 0)\n writer.tag(4, WireType.Varint).uint32(message.difficulty);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.CaptchaChallenge\n */\nexport const CaptchaChallenge = new CaptchaChallenge$Type();\n"]}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/common/errors.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB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OAAO,CAAC,IAAI,KAAK,CAAC;YAClB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACvD,0BAA0B;QAC1B,IAAI,OAAO,CAAC,OAAO,KAAK,EAAE;YACtB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACpE,4BAA4B;QAC5B,IAAI,OAAO,CAAC,UAAU,KAAK,CAAC;YACxB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC9D,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,qBAAqB,EAAE,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/common/errors.proto\" (package \"sid.v1.common\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// StructuredID gRPC Error Model.\n//\n// Machine-readable error reason codes for programmatic handling.\n// Used with google.rpc.ErrorInfo as status detail.\n//\n// Domain: \"structured.id\", the same for every installation whatever host\n// serves it. A reason is stable within its domain (AIP-193); reasons defined\n// elsewhere carry their own domain.\n//\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * The challenge of a CAPTCHA_REQUIRED refusal, packed as an additional status\n * detail beside ErrorInfo: no canonical google.rpc detail carries it.\n *\n * @generated from protobuf message sid.v1.common.CaptchaChallenge\n */\nexport interface CaptchaChallenge {\n /**\n * Server-issued identifier of this challenge; the client sends it back with\n * the solution. Valid only for the sign-in it was issued for.\n *\n * @generated from protobuf field: string challenge_id = 1\n */\n challengeId: string;\n /**\n * Which solver the client runs.\n *\n * @generated from protobuf field: sid.v1.common.CaptchaKind kind = 2\n */\n kind: CaptchaKind;\n /**\n * Public site key of a third-party widget; empty for the SID proof of work.\n *\n * @generated from protobuf field: string site_key = 3\n */\n siteKey: string;\n /**\n * Required leading zero bits of the SID proof of work; 0 for a widget.\n *\n * @generated from protobuf field: uint32 difficulty = 4\n */\n difficulty: number;\n}\n/**\n * Machine-readable error reason codes.\n *\n * Each code maps to a specific gRPC status code (see comments).\n * Clients switch on `reason` field of google.rpc.ErrorInfo for\n * programmatic error handling.\n *\n * @generated from protobuf enum sid.v1.common.ErrorReason\n */\nexport enum ErrorReason {\n /**\n * @generated from protobuf enum value: ERROR_REASON_UNSPECIFIED = 0;\n */\n ERROR_REASON_UNSPECIFIED = 0,\n /**\n * Profile does not exist.\n *\n * @generated from protobuf enum value: PROFILE_NOT_FOUND = 1;\n */\n PROFILE_NOT_FOUND = 1,\n /**\n * OAuth2 application/client not found.\n *\n * @generated from protobuf enum value: APPLICATION_NOT_FOUND = 2;\n */\n APPLICATION_NOT_FOUND = 2,\n /**\n * Session not found or expired.\n *\n * @generated from protobuf enum value: SESSION_NOT_FOUND = 3;\n */\n SESSION_NOT_FOUND = 3,\n /**\n * Credential not found.\n *\n * @generated from protobuf enum value: CREDENTIAL_NOT_FOUND = 4;\n */\n CREDENTIAL_NOT_FOUND = 4,\n /**\n * Role not found.\n *\n * @generated from protobuf enum value: ROLE_NOT_FOUND = 5;\n */\n ROLE_NOT_FOUND = 5,\n /**\n * Project not found.\n *\n * @generated from protobuf enum value: PROJECT_NOT_FOUND = 6;\n */\n PROJECT_NOT_FOUND = 6,\n /**\n * No OIDC issuer has this handle. The request is refused before any\n * authentication or key lookup; it never falls back to another issuer.\n *\n * @generated from protobuf enum value: OIDC_ISSUER_NOT_FOUND = 7;\n */\n OIDC_ISSUER_NOT_FOUND = 7,\n /**\n * Protected resource not found.\n *\n * @generated from protobuf enum value: RESOURCE_NOT_FOUND = 8;\n */\n RESOURCE_NOT_FOUND = 8,\n /**\n * The forward-auth route configuration has no protected application of\n * this name; the reverse proxy's address names an application it does not\n * protect.\n *\n * @generated from protobuf enum value: FORWARD_AUTH_APPLICATION_NOT_FOUND = 9;\n */\n FORWARD_AUTH_APPLICATION_NOT_FOUND = 9,\n /**\n * No initial access token has this identifier.\n *\n * @generated from protobuf enum value: INITIAL_ACCESS_TOKEN_NOT_FOUND = 13;\n */\n INITIAL_ACCESS_TOKEN_NOT_FOUND = 13,\n /**\n * No upstream identity provider has this identifier.\n *\n * @generated from protobuf enum value: UPSTREAM_PROVIDER_NOT_FOUND = 14;\n */\n UPSTREAM_PROVIDER_NOT_FOUND = 14,\n /**\n * No machine user (service account, bot, agent) has this identifier.\n *\n * @generated from protobuf enum value: MACHINE_USER_NOT_FOUND = 15;\n */\n MACHINE_USER_NOT_FOUND = 15,\n /**\n * The caller has no consent record for this site (OAuth2 client).\n *\n * @generated from protobuf enum value: CONSENT_NOT_FOUND = 16;\n */\n CONSENT_NOT_FOUND = 16,\n /**\n * The caller's profile has no phone with this identifier.\n *\n * @generated from protobuf enum value: PHONE_NOT_FOUND = 17;\n */\n PHONE_NOT_FOUND = 17,\n /**\n * The caller's profile has no email with this identifier.\n *\n * @generated from protobuf enum value: EMAIL_NOT_FOUND = 18;\n */\n EMAIL_NOT_FOUND = 18,\n /**\n * The caller has no device with this identifier (another profile's device\n * is not found either).\n *\n * @generated from protobuf enum value: DEVICE_NOT_FOUND = 19;\n */\n DEVICE_NOT_FOUND = 19,\n /**\n * Invalid credentials (password, WebAuthn assertion, etc.).\n * Security: status.message MUST be generic (\"authentication failed\").\n *\n * @generated from protobuf enum value: AUTHENTICATION_FAILED = 10;\n */\n AUTHENTICATION_FAILED = 10,\n /**\n * Access token expired.\n *\n * @generated from protobuf enum value: TOKEN_EXPIRED = 11;\n */\n TOKEN_EXPIRED = 11,\n /**\n * Token malformed, invalid signature, or wrong issuer.\n *\n * @generated from protobuf enum value: TOKEN_INVALID = 12;\n */\n TOKEN_INVALID = 12,\n /**\n * Caller lacks required permissions (the authorization decision denied it).\n *\n * @generated from protobuf enum value: INSUFFICIENT_PERMISSIONS = 20;\n */\n INSUFFICIENT_PERMISSIONS = 20,\n /**\n * OAuth2 scope not granted for this operation.\n *\n * @generated from protobuf enum value: SCOPE_NOT_GRANTED = 21;\n */\n SCOPE_NOT_GRANTED = 21,\n /**\n * A sign-in policy refuses this sign-in outright (a blocked address or\n * country, a method the policy never accepts). The refusal names no rule;\n * retrying the same sign-in does not help.\n *\n * @generated from protobuf enum value: SIGN_IN_REFUSED = 22;\n */\n SIGN_IN_REFUSED = 22,\n /**\n * Self-registration is restricted on this installation. ErrorInfo metadata\n * `requirement` names what is missing: `instance_claim` (the first\n * administrator's claim token), `admin_only` (only administrators create\n * accounts), `invite` (an invite code), `email` (an email address) or\n * `email_domain` (an address in an allowed domain).\n *\n * @generated from protobuf enum value: REGISTRATION_RESTRICTED = 23;\n */\n REGISTRATION_RESTRICTED = 23,\n /**\n * A state-changing browser call did not echo its session's CSRF token in\n * `x-csrf-token` (absent, repeated or another session's). The session is\n * left as it was; the page reads the token again with the session.\n *\n * @generated from protobuf enum value: CSRF_TOKEN_INVALID = 24;\n */\n CSRF_TOKEN_INVALID = 24,\n /**\n * Profile with this identifier already exists.\n *\n * @generated from protobuf enum value: PROFILE_ALREADY_EXISTS = 30;\n */\n PROFILE_ALREADY_EXISTS = 30,\n /**\n * Email address already registered.\n *\n * @generated from protobuf enum value: EMAIL_ALREADY_REGISTERED = 31;\n */\n EMAIL_ALREADY_REGISTERED = 31,\n /**\n * Username already taken.\n *\n * @generated from protobuf enum value: USERNAME_ALREADY_TAKEN = 32;\n */\n USERNAME_ALREADY_TAKEN = 32,\n /**\n * The operation key already names a command with a different method or\n * inputs; a new command needs a new key.\n *\n * @generated from protobuf enum value: OPERATION_KEY_CONFLICT = 33;\n */\n OPERATION_KEY_CONFLICT = 33,\n /**\n * The application already has a role of this kind (one client role and one\n * resource role per application).\n *\n * @generated from protobuf enum value: APPLICATION_ROLE_EXISTS = 34;\n */\n APPLICATION_ROLE_EXISTS = 34,\n /**\n * The issuer already has, or had, a protected resource with this resource\n * indicator; an indicator is never given to another resource.\n *\n * @generated from protobuf enum value: RESOURCE_INDICATOR_TAKEN = 35;\n */\n RESOURCE_INDICATOR_TAKEN = 35,\n /**\n * Phone number already registered to another account.\n *\n * @generated from protobuf enum value: PHONE_ALREADY_REGISTERED = 36;\n */\n PHONE_ALREADY_REGISTERED = 36,\n /**\n * The project already has a role with this key or display name.\n *\n * @generated from protobuf enum value: ROLE_ALREADY_EXISTS = 37;\n */\n ROLE_ALREADY_EXISTS = 37,\n /**\n * An upstream identity provider with this name already exists.\n *\n * @generated from protobuf enum value: UPSTREAM_PROVIDER_ALREADY_EXISTS = 38;\n */\n UPSTREAM_PROVIDER_ALREADY_EXISTS = 38,\n /**\n * A device login handle (an NFC tag, a face embedding) is held by another\n * account; such a handle identifies one account only. A username has its\n * own USERNAME_ALREADY_TAKEN.\n *\n * @generated from protobuf enum value: PRINCIPAL_ALREADY_HELD = 39;\n */\n PRINCIPAL_ALREADY_HELD = 39,\n /**\n * Field value does not pass validation.\n *\n * @generated from protobuf enum value: INVALID_FIELD_VALUE = 40;\n */\n INVALID_FIELD_VALUE = 40,\n /**\n * Required field is missing.\n *\n * @generated from protobuf enum value: REQUIRED_FIELD_MISSING = 41;\n */\n REQUIRED_FIELD_MISSING = 41,\n /**\n * The password installation's proof does not verify for its operation and\n * request. A new operation with a fresh proof is needed; retrying the same\n * proof cannot succeed.\n *\n * @generated from protobuf enum value: PASSWORD_PROOF_INVALID = 42;\n */\n PASSWORD_PROOF_INVALID = 42,\n /**\n * MFA enrollment required before proceeding.\n *\n * @generated from protobuf enum value: MFA_REQUIRED = 50;\n */\n MFA_REQUIRED = 50,\n /**\n * Account suspended by administrator.\n *\n * @generated from protobuf enum value: ACCOUNT_SUSPENDED = 51;\n */\n ACCOUNT_SUSPENDED = 51,\n /**\n * Account locked due to brute-force protection.\n *\n * @generated from protobuf enum value: ACCOUNT_LOCKED = 52;\n */\n ACCOUNT_LOCKED = 52,\n /**\n * User consent required before granting access.\n *\n * @generated from protobuf enum value: CONSENT_REQUIRED = 53;\n */\n CONSENT_REQUIRED = 53,\n /**\n * Credential has been revoked.\n *\n * @generated from protobuf enum value: CREDENTIAL_REVOKED = 54;\n */\n CREDENTIAL_REVOKED = 54,\n /**\n * Account is in closure/quarantine state.\n *\n * @generated from protobuf enum value: ACCOUNT_CLOSED = 55;\n */\n ACCOUNT_CLOSED = 55,\n /**\n * The operation completed, but its result is no longer kept; it is not\n * executed again.\n *\n * @generated from protobuf enum value: OPERATION_RESULT_UNAVAILABLE = 56;\n */\n OPERATION_RESULT_UNAVAILABLE = 56,\n /**\n * The operation is outside the window in which a retry is admitted.\n *\n * @generated from protobuf enum value: OPERATION_EXPIRED = 57;\n */\n OPERATION_EXPIRED = 57,\n /**\n * The protected resource is retired with its application: it takes no\n * changes and no access.\n *\n * @generated from protobuf enum value: RESOURCE_RETIRED = 58;\n */\n RESOURCE_RETIRED = 58,\n /**\n * The client and the resource belong to different issuers; access is\n * granted only within one issuer.\n *\n * @generated from protobuf enum value: ISSUER_MISMATCH = 59;\n */\n ISSUER_MISMATCH = 59,\n /**\n * The installation's own integration is not provisioned or an\n * administrator disabled it; its backend cannot serve until it is enabled.\n *\n * @generated from protobuf enum value: SYSTEM_INTEGRATION_UNAVAILABLE = 61;\n */\n SYSTEM_INTEGRATION_UNAVAILABLE = 61,\n /**\n * The resource is one SID provisions and keeps (the installation's own\n * integration or the system project): it is disabled, not deleted, and its\n * settings are not edited by hand.\n *\n * @generated from protobuf enum value: SYSTEM_MANAGED = 62;\n */\n SYSTEM_MANAGED = 62,\n /**\n * The new password matches one the owner's retained history holds. Which\n * entry matched is never disclosed.\n *\n * @generated from protobuf enum value: PASSWORD_REUSED = 63;\n */\n PASSWORD_REUSED = 63,\n /**\n * A stronger authentication is required first. PreconditionFailure\n * violations name it: type \"acr\" with the required acr value as subject,\n * or type \"amr\" with each acceptable method.\n *\n * @generated from protobuf enum value: STEP_UP_REQUIRED = 64;\n */\n STEP_UP_REQUIRED = 64,\n /**\n * A CAPTCHA must be solved first; the status carries a CaptchaChallenge\n * detail, and the solution goes back with the same request.\n *\n * @generated from protobuf enum value: CAPTCHA_REQUIRED = 65;\n */\n CAPTCHA_REQUIRED = 65,\n /**\n * The account's password is stored in a legacy form and must be migrated\n * through the migration flow before this call.\n *\n * @generated from protobuf enum value: LEGACY_MIGRATION_REQUIRED = 66;\n */\n LEGACY_MIGRATION_REQUIRED = 66,\n /**\n * The resource is not in a state that allows the call (a deleted machine\n * user, a consumed reset session, a decided access request).\n * PreconditionFailure type names the state, subject the resource.\n *\n * @generated from protobuf enum value: INVALID_STATE = 67;\n */\n INVALID_STATE = 67,\n /**\n * The provider or capability the call needs is not configured in this\n * deployment; an administrator can enable it.\n *\n * @generated from protobuf enum value: FEATURE_NOT_CONFIGURED = 68;\n */\n FEATURE_NOT_CONFIGURED = 68,\n /**\n * Rate limit exceeded (login attempts, API calls, etc.).\n *\n * @generated from protobuf enum value: RATE_LIMIT_EXCEEDED = 60;\n */\n RATE_LIMIT_EXCEEDED = 60,\n /**\n * A count limit is reached (for example the active tokens a user may hold);\n * QuotaFailure names the limit. Retrying does not help until something is\n * removed.\n *\n * @generated from protobuf enum value: QUOTA_EXCEEDED = 69;\n */\n QUOTA_EXCEEDED = 69,\n /**\n * Concurrent modification detected (optimistic locking).\n *\n * @generated from protobuf enum value: CONCURRENT_MODIFICATION = 70;\n */\n CONCURRENT_MODIFICATION = 70,\n /**\n * The same logical operation is still executing; retry it later with the\n * same key.\n *\n * @generated from protobuf enum value: OPERATION_IN_PROGRESS = 71;\n */\n OPERATION_IN_PROGRESS = 71,\n /**\n * Password history cannot be checked now (evaluator, history keys or\n * checker capacity). Nothing was installed; retry after the RetryInfo delay.\n * Ordinary sign-in is not affected.\n *\n * @generated from protobuf enum value: PASSWORD_HISTORY_UNAVAILABLE = 100;\n */\n PASSWORD_HISTORY_UNAVAILABLE = 100,\n /**\n * The service is in maintenance mode; retry after the RetryInfo delay.\n *\n * @generated from protobuf enum value: SERVICE_MAINTENANCE = 101;\n */\n SERVICE_MAINTENANCE = 101,\n /**\n * A dependency the call needs (storage, cache, revocation state, rate\n * limiter, verification keys) cannot be reached; retry after the RetryInfo\n * delay. Nothing was changed.\n *\n * @generated from protobuf enum value: DEPENDENCY_UNAVAILABLE = 102;\n */\n DEPENDENCY_UNAVAILABLE = 102,\n /**\n * The caller holds no principal (login handle or contact) with this\n * identifier; one held only by other accounts is not found either, except\n * for an administrator.\n *\n * @generated from protobuf enum value: PRINCIPAL_NOT_FOUND = 110;\n */\n PRINCIPAL_NOT_FOUND = 110,\n /**\n * The caller's account has no data export to download or acknowledge.\n *\n * @generated from protobuf enum value: EXPORT_NOT_FOUND = 111;\n */\n EXPORT_NOT_FOUND = 111,\n /**\n * The caller's account has no closure request to cancel.\n *\n * @generated from protobuf enum value: CLOSURE_REQUEST_NOT_FOUND = 112;\n */\n CLOSURE_REQUEST_NOT_FOUND = 112,\n /**\n * No group has this identifier, or the project has no group of this name.\n *\n * @generated from protobuf enum value: GROUP_NOT_FOUND = 113;\n */\n GROUP_NOT_FOUND = 113,\n /**\n * No authorization policy has this identifier.\n *\n * @generated from protobuf enum value: POLICY_NOT_FOUND = 114;\n */\n POLICY_NOT_FOUND = 114,\n /**\n * No access request has this identifier.\n *\n * @generated from protobuf enum value: ACCESS_REQUEST_NOT_FOUND = 115;\n */\n ACCESS_REQUEST_NOT_FOUND = 115,\n /**\n * No notification template has this identifier, or the template has no\n * content for the requested channel.\n *\n * @generated from protobuf enum value: TEMPLATE_NOT_FOUND = 116;\n */\n TEMPLATE_NOT_FOUND = 116,\n /**\n * The device has no live key attestation (none was registered, or it was\n * revoked).\n *\n * @generated from protobuf enum value: ATTESTATION_NOT_FOUND = 117;\n */\n ATTESTATION_NOT_FOUND = 117,\n /**\n * The profile has no metadata entry with this key.\n *\n * @generated from protobuf enum value: PROFILE_METADATA_NOT_FOUND = 118;\n */\n PROFILE_METADATA_NOT_FOUND = 118,\n /**\n * No branding configuration has this identifier, or the project has no\n * published branding.\n *\n * @generated from protobuf enum value: BRANDING_NOT_FOUND = 119;\n */\n BRANDING_NOT_FOUND = 119,\n /**\n * The project has no saved configuration for this flow type.\n *\n * @generated from protobuf enum value: FLOW_CONFIG_NOT_FOUND = 130;\n */\n FLOW_CONFIG_NOT_FOUND = 130,\n /**\n * No flow action has this identifier.\n *\n * @generated from protobuf enum value: FLOW_ACTION_NOT_FOUND = 131;\n */\n FLOW_ACTION_NOT_FOUND = 131,\n /**\n * No invite has this identifier.\n *\n * @generated from protobuf enum value: INVITE_NOT_FOUND = 132;\n */\n INVITE_NOT_FOUND = 132,\n /**\n * No organization has this identifier, or the caller is not a member of it\n * (a member-only lookup does not disclose that the organization exists).\n *\n * @generated from protobuf enum value: ORGANIZATION_NOT_FOUND = 133;\n */\n ORGANIZATION_NOT_FOUND = 133,\n /**\n * The organization has no provisioning connector with this identifier.\n *\n * @generated from protobuf enum value: PROVISIONING_CONNECTOR_NOT_FOUND = 134;\n */\n PROVISIONING_CONNECTOR_NOT_FOUND = 134,\n /**\n * The project already has a group of this name.\n *\n * @generated from protobuf enum value: GROUP_ALREADY_EXISTS = 120;\n */\n GROUP_ALREADY_EXISTS = 120,\n /**\n * The project already has an authorization policy of this name.\n *\n * @generated from protobuf enum value: POLICY_ALREADY_EXISTS = 121;\n */\n POLICY_ALREADY_EXISTS = 121,\n /**\n * The device already has a live key attestation; RotateDeviceKey replaces\n * its key.\n *\n * @generated from protobuf enum value: ATTESTATION_ALREADY_EXISTS = 122;\n */\n ATTESTATION_ALREADY_EXISTS = 122,\n /**\n * The operation's outcome cannot be established yet; retry it with the\n * same key, never with a new one.\n *\n * @generated from protobuf enum value: OPERATION_OUTCOME_UNKNOWN = 95;\n */\n OPERATION_OUTCOME_UNKNOWN = 95,\n /**\n * The feature is not part of this server build. Retrying does not help;\n * InstanceInfo.edition names the build.\n *\n * @generated from protobuf enum value: FEATURE_NOT_AVAILABLE = 80;\n */\n FEATURE_NOT_AVAILABLE = 80,\n /**\n * Unrecoverable internal error.\n *\n * @generated from protobuf enum value: INTERNAL_ERROR = 90;\n */\n INTERNAL_ERROR = 90\n}\n/**\n * Solver of a CAPTCHA challenge.\n *\n * @generated from protobuf enum sid.v1.common.CaptchaKind\n */\nexport enum CaptchaKind {\n /**\n * @generated from protobuf enum value: CAPTCHA_KIND_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * SID's own proof of work, solved without a third party.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_SID_POW = 1;\n */\n SID_POW = 1,\n /**\n * hCaptcha widget.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_HCAPTCHA = 2;\n */\n HCAPTCHA = 2,\n /**\n * Cloudflare Turnstile widget.\n *\n * @generated from protobuf enum value: CAPTCHA_KIND_TURNSTILE = 3;\n */\n TURNSTILE = 3\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass CaptchaChallenge$Type extends MessageType<CaptchaChallenge> {\n constructor() {\n super(\"sid.v1.common.CaptchaChallenge\", [\n { no: 1, name: \"challenge_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"kind\", kind: \"enum\", T: () => [\"sid.v1.common.CaptchaKind\", CaptchaKind, \"CAPTCHA_KIND_\"] },\n { no: 3, name: \"site_key\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"difficulty\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<CaptchaChallenge>): CaptchaChallenge {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challengeId = \"\";\n message.kind = 0;\n message.siteKey = \"\";\n message.difficulty = 0;\n if (value !== undefined)\n reflectionMergePartial<CaptchaChallenge>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CaptchaChallenge): CaptchaChallenge {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string challenge_id */ 1:\n message.challengeId = reader.string();\n break;\n case /* sid.v1.common.CaptchaKind kind */ 2:\n message.kind = reader.int32();\n break;\n case /* string site_key */ 3:\n message.siteKey = reader.string();\n break;\n case /* uint32 difficulty */ 4:\n message.difficulty = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: CaptchaChallenge, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string challenge_id = 1; */\n if (message.challengeId !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.challengeId);\n /* sid.v1.common.CaptchaKind kind = 2; */\n if (message.kind !== 0)\n writer.tag(2, WireType.Varint).int32(message.kind);\n /* string site_key = 3; */\n if (message.siteKey !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.siteKey);\n /* uint32 difficulty = 4; */\n if (message.difficulty !== 0)\n writer.tag(4, WireType.Varint).uint32(message.difficulty);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.common.CaptchaChallenge\n */\nexport const CaptchaChallenge = new CaptchaChallenge$Type();\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@structured-id/proto",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "description": "StructuredID public sid.v1 API for TypeScript: generated messages and clients for gRPC and gRPC-web.",
6
6
  "exports": {