shoal-web-sdk 1.0.92 → 1.0.94

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,9 +41,10 @@ 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
- allowances: AllowancesResponse;
47
+ categories?: CategoriesResponse;
34
48
  trial?: PlanTrialResponse;
35
49
  readonly isSelfServe: boolean;
36
50
  readonly isActive: boolean;
@@ -44,17 +58,20 @@ export type PlanPriceResponse = {
44
58
  readonly currency: string;
45
59
  readonly amount: number;
46
60
  };
47
- export type AllowancesResponse = {
48
- default: AllowanceResponse;
61
+ export type CategoriesResponse = {
62
+ default: CategoryResponse;
49
63
  };
50
- export type AllowanceResponse = {
51
- readonly displayName: string;
52
- readonly displayDescription?: string;
64
+ export type CategoryAllowanceResponse = {
53
65
  readonly refreshAmount: number;
54
- refreshPeriod: AllowancePeriodResponse;
66
+ refreshPeriod: CategoryPeriodResponse;
55
67
  readonly isActive: boolean;
56
68
  readonly isCarryOver: boolean;
57
69
  };
70
+ export type CategoryResponse = {
71
+ readonly displayName: string;
72
+ readonly displayDescription?: string;
73
+ allowance: CategoryAllowanceResponse;
74
+ };
58
75
  export type PlanTrialResponse = {
59
76
  readonly lengthInDays: number;
60
77
  readonly startingBonusCents: number;
@@ -64,7 +81,7 @@ export type PlanFeatureResponse = {
64
81
  readonly displayDescription?: string;
65
82
  readonly displayName: string;
66
83
  };
67
- export type AllowancePeriodResponse = 'day' | 'week' | 'month' | 'year' | 'onetime';
84
+ export type CategoryPeriodResponse = 'day' | 'week' | 'month' | 'year' | 'onetime';
68
85
  export type BillingInterval = 'monthly' | 'annual';
69
86
  export type UpdatePlan = {
70
87
  plan: string;
@@ -98,6 +115,7 @@ export type InvoiceListResponse = {
98
115
  export type CustomerPlanResponse = {
99
116
  readonly key: string;
100
117
  readonly displayName: string;
118
+ readonly displayDescription?: string;
101
119
  readonly rank: number;
102
120
  interval?: BillingInterval;
103
121
  readonly currency?: string;
@@ -106,6 +124,7 @@ export type CustomerPlanResponse = {
106
124
  maximumSeats?: IntegerPlanFeatureResponse;
107
125
  maximumProjects?: IntegerPlanFeatureResponse;
108
126
  maximumEnvironments?: IntegerPlanFeatureResponse;
127
+ githubOrganizationIntegration?: BooleanPlanFeatureResponse;
109
128
  };
110
129
  };
111
130
  export type PaymentMethodSummary = {
@@ -143,23 +162,38 @@ export type LimitedIntegerPlanFeatureResponseWritable = {
143
162
  export type UnlimitedIntegerPlanFeatureResponseWritable = {
144
163
  type: 'unlimited';
145
164
  };
165
+ export type BooleanPlanFeatureResponseWritable = ({
166
+ type: 'EnabledBooleanPlanFeatureResponseWritable';
167
+ } & EnabledBooleanPlanFeatureResponseWritable) | ({
168
+ type: 'DisabledBooleanPlanFeatureResponseWritable';
169
+ } & DisabledBooleanPlanFeatureResponseWritable);
170
+ export type EnabledBooleanPlanFeatureResponseWritable = {
171
+ type: EnabledBooleanPlanFeatureType;
172
+ };
173
+ export type DisabledBooleanPlanFeatureResponseWritable = {
174
+ type: DisabledBooleanPlanFeatureType;
175
+ };
146
176
  export type PlanResponseWritable = {
147
177
  features: {
148
178
  maximumSeats?: IntegerPlanFeatureResponseWritable;
149
179
  maximumProjects?: IntegerPlanFeatureResponseWritable;
150
180
  maximumEnvironments?: IntegerPlanFeatureResponseWritable;
181
+ githubOrganizationIntegration?: BooleanPlanFeatureResponseWritable;
151
182
  };
152
- allowances: AllowancesResponseWritable;
183
+ categories?: CategoriesResponseWritable;
153
184
  };
154
185
  export type PricesResponseWritable = {
155
186
  [key: string]: unknown;
156
187
  };
157
- export type AllowancesResponseWritable = {
158
- default: AllowanceResponseWritable;
188
+ export type CategoriesResponseWritable = {
189
+ default: CategoryResponseWritable;
159
190
  };
160
- export type AllowanceResponseWritable = {
191
+ export type CategoryAllowanceResponseWritable = {
161
192
  [key: string]: unknown;
162
193
  };
194
+ export type CategoryResponseWritable = {
195
+ allowance: CategoryAllowanceResponseWritable;
196
+ };
163
197
  export type CustomerPlanResponseWritable = {
164
198
  interval?: BillingInterval;
165
199
  };
@@ -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,16 +68,49 @@ export declare const zIntegerPlanFeatureResponse: z.ZodUnion<readonly [z.ZodInte
62
68
  unlimited: "unlimited";
63
69
  }>;
64
70
  }, z.core.$strip>>>]>;
65
- export declare const zAllowancePeriodResponse: z.ZodEnum<{
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>>>]>;
106
+ export declare const zCategoryPeriodResponse: z.ZodEnum<{
66
107
  day: "day";
67
108
  week: "week";
68
109
  month: "month";
69
110
  year: "year";
70
111
  onetime: "onetime";
71
112
  }>;
72
- export declare const zAllowanceResponse: z.ZodObject<{
73
- displayName: z.ZodReadonly<z.ZodString>;
74
- displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
113
+ export declare const zCategoryAllowanceResponse: z.ZodObject<{
75
114
  refreshAmount: z.ZodReadonly<z.ZodInt>;
76
115
  refreshPeriod: z.ZodEnum<{
77
116
  day: "day";
@@ -83,10 +122,10 @@ export declare const zAllowanceResponse: z.ZodObject<{
83
122
  isActive: z.ZodReadonly<z.ZodBoolean>;
84
123
  isCarryOver: z.ZodReadonly<z.ZodBoolean>;
85
124
  }, z.core.$strip>;
86
- export declare const zAllowancesResponse: z.ZodObject<{
87
- default: z.ZodObject<{
88
- displayName: z.ZodReadonly<z.ZodString>;
89
- displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
125
+ export declare const zCategoryResponse: z.ZodObject<{
126
+ displayName: z.ZodReadonly<z.ZodString>;
127
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
128
+ allowance: z.ZodObject<{
90
129
  refreshAmount: z.ZodReadonly<z.ZodInt>;
91
130
  refreshPeriod: z.ZodEnum<{
92
131
  day: "day";
@@ -99,6 +138,24 @@ export declare const zAllowancesResponse: z.ZodObject<{
99
138
  isCarryOver: z.ZodReadonly<z.ZodBoolean>;
100
139
  }, z.core.$strip>;
101
140
  }, z.core.$strip>;
141
+ export declare const zCategoriesResponse: z.ZodObject<{
142
+ default: z.ZodObject<{
143
+ displayName: z.ZodReadonly<z.ZodString>;
144
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
145
+ allowance: z.ZodObject<{
146
+ refreshAmount: z.ZodReadonly<z.ZodInt>;
147
+ refreshPeriod: z.ZodEnum<{
148
+ day: "day";
149
+ week: "week";
150
+ month: "month";
151
+ year: "year";
152
+ onetime: "onetime";
153
+ }>;
154
+ isActive: z.ZodReadonly<z.ZodBoolean>;
155
+ isCarryOver: z.ZodReadonly<z.ZodBoolean>;
156
+ }, z.core.$strip>;
157
+ }, z.core.$strip>;
158
+ }, z.core.$strip>;
102
159
  export declare const zPlanResponse: z.ZodObject<{
103
160
  key: z.ZodReadonly<z.ZodString>;
104
161
  rank: z.ZodReadonly<z.ZodInt>;
@@ -165,6 +222,25 @@ export declare const zPlanResponse: z.ZodObject<{
165
222
  unlimited: "unlimited";
166
223
  }>;
167
224
  }, z.core.$strip>>>]>>;
225
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
226
+ type: z.ZodLiteral<"enabled">;
227
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
228
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
229
+ displayName: z.ZodReadonly<z.ZodString>;
230
+ }, z.core.$strip>, z.ZodObject<{
231
+ type: z.ZodEnum<{
232
+ enabled: "enabled";
233
+ }>;
234
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
235
+ type: z.ZodLiteral<"disabled">;
236
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
237
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
238
+ displayName: z.ZodReadonly<z.ZodString>;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ type: z.ZodEnum<{
241
+ disabled: "disabled";
242
+ }>;
243
+ }, z.core.$strip>>>]>>;
168
244
  }, z.core.$strip>;
169
245
  pricing: z.ZodOptional<z.ZodObject<{
170
246
  annual: z.ZodObject<{
@@ -176,22 +252,24 @@ export declare const zPlanResponse: z.ZodObject<{
176
252
  amount: z.ZodReadonly<z.ZodInt>;
177
253
  }, z.core.$strip>;
178
254
  }, z.core.$strip>>;
179
- allowances: z.ZodObject<{
255
+ categories: z.ZodOptional<z.ZodObject<{
180
256
  default: z.ZodObject<{
181
257
  displayName: z.ZodReadonly<z.ZodString>;
182
258
  displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
183
- refreshAmount: z.ZodReadonly<z.ZodInt>;
184
- refreshPeriod: z.ZodEnum<{
185
- day: "day";
186
- week: "week";
187
- month: "month";
188
- year: "year";
189
- onetime: "onetime";
190
- }>;
191
- isActive: z.ZodReadonly<z.ZodBoolean>;
192
- isCarryOver: z.ZodReadonly<z.ZodBoolean>;
259
+ allowance: z.ZodObject<{
260
+ refreshAmount: z.ZodReadonly<z.ZodInt>;
261
+ refreshPeriod: z.ZodEnum<{
262
+ day: "day";
263
+ week: "week";
264
+ month: "month";
265
+ year: "year";
266
+ onetime: "onetime";
267
+ }>;
268
+ isActive: z.ZodReadonly<z.ZodBoolean>;
269
+ isCarryOver: z.ZodReadonly<z.ZodBoolean>;
270
+ }, z.core.$strip>;
193
271
  }, z.core.$strip>;
194
- }, z.core.$strip>;
272
+ }, z.core.$strip>>;
195
273
  trial: z.ZodOptional<z.ZodObject<{
196
274
  lengthInDays: z.ZodReadonly<z.ZodInt>;
197
275
  startingBonusCents: z.ZodReadonly<z.ZodInt>;
@@ -268,6 +346,25 @@ export declare const zCatalogResponse: z.ZodObject<{
268
346
  unlimited: "unlimited";
269
347
  }>;
270
348
  }, z.core.$strip>>>]>>;
349
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
350
+ type: z.ZodLiteral<"enabled">;
351
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
352
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
353
+ displayName: z.ZodReadonly<z.ZodString>;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ type: z.ZodEnum<{
356
+ enabled: "enabled";
357
+ }>;
358
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
359
+ type: z.ZodLiteral<"disabled">;
360
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
361
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
362
+ displayName: z.ZodReadonly<z.ZodString>;
363
+ }, z.core.$strip>, z.ZodObject<{
364
+ type: z.ZodEnum<{
365
+ disabled: "disabled";
366
+ }>;
367
+ }, z.core.$strip>>>]>>;
271
368
  }, z.core.$strip>;
272
369
  pricing: z.ZodOptional<z.ZodObject<{
273
370
  annual: z.ZodObject<{
@@ -279,22 +376,24 @@ export declare const zCatalogResponse: z.ZodObject<{
279
376
  amount: z.ZodReadonly<z.ZodInt>;
280
377
  }, z.core.$strip>;
281
378
  }, z.core.$strip>>;
282
- allowances: z.ZodObject<{
379
+ categories: z.ZodOptional<z.ZodObject<{
283
380
  default: z.ZodObject<{
284
381
  displayName: z.ZodReadonly<z.ZodString>;
285
382
  displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
286
- refreshAmount: z.ZodReadonly<z.ZodInt>;
287
- refreshPeriod: z.ZodEnum<{
288
- day: "day";
289
- week: "week";
290
- month: "month";
291
- year: "year";
292
- onetime: "onetime";
293
- }>;
294
- isActive: z.ZodReadonly<z.ZodBoolean>;
295
- isCarryOver: z.ZodReadonly<z.ZodBoolean>;
383
+ allowance: z.ZodObject<{
384
+ refreshAmount: z.ZodReadonly<z.ZodInt>;
385
+ refreshPeriod: z.ZodEnum<{
386
+ day: "day";
387
+ week: "week";
388
+ month: "month";
389
+ year: "year";
390
+ onetime: "onetime";
391
+ }>;
392
+ isActive: z.ZodReadonly<z.ZodBoolean>;
393
+ isCarryOver: z.ZodReadonly<z.ZodBoolean>;
394
+ }, z.core.$strip>;
296
395
  }, z.core.$strip>;
297
- }, z.core.$strip>;
396
+ }, z.core.$strip>>;
298
397
  trial: z.ZodOptional<z.ZodObject<{
299
398
  lengthInDays: z.ZodReadonly<z.ZodInt>;
300
399
  startingBonusCents: z.ZodReadonly<z.ZodInt>;
@@ -360,6 +459,7 @@ export declare const zInvoiceListResponse: z.ZodObject<{
360
459
  export declare const zCustomerPlanResponse: z.ZodObject<{
361
460
  key: z.ZodReadonly<z.ZodString>;
362
461
  displayName: z.ZodReadonly<z.ZodString>;
462
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
363
463
  rank: z.ZodReadonly<z.ZodInt>;
364
464
  interval: z.ZodOptional<z.ZodEnum<{
365
465
  monthly: "monthly";
@@ -428,6 +528,25 @@ export declare const zCustomerPlanResponse: z.ZodObject<{
428
528
  unlimited: "unlimited";
429
529
  }>;
430
530
  }, z.core.$strip>>>]>>;
531
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
532
+ type: z.ZodLiteral<"enabled">;
533
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
534
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
535
+ displayName: z.ZodReadonly<z.ZodString>;
536
+ }, z.core.$strip>, z.ZodObject<{
537
+ type: z.ZodEnum<{
538
+ enabled: "enabled";
539
+ }>;
540
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
541
+ type: z.ZodLiteral<"disabled">;
542
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
543
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
544
+ displayName: z.ZodReadonly<z.ZodString>;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ type: z.ZodEnum<{
547
+ disabled: "disabled";
548
+ }>;
549
+ }, z.core.$strip>>>]>>;
431
550
  }, z.core.$strip>>;
432
551
  }, z.core.$strip>;
433
552
  export declare const zPaymentMethodSummary: z.ZodObject<{
@@ -465,6 +584,7 @@ export declare const zCustomerResponse: z.ZodObject<{
465
584
  currentPlan: z.ZodObject<{
466
585
  key: z.ZodReadonly<z.ZodString>;
467
586
  displayName: z.ZodReadonly<z.ZodString>;
587
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
468
588
  rank: z.ZodReadonly<z.ZodInt>;
469
589
  interval: z.ZodOptional<z.ZodEnum<{
470
590
  monthly: "monthly";
@@ -533,11 +653,31 @@ export declare const zCustomerResponse: z.ZodObject<{
533
653
  unlimited: "unlimited";
534
654
  }>;
535
655
  }, z.core.$strip>>>]>>;
656
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
657
+ type: z.ZodLiteral<"enabled">;
658
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
659
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
660
+ displayName: z.ZodReadonly<z.ZodString>;
661
+ }, z.core.$strip>, z.ZodObject<{
662
+ type: z.ZodEnum<{
663
+ enabled: "enabled";
664
+ }>;
665
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
666
+ type: z.ZodLiteral<"disabled">;
667
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
668
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
669
+ displayName: z.ZodReadonly<z.ZodString>;
670
+ }, z.core.$strip>, z.ZodObject<{
671
+ type: z.ZodEnum<{
672
+ disabled: "disabled";
673
+ }>;
674
+ }, z.core.$strip>>>]>>;
536
675
  }, z.core.$strip>>;
537
676
  }, z.core.$strip>;
538
677
  pendingPlan: z.ZodOptional<z.ZodObject<{
539
678
  key: z.ZodReadonly<z.ZodString>;
540
679
  displayName: z.ZodReadonly<z.ZodString>;
680
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
541
681
  rank: z.ZodReadonly<z.ZodInt>;
542
682
  interval: z.ZodOptional<z.ZodEnum<{
543
683
  monthly: "monthly";
@@ -606,6 +746,25 @@ export declare const zCustomerResponse: z.ZodObject<{
606
746
  unlimited: "unlimited";
607
747
  }>;
608
748
  }, z.core.$strip>>>]>>;
749
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
750
+ type: z.ZodLiteral<"enabled">;
751
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
752
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
753
+ displayName: z.ZodReadonly<z.ZodString>;
754
+ }, z.core.$strip>, z.ZodObject<{
755
+ type: z.ZodEnum<{
756
+ enabled: "enabled";
757
+ }>;
758
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
759
+ type: z.ZodLiteral<"disabled">;
760
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
761
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
762
+ displayName: z.ZodReadonly<z.ZodString>;
763
+ }, z.core.$strip>, z.ZodObject<{
764
+ type: z.ZodEnum<{
765
+ disabled: "disabled";
766
+ }>;
767
+ }, z.core.$strip>>>]>>;
609
768
  }, z.core.$strip>>;
610
769
  }, z.core.$strip>>;
