shoal-web-sdk 0.0.111 → 0.0.112
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.
- package/dist/sdk/types.gen.d.ts +5 -3
- package/dist/sdk/zod.gen.d.ts +9 -0
- package/dist/sdk/zod.gen.js +12 -14
- package/package.json +1 -1
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: 'http://localhost:8080/core-service' | 'https://api-dev.shoalstack.com/core-service' | (string & {});
|
|
3
3
|
};
|
|
4
|
+
export type PlatformTier = 'free' | 'hobby' | 'pro';
|
|
5
|
+
export type BillingInterval = 'monthly' | 'annual';
|
|
4
6
|
export type BillingPlanLookupKey = 'free-monthly' | 'hobby-monthly' | 'hobby-annual' | 'pro-monthly' | 'pro-annual';
|
|
5
7
|
export type HealthResponse = {
|
|
6
8
|
status: string;
|
|
@@ -352,11 +354,11 @@ export type SignedUrlUploadResponse = {
|
|
|
352
354
|
expiration: string;
|
|
353
355
|
};
|
|
354
356
|
export type BillingPlan = {
|
|
355
|
-
tier:
|
|
356
|
-
interval?:
|
|
357
|
+
tier: PlatformTier;
|
|
358
|
+
interval?: BillingInterval;
|
|
357
359
|
seatCount: number;
|
|
358
360
|
currentPeriodEnd?: string;
|
|
359
|
-
pendingDowngrade?:
|
|
361
|
+
pendingDowngrade?: PlatformTier;
|
|
360
362
|
entitlements: Array<string>;
|
|
361
363
|
};
|
|
362
364
|
export type UpdatePlanRequest = {
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const zPlatformTier: z.ZodEnum<{
|
|
3
|
+
free: "free";
|
|
4
|
+
hobby: "hobby";
|
|
5
|
+
pro: "pro";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const zBillingInterval: z.ZodEnum<{
|
|
8
|
+
monthly: "monthly";
|
|
9
|
+
annual: "annual";
|
|
10
|
+
}>;
|
|
2
11
|
export declare const zBillingPlanLookupKey: z.ZodEnum<{
|
|
3
12
|
"free-monthly": "free-monthly";
|
|
4
13
|
"hobby-monthly": "hobby-monthly";
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
export const zPlatformTier = z.enum([
|
|
4
|
+
'free',
|
|
5
|
+
'hobby',
|
|
6
|
+
'pro'
|
|
7
|
+
]);
|
|
8
|
+
export const zBillingInterval = z.enum([
|
|
9
|
+
'monthly',
|
|
10
|
+
'annual'
|
|
11
|
+
]);
|
|
3
12
|
export const zBillingPlanLookupKey = z.enum([
|
|
4
13
|
'free-monthly',
|
|
5
14
|
'hobby-monthly',
|
|
@@ -438,22 +447,11 @@ export const zSignedUrlUploadResponse = z.object({
|
|
|
438
447
|
expiration: z.iso.datetime()
|
|
439
448
|
});
|
|
440
449
|
export const zBillingPlan = z.object({
|
|
441
|
-
tier:
|
|
442
|
-
|
|
443
|
-
'hobby',
|
|
444
|
-
'pro'
|
|
445
|
-
]),
|
|
446
|
-
interval: z.optional(z.enum([
|
|
447
|
-
'monthly',
|
|
448
|
-
'annual'
|
|
449
|
-
])),
|
|
450
|
+
tier: zPlatformTier,
|
|
451
|
+
interval: z.optional(zBillingInterval),
|
|
450
452
|
seatCount: z.coerce.bigint(),
|
|
451
453
|
currentPeriodEnd: z.optional(z.iso.datetime()),
|
|
452
|
-
pendingDowngrade: z.optional(
|
|
453
|
-
'free',
|
|
454
|
-
'hobby',
|
|
455
|
-
'pro'
|
|
456
|
-
])),
|
|
454
|
+
pendingDowngrade: z.optional(zPlatformTier),
|
|
457
455
|
entitlements: z.array(z.string())
|
|
458
456
|
});
|
|
459
457
|
export const zUpdatePlanRequest = z.object({
|