shoal-web-sdk 1.0.92 → 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 = {
|
|
@@ -143,11 +158,23 @@ export type LimitedIntegerPlanFeatureResponseWritable = {
|
|
|
143
158
|
export type UnlimitedIntegerPlanFeatureResponseWritable = {
|
|
144
159
|
type: 'unlimited';
|
|
145
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
|
+
};
|
|
146
172
|
export type PlanResponseWritable = {
|
|
147
173
|
features: {
|
|
148
174
|
maximumSeats?: IntegerPlanFeatureResponseWritable;
|
|
149
175
|
maximumProjects?: IntegerPlanFeatureResponseWritable;
|
|
150
176
|
maximumEnvironments?: IntegerPlanFeatureResponseWritable;
|
|
177
|
+
githubOrganizationIntegration?: BooleanPlanFeatureResponseWritable;
|
|
151
178
|
};
|
|
152
179
|
allowances: AllowancesResponseWritable;
|
|
153
180
|
};
|
|
@@ -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<{
|
|
@@ -533,6 +631,25 @@ export declare const zCustomerResponse: z.ZodObject<{
|
|
|
533
631
|
unlimited: "unlimited";
|
|
534
632
|
}>;
|
|
535
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>>>]>>;
|
|
536
653
|
}, z.core.$strip>>;
|
|
537
654
|
}, z.core.$strip>;
|
|
538
655
|
pendingPlan: z.ZodOptional<z.ZodObject<{
|
|
@@ -606,6 +723,25 @@ export declare const zCustomerResponse: z.ZodObject<{
|
|
|
606
723
|
unlimited: "unlimited";
|
|
607
724
|
}>;
|
|
608
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>>>]>>;
|
|
609
745
|
}, z.core.$strip>>;
|
|
610
746
|
}, z.core.$strip>>;
|
|
611
747
|
currentPeriodEnd: z.ZodReadonly<z.ZodInt>;
|
|
@@ -647,6 +783,29 @@ export declare const zIntegerPlanFeatureResponseWritable: z.ZodUnion<readonly [z
|
|
|
647
783
|
unlimited: "unlimited";
|
|
648
784
|
}>;
|
|
649
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>>]>;
|
|
650
809
|
export declare const zPricesResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
651
810
|
export declare const zAllowanceResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
652
811
|
export declare const zAllowancesResponseWritable: z.ZodObject<{
|
|
@@ -696,6 +855,19 @@ export declare const zPlanResponseWritable: z.ZodObject<{
|
|
|
696
855
|
unlimited: "unlimited";
|
|
697
856
|
}>;
|
|
698
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>>]>>;
|
|
699
871
|
}, z.core.$strip>;
|
|
700
872
|
allowances: z.ZodObject<{
|
|
701
873
|
default: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -829,6 +1001,25 @@ export declare const zGetCustomerResponse: z.ZodObject<{
|
|
|
829
1001
|
unlimited: "unlimited";
|
|
830
1002
|
}>;
|
|
831
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>>>]>>;
|
|
832
1023
|
}, z.core.$strip>>;
|
|
833
1024
|
}, z.core.$strip>;
|
|
834
1025
|
pendingPlan: z.ZodOptional<z.ZodObject<{
|
|
@@ -902,6 +1093,25 @@ export declare const zGetCustomerResponse: z.ZodObject<{
|
|
|
902
1093
|
unlimited: "unlimited";
|
|
903
1094
|
}>;
|
|
904
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>>>]>>;
|
|
905
1115
|
}, z.core.$strip>>;
|
|
906
1116
|
}, z.core.$strip>>;
|
|
907
1117
|
currentPeriodEnd: z.ZodReadonly<z.ZodInt>;
|
|
@@ -992,6 +1202,25 @@ export declare const zGetPlansResponse: z.ZodObject<{
|
|
|
992
1202
|
unlimited: "unlimited";
|
|
993
1203
|
}>;
|
|
994
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>>>]>>;
|
|
995
1224
|
}, z.core.$strip>;
|
|
996
1225
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
997
1226
|
annual: z.ZodObject<{
|
|
@@ -1203,6 +1432,25 @@ export declare const zM2mGetCustomerResponse: z.ZodObject<{
|
|
|
1203
1432
|
unlimited: "unlimited";
|
|
1204
1433
|
}>;
|
|
1205
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>>>]>>;
|
|
1206
1454
|
}, z.core.$strip>>;
|
|
1207
1455
|
}, z.core.$strip>;
|
|
1208
1456
|
pendingPlan: z.ZodOptional<z.ZodObject<{
|
|
@@ -1276,6 +1524,25 @@ export declare const zM2mGetCustomerResponse: z.ZodObject<{
|
|
|
1276
1524
|
unlimited: "unlimited";
|
|
1277
1525
|
}>;
|
|
1278
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>>>]>>;
|
|
1279
1546
|
}, z.core.$strip>>;
|
|
1280
1547
|
}, z.core.$strip>>;
|
|
1281
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({
|
|
@@ -173,6 +195,20 @@ export const zIntegerPlanFeatureResponseWritable = z.union([
|
|
|
173
195
|
type: z.literal('UnlimitedIntegerPlanFeatureResponseWritable')
|
|
174
196
|
}).and(zUnlimitedIntegerPlanFeatureResponseWritable)
|
|
175
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
|
+
]);
|
|
176
212
|
export const zPricesResponseWritable = z.record(z.string(), z.unknown());
|
|
177
213
|
export const zAllowanceResponseWritable = z.record(z.string(), z.unknown());
|
|
178
214
|
export const zAllowancesResponseWritable = z.object({
|
|
@@ -182,7 +218,8 @@ export const zPlanResponseWritable = z.object({
|
|
|
182
218
|
features: z.object({
|
|
183
219
|
maximumSeats: z.optional(zIntegerPlanFeatureResponseWritable),
|
|
184
220
|
maximumProjects: z.optional(zIntegerPlanFeatureResponseWritable),
|
|
185
|
-
maximumEnvironments: z.optional(zIntegerPlanFeatureResponseWritable)
|
|
221
|
+
maximumEnvironments: z.optional(zIntegerPlanFeatureResponseWritable),
|
|
222
|
+
githubOrganizationIntegration: z.optional(zBooleanPlanFeatureResponseWritable)
|
|
186
223
|
}),
|
|
187
224
|
allowances: zAllowancesResponseWritable
|
|
188
225
|
});
|