@hearth-auth/sdk 0.0.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/admin.d.ts +43 -0
  2. package/dist/admin.js +126 -0
  3. package/dist/admin.js.map +1 -0
  4. package/dist/browser-auth.d.ts +32 -0
  5. package/dist/browser-auth.js +99 -0
  6. package/dist/browser-auth.js.map +1 -0
  7. package/dist/claims.d.ts +86 -0
  8. package/dist/claims.js +137 -0
  9. package/dist/claims.js.map +1 -0
  10. package/dist/client.d.ts +77 -0
  11. package/dist/client.js +190 -0
  12. package/dist/client.js.map +1 -0
  13. package/dist/errors.d.ts +114 -0
  14. package/{src/errors.ts → dist/errors.js} +83 -97
  15. package/dist/errors.js.map +1 -0
  16. package/dist/hearth-client.d.ts +133 -0
  17. package/dist/hearth-client.js +192 -0
  18. package/dist/hearth-client.js.map +1 -0
  19. package/dist/hearth.d.ts +105 -0
  20. package/dist/hearth.js +109 -0
  21. package/dist/hearth.js.map +1 -0
  22. package/dist/index.d.ts +23 -0
  23. package/dist/index.js +22 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/introspection-client.d.ts +59 -0
  26. package/dist/introspection-client.js +36 -0
  27. package/dist/introspection-client.js.map +1 -0
  28. package/dist/jwks-client.d.ts +28 -0
  29. package/dist/jwks-client.js +28 -0
  30. package/dist/jwks-client.js.map +1 -0
  31. package/dist/middleware.d.ts +38 -0
  32. package/dist/middleware.js +51 -0
  33. package/dist/middleware.js.map +1 -0
  34. package/dist/pkce.d.ts +64 -0
  35. package/dist/pkce.js +64 -0
  36. package/dist/pkce.js.map +1 -0
  37. package/dist/react.d.ts +32 -0
  38. package/dist/react.js +41 -0
  39. package/dist/react.js.map +1 -0
  40. package/dist/session-version-cache.d.ts +50 -0
  41. package/dist/session-version-cache.js +129 -0
  42. package/dist/session-version-cache.js.map +1 -0
  43. package/dist/types.d.ts +168 -0
  44. package/dist/types.js +2 -0
  45. package/dist/types.js.map +1 -0
  46. package/package.json +13 -4
  47. package/CHANGELOG.md +0 -12
  48. package/src/admin.ts +0 -157
  49. package/src/browser-auth.ts +0 -130
  50. package/src/claims.ts +0 -180
  51. package/src/client.ts +0 -251
  52. package/src/generated/google/api/annotations_pb.ts +0 -44
  53. package/src/generated/google/api/http_pb.ts +0 -467
  54. package/src/generated/hearth/authz/v1/authz_pb.ts +0 -593
  55. package/src/generated/hearth/cluster/v1/raft_pb.ts +0 -183
  56. package/src/generated/hearth/events/v1/audit_pb.ts +0 -886
  57. package/src/generated/hearth/identity/v1/identity_pb.ts +0 -1673
  58. package/src/generated/hearth/identity/v1/oauth_pb.ts +0 -1138
  59. package/src/generated/hearth/rbac/v1/rbac_pb.ts +0 -2000
  60. package/src/hearth-client.ts +0 -288
  61. package/src/hearth.ts +0 -224
  62. package/src/index.ts +0 -106
  63. package/src/introspection-client.ts +0 -83
  64. package/src/jwks-client.ts +0 -45
  65. package/src/middleware.ts +0 -82
  66. package/src/pkce.ts +0 -129
  67. package/src/react.tsx +0 -57
  68. package/src/session-version-cache.ts +0 -167
  69. package/src/types.ts +0 -188
  70. package/tests/admin-crud.test.ts +0 -97
  71. package/tests/auth-flow.test.ts +0 -75
  72. package/tests/authorize.test.ts +0 -386
  73. package/tests/claims.test.ts +0 -159
  74. package/tests/hasPermission.test.ts +0 -152
  75. package/tests/hearth-client.test.ts +0 -243
  76. package/tests/helpers.ts +0 -90
  77. package/tests/jwks.test.ts +0 -62
  78. package/tests/pkce.test.ts +0 -210
  79. package/tests/react-useHasPermission.test.tsx +0 -92
  80. package/tests/required-action.test.ts +0 -276
  81. package/tests/session-version.test.ts +0 -391
  82. package/tsconfig.json +0 -16
  83. package/vitest.config.ts +0 -8
