@tearleads/client-sdk 0.1.48 → 0.1.49

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 (46) hide show
  1. package/client/organizations/currentPrincipalMutations.js +36 -17
  2. package/client/organizations/currentPrincipalMutations.js.map +1 -1
  3. package/client/organizations/principalContainerMutations.js +1 -0
  4. package/client/organizations/principalContainerMutations.js.map +1 -1
  5. package/client/organizations/principalMutations.js +2 -2
  6. package/client/organizations/principalMutations.js.map +1 -1
  7. package/data/principals/principalMutationJournalShape.js +6 -0
  8. package/data/principals/principalMutationJournalShape.js.map +1 -1
  9. package/internal/api-client/ApiClient.d.ts +122 -0
  10. package/internal/api-client/principalPolicyRequests.d.ts +122 -0
  11. package/internal/validators/operation/principals.d.ts +1026 -206
  12. package/internal/validators/request/principal.d.ts +332 -0
  13. package/internal/validators/request/principal.js +1 -0
  14. package/internal/validators/request/principal.js.map +1 -1
  15. package/internal/validators/response/principal.d.ts +488 -0
  16. package/internal/validators/response/principal.js +1 -0
  17. package/internal/validators/response/principal.js.map +1 -1
  18. package/package.json +1 -1
  19. package/workflows/containers/child/rekeyProjection.d.ts +6 -1
  20. package/workflows/containers/child/rekeyProjection.js +41 -0
  21. package/workflows/containers/child/rekeyProjection.js.map +1 -1
  22. package/workflows/organizations/authoredPrincipalPolicyWarmer.js +25 -0
  23. package/workflows/organizations/authoredPrincipalPolicyWarmer.js.map +1 -0
  24. package/workflows/organizations/commitCurrentGroupPolicyMutation.js +101 -34
  25. package/workflows/organizations/commitCurrentGroupPolicyMutation.js.map +1 -1
  26. package/workflows/organizations/groupPolicyMutationContext.d.ts +5 -52
  27. package/workflows/organizations/groupPolicyMutationContext.js +2 -65
  28. package/workflows/organizations/groupPolicyMutationContext.js.map +1 -1
  29. package/workflows/organizations/precedingPrincipalRematerialization.js +31 -0
  30. package/workflows/organizations/precedingPrincipalRematerialization.js.map +1 -0
  31. package/workflows/organizations/principalContainerRematerialization.js +39 -7
  32. package/workflows/organizations/principalContainerRematerialization.js.map +1 -1
  33. package/workflows/organizations/principalContainerRematerializationPlanning.js +6 -1
  34. package/workflows/organizations/principalContainerRematerializationPlanning.js.map +1 -1
  35. package/workflows/organizations/principalContainerRematerializationTargets.js +0 -11
  36. package/workflows/organizations/principalContainerRematerializationTargets.js.map +1 -1
  37. package/workflows/organizations/principalMutationReceipt.js +6 -0
  38. package/workflows/organizations/principalMutationReceipt.js.map +1 -1
  39. package/workflows/organizations/principalPolicyApi.d.ts +33 -0
  40. package/workflows/organizations/principalPolicyApi.js +2 -0
  41. package/workflows/organizations/principalPolicyApi.js.map +1 -0
  42. package/workflows/organizations/runtimeCurrentGroupMutation.js +36 -19
  43. package/workflows/organizations/runtimeCurrentGroupMutation.js.map +1 -1
  44. package/workflows/organizations/submitGroupPolicyCommit.d.ts +22 -0
  45. package/workflows/organizations/submitGroupPolicyCommit.js +71 -0
  46. package/workflows/organizations/submitGroupPolicyCommit.js.map +1 -0
@@ -1802,6 +1802,89 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
1802
1802
  userRecipientKeys?: Record<string, unknown>[] | undefined;
1803
1803
  }[] | undefined;
1804
1804
  };
