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