@@ -1,1673 +0,0 @@
1
- // @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
2
- // @generated from file hearth/identity/v1/identity.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/identity.proto.
12
- */
13
- export const file_hearth_identity_v1_identity: GenFile = /*@__PURE__*/
14
- fileDesc("CiFoZWFydGgvaWRlbnRpdHkvdjEvaWRlbnRpdHkucHJvdG8SEmhlYXJ0aC5pZGVudGl0eS52MSLQAQoEVXNlchIKCgJpZBgBIAEoCRINCgVlbWFpbBgCIAEoCRIUCgxkaXNwbGF5X25hbWUYAyABKAkSLgoGc3RhdHVzGAQgASgOMh4uaGVhcnRoLmlkZW50aXR5LnYxLlVzZXJTdGF0dXMSEgoKY3JlYXRlZF9hdBgFIAEoAxISCgp1cGRhdGVkX2F0GAYgASgDEhIKCmZpcnN0X25hbWUYByABKAkSEQoJbGFzdF9uYW1lGAggASgJEhgKEHJlcXVpcmVkX2FjdGlvbnMYCSADKAkiaQoHU2Vzc2lvbhIKCgJpZBgBIAEoCRIPCgd1c2VyX2lkGAIgASgJEhIKCmNyZWF0ZWRfYXQYAyABKAMSEgoKZXhwaXJlc19hdBgEIAEoAxIZChFsYXN0X3JlZnJlc2hlZF9hdBgFIAEoAyK5AQoLUmVhbG1Db25maWcSHwoSc2Vzc2lvbl90dGxfbWljcm9zGAEgASgDSACIAQESIQoUcGFzc3dvcmRfbWVtb3J5X2Nvc3QYAiABKA1IAYgBARIfChJwYXNzd29yZF90aW1lX2Nvc3QYAyABKA1IAogBAUIVChNfc2Vzc2lvbl90dGxfbWljcm9zQhcKFV9wYXNzd29yZF9tZW1vcnlfY29zdEIVChNfcGFzc3dvcmRfdGltZV9jb3N0IqsBCgVSZWFsbRIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEi8KBnN0YXR1cxgDIAEoDjIfLmhlYXJ0a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RpdHkudjEuRW1wdHkiOYLT5JMCMyoxL3YxL2FnZW50cy97YWdlbnRfaWR9L2NyZWRlbnRpYWxzL3tjcmVkZW50aWFsX2lkfUJFWkNnaXRodWIuY29tL2hlYXJ0aGRiL2hlYXJ0aC9zZGtzL2dvL2dlbmVyYXRlZC9pZGVudGl0eS92MTtpZGVudGl0eXYxYgZwcm90bzM", [file_google_api_annotations]);
15
-
16
- /**
17
- * A user record within a realm.
18
- *
19
- * @generated from message hearth.identity.v1.User
20
- */
21
- export type User = Message<"hearth.identity.v1.User"> & {
22
- /**
23
- * @generated from field: string id = 1;
24
- */
25
- id: string;
26
-
27
- /**
28
- * @generated from field: string email = 2;
29
- */
30
- email: string;
31
-
32
- /**
33
- * @generated from field: string display_name = 3;
34
- */
35
- displayName: string;
36
-
37
- /**
38
- * @generated from field: hearth.identity.v1.UserStatus status = 4;
39
- */
40
- status: UserStatus;
41
-
42
- /**
43
- * @generated from field: int64 created_at = 5;
44
- */
45
- createdAt: bigint;
46
-
47
- /**
48
- * @generated from field: int64 updated_at = 6;
49
- */
50
- updatedAt: bigint;
51
-
52
- /**
53
- * @generated from field: string first_name = 7;
54
- */
55
- firstName: string;
56
-
57
- /**
58
- * @generated from field: string last_name = 8;
59
- */
60
- lastName: string;
61
-
62
- /**
63
- * Actions the user must complete before full access is granted.
64
- * Values: "VERIFY_EMAIL", "UPDATE_PASSWORD".
65
- *
66
- * @generated from field: repeated string required_actions = 9;
67
- */
68
- requiredActions: string[];
69
- };
70
-
71
- /**
72
- * Describes the message hearth.identity.v1.User.
73
- * Use `create(UserSchema)` to create a new message.
74
- */
75
- export const UserSchema: GenMessage<User> = /*@__PURE__*/
76
- messageDesc(file_hearth_identity_v1_identity, 0);
77
-
78
- /**
79
- * An authentication session bound to a user.
80
- *
81
- * @generated from message hearth.identity.v1.Session
82
- */
83
- export type Session = Message<"hearth.identity.v1.Session"> & {
84
- /**
85
- * @generated from field: string id = 1;
86
- */
87
- id: string;
88
-
89
- /**
90
- * @generated from field: string user_id = 2;
91
- */
92
- userId: string;
93
-
94
- /**
95
- * @generated from field: int64 created_at = 3;
96
- */
97
- createdAt: bigint;
98
-
99
- /**
100
- * @generated from field: int64 expires_at = 4;
101
- */
102
- expiresAt: bigint;
103
-
104
- /**
105
- * @generated from field: int64 last_refreshed_at = 5;
106
- */
107
- lastRefreshedAt: bigint;
108
- };
109
-
110
- /**
111
- * Describes the message hearth.identity.v1.Session.
112
- * Use `create(SessionSchema)` to create a new message.
113
- */
114
- export const SessionSchema: GenMessage<Session> = /*@__PURE__*/
115
- messageDesc(file_hearth_identity_v1_identity, 1);
116
-
117
- /**
118
- * Per-realm configuration overrides.
119
- *
120
- * @generated from message hearth.identity.v1.RealmConfig
121
- */
122
- export type RealmConfig = Message<"hearth.identity.v1.RealmConfig"> & {
123
- /**
124
- * @generated from field: optional int64 session_ttl_micros = 1;
125
- */
126
- sessionTtlMicros?: bigint | undefined;
127
-
128
- /**
129
- * @generated from field: optional uint32 password_memory_cost = 2;
130
- */
131
- passwordMemoryCost?: number | undefined;
132
-
133
- /**
134
- * @generated from field: optional uint32 password_time_cost = 3;
135
- */
136
- passwordTimeCost?: number | undefined;
137
- };
138
-
139
- /**
140
- * Describes the message hearth.identity.v1.RealmConfig.
141
- * Use `create(RealmConfigSchema)` to create a new message.
142
- */
143
- export const RealmConfigSchema: GenMessage<RealmConfig> = /*@__PURE__*/
144
- messageDesc(file_hearth_identity_v1_identity, 2);
145
-
146
- /**
147
- * A realm record.
148
- *
149
- * @generated from message hearth.identity.v1.Realm
150
- */
151
- export type Realm = Message<"hearth.identity.v1.Realm"> & {
152
- /**
153
- * @generated from field: string id = 1;
154
- */
155
- id: string;
156
-
157
- /**
158
- * @generated from field: string name = 2;
159
- */
160
- name: string;
161
-
162
- /**
163
- * @generated from field: hearth.identity.v1.RealmStatus status = 3;
164
- */
165
- status: RealmStatus;
166
-
167
- /**
168
- * @generated from field: hearth.identity.v1.RealmConfig config = 4;
169
- */
170
- config?: RealmConfig | undefined;
171
-
172
- /**
173
- * @generated from field: int64 created_at = 5;
174
- */
175
- createdAt: bigint;
176
-
177
- /**
178
- * @generated from field: int64 updated_at = 6;
179
- */
180
- updatedAt: bigint;
181
- };
182
-
183
- /**
184
- * Describes the message hearth.identity.v1.Realm.
185
- * Use `create(RealmSchema)` to create a new message.
186
- */
187
- export const RealmSchema: GenMessage<Realm> = /*@__PURE__*/
188
- messageDesc(file_hearth_identity_v1_identity, 3);
189
-
190
- /**
191
- * Request to create a new user.
192
- *
193
- * @generated from message hearth.identity.v1.CreateUserRequest
194
- */
195
- export type CreateUserRequest = Message<"hearth.identity.v1.CreateUserRequest"> & {
196
- /**
197
- * @generated from field: string email = 1;
198
- */
199
- email: string;
200
-
201
- /**
202
- * @generated from field: string display_name = 2;
203
- */
204
- displayName: string;
205
-
206
- /**
207
- * @generated from field: string first_name = 3;
208
- */
209
- firstName: string;
210
-
211
- /**
212
- * @generated from field: string last_name = 4;
213
- */
214
- lastName: string;
215
-
216
- /**
217
- * @generated from field: map<string, string> attributes = 5;
218
- */
219
- attributes: { [key: string]: string };
220
- };
221
-
222
- /**
223
- * Describes the message hearth.identity.v1.CreateUserRequest.
224
- * Use `create(CreateUserRequestSchema)` to create a new message.
225
- */
226
- export const CreateUserRequestSchema: GenMessage<CreateUserRequest> = /*@__PURE__*/
227
- messageDesc(file_hearth_identity_v1_identity, 4);
228
-
229
- /**
230
- * Request to update an existing user.
231
- *
232
- * @generated from message hearth.identity.v1.UpdateUserRequest
233
- */
234
- export type UpdateUserRequest = Message<"hearth.identity.v1.UpdateUserRequest"> & {
235
- /**
236
- * @generated from field: optional string email = 1;
237
- */
238
- email?: string | undefined;
239
-
240
- /**
241
- * @generated from field: optional string display_name = 2;
242
- */
243
- displayName?: string | undefined;
244
-
245
- /**
246
- * @generated from field: optional hearth.identity.v1.UserStatus status = 3;
247
- */
248
- status?: UserStatus | undefined;
249
-
250
- /**
251
- * @generated from field: optional string first_name = 4;
252
- */
253
- firstName?: string | undefined;
254
-
255
- /**
256
- * @generated from field: optional string last_name = 5;
257
- */
258
- lastName?: string | undefined;
259
-
260
- /**
261
- * When non-empty, replaces the user's entire custom attribute map.
262
- * An empty map is treated as "no change"; use clear_attributes to remove all.
263
- *
264
- * @generated from field: map<string, string> attributes = 6;
265
- */
266
- attributes: { [key: string]: string };
267
-
268
- /**
269
- * When true and attributes is empty, clears all custom attributes.
270
- *
271
- * @generated from field: bool clear_attributes = 7;
272
- */
273
- clearAttributes: boolean;
274
- };
275
-
276
- /**
277
- * Describes the message hearth.identity.v1.UpdateUserRequest.
278
- * Use `create(UpdateUserRequestSchema)` to create a new message.
279
- */
280
- export const UpdateUserRequestSchema: GenMessage<UpdateUserRequest> = /*@__PURE__*/
281
- messageDesc(file_hearth_identity_v1_identity, 5);
282
-
283
- /**
284
- * Request to create a new realm.
285
- *
286
- * @generated from message hearth.identity.v1.CreateRealmRequest
287
- */
288
- export type CreateRealmRequest = Message<"hearth.identity.v1.CreateRealmRequest"> & {
289
- /**
290
- * @generated from field: string name = 1;
291
- */
292
- name: string;
293
-
294
- /**
295
- * @generated from field: optional hearth.identity.v1.RealmConfig config = 2;
296
- */
297
- config?: RealmConfig | undefined;
298
- };
299
-
300
- /**
301
- * Describes the message hearth.identity.v1.CreateRealmRequest.
302
- * Use `create(CreateRealmRequestSchema)` to create a new message.
303
- */
304
- export const CreateRealmRequestSchema: GenMessage<CreateRealmRequest> = /*@__PURE__*/
305
- messageDesc(file_hearth_identity_v1_identity, 6);
306
-
307
- /**
308
- * Request to update an existing realm.
309
- *
310
- * @generated from message hearth.identity.v1.UpdateRealmRequest
311
- */
312
- export type UpdateRealmRequest = Message<"hearth.identity.v1.UpdateRealmRequest"> & {
313
- /**
314
- * @generated from field: optional string name = 1;
315
- */
316
- name?: string | undefined;
317
-
318
- /**
319
- * @generated from field: optional hearth.identity.v1.RealmStatus status = 2;
320
- */
321
- status?: RealmStatus | undefined;
322
-
323
- /**
324
- * @generated from field: optional hearth.identity.v1.RealmConfig config = 3;
325
- */
326
- config?: RealmConfig | undefined;
327
- };
328
-
329
- /**
330
- * Describes the message hearth.identity.v1.UpdateRealmRequest.
331
- * Use `create(UpdateRealmRequestSchema)` to create a new message.
332
- */
333
- export const UpdateRealmRequestSchema: GenMessage<UpdateRealmRequest> = /*@__PURE__*/
334
- messageDesc(file_hearth_identity_v1_identity, 7);
335
-
336
- /**
337
- * A cursor-based page of users.
338
- *
339
- * @generated from message hearth.identity.v1.UserPage
340
- */
341
- export type UserPage = Message<"hearth.identity.v1.UserPage"> & {
342
- /**
343
- * @generated from field: repeated hearth.identity.v1.User items = 1;
344
- */
345
- items: User[];
346
-
347
- /**
348
- * @generated from field: optional string next_cursor = 2;
349
- */
350
- nextCursor?: string | undefined;
351
- };
352
-
353
- /**
354
- * Describes the message hearth.identity.v1.UserPage.
355
- * Use `create(UserPageSchema)` to create a new message.
356
- */
357
- export const UserPageSchema: GenMessage<UserPage> = /*@__PURE__*/
358
- messageDesc(file_hearth_identity_v1_identity, 8);
359
-
360
- /**
361
- * A cursor-based page of realms.
362
- *
363
- * @generated from message hearth.identity.v1.RealmPage
364
- */
365
- export type RealmPage = Message<"hearth.identity.v1.RealmPage"> & {
366
- /**
367
- * @generated from field: repeated hearth.identity.v1.Realm items = 1;
368
- */
369
- items: Realm[];
370
-
371
- /**
372
- * @generated from field: optional string next_cursor = 2;
373
- */
374
- nextCursor?: string | undefined;
375
- };
376
-
377
- /**
378
- * Describes the message hearth.identity.v1.RealmPage.
379
- * Use `create(RealmPageSchema)` to create a new message.
380
- */
381
- export const RealmPageSchema: GenMessage<RealmPage> = /*@__PURE__*/
382
- messageDesc(file_hearth_identity_v1_identity, 9);
383
-
384
- /**
385
- * A single entry in a bulk operation result.
386
- *
387
- * @generated from message hearth.identity.v1.BulkResultEntry
388
- */
389
- export type BulkResultEntry = Message<"hearth.identity.v1.BulkResultEntry"> & {
390
- /**
391
- * @generated from field: uint32 index = 1;
392
- */
393
- index: number;
394
-
395
- /**
396
- * @generated from field: bool success = 2;
397
- */
398
- success: boolean;
399
-
400
- /**
401
- * On success: the created/modified resource serialized as JSON.
402
- *
403
- * @generated from field: optional hearth.identity.v1.User user = 3;
404
- */
405
- user?: User | undefined;
406
-
407
- /**
408
- * On failure: error description.
409
- *
410
- * @generated from field: optional string error = 4;
411
- */
412
- error?: string | undefined;
413
- };
414
-
415
- /**
416
- * Describes the message hearth.identity.v1.BulkResultEntry.
417
- * Use `create(BulkResultEntrySchema)` to create a new message.
418
- */
419
- export const BulkResultEntrySchema: GenMessage<BulkResultEntry> = /*@__PURE__*/
420
- messageDesc(file_hearth_identity_v1_identity, 10);
421
-
422
- /**
423
- * Result of a bulk operation.
424
- *
425
- * @generated from message hearth.identity.v1.BulkResult
426
- */
427
- export type BulkResult = Message<"hearth.identity.v1.BulkResult"> & {
428
- /**
429
- * @generated from field: repeated hearth.identity.v1.BulkResultEntry results = 1;
430
- */
431
- results: BulkResultEntry[];
432
- };
433
-
434
- /**
435
- * Describes the message hearth.identity.v1.BulkResult.
436
- * Use `create(BulkResultSchema)` to create a new message.
437
- */
438
- export const BulkResultSchema: GenMessage<BulkResult> = /*@__PURE__*/
439
- messageDesc(file_hearth_identity_v1_identity, 11);
440
-
441
- /**
442
- * An organization (B2B customer group) within a realm.
443
- *
444
- * @generated from message hearth.identity.v1.Organization
445
- */
446
- export type Organization = Message<"hearth.identity.v1.Organization"> & {
447
- /**
448
- * @generated from field: string id = 1;
449
- */
450
- id: string;
451
-
452
- /**
453
- * @generated from field: string realm_id = 2;
454
- */
455
- realmId: string;
456
-
457
- /**
458
- * @generated from field: string slug = 3;
459
- */
460
- slug: string;
461
-
462
- /**
463
- * @generated from field: string display_name = 4;
464
- */
465
- displayName: string;
466
-
467
- /**
468
- * @generated from field: hearth.identity.v1.OrganizationStatus status = 5;
469
- */
470
- status: OrganizationStatus;
471
-
472
- /**
473
- * @generated from field: int64 created_at = 6;
474
- */
475
- createdAt: bigint;
476
-
477
- /**
478
- * @generated from field: int64 updated_at = 7;
479
- */
480
- updatedAt: bigint;
481
-
482
- /**
483
- * @generated from field: optional uint32 member_limit = 8;
484
- */
485
- memberLimit?: number | undefined;
486
-
487
- /**
488
- * @generated from field: map<string, string> attributes = 9;
489
- */
490
- attributes: { [key: string]: string };
491
- };
492
-
493
- /**
494
- * Describes the message hearth.identity.v1.Organization.
495
- * Use `create(OrganizationSchema)` to create a new message.
496
- */
497
- export const OrganizationSchema: GenMessage<Organization> = /*@__PURE__*/
498
- messageDesc(file_hearth_identity_v1_identity, 12);
499
-
500
- /**
501
- * Request to create a new organization.
502
- *
503
- * @generated from message hearth.identity.v1.CreateOrganizationRequest
504
- */
505
- export type CreateOrganizationRequest = Message<"hearth.identity.v1.CreateOrganizationRequest"> & {
506
- /**
507
- * @generated from field: string slug = 1;
508
- */
509
- slug: string;
510
-
511
- /**
512
- * @generated from field: string display_name = 2;
513
- */
514
- displayName: string;
515
-
516
- /**
517
- * @generated from field: optional uint32 member_limit = 3;
518
- */
519
- memberLimit?: number | undefined;
520
-
521
- /**
522
- * @generated from field: map<string, string> attributes = 4;
523
- */
524
- attributes: { [key: string]: string };
525
- };
526
-
527
- /**
528
- * Describes the message hearth.identity.v1.CreateOrganizationRequest.
529
- * Use `create(CreateOrganizationRequestSchema)` to create a new message.
530
- */
531
- export const CreateOrganizationRequestSchema: GenMessage<CreateOrganizationRequest> = /*@__PURE__*/
532
- messageDesc(file_hearth_identity_v1_identity, 13);
533
-
534
- /**
535
- * Request to update an existing organization.
536
- *
537
- * @generated from message hearth.identity.v1.UpdateOrganizationRequest
538
- */
539
- export type UpdateOrganizationRequest = Message<"hearth.identity.v1.UpdateOrganizationRequest"> & {
540
- /**
541
- * @generated from field: optional string slug = 1;
542
- */
543
- slug?: string | undefined;
544
-
545
- /**
546
- * @generated from field: optional string display_name = 2;
547
- */
548
- displayName?: string | undefined;
549
-
550
- /**
551
- * @generated from field: optional hearth.identity.v1.OrganizationStatus status = 3;
552
- */
553
- status?: OrganizationStatus | undefined;
554
-
555
- /**
556
- * @generated from field: optional uint32 member_limit = 4;
557
- */
558
- memberLimit?: number | undefined;
559
-
560
- /**
561
- * When non-empty, replaces the organization's entire custom attribute map.
562
- * An empty map is treated as "no change"; use clear_attributes to remove all.
563
- *
564
- * @generated from field: map<string, string> attributes = 5;
565
- */
566
- attributes: { [key: string]: string };
567
-
568
- /**
569
- * When true and attributes is empty, clears all custom attributes.
570
- *
571
- * @generated from field: bool clear_attributes = 6;
572
- */
573
- clearAttributes: boolean;
574
- };
575
-
576
- /**
577
- * Describes the message hearth.identity.v1.UpdateOrganizationRequest.
578
- * Use `create(UpdateOrganizationRequestSchema)` to create a new message.
579
- */
580
- export const UpdateOrganizationRequestSchema: GenMessage<UpdateOrganizationRequest> = /*@__PURE__*/
581
- messageDesc(file_hearth_identity_v1_identity, 14);
582
-
583
- /**
584
- * A cursor-based page of organizations.
585
- *
586
- * @generated from message hearth.identity.v1.OrganizationPage
587
- */
588
- export type OrganizationPage = Message<"hearth.identity.v1.OrganizationPage"> & {
589
- /**
590
- * @generated from field: repeated hearth.identity.v1.Organization items = 1;
591
- */
592
- items: Organization[];
593
-
594
- /**
595
- * @generated from field: optional string next_cursor = 2;
596
- */
597
- nextCursor?: string | undefined;
598
- };
599
-
600
- /**
601
- * Describes the message hearth.identity.v1.OrganizationPage.
602
- * Use `create(OrganizationPageSchema)` to create a new message.
603
- */
604
- export const OrganizationPageSchema: GenMessage<OrganizationPage> = /*@__PURE__*/
605
- messageDesc(file_hearth_identity_v1_identity, 15);
606
-
607
- /**
608
- * Request to fetch a user by id.
609
- *
610
- * @generated from message hearth.identity.v1.GetUserRequest
611
- */
612
- export type GetUserRequest = Message<"hearth.identity.v1.GetUserRequest"> & {
613
- /**
614
- * @generated from field: string id = 1;
615
- */
616
- id: string;
617
- };
618
-
619
- /**
620
- * Describes the message hearth.identity.v1.GetUserRequest.
621
- * Use `create(GetUserRequestSchema)` to create a new message.
622
- */
623
- export const GetUserRequestSchema: GenMessage<GetUserRequest> = /*@__PURE__*/
624
- messageDesc(file_hearth_identity_v1_identity, 16);
625
-
626
- /**
627
- * Request to delete a user by id.
628
- *
629
- * @generated from message hearth.identity.v1.DeleteUserRequest
630
- */
631
- export type DeleteUserRequest = Message<"hearth.identity.v1.DeleteUserRequest"> & {
632
- /**
633
- * @generated from field: string id = 1;
634
- */
635
- id: string;
636
- };
637
-
638
- /**
639
- * Describes the message hearth.identity.v1.DeleteUserRequest.
640
- * Use `create(DeleteUserRequestSchema)` to create a new message.
641
- */
642
- export const DeleteUserRequestSchema: GenMessage<DeleteUserRequest> = /*@__PURE__*/
643
- messageDesc(file_hearth_identity_v1_identity, 17);
644
-
645
- /**
646
- * Request to list users with optional pagination.
647
- *
648
- * @generated from message hearth.identity.v1.ListUsersRequest
649
- */
650
- export type ListUsersRequest = Message<"hearth.identity.v1.ListUsersRequest"> & {
651
- /**
652
- * @generated from field: optional string cursor = 1;
653
- */
654
- cursor?: string | undefined;
655
-
656
- /**
657
- * @generated from field: optional uint32 limit = 2;
658
- */
659
- limit?: number | undefined;
660
- };
661
-
662
- /**
663
- * Describes the message hearth.identity.v1.ListUsersRequest.
664
- * Use `create(ListUsersRequestSchema)` to create a new message.
665
- */
666
- export const ListUsersRequestSchema: GenMessage<ListUsersRequest> = /*@__PURE__*/
667
- messageDesc(file_hearth_identity_v1_identity, 18);
668
-
669
- /**
670
- * Wraps an UpdateUserRequest with the target id.
671
- *
672
- * @generated from message hearth.identity.v1.UpdateUserCall
673
- */
674
- export type UpdateUserCall = Message<"hearth.identity.v1.UpdateUserCall"> & {
675
- /**
676
- * @generated from field: string id = 1;
677
- */
678
- id: string;
679
-
680
- /**
681
- * @generated from field: hearth.identity.v1.UpdateUserRequest body = 2;
682
- */
683
- body?: UpdateUserRequest | undefined;
684
- };
685
-
686
- /**
687
- * Describes the message hearth.identity.v1.UpdateUserCall.
688
- * Use `create(UpdateUserCallSchema)` to create a new message.
689
- */
690
- export const UpdateUserCallSchema: GenMessage<UpdateUserCall> = /*@__PURE__*/
691
- messageDesc(file_hearth_identity_v1_identity, 19);
692
-
693
- /**
694
- * Request to list realms.
695
- *
696
- * @generated from message hearth.identity.v1.ListRealmsRequest
697
- */
698
- export type ListRealmsRequest = Message<"hearth.identity.v1.ListRealmsRequest"> & {
699
- /**
700
- * @generated from field: optional string cursor = 1;
701
- */
702
- cursor?: string | undefined;
703
-
704
- /**
705
- * @generated from field: optional uint32 limit = 2;
706
- */
707
- limit?: number | undefined;
708
- };
709
-
710
- /**
711
- * Describes the message hearth.identity.v1.ListRealmsRequest.
712
- * Use `create(ListRealmsRequestSchema)` to create a new message.
713
- */
714
- export const ListRealmsRequestSchema: GenMessage<ListRealmsRequest> = /*@__PURE__*/
715
- messageDesc(file_hearth_identity_v1_identity, 20);
716
-
717
- /**
718
- * Request to fetch a realm by id.
719
- *
720
- * @generated from message hearth.identity.v1.GetRealmRequest
721
- */
722
- export type GetRealmRequest = Message<"hearth.identity.v1.GetRealmRequest"> & {
723
- /**
724
- * @generated from field: string id = 1;
725
- */
726
- id: string;
727
- };
728
-
729
- /**
730
- * Describes the message hearth.identity.v1.GetRealmRequest.
731
- * Use `create(GetRealmRequestSchema)` to create a new message.
732
- */
733
- export const GetRealmRequestSchema: GenMessage<GetRealmRequest> = /*@__PURE__*/
734
- messageDesc(file_hearth_identity_v1_identity, 21);
735
-
736
- /**
737
- * Request to delete a realm by id.
738
- *
739
- * @generated from message hearth.identity.v1.DeleteRealmRequest
740
- */
741
- export type DeleteRealmRequest = Message<"hearth.identity.v1.DeleteRealmRequest"> & {
742
- /**
743
- * @generated from field: string id = 1;
744
- */
745
- id: string;
746
- };
747
-
748
- /**
749
- * Describes the message hearth.identity.v1.DeleteRealmRequest.
750
- * Use `create(DeleteRealmRequestSchema)` to create a new message.
751
- */
752
- export const DeleteRealmRequestSchema: GenMessage<DeleteRealmRequest> = /*@__PURE__*/
753
- messageDesc(file_hearth_identity_v1_identity, 22);
754
-
755
- /**
756
- * Wraps an UpdateRealmRequest with the target id.
757
- *
758
- * @generated from message hearth.identity.v1.UpdateRealmCall
759
- */
760
- export type UpdateRealmCall = Message<"hearth.identity.v1.UpdateRealmCall"> & {
761
- /**
762
- * @generated from field: string id = 1;
763
- */
764
- id: string;
765
-
766
- /**
767
- * @generated from field: hearth.identity.v1.UpdateRealmRequest body = 2;
768
- */
769
- body?: UpdateRealmRequest | undefined;
770
- };
771
-
772
- /**
773
- * Describes the message hearth.identity.v1.UpdateRealmCall.
774
- * Use `create(UpdateRealmCallSchema)` to create a new message.
775
- */
776
- export const UpdateRealmCallSchema: GenMessage<UpdateRealmCall> = /*@__PURE__*/
777
- messageDesc(file_hearth_identity_v1_identity, 23);
778
-
779
- /**
780
- * Request to list organizations.
781
- *
782
- * @generated from message hearth.identity.v1.ListOrganizationsRequest
783
- */
784
- export type ListOrganizationsRequest = Message<"hearth.identity.v1.ListOrganizationsRequest"> & {
785
- /**
786
- * @generated from field: optional string cursor = 1;
787
- */
788
- cursor?: string | undefined;
789
-
790
- /**
791
- * @generated from field: optional uint32 limit = 2;
792
- */
793
- limit?: number | undefined;
794
- };
795
-
796
- /**
797
- * Describes the message hearth.identity.v1.ListOrganizationsRequest.
798
- * Use `create(ListOrganizationsRequestSchema)` to create a new message.
799
- */
800
- export const ListOrganizationsRequestSchema: GenMessage<ListOrganizationsRequest> = /*@__PURE__*/
801
- messageDesc(file_hearth_identity_v1_identity, 24);
802
-
803
- /**
804
- * Request to fetch an organization by id.
805
- *
806
- * @generated from message hearth.identity.v1.GetOrganizationRequest
807
- */
808
- export type GetOrganizationRequest = Message<"hearth.identity.v1.GetOrganizationRequest"> & {
809
- /**
810
- * @generated from field: string id = 1;
811
- */
812
- id: string;
813
- };
814
-
815
- /**
816
- * Describes the message hearth.identity.v1.GetOrganizationRequest.
817
- * Use `create(GetOrganizationRequestSchema)` to create a new message.
818
- */
819
- export const GetOrganizationRequestSchema: GenMessage<GetOrganizationRequest> = /*@__PURE__*/
820
- messageDesc(file_hearth_identity_v1_identity, 25);
821
-
822
- /**
823
- * Request to delete an organization by id.
824
- *
825
- * @generated from message hearth.identity.v1.DeleteOrganizationRequest
826
- */
827
- export type DeleteOrganizationRequest = Message<"hearth.identity.v1.DeleteOrganizationRequest"> & {
828
- /**
829
- * @generated from field: string id = 1;
830
- */
831
- id: string;
832
- };
833
-
834
- /**
835
- * Describes the message hearth.identity.v1.DeleteOrganizationRequest.
836
- * Use `create(DeleteOrganizationRequestSchema)` to create a new message.
837
- */
838
- export const DeleteOrganizationRequestSchema: GenMessage<DeleteOrganizationRequest> = /*@__PURE__*/
839
- messageDesc(file_hearth_identity_v1_identity, 26);
840
-
841
- /**
842
- * Wraps an UpdateOrganizationRequest with the target id.
843
- *
844
- * @generated from message hearth.identity.v1.UpdateOrganizationCall
845
- */
846
- export type UpdateOrganizationCall = Message<"hearth.identity.v1.UpdateOrganizationCall"> & {
847
- /**
848
- * @generated from field: string id = 1;
849
- */
850
- id: string;
851
-
852
- /**
853
- * @generated from field: hearth.identity.v1.UpdateOrganizationRequest body = 2;
854
- */
855
- body?: UpdateOrganizationRequest | undefined;
856
- };
857
-
858
- /**
859
- * Describes the message hearth.identity.v1.UpdateOrganizationCall.
860
- * Use `create(UpdateOrganizationCallSchema)` to create a new message.
861
- */
862
- export const UpdateOrganizationCallSchema: GenMessage<UpdateOrganizationCall> = /*@__PURE__*/
863
- messageDesc(file_hearth_identity_v1_identity, 27);
864
-
865
- /**
866
- * Empty response type for delete RPCs.
867
- *
868
- * @generated from message hearth.identity.v1.Empty
869
- */
870
- export type Empty = Message<"hearth.identity.v1.Empty"> & {
871
- };
872
-
873
- /**
874
- * Describes the message hearth.identity.v1.Empty.
875
- * Use `create(EmptySchema)` to create a new message.
876
- */
877
- export const EmptySchema: GenMessage<Empty> = /*@__PURE__*/
878
- messageDesc(file_hearth_identity_v1_identity, 28);
879
-
880
- /**
881
- * An autonomous agent registered within a realm.
882
- *
883
- * @generated from message hearth.identity.v1.Agent
884
- */
885
- export type Agent = Message<"hearth.identity.v1.Agent"> & {
886
- /**
887
- * @generated from field: string id = 1;
888
- */
889
- id: string;
890
-
891
- /**
892
- * @generated from field: string realm_id = 2;
893
- */
894
- realmId: string;
895
-
896
- /**
897
- * Owner type: "user" or "organization".
898
- *
899
- * @generated from field: string owner_type = 3;
900
- */
901
- ownerType: string;
902
-
903
- /**
904
- * UUID of the owning user or organization.
905
- *
906
- * @generated from field: string owner_id = 4;
907
- */
908
- ownerId: string;
909
-
910
- /**
911
- * @generated from field: string display_name = 5;
912
- */
913
- displayName: string;
914
-
915
- /**
916
- * @generated from field: string description = 6;
917
- */
918
- description: string;
919
-
920
- /**
921
- * @generated from field: repeated string capabilities = 7;
922
- */
923
- capabilities: string[];
924
-
925
- /**
926
- * @generated from field: hearth.identity.v1.AgentStatus status = 8;
927
- */
928
- status: AgentStatus;
929
-
930
- /**
931
- * @generated from field: uint32 max_delegation_depth = 9;
932
- */
933
- maxDelegationDepth: number;
934
-
935
- /**
936
- * @generated from field: int64 created_at = 10;
937
- */
938
- createdAt: bigint;
939
-
940
- /**
941
- * @generated from field: int64 updated_at = 11;
942
- */
943
- updatedAt: bigint;
944
- };
945
-
946
- /**
947
- * Describes the message hearth.identity.v1.Agent.
948
- * Use `create(AgentSchema)` to create a new message.
949
- */
950
- export const AgentSchema: GenMessage<Agent> = /*@__PURE__*/
951
- messageDesc(file_hearth_identity_v1_identity, 29);
952
-
953
- /**
954
- * A stored agent credential record (no secret material).
955
- *
956
- * @generated from message hearth.identity.v1.AgentCredential
957
- */
958
- export type AgentCredential = Message<"hearth.identity.v1.AgentCredential"> & {
959
- /**
960
- * @generated from field: string id = 1;
961
- */
962
- id: string;
963
-
964
- /**
965
- * @generated from field: string agent_id = 2;
966
- */
967
- agentId: string;
968
-
969
- /**
970
- * @generated from field: hearth.identity.v1.AgentCredentialKind kind = 3;
971
- */
972
- kind: AgentCredentialKind;
973
-
974
- /**
975
- * @generated from field: string label = 4;
976
- */
977
- label: string;
978
-
979
- /**
980
- * @generated from field: int64 created_at = 5;
981
- */
982
- createdAt: bigint;
983
-
984
- /**
985
- * @generated from field: optional int64 revoked_at = 6;
986
- */
987
- revokedAt?: bigint | undefined;
988
- };
989
-
990
- /**
991
- * Describes the message hearth.identity.v1.AgentCredential.
992
- * Use `create(AgentCredentialSchema)` to create a new message.
993
- */
994
- export const AgentCredentialSchema: GenMessage<AgentCredential> = /*@__PURE__*/
995
- messageDesc(file_hearth_identity_v1_identity, 30);
996
-
997
- /**
998
- * A cursor-based page of agents.
999
- *
1000
- * @generated from message hearth.identity.v1.AgentPage
1001
- */
1002
- export type AgentPage = Message<"hearth.identity.v1.AgentPage"> & {
1003
- /**
1004
- * @generated from field: repeated hearth.identity.v1.Agent items = 1;
1005
- */
1006
- items: Agent[];
1007
-
1008
- /**
1009
- * @generated from field: optional string next_cursor = 2;
1010
- */
1011
- nextCursor?: string | undefined;
1012
- };
1013
-
1014
- /**
1015
- * Describes the message hearth.identity.v1.AgentPage.
1016
- * Use `create(AgentPageSchema)` to create a new message.
1017
- */
1018
- export const AgentPageSchema: GenMessage<AgentPage> = /*@__PURE__*/
1019
- messageDesc(file_hearth_identity_v1_identity, 31);
1020
-
1021
- /**
1022
- * A cursor-based page of agent credentials.
1023
- *
1024
- * @generated from message hearth.identity.v1.AgentCredentialPage
1025
- */
1026
- export type AgentCredentialPage = Message<"hearth.identity.v1.AgentCredentialPage"> & {
1027
- /**
1028
- * @generated from field: repeated hearth.identity.v1.AgentCredential items = 1;
1029
- */
1030
- items: AgentCredential[];
1031
- };
1032
-
1033
- /**
1034
- * Describes the message hearth.identity.v1.AgentCredentialPage.
1035
- * Use `create(AgentCredentialPageSchema)` to create a new message.
1036
- */
1037
- export const AgentCredentialPageSchema: GenMessage<AgentCredentialPage> = /*@__PURE__*/
1038
- messageDesc(file_hearth_identity_v1_identity, 32);
1039
-
1040
- /**
1041
- * Request to list agents in a realm.
1042
- *
1043
- * @generated from message hearth.identity.v1.ListAgentsRequest
1044
- */
1045
- export type ListAgentsRequest = Message<"hearth.identity.v1.ListAgentsRequest"> & {
1046
- /**
1047
- * @generated from field: optional string owner_id = 1;
1048
- */
1049
- ownerId?: string | undefined;
1050
-
1051
- /**
1052
- * @generated from field: optional hearth.identity.v1.AgentStatus status = 2;
1053
- */
1054
- status?: AgentStatus | undefined;
1055
-
1056
- /**
1057
- * @generated from field: optional string capability = 3;
1058
- */
1059
- capability?: string | undefined;
1060
-
1061
- /**
1062
- * @generated from field: optional string cursor = 4;
1063
- */
1064
- cursor?: string | undefined;
1065
-
1066
- /**
1067
- * @generated from field: optional uint32 limit = 5;
1068
- */
1069
- limit?: number | undefined;
1070
- };
1071
-
1072
- /**
1073
- * Describes the message hearth.identity.v1.ListAgentsRequest.
1074
- * Use `create(ListAgentsRequestSchema)` to create a new message.
1075
- */
1076
- export const ListAgentsRequestSchema: GenMessage<ListAgentsRequest> = /*@__PURE__*/
1077
- messageDesc(file_hearth_identity_v1_identity, 33);
1078
-
1079
- /**
1080
- * Request to fetch a single agent.
1081
- *
1082
- * @generated from message hearth.identity.v1.GetAgentRequest
1083
- */
1084
- export type GetAgentRequest = Message<"hearth.identity.v1.GetAgentRequest"> & {
1085
- /**
1086
- * @generated from field: string id = 1;
1087
- */
1088
- id: string;
1089
- };
1090
-
1091
- /**
1092
- * Describes the message hearth.identity.v1.GetAgentRequest.
1093
- * Use `create(GetAgentRequestSchema)` to create a new message.
1094
- */
1095
- export const GetAgentRequestSchema: GenMessage<GetAgentRequest> = /*@__PURE__*/
1096
- messageDesc(file_hearth_identity_v1_identity, 34);
1097
-
1098
- /**
1099
- * Request to create a new agent.
1100
- *
1101
- * @generated from message hearth.identity.v1.CreateAgentRequest
1102
- */
1103
- export type CreateAgentRequest = Message<"hearth.identity.v1.CreateAgentRequest"> & {
1104
- /**
1105
- * @generated from field: string display_name = 1;
1106
- */
1107
- displayName: string;
1108
-
1109
- /**
1110
- * @generated from field: optional string description = 2;
1111
- */
1112
- description?: string | undefined;
1113
-
1114
- /**
1115
- * Owner type: "user" or "organization".
1116
- *
1117
- * @generated from field: string owner_type = 3;
1118
- */
1119
- ownerType: string;
1120
-
1121
- /**
1122
- * UUID of the owning user or organization.
1123
- *
1124
- * @generated from field: string owner_id = 4;
1125
- */
1126
- ownerId: string;
1127
-
1128
- /**
1129
- * @generated from field: repeated string capabilities = 5;
1130
- */
1131
- capabilities: string[];
1132
-
1133
- /**
1134
- * Maximum delegation depth (1–10, default 1).
1135
- *
1136
- * @generated from field: uint32 max_delegation_depth = 6;
1137
- */
1138
- maxDelegationDepth: number;
1139
- };
1140
-
1141
- /**
1142
- * Describes the message hearth.identity.v1.CreateAgentRequest.
1143
- * Use `create(CreateAgentRequestSchema)` to create a new message.
1144
- */
1145
- export const CreateAgentRequestSchema: GenMessage<CreateAgentRequest> = /*@__PURE__*/
1146
- messageDesc(file_hearth_identity_v1_identity, 35);
1147
-
1148
- /**
1149
- * Fields that may be updated on an agent.
1150
- *
1151
- * @generated from message hearth.identity.v1.UpdateAgentRequest
1152
- */
1153
- export type UpdateAgentRequest = Message<"hearth.identity.v1.UpdateAgentRequest"> & {
1154
- /**
1155
- * @generated from field: optional string display_name = 1;
1156
- */
1157
- displayName?: string | undefined;
1158
-
1159
- /**
1160
- * @generated from field: optional string description = 2;
1161
- */
1162
- description?: string | undefined;
1163
-
1164
- /**
1165
- * @generated from field: repeated string capabilities = 3;
1166
- */
1167
- capabilities: string[];
1168
-
1169
- /**
1170
- * @generated from field: optional uint32 max_delegation_depth = 4;
1171
- */
1172
- maxDelegationDepth?: number | undefined;
1173
- };
1174
-
1175
- /**
1176
- * Describes the message hearth.identity.v1.UpdateAgentRequest.
1177
- * Use `create(UpdateAgentRequestSchema)` to create a new message.
1178
- */
1179
- export const UpdateAgentRequestSchema: GenMessage<UpdateAgentRequest> = /*@__PURE__*/
1180
- messageDesc(file_hearth_identity_v1_identity, 36);
1181
-
1182
- /**
1183
- * Wraps an UpdateAgentRequest with the target id.
1184
- *
1185
- * @generated from message hearth.identity.v1.UpdateAgentCall
1186
- */
1187
- export type UpdateAgentCall = Message<"hearth.identity.v1.UpdateAgentCall"> & {
1188
- /**
1189
- * @generated from field: string id = 1;
1190
- */
1191
- id: string;
1192
-
1193
- /**
1194
- * @generated from field: hearth.identity.v1.UpdateAgentRequest body = 2;
1195
- */
1196
- body?: UpdateAgentRequest | undefined;
1197
- };
1198
-
1199
- /**
1200
- * Describes the message hearth.identity.v1.UpdateAgentCall.
1201
- * Use `create(UpdateAgentCallSchema)` to create a new message.
1202
- */
1203
- export const UpdateAgentCallSchema: GenMessage<UpdateAgentCall> = /*@__PURE__*/
1204
- messageDesc(file_hearth_identity_v1_identity, 37);
1205
-
1206
- /**
1207
- * Request to delete an agent.
1208
- *
1209
- * @generated from message hearth.identity.v1.DeleteAgentRequest
1210
- */
1211
- export type DeleteAgentRequest = Message<"hearth.identity.v1.DeleteAgentRequest"> & {
1212
- /**
1213
- * @generated from field: string id = 1;
1214
- */
1215
- id: string;
1216
- };
1217
-
1218
- /**
1219
- * Describes the message hearth.identity.v1.DeleteAgentRequest.
1220
- * Use `create(DeleteAgentRequestSchema)` to create a new message.
1221
- */
1222
- export const DeleteAgentRequestSchema: GenMessage<DeleteAgentRequest> = /*@__PURE__*/
1223
- messageDesc(file_hearth_identity_v1_identity, 38);
1224
-
1225
- /**
1226
- * Request to issue an API key for an agent.
1227
- *
1228
- * @generated from message hearth.identity.v1.CreateAgentApiKeyRequest
1229
- */
1230
- export type CreateAgentApiKeyRequest = Message<"hearth.identity.v1.CreateAgentApiKeyRequest"> & {
1231
- /**
1232
- * @generated from field: string agent_id = 1;
1233
- */
1234
- agentId: string;
1235
-
1236
- /**
1237
- * @generated from field: string label = 2;
1238
- */
1239
- label: string;
1240
- };
1241
-
1242
- /**
1243
- * Describes the message hearth.identity.v1.CreateAgentApiKeyRequest.
1244
- * Use `create(CreateAgentApiKeyRequestSchema)` to create a new message.
1245
- */
1246
- export const CreateAgentApiKeyRequestSchema: GenMessage<CreateAgentApiKeyRequest> = /*@__PURE__*/
1247
- messageDesc(file_hearth_identity_v1_identity, 39);
1248
-
1249
- /**
1250
- * Response from creating an agent API key.
1251
- * The `key` field is the raw plaintext key — shown exactly once.
1252
- *
1253
- * @generated from message hearth.identity.v1.CreateAgentApiKeyResponse
1254
- */
1255
- export type CreateAgentApiKeyResponse = Message<"hearth.identity.v1.CreateAgentApiKeyResponse"> & {
1256
- /**
1257
- * @generated from field: hearth.identity.v1.AgentCredential credential = 1;
1258
- */
1259
- credential?: AgentCredential | undefined;
1260
-
1261
- /**
1262
- * The plaintext API key. Show to the user once and discard.
1263
- *
1264
- * @generated from field: string key = 2;
1265
- */
1266
- key: string;
1267
- };
1268
-
1269
- /**
1270
- * Describes the message hearth.identity.v1.CreateAgentApiKeyResponse.
1271
- * Use `create(CreateAgentApiKeyResponseSchema)` to create a new message.
1272
- */
1273
- export const CreateAgentApiKeyResponseSchema: GenMessage<CreateAgentApiKeyResponse> = /*@__PURE__*/
1274
- messageDesc(file_hearth_identity_v1_identity, 40);
1275
-
1276
- /**
1277
- * Request to list credentials for an agent.
1278
- *
1279
- * @generated from message hearth.identity.v1.ListAgentCredentialsRequest
1280
- */
1281
- export type ListAgentCredentialsRequest = Message<"hearth.identity.v1.ListAgentCredentialsRequest"> & {
1282
- /**
1283
- * @generated from field: string agent_id = 1;
1284
- */
1285
- agentId: string;
1286
- };
1287
-
1288
- /**
1289
- * Describes the message hearth.identity.v1.ListAgentCredentialsRequest.
1290
- * Use `create(ListAgentCredentialsRequestSchema)` to create a new message.
1291
- */
1292
- export const ListAgentCredentialsRequestSchema: GenMessage<ListAgentCredentialsRequest> = /*@__PURE__*/
1293
- messageDesc(file_hearth_identity_v1_identity, 41);
1294
-
1295
- /**
1296
- * Request to revoke a single agent credential.
1297
- *
1298
- * @generated from message hearth.identity.v1.RevokeAgentCredentialRequest
1299
- */
1300
- export type RevokeAgentCredentialRequest = Message<"hearth.identity.v1.RevokeAgentCredentialRequest"> & {
1301
- /**
1302
- * @generated from field: string agent_id = 1;
1303
- */
1304
- agentId: string;
1305
-
1306
- /**
1307
- * @generated from field: string credential_id = 2;
1308
- */
1309
- credentialId: string;
1310
- };
1311
-
1312
- /**
1313
- * Describes the message hearth.identity.v1.RevokeAgentCredentialRequest.
1314
- * Use `create(RevokeAgentCredentialRequestSchema)` to create a new message.
1315
- */
1316
- export const RevokeAgentCredentialRequestSchema: GenMessage<RevokeAgentCredentialRequest> = /*@__PURE__*/
1317
- messageDesc(file_hearth_identity_v1_identity, 42);
1318
-
1319
- /**
1320
- * The lifecycle status of a user account.
1321
- *
1322
- * @generated from enum hearth.identity.v1.UserStatus
1323
- */
1324
- export enum UserStatus {
1325
- /**
1326
- * @generated from enum value: USER_STATUS_UNSPECIFIED = 0;
1327
- */
1328
- UNSPECIFIED = 0,
1329
-
1330
- /**
1331
- * @generated from enum value: USER_STATUS_ACTIVE = 1;
1332
- */
1333
- ACTIVE = 1,
1334
-
1335
- /**
1336
- * @generated from enum value: USER_STATUS_DISABLED = 2;
1337
- */
1338
- DISABLED = 2,
1339
-
1340
- /**
1341
- * @generated from enum value: USER_STATUS_PENDING_VERIFICATION = 3;
1342
- */
1343
- PENDING_VERIFICATION = 3,
1344
- }
1345
-
1346
- /**
1347
- * Describes the enum hearth.identity.v1.UserStatus.
1348
- */
1349
- export const UserStatusSchema: GenEnum<UserStatus> = /*@__PURE__*/
1350
- enumDesc(file_hearth_identity_v1_identity, 0);
1351
-
1352
- /**
1353
- * The lifecycle status of a realm.
1354
- *
1355
- * @generated from enum hearth.identity.v1.RealmStatus
1356
- */
1357
- export enum RealmStatus {
1358
- /**
1359
- * @generated from enum value: REALM_STATUS_UNSPECIFIED = 0;
1360
- */
1361
- UNSPECIFIED = 0,
1362
-
1363
- /**
1364
- * @generated from enum value: REALM_STATUS_ACTIVE = 1;
1365
- */
1366
- ACTIVE = 1,
1367
-
1368
- /**
1369
- * @generated from enum value: REALM_STATUS_SUSPENDED = 2;
1370
- */
1371
- SUSPENDED = 2,
1372
- }
1373
-
1374
- /**
1375
- * Describes the enum hearth.identity.v1.RealmStatus.
1376
- */
1377
- export const RealmStatusSchema: GenEnum<RealmStatus> = /*@__PURE__*/
1378
- enumDesc(file_hearth_identity_v1_identity, 1);
1379
-
1380
- /**
1381
- * The lifecycle status of an organization.
1382
- *
1383
- * @generated from enum hearth.identity.v1.OrganizationStatus
1384
- */
1385
- export enum OrganizationStatus {
1386
- /**
1387
- * @generated from enum value: ORGANIZATION_STATUS_UNSPECIFIED = 0;
1388
- */
1389
- UNSPECIFIED = 0,
1390
-
1391
- /**
1392
- * @generated from enum value: ORGANIZATION_STATUS_ACTIVE = 1;
1393
- */
1394
- ACTIVE = 1,
1395
-
1396
- /**
1397
- * @generated from enum value: ORGANIZATION_STATUS_SUSPENDED = 2;
1398
- */
1399
- SUSPENDED = 2,
1400
- }
1401
-
1402
- /**
1403
- * Describes the enum hearth.identity.v1.OrganizationStatus.
1404
- */
1405
- export const OrganizationStatusSchema: GenEnum<OrganizationStatus> = /*@__PURE__*/
1406
- enumDesc(file_hearth_identity_v1_identity, 2);
1407
-
1408
- /**
1409
- * Lifecycle status of an agent.
1410
- *
1411
- * @generated from enum hearth.identity.v1.AgentStatus
1412
- */
1413
- export enum AgentStatus {
1414
- /**
1415
- * @generated from enum value: AGENT_STATUS_UNSPECIFIED = 0;
1416
- */
1417
- UNSPECIFIED = 0,
1418
-
1419
- /**
1420
- * @generated from enum value: AGENT_STATUS_ACTIVE = 1;
1421
- */
1422
- ACTIVE = 1,
1423
-
1424
- /**
1425
- * @generated from enum value: AGENT_STATUS_SUSPENDED = 2;
1426
- */
1427
- SUSPENDED = 2,
1428
-
1429
- /**
1430
- * @generated from enum value: AGENT_STATUS_REVOKED = 3;
1431
- */
1432
- REVOKED = 3,
1433
- }
1434
-
1435
- /**
1436
- * Describes the enum hearth.identity.v1.AgentStatus.
1437
- */
1438
- export const AgentStatusSchema: GenEnum<AgentStatus> = /*@__PURE__*/
1439
- enumDesc(file_hearth_identity_v1_identity, 3);
1440
-
1441
- /**
1442
- * Discriminates the type of credential stored for an agent.
1443
- *
1444
- * @generated from enum hearth.identity.v1.AgentCredentialKind
1445
- */
1446
- export enum AgentCredentialKind {
1447
- /**
1448
- * @generated from enum value: AGENT_CREDENTIAL_KIND_UNSPECIFIED = 0;
1449
- */
1450
- UNSPECIFIED = 0,
1451
-
1452
- /**
1453
- * @generated from enum value: AGENT_CREDENTIAL_KIND_API_KEY = 1;
1454
- */
1455
- API_KEY = 1,
1456
-
1457
- /**
1458
- * @generated from enum value: AGENT_CREDENTIAL_KIND_ED25519_PUBLIC_KEY = 2;
1459
- */
1460
- ED25519_PUBLIC_KEY = 2,
1461
-
1462
- /**
1463
- * @generated from enum value: AGENT_CREDENTIAL_KIND_MTLS_CERT = 3;
1464
- */
1465
- MTLS_CERT = 3,
1466
- }
1467
-
1468
- /**
1469
- * Describes the enum hearth.identity.v1.AgentCredentialKind.
1470
- */
1471
- export const AgentCredentialKindSchema: GenEnum<AgentCredentialKind> = /*@__PURE__*/
1472
- enumDesc(file_hearth_identity_v1_identity, 4);
1473
-
1474
- /**
1475
- * @generated from service hearth.identity.v1.IdentityAdminService
1476
- */
1477
- export const IdentityAdminService: GenService<{
1478
- /**
1479
- * Users
1480
- *
1481
- * @generated from rpc hearth.identity.v1.IdentityAdminService.ListUsers
1482
- */
1483
- listUsers: {
1484
- methodKind: "unary";
1485
- input: typeof ListUsersRequestSchema;
1486
- output: typeof UserPageSchema;
1487
- },
1488
- /**
1489
- * @generated from rpc hearth.identity.v1.IdentityAdminService.GetUser
1490
- */
1491
- getUser: {
1492
- methodKind: "unary";
1493
- input: typeof GetUserRequestSchema;
1494
- output: typeof UserSchema;
1495
- },
1496
- /**
1497
- * @generated from rpc hearth.identity.v1.IdentityAdminService.CreateUser
1498
- */
1499
- createUser: {
1500
- methodKind: "unary";
1501
- input: typeof CreateUserRequestSchema;
1502
- output: typeof UserSchema;
1503
- },
1504
- /**
1505
- * @generated from rpc hearth.identity.v1.IdentityAdminService.UpdateUser
1506
- */
1507
- updateUser: {
1508
- methodKind: "unary";
1509
- input: typeof UpdateUserCallSchema;
1510
- output: typeof UserSchema;
1511
- },
1512
- /**
1513
- * @generated from rpc hearth.identity.v1.IdentityAdminService.DeleteUser
1514
- */
1515
- deleteUser: {
1516
- methodKind: "unary";
1517
- input: typeof DeleteUserRequestSchema;
1518
- output: typeof EmptySchema;
1519
- },
1520
- /**
1521
- * Realms — operate against the system realm (mutations require admin in
1522
- * the system realm). `x-realm-id` metadata is ignored for these RPCs.
1523
- *
1524
- * @generated from rpc hearth.identity.v1.IdentityAdminService.ListRealms
1525
- */
1526
- listRealms: {
1527
- methodKind: "unary";
1528
- input: typeof ListRealmsRequestSchema;
1529
- output: typeof RealmPageSchema;
1530
- },
1531
- /**
1532
- * @generated from rpc hearth.identity.v1.IdentityAdminService.GetRealm
1533
- */
1534
- getRealm: {
1535
- methodKind: "unary";
1536
- input: typeof GetRealmRequestSchema;
1537
- output: typeof RealmSchema;
1538
- },
1539
- /**
1540
- * @generated from rpc hearth.identity.v1.IdentityAdminService.CreateRealm
1541
- */
1542
- createRealm: {
1543
- methodKind: "unary";
1544
- input: typeof CreateRealmRequestSchema;
1545
- output: typeof RealmSchema;
1546
- },
1547
- /**
1548
- * @generated from rpc hearth.identity.v1.IdentityAdminService.UpdateRealm
1549
- */
1550
- updateRealm: {
1551
- methodKind: "unary";
1552
- input: typeof UpdateRealmCallSchema;
1553
- output: typeof RealmSchema;
1554
- },
1555
- /**
1556
- * @generated from rpc hearth.identity.v1.IdentityAdminService.DeleteRealm
1557
- */
1558
- deleteRealm: {
1559
- methodKind: "unary";
1560
- input: typeof DeleteRealmRequestSchema;
1561
- output: typeof EmptySchema;
1562
- },
1563
- /**
1564
- * Organizations — gRPC-only (no REST routes yet; see HEA-969).
1565
- *
1566
- * @generated from rpc hearth.identity.v1.IdentityAdminService.ListOrganizations
1567
- */
1568
- listOrganizations: {
1569
- methodKind: "unary";
1570
- input: typeof ListOrganizationsRequestSchema;
1571
- output: typeof OrganizationPageSchema;
1572
- },
1573
- /**
1574
- * @generated from rpc hearth.identity.v1.IdentityAdminService.GetOrganization
1575
- */
1576
- getOrganization: {
1577
- methodKind: "unary";
1578
- input: typeof GetOrganizationRequestSchema;
1579
- output: typeof OrganizationSchema;
1580
- },
1581
- /**
1582
- * @generated from rpc hearth.identity.v1.IdentityAdminService.CreateOrganization
1583
- */
1584
- createOrganization: {
1585
- methodKind: "unary";
1586
- input: typeof CreateOrganizationRequestSchema;
1587
- output: typeof OrganizationSchema;
1588
- },
1589
- /**
1590
- * @generated from rpc hearth.identity.v1.IdentityAdminService.UpdateOrganization
1591
- */
1592
- updateOrganization: {
1593
- methodKind: "unary";
1594
- input: typeof UpdateOrganizationCallSchema;
1595
- output: typeof OrganizationSchema;
1596
- },
1597
- /**
1598
- * @generated from rpc hearth.identity.v1.IdentityAdminService.DeleteOrganization
1599
- */
1600
- deleteOrganization: {
1601
- methodKind: "unary";
1602
- input: typeof DeleteOrganizationRequestSchema;
1603
- output: typeof EmptySchema;
1604
- },
1605
- /**
1606
- * Agents — Phase A (HEA-1405).
1607
- *
1608
- * @generated from rpc hearth.identity.v1.IdentityAdminService.ListAgents
1609
- */
1610
- listAgents: {
1611
- methodKind: "unary";
1612
- input: typeof ListAgentsRequestSchema;
1613
- output: typeof AgentPageSchema;
1614
- },
1615
- /**
1616
- * @generated from rpc hearth.identity.v1.IdentityAdminService.GetAgent
1617
- */
1618
- getAgent: {
1619
- methodKind: "unary";
1620
- input: typeof GetAgentRequestSchema;
1621
- output: typeof AgentSchema;
1622
- },
1623
- /**
1624
- * @generated from rpc hearth.identity.v1.IdentityAdminService.CreateAgent
1625
- */
1626
- createAgent: {
1627
- methodKind: "unary";
1628
- input: typeof CreateAgentRequestSchema;
1629
- output: typeof AgentSchema;
1630
- },
1631
- /**
1632
- * @generated from rpc hearth.identity.v1.IdentityAdminService.UpdateAgent
1633
- */
1634
- updateAgent: {
1635
- methodKind: "unary";
1636
- input: typeof UpdateAgentCallSchema;
1637
- output: typeof AgentSchema;
1638
- },
1639
- /**
1640
- * @generated from rpc hearth.identity.v1.IdentityAdminService.DeleteAgent
1641
- */
1642
- deleteAgent: {
1643
- methodKind: "unary";
1644
- input: typeof DeleteAgentRequestSchema;
1645
- output: typeof EmptySchema;
1646
- },
1647
- /**
1648
- * @generated from rpc hearth.identity.v1.IdentityAdminService.CreateAgentApiKey
1649
- */
1650
- createAgentApiKey: {
1651
- methodKind: "unary";
1652
- input: typeof CreateAgentApiKeyRequestSchema;
1653
- output: typeof CreateAgentApiKeyResponseSchema;
1654
- },
1655
- /**
1656
- * @generated from rpc hearth.identity.v1.IdentityAdminService.ListAgentCredentials
1657
- */
1658
- listAgentCredentials: {
1659
- methodKind: "unary";
1660
- input: typeof ListAgentCredentialsRequestSchema;
1661
- output: typeof AgentCredentialPageSchema;
1662
- },
1663
- /**
1664
- * @generated from rpc hearth.identity.v1.IdentityAdminService.RevokeAgentCredential
1665
- */
1666
- revokeAgentCredential: {
1667
- methodKind: "unary";
1668
- input: typeof RevokeAgentCredentialRequestSchema;
1669
- output: typeof EmptySchema;
1670
- },
1671
- }> = /*@__PURE__*/
1672
- serviceDesc(file_hearth_identity_v1_identity, 0);
1673
-