@tearleads/client-sdk 0.1.248 → 0.1.249

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 (111) hide show
  1. package/client/organizations/index.js +5 -3
  2. package/client/organizations/index.js.map +1 -1
  3. package/client/organizations/organizationGroupPresentation.d.ts +1 -1
  4. package/client/organizations/organizationGroupPresentation.js.map +1 -1
  5. package/client/organizations/organizationLeaveRequestVerifier.js +21 -0
  6. package/client/organizations/organizationLeaveRequestVerifier.js.map +1 -0
  7. package/client/organizations/{organizationReadModels.d.ts → organizationReadModelCoordinator.d.ts} +18 -16
  8. package/client/organizations/organizationReadModelCoordinator.js +2 -0
  9. package/client/organizations/organizationReadModelCoordinator.js.map +1 -0
  10. package/client/organizations/organizationReadModelPresentation.js +51 -0
  11. package/client/organizations/organizationReadModelPresentation.js.map +1 -0
  12. package/client/organizations/organizationReadModelScopes.js +37 -0
  13. package/client/organizations/organizationReadModelScopes.js.map +1 -0
  14. package/client/organizations/organizationReadModels.js +131 -88
  15. package/client/organizations/organizationReadModels.js.map +1 -1
  16. package/client/organizations/organizationsTypes.d.ts +13 -5
  17. package/client/organizations/organizationsTypes.js.map +1 -1
  18. package/client/organizations/principalMutations.d.ts +18 -2
  19. package/client/organizations/principalMutations.js +29 -15
  20. package/client/organizations/principalMutations.js.map +1 -1
  21. package/client/runtime/principalMutationApi.d.ts +2 -0
  22. package/client/runtime/principalMutationApi.js +2 -0
  23. package/client/runtime/principalMutationApi.js.map +1 -1
  24. package/client/runtime/principalMutationDispatch.js +47 -10
  25. package/client/runtime/principalMutationDispatch.js.map +1 -1
  26. package/client/runtime/workflowRuntime.js +5 -4
  27. package/client/runtime/workflowRuntime.js.map +1 -1
  28. package/data/containers/shared/mutationRequestOptions.d.ts +2 -0
  29. package/data/containers/shared/mutationRequestOptions.js.map +1 -1
  30. package/data/containers/shared/types.d.ts +12 -2
  31. package/data/containers/shared/types.js.map +1 -1
  32. package/data/persistence/organizations/organizationReadModelRepository.js +20 -2
  33. package/data/persistence/organizations/organizationReadModelRepository.js.map +1 -1
  34. package/internal/api-client/ApiClient.d.ts +4 -1
  35. package/internal/api-client/client/containerMutations.d.ts +2 -2
  36. package/internal/api-client/client/containerMutations.js +2 -1
  37. package/internal/api-client/client/containerMutations.js.map +1 -1
  38. package/internal/api-client/client/principalPolicies.d.ts +3 -0
  39. package/internal/api-client/principalPolicyRequests.d.ts +2 -0
  40. package/internal/api-client/principalPolicyRequests.js +6 -4
  41. package/internal/api-client/principalPolicyRequests.js.map +1 -1
  42. package/internal/api-client/routes/containers/mutations.js +3 -3
  43. package/internal/api-client/routes/containers/mutations.js.map +1 -1
  44. package/internal/api-client/routes/organizations/createGroup.js +3 -5
  45. package/internal/api-client/routes/organizations/createGroup.js.map +1 -1
  46. package/internal/api-client/routes/principals/policy.js +2 -5
  47. package/internal/api-client/routes/principals/policy.js.map +1 -1
  48. package/internal/api-client/types.d.ts +6 -0
  49. package/internal/api-client/types.js.map +1 -1
  50. package/internal/validators/operation/containerMutations.d.ts +20 -3
  51. package/internal/validators/operation/containerMutations.js +18 -20
  52. package/internal/validators/operation/containerMutations.js.map +1 -1
  53. package/internal/validators/operation/index.d.ts +1 -1
  54. package/internal/validators/operation/index.js +1 -1
  55. package/internal/validators/operation/index.js.map +1 -1
  56. package/internal/validators/operation/organizations.d.ts +17 -1
  57. package/internal/validators/operation/organizations.js +4 -2
  58. package/internal/validators/operation/organizations.js.map +1 -1
  59. package/internal/validators/operation/principals.d.ts +17 -1
  60. package/internal/validators/operation/principals.js +5 -2
  61. package/internal/validators/operation/principals.js.map +1 -1
  62. package/internal/validators/request/index.d.ts +1 -1
  63. package/internal/validators/request/index.js +1 -1
  64. package/internal/validators/request/index.js.map +1 -1
  65. package/internal/validators/request/organization.d.ts +15 -0
  66. package/internal/validators/request/organization.js +8 -0
  67. package/internal/validators/request/organization.js.map +1 -1
  68. package/internal/validators/response/areas/organizations.d.ts +3 -2
  69. package/internal/validators/response/areas/organizations.js +3 -2
  70. package/internal/validators/response/areas/organizations.js.map +1 -1
  71. package/internal/validators/response/areas/principals.d.ts +1 -1
  72. package/internal/validators/response/areas/principals.js +1 -1
  73. package/internal/validators/response/areas/principals.js.map +1 -1
  74. package/internal/validators/response/committedReadModel.d.ts +697 -0
  75. package/internal/validators/response/committedReadModel.js +52 -0
  76. package/internal/validators/response/committedReadModel.js.map +1 -0
  77. package/internal/validators/response/container.d.ts +52 -0
  78. package/internal/validators/response/container.js +3 -3
  79. package/internal/validators/response/container.js.map +1 -1
  80. package/internal/validators/response/organization.d.ts +0 -191
  81. package/internal/validators/response/organization.js +0 -7
  82. package/internal/validators/response/organization.js.map +1 -1
  83. package/internal/validators/response/organizationReadModel.d.ts +167 -0
  84. package/internal/validators/response/organizationReadModel.js +5 -0
  85. package/internal/validators/response/organizationReadModel.js.map +1 -1
  86. package/internal/validators/response/principal.d.ts +0 -403
  87. package/internal/validators/response/principal.js +0 -8
  88. package/internal/validators/response/principal.js.map +1 -1
  89. package/package.json +1 -1
  90. package/workflows/container-contents/container-state/organizationHost.d.ts +9 -0
  91. package/workflows/container-contents/container-state/organizationHost.js.map +1 -1
  92. package/workflows/container-contents/container-state/remote.js +6 -0
  93. package/workflows/container-contents/container-state/remote.js.map +1 -1
  94. package/workflows/containers/child/share/index.d.ts +4 -2
  95. package/workflows/containers/child/share/index.js +37 -20
  96. package/workflows/containers/child/share/index.js.map +1 -1
  97. package/workflows/organizations/containerContentsHost.js +20 -1
  98. package/workflows/organizations/containerContentsHost.js.map +1 -1
  99. package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js +5 -1
  100. package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js.map +1 -1
  101. package/workflows/organizations/groups/createCurrentOrganizationGroup.js +8 -1
  102. package/workflows/organizations/groups/createCurrentOrganizationGroup.js.map +1 -1
  103. package/workflows/organizations/index.d.ts +1 -0
  104. package/workflows/organizations/index.js +1 -0
  105. package/workflows/organizations/index.js.map +1 -1
  106. package/workflows/organizations/readModel/committedReadModel.d.ts +66 -0
  107. package/workflows/organizations/readModel/committedReadModel.js +150 -0
  108. package/workflows/organizations/readModel/committedReadModel.js.map +1 -0
  109. package/workflows/organizations/readModel/readModelProjection.d.ts +15 -2
  110. package/workflows/organizations/readModel/readModelProjection.js +26 -4
  111. package/workflows/organizations/readModel/readModelProjection.js.map +1 -1
