@ourofoundation/ouro-js 1.0.0

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.
@@ -0,0 +1,86 @@
1
+ import { z } from "zod";
2
+ declare const authType: z.ZodEnum<["Personal Access Token", "None", "OAuth 2.0"]>;
3
+ declare const serviceSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ user_id: z.ZodString;
6
+ org_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ name: z.ZodString;
8
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
10
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ authentication: z.ZodEnum<["Personal Access Token", "None", "OAuth 2.0"]>;
12
+ base_url: z.ZodString;
13
+ spec_path: z.ZodString;
14
+ created_at: z.ZodString;
15
+ last_updated: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ name: string;
19
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
20
+ user_id: string;
21
+ created_at: string;
22
+ last_updated: string;
23
+ authentication: "Personal Access Token" | "None" | "OAuth 2.0";
24
+ base_url: string;
25
+ spec_path: string;
26
+ description?: string | null | undefined;
27
+ org_id?: string | null | undefined;
28
+ version?: string | null | undefined;
29
+ }, {
30
+ id: string;
31
+ name: string;
32
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
33
+ user_id: string;
34
+ created_at: string;
35
+ last_updated: string;
36
+ authentication: "Personal Access Token" | "None" | "OAuth 2.0";
37
+ base_url: string;
38
+ spec_path: string;
39
+ description?: string | null | undefined;
40
+ org_id?: string | null | undefined;
41
+ version?: string | null | undefined;
42
+ }>;
43
+ declare const routeSchema: z.ZodObject<{
44
+ id: z.ZodString;
45
+ user_id: z.ZodString;
46
+ service_id: z.ZodString;
47
+ path: z.ZodString;
48
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
49
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
51
+ request_body: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
52
+ responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
53
+ security: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
54
+ rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ last_updated: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ id: string;
58
+ path: string;
59
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
60
+ user_id: string;
61
+ last_updated: string;
62
+ service_id: string;
63
+ summary?: string | null | undefined;
64
+ parameters?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
65
+ request_body?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
66
+ responses?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
67
+ security?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
68
+ rate_limit?: number | null | undefined;
69
+ }, {
70
+ id: string;
71
+ path: string;
72
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
73
+ user_id: string;
74
+ last_updated: string;
75
+ service_id: string;
76
+ summary?: string | null | undefined;
77
+ parameters?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
78
+ request_body?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
79
+ responses?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
80
+ security?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
81
+ rate_limit?: number | null | undefined;
82
+ }>;
83
+ type Service = z.infer<typeof serviceSchema>;
84
+ type Route = z.infer<typeof routeSchema>;
85
+ type AuthType = z.infer<typeof authType>;
86
+ export { routeSchema, serviceSchema, authType, type Service, type Route, type AuthType, };
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.authType = exports.serviceSchema = exports.routeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const index_1 = require("@/schema/index");
6
+ const authType = zod_1.z.enum(["Personal Access Token", "None", "OAuth 2.0"]);
7
+ exports.authType = authType;
8
+ const serviceSchema = zod_1.z.object({
9
+ id: zod_1.z.string(),
10
+ user_id: zod_1.z.string(),
11
+ org_id: zod_1.z.string().nullable().optional(),
12
+ name: zod_1.z.string(),
13
+ description: zod_1.z.string().nullable().optional(),
14
+ visibility: index_1.VisibilitySchema,
15
+ version: zod_1.z.string().nullable().optional(),
16
+ authentication: authType,
17
+ base_url: zod_1.z.string(),
18
+ spec_path: zod_1.z.string(),
19
+ created_at: zod_1.z.string(),
20
+ last_updated: zod_1.z.string(),
21
+ });
22
+ exports.serviceSchema = serviceSchema;
23
+ const routeSchema = zod_1.z.object({
24
+ id: zod_1.z.string(),
25
+ user_id: zod_1.z.string(),
26
+ service_id: zod_1.z.string(),
27
+ path: zod_1.z.string(),
28
+ method: zod_1.z.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]),
29
+ summary: zod_1.z.string().nullable().optional(),
30
+ parameters: zod_1.z.array(zod_1.z.object({}).passthrough()).nullable().optional(),
31
+ request_body: zod_1.z.object({}).passthrough().nullable().optional(),
32
+ responses: zod_1.z.array(zod_1.z.object({}).passthrough()).nullable().optional(),
33
+ security: zod_1.z.object({}).passthrough().nullable().optional(),
34
+ // created_at: z.string(),
35
+ rate_limit: zod_1.z.number().nullable().optional(),
36
+ last_updated: zod_1.z.string(),
37
+ });
38
+ exports.routeSchema = routeSchema;
@@ -0,0 +1,524 @@
1
+ import { z } from "zod";
2
+ declare const TeamSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ org_id: z.ZodString;
5
+ name: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ default_role: z.ZodEnum<["admin", "read", "write", "none"]>;
8
+ visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
9
+ created_at: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ id: string;
12
+ name: string;
13
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
14
+ org_id: string;
15
+ created_at: string;
16
+ default_role: "none" | "admin" | "read" | "write";
17
+ description?: string | null | undefined;
18
+ }, {
19
+ id: string;
20
+ name: string;
21
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
22
+ org_id: string;
23
+ created_at: string;
24
+ default_role: "none" | "admin" | "read" | "write";
25
+ description?: string | null | undefined;
26
+ }>;
27
+ declare const CreateTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
28
+ id: z.ZodString;
29
+ org_id: z.ZodString;
30
+ name: z.ZodString;
31
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ default_role: z.ZodEnum<["admin", "read", "write", "none"]>;
33
+ visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
34
+ created_at: z.ZodString;
35
+ }, {
36
+ id: z.ZodDefault<z.ZodString>;
37
+ default_role: z.ZodEffects<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>, "none" | "admin" | "read" | "write", "none" | "admin" | "read" | "write" | undefined>;
38
+ visibility: z.ZodEffects<z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>, "inherit" | "private" | "public" | "organization" | "monetized", "inherit" | "private" | "public" | "organization" | "monetized" | undefined>;
39
+ created_at: z.ZodDefault<z.ZodString>;
40
+ }>, "strip", z.ZodTypeAny, {
41
+ id: string;
42
+ name: string;
43
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
44
+ org_id: string;
45
+ created_at: string;
46
+ default_role: "none" | "admin" | "read" | "write";
47
+ description?: string | null | undefined;
48
+ }, {
49
+ name: string;
50
+ org_id: string;
51
+ id?: string | undefined;
52
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
53
+ description?: string | null | undefined;
54
+ created_at?: string | undefined;
55
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
56
+ }>;
57
+ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
58
+ id: z.ZodString;
59
+ org_id: z.ZodString;
60
+ name: z.ZodString;
61
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ default_role: z.ZodEnum<["admin", "read", "write", "none"]>;
63
+ visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
64
+ created_at: z.ZodString;
65
+ }, {
66
+ userMembership: z.ZodNullable<z.ZodOptional<z.ZodObject<{
67
+ user_id: z.ZodString;
68
+ role: z.ZodEnum<["admin", "read", "write", "none"]>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ role: "none" | "admin" | "read" | "write";
71
+ user_id: string;
72
+ }, {
73
+ role: "none" | "admin" | "read" | "write";
74
+ user_id: string;
75
+ }>>>;
76
+ memberCount: z.ZodNumber;
77
+ members: z.ZodArray<z.ZodObject<{
78
+ user_id: z.ZodString;
79
+ role: z.ZodEnum<["admin", "read", "write", "none"]>;
80
+ user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
81
+ id: z.ZodOptional<z.ZodString>;
82
+ user_id: z.ZodOptional<z.ZodString>;
83
+ username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
84
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
85
+ bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
86
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
87
+ value: z.ZodString;
88
+ }, "strip", z.ZodTypeAny, {
89
+ value: string;
90
+ }, {
91
+ value: string;
92
+ }>, "many">>>;
93
+ last_active: z.ZodOptional<z.ZodString>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ id?: string | undefined;
96
+ user_id?: string | undefined;
97
+ avatar_path?: string | null | undefined;
98
+ urls?: {
99
+ value: string;
100
+ }[] | undefined;
101
+ username?: string | null | undefined;
102
+ bio?: string | null | undefined;
103
+ last_active?: string | undefined;
104
+ }, {
105
+ id?: string | undefined;
106
+ user_id?: string | undefined;
107
+ avatar_path?: string | null | undefined;
108
+ urls?: {
109
+ value: string;
110
+ }[] | undefined;
111
+ username?: string | null | undefined;
112
+ bio?: string | null | undefined;
113
+ last_active?: string | undefined;
114
+ }>>>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ role: "none" | "admin" | "read" | "write";
117
+ user_id: string;
118
+ user?: {
119
+ id?: string | undefined;
120
+ user_id?: string | undefined;
121
+ avatar_path?: string | null | undefined;
122
+ urls?: {
123
+ value: string;
124
+ }[] | undefined;
125
+ username?: string | null | undefined;
126
+ bio?: string | null | undefined;
127
+ last_active?: string | undefined;
128
+ } | null | undefined;
129
+ }, {
130
+ role: "none" | "admin" | "read" | "write";
131
+ user_id: string;
132
+ user?: {
133
+ id?: string | undefined;
134
+ user_id?: string | undefined;
135
+ avatar_path?: string | null | undefined;
136
+ urls?: {
137
+ value: string;
138
+ }[] | undefined;
139
+ username?: string | null | undefined;
140
+ bio?: string | null | undefined;
141
+ last_active?: string | undefined;
142
+ } | null | undefined;
143
+ }>, "many">;
144
+ organization: z.ZodNullable<z.ZodOptional<z.ZodObject<{
145
+ id: z.ZodOptional<z.ZodString>;
146
+ owner_id: z.ZodOptional<z.ZodString>;
147
+ name: z.ZodOptional<z.ZodString>;
148
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
149
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
150
+ size: z.ZodOptional<z.ZodString>;
151
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
152
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
153
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
154
+ value: z.ZodString;
155
+ }, "strip", z.ZodTypeAny, {
156
+ value: string;
157
+ }, {
158
+ value: string;
159
+ }>, "many">>>>;
160
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ id?: string | undefined;
163
+ name?: string | undefined;
164
+ size?: string | undefined;
165
+ email?: string | null | undefined;
166
+ owner_id?: string | undefined;
167
+ avatar_path?: string | null | undefined;
168
+ mission?: string | null | undefined;
169
+ domain?: string | null | undefined;
170
+ urls?: {
171
+ value: string;
172
+ }[] | null | undefined;
173
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
174
+ }, {
175
+ id?: string | undefined;
176
+ name?: string | undefined;
177
+ size?: string | undefined;
178
+ email?: string | null | undefined;
179
+ owner_id?: string | undefined;
180
+ avatar_path?: string | null | undefined;
181
+ mission?: string | null | undefined;
182
+ domain?: string | null | undefined;
183
+ urls?: {
184
+ value: string;
185
+ }[] | null | undefined;
186
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
187
+ }>>>;
188
+ }>, "strip", z.ZodTypeAny, {
189
+ id: string;
190
+ name: string;
191
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
192
+ org_id: string;
193
+ created_at: string;
194
+ default_role: "none" | "admin" | "read" | "write";
195
+ memberCount: number;
196
+ members: {
197
+ role: "none" | "admin" | "read" | "write";
198
+ user_id: string;
199
+ user?: {
200
+ id?: string | undefined;
201
+ user_id?: string | undefined;
202
+ avatar_path?: string | null | undefined;
203
+ urls?: {
204
+ value: string;
205
+ }[] | undefined;
206
+ username?: string | null | undefined;
207
+ bio?: string | null | undefined;
208
+ last_active?: string | undefined;
209
+ } | null | undefined;
210
+ }[];
211
+ description?: string | null | undefined;
212
+ organization?: {
213
+ id?: string | undefined;
214
+ name?: string | undefined;
215
+ size?: string | undefined;
216
+ email?: string | null | undefined;
217
+ owner_id?: string | undefined;
218
+ avatar_path?: string | null | undefined;
219
+ mission?: string | null | undefined;
220
+ domain?: string | null | undefined;
221
+ urls?: {
222
+ value: string;
223
+ }[] | null | undefined;
224
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
225
+ } | null | undefined;
226
+ userMembership?: {
227
+ role: "none" | "admin" | "read" | "write";
228
+ user_id: string;
229
+ } | null | undefined;
230
+ }, {
231
+ id: string;
232
+ name: string;
233
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
234
+ org_id: string;
235
+ created_at: string;
236
+ default_role: "none" | "admin" | "read" | "write";
237
+ memberCount: number;
238
+ members: {
239
+ role: "none" | "admin" | "read" | "write";
240
+ user_id: string;
241
+ user?: {
242
+ id?: string | undefined;
243
+ user_id?: string | undefined;
244
+ avatar_path?: string | null | undefined;
245
+ urls?: {
246
+ value: string;
247
+ }[] | undefined;
248
+ username?: string | null | undefined;
249
+ bio?: string | null | undefined;
250
+ last_active?: string | undefined;
251
+ } | null | undefined;
252
+ }[];
253
+ description?: string | null | undefined;
254
+ organization?: {
255
+ id?: string | undefined;
256
+ name?: string | undefined;
257
+ size?: string | undefined;
258
+ email?: string | null | undefined;
259
+ owner_id?: string | undefined;
260
+ avatar_path?: string | null | undefined;
261
+ mission?: string | null | undefined;
262
+ domain?: string | null | undefined;
263
+ urls?: {
264
+ value: string;
265
+ }[] | null | undefined;
266
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
267
+ } | null | undefined;
268
+ userMembership?: {
269
+ role: "none" | "admin" | "read" | "write";
270
+ user_id: string;
271
+ } | null | undefined;
272
+ }>;
273
+ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
274
+ id: z.ZodString;
275
+ org_id: z.ZodString;
276
+ name: z.ZodString;
277
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
+ default_role: z.ZodEnum<["admin", "read", "write", "none"]>;
279
+ visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
280
+ created_at: z.ZodString;
281
+ }, {
282
+ userMembership: z.ZodNullable<z.ZodOptional<z.ZodObject<{
283
+ user_id: z.ZodString;
284
+ role: z.ZodEnum<["admin", "read", "write", "none"]>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ role: "none" | "admin" | "read" | "write";
287
+ user_id: string;
288
+ }, {
289
+ role: "none" | "admin" | "read" | "write";
290
+ user_id: string;
291
+ }>>>;
292
+ memberCount: z.ZodNumber;
293
+ members: z.ZodArray<z.ZodObject<{
294
+ user_id: z.ZodString;
295
+ role: z.ZodEnum<["admin", "read", "write", "none"]>;
296
+ user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
297
+ id: z.ZodOptional<z.ZodString>;
298
+ user_id: z.ZodOptional<z.ZodString>;
299
+ username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
300
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
301
+ bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
302
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
303
+ value: z.ZodString;
304
+ }, "strip", z.ZodTypeAny, {
305
+ value: string;
306
+ }, {
307
+ value: string;
308
+ }>, "many">>>;
309
+ last_active: z.ZodOptional<z.ZodString>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ id?: string | undefined;
312
+ user_id?: string | undefined;
313
+ avatar_path?: string | null | undefined;
314
+ urls?: {
315
+ value: string;
316
+ }[] | undefined;
317
+ username?: string | null | undefined;
318
+ bio?: string | null | undefined;
319
+ last_active?: string | undefined;
320
+ }, {
321
+ id?: string | undefined;
322
+ user_id?: string | undefined;
323
+ avatar_path?: string | null | undefined;
324
+ urls?: {
325
+ value: string;
326
+ }[] | undefined;
327
+ username?: string | null | undefined;
328
+ bio?: string | null | undefined;
329
+ last_active?: string | undefined;
330
+ }>>>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ role: "none" | "admin" | "read" | "write";
333
+ user_id: string;
334
+ user?: {
335
+ id?: string | undefined;
336
+ user_id?: string | undefined;
337
+ avatar_path?: string | null | undefined;
338
+ urls?: {
339
+ value: string;
340
+ }[] | undefined;
341
+ username?: string | null | undefined;
342
+ bio?: string | null | undefined;
343
+ last_active?: string | undefined;
344
+ } | null | undefined;
345
+ }, {
346
+ role: "none" | "admin" | "read" | "write";
347
+ user_id: string;
348
+ user?: {
349
+ id?: string | undefined;
350
+ user_id?: string | undefined;
351
+ avatar_path?: string | null | undefined;
352
+ urls?: {
353
+ value: string;
354
+ }[] | undefined;
355
+ username?: string | null | undefined;
356
+ bio?: string | null | undefined;
357
+ last_active?: string | undefined;
358
+ } | null | undefined;
359
+ }>, "many">;
360
+ organization: z.ZodNullable<z.ZodOptional<z.ZodObject<{
361
+ id: z.ZodOptional<z.ZodString>;
362
+ owner_id: z.ZodOptional<z.ZodString>;
363
+ name: z.ZodOptional<z.ZodString>;
364
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
365
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
366
+ size: z.ZodOptional<z.ZodString>;
367
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
368
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
369
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
370
+ value: z.ZodString;
371
+ }, "strip", z.ZodTypeAny, {
372
+ value: string;
373
+ }, {
374
+ value: string;
375
+ }>, "many">>>>;
376
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ id?: string | undefined;
379
+ name?: string | undefined;
380
+ size?: string | undefined;
381
+ email?: string | null | undefined;
382
+ owner_id?: string | undefined;
383
+ avatar_path?: string | null | undefined;
384
+ mission?: string | null | undefined;
385
+ domain?: string | null | undefined;
386
+ urls?: {
387
+ value: string;
388
+ }[] | null | undefined;
389
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
390
+ }, {
391
+ id?: string | undefined;
392
+ name?: string | undefined;
393
+ size?: string | undefined;
394
+ email?: string | null | undefined;
395
+ owner_id?: string | undefined;
396
+ avatar_path?: string | null | undefined;
397
+ mission?: string | null | undefined;
398
+ domain?: string | null | undefined;
399
+ urls?: {
400
+ value: string;
401
+ }[] | null | undefined;
402
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
403
+ }>>>;
404
+ }>, {
405
+ label: z.ZodString;
406
+ value: z.ZodString;
407
+ }>, "strip", z.ZodTypeAny, {
408
+ id: string;
409
+ name: string;
410
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
411
+ value: string;
412
+ label: string;
413
+ org_id: string;
414
+ created_at: string;
415
+ default_role: "none" | "admin" | "read" | "write";
416
+ memberCount: number;
417
+ members: {
418
+ role: "none" | "admin" | "read" | "write";
419
+ user_id: string;
420
+ user?: {
421
+ id?: string | undefined;
422
+ user_id?: string | undefined;
423
+ avatar_path?: string | null | undefined;
424
+ urls?: {
425
+ value: string;
426
+ }[] | undefined;
427
+ username?: string | null | undefined;
428
+ bio?: string | null | undefined;
429
+ last_active?: string | undefined;
430
+ } | null | undefined;
431
+ }[];
432
+ description?: string | null | undefined;
433
+ organization?: {
434
+ id?: string | undefined;
435
+ name?: string | undefined;
436
+ size?: string | undefined;
437
+ email?: string | null | undefined;
438
+ owner_id?: string | undefined;
439
+ avatar_path?: string | null | undefined;
440
+ mission?: string | null | undefined;
441
+ domain?: string | null | undefined;
442
+ urls?: {
443
+ value: string;
444
+ }[] | null | undefined;
445
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
446
+ } | null | undefined;
447
+ userMembership?: {
448
+ role: "none" | "admin" | "read" | "write";
449
+ user_id: string;
450
+ } | null | undefined;
451
+ }, {
452
+ id: string;
453
+ name: string;
454
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
455
+ value: string;
456
+ label: string;
457
+ org_id: string;
458
+ created_at: string;
459
+ default_role: "none" | "admin" | "read" | "write";
460
+ memberCount: number;
461
+ members: {
462
+ role: "none" | "admin" | "read" | "write";
463
+ user_id: string;
464
+ user?: {
465
+ id?: string | undefined;
466
+ user_id?: string | undefined;
467
+ avatar_path?: string | null | undefined;
468
+ urls?: {
469
+ value: string;
470
+ }[] | undefined;
471
+ username?: string | null | undefined;
472
+ bio?: string | null | undefined;
473
+ last_active?: string | undefined;
474
+ } | null | undefined;
475
+ }[];
476
+ description?: string | null | undefined;
477
+ organization?: {
478
+ id?: string | undefined;
479
+ name?: string | undefined;
480
+ size?: string | undefined;
481
+ email?: string | null | undefined;
482
+ owner_id?: string | undefined;
483
+ avatar_path?: string | null | undefined;
484
+ mission?: string | null | undefined;
485
+ domain?: string | null | undefined;
486
+ urls?: {
487
+ value: string;
488
+ }[] | null | undefined;
489
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
490
+ } | null | undefined;
491
+ userMembership?: {
492
+ role: "none" | "admin" | "read" | "write";
493
+ user_id: string;
494
+ } | null | undefined;
495
+ }>, "many">;
496
+ declare const UpdateTeamSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
497
+ id: z.ZodOptional<z.ZodString>;
498
+ org_id: z.ZodOptional<z.ZodString>;
499
+ name: z.ZodOptional<z.ZodString>;
500
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
501
+ default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
502
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
503
+ created_at: z.ZodOptional<z.ZodString>;
504
+ }, "org_id" | "created_at">, {
505
+ id: z.ZodString;
506
+ }>, "strip", z.ZodTypeAny, {
507
+ id: string;
508
+ name?: string | undefined;
509
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
510
+ description?: string | null | undefined;
511
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
512
+ }, {
513
+ id: string;
514
+ name?: string | undefined;
515
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
516
+ description?: string | null | undefined;
517
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
518
+ }>;
519
+ type Team = z.infer<typeof TeamSchema>;
520
+ type CreateTeam = z.infer<typeof CreateTeamSchema>;
521
+ type ReadTeam = z.infer<typeof ReadTeamSchema>;
522
+ type ReadTeams = z.infer<typeof ReadTeamsSchema>;
523
+ type UpdateTeam = z.infer<typeof UpdateTeamSchema>;
524
+ export { TeamSchema, CreateTeamSchema, ReadTeamSchema, ReadTeamsSchema, UpdateTeamSchema, type Team, type CreateTeam, type ReadTeam, type ReadTeams, type UpdateTeam, };