1805
+ memberPolicy?: {
1806
+ encryptedPayload: {
1807
+ cipherSuite: "aes-256-gcm";
1808
+ ciphertext: string;
1809
+ ciphertextHash: string;
1810
+ };
1811
+ grants: {
1812
+ accessLevel: "admin" | "read" | "write";
1813
+ containerId: string;
1814
+ }[];
1815
+ memberEnvelopes: {
1816
+ kemCipherText: string;
1817
+ memberKeyFingerprint: string;
1818
+ userId: string;
1819
+ wrappedKey: string;
1820
+ }[];
1821
+ projection: {
1822
+ role: "member" | "admin";
1823
+ userId: string;
1824
+ }[];
1825
+ state: {
1826
+ encapsulationPublicKey: string;
1827
+ externalAuthority: {
1828
+ keyEpoch: number;
1829
+ keyFingerprint: string;
1830
+ principalId: string;
1831
+ principalType: "group";
1832
+ stateHash: string;
1833
+ version: number;
1834
+ } | null;
1835
+ grantCount: number;
1836
+ grantRoot: string;
1837
+ keyEpoch: number;
1838
+ keyFingerprint: string;
1839
+ memberCount: number;
1840
+ memberEnvelopesRoot: string;
1841
+ membershipMode: "projection";
1842
+ membershipRoot: string;
1843
+ payloadCiphertextHash: string;
1844
+ prevStateHash: string | null;
1845
+ principalId: string;
1846
+ principalType: "group" | "organization";
1847
+ projectionRoot: string;
1848
+ signature: string;
1849
+ signedAt: string;
1850
+ signerUserId: string;
1851
+ signerUserKeyFingerprint: string;
1852
+ version: number;
1853
+ };
1854
+ containerMutations?: {
1855
+ body: unknown;
1856
+ event: Record<string, unknown>;
1857
+ expectedManifestHash: string;
1858
+ keyEpoch: Record<string, unknown>;
1859
+ keyring: Record<string, unknown> | null;
1860
+ manifest: Record<string, unknown>;
1861
+ predecessorBridge: Record<string, unknown> | null;
1862
+ principalPolicies: Record<string, unknown>[];
1863
+ wraps: Record<string, unknown>[];
1864
+ containerManifestHistoryRefs?: {
1865
+ containerId: string;
1866
+ manifestHash: string;
1867
+ }[] | undefined;
1868
+ destinationParentContainerPathRefs?: {
1869
+ containerId: string;
1870
+ manifestHash: string;
1871
+ }[] | undefined;
1872
+ parentContainerPathRefs?: {
1873
+ containerId: string;
1874
+ manifestHash: string;
1875
+ }[] | undefined;
1876
+ parentKekState?: Record<string, unknown> | null | undefined;
1877
+ previousContainerPathRefs?: {
1878
+ containerId: string;
1879
+ manifestHash: string;
1880
+ }[] | undefined;
1881
+ previousManifestRef?: {
1882
+ containerId: string;
1883
+ manifestHash: string;
1884
+ } | null | undefined;
1885
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
1886
+ }[] | undefined;
1887
+ } | undefined;
1805
1888
  }, {
1806
1889
  groupPolicy: {
1807
1890
  encryptedPayload: {
@@ -1969,6 +2052,89 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
1969
2052
  userRecipientKeys?: Record<string, unknown>[] | undefined;
1970
2053
  }[] | undefined;
1971
2054
  };
2055
+ memberPolicy?: {
2056
+ encryptedPayload: {
2057
+ cipherSuite: "aes-256-gcm";
2058
+ ciphertext: string;
2059
+ ciphertextHash: string;
2060
+ };
2061
+ grants: {
2062
+ accessLevel: "admin" | "read" | "write";
2063
+ containerId: string;
2064
+ }[];
2065
+ memberEnvelopes: {
2066
+ kemCipherText: string;
2067
+ memberKeyFingerprint: string;
2068
+ userId: string;
2069
+ wrappedKey: string;
2070
+ }[];
2071
+ projection: {
2072
+ role: "member" | "admin";
2073
+ userId: string;
2074
+ }[];
2075
+ state: {
2076
+ encapsulationPublicKey: string;
2077
+ externalAuthority: {
2078
+ keyEpoch: number;
2079
+ keyFingerprint: string;
2080
+ principalId: string;
2081
+ principalType: "group";
2082
+ stateHash: string;
2083
+ version: number;
2084
+ } | null;
2085
+ grantCount: number;
2086
+ grantRoot: string;
2087
+ keyEpoch: number;
2088
+ keyFingerprint: string;
2089
+ memberCount: number;
2090
+ memberEnvelopesRoot: string;
2091
+ membershipMode: "projection";
2092
+ membershipRoot: string;
2093
+ payloadCiphertextHash: string;
2094
+ prevStateHash: string | null;
2095
+ principalId: string;
2096
+ principalType: "group" | "organization";
2097
+ projectionRoot: string;
2098
+ signature: string;
2099
+ signedAt: string;
2100
+ signerUserId: string;
2101
+ signerUserKeyFingerprint: string;
2102
+ version: number;
2103
+ };
2104
+ containerMutations?: {
2105
+ body: unknown;
2106
+ event: Record<string, unknown>;
2107
+ expectedManifestHash: string;
2108
+ keyEpoch: Record<string, unknown>;
2109
+ keyring: Record<string, unknown> | null;
2110
+ manifest: Record<string, unknown>;
2111
+ predecessorBridge: Record<string, unknown> | null;
2112
+ principalPolicies: Record<string, unknown>[];
2113
+ wraps: Record<string, unknown>[];
2114
+ containerManifestHistoryRefs?: {
2115
+ containerId: string;
2116
+ manifestHash: string;
2117
+ }[] | undefined;
2118
+ destinationParentContainerPathRefs?: {
2119
+ containerId: string;
2120
+ manifestHash: string;
2121
+ }[] | undefined;
2122
+ parentContainerPathRefs?: {
2123
+ containerId: string;
2124
+ manifestHash: string;
2125
+ }[] | undefined;
2126
+ parentKekState?: Record<string, unknown> | null | undefined;
2127
+ previousContainerPathRefs?: {
2128
+ containerId: string;
2129
+ manifestHash: string;
2130
+ }[] | undefined;
2131
+ previousManifestRef?: {
2132
+ containerId: string;
2133
+ manifestHash: string;
2134
+ } | null | undefined;
2135
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
2136
+ }[] | undefined;
2137
+ } | undefined;
1972
2138
  }, z.core.$ZodTypeInternals<{
1973
2139
  groupPolicy: {
1974
2140
  encryptedPayload: {
@@ -2136,6 +2302,89 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2136
2302
  userRecipientKeys?: Record<string, unknown>[] | undefined;
2137
2303
  }[] | undefined;
2138
2304
  };
2305
+ memberPolicy?: {
2306
+ encryptedPayload: {
2307
+ cipherSuite: "aes-256-gcm";
2308
+ ciphertext: string;
2309
+ ciphertextHash: string;
2310
+ };
2311
+ grants: {
2312
+ accessLevel: "admin" | "read" | "write";
2313
+ containerId: string;
2314
+ }[];
2315
+ memberEnvelopes: {
2316
+ kemCipherText: string;
2317
+ memberKeyFingerprint: string;
2318
+ userId: string;
2319
+ wrappedKey: string;
2320
+ }[];
2321
+ projection: {
2322
+ role: "member" | "admin";
2323
+ userId: string;
2324
+ }[];
2325
+ state: {
2326
+ encapsulationPublicKey: string;
2327
+ externalAuthority: {
2328
+ keyEpoch: number;
2329
+ keyFingerprint: string;
2330
+ principalId: string;
2331
+ principalType: "group";
2332
+ stateHash: string;
2333
+ version: number;
2334
+ } | null;
2335
+ grantCount: number;
2336
+ grantRoot: string;
2337
+ keyEpoch: number;
2338
+ keyFingerprint: string;
2339
+ memberCount: number;
2340
+ memberEnvelopesRoot: string;
2341
+ membershipMode: "projection";
2342
+ membershipRoot: string;
2343
+ payloadCiphertextHash: string;
2344
+ prevStateHash: string | null;
2345
+ principalId: string;
2346
+ principalType: "group" | "organization";
2347
+ projectionRoot: string;
2348
+ signature: string;
2349
+ signedAt: string;
2350
+ signerUserId: string;
2351
+ signerUserKeyFingerprint: string;
2352
+ version: number;
2353
+ };
2354
+ containerMutations?: {
2355
+ body: unknown;
2356
+ event: Record<string, unknown>;
2357
+ expectedManifestHash: string;
2358
+ keyEpoch: Record<string, unknown>;
2359
+ keyring: Record<string, unknown> | null;
2360
+ manifest: Record<string, unknown>;
2361
+ predecessorBridge: Record<string, unknown> | null;
2362
+ principalPolicies: Record<string, unknown>[];
2363
+ wraps: Record<string, unknown>[];
2364
+ containerManifestHistoryRefs?: {
2365
+ containerId: string;
2366
+ manifestHash: string;
2367
+ }[] | undefined;
2368
+ destinationParentContainerPathRefs?: {
2369
+ containerId: string;
2370
+ manifestHash: string;
2371
+ }[] | undefined;
2372
+ parentContainerPathRefs?: {
2373
+ containerId: string;
2374
+ manifestHash: string;
2375
+ }[] | undefined;
2376
+ parentKekState?: Record<string, unknown> | null | undefined;
2377
+ previousContainerPathRefs?: {
2378
+ containerId: string;
2379
+ manifestHash: string;
2380
+ }[] | undefined;
2381
+ previousManifestRef?: {
2382
+ containerId: string;
2383
+ manifestHash: string;
2384
+ } | null | undefined;
2385
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
2386
+ }[] | undefined;
2387
+ } | undefined;
2139
2388
  }, {
2140
2389
  groupPolicy: {
2141
2390
  encryptedPayload: {
@@ -2246,204 +2495,776 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2246
2495
  keyEpoch: number;
2247
2496
  keyFingerprint: string;
2248
2497
  principalId: string;
2249
- principalType: "group";
2498
+ principalType: "group";
2499
+ stateHash: string;
2500
+ version: number;
2501
+ } | null;
2502
+ grantCount: number;
2503
+ grantRoot: string;
2504
+ keyEpoch: number;
2505
+ keyFingerprint: string;
2506
+ memberCount: number;
2507
+ memberEnvelopesRoot: string;
2508
+ membershipMode: "projection";
2509
+ membershipRoot: string;
2510
+ payloadCiphertextHash: string;
2511
+ prevStateHash: string | null;
2512
+ principalId: string;
2513
+ principalType: "group" | "organization";
2514
+ projectionRoot: string;
2515
+ signature: string;
2516
+ signedAt: string;
2517
+ signerUserId: string;
2518
+ signerUserKeyFingerprint: string;
2519
+ version: number;
2520
+ };
2521
+ containerMutations?: {
2522
+ body: unknown;
2523
+ event: Record<string, unknown>;
2524
+ expectedManifestHash: string;
2525
+ keyEpoch: Record<string, unknown>;
2526
+ keyring: Record<string, unknown> | null;
2527
+ manifest: Record<string, unknown>;
2528
+ predecessorBridge: Record<string, unknown> | null;
2529
+ principalPolicies: Record<string, unknown>[];
2530
+ wraps: Record<string, unknown>[];
2531
+ containerManifestHistoryRefs?: {
2532
+ containerId: string;
2533
+ manifestHash: string;
2534
+ }[] | undefined;
2535
+ destinationParentContainerPathRefs?: {
2536
+ containerId: string;
2537
+ manifestHash: string;
2538
+ }[] | undefined;
2539
+ parentContainerPathRefs?: {
2540
+ containerId: string;
2541
+ manifestHash: string;
2542
+ }[] | undefined;
2543
+ parentKekState?: Record<string, unknown> | null | undefined;
2544
+ previousContainerPathRefs?: {
2545
+ containerId: string;
2546
+ manifestHash: string;
2547
+ }[] | undefined;
2548
+ previousManifestRef?: {
2549
+ containerId: string;
2550
+ manifestHash: string;
2551
+ } | null | undefined;
2552
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
2553
+ }[] | undefined;
2554
+ };
2555
+ memberPolicy?: {
2556
+ encryptedPayload: {
2557
+ cipherSuite: "aes-256-gcm";
2558
+ ciphertext: string;
2559
+ ciphertextHash: string;
2560
+ };
2561
+ grants: {
2562
+ accessLevel: "admin" | "read" | "write";
2563
+ containerId: string;
2564
+ }[];
2565
+ memberEnvelopes: {
2566
+ kemCipherText: string;
2567
+ memberKeyFingerprint: string;
2568
+ userId: string;
2569
+ wrappedKey: string;
2570
+ }[];
2571
+ projection: {
2572
+ role: "member" | "admin";
2573
+ userId: string;
2574
+ }[];
2575
+ state: {
2576
+ encapsulationPublicKey: string;
2577
+ externalAuthority: {
2578
+ keyEpoch: number;
2579
+ keyFingerprint: string;
2580
+ principalId: string;
2581
+ principalType: "group";
2582
+ stateHash: string;
2583
+ version: number;
2584
+ } | null;
2585
+ grantCount: number;
2586
+ grantRoot: string;
2587
+ keyEpoch: number;
2588
+ keyFingerprint: string;
2589
+ memberCount: number;
2590
+ memberEnvelopesRoot: string;
2591
+ membershipMode: "projection";
2592
+ membershipRoot: string;
2593
+ payloadCiphertextHash: string;
2594
+ prevStateHash: string | null;
2595
+ principalId: string;
2596
+ principalType: "group" | "organization";
2597
+ projectionRoot: string;
2598
+ signature: string;
2599
+ signedAt: string;
2600
+ signerUserId: string;
2601
+ signerUserKeyFingerprint: string;
2602
+ version: number;
2603
+ };
2604
+ containerMutations?: {
2605
+ body: unknown;
2606
+ event: Record<string, unknown>;
2607
+ expectedManifestHash: string;
2608
+ keyEpoch: Record<string, unknown>;
2609
+ keyring: Record<string, unknown> | null;
2610
+ manifest: Record<string, unknown>;
2611
+ predecessorBridge: Record<string, unknown> | null;
2612
+ principalPolicies: Record<string, unknown>[];
2613
+ wraps: Record<string, unknown>[];
2614
+ containerManifestHistoryRefs?: {
2615
+ containerId: string;
2616
+ manifestHash: string;
2617
+ }[] | undefined;
2618
+ destinationParentContainerPathRefs?: {
2619
+ containerId: string;
2620
+ manifestHash: string;
2621
+ }[] | undefined;
2622
+ parentContainerPathRefs?: {
2623
+ containerId: string;
2624
+ manifestHash: string;
2625
+ }[] | undefined;
2626
+ parentKekState?: Record<string, unknown> | null | undefined;
2627
+ previousContainerPathRefs?: {
2628
+ containerId: string;
2629
+ manifestHash: string;
2630
+ }[] | undefined;
2631
+ previousManifestRef?: {
2632
+ containerId: string;
2633
+ manifestHash: string;
2634
+ } | null | undefined;
2635
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
2636
+ }[] | undefined;
2637
+ } | undefined;
2638
+ }>>;
2639
+ readonly failureResponses: {
2640
+ readonly 400: z.ZodType<{
2641
+ error: string;
2642
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2643
+ }, {
2644
+ error: string;
2645
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2646
+ }, z.core.$ZodTypeInternals<{
2647
+ error: string;
2648
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2649
+ }, {
2650
+ error: string;
2651
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2652
+ }>>;
2653
+ readonly 401: z.ZodType<{
2654
+ error: string;
2655
+ code?: "session_refresh_required" | undefined;
2656
+ }, {
2657
+ error: string;
2658
+ code?: "session_refresh_required" | undefined;
2659
+ }, z.core.$ZodTypeInternals<{
2660
+ error: string;
2661
+ code?: "session_refresh_required" | undefined;
2662
+ }, {
2663
+ error: string;
2664
+ code?: "session_refresh_required" | undefined;
2665
+ }>>;
2666
+ readonly 402: z.ZodType<{
2667
+ error: string;
2668
+ organizationId: string;
2669
+ reason: "billing_inactive" | "sync_seat_unassigned";
2670
+ }, {
2671
+ error: string;
2672
+ organizationId: string;
2673
+ reason: "billing_inactive" | "sync_seat_unassigned";
2674
+ }, z.core.$ZodTypeInternals<{
2675
+ error: string;
2676
+ organizationId: string;
2677
+ reason: "billing_inactive" | "sync_seat_unassigned";
2678
+ }, {
2679
+ error: string;
2680
+ organizationId: string;
2681
+ reason: "billing_inactive" | "sync_seat_unassigned";
2682
+ }>>;
2683
+ readonly 403: z.ZodType<{
2684
+ error: string;
2685
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2686
+ }, {
2687
+ error: string;
2688
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2689
+ }, z.core.$ZodTypeInternals<{
2690
+ error: string;
2691
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2692
+ }, {
2693
+ error: string;
2694
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2695
+ }>>;
2696
+ readonly 404: z.ZodType<{
2697
+ error: string;
2698
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2699
+ }, {
2700
+ error: string;
2701
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2702
+ }, z.core.$ZodTypeInternals<{
2703
+ error: string;
2704
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2705
+ }, {
2706
+ error: string;
2707
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2708
+ }>>;
2709
+ readonly 409: z.ZodUnion<readonly [z.ZodType<{
2710
+ error: string;
2711
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2712
+ }, {
2713
+ error: string;
2714
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2715
+ }, z.core.$ZodTypeInternals<{
2716
+ error: string;
2717
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2718
+ }, {
2719
+ error: string;
2720
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2721
+ }>>, z.ZodType<{
2722
+ code: "container_descendant_rekeys_required";
2723
+ error: string;
2724
+ requiredContainerIds: string[];
2725
+ }, {
2726
+ code: "container_descendant_rekeys_required";
2727
+ error: string;
2728
+ requiredContainerIds: string[];
2729
+ }, z.core.$ZodTypeInternals<{
2730
+ code: "container_descendant_rekeys_required";
2731
+ error: string;
2732
+ requiredContainerIds: string[];
2733
+ }, {
2734
+ code: "container_descendant_rekeys_required";
2735
+ error: string;
2736
+ requiredContainerIds: string[];
2737
+ }>>]>;
2738
+ readonly 500: z.ZodType<{
2739
+ error: string;
2740
+ }, {
2741
+ error: string;
2742
+ }, z.core.$ZodTypeInternals<{
2743
+ error: string;
2744
+ }, {
2745
+ error: string;
2746
+ }>>;
2747
+ readonly 503: z.ZodType<{
2748
+ error: string;
2749
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | "principal_history_preparation_unavailable" | undefined;
2750
+ committed?: boolean | undefined;
2751
+ }, {
2752
+ error: string;
2753
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | "principal_history_preparation_unavailable" | undefined;
2754
+ committed?: boolean | undefined;
2755
+ }, z.core.$ZodTypeInternals<{
2756
+ error: string;
2757
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | "principal_history_preparation_unavailable" | undefined;
2758
+ committed?: boolean | undefined;
2759
+ }, {
2760
+ error: string;
2761
+ code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | "principal_history_preparation_unavailable" | undefined;
2762
+ committed?: boolean | undefined;
2763
+ }>>;
2764
+ };
2765
+ readonly failureStatuses: readonly [400, 401, 402, 403, 404, 409, 500, 503];
2766
+ readonly id: "organizations.groups.policy.commit";
2767
+ readonly method: "PUT";
2768
+ readonly params: z.ZodObject<{
2769
+ organizationId: z.ZodCustom<string, string>;
2770
+ groupId: z.ZodCustom<string, string>;
2771
+ }, z.core.$strict>;
2772
+ readonly path: "/organizations/{organizationId}/groups/{groupId}/policy-commit";
2773
+ readonly responseDescriptions: {
2774
+ readonly 202: "The attempted operation rolled back. Retry the identical request to continue verification preparation.";
2775
+ };
2776
+ readonly responses: {
2777
+ readonly 200: z.ZodType<{
2778
+ groupPolicy: {
2779
+ containerMutations: {
2780
+ createdAt: string;
2781
+ manifestHead: {
2782
+ epoch: number;
2783
+ manifestHash: string;
2784
+ };
2785
+ organizationId: string;
2786
+ parentId: string | null;
2787
+ referencedPrincipalHeads: {
2788
+ principalType: "group";
2789
+ keyEpoch: number;
2790
+ keyFingerprint: string;
2791
+ principalId: string;
2792
+ stateHash: string;
2793
+ version: number;
2794
+ }[];
2795
+ updatedAt: string;
2796
+ accessManifest: {
2797
+ event: {
2798
+ body: unknown;
2799
+ event: Record<string, unknown>;
2800
+ eventHash: string;
2801
+ };
2802
+ manifest: Record<string, unknown>;
2803
+ manifestHash: string;
2804
+ state: Record<string, unknown>;
2805
+ };
2806
+ containerId: string;
2807
+ containerKek: {
2808
+ accessManifestHash: string;
2809
+ containerId: string;
2810
+ containerKeyEpoch: number;
2811
+ containerKeyEpochId: string;
2812
+ containerManifestHistory: {
2813
+ event: {
2814
+ body: unknown;
2815
+ event: Record<string, unknown>;
2816
+ eventHash: string;
2817
+ };
2818
+ manifest: Record<string, unknown>;
2819
+ manifestHash: string;
2820
+ state: Record<string, unknown>;
2821
+ }[];
2822
+ keyEpoch: Record<string, unknown>;
2823
+ keyEpochHash: string;
2824
+ keyring: {
2825
+ containerId: string;
2826
+ containerKeyEpochId: string;
2827
+ iv: string;
2828
+ sealed: string;
2829
+ sealingSuite: string;
2830
+ version: number;
2831
+ } | null;
2832
+ keyTargetHash: string;
2833
+ parentContainerKeyEpochId: string | null;
2834
+ recipientTargets: Record<string, unknown>[];
2835
+ wraps: Record<string, unknown>[];
2836
+ };
2837
+ systemSlot?: string | null | undefined;
2838
+ }[];
2839
+ currentGrants: {
2840
+ accessLevel: "admin" | "read" | "write";
2841
+ containerId: string;
2842
+ }[];
2843
+ currentMemberEnvelopes: {
2844
+ envelopes: {
2845
+ kemCipherText: string;
2846
+ memberKeyFingerprint: string;
2847
+ userId: string;
2848
+ wrappedKey: string;
2849
+ }[];
2850
+ epoch: number;
2851
+ principalId: string;
2852
+ principalType: "group" | "organization";
2853
+ stateHash: string;
2854
+ };
2855
+ currentPayload: {
2856
+ cipherSuite: "aes-256-gcm";
2857
+ ciphertext: string;
2858
+ ciphertextHash: string;
2859
+ createdAt: string;
2860
+ principalId: string;
2861
+ principalType: "group" | "organization";
2862
+ stateHash: string;
2863
+ };
2864
+ currentProjection: {
2865
+ role: "member" | "admin";
2866
+ userId: string;
2867
+ }[];
2868
+ currentState: {
2869
+ createdAt: string;
2870
+ encapsulationPublicKey: string;
2871
+ externalAuthority: {
2872
+ keyEpoch: number;
2873
+ keyFingerprint: string;
2874
+ principalId: string;
2875
+ principalType: "group";
2876
+ stateHash: string;
2877
+ version: number;
2878
+ } | null;
2879
+ grantCount: number;
2880
+ grantRoot: string;
2881
+ keyEpoch: number;
2882
+ keyFingerprint: string;
2883
+ memberCount: number;
2884
+ memberEnvelopesRoot: string;
2885
+ membershipMode: "projection";
2886
+ membershipRoot: string;
2887
+ payloadCiphertextHash: string;
2888
+ prevStateHash: string | null;
2889
+ principalId: string;
2890
+ principalType: "group" | "organization";
2891
+ projectionRoot: string;
2892
+ signature: string;
2893
+ signedAt: string;
2894
+ signerUserId: string;
2895
+ signerUserKeyFingerprint: string;
2896
+ stateHash: string;
2897
+ version: number;
2898
+ };
2899
+ };
2900
+ organizationPolicy: {
2901
+ containerMutations: {
2902
+ createdAt: string;
2903
+ manifestHead: {
2904
+ epoch: number;
2905
+ manifestHash: string;
2906
+ };
2907
+ organizationId: string;
2908
+ parentId: string | null;
2909
+ referencedPrincipalHeads: {
2910
+ principalType: "group";
2911
+ keyEpoch: number;
2912
+ keyFingerprint: string;
2913
+ principalId: string;
2914
+ stateHash: string;
2915
+ version: number;
2916
+ }[];
2917
+ updatedAt: string;
2918
+ accessManifest: {
2919
+ event: {
2920
+ body: unknown;
2921
+ event: Record<string, unknown>;
2922
+ eventHash: string;
2923
+ };
2924
+ manifest: Record<string, unknown>;
2925
+ manifestHash: string;
2926
+ state: Record<string, unknown>;
2927
+ };
2928
+ containerId: string;
2929
+ containerKek: {
2930
+ accessManifestHash: string;
2931
+ containerId: string;
2932
+ containerKeyEpoch: number;
2933
+ containerKeyEpochId: string;
2934
+ containerManifestHistory: {
2935
+ event: {
2936
+ body: unknown;
2937
+ event: Record<string, unknown>;
2938
+ eventHash: string;
2939
+ };
2940
+ manifest: Record<string, unknown>;
2941
+ manifestHash: string;
2942
+ state: Record<string, unknown>;
2943
+ }[];
2944
+ keyEpoch: Record<string, unknown>;
2945
+ keyEpochHash: string;
2946
+ keyring: {
2947
+ containerId: string;
2948
+ containerKeyEpochId: string;
2949
+ iv: string;
2950
+ sealed: string;
2951
+ sealingSuite: string;
2952
+ version: number;
2953
+ } | null;
2954
+ keyTargetHash: string;
2955
+ parentContainerKeyEpochId: string | null;
2956
+ recipientTargets: Record<string, unknown>[];
2957
+ wraps: Record<string, unknown>[];
2958
+ };
2959
+ systemSlot?: string | null | undefined;
2960
+ }[];
2961
+ currentGrants: {
2962
+ accessLevel: "admin" | "read" | "write";
2963
+ containerId: string;
2964
+ }[];
2965
+ currentMemberEnvelopes: {
2966
+ envelopes: {
2967
+ kemCipherText: string;
2968
+ memberKeyFingerprint: string;
2969
+ userId: string;
2970
+ wrappedKey: string;
2971
+ }[];
2972
+ epoch: number;
2973
+ principalId: string;
2974
+ principalType: "group" | "organization";
2975
+ stateHash: string;
2976
+ };
2977
+ currentPayload: {
2978
+ cipherSuite: "aes-256-gcm";
2979
+ ciphertext: string;
2980
+ ciphertextHash: string;
2981
+ createdAt: string;
2982
+ principalId: string;
2983
+ principalType: "group" | "organization";
2984
+ stateHash: string;
2985
+ };
2986
+ currentProjection: {
2987
+ role: "member" | "admin";
2988
+ userId: string;
2989
+ }[];
2990
+ currentState: {
2991
+ createdAt: string;
2992
+ encapsulationPublicKey: string;
2993
+ externalAuthority: {
2994
+ keyEpoch: number;
2995
+ keyFingerprint: string;
2996
+ principalId: string;
2997
+ principalType: "group";
2998
+ stateHash: string;
2999
+ version: number;
3000
+ } | null;
3001
+ grantCount: number;
3002
+ grantRoot: string;
3003
+ keyEpoch: number;
3004
+ keyFingerprint: string;
3005
+ memberCount: number;
3006
+ memberEnvelopesRoot: string;
3007
+ membershipMode: "projection";
3008
+ membershipRoot: string;
3009
+ payloadCiphertextHash: string;
3010
+ prevStateHash: string | null;
3011
+ principalId: string;
3012
+ principalType: "group" | "organization";
3013
+ projectionRoot: string;
3014
+ signature: string;
3015
+ signedAt: string;
3016
+ signerUserId: string;
3017
+ signerUserKeyFingerprint: string;
3018
+ stateHash: string;
3019
+ version: number;
3020
+ };
3021
+ };
3022
+ memberPolicy?: {
3023
+ containerMutations: {
3024
+ createdAt: string;
3025
+ manifestHead: {
3026
+ epoch: number;
3027
+ manifestHash: string;
3028
+ };
3029
+ organizationId: string;
3030
+ parentId: string | null;
3031
+ referencedPrincipalHeads: {
3032
+ principalType: "group";
3033
+ keyEpoch: number;
3034
+ keyFingerprint: string;
3035
+ principalId: string;
3036
+ stateHash: string;
3037
+ version: number;
3038
+ }[];
3039
+ updatedAt: string;
3040
+ accessManifest: {
3041
+ event: {
3042
+ body: unknown;
3043
+ event: Record<string, unknown>;
3044
+ eventHash: string;
3045
+ };
3046
+ manifest: Record<string, unknown>;
3047
+ manifestHash: string;
3048
+ state: Record<string, unknown>;
3049
+ };
3050
+ containerId: string;
3051
+ containerKek: {
3052
+ accessManifestHash: string;
3053
+ containerId: string;
3054
+ containerKeyEpoch: number;
3055
+ containerKeyEpochId: string;
3056
+ containerManifestHistory: {
3057
+ event: {
3058
+ body: unknown;
3059
+ event: Record<string, unknown>;
3060
+ eventHash: string;
3061
+ };
3062
+ manifest: Record<string, unknown>;
3063
+ manifestHash: string;
3064
+ state: Record<string, unknown>;
3065
+ }[];
3066
+ keyEpoch: Record<string, unknown>;
3067
+ keyEpochHash: string;
3068
+ keyring: {
3069
+ containerId: string;
3070
+ containerKeyEpochId: string;
3071
+ iv: string;
3072
+ sealed: string;
3073
+ sealingSuite: string;
3074
+ version: number;
3075
+ } | null;
3076
+ keyTargetHash: string;
3077
+ parentContainerKeyEpochId: string | null;
3078
+ recipientTargets: Record<string, unknown>[];
3079
+ wraps: Record<string, unknown>[];
3080
+ };
3081
+ systemSlot?: string | null | undefined;
3082
+ }[];
3083
+ currentGrants: {
3084
+ accessLevel: "admin" | "read" | "write";
3085
+ containerId: string;
3086
+ }[];
3087
+ currentMemberEnvelopes: {
3088
+ envelopes: {
3089
+ kemCipherText: string;
3090
+ memberKeyFingerprint: string;
3091
+ userId: string;
3092
+ wrappedKey: string;
3093
+ }[];
3094
+ epoch: number;
3095
+ principalId: string;
3096
+ principalType: "group" | "organization";
3097
+ stateHash: string;
3098
+ };
3099
+ currentPayload: {
3100
+ cipherSuite: "aes-256-gcm";
3101
+ ciphertext: string;
3102
+ ciphertextHash: string;
3103
+ createdAt: string;
3104
+ principalId: string;
3105
+ principalType: "group" | "organization";
3106
+ stateHash: string;
3107
+ };
3108
+ currentProjection: {
3109
+ role: "member" | "admin";
3110
+ userId: string;
3111
+ }[];
3112
+ currentState: {
3113
+ createdAt: string;
3114
+ encapsulationPublicKey: string;
3115
+ externalAuthority: {
3116
+ keyEpoch: number;
3117
+ keyFingerprint: string;
3118
+ principalId: string;
3119
+ principalType: "group";
3120
+ stateHash: string;
3121
+ version: number;
3122
+ } | null;
3123
+ grantCount: number;
3124
+ grantRoot: string;
3125
+ keyEpoch: number;
3126
+ keyFingerprint: string;
3127
+ memberCount: number;
3128
+ memberEnvelopesRoot: string;
3129
+ membershipMode: "projection";
3130
+ membershipRoot: string;
3131
+ payloadCiphertextHash: string;
3132
+ prevStateHash: string | null;
3133
+ principalId: string;
3134
+ principalType: "group" | "organization";
3135
+ projectionRoot: string;
3136
+ signature: string;
3137
+ signedAt: string;
3138
+ signerUserId: string;
3139
+ signerUserKeyFingerprint: string;
3140
+ stateHash: string;
3141
+ version: number;
3142
+ };
3143
+ } | undefined;
3144
+ }, {
3145
+ groupPolicy: {
3146
+ containerMutations: {
3147
+ createdAt: string;
3148
+ manifestHead: {
3149
+ epoch: number;
3150
+ manifestHash: string;
3151
+ };
3152
+ organizationId: string;
3153
+ parentId: string | null;
3154
+ referencedPrincipalHeads: {
3155
+ principalType: "group";
3156
+ keyEpoch: number;
3157
+ keyFingerprint: string;
3158
+ principalId: string;
3159
+ stateHash: string;
3160
+ version: number;
3161
+ }[];
3162
+ updatedAt: string;
3163
+ accessManifest: {
3164
+ event: {
3165
+ body: unknown;
3166
+ event: Record<string, unknown>;
3167
+ eventHash: string;
3168
+ };
3169
+ manifest: Record<string, unknown>;
3170
+ manifestHash: string;
3171
+ state: Record<string, unknown>;
3172
+ };
3173
+ containerId: string;
3174
+ containerKek: {
3175
+ accessManifestHash: string;
3176
+ containerId: string;
3177
+ containerKeyEpoch: number;
3178
+ containerKeyEpochId: string;
3179
+ containerManifestHistory: {
3180
+ event: {
3181
+ body: unknown;
3182
+ event: Record<string, unknown>;
3183
+ eventHash: string;
3184
+ };
3185
+ manifest: Record<string, unknown>;
3186
+ manifestHash: string;
3187
+ state: Record<string, unknown>;
3188
+ }[];
3189
+ keyEpoch: Record<string, unknown>;
3190
+ keyEpochHash: string;
3191
+ keyring: {
3192
+ containerId: string;
3193
+ containerKeyEpochId: string;
3194
+ iv: string;
3195
+ sealed: string;
3196
+ sealingSuite: string;
3197
+ version: number;
3198
+ } | null;
3199
+ keyTargetHash: string;
3200
+ parentContainerKeyEpochId: string | null;
3201
+ recipientTargets: Record<string, unknown>[];
3202
+ wraps: Record<string, unknown>[];
3203
+ };
3204
+ systemSlot?: string | null | undefined;
3205
+ }[];
3206
+ currentGrants: {
3207
+ accessLevel: "admin" | "read" | "write";
3208
+ containerId: string;
3209
+ }[];
3210
+ currentMemberEnvelopes: {
3211
+ envelopes: {
3212
+ kemCipherText: string;
3213
+ memberKeyFingerprint: string;
3214
+ userId: string;
3215
+ wrappedKey: string;
3216
+ }[];
3217
+ epoch: number;
3218
+ principalId: string;
3219
+ principalType: "group" | "organization";
3220
+ stateHash: string;
3221
+ };
3222
+ currentPayload: {
3223
+ cipherSuite: "aes-256-gcm";
3224
+ ciphertext: string;
3225
+ ciphertextHash: string;
3226
+ createdAt: string;
3227
+ principalId: string;
3228
+ principalType: "group" | "organization";
3229
+ stateHash: string;
3230
+ };
3231
+ currentProjection: {
3232
+ role: "member" | "admin";
3233
+ userId: string;
3234
+ }[];
3235
+ currentState: {
3236
+ createdAt: string;
3237
+ encapsulationPublicKey: string;
3238
+ externalAuthority: {
3239
+ keyEpoch: number;
3240
+ keyFingerprint: string;
3241
+ principalId: string;
3242
+ principalType: "group";
3243
+ stateHash: string;
3244
+ version: number;
3245
+ } | null;
3246
+ grantCount: number;
3247
+ grantRoot: string;
3248
+ keyEpoch: number;
3249
+ keyFingerprint: string;
3250
+ memberCount: number;
3251
+ memberEnvelopesRoot: string;
3252
+ membershipMode: "projection";
3253
+ membershipRoot: string;
3254
+ payloadCiphertextHash: string;
3255
+ prevStateHash: string | null;
3256
+ principalId: string;
3257
+ principalType: "group" | "organization";
3258
+ projectionRoot: string;
3259
+ signature: string;
3260
+ signedAt: string;
3261
+ signerUserId: string;
3262
+ signerUserKeyFingerprint: string;
2250
3263
  stateHash: string;
2251
3264
  version: number;
2252
- } | null;
2253
- grantCount: number;
2254
- grantRoot: string;
2255
- keyEpoch: number;
2256
- keyFingerprint: string;
2257
- memberCount: number;
2258
- memberEnvelopesRoot: string;
2259
- membershipMode: "projection";
2260
- membershipRoot: string;
2261
- payloadCiphertextHash: string;
2262
- prevStateHash: string | null;
2263
- principalId: string;
2264
- principalType: "group" | "organization";
2265
- projectionRoot: string;
2266
- signature: string;
2267
- signedAt: string;
2268
- signerUserId: string;
2269
- signerUserKeyFingerprint: string;
2270
- version: number;
3265
+ };
2271
3266
  };
2272
- containerMutations?: {
2273
- body: unknown;
2274
- event: Record<string, unknown>;
2275
- expectedManifestHash: string;
2276
- keyEpoch: Record<string, unknown>;
2277
- keyring: Record<string, unknown> | null;
2278
- manifest: Record<string, unknown>;
2279
- predecessorBridge: Record<string, unknown> | null;
2280
- principalPolicies: Record<string, unknown>[];
2281
- wraps: Record<string, unknown>[];
2282
- containerManifestHistoryRefs?: {
2283
- containerId: string;
2284
- manifestHash: string;
2285
- }[] | undefined;
2286
- destinationParentContainerPathRefs?: {
2287
- containerId: string;
2288
- manifestHash: string;
2289
- }[] | undefined;
2290
- parentContainerPathRefs?: {
2291
- containerId: string;
2292
- manifestHash: string;
2293
- }[] | undefined;
2294
- parentKekState?: Record<string, unknown> | null | undefined;
2295
- previousContainerPathRefs?: {
2296
- containerId: string;
2297
- manifestHash: string;
2298
- }[] | undefined;
2299
- previousManifestRef?: {
2300
- containerId: string;
2301
- manifestHash: string;
2302
- } | null | undefined;
2303
- userRecipientKeys?: Record<string, unknown>[] | undefined;
2304
- }[] | undefined;
2305
- };
2306
- }>>;
2307
- readonly failureResponses: {
2308
- readonly 400: z.ZodType<{
2309
- error: string;
2310
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2311
- }, {
2312
- error: string;
2313
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2314
- }, z.core.$ZodTypeInternals<{
2315
- error: string;
2316
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2317
- }, {
2318
- error: string;
2319
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2320
- }>>;
2321
- readonly 401: z.ZodType<{
2322
- error: string;
2323
- code?: "session_refresh_required" | undefined;
2324
- }, {
2325
- error: string;
2326
- code?: "session_refresh_required" | undefined;
2327
- }, z.core.$ZodTypeInternals<{
2328
- error: string;
2329
- code?: "session_refresh_required" | undefined;
2330
- }, {
2331
- error: string;
2332
- code?: "session_refresh_required" | undefined;
2333
- }>>;
2334
- readonly 402: z.ZodType<{
2335
- error: string;
2336
- organizationId: string;
2337
- reason: "billing_inactive" | "sync_seat_unassigned";
2338
- }, {
2339
- error: string;
2340
- organizationId: string;
2341
- reason: "billing_inactive" | "sync_seat_unassigned";
2342
- }, z.core.$ZodTypeInternals<{
2343
- error: string;
2344
- organizationId: string;
2345
- reason: "billing_inactive" | "sync_seat_unassigned";
2346
- }, {
2347
- error: string;
2348
- organizationId: string;
2349
- reason: "billing_inactive" | "sync_seat_unassigned";
2350
- }>>;
2351
- readonly 403: z.ZodType<{
2352
- error: string;
2353
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2354
- }, {
2355
- error: string;
2356
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2357
- }, z.core.$ZodTypeInternals<{
2358
- error: string;
2359
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2360
- }, {
2361
- error: string;
2362
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2363
- }>>;
2364
- readonly 404: z.ZodType<{
2365
- error: string;
2366
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2367
- }, {
2368
- error: string;
2369
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2370
- }, z.core.$ZodTypeInternals<{
2371
- error: string;
2372
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2373
- }, {
2374
- error: string;
2375
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2376
- }>>;
2377
- readonly 409: z.ZodUnion<readonly [z.ZodType<{
2378
- error: string;
2379
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2380
- }, {
2381
- error: string;
2382
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2383
- }, z.core.$ZodTypeInternals<{
2384
- error: string;
2385
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2386
- }, {
2387
- error: string;
2388
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
2389
- }>>, z.ZodType<{
2390
- code: "container_descendant_rekeys_required";
2391
- error: string;
2392
- requiredContainerIds: string[];
2393
- }, {
2394
- code: "container_descendant_rekeys_required";
2395
- error: string;
2396
- requiredContainerIds: string[];
2397
- }, z.core.$ZodTypeInternals<{
2398
- code: "container_descendant_rekeys_required";
2399
- error: string;
2400
- requiredContainerIds: string[];
2401
- }, {
2402
- code: "container_descendant_rekeys_required";
2403
- error: string;
2404
- requiredContainerIds: string[];
2405
- }>>]>;
2406
- readonly 500: z.ZodType<{
2407
- error: string;
2408
- }, {
2409
- error: string;
2410
- }, z.core.$ZodTypeInternals<{
2411
- error: string;
2412
- }, {
2413
- error: string;
2414
- }>>;
2415
- readonly 503: z.ZodType<{
2416
- error: string;
2417
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | "principal_history_preparation_unavailable" | undefined;
2418
- committed?: boolean | undefined;
2419
- }, {
2420
- error: string;
2421
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | "principal_history_preparation_unavailable" | undefined;
2422
- committed?: boolean | undefined;
2423
- }, z.core.$ZodTypeInternals<{
2424
- error: string;
2425
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | "principal_history_preparation_unavailable" | undefined;
2426
- committed?: boolean | undefined;
2427
- }, {
2428
- error: string;
2429
- code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | "principal_history_preparation_unavailable" | undefined;
2430
- committed?: boolean | undefined;
2431
- }>>;
2432
- };
2433
- readonly failureStatuses: readonly [400, 401, 402, 403, 404, 409, 500, 503];
2434
- readonly id: "organizations.groups.policy.commit";
2435
- readonly method: "PUT";
2436
- readonly params: z.ZodObject<{
2437
- organizationId: z.ZodCustom<string, string>;
2438
- groupId: z.ZodCustom<string, string>;
2439
- }, z.core.$strict>;
2440
- readonly path: "/organizations/{organizationId}/groups/{groupId}/policy-commit";
2441
- readonly responseDescriptions: {
2442
- readonly 202: "The attempted operation rolled back. Retry the identical request to continue verification preparation.";
2443
- };
2444
- readonly responses: {
2445
- readonly 200: z.ZodType<{
2446
- groupPolicy: {
3267
+ organizationPolicy: {
2447
3268
  containerMutations: {
2448
3269
  createdAt: string;
2449
3270
  manifestHead: {
@@ -2565,7 +3386,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2565
3386
  version: number;
2566
3387
  };
2567
3388
  };
2568
- organizationPolicy: {
3389
+ memberPolicy?: {
2569
3390
  containerMutations: {
2570
3391
  createdAt: string;
2571
3392
  manifestHead: {
@@ -2686,8 +3507,8 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2686
3507
  stateHash: string;
2687
3508
  version: number;
2688
3509
  };
2689
- };
2690
- }, {
3510
+ } | undefined;
3511
+ }, z.core.$ZodTypeInternals<{
2691
3512
  groupPolicy: {
2692
3513
  containerMutations: {
2693
3514
  createdAt: string;
@@ -2932,8 +3753,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2932
3753
  version: number;
2933
3754
  };
2934
3755
  };
2935
- }, z.core.$ZodTypeInternals<{
2936
- groupPolicy: {
3756
+ memberPolicy?: {
2937
3757
  containerMutations: {
2938
3758
  createdAt: string;
2939
3759
  manifestHead: {
@@ -3054,8 +3874,9 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
3054
3874
  stateHash: string;
3055
3875
  version: number;
3056
3876
  };
3057
- };
3058
- organizationPolicy: {
3877
+ } | undefined;
3878
+ }, {
3879
+ groupPolicy: {
3059
3880
  containerMutations: {
3060
3881
  createdAt: string;
3061
3882
  manifestHead: {
@@ -3177,8 +3998,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
3177
3998
  version: number;
3178
3999
  };
3179
4000
  };
3180
- }, {
3181
- groupPolicy: {
4001
+ organizationPolicy: {
3182
4002
  containerMutations: {
3183
4003
  createdAt: string;
3184
4004
  manifestHead: {
@@ -3300,7 +4120,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
3300
4120
  version: number;
3301
4121
  };
3302
4122
  };
3303
- organizationPolicy: {
4123
+ memberPolicy?: {
3304
4124
  containerMutations: {
3305
4125
  createdAt: string;
3306
4126
  manifestHead: {
@@ -3421,7 +4241,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
3421
4241
  stateHash: string;
3422
4242
  version: number;
3423
4243
  };
3424
- };
4244
+ } | undefined;
3425
4245
  }>>;
3426
4246
  readonly 202: z.ZodObject<{
3427
4247
  code: z.ZodLiteral<"principal_history_preparation_pending">;