shoal-web-sdk 1.0.91 → 1.0.93

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.
@@ -19,6 +19,19 @@ export type LimitedIntegerPlanFeatureResponse = PlanFeatureResponse & {
19
19
  export type UnlimitedIntegerPlanFeatureResponse = PlanFeatureResponse & {
20
20
  type: 'unlimited';
21
21
  };
22
+ export type BooleanPlanFeatureResponse = ({
23
+ type: 'enabled';
24
+ } & EnabledBooleanPlanFeatureResponse) | ({
25
+ type: 'disabled';
26
+ } & DisabledBooleanPlanFeatureResponse);
27
+ export type EnabledBooleanPlanFeatureType = 'enabled';
28
+ export type DisabledBooleanPlanFeatureType = 'disabled';
29
+ export type EnabledBooleanPlanFeatureResponse = PlanFeatureResponse & {
30
+ type: EnabledBooleanPlanFeatureType;
31
+ };
32
+ export type DisabledBooleanPlanFeatureResponse = PlanFeatureResponse & {
33
+ type: DisabledBooleanPlanFeatureType;
34
+ };
22
35
  export type PlanResponse = {
23
36
  readonly key: string;
24
37
  readonly rank: number;
@@ -28,6 +41,7 @@ export type PlanResponse = {
28
41
  maximumSeats?: IntegerPlanFeatureResponse;
29
42
  maximumProjects?: IntegerPlanFeatureResponse;
30
43
  maximumEnvironments?: IntegerPlanFeatureResponse;
44
+ githubOrganizationIntegration?: BooleanPlanFeatureResponse;
31
45
  };
32
46
  pricing?: PricesResponse;
33
47
  allowances: AllowancesResponse;
@@ -106,6 +120,7 @@ export type CustomerPlanResponse = {
106
120
  maximumSeats?: IntegerPlanFeatureResponse;
107
121
  maximumProjects?: IntegerPlanFeatureResponse;
108
122
  maximumEnvironments?: IntegerPlanFeatureResponse;
123
+ githubOrganizationIntegration?: BooleanPlanFeatureResponse;
109
124
  };
110
125
  };
111
126
  export type PaymentMethodSummary = {
@@ -116,7 +131,10 @@ export type PaymentMethodSummary = {
116
131
  readonly expYear: number;
117
132
  readonly isDefault: boolean;
118
133
  };
134
+ export type CustomerStatus = 'incomplete' | 'incomplete_expired' | 'trialing' | 'active' | 'past_due' | 'canceled' | 'unpaid' | 'paused' | 'onboarding';
119
135
  export type CustomerResponse = {
136
+ id: string;
137
+ status: CustomerStatus;
120
138
  currentPlan: CustomerPlanResponse;
121
139
  pendingPlan?: CustomerPlanResponse;
122
140
  readonly currentPeriodEnd: number;
@@ -140,11 +158,23 @@ export type LimitedIntegerPlanFeatureResponseWritable = {
140
158
  export type UnlimitedIntegerPlanFeatureResponseWritable = {
141
159
  type: 'unlimited';
142
160
  };
161
+ export type BooleanPlanFeatureResponseWritable = ({
162
+ type: 'EnabledBooleanPlanFeatureResponseWritable';
163
+ } & EnabledBooleanPlanFeatureResponseWritable) | ({
164
+ type: 'DisabledBooleanPlanFeatureResponseWritable';
165
+ } & DisabledBooleanPlanFeatureResponseWritable);
166
+ export type EnabledBooleanPlanFeatureResponseWritable = {
167
+ type: EnabledBooleanPlanFeatureType;
168
+ };
169
+ export type DisabledBooleanPlanFeatureResponseWritable = {
170
+ type: DisabledBooleanPlanFeatureType;
171
+ };
143
172
  export type PlanResponseWritable = {
144
173
  features: {
145
174
  maximumSeats?: IntegerPlanFeatureResponseWritable;
146
175
  maximumProjects?: IntegerPlanFeatureResponseWritable;
147
176
  maximumEnvironments?: IntegerPlanFeatureResponseWritable;
177
+ githubOrganizationIntegration?: BooleanPlanFeatureResponseWritable;
148
178
  };
149
179
  allowances: AllowancesResponseWritable;
150
180
  };
@@ -161,6 +191,8 @@ export type CustomerPlanResponseWritable = {
161
191
  interval?: BillingInterval;
162
192
  };
163
193
  export type CustomerResponseWritable = {
194
+ id: string;
195
+ status: CustomerStatus;
164
196
  currentPlan: CustomerPlanResponseWritable;
165
197
  };
166
198
  /**
@@ -2,6 +2,12 @@ import { z } from 'zod';
2
2
  export declare const zError: z.ZodObject<{
3
3
  error: z.ZodString;
4
4
  }, z.core.$strip>;
5
+ export declare const zEnabledBooleanPlanFeatureType: z.ZodEnum<{
6
+ enabled: "enabled";
7
+ }>;
8
+ export declare const zDisabledBooleanPlanFeatureType: z.ZodEnum<{
9
+ disabled: "disabled";
10
+ }>;
5
11
  export declare const zPlanPriceResponse: z.ZodObject<{
6
12
  currency: z.ZodReadonly<z.ZodString>;
7
13
  amount: z.ZodReadonly<z.ZodInt>;
@@ -62,6 +68,41 @@ export declare const zIntegerPlanFeatureResponse: z.ZodUnion<readonly [z.ZodInte
62
68
  unlimited: "unlimited";
63
69
  }>;
64
70
  }, z.core.$strip>>>]>;
71
+ export declare const zEnabledBooleanPlanFeatureResponse: z.ZodIntersection<z.ZodObject<{
72
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
73
+ displayName: z.ZodReadonly<z.ZodString>;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ type: z.ZodEnum<{
76
+ enabled: "enabled";
77
+ }>;
78
+ }, z.core.$strip>>;
79
+ export declare const zDisabledBooleanPlanFeatureResponse: z.ZodIntersection<z.ZodObject<{
80
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
81
+ displayName: z.ZodReadonly<z.ZodString>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ type: z.ZodEnum<{
84
+ disabled: "disabled";
85
+ }>;
86
+ }, z.core.$strip>>;
87
+ export declare const zBooleanPlanFeatureResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
88
+ type: z.ZodLiteral<"enabled">;
89
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
90
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
91
+ displayName: z.ZodReadonly<z.ZodString>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodEnum<{
94
+ enabled: "enabled";
95
+ }>;
96
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
97
+ type: z.ZodLiteral<"disabled">;
98
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
99
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
100
+ displayName: z.ZodReadonly<z.ZodString>;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ type: z.ZodEnum<{
103
+ disabled: "disabled";
104
+ }>;
105
+ }, z.core.$strip>>>]>;
65
106
  export declare const zAllowancePeriodResponse: z.ZodEnum<{
66
107
  day: "day";
67
108
  week: "week";
@@ -165,6 +206,25 @@ export declare const zPlanResponse: z.ZodObject<{
165
206
  unlimited: "unlimited";
166
207
  }>;
167
208
  }, z.core.$strip>>>]>>;
209
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
210
+ type: z.ZodLiteral<"enabled">;
211
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
212
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
213
+ displayName: z.ZodReadonly<z.ZodString>;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ type: z.ZodEnum<{
216
+ enabled: "enabled";
217
+ }>;
218
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
219
+ type: z.ZodLiteral<"disabled">;
220
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
221
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
222
+ displayName: z.ZodReadonly<z.ZodString>;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ type: z.ZodEnum<{
225
+ disabled: "disabled";
226
+ }>;
227
+ }, z.core.$strip>>>]>>;
168
228
  }, z.core.$strip>;
169
229
  pricing: z.ZodOptional<z.ZodObject<{
170
230
  annual: z.ZodObject<{
@@ -268,6 +328,25 @@ export declare const zCatalogResponse: z.ZodObject<{
268
328
  unlimited: "unlimited";
269
329
  }>;
270
330
  }, z.core.$strip>>>]>>;
331
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
332
+ type: z.ZodLiteral<"enabled">;
333
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
334
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
335
+ displayName: z.ZodReadonly<z.ZodString>;
336
+ }, z.core.$strip>, z.ZodObject<{
337
+ type: z.ZodEnum<{
338
+ enabled: "enabled";
339
+ }>;
340
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
341
+ type: z.ZodLiteral<"disabled">;
342
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
343
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
344
+ displayName: z.ZodReadonly<z.ZodString>;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ type: z.ZodEnum<{
347
+ disabled: "disabled";
348
+ }>;
349
+ }, z.core.$strip>>>]>>;
271
350
  }, z.core.$strip>;
272
351
  pricing: z.ZodOptional<z.ZodObject<{
273
352
  annual: z.ZodObject<{
@@ -428,6 +507,25 @@ export declare const zCustomerPlanResponse: z.ZodObject<{
428
507
  unlimited: "unlimited";
429
508
  }>;
430
509
  }, z.core.$strip>>>]>>;
510
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
511
+ type: z.ZodLiteral<"enabled">;
512
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
513
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
514
+ displayName: z.ZodReadonly<z.ZodString>;
515
+ }, z.core.$strip>, z.ZodObject<{
516
+ type: z.ZodEnum<{
517
+ enabled: "enabled";
518
+ }>;
519
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
520
+ type: z.ZodLiteral<"disabled">;
521
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
522
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
523
+ displayName: z.ZodReadonly<z.ZodString>;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ type: z.ZodEnum<{
526
+ disabled: "disabled";
527
+ }>;
528
+ }, z.core.$strip>>>]>>;
431
529
  }, z.core.$strip>>;
432
530
  }, z.core.$strip>;
433
531
  export declare const zPaymentMethodSummary: z.ZodObject<{
@@ -438,7 +536,30 @@ export declare const zPaymentMethodSummary: z.ZodObject<{
438
536
  expYear: z.ZodReadonly<z.ZodInt>;
439
537
  isDefault: z.ZodReadonly<z.ZodBoolean>;
440
538
  }, z.core.$strip>;
539
+ export declare const zCustomerStatus: z.ZodEnum<{
540
+ active: "active";
541
+ paused: "paused";
542
+ incomplete: "incomplete";
543
+ incomplete_expired: "incomplete_expired";
544
+ trialing: "trialing";
545
+ past_due: "past_due";
546
+ canceled: "canceled";
547
+ unpaid: "unpaid";
548
+ onboarding: "onboarding";
549
+ }>;
441
550
  export declare const zCustomerResponse: z.ZodObject<{
551
+ id: z.ZodUUID;
552
+ status: z.ZodEnum<{
553
+ active: "active";
554
+ paused: "paused";
555
+ incomplete: "incomplete";
556
+ incomplete_expired: "incomplete_expired";
557
+ trialing: "trialing";
558
+ past_due: "past_due";
559
+ canceled: "canceled";
560
+ unpaid: "unpaid";
561
+ onboarding: "onboarding";
562
+ }>;
442
563
  currentPlan: z.ZodObject<{
443
564
  key: z.ZodReadonly<z.ZodString>;
444
565
  displayName: z.ZodReadonly<z.ZodString>;
@@ -510,6 +631,25 @@ export declare const zCustomerResponse: z.ZodObject<{
510
631
  unlimited: "unlimited";
511
632
  }>;
512
633
  }, z.core.$strip>>>]>>;
634
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
635
+ type: z.ZodLiteral<"enabled">;
636
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
637
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
638
+ displayName: z.ZodReadonly<z.ZodString>;
639
+ }, z.core.$strip>, z.ZodObject<{
640
+ type: z.ZodEnum<{
641
+ enabled: "enabled";
642
+ }>;
643
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
644
+ type: z.ZodLiteral<"disabled">;
645
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
646
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
647
+ displayName: z.ZodReadonly<z.ZodString>;
648
+ }, z.core.$strip>, z.ZodObject<{
649
+ type: z.ZodEnum<{
650
+ disabled: "disabled";
651
+ }>;
652
+ }, z.core.$strip>>>]>>;
513
653
  }, z.core.$strip>>;
514
654
  }, z.core.$strip>;
515
655
  pendingPlan: z.ZodOptional<z.ZodObject<{
@@ -583,6 +723,25 @@ export declare const zCustomerResponse: z.ZodObject<{
583
723
  unlimited: "unlimited";
584
724
  }>;
585
725
  }, z.core.$strip>>>]>>;
726
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
727
+ type: z.ZodLiteral<"enabled">;
728
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
729
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
730
+ displayName: z.ZodReadonly<z.ZodString>;
731
+ }, z.core.$strip>, z.ZodObject<{
732
+ type: z.ZodEnum<{
733
+ enabled: "enabled";
734
+ }>;
735
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
736
+ type: z.ZodLiteral<"disabled">;
737
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
738
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
739
+ displayName: z.ZodReadonly<z.ZodString>;
740
+ }, z.core.$strip>, z.ZodObject<{
741
+ type: z.ZodEnum<{
742
+ disabled: "disabled";
743
+ }>;
744
+ }, z.core.$strip>>>]>>;
586
745
  }, z.core.$strip>>;
587
746
  }, z.core.$strip>>;
588
747
  currentPeriodEnd: z.ZodReadonly<z.ZodInt>;
@@ -624,6 +783,29 @@ export declare const zIntegerPlanFeatureResponseWritable: z.ZodUnion<readonly [z
624
783
  unlimited: "unlimited";
625
784
  }>;
626
785
  }, z.core.$strip>>]>;
786
+ export declare const zEnabledBooleanPlanFeatureResponseWritable: z.ZodObject<{
787
+ type: z.ZodEnum<{
788
+ enabled: "enabled";
789
+ }>;
790
+ }, z.core.$strip>;
791
+ export declare const zDisabledBooleanPlanFeatureResponseWritable: z.ZodObject<{
792
+ type: z.ZodEnum<{
793
+ disabled: "disabled";
794
+ }>;
795
+ }, z.core.$strip>;
796
+ export declare const zBooleanPlanFeatureResponseWritable: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
797
+ type: z.ZodLiteral<"EnabledBooleanPlanFeatureResponseWritable">;
798
+ }, z.core.$strip>, z.ZodObject<{
799
+ type: z.ZodEnum<{
800
+ enabled: "enabled";
801
+ }>;
802
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
803
+ type: z.ZodLiteral<"DisabledBooleanPlanFeatureResponseWritable">;
804
+ }, z.core.$strip>, z.ZodObject<{
805
+ type: z.ZodEnum<{
806
+ disabled: "disabled";
807
+ }>;
808
+ }, z.core.$strip>>]>;
627
809
  export declare const zPricesResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
628
810
  export declare const zAllowanceResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
629
811
  export declare const zAllowancesResponseWritable: z.ZodObject<{
@@ -673,6 +855,19 @@ export declare const zPlanResponseWritable: z.ZodObject<{
673
855
  unlimited: "unlimited";
674
856
  }>;
675
857
  }, z.core.$strip>>]>>;
858
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
859
+ type: z.ZodLiteral<"EnabledBooleanPlanFeatureResponseWritable">;
860
+ }, z.core.$strip>, z.ZodObject<{
861
+ type: z.ZodEnum<{
862
+ enabled: "enabled";
863
+ }>;
864
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
865
+ type: z.ZodLiteral<"DisabledBooleanPlanFeatureResponseWritable">;
866
+ }, z.core.$strip>, z.ZodObject<{
867
+ type: z.ZodEnum<{
868
+ disabled: "disabled";
869
+ }>;
870
+ }, z.core.$strip>>]>>;
676
871
  }, z.core.$strip>;
677
872
  allowances: z.ZodObject<{
678
873
  default: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -685,6 +880,18 @@ export declare const zCustomerPlanResponseWritable: z.ZodObject<{
685
880
  }>>;
686
881
  }, z.core.$strip>;
687
882
  export declare const zCustomerResponseWritable: z.ZodObject<{
883
+ id: z.ZodUUID;
884
+ status: z.ZodEnum<{
885
+ active: "active";
886
+ paused: "paused";
887
+ incomplete: "incomplete";
888
+ incomplete_expired: "incomplete_expired";
889
+ trialing: "trialing";
890
+ past_due: "past_due";
891
+ canceled: "canceled";
892
+ unpaid: "unpaid";
893
+ onboarding: "onboarding";
894
+ }>;
688
895
  currentPlan: z.ZodObject<{
689
896
  interval: z.ZodOptional<z.ZodEnum<{
690
897
  monthly: "monthly";
@@ -711,6 +918,18 @@ export declare const zGetCustomerData: z.ZodObject<{
711
918
  * Customer billing state
712
919
  */
713
920
  export declare const zGetCustomerResponse: z.ZodObject<{
921
+ id: z.ZodUUID;
922
+ status: z.ZodEnum<{
923
+ active: "active";
924
+ paused: "paused";
925
+ incomplete: "incomplete";
926
+ incomplete_expired: "incomplete_expired";
927
+ trialing: "trialing";
928
+ past_due: "past_due";
929
+ canceled: "canceled";
930
+ unpaid: "unpaid";
931
+ onboarding: "onboarding";
932
+ }>;
714
933
  currentPlan: z.ZodObject<{
715
934
  key: z.ZodReadonly<z.ZodString>;
716
935
  displayName: z.ZodReadonly<z.ZodString>;
@@ -782,6 +1001,25 @@ export declare const zGetCustomerResponse: z.ZodObject<{
782
1001
  unlimited: "unlimited";
783
1002
  }>;
784
1003
  }, z.core.$strip>>>]>>;
1004
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1005
+ type: z.ZodLiteral<"enabled">;
1006
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1007
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1008
+ displayName: z.ZodReadonly<z.ZodString>;
1009
+ }, z.core.$strip>, z.ZodObject<{
1010
+ type: z.ZodEnum<{
1011
+ enabled: "enabled";
1012
+ }>;
1013
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1014
+ type: z.ZodLiteral<"disabled">;
1015
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1016
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1017
+ displayName: z.ZodReadonly<z.ZodString>;
1018
+ }, z.core.$strip>, z.ZodObject<{
1019
+ type: z.ZodEnum<{
1020
+ disabled: "disabled";
1021
+ }>;
1022
+ }, z.core.$strip>>>]>>;
785
1023
  }, z.core.$strip>>;
786
1024
  }, z.core.$strip>;
