@hearth-auth/sdk 0.0.1 → 1.0.1
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/dist/admin.d.ts +43 -0
- package/dist/admin.js +126 -0
- package/dist/admin.js.map +1 -0
- package/dist/browser-auth.d.ts +32 -0
- package/dist/browser-auth.js +99 -0
- package/dist/browser-auth.js.map +1 -0
- package/dist/claims.d.ts +86 -0
- package/dist/claims.js +137 -0
- package/dist/claims.js.map +1 -0
- package/dist/client.d.ts +77 -0
- package/dist/client.js +190 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +114 -0
- package/{src/errors.ts → dist/errors.js} +83 -97
- package/dist/errors.js.map +1 -0
- package/dist/hearth-client.d.ts +133 -0
- package/dist/hearth-client.js +192 -0
- package/dist/hearth-client.js.map +1 -0
- package/dist/hearth.d.ts +105 -0
- package/dist/hearth.js +109 -0
- package/dist/hearth.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/introspection-client.d.ts +59 -0
- package/dist/introspection-client.js +36 -0
- package/dist/introspection-client.js.map +1 -0
- package/dist/jwks-client.d.ts +28 -0
- package/dist/jwks-client.js +28 -0
- package/dist/jwks-client.js.map +1 -0
- package/dist/middleware.d.ts +38 -0
- package/dist/middleware.js +51 -0
- package/dist/middleware.js.map +1 -0
- package/dist/pkce.d.ts +64 -0
- package/dist/pkce.js +64 -0
- package/dist/pkce.js.map +1 -0
- package/dist/react.d.ts +32 -0
- package/dist/react.js +41 -0
- package/dist/react.js.map +1 -0
- package/dist/session-version-cache.d.ts +50 -0
- package/dist/session-version-cache.js +129 -0
- package/dist/session-version-cache.js.map +1 -0
- package/dist/types.d.ts +168 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +13 -4
- package/CHANGELOG.md +0 -12
- package/src/admin.ts +0 -157
- package/src/browser-auth.ts +0 -130
- package/src/claims.ts +0 -180
- package/src/client.ts +0 -251
- package/src/generated/google/api/annotations_pb.ts +0 -44
- package/src/generated/google/api/http_pb.ts +0 -467
- package/src/generated/hearth/authz/v1/authz_pb.ts +0 -593
- package/src/generated/hearth/cluster/v1/raft_pb.ts +0 -183
- package/src/generated/hearth/events/v1/audit_pb.ts +0 -886
- package/src/generated/hearth/identity/v1/identity_pb.ts +0 -1673
- package/src/generated/hearth/identity/v1/oauth_pb.ts +0 -1138
- package/src/generated/hearth/rbac/v1/rbac_pb.ts +0 -2000
- package/src/hearth-client.ts +0 -288
- package/src/hearth.ts +0 -224
- package/src/index.ts +0 -106
- package/src/introspection-client.ts +0 -83
- package/src/jwks-client.ts +0 -45
- package/src/middleware.ts +0 -82
- package/src/pkce.ts +0 -129
- package/src/react.tsx +0 -57
- package/src/session-version-cache.ts +0 -167
- package/src/types.ts +0 -188
- package/tests/admin-crud.test.ts +0 -97
- package/tests/auth-flow.test.ts +0 -75
- package/tests/authorize.test.ts +0 -386
- package/tests/claims.test.ts +0 -159
- package/tests/hasPermission.test.ts +0 -152
- package/tests/hearth-client.test.ts +0 -243
- package/tests/helpers.ts +0 -90
- package/tests/jwks.test.ts +0 -62
- package/tests/pkce.test.ts +0 -210
- package/tests/react-useHasPermission.test.tsx +0 -92
- package/tests/required-action.test.ts +0 -276
- package/tests/session-version.test.ts +0 -391
- package/tsconfig.json +0 -16
- package/vitest.config.ts +0 -8
|
@@ -1,1138 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file hearth/identity/v1/oauth.proto (package hearth.identity.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
-
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
-
import { file_google_api_annotations } from "../../../google/api/annotations_pb";
|
|
8
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Describes the file hearth/identity/v1/oauth.proto.
|
|
12
|
-
*/
|
|
13
|
-
export const file_hearth_identity_v1_oauth: GenFile = /*@__PURE__*/
|
|
14
|
-
fileDesc("Ch5oZWFydGgvaWRlbnRpdHkvdjEvb2F1dGgucHJvdG8SEmhlYXJ0aC5pZGVudGl0eS52MSK7AgoUQXV0aG9yaXphdGlvblJlcXVlc3QSEQoJY2xpZW50X2lkGAEgASgJEhQKDHJlZGlyZWN0X3VyaRgCIAEoCRINCgVzY29wZRgDIAEoCRINCgVzdGF0ZRgEIAEoCRIVCg1yZXNwb25zZV90eXBlGAUgASgJEg8KB3VzZXJfaWQYBiABKAkSGwoOY29kZV9jaGFsbGVuZ2UYByABKAlIAIgBARIiChVjb2RlX2NoYWxsZW5nZV9tZXRob2QYCCABKAlIAYgBARISCgVub25jZRgJIAEoCUgCiAEBEhgKC3JlcXVlc3RfdXJpGAogASgJSAOIAQFCEQoPX2NvZGVfY2hhbGxlbmdlQhgKFl9jb2RlX2NoYWxsZW5nZV9tZXRob2RCCAoGX25vbmNlQg4KDF9yZXF1ZXN0X3VyaSI0ChVBdXRob3JpemF0aW9uUmVzcG9uc2USDAoEY29kZRgBIAEoCRINCgVzdGF0ZRgCIAEoCSJ7ChRUb2tlbkV4Y2hhbmdlUmVxdWVzdBIRCgljbGllbnRfaWQYASABKAkSDAoEY29kZRgCIAEoCRIUCgxyZWRpcmVjdF91cmkYAyABKAkSGgoNY29kZV92ZXJpZmllchgEIAEoCUgAiAEBQhAKDl9jb2RlX3ZlcmlmaWVyInoKEU9pZGNUb2tlblJlc3BvbnNlEhQKDGFjY2Vzc190b2tlbhgBIAEoCRIQCghpZF90b2tlbhgCIAEoCRISCgp0b2tlbl90eXBlGAMgASgJEhIKCmV4cGlyZXNfaW4YBCABKAMSFQoNcmVmcmVzaF90b2tlbhgFIAEoCSLYAQoVUmVnaXN0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3JlZGVudGlhbHNSZXF1ZXN0Gi0uaGVhcnRoLmlkZW50aXR5LnYxLkNsaWVudENyZWRlbnRpYWxzUmVzcG9uc2USgQEKDlJlZ2lzdGVyQ2xpZW50EikuaGVhcnRoLmlkZW50aXR5LnYxLlJlZ2lzdGVyQ2xpZW50UmVxdWVzdBofLmhlYXJ0aC5pZGVudGl0eS52MS5PQXV0aENsaWVudCIjgtPkkwIdOgEqWg06ASoiCC9jbGllbnRzIgkvcmVnaXN0ZXISegoGRGVjaWRlEiguaGVhcnRoLmlkZW50aXR5LnYxLlRva2VuRGVjaXNpb25SZXF1ZXN0GikuaGVhcnRoLmlkZW50aXR5LnYxLlRva2VuRGVjaXNpb25SZXNwb25zZSIbgtPkkwIVOgEqIhAvb2F1dGgvYXV0aG9yaXplQkVaQ2dpdGh1Yi5jb20vaGVhcnRoZGIvaGVhcnRoL3Nka3MvZ28vZ2VuZXJhdGVkL2lkZW50aXR5L3YxO2lkZW50aXR5djFiBnByb3RvMw", [file_google_api_annotations]);
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Request to initiate an OAuth 2.0 authorization.
|
|
18
|
-
*
|
|
19
|
-
* @generated from message hearth.identity.v1.AuthorizationRequest
|
|
20
|
-
*/
|
|
21
|
-
export type AuthorizationRequest = Message<"hearth.identity.v1.AuthorizationRequest"> & {
|
|
22
|
-
/**
|
|
23
|
-
* @generated from field: string client_id = 1;
|
|
24
|
-
*/
|
|
25
|
-
clientId: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @generated from field: string redirect_uri = 2;
|
|
29
|
-
*/
|
|
30
|
-
redirectUri: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @generated from field: string scope = 3;
|
|
34
|
-
*/
|
|
35
|
-
scope: string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @generated from field: string state = 4;
|
|
39
|
-
*/
|
|
40
|
-
state: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @generated from field: string response_type = 5;
|
|
44
|
-
*/
|
|
45
|
-
responseType: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @generated from field: string user_id = 6;
|
|
49
|
-
*/
|
|
50
|
-
userId: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @generated from field: optional string code_challenge = 7;
|
|
54
|
-
*/
|
|
55
|
-
codeChallenge?: string | undefined;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @generated from field: optional string code_challenge_method = 8;
|
|
59
|
-
*/
|
|
60
|
-
codeChallengeMethod?: string | undefined;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @generated from field: optional string nonce = 9;
|
|
64
|
-
*/
|
|
65
|
-
nonce?: string | undefined;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* PAR request_uri (RFC 9126). When set, the server expands the stored
|
|
69
|
-
* pushed authorization parameters and treats this as a PAR-backed request
|
|
70
|
-
* (via_par = true). Other authorization fields are ignored when this is set.
|
|
71
|
-
*
|
|
72
|
-
* @generated from field: optional string request_uri = 10;
|
|
73
|
-
*/
|
|
74
|
-
requestUri?: string | undefined;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Describes the message hearth.identity.v1.AuthorizationRequest.
|
|
79
|
-
* Use `create(AuthorizationRequestSchema)` to create a new message.
|
|
80
|
-
*/
|
|
81
|
-
export const AuthorizationRequestSchema: GenMessage<AuthorizationRequest> = /*@__PURE__*/
|
|
82
|
-
messageDesc(file_hearth_identity_v1_oauth, 0);
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Response from a successful authorization request.
|
|
86
|
-
*
|
|
87
|
-
* @generated from message hearth.identity.v1.AuthorizationResponse
|
|
88
|
-
*/
|
|
89
|
-
export type AuthorizationResponse = Message<"hearth.identity.v1.AuthorizationResponse"> & {
|
|
90
|
-
/**
|
|
91
|
-
* @generated from field: string code = 1;
|
|
92
|
-
*/
|
|
93
|
-
code: string;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @generated from field: string state = 2;
|
|
97
|
-
*/
|
|
98
|
-
state: string;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Describes the message hearth.identity.v1.AuthorizationResponse.
|
|
103
|
-
* Use `create(AuthorizationResponseSchema)` to create a new message.
|
|
104
|
-
*/
|
|
105
|
-
export const AuthorizationResponseSchema: GenMessage<AuthorizationResponse> = /*@__PURE__*/
|
|
106
|
-
messageDesc(file_hearth_identity_v1_oauth, 1);
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Request to exchange an authorization code for tokens.
|
|
110
|
-
*
|
|
111
|
-
* @generated from message hearth.identity.v1.TokenExchangeRequest
|
|
112
|
-
*/
|
|
113
|
-
export type TokenExchangeRequest = Message<"hearth.identity.v1.TokenExchangeRequest"> & {
|
|
114
|
-
/**
|
|
115
|
-
* @generated from field: string client_id = 1;
|
|
116
|
-
*/
|
|
117
|
-
clientId: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @generated from field: string code = 2;
|
|
121
|
-
*/
|
|
122
|
-
code: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @generated from field: string redirect_uri = 3;
|
|
126
|
-
*/
|
|
127
|
-
redirectUri: string;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @generated from field: optional string code_verifier = 4;
|
|
131
|
-
*/
|
|
132
|
-
codeVerifier?: string | undefined;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Describes the message hearth.identity.v1.TokenExchangeRequest.
|
|
137
|
-
* Use `create(TokenExchangeRequestSchema)` to create a new message.
|
|
138
|
-
*/
|
|
139
|
-
export const TokenExchangeRequestSchema: GenMessage<TokenExchangeRequest> = /*@__PURE__*/
|
|
140
|
-
messageDesc(file_hearth_identity_v1_oauth, 2);
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Response from a successful token exchange.
|
|
144
|
-
*
|
|
145
|
-
* @generated from message hearth.identity.v1.OidcTokenResponse
|
|
146
|
-
*/
|
|
147
|
-
export type OidcTokenResponse = Message<"hearth.identity.v1.OidcTokenResponse"> & {
|
|
148
|
-
/**
|
|
149
|
-
* @generated from field: string access_token = 1;
|
|
150
|
-
*/
|
|
151
|
-
accessToken: string;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @generated from field: string id_token = 2;
|
|
155
|
-
*/
|
|
156
|
-
idToken: string;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @generated from field: string token_type = 3;
|
|
160
|
-
*/
|
|
161
|
-
tokenType: string;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* @generated from field: int64 expires_in = 4;
|
|
165
|
-
*/
|
|
166
|
-
expiresIn: bigint;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* @generated from field: string refresh_token = 5;
|
|
170
|
-
*/
|
|
171
|
-
refreshToken: string;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Describes the message hearth.identity.v1.OidcTokenResponse.
|
|
176
|
-
* Use `create(OidcTokenResponseSchema)` to create a new message.
|
|
177
|
-
*/
|
|
178
|
-
export const OidcTokenResponseSchema: GenMessage<OidcTokenResponse> = /*@__PURE__*/
|
|
179
|
-
messageDesc(file_hearth_identity_v1_oauth, 3);
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Request to register a new OAuth 2.0 client.
|
|
183
|
-
*
|
|
184
|
-
* @generated from message hearth.identity.v1.RegisterClientRequest
|
|
185
|
-
*/
|
|
186
|
-
export type RegisterClientRequest = Message<"hearth.identity.v1.RegisterClientRequest"> & {
|
|
187
|
-
/**
|
|
188
|
-
* @generated from field: string client_name = 1;
|
|
189
|
-
*/
|
|
190
|
-
clientName: string;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @generated from field: repeated string redirect_uris = 2;
|
|
194
|
-
*/
|
|
195
|
-
redirectUris: string[];
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* @generated from field: optional string client_secret = 3;
|
|
199
|
-
*/
|
|
200
|
-
clientSecret?: string | undefined;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* @generated from field: repeated string grant_types = 4;
|
|
204
|
-
*/
|
|
205
|
-
grantTypes: string[];
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* @generated from field: hearth.identity.v1.AccessTokenAuthorization access_token_authorization = 5;
|
|
209
|
-
*/
|
|
210
|
-
accessTokenAuthorization: AccessTokenAuthorization;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Describes the message hearth.identity.v1.RegisterClientRequest.
|
|
215
|
-
* Use `create(RegisterClientRequestSchema)` to create a new message.
|
|
216
|
-
*/
|
|
217
|
-
export const RegisterClientRequestSchema: GenMessage<RegisterClientRequest> = /*@__PURE__*/
|
|
218
|
-
messageDesc(file_hearth_identity_v1_oauth, 4);
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Request to update an existing OAuth 2.0 client.
|
|
222
|
-
*
|
|
223
|
-
* @generated from message hearth.identity.v1.UpdateClientRequest
|
|
224
|
-
*/
|
|
225
|
-
export type UpdateClientRequest = Message<"hearth.identity.v1.UpdateClientRequest"> & {
|
|
226
|
-
/**
|
|
227
|
-
* @generated from field: optional string client_name = 1;
|
|
228
|
-
*/
|
|
229
|
-
clientName?: string | undefined;
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* @generated from field: repeated string redirect_uris = 2;
|
|
233
|
-
*/
|
|
234
|
-
redirectUris: string[];
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* @generated from field: repeated string grant_types = 3;
|
|
238
|
-
*/
|
|
239
|
-
grantTypes: string[];
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @generated from field: optional hearth.identity.v1.AccessTokenAuthorization access_token_authorization = 4;
|
|
243
|
-
*/
|
|
244
|
-
accessTokenAuthorization?: AccessTokenAuthorization | undefined;
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Describes the message hearth.identity.v1.UpdateClientRequest.
|
|
249
|
-
* Use `create(UpdateClientRequestSchema)` to create a new message.
|
|
250
|
-
*/
|
|
251
|
-
export const UpdateClientRequestSchema: GenMessage<UpdateClientRequest> = /*@__PURE__*/
|
|
252
|
-
messageDesc(file_hearth_identity_v1_oauth, 5);
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* A registered OAuth 2.0 client.
|
|
256
|
-
*
|
|
257
|
-
* @generated from message hearth.identity.v1.OAuthClient
|
|
258
|
-
*/
|
|
259
|
-
export type OAuthClient = Message<"hearth.identity.v1.OAuthClient"> & {
|
|
260
|
-
/**
|
|
261
|
-
* @generated from field: string client_id = 1;
|
|
262
|
-
*/
|
|
263
|
-
clientId: string;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* @generated from field: string client_name = 2;
|
|
267
|
-
*/
|
|
268
|
-
clientName: string;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* @generated from field: repeated string redirect_uris = 3;
|
|
272
|
-
*/
|
|
273
|
-
redirectUris: string[];
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* @generated from field: int64 created_at = 4;
|
|
277
|
-
*/
|
|
278
|
-
createdAt: bigint;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* @generated from field: bool is_confidential = 5;
|
|
282
|
-
*/
|
|
283
|
-
isConfidential: boolean;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* @generated from field: repeated string grant_types = 6;
|
|
287
|
-
*/
|
|
288
|
-
grantTypes: string[];
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @generated from field: hearth.identity.v1.AccessTokenAuthorization access_token_authorization = 7;
|
|
292
|
-
*/
|
|
293
|
-
accessTokenAuthorization: AccessTokenAuthorization;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Describes the message hearth.identity.v1.OAuthClient.
|
|
298
|
-
* Use `create(OAuthClientSchema)` to create a new message.
|
|
299
|
-
*/
|
|
300
|
-
export const OAuthClientSchema: GenMessage<OAuthClient> = /*@__PURE__*/
|
|
301
|
-
messageDesc(file_hearth_identity_v1_oauth, 6);
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* A cursor-based page of OAuth clients.
|
|
305
|
-
*
|
|
306
|
-
* @generated from message hearth.identity.v1.OAuthClientPage
|
|
307
|
-
*/
|
|
308
|
-
export type OAuthClientPage = Message<"hearth.identity.v1.OAuthClientPage"> & {
|
|
309
|
-
/**
|
|
310
|
-
* @generated from field: repeated hearth.identity.v1.OAuthClient items = 1;
|
|
311
|
-
*/
|
|
312
|
-
items: OAuthClient[];
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @generated from field: optional string next_cursor = 2;
|
|
316
|
-
*/
|
|
317
|
-
nextCursor?: string | undefined;
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Describes the message hearth.identity.v1.OAuthClientPage.
|
|
322
|
-
* Use `create(OAuthClientPageSchema)` to create a new message.
|
|
323
|
-
*/
|
|
324
|
-
export const OAuthClientPageSchema: GenMessage<OAuthClientPage> = /*@__PURE__*/
|
|
325
|
-
messageDesc(file_hearth_identity_v1_oauth, 7);
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Request for the Client Credentials Grant (RFC 6749 s4.4).
|
|
329
|
-
*
|
|
330
|
-
* @generated from message hearth.identity.v1.ClientCredentialsRequest
|
|
331
|
-
*/
|
|
332
|
-
export type ClientCredentialsRequest = Message<"hearth.identity.v1.ClientCredentialsRequest"> & {
|
|
333
|
-
/**
|
|
334
|
-
* @generated from field: string client_id = 1;
|
|
335
|
-
*/
|
|
336
|
-
clientId: string;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* @generated from field: string client_secret = 2;
|
|
340
|
-
*/
|
|
341
|
-
clientSecret: string;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @generated from field: optional string scope = 3;
|
|
345
|
-
*/
|
|
346
|
-
scope?: string | undefined;
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Describes the message hearth.identity.v1.ClientCredentialsRequest.
|
|
351
|
-
* Use `create(ClientCredentialsRequestSchema)` to create a new message.
|
|
352
|
-
*/
|
|
353
|
-
export const ClientCredentialsRequestSchema: GenMessage<ClientCredentialsRequest> = /*@__PURE__*/
|
|
354
|
-
messageDesc(file_hearth_identity_v1_oauth, 8);
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Response from a client credentials grant.
|
|
358
|
-
*
|
|
359
|
-
* @generated from message hearth.identity.v1.ClientCredentialsResponse
|
|
360
|
-
*/
|
|
361
|
-
export type ClientCredentialsResponse = Message<"hearth.identity.v1.ClientCredentialsResponse"> & {
|
|
362
|
-
/**
|
|
363
|
-
* @generated from field: string access_token = 1;
|
|
364
|
-
*/
|
|
365
|
-
accessToken: string;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* @generated from field: string token_type = 2;
|
|
369
|
-
*/
|
|
370
|
-
tokenType: string;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* @generated from field: int64 expires_in = 3;
|
|
374
|
-
*/
|
|
375
|
-
expiresIn: bigint;
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* @generated from field: optional string scope = 4;
|
|
379
|
-
*/
|
|
380
|
-
scope?: string | undefined;
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Describes the message hearth.identity.v1.ClientCredentialsResponse.
|
|
385
|
-
* Use `create(ClientCredentialsResponseSchema)` to create a new message.
|
|
386
|
-
*/
|
|
387
|
-
export const ClientCredentialsResponseSchema: GenMessage<ClientCredentialsResponse> = /*@__PURE__*/
|
|
388
|
-
messageDesc(file_hearth_identity_v1_oauth, 9);
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Request for the Device Authorization Grant (RFC 8628).
|
|
392
|
-
*
|
|
393
|
-
* @generated from message hearth.identity.v1.DeviceAuthorizationRequest
|
|
394
|
-
*/
|
|
395
|
-
export type DeviceAuthorizationRequest = Message<"hearth.identity.v1.DeviceAuthorizationRequest"> & {
|
|
396
|
-
/**
|
|
397
|
-
* @generated from field: string client_id = 1;
|
|
398
|
-
*/
|
|
399
|
-
clientId: string;
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* @generated from field: optional string scope = 2;
|
|
403
|
-
*/
|
|
404
|
-
scope?: string | undefined;
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* Describes the message hearth.identity.v1.DeviceAuthorizationRequest.
|
|
409
|
-
* Use `create(DeviceAuthorizationRequestSchema)` to create a new message.
|
|
410
|
-
*/
|
|
411
|
-
export const DeviceAuthorizationRequestSchema: GenMessage<DeviceAuthorizationRequest> = /*@__PURE__*/
|
|
412
|
-
messageDesc(file_hearth_identity_v1_oauth, 10);
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Response from a device authorization request (RFC 8628 s3.2).
|
|
416
|
-
*
|
|
417
|
-
* @generated from message hearth.identity.v1.DeviceAuthorizationResponse
|
|
418
|
-
*/
|
|
419
|
-
export type DeviceAuthorizationResponse = Message<"hearth.identity.v1.DeviceAuthorizationResponse"> & {
|
|
420
|
-
/**
|
|
421
|
-
* @generated from field: string device_code = 1;
|
|
422
|
-
*/
|
|
423
|
-
deviceCode: string;
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* @generated from field: string user_code = 2;
|
|
427
|
-
*/
|
|
428
|
-
userCode: string;
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* @generated from field: string verification_uri = 3;
|
|
432
|
-
*/
|
|
433
|
-
verificationUri: string;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* @generated from field: int64 expires_in = 4;
|
|
437
|
-
*/
|
|
438
|
-
expiresIn: bigint;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* @generated from field: int64 interval = 5;
|
|
442
|
-
*/
|
|
443
|
-
interval: bigint;
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* Describes the message hearth.identity.v1.DeviceAuthorizationResponse.
|
|
448
|
-
* Use `create(DeviceAuthorizationResponseSchema)` to create a new message.
|
|
449
|
-
*/
|
|
450
|
-
export const DeviceAuthorizationResponseSchema: GenMessage<DeviceAuthorizationResponse> = /*@__PURE__*/
|
|
451
|
-
messageDesc(file_hearth_identity_v1_oauth, 11);
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Request to revoke an OAuth 2.0 token (RFC 7009).
|
|
455
|
-
*
|
|
456
|
-
* @generated from message hearth.identity.v1.TokenRevocationRequest
|
|
457
|
-
*/
|
|
458
|
-
export type TokenRevocationRequest = Message<"hearth.identity.v1.TokenRevocationRequest"> & {
|
|
459
|
-
/**
|
|
460
|
-
* @generated from field: string token = 1;
|
|
461
|
-
*/
|
|
462
|
-
token: string;
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* @generated from field: optional string token_type_hint = 2;
|
|
466
|
-
*/
|
|
467
|
-
tokenTypeHint?: string | undefined;
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Describes the message hearth.identity.v1.TokenRevocationRequest.
|
|
472
|
-
* Use `create(TokenRevocationRequestSchema)` to create a new message.
|
|
473
|
-
*/
|
|
474
|
-
export const TokenRevocationRequestSchema: GenMessage<TokenRevocationRequest> = /*@__PURE__*/
|
|
475
|
-
messageDesc(file_hearth_identity_v1_oauth, 12);
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Request for token introspection (RFC 7662).
|
|
479
|
-
*
|
|
480
|
-
* @generated from message hearth.identity.v1.TokenIntrospectionRequest
|
|
481
|
-
*/
|
|
482
|
-
export type TokenIntrospectionRequest = Message<"hearth.identity.v1.TokenIntrospectionRequest"> & {
|
|
483
|
-
/**
|
|
484
|
-
* @generated from field: string token = 1;
|
|
485
|
-
*/
|
|
486
|
-
token: string;
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* @generated from field: optional string token_type_hint = 2;
|
|
490
|
-
*/
|
|
491
|
-
tokenTypeHint?: string | undefined;
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Describes the message hearth.identity.v1.TokenIntrospectionRequest.
|
|
496
|
-
* Use `create(TokenIntrospectionRequestSchema)` to create a new message.
|
|
497
|
-
*/
|
|
498
|
-
export const TokenIntrospectionRequestSchema: GenMessage<TokenIntrospectionRequest> = /*@__PURE__*/
|
|
499
|
-
messageDesc(file_hearth_identity_v1_oauth, 13);
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Response from token introspection (RFC 7662).
|
|
503
|
-
*
|
|
504
|
-
* @generated from message hearth.identity.v1.IntrospectionResponse
|
|
505
|
-
*/
|
|
506
|
-
export type IntrospectionResponse = Message<"hearth.identity.v1.IntrospectionResponse"> & {
|
|
507
|
-
/**
|
|
508
|
-
* @generated from field: bool active = 1;
|
|
509
|
-
*/
|
|
510
|
-
active: boolean;
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* @generated from field: optional string scope = 2;
|
|
514
|
-
*/
|
|
515
|
-
scope?: string | undefined;
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* @generated from field: optional string client_id = 3;
|
|
519
|
-
*/
|
|
520
|
-
clientId?: string | undefined;
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* @generated from field: optional string sub = 4;
|
|
524
|
-
*/
|
|
525
|
-
sub?: string | undefined;
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* @generated from field: optional int64 exp = 5;
|
|
529
|
-
*/
|
|
530
|
-
exp?: bigint | undefined;
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* @generated from field: optional int64 iat = 6;
|
|
534
|
-
*/
|
|
535
|
-
iat?: bigint | undefined;
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* @generated from field: optional string token_type = 7;
|
|
539
|
-
*/
|
|
540
|
-
tokenType?: string | undefined;
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* @generated from field: optional string iss = 8;
|
|
544
|
-
*/
|
|
545
|
-
iss?: string | undefined;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* @generated from field: optional string aud = 9;
|
|
549
|
-
*/
|
|
550
|
-
aud?: string | undefined;
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* @generated from field: optional hearth.identity.v1.AccessTokenAuthorization mode = 10;
|
|
554
|
-
*/
|
|
555
|
-
mode?: AccessTokenAuthorization | undefined;
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* @generated from field: repeated string permissions = 11;
|
|
559
|
-
*/
|
|
560
|
-
permissions: string[];
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* @generated from field: repeated string roles = 12;
|
|
564
|
-
*/
|
|
565
|
-
roles: string[];
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* @generated from field: repeated string groups = 13;
|
|
569
|
-
*/
|
|
570
|
-
groups: string[];
|
|
571
|
-
};
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* Describes the message hearth.identity.v1.IntrospectionResponse.
|
|
575
|
-
* Use `create(IntrospectionResponseSchema)` to create a new message.
|
|
576
|
-
*/
|
|
577
|
-
export const IntrospectionResponseSchema: GenMessage<IntrospectionResponse> = /*@__PURE__*/
|
|
578
|
-
messageDesc(file_hearth_identity_v1_oauth, 14);
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* Request for the per-request permission decision endpoint (HEA-922).
|
|
582
|
-
*
|
|
583
|
-
* @generated from message hearth.identity.v1.TokenDecisionRequest
|
|
584
|
-
*/
|
|
585
|
-
export type TokenDecisionRequest = Message<"hearth.identity.v1.TokenDecisionRequest"> & {
|
|
586
|
-
/**
|
|
587
|
-
* @generated from field: string permission = 1;
|
|
588
|
-
*/
|
|
589
|
-
permission: string;
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
* @generated from field: optional string organization_id = 2;
|
|
593
|
-
*/
|
|
594
|
-
organizationId?: string | undefined;
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* @generated from field: optional string resource = 3;
|
|
598
|
-
*/
|
|
599
|
-
resource?: string | undefined;
|
|
600
|
-
};
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
* Describes the message hearth.identity.v1.TokenDecisionRequest.
|
|
604
|
-
* Use `create(TokenDecisionRequestSchema)` to create a new message.
|
|
605
|
-
*/
|
|
606
|
-
export const TokenDecisionRequestSchema: GenMessage<TokenDecisionRequest> = /*@__PURE__*/
|
|
607
|
-
messageDesc(file_hearth_identity_v1_oauth, 15);
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Response from the decision endpoint.
|
|
611
|
-
*
|
|
612
|
-
* @generated from message hearth.identity.v1.TokenDecisionResponse
|
|
613
|
-
*/
|
|
614
|
-
export type TokenDecisionResponse = Message<"hearth.identity.v1.TokenDecisionResponse"> & {
|
|
615
|
-
/**
|
|
616
|
-
* @generated from field: bool allowed = 1;
|
|
617
|
-
*/
|
|
618
|
-
allowed: boolean;
|
|
619
|
-
};
|
|
620
|
-
|
|
621
|
-
/**
|
|
622
|
-
* Describes the message hearth.identity.v1.TokenDecisionResponse.
|
|
623
|
-
* Use `create(TokenDecisionResponseSchema)` to create a new message.
|
|
624
|
-
*/
|
|
625
|
-
export const TokenDecisionResponseSchema: GenMessage<TokenDecisionResponse> = /*@__PURE__*/
|
|
626
|
-
messageDesc(file_hearth_identity_v1_oauth, 16);
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Response from the UserInfo endpoint (OIDC Core s5.3).
|
|
630
|
-
*
|
|
631
|
-
* @generated from message hearth.identity.v1.UserInfoResponse
|
|
632
|
-
*/
|
|
633
|
-
export type UserInfoResponse = Message<"hearth.identity.v1.UserInfoResponse"> & {
|
|
634
|
-
/**
|
|
635
|
-
* @generated from field: string sub = 1;
|
|
636
|
-
*/
|
|
637
|
-
sub: string;
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* @generated from field: optional string email = 2;
|
|
641
|
-
*/
|
|
642
|
-
email?: string | undefined;
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* @generated from field: optional bool email_verified = 3;
|
|
646
|
-
*/
|
|
647
|
-
emailVerified?: boolean | undefined;
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* @generated from field: optional string name = 4;
|
|
651
|
-
*/
|
|
652
|
-
name?: string | undefined;
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* Describes the message hearth.identity.v1.UserInfoResponse.
|
|
657
|
-
* Use `create(UserInfoResponseSchema)` to create a new message.
|
|
658
|
-
*/
|
|
659
|
-
export const UserInfoResponseSchema: GenMessage<UserInfoResponse> = /*@__PURE__*/
|
|
660
|
-
messageDesc(file_hearth_identity_v1_oauth, 17);
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* OIDC Discovery document (OpenID Connect Discovery 1.0).
|
|
664
|
-
*
|
|
665
|
-
* @generated from message hearth.identity.v1.OidcDiscoveryDocument
|
|
666
|
-
*/
|
|
667
|
-
export type OidcDiscoveryDocument = Message<"hearth.identity.v1.OidcDiscoveryDocument"> & {
|
|
668
|
-
/**
|
|
669
|
-
* @generated from field: string issuer = 1;
|
|
670
|
-
*/
|
|
671
|
-
issuer: string;
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* @generated from field: string authorization_endpoint = 2;
|
|
675
|
-
*/
|
|
676
|
-
authorizationEndpoint: string;
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* @generated from field: string token_endpoint = 3;
|
|
680
|
-
*/
|
|
681
|
-
tokenEndpoint: string;
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* @generated from field: string jwks_uri = 4;
|
|
685
|
-
*/
|
|
686
|
-
jwksUri: string;
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* @generated from field: string userinfo_endpoint = 5;
|
|
690
|
-
*/
|
|
691
|
-
userinfoEndpoint: string;
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* @generated from field: repeated string response_types_supported = 6;
|
|
695
|
-
*/
|
|
696
|
-
responseTypesSupported: string[];
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* @generated from field: repeated string response_modes_supported = 7;
|
|
700
|
-
*/
|
|
701
|
-
responseModesSupported: string[];
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* @generated from field: repeated string subject_types_supported = 8;
|
|
705
|
-
*/
|
|
706
|
-
subjectTypesSupported: string[];
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* @generated from field: repeated string id_token_signing_alg_values_supported = 9;
|
|
710
|
-
*/
|
|
711
|
-
idTokenSigningAlgValuesSupported: string[];
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* @generated from field: repeated string scopes_supported = 10;
|
|
715
|
-
*/
|
|
716
|
-
scopesSupported: string[];
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* @generated from field: repeated string claims_supported = 11;
|
|
720
|
-
*/
|
|
721
|
-
claimsSupported: string[];
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* @generated from field: repeated string token_endpoint_auth_methods_supported = 12;
|
|
725
|
-
*/
|
|
726
|
-
tokenEndpointAuthMethodsSupported: string[];
|
|
727
|
-
|
|
728
|
-
/**
|
|
729
|
-
* @generated from field: repeated string code_challenge_methods_supported = 13;
|
|
730
|
-
*/
|
|
731
|
-
codeChallengeMethodsSupported: string[];
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* @generated from field: repeated string grant_types_supported = 14;
|
|
735
|
-
*/
|
|
736
|
-
grantTypesSupported: string[];
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* @generated from field: optional string registration_endpoint = 15;
|
|
740
|
-
*/
|
|
741
|
-
registrationEndpoint?: string | undefined;
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* @generated from field: optional string device_authorization_endpoint = 16;
|
|
745
|
-
*/
|
|
746
|
-
deviceAuthorizationEndpoint?: string | undefined;
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* @generated from field: optional string revocation_endpoint = 17;
|
|
750
|
-
*/
|
|
751
|
-
revocationEndpoint?: string | undefined;
|
|
752
|
-
|
|
753
|
-
/**
|
|
754
|
-
* @generated from field: optional string introspection_endpoint = 18;
|
|
755
|
-
*/
|
|
756
|
-
introspectionEndpoint?: string | undefined;
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* Describes the message hearth.identity.v1.OidcDiscoveryDocument.
|
|
761
|
-
* Use `create(OidcDiscoveryDocumentSchema)` to create a new message.
|
|
762
|
-
*/
|
|
763
|
-
export const OidcDiscoveryDocumentSchema: GenMessage<OidcDiscoveryDocument> = /*@__PURE__*/
|
|
764
|
-
messageDesc(file_hearth_identity_v1_oauth, 18);
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* A JSON Web Key.
|
|
768
|
-
*
|
|
769
|
-
* @generated from message hearth.identity.v1.JsonWebKey
|
|
770
|
-
*/
|
|
771
|
-
export type JsonWebKey = Message<"hearth.identity.v1.JsonWebKey"> & {
|
|
772
|
-
/**
|
|
773
|
-
* @generated from field: string kty = 1;
|
|
774
|
-
*/
|
|
775
|
-
kty: string;
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* @generated from field: string crv = 2;
|
|
779
|
-
*/
|
|
780
|
-
crv: string;
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* @generated from field: string x = 3;
|
|
784
|
-
*/
|
|
785
|
-
x: string;
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* @generated from field: string kid = 4;
|
|
789
|
-
*/
|
|
790
|
-
kid: string;
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* Always "sig".
|
|
794
|
-
*
|
|
795
|
-
* @generated from field: string use = 5;
|
|
796
|
-
*/
|
|
797
|
-
use: string;
|
|
798
|
-
|
|
799
|
-
/**
|
|
800
|
-
* Always "EdDSA".
|
|
801
|
-
*
|
|
802
|
-
* @generated from field: string alg = 6;
|
|
803
|
-
*/
|
|
804
|
-
alg: string;
|
|
805
|
-
};
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* Describes the message hearth.identity.v1.JsonWebKey.
|
|
809
|
-
* Use `create(JsonWebKeySchema)` to create a new message.
|
|
810
|
-
*/
|
|
811
|
-
export const JsonWebKeySchema: GenMessage<JsonWebKey> = /*@__PURE__*/
|
|
812
|
-
messageDesc(file_hearth_identity_v1_oauth, 19);
|
|
813
|
-
|
|
814
|
-
/**
|
|
815
|
-
* A JWKS document.
|
|
816
|
-
*
|
|
817
|
-
* @generated from message hearth.identity.v1.JwksDocument
|
|
818
|
-
*/
|
|
819
|
-
export type JwksDocument = Message<"hearth.identity.v1.JwksDocument"> & {
|
|
820
|
-
/**
|
|
821
|
-
* @generated from field: repeated hearth.identity.v1.JsonWebKey keys = 1;
|
|
822
|
-
*/
|
|
823
|
-
keys: JsonWebKey[];
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* Describes the message hearth.identity.v1.JwksDocument.
|
|
828
|
-
* Use `create(JwksDocumentSchema)` to create a new message.
|
|
829
|
-
*/
|
|
830
|
-
export const JwksDocumentSchema: GenMessage<JwksDocument> = /*@__PURE__*/
|
|
831
|
-
messageDesc(file_hearth_identity_v1_oauth, 20);
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* Response from the dev bootstrap endpoint.
|
|
835
|
-
*
|
|
836
|
-
* @generated from message hearth.identity.v1.BootstrapResponse
|
|
837
|
-
*/
|
|
838
|
-
export type BootstrapResponse = Message<"hearth.identity.v1.BootstrapResponse"> & {
|
|
839
|
-
/**
|
|
840
|
-
* @generated from field: string realm_id = 1;
|
|
841
|
-
*/
|
|
842
|
-
realmId: string;
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* @generated from field: string user_id = 2;
|
|
846
|
-
*/
|
|
847
|
-
userId: string;
|
|
848
|
-
|
|
849
|
-
/**
|
|
850
|
-
* @generated from field: string access_token = 3;
|
|
851
|
-
*/
|
|
852
|
-
accessToken: string;
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* @generated from field: string refresh_token = 4;
|
|
856
|
-
*/
|
|
857
|
-
refreshToken: string;
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
* Ready-to-copy shell commands with actual realm_id and token interpolated.
|
|
861
|
-
* Only populated in --dev mode.
|
|
862
|
-
*
|
|
863
|
-
* @generated from field: string quickstart = 5;
|
|
864
|
-
*/
|
|
865
|
-
quickstart: string;
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* Describes the message hearth.identity.v1.BootstrapResponse.
|
|
870
|
-
* Use `create(BootstrapResponseSchema)` to create a new message.
|
|
871
|
-
*/
|
|
872
|
-
export const BootstrapResponseSchema: GenMessage<BootstrapResponse> = /*@__PURE__*/
|
|
873
|
-
messageDesc(file_hearth_identity_v1_oauth, 21);
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* @generated from message hearth.identity.v1.ListApplicationsRequest
|
|
877
|
-
*/
|
|
878
|
-
export type ListApplicationsRequest = Message<"hearth.identity.v1.ListApplicationsRequest"> & {
|
|
879
|
-
/**
|
|
880
|
-
* @generated from field: optional string cursor = 1;
|
|
881
|
-
*/
|
|
882
|
-
cursor?: string | undefined;
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* @generated from field: optional uint32 limit = 2;
|
|
886
|
-
*/
|
|
887
|
-
limit?: number | undefined;
|
|
888
|
-
};
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* Describes the message hearth.identity.v1.ListApplicationsRequest.
|
|
892
|
-
* Use `create(ListApplicationsRequestSchema)` to create a new message.
|
|
893
|
-
*/
|
|
894
|
-
export const ListApplicationsRequestSchema: GenMessage<ListApplicationsRequest> = /*@__PURE__*/
|
|
895
|
-
messageDesc(file_hearth_identity_v1_oauth, 22);
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* @generated from message hearth.identity.v1.GetApplicationRequest
|
|
899
|
-
*/
|
|
900
|
-
export type GetApplicationRequest = Message<"hearth.identity.v1.GetApplicationRequest"> & {
|
|
901
|
-
/**
|
|
902
|
-
* @generated from field: string client_id = 1;
|
|
903
|
-
*/
|
|
904
|
-
clientId: string;
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* Describes the message hearth.identity.v1.GetApplicationRequest.
|
|
909
|
-
* Use `create(GetApplicationRequestSchema)` to create a new message.
|
|
910
|
-
*/
|
|
911
|
-
export const GetApplicationRequestSchema: GenMessage<GetApplicationRequest> = /*@__PURE__*/
|
|
912
|
-
messageDesc(file_hearth_identity_v1_oauth, 23);
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
* @generated from message hearth.identity.v1.DeleteApplicationRequest
|
|
916
|
-
*/
|
|
917
|
-
export type DeleteApplicationRequest = Message<"hearth.identity.v1.DeleteApplicationRequest"> & {
|
|
918
|
-
/**
|
|
919
|
-
* @generated from field: string client_id = 1;
|
|
920
|
-
*/
|
|
921
|
-
clientId: string;
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* Describes the message hearth.identity.v1.DeleteApplicationRequest.
|
|
926
|
-
* Use `create(DeleteApplicationRequestSchema)` to create a new message.
|
|
927
|
-
*/
|
|
928
|
-
export const DeleteApplicationRequestSchema: GenMessage<DeleteApplicationRequest> = /*@__PURE__*/
|
|
929
|
-
messageDesc(file_hearth_identity_v1_oauth, 24);
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* @generated from message hearth.identity.v1.UpdateApplicationCall
|
|
933
|
-
*/
|
|
934
|
-
export type UpdateApplicationCall = Message<"hearth.identity.v1.UpdateApplicationCall"> & {
|
|
935
|
-
/**
|
|
936
|
-
* @generated from field: string client_id = 1;
|
|
937
|
-
*/
|
|
938
|
-
clientId: string;
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* @generated from field: hearth.identity.v1.UpdateClientRequest body = 2;
|
|
942
|
-
*/
|
|
943
|
-
body?: UpdateClientRequest | undefined;
|
|
944
|
-
};
|
|
945
|
-
|
|
946
|
-
/**
|
|
947
|
-
* Describes the message hearth.identity.v1.UpdateApplicationCall.
|
|
948
|
-
* Use `create(UpdateApplicationCallSchema)` to create a new message.
|
|
949
|
-
*/
|
|
950
|
-
export const UpdateApplicationCallSchema: GenMessage<UpdateApplicationCall> = /*@__PURE__*/
|
|
951
|
-
messageDesc(file_hearth_identity_v1_oauth, 25);
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* Empty response type for delete RPCs (local to oauth.proto to avoid
|
|
955
|
-
* cross-file service dependencies that complicate generated code).
|
|
956
|
-
*
|
|
957
|
-
* @generated from message hearth.identity.v1.OAuthEmpty
|
|
958
|
-
*/
|
|
959
|
-
export type OAuthEmpty = Message<"hearth.identity.v1.OAuthEmpty"> & {
|
|
960
|
-
};
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* Describes the message hearth.identity.v1.OAuthEmpty.
|
|
964
|
-
* Use `create(OAuthEmptySchema)` to create a new message.
|
|
965
|
-
*/
|
|
966
|
-
export const OAuthEmptySchema: GenMessage<OAuthEmpty> = /*@__PURE__*/
|
|
967
|
-
messageDesc(file_hearth_identity_v1_oauth, 26);
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Controls how access-token authorization data is exposed to resource servers.
|
|
971
|
-
*
|
|
972
|
-
* @generated from enum hearth.identity.v1.AccessTokenAuthorization
|
|
973
|
-
*/
|
|
974
|
-
export enum AccessTokenAuthorization {
|
|
975
|
-
/**
|
|
976
|
-
* Permissions, roles, and groups are embedded in the JWT at issuance (default).
|
|
977
|
-
*
|
|
978
|
-
* @generated from enum value: EMBEDDED = 0;
|
|
979
|
-
*/
|
|
980
|
-
EMBEDDED = 0,
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* JWT carries only identity claims; resource servers call /introspect.
|
|
984
|
-
*
|
|
985
|
-
* @generated from enum value: INTROSPECTION = 1;
|
|
986
|
-
*/
|
|
987
|
-
INTROSPECTION = 1,
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* JWT carries only identity claims; resource servers call POST /oauth/authorize.
|
|
991
|
-
*
|
|
992
|
-
* @generated from enum value: DECISION = 2;
|
|
993
|
-
*/
|
|
994
|
-
DECISION = 2,
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* Describes the enum hearth.identity.v1.AccessTokenAuthorization.
|
|
999
|
-
*/
|
|
1000
|
-
export const AccessTokenAuthorizationSchema: GenEnum<AccessTokenAuthorization> = /*@__PURE__*/
|
|
1001
|
-
enumDesc(file_hearth_identity_v1_oauth, 0);
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* Application admin service — separated from IdentityAdminService so the
|
|
1005
|
-
* generated code stays within a single proto file. Both share the admin
|
|
1006
|
-
* interceptor.
|
|
1007
|
-
*
|
|
1008
|
-
* @generated from service hearth.identity.v1.ApplicationAdminService
|
|
1009
|
-
*/
|
|
1010
|
-
export const ApplicationAdminService: GenService<{
|
|
1011
|
-
/**
|
|
1012
|
-
* @generated from rpc hearth.identity.v1.ApplicationAdminService.ListApplications
|
|
1013
|
-
*/
|
|
1014
|
-
listApplications: {
|
|
1015
|
-
methodKind: "unary";
|
|
1016
|
-
input: typeof ListApplicationsRequestSchema;
|
|
1017
|
-
output: typeof OAuthClientPageSchema;
|
|
1018
|
-
},
|
|
1019
|
-
/**
|
|
1020
|
-
* @generated from rpc hearth.identity.v1.ApplicationAdminService.GetApplication
|
|
1021
|
-
*/
|
|
1022
|
-
getApplication: {
|
|
1023
|
-
methodKind: "unary";
|
|
1024
|
-
input: typeof GetApplicationRequestSchema;
|
|
1025
|
-
output: typeof OAuthClientSchema;
|
|
1026
|
-
},
|
|
1027
|
-
/**
|
|
1028
|
-
* @generated from rpc hearth.identity.v1.ApplicationAdminService.CreateApplication
|
|
1029
|
-
*/
|
|
1030
|
-
createApplication: {
|
|
1031
|
-
methodKind: "unary";
|
|
1032
|
-
input: typeof RegisterClientRequestSchema;
|
|
1033
|
-
output: typeof OAuthClientSchema;
|
|
1034
|
-
},
|
|
1035
|
-
/**
|
|
1036
|
-
* @generated from rpc hearth.identity.v1.ApplicationAdminService.UpdateApplication
|
|
1037
|
-
*/
|
|
1038
|
-
updateApplication: {
|
|
1039
|
-
methodKind: "unary";
|
|
1040
|
-
input: typeof UpdateApplicationCallSchema;
|
|
1041
|
-
output: typeof OAuthClientSchema;
|
|
1042
|
-
},
|
|
1043
|
-
/**
|
|
1044
|
-
* @generated from rpc hearth.identity.v1.ApplicationAdminService.DeleteApplication
|
|
1045
|
-
*/
|
|
1046
|
-
deleteApplication: {
|
|
1047
|
-
methodKind: "unary";
|
|
1048
|
-
input: typeof DeleteApplicationRequestSchema;
|
|
1049
|
-
output: typeof OAuthEmptySchema;
|
|
1050
|
-
},
|
|
1051
|
-
}> = /*@__PURE__*/
|
|
1052
|
-
serviceDesc(file_hearth_identity_v1_oauth, 0);
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* @generated from service hearth.identity.v1.OAuthService
|
|
1056
|
-
*/
|
|
1057
|
-
export const OAuthService: GenService<{
|
|
1058
|
-
/**
|
|
1059
|
-
* @generated from rpc hearth.identity.v1.OAuthService.Authorize
|
|
1060
|
-
*/
|
|
1061
|
-
authorize: {
|
|
1062
|
-
methodKind: "unary";
|
|
1063
|
-
input: typeof AuthorizationRequestSchema;
|
|
1064
|
-
output: typeof AuthorizationResponseSchema;
|
|
1065
|
-
},
|
|
1066
|
-
/**
|
|
1067
|
-
* TokenExchange handles authorization_code and refresh_token grants.
|
|
1068
|
-
* ClientCredentials (client_credentials grant) maps to the same POST /token
|
|
1069
|
-
* endpoint via grant_type discriminator — see grpc-only.txt for the
|
|
1070
|
-
* ClientCredentials RPC.
|
|
1071
|
-
*
|
|
1072
|
-
* @generated from rpc hearth.identity.v1.OAuthService.TokenExchange
|
|
1073
|
-
*/
|
|
1074
|
-
tokenExchange: {
|
|
1075
|
-
methodKind: "unary";
|
|
1076
|
-
input: typeof TokenExchangeRequestSchema;
|
|
1077
|
-
output: typeof OidcTokenResponseSchema;
|
|
1078
|
-
},
|
|
1079
|
-
/**
|
|
1080
|
-
* @generated from rpc hearth.identity.v1.OAuthService.Revoke
|
|
1081
|
-
*/
|
|
1082
|
-
revoke: {
|
|
1083
|
-
methodKind: "unary";
|
|
1084
|
-
input: typeof TokenRevocationRequestSchema;
|
|
1085
|
-
output: typeof OAuthEmptySchema;
|
|
1086
|
-
},
|
|
1087
|
-
/**
|
|
1088
|
-
* @generated from rpc hearth.identity.v1.OAuthService.Introspect
|
|
1089
|
-
*/
|
|
1090
|
-
introspect: {
|
|
1091
|
-
methodKind: "unary";
|
|
1092
|
-
input: typeof TokenIntrospectionRequestSchema;
|
|
1093
|
-
output: typeof IntrospectionResponseSchema;
|
|
1094
|
-
},
|
|
1095
|
-
/**
|
|
1096
|
-
* @generated from rpc hearth.identity.v1.OAuthService.DeviceAuthorize
|
|
1097
|
-
*/
|
|
1098
|
-
deviceAuthorize: {
|
|
1099
|
-
methodKind: "unary";
|
|
1100
|
-
input: typeof DeviceAuthorizationRequestSchema;
|
|
1101
|
-
output: typeof DeviceAuthorizationResponseSchema;
|
|
1102
|
-
},
|
|
1103
|
-
/**
|
|
1104
|
-
* ClientCredentials maps to POST /token with grant_type=client_credentials.
|
|
1105
|
-
* Listed here for gRPC clients; the HTTP binding duplicates TokenExchange's
|
|
1106
|
-
* path intentionally — see grpc-only.txt.
|
|
1107
|
-
*
|
|
1108
|
-
* @generated from rpc hearth.identity.v1.OAuthService.ClientCredentials
|
|
1109
|
-
*/
|
|
1110
|
-
clientCredentials: {
|
|
1111
|
-
methodKind: "unary";
|
|
1112
|
-
input: typeof ClientCredentialsRequestSchema;
|
|
1113
|
-
output: typeof ClientCredentialsResponseSchema;
|
|
1114
|
-
},
|
|
1115
|
-
/**
|
|
1116
|
-
* Dynamic client registration (RFC 7591). Maps to POST /register (preferred)
|
|
1117
|
-
* and POST /clients (legacy).
|
|
1118
|
-
*
|
|
1119
|
-
* @generated from rpc hearth.identity.v1.OAuthService.RegisterClient
|
|
1120
|
-
*/
|
|
1121
|
-
registerClient: {
|
|
1122
|
-
methodKind: "unary";
|
|
1123
|
-
input: typeof RegisterClientRequestSchema;
|
|
1124
|
-
output: typeof OAuthClientSchema;
|
|
1125
|
-
},
|
|
1126
|
-
/**
|
|
1127
|
-
* Per-request permission decision endpoint (HEA-922). Requires bearer auth.
|
|
1128
|
-
*
|
|
1129
|
-
* @generated from rpc hearth.identity.v1.OAuthService.Decide
|
|
1130
|
-
*/
|
|
1131
|
-
decide: {
|
|
1132
|
-
methodKind: "unary";
|
|
1133
|
-
input: typeof TokenDecisionRequestSchema;
|
|
1134
|
-
output: typeof TokenDecisionResponseSchema;
|
|
1135
|
-
},
|
|
1136
|
-
}> = /*@__PURE__*/
|
|
1137
|
-
serviceDesc(file_hearth_identity_v1_oauth, 1);
|
|
1138
|
-
|