shoal-web-sdk 1.0.108 → 1.0.110

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.
@@ -6,7 +6,7 @@ export type _Error = {
6
6
  error: string;
7
7
  };
8
8
  export type CatalogResponse = {
9
- basic: PlanResponse;
9
+ solo: PlanResponse;
10
10
  indie: PlanResponse;
11
11
  pro: PlanResponse;
12
12
  enterprise: PlanResponse;
@@ -76,8 +76,7 @@ export type PlanPriceResponse = {
76
76
  };
77
77
  export type PlanTrialResponse = {
78
78
  readonly lengthInDays: number;
79
- readonly startingBonusCents?: number;
80
- readonly trialConvertBonusCents?: number;
79
+ startingBonus: PlanPriceResponse;
81
80
  };
82
81
  export type PlanFeatureResponse = {
83
82
  readonly displayDescription?: string;
@@ -146,10 +145,13 @@ export type CustomerResponse = {
146
145
  readonly scheduledChangeAt?: number;
147
146
  readonly seats: number;
148
147
  readonly paymentMethods: Array<PaymentMethodSummary>;
148
+ readonly creditBalanceUSD: number;
149
149
  readonly upcomingInvoiceTotalCents?: number;
150
150
  };
151
151
  export type UsageInfoResponse = {
152
- meters: Meters;
152
+ meters: {
153
+ [key: string]: MeterType;
154
+ };
153
155
  total: unknown;
154
156
  from: string;
155
157
  to: string;
@@ -163,19 +165,8 @@ export type MeterType = {
163
165
  total: unknown;
164
166
  points: Array<UsagePoint>;
165
167
  };
166
- export type Meters = {
167
- computeVms: MeterType;
168
- appHosting: MeterType;
169
- databaseStorage: MeterType;
170
- networkingSecurity: MeterType;
171
- observability: MeterType;
172
- platformServices: MeterType;
173
- aiMlApis: MeterType;
174
- marketplaceLicences: MeterType;
175
- infraOverhead: MeterType;
176
- };
177
168
  export type CatalogResponseWritable = {
178
- basic: PlanResponseWritable;
169
+ solo: PlanResponseWritable;
179
170
  indie: PlanResponseWritable;
180
171
  pro: PlanResponseWritable;
181
172
  enterprise: PlanResponseWritable;
@@ -226,6 +217,9 @@ export type PlanResponseWritable = {
226
217
  export type PricesResponseWritable = {
227
218
  [key: string]: unknown;
228
219
  };
220
+ export type PlanTrialResponseWritable = {
221
+ [key: string]: unknown;
222
+ };
229
223
  export type CustomerPlanResponseWritable = {
230
224
  interval?: BillingInterval;
231
225
  features: FeaturesWritable;
@@ -34,8 +34,10 @@ export declare const zPricesResponse: z.ZodObject<{
34
34
  }, z.core.$strip>;
35
35
  export declare const zPlanTrialResponse: z.ZodObject<{
36
36
  lengthInDays: z.ZodReadonly<z.ZodInt>;
37
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
38
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
37
+ startingBonus: z.ZodObject<{
38
+ currency: z.ZodReadonly<z.ZodString>;
39
+ amount: z.ZodReadonly<z.ZodInt>;
40
+ }, z.core.$strip>;
39
41
  }, z.core.$strip>;
40
42
  export declare const zPlanFeatureResponse: z.ZodObject<{
41
43
  displayDescription: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
@@ -690,15 +692,17 @@ export declare const zPlanResponse: z.ZodObject<{
690
692
  }, z.core.$strip>>;
691
693
  trial: z.ZodOptional<z.ZodObject<{
692
694
  lengthInDays: z.ZodReadonly<z.ZodInt>;
693
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
694
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
695
+ startingBonus: z.ZodObject<{
696
+ currency: z.ZodReadonly<z.ZodString>;
697
+ amount: z.ZodReadonly<z.ZodInt>;
698
+ }, z.core.$strip>;
695
699
  }, z.core.$strip>>;
696
700
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
697
701
  isActive: z.ZodReadonly<z.ZodBoolean>;
698
702
  isVisible: z.ZodReadonly<z.ZodBoolean>;
699
703
  }, z.core.$strip>;
700
704
  export declare const zCatalogResponse: z.ZodObject<{
701
- basic: z.ZodObject<{
705
+ solo: z.ZodObject<{
702
706
  key: z.ZodString;
703
707
  rank: z.ZodReadonly<z.ZodInt>;
704
708
  displayName: z.ZodReadonly<z.ZodString>;
@@ -995,8 +999,10 @@ export declare const zCatalogResponse: z.ZodObject<{
995
999
  }, z.core.$strip>>;
996
1000
  trial: z.ZodOptional<z.ZodObject<{
997
1001
  lengthInDays: z.ZodReadonly<z.ZodInt>;
998
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
999
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
1002
+ startingBonus: z.ZodObject<{
1003
+ currency: z.ZodReadonly<z.ZodString>;
1004
+ amount: z.ZodReadonly<z.ZodInt>;
1005
+ }, z.core.$strip>;
1000
1006
  }, z.core.$strip>>;
1001
1007
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
1002
1008
  isActive: z.ZodReadonly<z.ZodBoolean>;
@@ -1299,8 +1305,10 @@ export declare const zCatalogResponse: z.ZodObject<{
1299
1305
  }, z.core.$strip>>;
1300
1306
  trial: z.ZodOptional<z.ZodObject<{
1301
1307
  lengthInDays: z.ZodReadonly<z.ZodInt>;
1302
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
1303
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
1308
+ startingBonus: z.ZodObject<{
1309
+ currency: z.ZodReadonly<z.ZodString>;
1310
+ amount: z.ZodReadonly<z.ZodInt>;
1311
+ }, z.core.$strip>;
1304
1312
  }, z.core.$strip>>;
1305
1313
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
1306
1314
  isActive: z.ZodReadonly<z.ZodBoolean>;
@@ -1603,8 +1611,10 @@ export declare const zCatalogResponse: z.ZodObject<{
1603
1611
  }, z.core.$strip>>;
1604
1612
  trial: z.ZodOptional<z.ZodObject<{
1605
1613
  lengthInDays: z.ZodReadonly<z.ZodInt>;
1606
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
1607
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
1614
+ startingBonus: z.ZodObject<{
1615
+ currency: z.ZodReadonly<z.ZodString>;
1616
+ amount: z.ZodReadonly<z.ZodInt>;
1617
+ }, z.core.$strip>;
1608
1618
  }, z.core.$strip>>;
1609
1619
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
1610
1620
  isActive: z.ZodReadonly<z.ZodBoolean>;
@@ -1907,8 +1917,10 @@ export declare const zCatalogResponse: z.ZodObject<{
1907
1917
  }, z.core.$strip>>;
1908
1918
  trial: z.ZodOptional<z.ZodObject<{
1909
1919
  lengthInDays: z.ZodReadonly<z.ZodInt>;
1910
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
1911
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
1920
+ startingBonus: z.ZodObject<{
1921
+ currency: z.ZodReadonly<z.ZodString>;
1922
+ amount: z.ZodReadonly<z.ZodInt>;
1923
+ }, z.core.$strip>;
1912
1924
  }, z.core.$strip>>;
1913
1925
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
1914
1926
  isActive: z.ZodReadonly<z.ZodBoolean>;
@@ -2900,6 +2912,7 @@ export declare const zCustomerResponse: z.ZodObject<{
2900
2912
  expYear: z.ZodReadonly<z.ZodInt>;
2901
2913
  isDefault: z.ZodReadonly<z.ZodBoolean>;
2902
2914
  }, z.core.$strip>>>;
2915
+ creditBalanceUSD: z.ZodReadonly<z.ZodInt>;
2903
2916
  upcomingInvoiceTotalCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
2904
2917
  }, z.core.$strip>;
2905
2918
  export declare const zUsagePoint: z.ZodObject<{
@@ -2914,155 +2927,15 @@ export declare const zMeterType: z.ZodObject<{
2914
2927
  amount: z.ZodUnknown;
2915
2928
  }, z.core.$strip>>;
2916
2929
  }, z.core.$strip>;
2917
- export declare const zMeters: z.ZodObject<{
2918
- computeVms: z.ZodObject<{
2919
- displayName: z.ZodString;
2920
- total: z.ZodUnknown;
2921
- points: z.ZodArray<z.ZodObject<{
2922
- date: z.ZodISODateTime;
2923
- amount: z.ZodUnknown;
2924
- }, z.core.$strip>>;
2925
- }, z.core.$strip>;
2926
- appHosting: z.ZodObject<{
2927
- displayName: z.ZodString;
2928
- total: z.ZodUnknown;
2929
- points: z.ZodArray<z.ZodObject<{
2930
- date: z.ZodISODateTime;
2931
- amount: z.ZodUnknown;
2932
- }, z.core.$strip>>;
2933
- }, z.core.$strip>;
2934
- databaseStorage: z.ZodObject<{
2935
- displayName: z.ZodString;
2936
- total: z.ZodUnknown;
2937
- points: z.ZodArray<z.ZodObject<{
2938
- date: z.ZodISODateTime;
2939
- amount: z.ZodUnknown;
2940
- }, z.core.$strip>>;
2941
- }, z.core.$strip>;
2942
- networkingSecurity: z.ZodObject<{
2943
- displayName: z.ZodString;
2944
- total: z.ZodUnknown;
2945
- points: z.ZodArray<z.ZodObject<{
2946
- date: z.ZodISODateTime;
2947
- amount: z.ZodUnknown;
2948
- }, z.core.$strip>>;
2949
- }, z.core.$strip>;
2950
- observability: z.ZodObject<{
2951
- displayName: z.ZodString;
2952
- total: z.ZodUnknown;
2953
- points: z.ZodArray<z.ZodObject<{
2954
- date: z.ZodISODateTime;
2955
- amount: z.ZodUnknown;
2956
- }, z.core.$strip>>;
2957
- }, z.core.$strip>;
2958
- platformServices: z.ZodObject<{
2959
- displayName: z.ZodString;
2960
- total: z.ZodUnknown;
2961
- points: z.ZodArray<z.ZodObject<{
2962
- date: z.ZodISODateTime;
2963
- amount: z.ZodUnknown;
2964
- }, z.core.$strip>>;
2965
- }, z.core.$strip>;
2966
- aiMlApis: z.ZodObject<{
2967
- displayName: z.ZodString;
2968
- total: z.ZodUnknown;
2969
- points: z.ZodArray<z.ZodObject<{
2970
- date: z.ZodISODateTime;
2971
- amount: z.ZodUnknown;
2972
- }, z.core.$strip>>;
2973
- }, z.core.$strip>;
2974
- marketplaceLicences: z.ZodObject<{
2975
- displayName: z.ZodString;
2976
- total: z.ZodUnknown;
2977
- points: z.ZodArray<z.ZodObject<{
2978
- date: z.ZodISODateTime;
2979
- amount: z.ZodUnknown;
2980
- }, z.core.$strip>>;
2981
- }, z.core.$strip>;
2982
- infraOverhead: z.ZodObject<{
2930
+ export declare const zUsageInfoResponse: z.ZodObject<{
2931
+ meters: z.ZodRecord<z.ZodString, z.ZodObject<{
2983
2932
  displayName: z.ZodString;
2984
2933
  total: z.ZodUnknown;
2985
2934
  points: z.ZodArray<z.ZodObject<{
2986
2935
  date: z.ZodISODateTime;
2987
2936
  amount: z.ZodUnknown;
2988
2937
  }, z.core.$strip>>;
2989
- }, z.core.$strip>;
2990
- }, z.core.$strip>;
2991
- export declare const zUsageInfoResponse: z.ZodObject<{
2992
- meters: z.ZodObject<{
2993
- computeVms: z.ZodObject<{
2994
- displayName: z.ZodString;
2995
- total: z.ZodUnknown;
2996
- points: z.ZodArray<z.ZodObject<{
2997
- date: z.ZodISODateTime;
2998
- amount: z.ZodUnknown;
2999
- }, z.core.$strip>>;
3000
- }, z.core.$strip>;
3001
- appHosting: z.ZodObject<{
3002
- displayName: z.ZodString;
3003
- total: z.ZodUnknown;
3004
- points: z.ZodArray<z.ZodObject<{
3005
- date: z.ZodISODateTime;
3006
- amount: z.ZodUnknown;
3007
- }, z.core.$strip>>;
3008
- }, z.core.$strip>;
3009
- databaseStorage: z.ZodObject<{
3010
- displayName: z.ZodString;
3011
- total: z.ZodUnknown;
3012
- points: z.ZodArray<z.ZodObject<{
3013
- date: z.ZodISODateTime;
3014
- amount: z.ZodUnknown;
3015
- }, z.core.$strip>>;
3016
- }, z.core.$strip>;
3017
- networkingSecurity: z.ZodObject<{
3018
- displayName: z.ZodString;
3019
- total: z.ZodUnknown;
3020
- points: z.ZodArray<z.ZodObject<{
3021
- date: z.ZodISODateTime;
3022
- amount: z.ZodUnknown;
3023
- }, z.core.$strip>>;
3024
- }, z.core.$strip>;
3025
- observability: z.ZodObject<{
3026
- displayName: z.ZodString;
3027
- total: z.ZodUnknown;
3028
- points: z.ZodArray<z.ZodObject<{
3029
- date: z.ZodISODateTime;
3030
- amount: z.ZodUnknown;
3031
- }, z.core.$strip>>;
3032
- }, z.core.$strip>;
3033
- platformServices: z.ZodObject<{
3034
- displayName: z.ZodString;
3035
- total: z.ZodUnknown;
3036
- points: z.ZodArray<z.ZodObject<{
3037
- date: z.ZodISODateTime;
3038
- amount: z.ZodUnknown;
3039
- }, z.core.$strip>>;
3040
- }, z.core.$strip>;
3041
- aiMlApis: z.ZodObject<{
3042
- displayName: z.ZodString;
3043
- total: z.ZodUnknown;
3044
- points: z.ZodArray<z.ZodObject<{
3045
- date: z.ZodISODateTime;
3046
- amount: z.ZodUnknown;
3047
- }, z.core.$strip>>;
3048
- }, z.core.$strip>;
3049
- marketplaceLicences: z.ZodObject<{
3050
- displayName: z.ZodString;
3051
- total: z.ZodUnknown;
3052
- points: z.ZodArray<z.ZodObject<{
3053
- date: z.ZodISODateTime;
3054
- amount: z.ZodUnknown;
3055
- }, z.core.$strip>>;
3056
- }, z.core.$strip>;
3057
- infraOverhead: z.ZodObject<{
3058
- displayName: z.ZodString;
3059
- total: z.ZodUnknown;
3060
- points: z.ZodArray<z.ZodObject<{
3061
- date: z.ZodISODateTime;
3062
- amount: z.ZodUnknown;
3063
- }, z.core.$strip>>;
3064
- }, z.core.$strip>;
3065
- }, z.core.$strip>;
2938
+ }, z.core.$strip>>;
3066
2939
  total: z.ZodUnknown;
3067
2940
  from: z.ZodISODateTime;
3068
2941
  to: z.ZodISODateTime;
@@ -3511,7 +3384,7 @@ export declare const zPlanResponseWritable: z.ZodObject<{
3511
3384
  }, z.core.$strip>;
3512
3385
  }, z.core.$strip>;
3513
3386
  export declare const zCatalogResponseWritable: z.ZodObject<{
3514
- basic: z.ZodObject<{
3387
+ solo: z.ZodObject<{
3515
3388
  key: z.ZodString;
3516
3389
  features: z.ZodObject<{
3517
3390
  maximumSeats: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
@@ -4309,6 +4182,7 @@ export declare const zCatalogResponseWritable: z.ZodObject<{
4309
4182
  }, z.core.$strip>;
4310
4183
  }, z.core.$strip>;
4311
4184
  export declare const zPricesResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4185
+ export declare const zPlanTrialResponseWritable: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4312
4186
  export declare const zCustomerPlanResponseWritable: z.ZodObject<{
4313
4187
  interval: z.ZodOptional<z.ZodEnum<{
4314
4188
  monthly: "monthly";
@@ -5368,6 +5242,7 @@ export declare const zGetCustomerResponse: z.ZodObject<{
5368
5242
  expYear: z.ZodReadonly<z.ZodInt>;
5369
5243
  isDefault: z.ZodReadonly<z.ZodBoolean>;
5370
5244
  }, z.core.$strip>>>;
5245
+ creditBalanceUSD: z.ZodReadonly<z.ZodInt>;
5371
5246
  upcomingInvoiceTotalCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
5372
5247
  }, z.core.$strip>;
5373
5248
  export declare const zGetUsageData: z.ZodObject<{
@@ -5388,80 +5263,14 @@ export declare const zGetUsageData: z.ZodObject<{
5388
5263
  * Usage
5389
5264
  */
5390
5265
  export declare const zGetUsageResponse: z.ZodObject<{
5391
- meters: z.ZodObject<{
5392
- computeVms: z.ZodObject<{
5393
- displayName: z.ZodString;
5394
- total: z.ZodUnknown;
5395
- points: z.ZodArray<z.ZodObject<{
5396
- date: z.ZodISODateTime;
5397
- amount: z.ZodUnknown;
5398
- }, z.core.$strip>>;
5399
- }, z.core.$strip>;
5400
- appHosting: z.ZodObject<{
5401
- displayName: z.ZodString;
5402
- total: z.ZodUnknown;
5403
- points: z.ZodArray<z.ZodObject<{
5404
- date: z.ZodISODateTime;
5405
- amount: z.ZodUnknown;
5406
- }, z.core.$strip>>;
5407
- }, z.core.$strip>;
5408
- databaseStorage: z.ZodObject<{
5409
- displayName: z.ZodString;
5410
- total: z.ZodUnknown;
5411
- points: z.ZodArray<z.ZodObject<{
5412
- date: z.ZodISODateTime;
5413
- amount: z.ZodUnknown;
5414
- }, z.core.$strip>>;
5415
- }, z.core.$strip>;
5416
- networkingSecurity: z.ZodObject<{
5417
- displayName: z.ZodString;
5418
- total: z.ZodUnknown;
5419
- points: z.ZodArray<z.ZodObject<{
5420
- date: z.ZodISODateTime;
5421
- amount: z.ZodUnknown;
5422
- }, z.core.$strip>>;
5423
- }, z.core.$strip>;
5424
- observability: z.ZodObject<{
5425
- displayName: z.ZodString;
5426
- total: z.ZodUnknown;
5427
- points: z.ZodArray<z.ZodObject<{
5428
- date: z.ZodISODateTime;
5429
- amount: z.ZodUnknown;
5430
- }, z.core.$strip>>;
5431
- }, z.core.$strip>;
5432
- platformServices: z.ZodObject<{
5433
- displayName: z.ZodString;
5434
- total: z.ZodUnknown;
5435
- points: z.ZodArray<z.ZodObject<{
5436
- date: z.ZodISODateTime;
5437
- amount: z.ZodUnknown;
5438
- }, z.core.$strip>>;
5439
- }, z.core.$strip>;
5440
- aiMlApis: z.ZodObject<{
5441
- displayName: z.ZodString;
5442
- total: z.ZodUnknown;
5443
- points: z.ZodArray<z.ZodObject<{
5444
- date: z.ZodISODateTime;
5445
- amount: z.ZodUnknown;
5446
- }, z.core.$strip>>;
5447
- }, z.core.$strip>;
5448
- marketplaceLicences: z.ZodObject<{
5449
- displayName: z.ZodString;
5450
- total: z.ZodUnknown;
5451
- points: z.ZodArray<z.ZodObject<{
5452
- date: z.ZodISODateTime;
5453
- amount: z.ZodUnknown;
5454
- }, z.core.$strip>>;
5455
- }, z.core.$strip>;
5456
- infraOverhead: z.ZodObject<{
5457
- displayName: z.ZodString;
5458
- total: z.ZodUnknown;
5459
- points: z.ZodArray<z.ZodObject<{
5460
- date: z.ZodISODateTime;
5461
- amount: z.ZodUnknown;
5462
- }, z.core.$strip>>;
5463
- }, z.core.$strip>;
5464
- }, z.core.$strip>;
5266
+ meters: z.ZodRecord<z.ZodString, z.ZodObject<{
5267
+ displayName: z.ZodString;
5268
+ total: z.ZodUnknown;
5269
+ points: z.ZodArray<z.ZodObject<{
5270
+ date: z.ZodISODateTime;
5271
+ amount: z.ZodUnknown;
5272
+ }, z.core.$strip>>;
5273
+ }, z.core.$strip>>;
5465
5274
  total: z.ZodUnknown;
5466
5275
  from: z.ZodISODateTime;
5467
5276
  to: z.ZodISODateTime;
@@ -5475,7 +5284,7 @@ export declare const zGetPlansData: z.ZodObject<{
5475
5284
  * Catalogue
5476
5285
  */
5477
5286
  export declare const zGetPlansResponse: z.ZodObject<{
5478
- basic: z.ZodObject<{
5287
+ solo: z.ZodObject<{
5479
5288
  key: z.ZodString;
5480
5289
  rank: z.ZodReadonly<z.ZodInt>;
5481
5290
  displayName: z.ZodReadonly<z.ZodString>;
@@ -5772,8 +5581,10 @@ export declare const zGetPlansResponse: z.ZodObject<{
5772
5581
  }, z.core.$strip>>;
5773
5582
  trial: z.ZodOptional<z.ZodObject<{
5774
5583
  lengthInDays: z.ZodReadonly<z.ZodInt>;
5775
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
5776
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
5584
+ startingBonus: z.ZodObject<{
5585
+ currency: z.ZodReadonly<z.ZodString>;
5586
+ amount: z.ZodReadonly<z.ZodInt>;
5587
+ }, z.core.$strip>;
5777
5588
  }, z.core.$strip>>;
5778
5589
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
5779
5590
  isActive: z.ZodReadonly<z.ZodBoolean>;
@@ -6076,8 +5887,10 @@ export declare const zGetPlansResponse: z.ZodObject<{
6076
5887
  }, z.core.$strip>>;
6077
5888
  trial: z.ZodOptional<z.ZodObject<{
6078
5889
  lengthInDays: z.ZodReadonly<z.ZodInt>;
6079
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
6080
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
5890
+ startingBonus: z.ZodObject<{
5891
+ currency: z.ZodReadonly<z.ZodString>;
5892
+ amount: z.ZodReadonly<z.ZodInt>;
5893
+ }, z.core.$strip>;
6081
5894
  }, z.core.$strip>>;
6082
5895
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
6083
5896
  isActive: z.ZodReadonly<z.ZodBoolean>;
@@ -6380,8 +6193,10 @@ export declare const zGetPlansResponse: z.ZodObject<{
6380
6193
  }, z.core.$strip>>;
6381
6194
  trial: z.ZodOptional<z.ZodObject<{
6382
6195
  lengthInDays: z.ZodReadonly<z.ZodInt>;
6383
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
6384
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
6196
+ startingBonus: z.ZodObject<{
6197
+ currency: z.ZodReadonly<z.ZodString>;
6198
+ amount: z.ZodReadonly<z.ZodInt>;
6199
+ }, z.core.$strip>;
6385
6200
  }, z.core.$strip>>;
6386
6201
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
6387
6202
  isActive: z.ZodReadonly<z.ZodBoolean>;
@@ -6684,8 +6499,10 @@ export declare const zGetPlansResponse: z.ZodObject<{
6684
6499
  }, z.core.$strip>>;
6685
6500
  trial: z.ZodOptional<z.ZodObject<{
6686
6501
  lengthInDays: z.ZodReadonly<z.ZodInt>;
6687
- startingBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
6688
- trialConvertBonusCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
6502
+ startingBonus: z.ZodObject<{
6503
+ currency: z.ZodReadonly<z.ZodString>;
6504
+ amount: z.ZodReadonly<z.ZodInt>;
6505
+ }, z.core.$strip>;
6689
6506
  }, z.core.$strip>>;
6690
6507
  isSelfServe: z.ZodReadonly<z.ZodBoolean>;
6691
6508
  isActive: z.ZodReadonly<z.ZodBoolean>;
@@ -7403,6 +7220,7 @@ export declare const zM2mGetCustomerResponse: z.ZodObject<{
7403
7220
  expYear: z.ZodReadonly<z.ZodInt>;
7404
7221
  isDefault: z.ZodReadonly<z.ZodBoolean>;
7405
7222
  }, z.core.$strip>>>;
7223
+ creditBalanceUSD: z.ZodReadonly<z.ZodInt>;
7406
7224
  upcomingInvoiceTotalCents: z.ZodOptional<z.ZodReadonly<z.ZodInt>>;
7407
7225
  }, z.core.$strip>;
7408
7226
  export declare const zM2mCreateCustomerData: z.ZodObject<{
@@ -29,8 +29,7 @@ export const zPricesResponse = z.object({
29
29
  });
30
30
  export const zPlanTrialResponse = z.object({
31
31
  lengthInDays: z.int().gte(0).readonly(),
32
- startingBonusCents: z.optional(z.int().gte(0).readonly()),
33
- trialConvertBonusCents: z.optional(z.int().gte(0).readonly())
32
+ startingBonus: zPlanPriceResponse
34
33
  });
35
34
  export const zPlanFeatureResponse = z.object({
36
35
  displayDescription: z.optional(z.string().readonly()),
@@ -94,7 +93,7 @@ export const zPlanResponse = z.object({
94
93
  isVisible: z.boolean().readonly()
95
94
  });
96
95
  export const zCatalogResponse = z.object({
97
- basic: zPlanResponse,
96
+ solo: zPlanResponse,
98
97
  indie: zPlanResponse,
99
98
  pro: zPlanResponse,
100
99
  enterprise: zPlanResponse
@@ -181,6 +180,7 @@ export const zCustomerResponse = z.object({
181
180
  scheduledChangeAt: z.optional(z.int().readonly()),
182
181
  seats: z.int().readonly(),
183
182
  paymentMethods: z.array(zPaymentMethodSummary).readonly(),
183
+ creditBalanceUSD: z.int().readonly(),
184
184
  upcomingInvoiceTotalCents: z.optional(z.int().readonly())
185
185
  });
186
186
  export const zUsagePoint = z.object({
@@ -192,19 +192,8 @@ export const zMeterType = z.object({
192
192
  total: z.unknown(),
193
193
  points: z.array(zUsagePoint)
194
194
  });
195
- export const zMeters = z.object({
196
- computeVms: zMeterType,
197
- appHosting: zMeterType,
198
- databaseStorage: zMeterType,
199
- networkingSecurity: zMeterType,
200
- observability: zMeterType,
201
- platformServices: zMeterType,
202
- aiMlApis: zMeterType,
203
- marketplaceLicences: zMeterType,
204
- infraOverhead: zMeterType
205
- });
206
195
  export const zUsageInfoResponse = z.object({
207
- meters: zMeters,
196
+ meters: z.record(z.string(), zMeterType),
208
197
  total: z.unknown(),
209
198
  from: z.iso.datetime(),
210
199
  to: z.iso.datetime()
@@ -259,12 +248,13 @@ export const zPlanResponseWritable = z.object({
259
248
  features: zFeaturesWritable
260
249
  });
261
250
  export const zCatalogResponseWritable = z.object({
262
- basic: zPlanResponseWritable,
251
+ solo: zPlanResponseWritable,
263
252
  indie: zPlanResponseWritable,
264
253
  pro: zPlanResponseWritable,
265
254
  enterprise: zPlanResponseWritable
266
255
  });
267
256
  export const zPricesResponseWritable = z.record(z.string(), z.unknown());
257
+ export const zPlanTrialResponseWritable = z.record(z.string(), z.unknown());
268
258
  export const zCustomerPlanResponseWritable = z.object({
269
259
  interval: z.optional(zBillingInterval),
270
260
  features: zFeaturesWritable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.108",
3
+ "version": "1.0.110",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",