611
770
  currentPeriodEnd: z.ZodReadonly<z.ZodInt>;
@@ -647,10 +806,38 @@ export declare const zIntegerPlanFeatureResponseWritable: z.ZodUnion<readonly [z
647
806
  unlimited: "unlimited";
648
807
  }>;
649
808
  }, z.core.$strip>>]>;
809
+ export declare const zEnabledBooleanPlanFeatureResponseWritable: z.ZodObject<{
810
+ type: z.ZodEnum<{
811
+ enabled: "enabled";
812
+ }>;
813
+ }, z.core.$strip>;
814
+ export declare const zDisabledBooleanPlanFeatureResponseWritable: z.ZodObject<{
815
+ type: z.ZodEnum<{
816
+ disabled: "disabled";
817
+ }>;
818
+ }, z.core.$strip>;
819
+ export declare const zBooleanPlanFeatureResponseWritable: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
820
+ type: z.ZodLiteral<"EnabledBooleanPlanFeatureResponseWritable">;
821
+ }, z.core.$strip>, z.ZodObject<{
822
+ type: z.ZodEnum<{
823
+ enabled: "enabled";
824
+ }>;
825
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
826
+ type: z.ZodLiteral<"DisabledBooleanPlanFeatureResponseWritable">;
827
+ }, z.core.$strip>, z.ZodObject<{
828
+ type: z.ZodEnum<{
829
+ disabled: "disabled";
830
+ }>;
831
+ }, z.core.$strip>>]>;
650
832
  export declare const zPricesResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
