@middlewr/contracts 0.0.7 → 0.0.8
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 → dist/cjs}/common.schema.d.ts +4 -0
- package/dist/cjs/common.schema.d.ts.map +1 -0
- package/dist/cjs/domains.schema.d.ts +17 -0
- package/dist/cjs/domains.schema.d.ts.map +1 -0
- package/{esm → dist/cjs}/index.d.ts +197 -10
- package/dist/cjs/index.d.ts.map +1 -0
- package/{cjs → dist/cjs}/index.js +196 -145
- package/{cjs → dist/cjs}/links.schema.d.ts +24 -3
- package/dist/cjs/links.schema.d.ts.map +1 -0
- package/dist/cjs/tags.schema.d.ts.map +1 -0
- package/dist/cjs/users.schema.d.ts.map +1 -0
- package/dist/cjs/workspaces.schema.d.ts.map +1 -0
- package/{esm → dist/esm}/common.schema.d.ts +4 -0
- package/dist/esm/common.schema.d.ts.map +1 -0
- package/dist/esm/domains.schema.d.ts +17 -0
- package/dist/esm/domains.schema.d.ts.map +1 -0
- package/{cjs → dist/esm}/index.d.ts +197 -10
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +332 -0
- package/{esm → dist/esm}/links.schema.d.ts +24 -3
- package/dist/esm/links.schema.d.ts.map +1 -0
- package/dist/esm/tags.schema.d.ts.map +1 -0
- package/dist/esm/users.schema.d.ts.map +1 -0
- package/dist/esm/workspaces.schema.d.ts.map +1 -0
- package/package.json +20 -7
- package/scripts/build.sh +55 -0
- package/src/common.schema.ts +34 -0
- package/src/domains.schema.ts +32 -0
- package/src/index.ts +196 -0
- package/src/links.schema.ts +107 -0
- package/src/tags.schema.ts +27 -0
- package/src/users.schema.ts +22 -0
- package/src/workspaces.schema.ts +64 -0
- package/tsconfig.json +17 -0
- package/cjs/common.schema.d.ts.map +0 -1
- package/cjs/index.d.ts.map +0 -1
- package/cjs/links.schema.d.ts.map +0 -1
- package/cjs/tags.schema.d.ts.map +0 -1
- package/cjs/users.schema.d.ts.map +0 -1
- package/cjs/workspaces.schema.d.ts.map +0 -1
- package/esm/common.schema.d.ts.map +0 -1
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js +0 -286
- package/esm/links.schema.d.ts.map +0 -1
- package/esm/tags.schema.d.ts.map +0 -1
- package/esm/users.schema.d.ts.map +0 -1
- package/esm/workspaces.schema.d.ts.map +0 -1
- /package/{cjs → dist/cjs}/package.json +0 -0
- /package/{cjs → dist/cjs}/tags.schema.d.ts +0 -0
- /package/{cjs → dist/cjs}/users.schema.d.ts +0 -0
- /package/{cjs → dist/cjs}/workspaces.schema.d.ts +0 -0
- /package/{esm → dist/esm}/package.json +0 -0
- /package/{esm → dist/esm}/tags.schema.d.ts +0 -0
- /package/{esm → dist/esm}/users.schema.d.ts +0 -0
- /package/{esm → dist/esm}/workspaces.schema.d.ts +0 -0
|
@@ -17,13 +17,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// src/
|
|
20
|
+
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
CreateDomainInputSchema: () => CreateDomainInputSchema,
|
|
23
24
|
CreateInvitationInputSchema: () => CreateInvitationInputSchema,
|
|
24
25
|
CreateLinkInputSchema: () => CreateLinkInputSchema,
|
|
25
26
|
CreateTagInputSchema: () => CreateTagInputSchema,
|
|
26
27
|
CreateWorkspaceInputSchema: () => CreateWorkspaceInputSchema,
|
|
28
|
+
DomainIdParamSchema: () => DomainIdParamSchema,
|
|
29
|
+
DomainSchema: () => DomainSchema,
|
|
27
30
|
InvitationIdParamSchema: () => InvitationIdParamSchema,
|
|
28
31
|
LinkFiltersSchema: () => LinkFiltersSchema,
|
|
29
32
|
LinkIdParamSchema: () => LinkIdParamSchema,
|
|
@@ -35,6 +38,7 @@ __export(index_exports, {
|
|
|
35
38
|
TagSchema: () => TagSchema,
|
|
36
39
|
TokenParamSchema: () => TokenParamSchema,
|
|
37
40
|
TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
|
|
41
|
+
UpdateDomainInputSchema: () => UpdateDomainInputSchema,
|
|
38
42
|
UpdateLinkInputSchema: () => UpdateLinkInputSchema,
|
|
39
43
|
UpdateMemberInputSchema: () => UpdateMemberInputSchema,
|
|
40
44
|
UpdateTagInputSchema: () => UpdateTagInputSchema,
|
|
@@ -48,6 +52,7 @@ __export(index_exports, {
|
|
|
48
52
|
WorkspaceSchema: () => WorkspaceSchema,
|
|
49
53
|
WorkspaceWithCountSchema: () => WorkspaceWithCountSchema,
|
|
50
54
|
contract: () => contract,
|
|
55
|
+
domainsContract: () => domainsContract,
|
|
51
56
|
invitationsContract: () => invitationsContract,
|
|
52
57
|
linksContract: () => linksContract,
|
|
53
58
|
tagsContract: () => tagsContract,
|
|
@@ -56,9 +61,9 @@ __export(index_exports, {
|
|
|
56
61
|
});
|
|
57
62
|
module.exports = __toCommonJS(index_exports);
|
|
58
63
|
var import_contract = require("@orpc/contract");
|
|
59
|
-
var
|
|
64
|
+
var import_zod7 = require("zod");
|
|
60
65
|
|
|
61
|
-
// src/
|
|
66
|
+
// src/common.schema.ts
|
|
62
67
|
var import_zod = require("zod");
|
|
63
68
|
var WorkspaceIdParamSchema = import_zod.z.object({
|
|
64
69
|
workspace_id: import_zod.z.string().uuid()
|
|
@@ -79,92 +84,40 @@ var InvitationIdParamSchema = import_zod.z.object({
|
|
|
79
84
|
workspace_id: import_zod.z.string().uuid(),
|
|
80
85
|
invitation_id: import_zod.z.string().uuid()
|
|
81
86
|
});
|
|
87
|
+
var DomainIdParamSchema = import_zod.z.object({
|
|
88
|
+
workspace_id: import_zod.z.string().uuid(),
|
|
89
|
+
domain_id: import_zod.z.string().uuid()
|
|
90
|
+
});
|
|
82
91
|
var TokenParamSchema = import_zod.z.object({
|
|
83
92
|
token: import_zod.z.string()
|
|
84
93
|
});
|
|
85
94
|
|
|
86
|
-
// src/
|
|
95
|
+
// src/domains.schema.ts
|
|
87
96
|
var import_zod2 = require("zod");
|
|
88
|
-
var
|
|
97
|
+
var DomainSchema = import_zod2.z.object({
|
|
89
98
|
id: import_zod2.z.string().uuid(),
|
|
90
|
-
workspace_id: import_zod2.z.string().uuid(),
|
|
91
|
-
created_by_id: import_zod2.z.string().uuid(),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
title: import_zod2.z.string().nullable(),
|
|
95
|
-
description: import_zod2.z.string().nullable(),
|
|
96
|
-
utm_source: import_zod2.z.string().nullable(),
|
|
97
|
-
utm_medium: import_zod2.z.string().nullable(),
|
|
98
|
-
utm_campaign: import_zod2.z.string().nullable(),
|
|
99
|
-
utm_term: import_zod2.z.string().nullable(),
|
|
100
|
-
utm_content: import_zod2.z.string().nullable(),
|
|
101
|
-
password: import_zod2.z.string().nullable(),
|
|
102
|
-
starts_at: import_zod2.z.coerce.date().nullable(),
|
|
103
|
-
expires_at: import_zod2.z.coerce.date().nullable(),
|
|
104
|
-
is_active: import_zod2.z.boolean(),
|
|
105
|
-
redirect_type: import_zod2.z.number().int(),
|
|
106
|
-
click_count: import_zod2.z.number().int(),
|
|
107
|
-
click_count_updated_at: import_zod2.z.coerce.date().nullable(),
|
|
99
|
+
workspace_id: import_zod2.z.string().uuid().nullable(),
|
|
100
|
+
created_by_id: import_zod2.z.string().uuid().nullable(),
|
|
101
|
+
domain: import_zod2.z.string(),
|
|
102
|
+
is_verified: import_zod2.z.boolean(),
|
|
108
103
|
created_at: import_zod2.z.coerce.date(),
|
|
109
104
|
updated_at: import_zod2.z.coerce.date().nullable()
|
|
110
105
|
});
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
utm_content: import_zod2.z.string().max(255).optional(),
|
|
121
|
-
password: import_zod2.z.string().min(4).max(100).optional(),
|
|
122
|
-
starts_at: import_zod2.z.coerce.date().optional(),
|
|
123
|
-
expires_at: import_zod2.z.coerce.date().optional(),
|
|
124
|
-
redirect_type: import_zod2.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
125
|
-
tag_ids: import_zod2.z.array(import_zod2.z.string().uuid()).optional()
|
|
126
|
-
});
|
|
127
|
-
var UpdateLinkInputSchema = import_zod2.z.object({
|
|
128
|
-
original_url: import_zod2.z.string().url().max(2048).optional(),
|
|
129
|
-
short_code: import_zod2.z.string().min(3).max(50).regex(/^[a-zA-Z0-9-]+$/).optional(),
|
|
130
|
-
title: import_zod2.z.string().max(255).nullable().optional(),
|
|
131
|
-
description: import_zod2.z.string().max(2e3).nullable().optional(),
|
|
132
|
-
utm_source: import_zod2.z.string().max(255).nullable().optional(),
|
|
133
|
-
utm_medium: import_zod2.z.string().max(255).nullable().optional(),
|
|
134
|
-
utm_campaign: import_zod2.z.string().max(255).nullable().optional(),
|
|
135
|
-
utm_term: import_zod2.z.string().max(255).nullable().optional(),
|
|
136
|
-
utm_content: import_zod2.z.string().max(255).nullable().optional(),
|
|
137
|
-
password: import_zod2.z.string().min(4).max(100).nullable().optional(),
|
|
138
|
-
starts_at: import_zod2.z.coerce.date().nullable().optional(),
|
|
139
|
-
expires_at: import_zod2.z.coerce.date().nullable().optional(),
|
|
140
|
-
is_active: import_zod2.z.boolean().optional(),
|
|
141
|
-
redirect_type: import_zod2.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
142
|
-
tag_ids: import_zod2.z.array(import_zod2.z.string().uuid()).optional()
|
|
143
|
-
});
|
|
144
|
-
var LinkFiltersSchema = import_zod2.z.object({
|
|
145
|
-
search: import_zod2.z.string().optional(),
|
|
146
|
-
is_active: import_zod2.z.coerce.boolean().optional(),
|
|
147
|
-
has_expiration: import_zod2.z.coerce.boolean().optional(),
|
|
148
|
-
expired: import_zod2.z.coerce.boolean().optional(),
|
|
149
|
-
created_from: import_zod2.z.coerce.date().optional(),
|
|
150
|
-
created_to: import_zod2.z.coerce.date().optional(),
|
|
151
|
-
expires_from: import_zod2.z.coerce.date().optional(),
|
|
152
|
-
expires_to: import_zod2.z.coerce.date().optional(),
|
|
153
|
-
tag_ids: import_zod2.z.array(import_zod2.z.string().uuid()).optional(),
|
|
154
|
-
sort_by: import_zod2.z.enum(["created_at", "title", "click_count"]).default("created_at"),
|
|
155
|
-
sort_order: import_zod2.z.enum(["asc", "desc"]).default("desc"),
|
|
156
|
-
page: import_zod2.z.coerce.number().int().min(1).default(1),
|
|
157
|
-
per_page: import_zod2.z.coerce.number().int().min(1).max(100).default(20)
|
|
158
|
-
});
|
|
159
|
-
var PaginatedLinksSchema = import_zod2.z.object({
|
|
160
|
-
links: import_zod2.z.array(LinkSchema),
|
|
161
|
-
total: import_zod2.z.number().int(),
|
|
162
|
-
page: import_zod2.z.number().int(),
|
|
163
|
-
per_page: import_zod2.z.number().int(),
|
|
164
|
-
total_pages: import_zod2.z.number().int()
|
|
106
|
+
var CreateDomainInputSchema = import_zod2.z.object({
|
|
107
|
+
domain: import_zod2.z.string().min(1).max(253).regex(/^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, {
|
|
108
|
+
message: "Invalid domain format"
|
|
109
|
+
})
|
|
110
|
+
});
|
|
111
|
+
var UpdateDomainInputSchema = import_zod2.z.object({
|
|
112
|
+
domain: import_zod2.z.string().min(1).max(253).regex(/^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, {
|
|
113
|
+
message: "Invalid domain format"
|
|
114
|
+
}).optional()
|
|
165
115
|
});
|
|
166
116
|
|
|
167
|
-
// src/
|
|
117
|
+
// src/links.schema.ts
|
|
118
|
+
var import_zod4 = require("zod");
|
|
119
|
+
|
|
120
|
+
// src/tags.schema.ts
|
|
168
121
|
var import_zod3 = require("zod");
|
|
169
122
|
var TagSchema = import_zod3.z.object({
|
|
170
123
|
id: import_zod3.z.string().uuid(),
|
|
@@ -183,102 +136,187 @@ var UpdateTagInputSchema = import_zod3.z.object({
|
|
|
183
136
|
color: import_zod3.z.string().regex(/^#[0-9A-Fa-f]{6}$/).nullable().optional()
|
|
184
137
|
});
|
|
185
138
|
|
|
186
|
-
// src/
|
|
187
|
-
var
|
|
188
|
-
var UserSchema = import_zod4.z.object({
|
|
139
|
+
// src/links.schema.ts
|
|
140
|
+
var LinkSchema = import_zod4.z.object({
|
|
189
141
|
id: import_zod4.z.string().uuid(),
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
142
|
+
workspace_id: import_zod4.z.string().uuid(),
|
|
143
|
+
domain_id: import_zod4.z.string().uuid(),
|
|
144
|
+
created_by_id: import_zod4.z.string().uuid(),
|
|
145
|
+
original_url: import_zod4.z.string().url(),
|
|
146
|
+
short_code: import_zod4.z.string(),
|
|
147
|
+
title: import_zod4.z.string().nullable(),
|
|
148
|
+
description: import_zod4.z.string().nullable(),
|
|
149
|
+
utm_source: import_zod4.z.string().nullable(),
|
|
150
|
+
utm_medium: import_zod4.z.string().nullable(),
|
|
151
|
+
utm_campaign: import_zod4.z.string().nullable(),
|
|
152
|
+
utm_term: import_zod4.z.string().nullable(),
|
|
153
|
+
utm_content: import_zod4.z.string().nullable(),
|
|
154
|
+
password: import_zod4.z.string().nullable(),
|
|
155
|
+
starts_at: import_zod4.z.coerce.date().nullable(),
|
|
156
|
+
expires_at: import_zod4.z.coerce.date().nullable(),
|
|
157
|
+
is_active: import_zod4.z.boolean(),
|
|
158
|
+
redirect_type: import_zod4.z.number().int(),
|
|
159
|
+
click_count: import_zod4.z.coerce.number().int(),
|
|
160
|
+
click_count_updated_at: import_zod4.z.coerce.date().nullable(),
|
|
195
161
|
created_at: import_zod4.z.coerce.date(),
|
|
196
|
-
updated_at: import_zod4.z.coerce.date().nullable()
|
|
162
|
+
updated_at: import_zod4.z.coerce.date().nullable(),
|
|
163
|
+
tags: import_zod4.z.array(TagSchema)
|
|
197
164
|
});
|
|
198
|
-
var
|
|
199
|
-
|
|
200
|
-
|
|
165
|
+
var CreateLinkInputSchema = import_zod4.z.object({
|
|
166
|
+
original_url: import_zod4.z.string().url().max(2048),
|
|
167
|
+
domain_id: import_zod4.z.string().uuid().optional(),
|
|
168
|
+
short_code: import_zod4.z.string().min(3).max(50).regex(/^[a-zA-Z0-9-]+$/).optional(),
|
|
169
|
+
title: import_zod4.z.string().max(255).optional(),
|
|
170
|
+
description: import_zod4.z.string().max(2e3).optional(),
|
|
171
|
+
utm_source: import_zod4.z.string().max(255).optional(),
|
|
172
|
+
utm_medium: import_zod4.z.string().max(255).optional(),
|
|
173
|
+
utm_campaign: import_zod4.z.string().max(255).optional(),
|
|
174
|
+
utm_term: import_zod4.z.string().max(255).optional(),
|
|
175
|
+
utm_content: import_zod4.z.string().max(255).optional(),
|
|
176
|
+
password: import_zod4.z.string().min(4).max(100).optional(),
|
|
177
|
+
starts_at: import_zod4.z.coerce.date().optional(),
|
|
178
|
+
expires_at: import_zod4.z.coerce.date().optional(),
|
|
179
|
+
redirect_type: import_zod4.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
180
|
+
tag_ids: import_zod4.z.array(import_zod4.z.string().uuid()).optional()
|
|
201
181
|
});
|
|
202
|
-
var
|
|
203
|
-
|
|
204
|
-
|
|
182
|
+
var UpdateLinkInputSchema = import_zod4.z.object({
|
|
183
|
+
original_url: import_zod4.z.string().url().max(2048).optional(),
|
|
184
|
+
domain_id: import_zod4.z.string().uuid().optional(),
|
|
185
|
+
short_code: import_zod4.z.string().min(3).max(50).regex(/^[a-zA-Z0-9-]+$/).optional(),
|
|
186
|
+
title: import_zod4.z.string().max(255).nullable().optional(),
|
|
187
|
+
description: import_zod4.z.string().max(2e3).nullable().optional(),
|
|
188
|
+
utm_source: import_zod4.z.string().max(255).nullable().optional(),
|
|
189
|
+
utm_medium: import_zod4.z.string().max(255).nullable().optional(),
|
|
190
|
+
utm_campaign: import_zod4.z.string().max(255).nullable().optional(),
|
|
191
|
+
utm_term: import_zod4.z.string().max(255).nullable().optional(),
|
|
192
|
+
utm_content: import_zod4.z.string().max(255).nullable().optional(),
|
|
193
|
+
password: import_zod4.z.string().min(4).max(100).nullable().optional(),
|
|
194
|
+
starts_at: import_zod4.z.coerce.date().nullable().optional(),
|
|
195
|
+
expires_at: import_zod4.z.coerce.date().nullable().optional(),
|
|
196
|
+
is_active: import_zod4.z.boolean().optional(),
|
|
197
|
+
redirect_type: import_zod4.z.coerce.number().refine((v) => [301, 302, 307, 308].includes(v)).optional(),
|
|
198
|
+
tag_ids: import_zod4.z.array(import_zod4.z.string().uuid()).optional()
|
|
199
|
+
});
|
|
200
|
+
var LinkFiltersSchema = import_zod4.z.object({
|
|
201
|
+
search: import_zod4.z.string().optional(),
|
|
202
|
+
domain_id: import_zod4.z.string().uuid().optional(),
|
|
203
|
+
is_active: import_zod4.z.coerce.boolean().optional(),
|
|
204
|
+
has_expiration: import_zod4.z.coerce.boolean().optional(),
|
|
205
|
+
expired: import_zod4.z.coerce.boolean().optional(),
|
|
206
|
+
created_from: import_zod4.z.coerce.date().optional(),
|
|
207
|
+
created_to: import_zod4.z.coerce.date().optional(),
|
|
208
|
+
expires_from: import_zod4.z.coerce.date().optional(),
|
|
209
|
+
expires_to: import_zod4.z.coerce.date().optional(),
|
|
210
|
+
tag_ids: import_zod4.z.array(import_zod4.z.string().uuid()).optional(),
|
|
211
|
+
sort_by: import_zod4.z.enum(["created_at", "title", "click_count"]).default("created_at"),
|
|
212
|
+
sort_order: import_zod4.z.enum(["asc", "desc"]).default("desc"),
|
|
213
|
+
page: import_zod4.z.coerce.number().int().min(1).default(1),
|
|
214
|
+
per_page: import_zod4.z.coerce.number().int().min(1).max(100).default(20)
|
|
215
|
+
});
|
|
216
|
+
var PaginatedLinksSchema = import_zod4.z.object({
|
|
217
|
+
links: import_zod4.z.array(LinkSchema),
|
|
218
|
+
total: import_zod4.z.number().int(),
|
|
219
|
+
page: import_zod4.z.number().int(),
|
|
220
|
+
per_page: import_zod4.z.number().int(),
|
|
221
|
+
total_pages: import_zod4.z.number().int()
|
|
205
222
|
});
|
|
206
223
|
|
|
207
|
-
// src/
|
|
224
|
+
// src/users.schema.ts
|
|
208
225
|
var import_zod5 = require("zod");
|
|
209
|
-
var
|
|
226
|
+
var UserSchema = import_zod5.z.object({
|
|
210
227
|
id: import_zod5.z.string().uuid(),
|
|
211
|
-
|
|
228
|
+
external_id: import_zod5.z.string(),
|
|
229
|
+
email: import_zod5.z.string().email(),
|
|
230
|
+
email_verified_at: import_zod5.z.coerce.date().nullable(),
|
|
231
|
+
first_name: import_zod5.z.string().nullable(),
|
|
232
|
+
last_name: import_zod5.z.string().nullable(),
|
|
212
233
|
created_at: import_zod5.z.coerce.date(),
|
|
213
234
|
updated_at: import_zod5.z.coerce.date().nullable()
|
|
214
235
|
});
|
|
236
|
+
var SignInInputSchema = import_zod5.z.object({
|
|
237
|
+
first_name: import_zod5.z.string().min(1).max(100).optional(),
|
|
238
|
+
last_name: import_zod5.z.string().min(1).max(100).optional()
|
|
239
|
+
});
|
|
240
|
+
var UpdateUserInputSchema = import_zod5.z.object({
|
|
241
|
+
first_name: import_zod5.z.string().min(1).max(100).optional(),
|
|
242
|
+
last_name: import_zod5.z.string().min(1).max(100).optional()
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
// src/workspaces.schema.ts
|
|
246
|
+
var import_zod6 = require("zod");
|
|
247
|
+
var WorkspaceSchema = import_zod6.z.object({
|
|
248
|
+
id: import_zod6.z.string().uuid(),
|
|
249
|
+
name: import_zod6.z.string(),
|
|
250
|
+
created_at: import_zod6.z.coerce.date(),
|
|
251
|
+
updated_at: import_zod6.z.coerce.date().nullable()
|
|
252
|
+
});
|
|
215
253
|
var WorkspaceWithCountSchema = WorkspaceSchema.extend({
|
|
216
|
-
member_count:
|
|
254
|
+
member_count: import_zod6.z.number().int()
|
|
217
255
|
});
|
|
218
|
-
var CreateWorkspaceInputSchema =
|
|
219
|
-
name:
|
|
256
|
+
var CreateWorkspaceInputSchema = import_zod6.z.object({
|
|
257
|
+
name: import_zod6.z.string().min(1).max(100)
|
|
220
258
|
});
|
|
221
|
-
var UpdateWorkspaceInputSchema =
|
|
222
|
-
name:
|
|
259
|
+
var UpdateWorkspaceInputSchema = import_zod6.z.object({
|
|
260
|
+
name: import_zod6.z.string().min(1).max(100).optional()
|
|
223
261
|
});
|
|
224
|
-
var TransferOwnershipInputSchema =
|
|
225
|
-
to_user_id:
|
|
262
|
+
var TransferOwnershipInputSchema = import_zod6.z.object({
|
|
263
|
+
to_user_id: import_zod6.z.string().uuid()
|
|
226
264
|
});
|
|
227
|
-
var WorkspaceMemberUserSchema =
|
|
228
|
-
id:
|
|
229
|
-
email:
|
|
230
|
-
first_name:
|
|
231
|
-
last_name:
|
|
265
|
+
var WorkspaceMemberUserSchema = import_zod6.z.object({
|
|
266
|
+
id: import_zod6.z.string().uuid(),
|
|
267
|
+
email: import_zod6.z.string().email(),
|
|
268
|
+
first_name: import_zod6.z.string().nullable(),
|
|
269
|
+
last_name: import_zod6.z.string().nullable()
|
|
232
270
|
});
|
|
233
|
-
var WorkspaceMemberSchema =
|
|
234
|
-
id:
|
|
235
|
-
workspace_id:
|
|
236
|
-
user_id:
|
|
271
|
+
var WorkspaceMemberSchema = import_zod6.z.object({
|
|
272
|
+
id: import_zod6.z.string().uuid(),
|
|
273
|
+
workspace_id: import_zod6.z.string().uuid(),
|
|
274
|
+
user_id: import_zod6.z.string().uuid(),
|
|
237
275
|
user: WorkspaceMemberUserSchema,
|
|
238
|
-
permissions:
|
|
239
|
-
joined_at:
|
|
240
|
-
created_at:
|
|
241
|
-
updated_at:
|
|
276
|
+
permissions: import_zod6.z.number().int(),
|
|
277
|
+
joined_at: import_zod6.z.coerce.date(),
|
|
278
|
+
created_at: import_zod6.z.coerce.date(),
|
|
279
|
+
updated_at: import_zod6.z.coerce.date().nullable()
|
|
242
280
|
});
|
|
243
|
-
var UpdateMemberInputSchema =
|
|
244
|
-
permissions:
|
|
281
|
+
var UpdateMemberInputSchema = import_zod6.z.object({
|
|
282
|
+
permissions: import_zod6.z.number().int().min(1)
|
|
245
283
|
});
|
|
246
|
-
var WorkspaceInvitationSchema =
|
|
247
|
-
id:
|
|
248
|
-
workspace_id:
|
|
249
|
-
email:
|
|
250
|
-
token:
|
|
251
|
-
permissions:
|
|
252
|
-
invited_by_id:
|
|
253
|
-
expires_at:
|
|
254
|
-
created_at:
|
|
284
|
+
var WorkspaceInvitationSchema = import_zod6.z.object({
|
|
285
|
+
id: import_zod6.z.string().uuid(),
|
|
286
|
+
workspace_id: import_zod6.z.string().uuid(),
|
|
287
|
+
email: import_zod6.z.string().email(),
|
|
288
|
+
token: import_zod6.z.string(),
|
|
289
|
+
permissions: import_zod6.z.number().int(),
|
|
290
|
+
invited_by_id: import_zod6.z.string().uuid(),
|
|
291
|
+
expires_at: import_zod6.z.coerce.date(),
|
|
292
|
+
created_at: import_zod6.z.coerce.date()
|
|
255
293
|
});
|
|
256
|
-
var CreateInvitationInputSchema =
|
|
257
|
-
email:
|
|
258
|
-
permissions:
|
|
294
|
+
var CreateInvitationInputSchema = import_zod6.z.object({
|
|
295
|
+
email: import_zod6.z.string().email(),
|
|
296
|
+
permissions: import_zod6.z.number().int().min(1)
|
|
259
297
|
});
|
|
260
298
|
|
|
261
|
-
// src/
|
|
299
|
+
// src/index.ts
|
|
262
300
|
var usersContract = {
|
|
263
|
-
me: import_contract.oc.route({ method: "GET", path: "/api/users/me" }).output(
|
|
264
|
-
signIn: import_contract.oc.route({ method: "POST", path: "/api/users" }).input(SignInInputSchema).output(
|
|
265
|
-
update: import_contract.oc.route({ method: "PATCH", path: "/api/users/me" }).input(UpdateUserInputSchema).output(
|
|
301
|
+
me: import_contract.oc.route({ method: "GET", path: "/api/users/me" }).output(import_zod7.z.object({ user: UserSchema })),
|
|
302
|
+
signIn: import_contract.oc.route({ method: "POST", path: "/api/users" }).input(SignInInputSchema).output(import_zod7.z.object({ user: UserSchema, status: import_zod7.z.enum(["created", "existing"]) })),
|
|
303
|
+
update: import_contract.oc.route({ method: "PATCH", path: "/api/users/me" }).input(UpdateUserInputSchema).output(import_zod7.z.object({ user: UserSchema }))
|
|
266
304
|
};
|
|
267
305
|
var workspacesContract = {
|
|
268
306
|
create: import_contract.oc.route({ method: "POST", path: "/api/workspaces" }).input(CreateWorkspaceInputSchema).output(WorkspaceSchema),
|
|
269
|
-
list: import_contract.oc.route({ method: "GET", path: "/api/workspaces" }).output(
|
|
307
|
+
list: import_contract.oc.route({ method: "GET", path: "/api/workspaces" }).output(import_zod7.z.array(WorkspaceWithCountSchema)),
|
|
270
308
|
get: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}" }).input(WorkspaceIdParamSchema).output(WorkspaceWithCountSchema),
|
|
271
309
|
update: import_contract.oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}" }).input(WorkspaceIdParamSchema.merge(UpdateWorkspaceInputSchema)).output(WorkspaceSchema),
|
|
272
|
-
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}" }).input(WorkspaceIdParamSchema).output(
|
|
273
|
-
transfer: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/transfer" }).input(WorkspaceIdParamSchema.merge(TransferOwnershipInputSchema)).output(
|
|
310
|
+
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}" }).input(WorkspaceIdParamSchema).output(import_zod7.z.void()),
|
|
311
|
+
transfer: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/transfer" }).input(WorkspaceIdParamSchema.merge(TransferOwnershipInputSchema)).output(import_zod7.z.void()),
|
|
274
312
|
// Members
|
|
275
|
-
listMembers: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/members" }).input(WorkspaceIdParamSchema).output(
|
|
313
|
+
listMembers: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/members" }).input(WorkspaceIdParamSchema).output(import_zod7.z.array(WorkspaceMemberSchema)),
|
|
276
314
|
updateMember: import_contract.oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/members/{user_id}" }).input(MemberIdParamSchema.merge(UpdateMemberInputSchema)).output(WorkspaceMemberSchema),
|
|
277
|
-
removeMember: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/members/{user_id}" }).input(MemberIdParamSchema).output(
|
|
315
|
+
removeMember: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/members/{user_id}" }).input(MemberIdParamSchema).output(import_zod7.z.void()),
|
|
278
316
|
// Invitations
|
|
279
|
-
listInvitations: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/invitations" }).input(WorkspaceIdParamSchema).output(
|
|
317
|
+
listInvitations: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/invitations" }).input(WorkspaceIdParamSchema).output(import_zod7.z.array(WorkspaceInvitationSchema)),
|
|
280
318
|
createInvitation: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/invitations" }).input(WorkspaceIdParamSchema.merge(CreateInvitationInputSchema)).output(WorkspaceInvitationSchema),
|
|
281
|
-
revokeInvitation: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/invitations/{invitation_id}" }).input(InvitationIdParamSchema).output(
|
|
319
|
+
revokeInvitation: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/invitations/{invitation_id}" }).input(InvitationIdParamSchema).output(import_zod7.z.void())
|
|
282
320
|
};
|
|
283
321
|
var invitationsContract = {
|
|
284
322
|
get: import_contract.oc.route({ method: "GET", path: "/api/invitations/{token}" }).input(TokenParamSchema).output(WorkspaceInvitationSchema),
|
|
@@ -289,28 +327,39 @@ var linksContract = {
|
|
|
289
327
|
list: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links" }).input(WorkspaceIdParamSchema.merge(LinkFiltersSchema)).output(PaginatedLinksSchema),
|
|
290
328
|
get: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(LinkSchema),
|
|
291
329
|
update: import_contract.oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema.merge(UpdateLinkInputSchema)).output(LinkSchema),
|
|
292
|
-
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(
|
|
330
|
+
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(import_zod7.z.void())
|
|
293
331
|
};
|
|
294
332
|
var tagsContract = {
|
|
295
333
|
create: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/tags" }).input(WorkspaceIdParamSchema.merge(CreateTagInputSchema)).output(TagSchema),
|
|
296
|
-
list: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/tags" }).input(WorkspaceIdParamSchema).output(
|
|
334
|
+
list: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/tags" }).input(WorkspaceIdParamSchema).output(import_zod7.z.array(TagSchema)),
|
|
297
335
|
get: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/tags/{tag_id}" }).input(TagIdParamSchema).output(TagSchema),
|
|
298
336
|
update: import_contract.oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/tags/{tag_id}" }).input(TagIdParamSchema.merge(UpdateTagInputSchema)).output(TagSchema),
|
|
299
|
-
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/tags/{tag_id}" }).input(TagIdParamSchema).output(
|
|
337
|
+
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/tags/{tag_id}" }).input(TagIdParamSchema).output(import_zod7.z.void())
|
|
338
|
+
};
|
|
339
|
+
var domainsContract = {
|
|
340
|
+
create: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/domains" }).input(WorkspaceIdParamSchema.merge(CreateDomainInputSchema)).output(DomainSchema),
|
|
341
|
+
list: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/domains" }).input(WorkspaceIdParamSchema).output(import_zod7.z.array(DomainSchema)),
|
|
342
|
+
get: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema).output(DomainSchema),
|
|
343
|
+
update: import_contract.oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema.merge(UpdateDomainInputSchema)).output(DomainSchema),
|
|
344
|
+
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema).output(import_zod7.z.void())
|
|
300
345
|
};
|
|
301
346
|
var contract = {
|
|
302
347
|
users: usersContract,
|
|
303
348
|
workspaces: workspacesContract,
|
|
304
349
|
invitations: invitationsContract,
|
|
305
350
|
links: linksContract,
|
|
306
|
-
tags: tagsContract
|
|
351
|
+
tags: tagsContract,
|
|
352
|
+
domains: domainsContract
|
|
307
353
|
};
|
|
308
354
|
// Annotate the CommonJS export names for ESM import in node:
|
|
309
355
|
0 && (module.exports = {
|
|
356
|
+
CreateDomainInputSchema,
|
|
310
357
|
CreateInvitationInputSchema,
|
|
311
358
|
CreateLinkInputSchema,
|
|
312
359
|
CreateTagInputSchema,
|
|
313
360
|
CreateWorkspaceInputSchema,
|
|
361
|
+
DomainIdParamSchema,
|
|
362
|
+
DomainSchema,
|
|
314
363
|
InvitationIdParamSchema,
|
|
315
364
|
LinkFiltersSchema,
|
|
316
365
|
LinkIdParamSchema,
|
|
@@ -322,6 +371,7 @@ var contract = {
|
|
|
322
371
|
TagSchema,
|
|
323
372
|
TokenParamSchema,
|
|
324
373
|
TransferOwnershipInputSchema,
|
|
374
|
+
UpdateDomainInputSchema,
|
|
325
375
|
UpdateLinkInputSchema,
|
|
326
376
|
UpdateMemberInputSchema,
|
|
327
377
|
UpdateTagInputSchema,
|
|
@@ -335,6 +385,7 @@ var contract = {
|
|
|
335
385
|
WorkspaceSchema,
|
|
336
386
|
WorkspaceWithCountSchema,
|
|
337
387
|
contract,
|
|
388
|
+
domainsContract,
|
|
338
389
|
invitationsContract,
|
|
339
390
|
linksContract,
|
|
340
391
|
tagsContract,
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const LinkSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
workspace_id: z.ZodString;
|
|
5
|
+
domain_id: z.ZodString;
|
|
5
6
|
created_by_id: z.ZodString;
|
|
6
7
|
original_url: z.ZodString;
|
|
7
8
|
short_code: z.ZodString;
|
|
@@ -17,13 +18,22 @@ export declare const LinkSchema: z.ZodObject<{
|
|
|
17
18
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
18
19
|
is_active: z.ZodBoolean;
|
|
19
20
|
redirect_type: z.ZodNumber;
|
|
20
|
-
click_count: z.
|
|
21
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
21
22
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
22
23
|
created_at: z.ZodCoercedDate<unknown>;
|
|
23
24
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
25
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
workspace_id: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
color: z.ZodNullable<z.ZodString>;
|
|
30
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
31
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
24
33
|
}, z.core.$strip>;
|
|
25
34
|
export declare const CreateLinkInputSchema: z.ZodObject<{
|
|
26
35
|
original_url: z.ZodString;
|
|
36
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
27
37
|
short_code: z.ZodOptional<z.ZodString>;
|
|
28
38
|
title: z.ZodOptional<z.ZodString>;
|
|
29
39
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -40,6 +50,7 @@ export declare const CreateLinkInputSchema: z.ZodObject<{
|
|
|
40
50
|
}, z.core.$strip>;
|
|
41
51
|
export declare const UpdateLinkInputSchema: z.ZodObject<{
|
|
42
52
|
original_url: z.ZodOptional<z.ZodString>;
|
|
53
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
43
54
|
short_code: z.ZodOptional<z.ZodString>;
|
|
44
55
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
56
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -57,6 +68,7 @@ export declare const UpdateLinkInputSchema: z.ZodObject<{
|
|
|
57
68
|
}, z.core.$strip>;
|
|
58
69
|
export declare const LinkFiltersSchema: z.ZodObject<{
|
|
59
70
|
search: z.ZodOptional<z.ZodString>;
|
|
71
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
60
72
|
is_active: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
61
73
|
has_expiration: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
62
74
|
expired: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -66,9 +78,9 @@ export declare const LinkFiltersSchema: z.ZodObject<{
|
|
|
66
78
|
expires_to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
67
79
|
tag_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
80
|
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
81
|
+
created_at: "created_at";
|
|
69
82
|
title: "title";
|
|
70
83
|
click_count: "click_count";
|
|
71
|
-
created_at: "created_at";
|
|
72
84
|
}>>;
|
|
73
85
|
sort_order: z.ZodDefault<z.ZodEnum<{
|
|
74
86
|
asc: "asc";
|
|
@@ -81,6 +93,7 @@ export declare const PaginatedLinksSchema: z.ZodObject<{
|
|
|
81
93
|
links: z.ZodArray<z.ZodObject<{
|
|
82
94
|
id: z.ZodString;
|
|
83
95
|
workspace_id: z.ZodString;
|
|
96
|
+
domain_id: z.ZodString;
|
|
84
97
|
created_by_id: z.ZodString;
|
|
85
98
|
original_url: z.ZodString;
|
|
86
99
|
short_code: z.ZodString;
|
|
@@ -96,10 +109,18 @@ export declare const PaginatedLinksSchema: z.ZodObject<{
|
|
|
96
109
|
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
97
110
|
is_active: z.ZodBoolean;
|
|
98
111
|
redirect_type: z.ZodNumber;
|
|
99
|
-
click_count: z.
|
|
112
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
100
113
|
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
101
114
|
created_at: z.ZodCoercedDate<unknown>;
|
|
102
115
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
116
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
workspace_id: z.ZodString;
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
color: z.ZodNullable<z.ZodString>;
|
|
121
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
122
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
103
124
|
}, z.core.$strip>>;
|
|
104
125
|
total: z.ZodNumber;
|
|
105
126
|
page: z.ZodNumber;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.schema.d.ts","sourceRoot":"","sources":["../../src/links.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBrB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAwBhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;iBAe5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.schema.d.ts","sourceRoot":"","sources":["../../src/tags.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;iBAOpB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAM/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAO/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../src/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;iBASrB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.schema.d.ts","sourceRoot":"","sources":["../../src/workspaces.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;iBAK1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;iBAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAShC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;iBASpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC"}
|
|
@@ -18,6 +18,10 @@ export declare const InvitationIdParamSchema: z.ZodObject<{
|
|
|
18
18
|
workspace_id: z.ZodString;
|
|
19
19
|
invitation_id: z.ZodString;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
|
+
export declare const DomainIdParamSchema: z.ZodObject<{
|
|
22
|
+
workspace_id: z.ZodString;
|
|
23
|
+
domain_id: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
21
25
|
export declare const TokenParamSchema: z.ZodObject<{
|
|
22
26
|
token: z.ZodString;
|
|
23
27
|
}, z.core.$strip>;
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DomainSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
5
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
6
|
+
domain: z.ZodString;
|
|
7
|
+
is_verified: z.ZodBoolean;
|
|
8
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
9
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const CreateDomainInputSchema: z.ZodObject<{
|
|
12
|
+
domain: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const UpdateDomainInputSchema: z.ZodObject<{
|
|
15
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
//# sourceMappingURL=domains.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domains.schema.d.ts","sourceRoot":"","sources":["../../src/domains.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;iBAQvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBAQlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBASlC,CAAC"}
|