787
1025
  pendingPlan: z.ZodOptional<z.ZodObject<{
@@ -855,6 +1093,25 @@ export declare const zGetCustomerResponse: z.ZodObject<{
855
1093
  unlimited: "unlimited";
856
1094
  }>;
857
1095
  }, z.core.$strip>>>]>>;
1096
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1097
+ type: z.ZodLiteral<"enabled">;
1098
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1099
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1100
+ displayName: z.ZodReadonly<z.ZodString>;
1101
+ }, z.core.$strip>, z.ZodObject<{
1102
+ type: z.ZodEnum<{
1103
+ enabled: "enabled";
1104
+ }>;
1105
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1106
+ type: z.ZodLiteral<"disabled">;
1107
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1108
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1109
+ displayName: z.ZodReadonly<z.ZodString>;
1110
+ }, z.core.$strip>, z.ZodObject<{
1111
+ type: z.ZodEnum<{
1112
+ disabled: "disabled";
1113
+ }>;
1114
+ }, z.core.$strip>>>]>>;
858
1115
  }, z.core.$strip>>;
859
1116
  }, z.core.$strip>>;
860
1117
  currentPeriodEnd: z.ZodReadonly<z.ZodInt>;
@@ -945,6 +1202,25 @@ export declare const zGetPlansResponse: z.ZodObject<{
945
1202
  unlimited: "unlimited";
946
1203
  }>;