651
- export declare const zAllowanceResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
652
- export declare const zAllowancesResponseWritable: z.ZodObject<{
653
- default: z.ZodRecord<z.ZodString, z.ZodUnknown>;
833
+ export declare const zCategoryAllowanceResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
834
+ export declare const zCategoryResponseWritable: z.ZodObject<{
835
+ allowance: z.ZodRecord<z.ZodString, z.ZodUnknown>;
836
+ }, z.core.$strip>;
837
+ export declare const zCategoriesResponseWritable: z.ZodObject<{
838
+ default: z.ZodObject<{
839
+ allowance: z.ZodRecord<z.ZodString, z.ZodUnknown>;
840
+ }, z.core.$strip>;
654
841
  }, z.core.$strip>;
655
842
  export declare const zPlanResponseWritable: z.ZodObject<{
656
843
  features: z.ZodObject<{
@@ -696,10 +883,25 @@ export declare const zPlanResponseWritable: z.ZodObject<{
696
883
  unlimited: "unlimited";
697
884
  }>;
698
885
  }, z.core.$strip>>]>>;
886
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
887
+ type: z.ZodLiteral<"EnabledBooleanPlanFeatureResponseWritable">;
888
+ }, z.core.$strip>, z.ZodObject<{
889
+ type: z.ZodEnum<{
890
+ enabled: "enabled";
891
+ }>;
892
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
893
+ type: z.ZodLiteral<"DisabledBooleanPlanFeatureResponseWritable">;
894
+ }, z.core.$strip>, z.ZodObject<{
895
+ type: z.ZodEnum<{
896
+ disabled: "disabled";
897
+ }>;
898
+ }, z.core.$strip>>]>>;
699
899
  }, z.core.$strip>;