@@ -0,0 +1,697 @@
1
+ import { z } from "zod";
2
+ import { type OrganizationReadModelDeltaResponse } from "./organizationReadModel.js";
3
+ /** The delta a mutation response carried, if well formed for `organizationId`. */
4
+ export declare function committedReadModelDelta(value: unknown, organizationId: string): OrganizationReadModelDeltaResponse | undefined;
5
+ export declare const CreateOrganizationGroupResponseSchema: z.ZodType<{
6
+ group: {
7
+ createdAt: string;
8
+ currentState: {
9
+ keyEpoch: number;
10
+ keyFingerprint: string;
11
+ memberCount: number;
12
+ stateHash: string;
13
+ version: number;
14
+ } | null;
15
+ groupId: string;
16
+ isBuiltin: boolean;
17
+ organizationId: string;
18
+ };
19
+ organizationPolicy: {
20
+ containerMutations: {
21
+ containerKek: {
22
+ containerKeyEpoch: number;
23
+ containerKeyEpochId: string;
24
+ keyEpochHash: string;
25
+ keyringHash: string | null;
26
+ keyTargetHash: string;
27
+ parentContainerKeyEpochId: string | null;
28
+ };
29
+ bundleDigest: string;
30
+ containerId: string;
31
+ createdAt: string;
32
+ eventHash: string;
33
+ manifestHead: {
34
+ epoch: number;
35
+ manifestHash: string;
36
+ };
37
+ organizationId: string;
38
+ parentId: string | null;
39
+ updatedAt: string;
40
+ systemSlot?: string | null | undefined;
41
+ }[];
42
+ createdAt: string;
43
+ head: {
44
+ keyEpoch: number;
45
+ keyFingerprint: string;
46
+ principalId: string;
47
+ principalType: "group" | "organization";
48
+ stateHash: string;
49
+ version: number;
50
+ };
51
+ };
52
+ readModel?: unknown;
53
+ }, {
54
+ group: {
55
+ createdAt: string;
56
+ currentState: {
57
+ keyEpoch: number;
58
+ keyFingerprint: string;
59
+ memberCount: number;
60
+ stateHash: string;
61
+ version: number;
62
+ } | null;
63
+ groupId: string;
64
+ isBuiltin: boolean;
65
+ organizationId: string;
66
+ };
67
+ organizationPolicy: {
68
+ containerMutations: {
69
+ containerKek: {
70
+ containerKeyEpoch: number;
71
+ containerKeyEpochId: string;
72
+ keyEpochHash: string;
73
+ keyringHash: string | null;
74
+ keyTargetHash: string;
75
+ parentContainerKeyEpochId: string | null;
76
+ };
77
+ bundleDigest: string;
78
+ containerId: string;
79
+ createdAt: string;
80
+ eventHash: string;
81
+ manifestHead: {
82
+ epoch: number;
83
+ manifestHash: string;
84
+ };
85
+ organizationId: string;
86
+ parentId: string | null;
87
+ updatedAt: string;
88
+ systemSlot?: string | null | undefined;
89
+ }[];
90
+ createdAt: string;
91
+ head: {
92
+ keyEpoch: number;
93
+ keyFingerprint: string;
94
+ principalId: string;
95
+ principalType: "group" | "organization";
96
+ stateHash: string;
97
+ version: number;
98
+ };
99
+ };
100
+ readModel?: unknown;
101
+ }, z.core.$ZodTypeInternals<{
102
+ group: {
103
+ createdAt: string;
104
+ currentState: {
105
+ keyEpoch: number;
106
+ keyFingerprint: string;
107
+ memberCount: number;
108
+ stateHash: string;
109
+ version: number;
110
+ } | null;
111
+ groupId: string;
112
+ isBuiltin: boolean;
113
+ organizationId: string;
114
+ };
115
+ organizationPolicy: {
116
+ containerMutations: {
117
+ containerKek: {
118
+ containerKeyEpoch: number;
119
+ containerKeyEpochId: string;
120
+ keyEpochHash: string;
121
+ keyringHash: string | null;
122
+ keyTargetHash: string;
123
+ parentContainerKeyEpochId: string | null;
124
+ };
125
+ bundleDigest: string;
126
+ containerId: string;
127
+ createdAt: string;
128
+ eventHash: string;
129
+ manifestHead: {
130
+ epoch: number;
131
+ manifestHash: string;
132
+ };
133
+ organizationId: string;
134
+ parentId: string | null;
135
+ updatedAt: string;
136
+ systemSlot?: string | null | undefined;
137
+ }[];
138
+ createdAt: string;
139
+ head: {
140
+ keyEpoch: number;
141
+ keyFingerprint: string;
142
+ principalId: string;
143
+ principalType: "group" | "organization";
144
+ stateHash: string;
145
+ version: number;
146
+ };
147
+ };
148
+ readModel?: unknown;
149
+ }, {
150
+ group: {
151
+ createdAt: string;
152
+ currentState: {
153
+ keyEpoch: number;
154
+ keyFingerprint: string;
155
+ memberCount: number;
156
+ stateHash: string;
157
+ version: number;
158
+ } | null;
159
+ groupId: string;
160
+ isBuiltin: boolean;
161
+ organizationId: string;
162
+ };
163
+ organizationPolicy: {
164
+ containerMutations: {
165
+ containerKek: {
166
+ containerKeyEpoch: number;
167
+ containerKeyEpochId: string;
168
+ keyEpochHash: string;
169
+ keyringHash: string | null;
170
+ keyTargetHash: string;
171
+ parentContainerKeyEpochId: string | null;
172
+ };
173
+ bundleDigest: string;
174
+ containerId: string;
175
+ createdAt: string;
176
+ eventHash: string;
177
+ manifestHead: {
178
+ epoch: number;
179
+ manifestHash: string;
180
+ };
181
+ organizationId: string;
182
+ parentId: string | null;
183
+ updatedAt: string;
184
+ systemSlot?: string | null | undefined;
185
+ }[];
186
+ createdAt: string;
187
+ head: {
188
+ keyEpoch: number;
189
+ keyFingerprint: string;
190
+ principalId: string;
191
+ principalType: "group" | "organization";
192
+ stateHash: string;
193
+ version: number;
194
+ };
195
+ };
196
+ readModel?: unknown;
197
+ }>>;
198
+ export type CreateOrganizationGroupResponse = z.infer<typeof CreateOrganizationGroupResponseSchema>;
199
+ export declare function isCreateOrganizationGroupResponse(value: unknown): value is CreateOrganizationGroupResponse;
200
+ export declare const CommitOrganizationGroupPolicyResponseSchema: z.ZodType<{
201
+ groupPolicy: {
202
+ containerMutations: {
203
+ containerKek: {
204
+ containerKeyEpoch: number;
205
+ containerKeyEpochId: string;
206
+ keyEpochHash: string;
207
+ keyringHash: string | null;
208
+ keyTargetHash: string;
209
+ parentContainerKeyEpochId: string | null;
210
+ };
211
+ bundleDigest: string;
212
+ containerId: string;
213
+ createdAt: string;
214
+ eventHash: string;
215
+ manifestHead: {
216
+ epoch: number;
217
+ manifestHash: string;
218
+ };
219
+ organizationId: string;
220
+ parentId: string | null;
221
+ updatedAt: string;
222
+ systemSlot?: string | null | undefined;
223
+ }[];
224
+ createdAt: string;
225
+ head: {
226
+ keyEpoch: number;
227
+ keyFingerprint: string;
228
+ principalId: string;
229
+ principalType: "group" | "organization";
230
+ stateHash: string;
231
+ version: number;
232
+ };
233
+ };
234
+ organizationPolicy: {
235
+ containerMutations: {
236
+ containerKek: {
237
+ containerKeyEpoch: number;
238
+ containerKeyEpochId: string;
239
+ keyEpochHash: string;
240
+ keyringHash: string | null;
241
+ keyTargetHash: string;
242
+ parentContainerKeyEpochId: string | null;
243
+ };
244
+ bundleDigest: string;
245
+ containerId: string;
246
+ createdAt: string;
247
+ eventHash: string;
248
+ manifestHead: {
249
+ epoch: number;
250
+ manifestHash: string;
251
+ };
252
+ organizationId: string;
253
+ parentId: string | null;
254
+ updatedAt: string;
255
+ systemSlot?: string | null | undefined;
256
+ }[];
257
+ createdAt: string;
258
+ head: {
259
+ keyEpoch: number;
260
+ keyFingerprint: string;
261
+ principalId: string;
262
+ principalType: "group" | "organization";
263
+ stateHash: string;
264
+ version: number;
265
+ };
266
+ };
267
+ memberPolicy?: {
268
+ containerMutations: {
269
+ containerKek: {
270
+ containerKeyEpoch: number;
271
+ containerKeyEpochId: string;
272
+ keyEpochHash: string;
273
+ keyringHash: string | null;
274
+ keyTargetHash: string;
275
+ parentContainerKeyEpochId: string | null;
276
+ };
277
+ bundleDigest: string;
278
+ containerId: string;
279
+ createdAt: string;
280
+ eventHash: string;
281
+ manifestHead: {
282
+ epoch: number;
283
+ manifestHash: string;
284
+ };
285
+ organizationId: string;
286
+ parentId: string | null;
287
+ updatedAt: string;
288
+ systemSlot?: string | null | undefined;
289
+ }[];
290
+ createdAt: string;
291
+ head: {
292
+ keyEpoch: number;
293
+ keyFingerprint: string;
294
+ principalId: string;
295
+ principalType: "group" | "organization";
296
+ stateHash: string;
297
+ version: number;
298
+ };
299
+ } | undefined;
300
+ readModel?: unknown;
301
+ }, {
302
+ groupPolicy: {
303
+ containerMutations: {
304
+ containerKek: {
305
+ containerKeyEpoch: number;
306
+ containerKeyEpochId: string;
307
+ keyEpochHash: string;
308
+ keyringHash: string | null;
309
+ keyTargetHash: string;
310
+ parentContainerKeyEpochId: string | null;
311
+ };
312
+ bundleDigest: string;
313
+ containerId: string;
314
+ createdAt: string;
315
+ eventHash: string;
316
+ manifestHead: {
317
+ epoch: number;
318
+ manifestHash: string;
319
+ };
320
+ organizationId: string;
321
+ parentId: string | null;
322
+ updatedAt: string;
323
+ systemSlot?: string | null | undefined;
324
+ }[];
325
+ createdAt: string;
326
+ head: {
327
+ keyEpoch: number;
328
+ keyFingerprint: string;
329
+ principalId: string;
330
+ principalType: "group" | "organization";
331
+ stateHash: string;
332
+ version: number;
333
+ };
334
+ };
335
+ organizationPolicy: {
336
+ containerMutations: {
337
+ containerKek: {
338
+ containerKeyEpoch: number;
339
+ containerKeyEpochId: string;
340
+ keyEpochHash: string;
341
+ keyringHash: string | null;
342
+ keyTargetHash: string;
343
+ parentContainerKeyEpochId: string | null;
344
+ };
345
+ bundleDigest: string;
346
+ containerId: string;
347
+ createdAt: string;
348
+ eventHash: string;
349
+ manifestHead: {
350
+ epoch: number;
351
+ manifestHash: string;
352
+ };
353
+ organizationId: string;
354
+ parentId: string | null;
355
+ updatedAt: string;
356
+ systemSlot?: string | null | undefined;
357
+ }[];
358
+ createdAt: string;
359
+ head: {
360
+ keyEpoch: number;
361
+ keyFingerprint: string;
362
+ principalId: string;
363
+ principalType: "group" | "organization";
364
+ stateHash: string;
365
+ version: number;
366
+ };
367
+ };
368
+ memberPolicy?: {
369
+ containerMutations: {
370
+ containerKek: {
371
+ containerKeyEpoch: number;
372
+ containerKeyEpochId: string;
373
+ keyEpochHash: string;
374
+ keyringHash: string | null;
375
+ keyTargetHash: string;
376
+ parentContainerKeyEpochId: string | null;
377
+ };
378
+ bundleDigest: string;
379
+ containerId: string;
380
+ createdAt: string;
381
+ eventHash: string;
382
+ manifestHead: {
383
+ epoch: number;
384
+ manifestHash: string;
385
+ };
386
+ organizationId: string;
387
+ parentId: string | null;
388
+ updatedAt: string;
389
+ systemSlot?: string | null | undefined;
390
+ }[];
391
+ createdAt: string;
392
+ head: {
393
+ keyEpoch: number;
394
+ keyFingerprint: string;
395
+ principalId: string;
396
+ principalType: "group" | "organization";
397
+ stateHash: string;
398
+ version: number;
399
+ };
400
+ } | undefined;
401
+ readModel?: unknown;
402
+ }, z.core.$ZodTypeInternals<{
403
+ groupPolicy: {
404
+ containerMutations: {
405
+ containerKek: {
406
+ containerKeyEpoch: number;
407
+ containerKeyEpochId: string;
408
+ keyEpochHash: string;
409
+ keyringHash: string | null;
410
+ keyTargetHash: string;
411
+ parentContainerKeyEpochId: string | null;
412
+ };
413
+ bundleDigest: string;
414
+ containerId: string;
415
+ createdAt: string;
416
+ eventHash: string;
417
+ manifestHead: {
418
+ epoch: number;
419
+ manifestHash: string;
420
+ };
421
+ organizationId: string;
422
+ parentId: string | null;
423
+ updatedAt: string;
424
+ systemSlot?: string | null | undefined;
425
+ }[];
426
+ createdAt: string;
427
+ head: {
428
+ keyEpoch: number;
429
+ keyFingerprint: string;
430
+ principalId: string;
431
+ principalType: "group" | "organization";
432
+ stateHash: string;
433
+ version: number;
434
+ };
435
+ };
436
+ organizationPolicy: {
437
+ containerMutations: {
438
+ containerKek: {
439
+ containerKeyEpoch: number;
440
+ containerKeyEpochId: string;
441
+ keyEpochHash: string;
442
+ keyringHash: string | null;
443
+ keyTargetHash: string;
444
+ parentContainerKeyEpochId: string | null;
445
+ };
446
+ bundleDigest: string;
447
+ containerId: string;
448
+ createdAt: string;
449
+ eventHash: string;
450
+ manifestHead: {
451
+ epoch: number;
452
+ manifestHash: string;
453
+ };
454
+ organizationId: string;
455
+ parentId: string | null;
456
+ updatedAt: string;
457
+ systemSlot?: string | null | undefined;
458
+ }[];
459
+ createdAt: string;
460
+ head: {
461
+ keyEpoch: number;
462
+ keyFingerprint: string;
463
+ principalId: string;
464
+ principalType: "group" | "organization";
465
+ stateHash: string;
466
+ version: number;
467
+ };
468
+ };
469
+ memberPolicy?: {
470
+ containerMutations: {
471
+ containerKek: {
472
+ containerKeyEpoch: number;
473
+ containerKeyEpochId: string;
474
+ keyEpochHash: string;
475
+ keyringHash: string | null;
476
+ keyTargetHash: string;
477
+ parentContainerKeyEpochId: string | null;
478
+ };
479
+ bundleDigest: string;
480
+ containerId: string;
481
+ createdAt: string;
482
+ eventHash: string;
483
+ manifestHead: {
484
+ epoch: number;
485
+ manifestHash: string;
486
+ };
487
+ organizationId: string;
488
+ parentId: string | null;
489
+ updatedAt: string;
490
+ systemSlot?: string | null | undefined;
491
+ }[];
492
+ createdAt: string;
493
+ head: {
494
+ keyEpoch: number;
495
+ keyFingerprint: string;
496
+ principalId: string;
497
+ principalType: "group" | "organization";
498
+ stateHash: string;
499
+ version: number;
500
+ };
501
+ } | undefined;
502
+ readModel?: unknown;
503
+ }, {
504
+ groupPolicy: {
505
+ containerMutations: {
506
+ containerKek: {
507
+ containerKeyEpoch: number;
508
+ containerKeyEpochId: string;
509
+ keyEpochHash: string;
510
+ keyringHash: string | null;
511
+ keyTargetHash: string;
512
+ parentContainerKeyEpochId: string | null;
513
+ };
514
+ bundleDigest: string;
515
+ containerId: string;
516
+ createdAt: string;
517
+ eventHash: string;
518
+ manifestHead: {
519
+ epoch: number;
520
+ manifestHash: string;
521
+ };
522
+ organizationId: string;
523
+ parentId: string | null;
524
+ updatedAt: string;
525
+ systemSlot?: string | null | undefined;
526
+ }[];
527
+ createdAt: string;
528
+ head: {
529
+ keyEpoch: number;
530
+ keyFingerprint: string;
531
+ principalId: string;
532
+ principalType: "group" | "organization";
533
+ stateHash: string;
534
+ version: number;
535
+ };
536
+ };
537
+ organizationPolicy: {
538
+ containerMutations: {
539
+ containerKek: {
540
+ containerKeyEpoch: number;
541
+ containerKeyEpochId: string;
542
+ keyEpochHash: string;
543
+ keyringHash: string | null;
544
+ keyTargetHash: string;
545
+ parentContainerKeyEpochId: string | null;
546
+ };
547
+ bundleDigest: string;
548
+ containerId: string;
549
+ createdAt: string;
550
+ eventHash: string;
551
+ manifestHead: {
552
+ epoch: number;
553
+ manifestHash: string;
554
+ };
555
+ organizationId: string;
556
+ parentId: string | null;
557
+ updatedAt: string;
558
+ systemSlot?: string | null | undefined;
559
+ }[];
560
+ createdAt: string;
561
+ head: {
562
+ keyEpoch: number;
563
+ keyFingerprint: string;
564
+ principalId: string;
565
+ principalType: "group" | "organization";
566
+ stateHash: string;
567
+ version: number;
568
+ };
569
+ };
570
+ memberPolicy?: {
571
+ containerMutations: {
572
+ containerKek: {
573
+ containerKeyEpoch: number;
574
+ containerKeyEpochId: string;
575
+ keyEpochHash: string;
576
+ keyringHash: string | null;
577
+ keyTargetHash: string;
578
+ parentContainerKeyEpochId: string | null;
579
+ };
580
+ bundleDigest: string;
581
+ containerId: string;
582
+ createdAt: string;
583
+ eventHash: string;
584
+ manifestHead: {
585
+ epoch: number;
586
+ manifestHash: string;
587
+ };
588
+ organizationId: string;
589
+ parentId: string | null;
590
+ updatedAt: string;
591
+ systemSlot?: string | null | undefined;
592
+ }[];
593
+ createdAt: string;
594
+ head: {
595
+ keyEpoch: number;
596
+ keyFingerprint: string;
597
+ principalId: string;
598
+ principalType: "group" | "organization";
599
+ stateHash: string;
600
+ version: number;
601
+ };
602
+ } | undefined;
603
+ readModel?: unknown;
604
+ }>>;
605
+ export type CommitOrganizationGroupPolicyResponse = z.infer<typeof CommitOrganizationGroupPolicyResponseSchema>;
606
+ export declare function isCommitOrganizationGroupPolicyResponse(value: unknown): value is CommitOrganizationGroupPolicyResponse;
607
+ export declare const ContainerShareResponseSchema: z.ZodType<{
608
+ containerKek: {
609
+ containerKeyEpoch: number;
610
+ containerKeyEpochId: string;
611
+ keyEpochHash: string;
612
+ keyringHash: string | null;
613
+ keyTargetHash: string;
614
+ parentContainerKeyEpochId: string | null;
615
+ };
616
+ bundleDigest: string;
617
+ containerId: string;
618
+ createdAt: string;
619
+ eventHash: string;
620
+ manifestHead: {
621
+ epoch: number;
622
+ manifestHash: string;
623
+ };
624
+ organizationId: string;
625
+ parentId: string | null;
626
+ updatedAt: string;
627
+ readModel?: unknown;
628
+ systemSlot?: string | null | undefined;
629
+ }, {
630
+ containerKek: {
631
+ containerKeyEpoch: number;
632
+ containerKeyEpochId: string;
633
+ keyEpochHash: string;
634
+ keyringHash: string | null;
635
+ keyTargetHash: string;
636
+ parentContainerKeyEpochId: string | null;
637
+ };
638
+ bundleDigest: string;
639
+ containerId: string;
640
+ createdAt: string;
641
+ eventHash: string;
642
+ manifestHead: {
643
+ epoch: number;
644
+ manifestHash: string;
645
+ };
646
+ organizationId: string;
647
+ parentId: string | null;
648
+ updatedAt: string;
649
+ readModel?: unknown;
650
+ systemSlot?: string | null | undefined;
651
+ }, z.core.$ZodTypeInternals<{
652
+ containerKek: {
653
+ containerKeyEpoch: number;
654
+ containerKeyEpochId: string;
655
+ keyEpochHash: string;
656
+ keyringHash: string | null;
657
+ keyTargetHash: string;
658
+ parentContainerKeyEpochId: string | null;
659
+ };
660
+ bundleDigest: string;
661
+ containerId: string;
662
+ createdAt: string;
663
+ eventHash: string;
664
+ manifestHead: {
665
+ epoch: number;
666
+ manifestHash: string;
667
+ };
668
+ organizationId: string;
669
+ parentId: string | null;
670
+ updatedAt: string;
671
+ readModel?: unknown;
672
+ systemSlot?: string | null | undefined;
673
+ }, {
674
+ containerKek: {
675
+ containerKeyEpoch: number;
676
+ containerKeyEpochId: string;
677
+ keyEpochHash: string;
678
+ keyringHash: string | null;
679
+ keyTargetHash: string;
680
+ parentContainerKeyEpochId: string | null;
681
+ };
682
+ bundleDigest: string;
683
+ containerId: string;
684
+ createdAt: string;
685
+ eventHash: string;
686
+ manifestHead: {
687
+ epoch: number;
688
+ manifestHash: string;
689
+ };
690
+ organizationId: string;
691
+ parentId: string | null;
692
+ updatedAt: string;
693
+ readModel?: unknown;
694
+ systemSlot?: string | null | undefined;
695
+ }>>;
696
+ export type ContainerShareResponse = z.infer<typeof ContainerShareResponseSchema>;
697
+ export declare function isContainerShareResponse(value: unknown): value is ContainerShareResponse;