@middlewr/contracts 0.0.11 → 0.0.13
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/cjs/analytics.schema.d.ts +7 -0
- package/dist/cjs/analytics.schema.d.ts.map +1 -0
- package/dist/cjs/api-keys.schema.d.ts +24 -0
- package/dist/cjs/api-keys.schema.d.ts.map +1 -0
- package/dist/cjs/billing.schema.d.ts +25 -0
- package/dist/cjs/billing.schema.d.ts.map +1 -0
- package/dist/cjs/common.schema.d.ts +6 -0
- package/dist/cjs/common.schema.d.ts.map +1 -1
- package/dist/cjs/index.d.ts +153 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +318 -222
- package/dist/cjs/workspaces.schema.d.ts +10 -0
- package/dist/cjs/workspaces.schema.d.ts.map +1 -1
- package/dist/esm/analytics.schema.d.ts +7 -0
- package/dist/esm/analytics.schema.d.ts.map +1 -0
- package/dist/esm/api-keys.schema.d.ts +24 -0
- package/dist/esm/api-keys.schema.d.ts.map +1 -0
- package/dist/esm/billing.schema.d.ts +25 -0
- package/dist/esm/billing.schema.d.ts.map +1 -0
- package/dist/esm/common.schema.d.ts +6 -0
- package/dist/esm/common.schema.d.ts.map +1 -1
- package/dist/esm/index.d.ts +153 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +306 -222
- package/dist/esm/workspaces.schema.d.ts +10 -0
- package/dist/esm/workspaces.schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/analytics.schema.ts +7 -0
- package/src/api-keys.schema.ts +19 -0
- package/src/billing.schema.ts +25 -0
- package/src/common.schema.ts +8 -0
- package/src/index.ts +35 -0
- package/src/workspaces.schema.ts +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.schema.d.ts","sourceRoot":"","sources":["../../src/analytics.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ApiKeySchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
user_id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
key_prefix: z.ZodString;
|
|
7
|
+
last_used_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
8
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
9
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const CreateApiKeyInputSchema: z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const CreateApiKeyResponseSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
user_id: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
key_prefix: z.ZodString;
|
|
19
|
+
last_used_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
20
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
21
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
22
|
+
key: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
//# sourceMappingURL=api-keys.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-keys.schema.d.ts","sourceRoot":"","sources":["../../src/api-keys.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;iBAQvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;iBAErC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BillingStatusSchema: z.ZodObject<{
|
|
3
|
+
billing_plan: z.ZodString;
|
|
4
|
+
billing_status: z.ZodString;
|
|
5
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
6
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
7
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
8
|
+
billing_customer_id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
billing_subscription_id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const CreateCheckoutInputSchema: z.ZodObject<{
|
|
12
|
+
plan: z.ZodEnum<{
|
|
13
|
+
pro: "pro";
|
|
14
|
+
business: "business";
|
|
15
|
+
}>;
|
|
16
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
17
|
+
billing_email: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const CheckoutSessionSchema: z.ZodObject<{
|
|
20
|
+
url: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const CustomerPortalSchema: z.ZodObject<{
|
|
23
|
+
url: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
//# sourceMappingURL=billing.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.schema.d.ts","sourceRoot":"","sources":["../../src/billing.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC"}
|
|
@@ -22,6 +22,12 @@ export declare const DomainIdParamSchema: z.ZodObject<{
|
|
|
22
22
|
workspace_id: z.ZodString;
|
|
23
23
|
domain_id: z.ZodString;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
|
+
export declare const UserIdParamSchema: z.ZodObject<{
|
|
26
|
+
user_id: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const ApiKeyIdParamSchema: z.ZodObject<{
|
|
29
|
+
api_key_id: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
25
31
|
export declare const TokenParamSchema: z.ZodObject<{
|
|
26
32
|
token: z.ZodString;
|
|
27
33
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../../src/common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../../src/common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ContractRouterClient } from '@orpc/contract';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
export * from './analytics.schema';
|
|
4
|
+
export * from './api-keys.schema';
|
|
5
|
+
export * from './billing.schema';
|
|
3
6
|
export * from './common.schema';
|
|
4
7
|
export * from './domains.schema';
|
|
5
8
|
export * from './links.schema';
|
|
@@ -54,18 +57,54 @@ export declare const usersContract: {
|
|
|
54
57
|
}, z.core.$strip>;
|
|
55
58
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
56
59
|
};
|
|
60
|
+
export declare const apiKeysContract: {
|
|
61
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
user_id: z.ZodString;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
key_prefix: z.ZodString;
|
|
68
|
+
last_used_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
69
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
70
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
71
|
+
key: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
73
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
user_id: z.ZodString;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
key_prefix: z.ZodString;
|
|
78
|
+
last_used_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
79
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
80
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
81
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
82
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
83
|
+
api_key_id: z.ZodString;
|
|
84
|
+
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
85
|
+
};
|
|
57
86
|
export declare const workspacesContract: {
|
|
58
87
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
59
88
|
name: z.ZodString;
|
|
60
89
|
}, z.core.$strip>, z.ZodObject<{
|
|
61
90
|
id: z.ZodString;
|
|
62
91
|
name: z.ZodString;
|
|
92
|
+
billing_plan: z.ZodString;
|
|
93
|
+
billing_status: z.ZodString;
|
|
94
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
95
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
96
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
63
97
|
created_at: z.ZodCoercedDate<unknown>;
|
|
64
98
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
65
99
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
66
100
|
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
67
101
|
id: z.ZodString;
|
|
68
102
|
name: z.ZodString;
|
|
103
|
+
billing_plan: z.ZodString;
|
|
104
|
+
billing_status: z.ZodString;
|
|
105
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
106
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
107
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
69
108
|
created_at: z.ZodCoercedDate<unknown>;
|
|
70
109
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
71
110
|
member_count: z.ZodNumber;
|
|
@@ -75,6 +114,11 @@ export declare const workspacesContract: {
|
|
|
75
114
|
}, z.core.$strip>, z.ZodObject<{
|
|
76
115
|
id: z.ZodString;
|
|
77
116
|
name: z.ZodString;
|
|
117
|
+
billing_plan: z.ZodString;
|
|
118
|
+
billing_status: z.ZodString;
|
|
119
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
120
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
121
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
78
122
|
created_at: z.ZodCoercedDate<unknown>;
|
|
79
123
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
80
124
|
member_count: z.ZodNumber;
|
|
@@ -85,6 +129,11 @@ export declare const workspacesContract: {
|
|
|
85
129
|
}, z.core.$strip>, z.ZodObject<{
|
|
86
130
|
id: z.ZodString;
|
|
87
131
|
name: z.ZodString;
|
|
132
|
+
billing_plan: z.ZodString;
|
|
133
|
+
billing_status: z.ZodString;
|
|
134
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
135
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
136
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
88
137
|
created_at: z.ZodCoercedDate<unknown>;
|
|
89
138
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
90
139
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -564,6 +613,35 @@ export declare const domainsContract: {
|
|
|
564
613
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
565
614
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
566
615
|
};
|
|
616
|
+
export declare const billingContract: {
|
|
617
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
618
|
+
workspace_id: z.ZodString;
|
|
619
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
620
|
+
billing_plan: z.ZodString;
|
|
621
|
+
billing_status: z.ZodString;
|
|
622
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
623
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
624
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
625
|
+
billing_customer_id: z.ZodNullable<z.ZodString>;
|
|
626
|
+
billing_subscription_id: z.ZodNullable<z.ZodString>;
|
|
627
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
628
|
+
checkout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
629
|
+
workspace_id: z.ZodString;
|
|
630
|
+
plan: z.ZodEnum<{
|
|
631
|
+
pro: "pro";
|
|
632
|
+
business: "business";
|
|
633
|
+
}>;
|
|
634
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
635
|
+
billing_email: z.ZodOptional<z.ZodString>;
|
|
636
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
637
|
+
url: z.ZodString;
|
|
638
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
639
|
+
portal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
640
|
+
workspace_id: z.ZodString;
|
|
641
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
642
|
+
url: z.ZodString;
|
|
643
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
644
|
+
};
|
|
567
645
|
export declare const contract: {
|
|
568
646
|
users: {
|
|
569
647
|
me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
@@ -613,18 +691,54 @@ export declare const contract: {
|
|
|
613
691
|
}, z.core.$strip>;
|
|
614
692
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
615
693
|
};
|
|
694
|
+
apiKeys: {
|
|
695
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
696
|
+
name: z.ZodString;
|
|
697
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
698
|
+
id: z.ZodString;
|
|
699
|
+
user_id: z.ZodString;
|
|
700
|
+
name: z.ZodString;
|
|
701
|
+
key_prefix: z.ZodString;
|
|
702
|
+
last_used_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
703
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
704
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
705
|
+
key: z.ZodString;
|
|
706
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
707
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
708
|
+
id: z.ZodString;
|
|
709
|
+
user_id: z.ZodString;
|
|
710
|
+
name: z.ZodString;
|
|
711
|
+
key_prefix: z.ZodString;
|
|
712
|
+
last_used_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
713
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
714
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
715
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
716
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
717
|
+
api_key_id: z.ZodString;
|
|
718
|
+
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
719
|
+
};
|
|
616
720
|
workspaces: {
|
|
617
721
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
618
722
|
name: z.ZodString;
|
|
619
723
|
}, z.core.$strip>, z.ZodObject<{
|
|
620
724
|
id: z.ZodString;
|
|
621
725
|
name: z.ZodString;
|
|
726
|
+
billing_plan: z.ZodString;
|
|
727
|
+
billing_status: z.ZodString;
|
|
728
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
729
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
730
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
622
731
|
created_at: z.ZodCoercedDate<unknown>;
|
|
623
732
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
624
733
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
625
734
|
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
626
735
|
id: z.ZodString;
|
|
627
736
|
name: z.ZodString;
|
|
737
|
+
billing_plan: z.ZodString;
|
|
738
|
+
billing_status: z.ZodString;
|
|
739
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
740
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
741
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
628
742
|
created_at: z.ZodCoercedDate<unknown>;
|
|
629
743
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
630
744
|
member_count: z.ZodNumber;
|
|
@@ -634,6 +748,11 @@ export declare const contract: {
|
|
|
634
748
|
}, z.core.$strip>, z.ZodObject<{
|
|
635
749
|
id: z.ZodString;
|
|
636
750
|
name: z.ZodString;
|
|
751
|
+
billing_plan: z.ZodString;
|
|
752
|
+
billing_status: z.ZodString;
|
|
753
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
754
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
755
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
637
756
|
created_at: z.ZodCoercedDate<unknown>;
|
|
638
757
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
639
758
|
member_count: z.ZodNumber;
|
|
@@ -644,6 +763,11 @@ export declare const contract: {
|
|
|
644
763
|
}, z.core.$strip>, z.ZodObject<{
|
|
645
764
|
id: z.ZodString;
|
|
646
765
|
name: z.ZodString;
|
|
766
|
+
billing_plan: z.ZodString;
|
|
767
|
+
billing_status: z.ZodString;
|
|
768
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
769
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
770
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
647
771
|
created_at: z.ZodCoercedDate<unknown>;
|
|
648
772
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
649
773
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1123,6 +1247,35 @@ export declare const contract: {
|
|
|
1123
1247
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1124
1248
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1125
1249
|
};
|
|
1250
|
+
billing: {
|
|
1251
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1252
|
+
workspace_id: z.ZodString;
|
|
1253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1254
|
+
billing_plan: z.ZodString;
|
|
1255
|
+
billing_status: z.ZodString;
|
|
1256
|
+
billing_email: z.ZodNullable<z.ZodString>;
|
|
1257
|
+
billing_current_period_end: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1258
|
+
billing_cancel_at_period_end: z.ZodBoolean;
|
|
1259
|
+
billing_customer_id: z.ZodNullable<z.ZodString>;
|
|
1260
|
+
billing_subscription_id: z.ZodNullable<z.ZodString>;
|
|
1261
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1262
|
+
checkout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1263
|
+
workspace_id: z.ZodString;
|
|
1264
|
+
plan: z.ZodEnum<{
|
|
1265
|
+
pro: "pro";
|
|
1266
|
+
business: "business";
|
|
1267
|
+
}>;
|
|
1268
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
billing_email: z.ZodOptional<z.ZodString>;
|
|
1270
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1271
|
+
url: z.ZodString;
|
|
1272
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1273
|
+
portal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1274
|
+
workspace_id: z.ZodString;
|
|
1275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1276
|
+
url: z.ZodString;
|
|
1277
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1278
|
+
};
|
|
1126
1279
|
};
|
|
1127
1280
|
export type Contract = typeof contract;
|
|
1128
1281
|
export type Client = ContractRouterClient<Contract>;
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+BxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC;AAGF,eAAO,MAAM,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