700
- allowances: z.ZodObject<{
701
- default: z.ZodRecord<z.ZodString, z.ZodUnknown>;
702
- }, z.core.$strip>;
900
+ categories: z.ZodOptional<z.ZodObject<{
901
+ default: z.ZodObject<{
902
+ allowance: z.ZodRecord<z.ZodString, z.ZodUnknown>;
903
+ }, z.core.$strip>;
904
+ }, z.core.$strip>>;
703
905
  }, z.core.$strip>;
704
906
  export declare const zCustomerPlanResponseWritable: z.ZodObject<{
705
907
  interval: z.ZodOptional<z.ZodEnum<{
@@ -761,6 +963,7 @@ export declare const zGetCustomerResponse: z.ZodObject<{
761
963
  currentPlan: z.ZodObject<{
762
964
  key: z.ZodReadonly<z.ZodString>;
763
965
  displayName: z.ZodReadonly<z.ZodString>;
966
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
764
967
  rank: z.ZodReadonly<z.ZodInt>;
765
968
  interval: z.ZodOptional<z.ZodEnum<{
766
969
  monthly: "monthly";
@@ -829,11 +1032,31 @@ export declare const zGetCustomerResponse: z.ZodObject<{
829
1032
  unlimited: "unlimited";
830
1033
  }>;
831
1034
  }, z.core.$strip>>>]>>;
1035
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1036
+ type: z.ZodLiteral<"enabled">;
1037
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1038
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1039
+ displayName: z.ZodReadonly<z.ZodString>;
1040
+ }, z.core.$strip>, z.ZodObject<{
1041
+ type: z.ZodEnum<{
1042
+ enabled: "enabled";
1043
+ }>;
1044
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1045
+ type: z.ZodLiteral<"disabled">;
1046
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1047
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1048
+ displayName: z.ZodReadonly<z.ZodString>;
1049
+ }, z.core.$strip>, z.ZodObject<{
1050
+ type: z.ZodEnum<{
1051
+ disabled: "disabled";
1052
+ }>;
1053
+ }, z.core.$strip>>>]>>;
832
1054
  }, z.core.$strip>>;