947
1204
  }, z.core.$strip>>>]>>;
1205
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1206
+ type: z.ZodLiteral<"enabled">;
1207
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1208
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1209
+ displayName: z.ZodReadonly<z.ZodString>;
1210
+ }, z.core.$strip>, z.ZodObject<{
1211
+ type: z.ZodEnum<{
1212
+ enabled: "enabled";
1213
+ }>;
1214
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1215
+ type: z.ZodLiteral<"disabled">;
1216
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1217
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1218
+ displayName: z.ZodReadonly<z.ZodString>;
1219
+ }, z.core.$strip>, z.ZodObject<{
1220
+ type: z.ZodEnum<{
1221
+ disabled: "disabled";
1222
+ }>;
1223
+ }, z.core.$strip>>>]>>;
948
1224
  }, z.core.$strip>;
949
1225
  pricing: z.ZodOptional<z.ZodObject<{
950
1226
  annual: z.ZodObject<{
@@ -1073,6 +1349,18 @@ export declare const zM2mGetCustomerData: z.ZodObject<{
1073
1349
  * Customer billing state
1074
1350
  */
1075
1351
  export declare const zM2mGetCustomerResponse: z.ZodObject<{
1352
+ id: z.ZodUUID;
1353
+ status: z.ZodEnum<{
1354
+ active: "active";
1355
+ paused: "paused";
1356
+ incomplete: "incomplete";
1357
+ incomplete_expired: "incomplete_expired";
1358
+ trialing: "trialing";
1359
+ past_due: "past_due";
1360
+ canceled: "canceled";
1361
+ unpaid: "unpaid";
1362
+ onboarding: "onboarding";
1363
+ }>;
1076
1364
  currentPlan: z.ZodObject<{
1077
1365
  key: z.ZodReadonly<z.ZodString>;
1078
1366
  displayName: z.ZodReadonly<z.ZodString>;
@@ -1144,6 +1432,25 @@ export declare const zM2mGetCustomerResponse: z.ZodObject<{
1144
1432
  unlimited: "unlimited";
1145
1433
  }>;
1146
1434
  }, z.core.$strip>>>]>>;
1435
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1436
+ type: z.ZodLiteral<"enabled">;
1437
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1438
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1439
+ displayName: z.ZodReadonly<z.ZodString>;
1440
+ }, z.core.$strip>, z.ZodObject<{
1441
+ type: z.ZodEnum<{
1442
+ enabled: "enabled";
1443
+ }>;
1444
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1445
+ type: z.ZodLiteral<"disabled">;
1446
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1447
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1448
+ displayName: z.ZodReadonly<z.ZodString>;
1449
+ }, z.core.$strip>, z.ZodObject<{
1450
+ type: z.ZodEnum<{
1451
+ disabled: "disabled";
1452
+ }>;
1453
+ }, z.core.$strip>>>]>>;
1147
1454
  }, z.core.$strip>>;
