@middlewr/contracts 0.0.1 → 0.0.3
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/cjs/common.schema.d.ts.map +1 -0
- package/{index.d.ts → cjs/index.d.ts} +56 -54
- package/cjs/index.d.ts.map +1 -0
- package/cjs/index.js +334 -0
- package/cjs/links.schema.d.ts.map +1 -0
- package/cjs/package.json +3 -0
- package/cjs/tags.schema.d.ts.map +1 -0
- package/cjs/users.schema.d.ts.map +1 -0
- package/cjs/workspaces.schema.d.ts.map +1 -0
- package/esm/common.schema.d.ts +24 -0
- package/esm/common.schema.d.ts.map +1 -0
- package/esm/common.schema.js +23 -0
- package/esm/index.d.ts +780 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +107 -0
- package/esm/links.schema.d.ts +109 -0
- package/esm/links.schema.d.ts.map +1 -0
- package/esm/links.schema.js +95 -0
- package/esm/package.json +3 -0
- package/esm/tags.schema.d.ts +18 -0
- package/esm/tags.schema.d.ts.map +1 -0
- package/esm/tags.schema.js +24 -0
- package/esm/users.schema.d.ts +20 -0
- package/esm/users.schema.d.ts.map +1 -0
- package/esm/users.schema.js +19 -0
- package/esm/workspaces.schema.d.ts +50 -0
- package/esm/workspaces.schema.d.ts.map +1 -0
- package/esm/workspaces.schema.js +47 -0
- package/package.json +8 -6
- package/common.schema.d.ts.map +0 -1
- package/common.schema.js +0 -26
- package/index.d.ts.map +0 -1
- package/index.js +0 -124
- package/links.schema.d.ts.map +0 -1
- package/links.schema.js +0 -98
- package/tags.schema.d.ts.map +0 -1
- package/tags.schema.js +0 -27
- package/users.schema.d.ts.map +0 -1
- package/users.schema.js +0 -22
- package/workspaces.schema.d.ts.map +0 -1
- package/workspaces.schema.js +0 -50
- /package/{common.schema.d.ts → cjs/common.schema.d.ts} +0 -0
- /package/{links.schema.d.ts → cjs/links.schema.d.ts} +0 -0
- /package/{tags.schema.d.ts → cjs/tags.schema.d.ts} +0 -0
- /package/{users.schema.d.ts → cjs/users.schema.d.ts} +0 -0
- /package/{workspaces.schema.d.ts → cjs/workspaces.schema.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../../src/contracts/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,gBAAgB;;iBAE3B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ContractRouterClient } from '@orpc/contract';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
export * from './common.schema';
|
|
3
4
|
export * from './links.schema';
|
|
@@ -5,7 +6,7 @@ export * from './tags.schema';
|
|
|
5
6
|
export * from './users.schema';
|
|
6
7
|
export * from './workspaces.schema';
|
|
7
8
|
export declare const usersContract: {
|
|
8
|
-
me: import("@orpc/contract"
|
|
9
|
+
me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
9
10
|
id: z.ZodString;
|
|
10
11
|
external_id: z.ZodString;
|
|
11
12
|
email: z.ZodString;
|
|
@@ -15,7 +16,7 @@ export declare const usersContract: {
|
|
|
15
16
|
created_at: z.ZodCoercedDate<unknown>;
|
|
16
17
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
17
18
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
18
|
-
signIn: import("@orpc/contract"
|
|
19
|
+
signIn: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
19
20
|
first_name: z.ZodOptional<z.ZodString>;
|
|
20
21
|
last_name: z.ZodOptional<z.ZodString>;
|
|
21
22
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -34,7 +35,7 @@ export declare const usersContract: {
|
|
|
34
35
|
existing: "existing";
|
|
35
36
|
}>;
|
|
36
37
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
37
|
-
update: import("@orpc/contract"
|
|
38
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
38
39
|
first_name: z.ZodOptional<z.ZodString>;
|
|
39
40
|
last_name: z.ZodOptional<z.ZodString>;
|
|
40
41
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -49,7 +50,7 @@ export declare const usersContract: {
|
|
|
49
50
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
50
51
|
};
|
|
51
52
|
export declare const workspacesContract: {
|
|
52
|
-
create: import("@orpc/contract"
|
|
53
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
53
54
|
name: z.ZodString;
|
|
54
55
|
}, z.core.$strip>, z.ZodObject<{
|
|
55
56
|
id: z.ZodString;
|
|
@@ -57,14 +58,14 @@ export declare const workspacesContract: {
|
|
|
57
58
|
created_at: z.ZodCoercedDate<unknown>;
|
|
58
59
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
59
60
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
60
|
-
list: import("@orpc/contract"
|
|
61
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
61
62
|
id: z.ZodString;
|
|
62
63
|
name: z.ZodString;
|
|
63
64
|
created_at: z.ZodCoercedDate<unknown>;
|
|
64
65
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
65
66
|
member_count: z.ZodNumber;
|
|
66
67
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
67
|
-
get: import("@orpc/contract"
|
|
68
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
68
69
|
workspace_id: z.ZodString;
|
|
69
70
|
}, z.core.$strip>, z.ZodObject<{
|
|
70
71
|
id: z.ZodString;
|
|
@@ -73,7 +74,7 @@ export declare const workspacesContract: {
|
|
|
73
74
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
74
75
|
member_count: z.ZodNumber;
|
|
75
76
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
76
|
-
update: import("@orpc/contract"
|
|
77
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
77
78
|
workspace_id: z.ZodString;
|
|
78
79
|
name: z.ZodOptional<z.ZodString>;
|
|
79
80
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -82,14 +83,14 @@ export declare const workspacesContract: {
|
|
|
82
83
|
created_at: z.ZodCoercedDate<unknown>;
|
|
83
84
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
84
85
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
85
|
-
delete: import("@orpc/contract"
|
|
86
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
86
87
|
workspace_id: z.ZodString;
|
|
87
88
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
88
|
-
transfer: import("@orpc/contract"
|
|
89
|
+
transfer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
89
90
|
workspace_id: z.ZodString;
|
|
90
91
|
to_user_id: z.ZodString;
|
|
91
92
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
92
|
-
listMembers: import("@orpc/contract"
|
|
93
|
+
listMembers: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
93
94
|
workspace_id: z.ZodString;
|
|
94
95
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
95
96
|
id: z.ZodString;
|
|
@@ -100,7 +101,7 @@ export declare const workspacesContract: {
|
|
|
100
101
|
created_at: z.ZodCoercedDate<unknown>;
|
|
101
102
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
102
103
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
103
|
-
updateMember: import("@orpc/contract"
|
|
104
|
+
updateMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
104
105
|
workspace_id: z.ZodString;
|
|
105
106
|
user_id: z.ZodString;
|
|
106
107
|
permissions: z.ZodNumber;
|
|
@@ -113,11 +114,11 @@ export declare const workspacesContract: {
|
|
|
113
114
|
created_at: z.ZodCoercedDate<unknown>;
|
|
114
115
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
115
116
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
116
|
-
removeMember: import("@orpc/contract"
|
|
117
|
+
removeMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
117
118
|
workspace_id: z.ZodString;
|
|
118
119
|
user_id: z.ZodString;
|
|
119
120
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
120
|
-
listInvitations: import("@orpc/contract"
|
|
121
|
+
listInvitations: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
121
122
|
workspace_id: z.ZodString;
|
|
122
123
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
123
124
|
id: z.ZodString;
|
|
@@ -129,7 +130,7 @@ export declare const workspacesContract: {
|
|
|
129
130
|
expires_at: z.ZodCoercedDate<unknown>;
|
|
130
131
|
created_at: z.ZodCoercedDate<unknown>;
|
|
131
132
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
132
|
-
createInvitation: import("@orpc/contract"
|
|
133
|
+
createInvitation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
133
134
|
workspace_id: z.ZodString;
|
|
134
135
|
email: z.ZodString;
|
|
135
136
|
permissions: z.ZodNumber;
|
|
@@ -143,13 +144,13 @@ export declare const workspacesContract: {
|
|
|
143
144
|
expires_at: z.ZodCoercedDate<unknown>;
|
|
144
145
|
created_at: z.ZodCoercedDate<unknown>;
|
|
145
146
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
146
|
-
revokeInvitation: import("@orpc/contract"
|
|
147
|
+
revokeInvitation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
147
148
|
workspace_id: z.ZodString;
|
|
148
149
|
invitation_id: z.ZodString;
|
|
149
150
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
150
151
|
};
|
|
151
152
|
export declare const invitationsContract: {
|
|
152
|
-
get: import("@orpc/contract"
|
|
153
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
153
154
|
token: z.ZodString;
|
|
154
155
|
}, z.core.$strip>, z.ZodObject<{
|
|
155
156
|
id: z.ZodString;
|
|
@@ -161,7 +162,7 @@ export declare const invitationsContract: {
|
|
|
161
162
|
expires_at: z.ZodCoercedDate<unknown>;
|
|
162
163
|
created_at: z.ZodCoercedDate<unknown>;
|
|
163
164
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
164
|
-
accept: import("@orpc/contract"
|
|
165
|
+
accept: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
165
166
|
token: z.ZodString;
|
|
166
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
167
168
|
id: z.ZodString;
|
|
@@ -174,7 +175,7 @@ export declare const invitationsContract: {
|
|
|
174
175
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
175
176
|
};
|
|
176
177
|
export declare const linksContract: {
|
|
177
|
-
create: import("@orpc/contract"
|
|
178
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
178
179
|
workspace_id: z.ZodString;
|
|
179
180
|
original_url: z.ZodString;
|
|
180
181
|
short_code: z.ZodOptional<z.ZodString>;
|
|
@@ -213,7 +214,7 @@ export declare const linksContract: {
|
|
|
213
214
|
created_at: z.ZodCoercedDate<unknown>;
|
|
214
215
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
215
216
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
216
|
-
list: import("@orpc/contract"
|
|
217
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
217
218
|
workspace_id: z.ZodString;
|
|
218
219
|
search: z.ZodOptional<z.ZodString>;
|
|
219
220
|
is_active: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -264,7 +265,7 @@ export declare const linksContract: {
|
|
|
264
265
|
per_page: z.ZodNumber;
|
|
265
266
|
total_pages: z.ZodNumber;
|
|
266
267
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
267
|
-
get: import("@orpc/contract"
|
|
268
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
268
269
|
workspace_id: z.ZodString;
|
|
269
270
|
link_id: z.ZodString;
|
|
270
271
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -290,7 +291,7 @@ export declare const linksContract: {
|
|
|
290
291
|
created_at: z.ZodCoercedDate<unknown>;
|
|
291
292
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
292
293
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
293
|
-
update: import("@orpc/contract"
|
|
294
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
294
295
|
workspace_id: z.ZodString;
|
|
295
296
|
link_id: z.ZodString;
|
|
296
297
|
original_url: z.ZodOptional<z.ZodString>;
|
|
@@ -331,13 +332,13 @@ export declare const linksContract: {
|
|
|
331
332
|
created_at: z.ZodCoercedDate<unknown>;
|
|
332
333
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
333
334
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
334
|
-
delete: import("@orpc/contract"
|
|
335
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
335
336
|
workspace_id: z.ZodString;
|
|
336
337
|
link_id: z.ZodString;
|
|
337
338
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
338
339
|
};
|
|
339
340
|
export declare const tagsContract: {
|
|
340
|
-
create: import("@orpc/contract"
|
|
341
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
341
342
|
workspace_id: z.ZodString;
|
|
342
343
|
name: z.ZodString;
|
|
343
344
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -349,7 +350,7 @@ export declare const tagsContract: {
|
|
|
349
350
|
created_at: z.ZodCoercedDate<unknown>;
|
|
350
351
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
351
352
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
352
|
-
list: import("@orpc/contract"
|
|
353
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
353
354
|
workspace_id: z.ZodString;
|
|
354
355
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
355
356
|
id: z.ZodString;
|
|
@@ -359,7 +360,7 @@ export declare const tagsContract: {
|
|
|
359
360
|
created_at: z.ZodCoercedDate<unknown>;
|
|
360
361
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
361
362
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
362
|
-
get: import("@orpc/contract"
|
|
363
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
363
364
|
workspace_id: z.ZodString;
|
|
364
365
|
tag_id: z.ZodString;
|
|
365
366
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -370,7 +371,7 @@ export declare const tagsContract: {
|
|
|
370
371
|
created_at: z.ZodCoercedDate<unknown>;
|
|
371
372
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
372
373
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
373
|
-
update: import("@orpc/contract"
|
|
374
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
374
375
|
workspace_id: z.ZodString;
|
|
375
376
|
tag_id: z.ZodString;
|
|
376
377
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -383,14 +384,14 @@ export declare const tagsContract: {
|
|
|
383
384
|
created_at: z.ZodCoercedDate<unknown>;
|
|
384
385
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
385
386
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
386
|
-
delete: import("@orpc/contract"
|
|
387
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
387
388
|
workspace_id: z.ZodString;
|
|
388
389
|
tag_id: z.ZodString;
|
|
389
390
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
390
391
|
};
|
|
391
392
|
export declare const contract: {
|
|
392
393
|
users: {
|
|
393
|
-
me: import("@orpc/contract"
|
|
394
|
+
me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
394
395
|
id: z.ZodString;
|
|
395
396
|
external_id: z.ZodString;
|
|
396
397
|
email: z.ZodString;
|
|
@@ -400,7 +401,7 @@ export declare const contract: {
|
|
|
400
401
|
created_at: z.ZodCoercedDate<unknown>;
|
|
401
402
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
402
403
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
403
|
-
signIn: import("@orpc/contract"
|
|
404
|
+
signIn: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
404
405
|
first_name: z.ZodOptional<z.ZodString>;
|
|
405
406
|
last_name: z.ZodOptional<z.ZodString>;
|
|
406
407
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -419,7 +420,7 @@ export declare const contract: {
|
|
|
419
420
|
existing: "existing";
|
|
420
421
|
}>;
|
|
421
422
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
422
|
-
update: import("@orpc/contract"
|
|
423
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
423
424
|
first_name: z.ZodOptional<z.ZodString>;
|
|
424
425
|
last_name: z.ZodOptional<z.ZodString>;
|
|
425
426
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -434,7 +435,7 @@ export declare const contract: {
|
|
|
434
435
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
435
436
|
};
|
|
436
437
|
workspaces: {
|
|
437
|
-
create: import("@orpc/contract"
|
|
438
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
438
439
|
name: z.ZodString;
|
|
439
440
|
}, z.core.$strip>, z.ZodObject<{
|
|
440
441
|
id: z.ZodString;
|
|
@@ -442,14 +443,14 @@ export declare const contract: {
|
|
|
442
443
|
created_at: z.ZodCoercedDate<unknown>;
|
|
443
444
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
444
445
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
445
|
-
list: import("@orpc/contract"
|
|
446
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
446
447
|
id: z.ZodString;
|
|
447
448
|
name: z.ZodString;
|
|
448
449
|
created_at: z.ZodCoercedDate<unknown>;
|
|
449
450
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
450
451
|
member_count: z.ZodNumber;
|
|
451
452
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
452
|
-
get: import("@orpc/contract"
|
|
453
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
453
454
|
workspace_id: z.ZodString;
|
|
454
455
|
}, z.core.$strip>, z.ZodObject<{
|
|
455
456
|
id: z.ZodString;
|
|
@@ -458,7 +459,7 @@ export declare const contract: {
|
|
|
458
459
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
459
460
|
member_count: z.ZodNumber;
|
|
460
461
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
461
|
-
update: import("@orpc/contract"
|
|
462
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
462
463
|
workspace_id: z.ZodString;
|
|
463
464
|
name: z.ZodOptional<z.ZodString>;
|
|
464
465
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -467,14 +468,14 @@ export declare const contract: {
|
|
|
467
468
|
created_at: z.ZodCoercedDate<unknown>;
|
|
468
469
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
469
470
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
470
|
-
delete: import("@orpc/contract"
|
|
471
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
471
472
|
workspace_id: z.ZodString;
|
|
472
473
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
473
|
-
transfer: import("@orpc/contract"
|
|
474
|
+
transfer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
474
475
|
workspace_id: z.ZodString;
|
|
475
476
|
to_user_id: z.ZodString;
|
|
476
477
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
477
|
-
listMembers: import("@orpc/contract"
|
|
478
|
+
listMembers: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
478
479
|
workspace_id: z.ZodString;
|
|
479
480
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
480
481
|
id: z.ZodString;
|
|
@@ -485,7 +486,7 @@ export declare const contract: {
|
|
|
485
486
|
created_at: z.ZodCoercedDate<unknown>;
|
|
486
487
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
487
488
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
488
|
-
updateMember: import("@orpc/contract"
|
|
489
|
+
updateMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
489
490
|
workspace_id: z.ZodString;
|
|
490
491
|
user_id: z.ZodString;
|
|
491
492
|
permissions: z.ZodNumber;
|
|
@@ -498,11 +499,11 @@ export declare const contract: {
|
|
|
498
499
|
created_at: z.ZodCoercedDate<unknown>;
|
|
499
500
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
500
501
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
501
|
-
removeMember: import("@orpc/contract"
|
|
502
|
+
removeMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
502
503
|
workspace_id: z.ZodString;
|
|
503
504
|
user_id: z.ZodString;
|
|
504
505
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
505
|
-
listInvitations: import("@orpc/contract"
|
|
506
|
+
listInvitations: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
506
507
|
workspace_id: z.ZodString;
|
|
507
508
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
508
509
|
id: z.ZodString;
|
|
@@ -514,7 +515,7 @@ export declare const contract: {
|
|
|
514
515
|
expires_at: z.ZodCoercedDate<unknown>;
|
|
515
516
|
created_at: z.ZodCoercedDate<unknown>;
|
|
516
517
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
517
|
-
createInvitation: import("@orpc/contract"
|
|
518
|
+
createInvitation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
518
519
|
workspace_id: z.ZodString;
|
|
519
520
|
email: z.ZodString;
|
|
520
521
|
permissions: z.ZodNumber;
|
|
@@ -528,13 +529,13 @@ export declare const contract: {
|
|
|
528
529
|
expires_at: z.ZodCoercedDate<unknown>;
|
|
529
530
|
created_at: z.ZodCoercedDate<unknown>;
|
|
530
531
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
531
|
-
revokeInvitation: import("@orpc/contract"
|
|
532
|
+
revokeInvitation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
532
533
|
workspace_id: z.ZodString;
|
|
533
534
|
invitation_id: z.ZodString;
|
|
534
535
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
535
536
|
};
|
|
536
537
|
invitations: {
|
|
537
|
-
get: import("@orpc/contract"
|
|
538
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
538
539
|
token: z.ZodString;
|
|
539
540
|
}, z.core.$strip>, z.ZodObject<{
|
|
540
541
|
id: z.ZodString;
|
|
@@ -546,7 +547,7 @@ export declare const contract: {
|
|
|
546
547
|
expires_at: z.ZodCoercedDate<unknown>;
|
|
547
548
|
created_at: z.ZodCoercedDate<unknown>;
|
|
548
549
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
549
|
-
accept: import("@orpc/contract"
|
|
550
|
+
accept: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
550
551
|
token: z.ZodString;
|
|
551
552
|
}, z.core.$strip>, z.ZodObject<{
|
|
552
553
|
id: z.ZodString;
|
|
@@ -559,7 +560,7 @@ export declare const contract: {
|
|
|
559
560
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
560
561
|
};
|
|
561
562
|
links: {
|
|
562
|
-
create: import("@orpc/contract"
|
|
563
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
563
564
|
workspace_id: z.ZodString;
|
|
564
565
|
original_url: z.ZodString;
|
|
565
566
|
short_code: z.ZodOptional<z.ZodString>;
|
|
@@ -598,7 +599,7 @@ export declare const contract: {
|
|
|
598
599
|
created_at: z.ZodCoercedDate<unknown>;
|
|
599
600
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
600
601
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
601
|
-
list: import("@orpc/contract"
|
|
602
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
602
603
|
workspace_id: z.ZodString;
|
|
603
604
|
search: z.ZodOptional<z.ZodString>;
|
|
604
605
|
is_active: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -649,7 +650,7 @@ export declare const contract: {
|
|
|
649
650
|
per_page: z.ZodNumber;
|
|
650
651
|
total_pages: z.ZodNumber;
|
|
651
652
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
652
|
-
get: import("@orpc/contract"
|
|
653
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
653
654
|
workspace_id: z.ZodString;
|
|
654
655
|
link_id: z.ZodString;
|
|
655
656
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -675,7 +676,7 @@ export declare const contract: {
|
|
|
675
676
|
created_at: z.ZodCoercedDate<unknown>;
|
|
676
677
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
677
678
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
678
|
-
update: import("@orpc/contract"
|
|
679
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
679
680
|
workspace_id: z.ZodString;
|
|
680
681
|
link_id: z.ZodString;
|
|
681
682
|
original_url: z.ZodOptional<z.ZodString>;
|
|
@@ -716,13 +717,13 @@ export declare const contract: {
|
|
|
716
717
|
created_at: z.ZodCoercedDate<unknown>;
|
|
717
718
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
718
719
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
719
|
-
delete: import("@orpc/contract"
|
|
720
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
720
721
|
workspace_id: z.ZodString;
|
|
721
722
|
link_id: z.ZodString;
|
|
722
723
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
723
724
|
};
|
|
724
725
|
tags: {
|
|
725
|
-
create: import("@orpc/contract"
|
|
726
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
726
727
|
workspace_id: z.ZodString;
|
|
727
728
|
name: z.ZodString;
|
|
728
729
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -734,7 +735,7 @@ export declare const contract: {
|
|
|
734
735
|
created_at: z.ZodCoercedDate<unknown>;
|
|
735
736
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
736
737
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
737
|
-
list: import("@orpc/contract"
|
|
738
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
738
739
|
workspace_id: z.ZodString;
|
|
739
740
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
740
741
|
id: z.ZodString;
|
|
@@ -744,7 +745,7 @@ export declare const contract: {
|
|
|
744
745
|
created_at: z.ZodCoercedDate<unknown>;
|
|
745
746
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
746
747
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
747
|
-
get: import("@orpc/contract"
|
|
748
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
748
749
|
workspace_id: z.ZodString;
|
|
749
750
|
tag_id: z.ZodString;
|
|
750
751
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -755,7 +756,7 @@ export declare const contract: {
|
|
|
755
756
|
created_at: z.ZodCoercedDate<unknown>;
|
|
756
757
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
757
758
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
758
|
-
update: import("@orpc/contract"
|
|
759
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
759
760
|
workspace_id: z.ZodString;
|
|
760
761
|
tag_id: z.ZodString;
|
|
761
762
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -768,11 +769,12 @@ export declare const contract: {
|
|
|
768
769
|
created_at: z.ZodCoercedDate<unknown>;
|
|
769
770
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
770
771
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
771
|
-
delete: import("@orpc/contract"
|
|
772
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
772
773
|
workspace_id: z.ZodString;
|
|
773
774
|
tag_id: z.ZodString;
|
|
774
775
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
775
776
|
};
|
|
776
777
|
};
|
|
777
778
|
export type Contract = typeof contract;
|
|
779
|
+
export type Client = ContractRouterClient<Contract>;
|
|
778
780
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASzB,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD9B,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBzB,CAAC;AAGF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|