833
1055
  }, z.core.$strip>;
834
1056
  pendingPlan: z.ZodOptional<z.ZodObject<{
835
1057
  key: z.ZodReadonly<z.ZodString>;
836
1058
  displayName: z.ZodReadonly<z.ZodString>;
1059
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
837
1060
  rank: z.ZodReadonly<z.ZodInt>;
838
1061
  interval: z.ZodOptional<z.ZodEnum<{
839
1062
  monthly: "monthly";
@@ -902,6 +1125,25 @@ export declare const zGetCustomerResponse: z.ZodObject<{
902
1125
  unlimited: "unlimited";
903
1126
  }>;
904
1127
  }, z.core.$strip>>>]>>;
1128
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1129
+ type: z.ZodLiteral<"enabled">;
1130
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1131
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1132
+ displayName: z.ZodReadonly<z.ZodString>;
1133
+ }, z.core.$strip>, z.ZodObject<{
1134
+ type: z.ZodEnum<{
1135
+ enabled: "enabled";
1136
+ }>;
1137
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1138
+ type: z.ZodLiteral<"disabled">;
1139
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1140
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1141
+ displayName: z.ZodReadonly<z.ZodString>;
1142
+ }, z.core.$strip>, z.ZodObject<{
1143
+ type: z.ZodEnum<{
1144
+ disabled: "disabled";
1145
+ }>;
1146
+ }, z.core.$strip>>>]>>;
905
1147
  }, z.core.$strip>>;