1148
1455
  }, z.core.$strip>;
1149
1456
  pendingPlan: z.ZodOptional<z.ZodObject<{
@@ -1217,6 +1524,25 @@ export declare const zM2mGetCustomerResponse: z.ZodObject<{
1217
1524
  unlimited: "unlimited";
1218
1525
  }>;
1219
1526
  }, z.core.$strip>>>]>>;
1527
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1528
+ type: z.ZodLiteral<"enabled">;
1529
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1530
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1531
+ displayName: z.ZodReadonly<z.ZodString>;
1532
+ }, z.core.$strip>, z.ZodObject<{
1533
+ type: z.ZodEnum<{
1534
+ enabled: "enabled";
1535
+ }>;
1536
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1537
+ type: z.ZodLiteral<"disabled">;
1538
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1539
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1540
+ displayName: z.ZodReadonly<z.ZodString>;
1541
+ }, z.core.$strip>, z.ZodObject<{
1542
+ type: z.ZodEnum<{
1543
+ disabled: "disabled";
1544
+ }>;
1545
+ }, z.core.$strip>>>]>>;
1220
1546
  }, z.core.$strip>>;
1221
1547
  }, z.core.$strip>>;
1222
1548
  currentPeriodEnd: z.ZodReadonly<z.ZodInt>;