906
1148
  }, z.core.$strip>>;
907
1149
  currentPeriodEnd: z.ZodReadonly<z.ZodInt>;
@@ -992,6 +1234,25 @@ export declare const zGetPlansResponse: z.ZodObject<{
992
1234
  unlimited: "unlimited";
993
1235
  }>;
994
1236
  }, z.core.$strip>>>]>>;
1237
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1238
+ type: z.ZodLiteral<"enabled">;
1239
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1240
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1241
+ displayName: z.ZodReadonly<z.ZodString>;
1242
+ }, z.core.$strip>, z.ZodObject<{
1243
+ type: z.ZodEnum<{
1244
+ enabled: "enabled";
1245
+ }>;
1246
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1247
+ type: z.ZodLiteral<"disabled">;
1248
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1249
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1250
+ displayName: z.ZodReadonly<z.ZodString>;
1251
+ }, z.core.$strip>, z.ZodObject<{
1252
+ type: z.ZodEnum<{
1253
+ disabled: "disabled";
1254
+ }>;
1255
+ }, z.core.$strip>>>]>>;
995
1256
  }, z.core.$strip>;
996
1257
  pricing: z.ZodOptional<z.ZodObject<{
997
1258
  annual: z.ZodObject<{
@@ -1003,22 +1264,24 @@ export declare const zGetPlansResponse: z.ZodObject<{
1003
1264
  amount: z.ZodReadonly<z.ZodInt>;
1004
1265
  }, z.core.$strip>;
1005
1266
  }, z.core.$strip>>;
1006
- allowances: z.ZodObject<{
1267
+ categories: z.ZodOptional<z.ZodObject<{
1007
1268
  default: z.ZodObject<{
1008
1269
  displayName: z.ZodReadonly<z.ZodString>;
1009
1270
  displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1010
- refreshAmount: z.ZodReadonly<z.ZodInt>;
1011
- refreshPeriod: z.ZodEnum<{
1012
- day: "day";
1013
- week: "week";
1014
- month: "month";
1015
- year: "year";
1016
- onetime: "onetime";
1017
- }>;
1018
- isActive: z.ZodReadonly<z.ZodBoolean>;
1019
- isCarryOver: z.ZodReadonly<z.ZodBoolean>;
1271
+ allowance: z.ZodObject<{
1272
+ refreshAmount: z.ZodReadonly<z.ZodInt>;
1273
+ refreshPeriod: z.ZodEnum<{
1274
+ day: "day";
1275
+ week: "week";
1276
+ month: "month";
1277
+ year: "year";
1278
+ onetime: "onetime";
1279
+ }>;
1280
+ isActive: z.ZodReadonly<z.ZodBoolean>;
1281
+ isCarryOver: z.ZodReadonly<z.ZodBoolean>;
1282
+ }, z.core.$strip>;
1020
1283
  }, z.core.$strip>;
1021
- }, z.core.$strip>;
1284
+ }, z.core.$strip>>;
1022
1285
  trial: z.ZodOptional<z.ZodObject<{
1023
1286
  lengthInDays: z.ZodReadonly<z.ZodInt>;
1024
1287
  startingBonusCents: z.ZodReadonly<z.ZodInt>;
@@ -1135,6 +1398,7 @@ export declare const zM2mGetCustomerResponse: z.ZodObject<{
1135
1398
  currentPlan: z.ZodObject<{
1136
1399
  key: z.ZodReadonly<z.ZodString>;
1137
1400
  displayName: z.ZodReadonly<z.ZodString>;
1401
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1138
1402
  rank: z.ZodReadonly<z.ZodInt>;
1139
1403
  interval: z.ZodOptional<z.ZodEnum<{
1140
1404
  monthly: "monthly";
@@ -1203,11 +1467,31 @@ export declare const zM2mGetCustomerResponse: z.ZodObject<{
1203
1467
  unlimited: "unlimited";
1204
1468
  }>;
1205
1469
  }, z.core.$strip>>>]>>;
1470
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1471
+ type: z.ZodLiteral<"enabled">;
1472
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1473
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1474
+ displayName: z.ZodReadonly<z.ZodString>;
1475
+ }, z.core.$strip>, z.ZodObject<{
1476
+ type: z.ZodEnum<{
1477
+ enabled: "enabled";
1478
+ }>;
1479
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1480
+ type: z.ZodLiteral<"disabled">;
1481
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1482
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1483
+ displayName: z.ZodReadonly<z.ZodString>;
1484
+ }, z.core.$strip>, z.ZodObject<{
1485
+ type: z.ZodEnum<{
1486
+ disabled: "disabled";
1487
+ }>;
1488
+ }, z.core.$strip>>>]>>;
1206
1489
  }, z.core.$strip>>;