@@ -3,6 +3,12 @@ import { z } from 'zod';
3
3
  export const zError = z.object({
4
4
  error: z.string()
5
5
  });
6
+ export const zEnabledBooleanPlanFeatureType = z.enum([
7
+ 'enabled'
8
+ ]);
9
+ export const zDisabledBooleanPlanFeatureType = z.enum([
10
+ 'disabled'
11
+ ]);
6
12
  export const zPlanPriceResponse = z.object({
7
13
  currency: z.string().readonly(),
8
14
  amount: z.int().gte(0).readonly()
@@ -39,6 +45,20 @@ export const zIntegerPlanFeatureResponse = z.union([
39
45
  type: z.literal('unlimited')
40
46
  }).and(zUnlimitedIntegerPlanFeatureResponse)
41
47
  ]);
48
+ export const zEnabledBooleanPlanFeatureResponse = zPlanFeatureResponse.and(z.object({
49
+ type: zEnabledBooleanPlanFeatureType
50
+ }));
51
+ export const zDisabledBooleanPlanFeatureResponse = zPlanFeatureResponse.and(z.object({
52
+ type: zDisabledBooleanPlanFeatureType
53
+ }));
54
+ export const zBooleanPlanFeatureResponse = z.union([
55
+ z.object({
56
+ type: z.literal('enabled')
57
+ }).and(zEnabledBooleanPlanFeatureResponse),
58
+ z.object({
59
+ type: z.literal('disabled')
60
+ }).and(zDisabledBooleanPlanFeatureResponse)
61
+ ]);
42
62
  export const zAllowancePeriodResponse = z.enum([
43
63
  'day',
44
64
  'week',
@@ -65,7 +85,8 @@ export const zPlanResponse = z.object({
65
85
  features: z.object({
66
86
  maximumSeats: z.optional(zIntegerPlanFeatureResponse),
67
87
  maximumProjects: z.optional(zIntegerPlanFeatureResponse),
68
- maximumEnvironments: z.optional(zIntegerPlanFeatureResponse)
88
+ maximumEnvironments: z.optional(zIntegerPlanFeatureResponse),
89
+ githubOrganizationIntegration: z.optional(zBooleanPlanFeatureResponse)
69
90
  }),
70
91
  pricing: z.optional(zPricesResponse),
71
92
  allowances: zAllowancesResponse,
@@ -120,7 +141,8 @@ export const zCustomerPlanResponse = z.object({
120
141
  features: z.object({
121
142
  maximumSeats: z.optional(zIntegerPlanFeatureResponse),
122
143
  maximumProjects: z.optional(zIntegerPlanFeatureResponse),
123
- maximumEnvironments: z.optional(zIntegerPlanFeatureResponse)
144
+ maximumEnvironments: z.optional(zIntegerPlanFeatureResponse),
145
+ githubOrganizationIntegration: z.optional(zBooleanPlanFeatureResponse)
124
146
  }).readonly()
125
147
  });
126
148
  export const zPaymentMethodSummary = z.object({
@@ -131,7 +153,20 @@ export const zPaymentMethodSummary = z.object({
131
153
  expYear: z.int().readonly(),
132
154
  isDefault: z.boolean().readonly()
133
155
  });
156
+ export const zCustomerStatus = z.enum([
157
+ 'incomplete',
158
+ 'incomplete_expired',
159
+ 'trialing',
160
+ 'active',
161
+ 'past_due',
162
+ 'canceled',
163
+ 'unpaid',
164
+ 'paused',
165
+ 'onboarding'
166
+ ]);
134
167
  export const zCustomerResponse = z.object({
168
+ id: z.uuid(),
169
+ status: zCustomerStatus,
135
170
  currentPlan: zCustomerPlanResponse,
136
171
  pendingPlan: z.optional(zCustomerPlanResponse),
137
172
  currentPeriodEnd: z.int().readonly(),
@@ -160,6 +195,20 @@ export const zIntegerPlanFeatureResponseWritable = z.union([
160
195
  type: z.literal('UnlimitedIntegerPlanFeatureResponseWritable')
161
196
  }).and(zUnlimitedIntegerPlanFeatureResponseWritable)
162
197
  ]);
198
+ export const zEnabledBooleanPlanFeatureResponseWritable = z.object({
199
+ type: zEnabledBooleanPlanFeatureType
200
+ });
201
+ export const zDisabledBooleanPlanFeatureResponseWritable = z.object({
202
+ type: zDisabledBooleanPlanFeatureType
203
+ });
204
+ export const zBooleanPlanFeatureResponseWritable = z.union([
205
+ z.object({
206
+ type: z.literal('EnabledBooleanPlanFeatureResponseWritable')
207
+ }).and(zEnabledBooleanPlanFeatureResponseWritable),
208
+ z.object({
209
+ type: z.literal('DisabledBooleanPlanFeatureResponseWritable')
210
+ }).and(zDisabledBooleanPlanFeatureResponseWritable)
211
+ ]);
163
212
  export const zPricesResponseWritable = z.record(z.string(), z.unknown());
164
213
  export const zAllowanceResponseWritable = z.record(z.string(), z.unknown());
165
214
  export const zAllowancesResponseWritable = z.object({
@@ -169,7 +218,8 @@ export const zPlanResponseWritable = z.object({
169
218
  features: z.object({
170
219
  maximumSeats: z.optional(zIntegerPlanFeatureResponseWritable),
171
220
  maximumProjects: z.optional(zIntegerPlanFeatureResponseWritable),
172
- maximumEnvironments: z.optional(zIntegerPlanFeatureResponseWritable)
221
+ maximumEnvironments: z.optional(zIntegerPlanFeatureResponseWritable),
222
+ githubOrganizationIntegration: z.optional(zBooleanPlanFeatureResponseWritable)
173
223
  }),
174
224
  allowances: zAllowancesResponseWritable
175
225
  });
@@ -177,6 +227,8 @@ export const zCustomerPlanResponseWritable = z.object({
177
227
  interval: z.optional(zBillingInterval)
178
228
  });
179
229
  export const zCustomerResponseWritable = z.object({
230
+ id: z.uuid(),
231
+ status: zCustomerStatus,
180
232
  currentPlan: zCustomerPlanResponseWritable
181
233
  });
182
234
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",