1207
1490
  }, z.core.$strip>;
1208
1491
  pendingPlan: z.ZodOptional<z.ZodObject<{
1209
1492
  key: z.ZodReadonly<z.ZodString>;
1210
1493
  displayName: z.ZodReadonly<z.ZodString>;
1494
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1211
1495
  rank: z.ZodReadonly<z.ZodInt>;
1212
1496
  interval: z.ZodOptional<z.ZodEnum<{
1213
1497
  monthly: "monthly";
@@ -1276,6 +1560,25 @@ export declare const zM2mGetCustomerResponse: z.ZodObject<{
1276
1560
  unlimited: "unlimited";
1277
1561
  }>;
1278
1562
  }, z.core.$strip>>>]>>;
1563
+ githubOrganizationIntegration: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1564
+ type: z.ZodLiteral<"enabled">;
1565
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1566
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1567
+ displayName: z.ZodReadonly<z.ZodString>;
1568
+ }, z.core.$strip>, z.ZodObject<{
1569
+ type: z.ZodEnum<{
1570
+ enabled: "enabled";
1571
+ }>;
1572
+ }, z.core.$strip>>>, z.ZodIntersection<z.ZodObject<{
1573
+ type: z.ZodLiteral<"disabled">;
1574
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
1575
+ displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
1576
+ displayName: z.ZodReadonly<z.ZodString>;
1577
+ }, z.core.$strip>, z.ZodObject<{
1578
+ type: z.ZodEnum<{
1579
+ disabled: "disabled";
1580
+ }>;
1581
+ }, z.core.$strip>>>]>>;
1279
1582
  }, z.core.$strip>>;
1280
1583
  }, z.core.$strip>>;
1281
1584
  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,23 +45,40 @@ export const zIntegerPlanFeatureResponse = z.union([
39
45
  type: z.literal('unlimited')
40
46
  }).and(zUnlimitedIntegerPlanFeatureResponse)
41
47
  ]);
42
- export const zAllowancePeriodResponse = z.enum([
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
+ ]);
62
+ export const zCategoryPeriodResponse = z.enum([
43
63
  'day',
44
64
  'week',
45
65
  'month',
46
66
  'year',
47
67
  'onetime'
48
68
  ]);
49
- export const zAllowanceResponse = z.object({
50
- displayName: z.string().readonly(),
51
- displayDescription: z.optional(z.string().readonly()),
69
+ export const zCategoryAllowanceResponse = z.object({
52
70
  refreshAmount: z.int().readonly(),
53
- refreshPeriod: zAllowancePeriodResponse,
71
+ refreshPeriod: zCategoryPeriodResponse,
54
72
  isActive: z.boolean().readonly(),
55
73
  isCarryOver: z.boolean().readonly()
56
74
  });
57
- export const zAllowancesResponse = z.object({
58
- default: zAllowanceResponse
75
+ export const zCategoryResponse = z.object({
76
+ displayName: z.string().readonly(),
77
+ displayDescription: z.optional(z.string().readonly()),
78
+ allowance: zCategoryAllowanceResponse
79
+ });
80
+ export const zCategoriesResponse = z.object({
81
+ default: zCategoryResponse
59
82
  });
60
83
  export const zPlanResponse = z.object({
61
84
  key: z.string().readonly(),
@@ -65,10 +88,11 @@ export const zPlanResponse = z.object({
65
88
  features: z.object({
66
89
  maximumSeats: z.optional(zIntegerPlanFeatureResponse),
67
90
  maximumProjects: z.optional(zIntegerPlanFeatureResponse),
68
- maximumEnvironments: z.optional(zIntegerPlanFeatureResponse)
91
+ maximumEnvironments: z.optional(zIntegerPlanFeatureResponse),
92
+ githubOrganizationIntegration: z.optional(zBooleanPlanFeatureResponse)
69
93
  }),
70
94
  pricing: z.optional(zPricesResponse),
71
- allowances: zAllowancesResponse,
95
+ categories: z.optional(zCategoriesResponse),
72
96
  trial: z.optional(zPlanTrialResponse),
73
97
  isSelfServe: z.boolean().readonly(),
74
98
  isActive: z.boolean().readonly(),
@@ -113,6 +137,7 @@ export const zInvoiceListResponse = z.object({
113
137
  export const zCustomerPlanResponse = z.object({
114
138
  key: z.string().readonly(),
115
139
  displayName: z.string().readonly(),
140
+ displayDescription: z.optional(z.string().readonly()),
116
141
  rank: z.int().readonly(),
117
142
  interval: z.optional(zBillingInterval),
118
143
  currency: z.optional(z.string().readonly()),
@@ -120,7 +145,8 @@ export const zCustomerPlanResponse = z.object({
120
145
  features: z.object({
121
146
  maximumSeats: z.optional(zIntegerPlanFeatureResponse),
122
147
  maximumProjects: z.optional(zIntegerPlanFeatureResponse),
123
- maximumEnvironments: z.optional(zIntegerPlanFeatureResponse)
148
+ maximumEnvironments: z.optional(zIntegerPlanFeatureResponse),
149
+ githubOrganizationIntegration: z.optional(zBooleanPlanFeatureResponse)
124
150
  }).readonly()
125
151
  });
126
152
  export const zPaymentMethodSummary = z.object({
@@ -173,18 +199,36 @@ export const zIntegerPlanFeatureResponseWritable = z.union([
173
199
  type: z.literal('UnlimitedIntegerPlanFeatureResponseWritable')
174
200
  }).and(zUnlimitedIntegerPlanFeatureResponseWritable)
175
201
  ]);
202
+ export const zEnabledBooleanPlanFeatureResponseWritable = z.object({
203
+ type: zEnabledBooleanPlanFeatureType
204
+ });
205
+ export const zDisabledBooleanPlanFeatureResponseWritable = z.object({
206
+ type: zDisabledBooleanPlanFeatureType
207
+ });
208
+ export const zBooleanPlanFeatureResponseWritable = z.union([
209
+ z.object({
210
+ type: z.literal('EnabledBooleanPlanFeatureResponseWritable')
211
+ }).and(zEnabledBooleanPlanFeatureResponseWritable),
212
+ z.object({
213
+ type: z.literal('DisabledBooleanPlanFeatureResponseWritable')
214
+ }).and(zDisabledBooleanPlanFeatureResponseWritable)
215
+ ]);
176
216
  export const zPricesResponseWritable = z.record(z.string(), z.unknown());
177
- export const zAllowanceResponseWritable = z.record(z.string(), z.unknown());
178
- export const zAllowancesResponseWritable = z.object({
179
- default: zAllowanceResponseWritable
217
+ export const zCategoryAllowanceResponseWritable = z.record(z.string(), z.unknown());
218
+ export const zCategoryResponseWritable = z.object({
219
+ allowance: zCategoryAllowanceResponseWritable
220
+ });
221
+ export const zCategoriesResponseWritable = z.object({
222
+ default: zCategoryResponseWritable
180
223
  });
181
224
  export const zPlanResponseWritable = z.object({
182
225
  features: z.object({
183
226
  maximumSeats: z.optional(zIntegerPlanFeatureResponseWritable),
184
227
  maximumProjects: z.optional(zIntegerPlanFeatureResponseWritable),
185
- maximumEnvironments: z.optional(zIntegerPlanFeatureResponseWritable)
228
+ maximumEnvironments: z.optional(zIntegerPlanFeatureResponseWritable),
229
+ githubOrganizationIntegration: z.optional(zBooleanPlanFeatureResponseWritable)
186
230
  }),
187
- allowances: zAllowancesResponseWritable
231
+ categories: z.optional(zCategoriesResponseWritable)
188
232
  });
189
233
  export const zCustomerPlanResponseWritable = z.object({
190
234
  interval: z.optional(zBillingInterval)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.92",
3
+ "version": "1.0.94",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",