@ourofoundation/ouro-js 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -19
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -81
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +111 -100
- package/dist/schema/assets.esm.js +2 -0
- package/dist/schema/assets.esm.js.map +1 -0
- package/dist/schema/assets.js +2 -95
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +105 -95
- package/dist/schema/blueprints.esm.js +2 -0
- package/dist/schema/blueprints.esm.js.map +1 -0
- package/dist/schema/blueprints.js +2 -38
- package/dist/schema/blueprints.js.map +1 -1
- package/dist/schema/comments.d.ts +91 -81
- package/dist/schema/comments.esm.js +2 -0
- package/dist/schema/comments.esm.js.map +1 -0
- package/dist/schema/comments.js +2 -32
- package/dist/schema/comments.js.map +1 -1
- package/dist/schema/common.d.ts +32 -32
- package/dist/schema/common.esm.js +2 -0
- package/dist/schema/common.esm.js.map +1 -0
- package/dist/schema/common.js +2 -87
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +149 -139
- package/dist/schema/conversations.esm.js +2 -0
- package/dist/schema/conversations.esm.js.map +1 -0
- package/dist/schema/conversations.js +2 -54
- package/dist/schema/conversations.js.map +1 -1
- package/dist/schema/datasets.d.ts +218 -202
- package/dist/schema/datasets.esm.js +2 -0
- package/dist/schema/datasets.esm.js.map +1 -0
- package/dist/schema/datasets.js +2 -49
- package/dist/schema/datasets.js.map +1 -1
- package/dist/schema/files.d.ts +201 -185
- package/dist/schema/files.esm.js +2 -0
- package/dist/schema/files.esm.js.map +1 -0
- package/dist/schema/files.js +2 -50
- package/dist/schema/files.js.map +1 -1
- package/dist/schema/index.d.ts +14 -80
- package/dist/schema/notifications.d.ts +22 -22
- package/dist/schema/notifications.esm.js +2 -0
- package/dist/schema/notifications.esm.js.map +1 -0
- package/dist/schema/notifications.js +2 -46
- package/dist/schema/notifications.js.map +1 -1
- package/dist/schema/organizations.d.ts +11 -11
- package/dist/schema/organizations.esm.js +2 -0
- package/dist/schema/organizations.esm.js.map +1 -0
- package/dist/schema/organizations.js +2 -33
- package/dist/schema/organizations.js.map +1 -1
- package/dist/schema/posts.d.ts +326 -298
- package/dist/schema/posts.esm.js +2 -0
- package/dist/schema/posts.esm.js.map +1 -0
- package/dist/schema/posts.js +2 -81
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +125 -115
- package/dist/schema/replications.esm.js +2 -0
- package/dist/schema/replications.esm.js.map +1 -0
- package/dist/schema/replications.js +2 -42
- package/dist/schema/replications.js.map +1 -1
- package/dist/schema/services.d.ts +14 -14
- package/dist/schema/services.esm.js +2 -0
- package/dist/schema/services.esm.js.map +1 -0
- package/dist/schema/services.js +2 -39
- package/dist/schema/services.js.map +1 -1
- package/dist/schema/teams.d.ts +99 -85
- package/dist/schema/teams.esm.js +2 -0
- package/dist/schema/teams.esm.js.map +1 -0
- package/dist/schema/teams.js +2 -57
- package/dist/schema/teams.js.map +1 -1
- package/dist/schema/users.d.ts +13 -4
- package/dist/schema/users.esm.js +2 -0
- package/dist/schema/users.esm.js.map +1 -0
- package/dist/schema/users.js +2 -35
- package/dist/schema/users.js.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/utils/air/index.d.ts +1 -1
- package/dist/utils/air/index.esm.js +2 -0
- package/dist/utils/air/index.esm.js.map +1 -0
- package/dist/utils/air/index.js +2 -51
- package/dist/utils/air/index.js.map +1 -1
- package/dist/utils/air/markdown-parser.esm.js +2 -0
- package/dist/utils/air/markdown-parser.esm.js.map +1 -0
- package/dist/utils/air/markdown-parser.js +2 -118
- package/dist/utils/air/markdown-parser.js.map +1 -1
- package/dist/utils/dataset.esm.js +2 -0
- package/dist/utils/dataset.esm.js.map +1 -0
- package/dist/utils/dataset.js +2 -19
- package/dist/utils/dataset.js.map +1 -1
- package/dist/utils/navigate.esm.js +2 -0
- package/dist/utils/navigate.esm.js.map +1 -0
- package/dist/utils/navigate.js +2 -56
- package/dist/utils/navigate.js.map +1 -1
- package/package.json +21 -4
- package/rollup.config.js +52 -0
|
@@ -15,29 +15,29 @@ declare const serviceSchema: z.ZodObject<{
|
|
|
15
15
|
last_updated: z.ZodString;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
20
18
|
user_id: string;
|
|
21
19
|
created_at: string;
|
|
22
20
|
last_updated: string;
|
|
21
|
+
name: string;
|
|
22
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
23
23
|
authentication: "Personal Access Token" | "None" | "OAuth 2.0";
|
|
24
24
|
base_url: string;
|
|
25
25
|
spec_path: string;
|
|
26
|
-
description?: string | null | undefined;
|
|
27
26
|
org_id?: string | null | undefined;
|
|
27
|
+
description?: string | null | undefined;
|
|
28
28
|
version?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
33
31
|
user_id: string;
|
|
34
32
|
created_at: string;
|
|
35
33
|
last_updated: string;
|
|
34
|
+
name: string;
|
|
35
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
36
36
|
authentication: "Personal Access Token" | "None" | "OAuth 2.0";
|
|
37
37
|
base_url: string;
|
|
38
38
|
spec_path: string;
|
|
39
|
-
description?: string | null | undefined;
|
|
40
39
|
org_id?: string | null | undefined;
|
|
40
|
+
description?: string | null | undefined;
|
|
41
41
|
version?: string | null | undefined;
|
|
42
42
|
}>;
|
|
43
43
|
declare const routeSchema: z.ZodObject<{
|
|
@@ -55,10 +55,10 @@ declare const routeSchema: z.ZodObject<{
|
|
|
55
55
|
last_updated: z.ZodString;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
id: string;
|
|
58
|
-
path: string;
|
|
59
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
60
58
|
user_id: string;
|
|
59
|
+
path: string;
|
|
61
60
|
last_updated: string;
|
|
61
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
62
62
|
service_id: string;
|
|
63
63
|
summary?: string | null | undefined;
|
|
64
64
|
parameters?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
@@ -68,10 +68,10 @@ declare const routeSchema: z.ZodObject<{
|
|
|
68
68
|
rate_limit?: number | null | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
id: string;
|
|
71
|
-
path: string;
|
|
72
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
73
71
|
user_id: string;
|
|
72
|
+
path: string;
|
|
74
73
|
last_updated: string;
|
|
74
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
75
75
|
service_id: string;
|
|
76
76
|
summary?: string | null | undefined;
|
|
77
77
|
parameters?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
@@ -80,7 +80,7 @@ declare const routeSchema: z.ZodObject<{
|
|
|
80
80
|
security?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
81
81
|
rate_limit?: number | null | undefined;
|
|
82
82
|
}>;
|
|
83
|
-
|
|
84
|
-
type
|
|
85
|
-
type
|
|
86
|
-
export
|
|
83
|
+
export { routeSchema, serviceSchema, authType };
|
|
84
|
+
export type Service = z.infer<typeof serviceSchema>;
|
|
85
|
+
export type Route = z.infer<typeof routeSchema>;
|
|
86
|
+
export type AuthType = z.infer<typeof authType>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{z as t}from"zod";import{VisibilitySchema as n}from"./common.esm.js";const e=t.enum(["Personal Access Token","None","OAuth 2.0"]),o=t.object({id:t.string(),user_id:t.string(),org_id:t.string().nullable().optional(),name:t.string(),description:t.string().nullable().optional(),visibility:n,version:t.string().nullable().optional(),authentication:e,base_url:t.string(),spec_path:t.string(),created_at:t.string(),last_updated:t.string()}),s=t.object({id:t.string(),user_id:t.string(),service_id:t.string(),path:t.string(),method:t.enum(["GET","POST","PUT","PATCH","DELETE"]),summary:t.string().nullable().optional(),parameters:t.array(t.object({}).passthrough()).nullable().optional(),request_body:t.object({}).passthrough().nullable().optional(),responses:t.array(t.object({}).passthrough()).nullable().optional(),security:t.object({}).passthrough().nullable().optional(),rate_limit:t.number().nullable().optional(),last_updated:t.string()});export{e as authType,s as routeSchema,o as serviceSchema};
|
|
2
|
+
//# sourceMappingURL=services.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.esm.js","sources":["../../src/schema/services.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { VisibilitySchema } from \"./common\";\n\nconst authType = z.enum([\"Personal Access Token\", \"None\", \"OAuth 2.0\"]);\n\nconst serviceSchema = z.object({\n id: z.string(),\n user_id: z.string(),\n org_id: z.string().nullable().optional(),\n name: z.string(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema,\n version: z.string().nullable().optional(),\n authentication: authType,\n base_url: z.string(),\n spec_path: z.string(),\n created_at: z.string(),\n last_updated: z.string(),\n});\n\nconst routeSchema = z.object({\n id: z.string(),\n user_id: z.string(),\n service_id: z.string(),\n path: z.string(),\n method: z.enum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"]),\n summary: z.string().nullable().optional(),\n parameters: z.array(z.object({}).passthrough()).nullable().optional(),\n request_body: z.object({}).passthrough().nullable().optional(),\n responses: z.array(z.object({}).passthrough()).nullable().optional(),\n security: z.object({}).passthrough().nullable().optional(),\n // created_at: z.string(),\n rate_limit: z.number().nullable().optional(),\n last_updated: z.string(),\n});\n\nexport { routeSchema, serviceSchema, authType };\nexport type Service = z.infer<typeof serviceSchema>;\nexport type Route = z.infer<typeof routeSchema>;\nexport type AuthType = z.infer<typeof authType>;\n"],"names":["authType","z","enum","serviceSchema","object","id","string","user_id","org_id","nullable","optional","name","description","visibility","VisibilitySchema","version","authentication","base_url","spec_path","created_at","last_updated","routeSchema","service_id","path","method","summary","parameters","array","passthrough","request_body","responses","security","rate_limit","number"],"mappings":"2EAIA,MAAMA,EAAWC,EAAEC,KAAK,CAAC,wBAAyB,OAAQ,cAEpDC,EAAgBF,EAAEG,OAAO,CAC7BC,GAAIJ,EAAEK,SACNC,QAASN,EAAEK,SACXE,OAAQP,EAAEK,SAASG,WAAWC,WAC9BC,KAAMV,EAAEK,SACRM,YAAaX,EAAEK,SAASG,WAAWC,WACnCG,WAAYC,EACZC,QAASd,EAAEK,SAASG,WAAWC,WAC/BM,eAAgBhB,EAChBiB,SAAUhB,EAAEK,SACZY,UAAWjB,EAAEK,SACba,WAAYlB,EAAEK,SACdc,aAAcnB,EAAEK,WAGZe,EAAcpB,EAAEG,OAAO,CAC3BC,GAAIJ,EAAEK,SACNC,QAASN,EAAEK,SACXgB,WAAYrB,EAAEK,SACdiB,KAAMtB,EAAEK,SACRkB,OAAQvB,EAAEC,KAAK,CAAC,MAAO,OAAQ,MAAO,QAAS,WAC/CuB,QAASxB,EAAEK,SAASG,WAAWC,WAC/BgB,WAAYzB,EAAE0B,MAAM1B,EAAEG,OAAO,IAAIwB,eAAenB,WAAWC,WAC3DmB,aAAc5B,EAAEG,OAAO,CAAE,GAAEwB,cAAcnB,WAAWC,WACpDoB,UAAW7B,EAAE0B,MAAM1B,EAAEG,OAAO,IAAIwB,eAAenB,WAAWC,WAC1DqB,SAAU9B,EAAEG,OAAO,CAAE,GAAEwB,cAAcnB,WAAWC,WAEhDsB,WAAY/B,EAAEgC,SAASxB,WAAWC,WAClCU,aAAcnB,EAAEK"}
|
package/dist/schema/services.js
CHANGED
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.authType = exports.serviceSchema = exports.routeSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("./common");
|
|
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: common_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;
|
|
39
|
-
//# sourceMappingURL=services.js.map
|
|
1
|
+
"use strict";var t=require("zod"),e=require("./common.js");const s=t.z.enum(["Personal Access Token","None","OAuth 2.0"]),i=t.z.object({id:t.z.string(),user_id:t.z.string(),org_id:t.z.string().nullable().optional(),name:t.z.string(),description:t.z.string().nullable().optional(),visibility:e.VisibilitySchema,version:t.z.string().nullable().optional(),authentication:s,base_url:t.z.string(),spec_path:t.z.string(),created_at:t.z.string(),last_updated:t.z.string()}),r=t.z.object({id:t.z.string(),user_id:t.z.string(),service_id:t.z.string(),path:t.z.string(),method:t.z.enum(["GET","POST","PUT","PATCH","DELETE"]),summary:t.z.string().nullable().optional(),parameters:t.z.array(t.z.object({}).passthrough()).nullable().optional(),request_body:t.z.object({}).passthrough().nullable().optional(),responses:t.z.array(t.z.object({}).passthrough()).nullable().optional(),security:t.z.object({}).passthrough().nullable().optional(),rate_limit:t.z.number().nullable().optional(),last_updated:t.z.string()});exports.authType=s,exports.routeSchema=r,exports.serviceSchema=i;
|
|
2
|
+
//# sourceMappingURL=services.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.js","
|
|
1
|
+
{"version":3,"file":"services.js","sources":["../../src/schema/services.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { VisibilitySchema } from \"./common\";\n\nconst authType = z.enum([\"Personal Access Token\", \"None\", \"OAuth 2.0\"]);\n\nconst serviceSchema = z.object({\n id: z.string(),\n user_id: z.string(),\n org_id: z.string().nullable().optional(),\n name: z.string(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema,\n version: z.string().nullable().optional(),\n authentication: authType,\n base_url: z.string(),\n spec_path: z.string(),\n created_at: z.string(),\n last_updated: z.string(),\n});\n\nconst routeSchema = z.object({\n id: z.string(),\n user_id: z.string(),\n service_id: z.string(),\n path: z.string(),\n method: z.enum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"]),\n summary: z.string().nullable().optional(),\n parameters: z.array(z.object({}).passthrough()).nullable().optional(),\n request_body: z.object({}).passthrough().nullable().optional(),\n responses: z.array(z.object({}).passthrough()).nullable().optional(),\n security: z.object({}).passthrough().nullable().optional(),\n // created_at: z.string(),\n rate_limit: z.number().nullable().optional(),\n last_updated: z.string(),\n});\n\nexport { routeSchema, serviceSchema, authType };\nexport type Service = z.infer<typeof serviceSchema>;\nexport type Route = z.infer<typeof routeSchema>;\nexport type AuthType = z.infer<typeof authType>;\n"],"names":["authType","z","enum","serviceSchema","object","id","string","user_id","org_id","nullable","optional","name","description","visibility","VisibilitySchema","version","authentication","base_url","spec_path","created_at","last_updated","routeSchema","service_id","path","method","summary","parameters","array","passthrough","request_body","responses","security","rate_limit","number"],"mappings":"2DAIA,MAAMA,EAAWC,EAACA,EAACC,KAAK,CAAC,wBAAyB,OAAQ,cAEpDC,EAAgBF,EAACA,EAACG,OAAO,CAC7BC,GAAIJ,EAACA,EAACK,SACNC,QAASN,EAACA,EAACK,SACXE,OAAQP,EAAAA,EAAEK,SAASG,WAAWC,WAC9BC,KAAMV,EAACA,EAACK,SACRM,YAAaX,EAAAA,EAAEK,SAASG,WAAWC,WACnCG,WAAYC,EAAgBA,iBAC5BC,QAASd,EAAAA,EAAEK,SAASG,WAAWC,WAC/BM,eAAgBhB,EAChBiB,SAAUhB,EAACA,EAACK,SACZY,UAAWjB,EAACA,EAACK,SACba,WAAYlB,EAACA,EAACK,SACdc,aAAcnB,EAACA,EAACK,WAGZe,EAAcpB,EAACA,EAACG,OAAO,CAC3BC,GAAIJ,EAACA,EAACK,SACNC,QAASN,EAACA,EAACK,SACXgB,WAAYrB,EAACA,EAACK,SACdiB,KAAMtB,EAACA,EAACK,SACRkB,OAAQvB,EAAAA,EAAEC,KAAK,CAAC,MAAO,OAAQ,MAAO,QAAS,WAC/CuB,QAASxB,EAAAA,EAAEK,SAASG,WAAWC,WAC/BgB,WAAYzB,EAACA,EAAC0B,MAAM1B,EAAAA,EAAEG,OAAO,IAAIwB,eAAenB,WAAWC,WAC3DmB,aAAc5B,EAAAA,EAAEG,OAAO,CAAE,GAAEwB,cAAcnB,WAAWC,WACpDoB,UAAW7B,EAACA,EAAC0B,MAAM1B,EAAAA,EAAEG,OAAO,IAAIwB,eAAenB,WAAWC,WAC1DqB,SAAU9B,EAAAA,EAAEG,OAAO,CAAE,GAAEwB,cAAcnB,WAAWC,WAEhDsB,WAAY/B,EAAAA,EAAEgC,SAASxB,WAAWC,WAClCU,aAAcnB,EAACA,EAACK"}
|
package/dist/schema/teams.d.ts
CHANGED
|
@@ -9,19 +9,19 @@ declare const TeamSchema: z.ZodObject<{
|
|
|
9
9
|
created_at: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
14
12
|
org_id: string;
|
|
15
13
|
created_at: string;
|
|
16
|
-
|
|
14
|
+
name: string;
|
|
15
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
16
|
+
default_role: "admin" | "read" | "write" | "none";
|
|
17
17
|
description?: string | null | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
22
20
|
org_id: string;
|
|
23
21
|
created_at: string;
|
|
24
|
-
|
|
22
|
+
name: string;
|
|
23
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
24
|
+
default_role: "admin" | "read" | "write" | "none";
|
|
25
25
|
description?: string | null | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
declare const CreateTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -34,25 +34,25 @@ declare const CreateTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
34
34
|
created_at: z.ZodString;
|
|
35
35
|
}, {
|
|
36
36
|
id: z.ZodDefault<z.ZodString>;
|
|
37
|
-
default_role: z.ZodEffects<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>, "
|
|
38
|
-
visibility: z.ZodEffects<z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>, "
|
|
37
|
+
default_role: z.ZodEffects<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>, "admin" | "read" | "write" | "none", "admin" | "read" | "write" | "none" | undefined>;
|
|
38
|
+
visibility: z.ZodEffects<z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>, "organization" | "public" | "private" | "monetized" | "inherit", "organization" | "public" | "private" | "monetized" | "inherit" | undefined>;
|
|
39
39
|
created_at: z.ZodDefault<z.ZodString>;
|
|
40
40
|
}>, "strip", z.ZodTypeAny, {
|
|
41
41
|
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
44
42
|
org_id: string;
|
|
45
43
|
created_at: string;
|
|
46
|
-
|
|
44
|
+
name: string;
|
|
45
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
46
|
+
default_role: "admin" | "read" | "write" | "none";
|
|
47
47
|
description?: string | null | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
name: string;
|
|
50
49
|
org_id: string;
|
|
50
|
+
name: string;
|
|
51
51
|
id?: string | undefined;
|
|
52
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
53
|
-
description?: string | null | undefined;
|
|
54
52
|
created_at?: string | undefined;
|
|
55
|
-
|
|
53
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
54
|
+
description?: string | null | undefined;
|
|
55
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
58
58
|
id: z.ZodString;
|
|
@@ -67,11 +67,11 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
67
67
|
user_id: z.ZodString;
|
|
68
68
|
role: z.ZodEnum<["admin", "read", "write", "none"]>;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
role: "none" | "admin" | "read" | "write";
|
|
71
70
|
user_id: string;
|
|
71
|
+
role: "admin" | "read" | "write" | "none";
|
|
72
72
|
}, {
|
|
73
|
-
role: "none" | "admin" | "read" | "write";
|
|
74
73
|
user_id: string;
|
|
74
|
+
role: "admin" | "read" | "write" | "none";
|
|
75
75
|
}>>>;
|
|
76
76
|
memberCount: z.ZodNumber;
|
|
77
77
|
members: z.ZodArray<z.ZodObject<{
|
|
@@ -90,6 +90,7 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
90
90
|
}, {
|
|
91
91
|
value: string;
|
|
92
92
|
}>, "many">>>;
|
|
93
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
93
94
|
last_active: z.ZodOptional<z.ZodString>;
|
|
94
95
|
}, "strip", z.ZodTypeAny, {
|
|
95
96
|
id?: string | undefined;
|
|
@@ -100,6 +101,7 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
100
101
|
}[] | undefined;
|
|
101
102
|
username?: string | null | undefined;
|
|
102
103
|
bio?: string | null | undefined;
|
|
104
|
+
post_id?: string | null | undefined;
|
|
103
105
|
last_active?: string | undefined;
|
|
104
106
|
}, {
|
|
105
107
|
id?: string | undefined;
|
|
@@ -110,11 +112,12 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
110
112
|
}[] | undefined;
|
|
111
113
|
username?: string | null | undefined;
|
|
112
114
|
bio?: string | null | undefined;
|
|
115
|
+
post_id?: string | null | undefined;
|
|
113
116
|
last_active?: string | undefined;
|
|
114
117
|
}>>>;
|
|
115
118
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
role: "none" | "admin" | "read" | "write";
|
|
117
119
|
user_id: string;
|
|
120
|
+
role: "admin" | "read" | "write" | "none";
|
|
118
121
|
user?: {
|
|
119
122
|
id?: string | undefined;
|
|
120
123
|
user_id?: string | undefined;
|
|
@@ -124,11 +127,12 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
124
127
|
}[] | undefined;
|
|
125
128
|
username?: string | null | undefined;
|
|
126
129
|
bio?: string | null | undefined;
|
|
130
|
+
post_id?: string | null | undefined;
|
|
127
131
|
last_active?: string | undefined;
|
|
128
132
|
} | null | undefined;
|
|
129
133
|
}, {
|
|
130
|
-
role: "none" | "admin" | "read" | "write";
|
|
131
134
|
user_id: string;
|
|
135
|
+
role: "admin" | "read" | "write" | "none";
|
|
132
136
|
user?: {
|
|
133
137
|
id?: string | undefined;
|
|
134
138
|
user_id?: string | undefined;
|
|
@@ -138,6 +142,7 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
138
142
|
}[] | undefined;
|
|
139
143
|
username?: string | null | undefined;
|
|
140
144
|
bio?: string | null | undefined;
|
|
145
|
+
post_id?: string | null | undefined;
|
|
141
146
|
last_active?: string | undefined;
|
|
142
147
|
} | null | undefined;
|
|
143
148
|
}>, "many">;
|
|
@@ -160,39 +165,39 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
160
165
|
}, "strip", z.ZodTypeAny, {
|
|
161
166
|
id?: string | undefined;
|
|
162
167
|
name?: string | undefined;
|
|
163
|
-
size?: string | undefined;
|
|
164
|
-
email?: string | null | undefined;
|
|
165
168
|
avatar_path?: string | null | undefined;
|
|
166
169
|
mission?: string | null | undefined;
|
|
170
|
+
size?: string | undefined;
|
|
171
|
+
email?: string | null | undefined;
|
|
167
172
|
domain?: string | null | undefined;
|
|
168
173
|
urls?: {
|
|
169
174
|
value: string;
|
|
170
175
|
}[] | null | undefined;
|
|
171
|
-
base_role?: "
|
|
176
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
172
177
|
}, {
|
|
173
178
|
id?: string | undefined;
|
|
174
179
|
name?: string | undefined;
|
|
175
|
-
size?: string | undefined;
|
|
176
|
-
email?: string | null | undefined;
|
|
177
180
|
avatar_path?: string | null | undefined;
|
|
178
181
|
mission?: string | null | undefined;
|
|
182
|
+
size?: string | undefined;
|
|
183
|
+
email?: string | null | undefined;
|
|
179
184
|
domain?: string | null | undefined;
|
|
180
185
|
urls?: {
|
|
181
186
|
value: string;
|
|
182
187
|
}[] | null | undefined;
|
|
183
|
-
base_role?: "
|
|
188
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
184
189
|
}>>>;
|
|
185
190
|
}>, "strip", z.ZodTypeAny, {
|
|
186
191
|
id: string;
|
|
187
|
-
name: string;
|
|
188
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
189
192
|
org_id: string;
|
|
190
193
|
created_at: string;
|
|
191
|
-
|
|
194
|
+
name: string;
|
|
195
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
196
|
+
default_role: "admin" | "read" | "write" | "none";
|
|
192
197
|
memberCount: number;
|
|
193
198
|
members: {
|
|
194
|
-
role: "none" | "admin" | "read" | "write";
|
|
195
199
|
user_id: string;
|
|
200
|
+
role: "admin" | "read" | "write" | "none";
|
|
196
201
|
user?: {
|
|
197
202
|
id?: string | undefined;
|
|
198
203
|
user_id?: string | undefined;
|
|
@@ -202,38 +207,39 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
202
207
|
}[] | undefined;
|
|
203
208
|
username?: string | null | undefined;
|
|
204
209
|
bio?: string | null | undefined;
|
|
210
|
+
post_id?: string | null | undefined;
|
|
205
211
|
last_active?: string | undefined;
|
|
206
212
|
} | null | undefined;
|
|
207
213
|
}[];
|
|
208
|
-
description?: string | null | undefined;
|
|
209
214
|
organization?: {
|
|
210
215
|
id?: string | undefined;
|
|
211
216
|
name?: string | undefined;
|
|
212
|
-
size?: string | undefined;
|
|
213
|
-
email?: string | null | undefined;
|
|
214
217
|
avatar_path?: string | null | undefined;
|
|
215
218
|
mission?: string | null | undefined;
|
|
219
|
+
size?: string | undefined;
|
|
220
|
+
email?: string | null | undefined;
|
|
216
221
|
domain?: string | null | undefined;
|
|
217
222
|
urls?: {
|
|
218
223
|
value: string;
|
|
219
224
|
}[] | null | undefined;
|
|
220
|
-
base_role?: "
|
|
225
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
221
226
|
} | null | undefined;
|
|
227
|
+
description?: string | null | undefined;
|
|
222
228
|
userMembership?: {
|
|
223
|
-
role: "none" | "admin" | "read" | "write";
|
|
224
229
|
user_id: string;
|
|
230
|
+
role: "admin" | "read" | "write" | "none";
|
|
225
231
|
} | null | undefined;
|
|
226
232
|
}, {
|
|
227
233
|
id: string;
|
|
228
|
-
name: string;
|
|
229
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
230
234
|
org_id: string;
|
|
231
235
|
created_at: string;
|
|
232
|
-
|
|
236
|
+
name: string;
|
|
237
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
238
|
+
default_role: "admin" | "read" | "write" | "none";
|
|
233
239
|
memberCount: number;
|
|
234
240
|
members: {
|
|
235
|
-
role: "none" | "admin" | "read" | "write";
|
|
236
241
|
user_id: string;
|
|
242
|
+
role: "admin" | "read" | "write" | "none";
|
|
237
243
|
user?: {
|
|
238
244
|
id?: string | undefined;
|
|
239
245
|
user_id?: string | undefined;
|
|
@@ -243,26 +249,27 @@ declare const ReadTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
243
249
|
}[] | undefined;
|
|
244
250
|
username?: string | null | undefined;
|
|
245
251
|
bio?: string | null | undefined;
|
|
252
|
+
post_id?: string | null | undefined;
|
|
246
253
|
last_active?: string | undefined;
|
|
247
254
|
} | null | undefined;
|
|
248
255
|
}[];
|
|
249
|
-
description?: string | null | undefined;
|
|
250
256
|
organization?: {
|
|
251
257
|
id?: string | undefined;
|
|
252
258
|
name?: string | undefined;
|
|
253
|
-
size?: string | undefined;
|
|
254
|
-
email?: string | null | undefined;
|
|
255
259
|
avatar_path?: string | null | undefined;
|
|
256
260
|
mission?: string | null | undefined;
|
|
261
|
+
size?: string | undefined;
|
|
262
|
+
email?: string | null | undefined;
|
|
257
263
|
domain?: string | null | undefined;
|
|
258
264
|
urls?: {
|
|
259
265
|
value: string;
|
|
260
266
|
}[] | null | undefined;
|
|
261
|
-
base_role?: "
|
|
267
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
262
268
|
} | null | undefined;
|
|
269
|
+
description?: string | null | undefined;
|
|
263
270
|
userMembership?: {
|
|
264
|
-
role: "none" | "admin" | "read" | "write";
|
|
265
271
|
user_id: string;
|
|
272
|
+
role: "admin" | "read" | "write" | "none";
|
|
266
273
|
} | null | undefined;
|
|
267
274
|
}>;
|
|
268
275
|
declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -278,11 +285,11 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
278
285
|
user_id: z.ZodString;
|
|
279
286
|
role: z.ZodEnum<["admin", "read", "write", "none"]>;
|
|
280
287
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
-
role: "none" | "admin" | "read" | "write";
|
|
282
288
|
user_id: string;
|
|
289
|
+
role: "admin" | "read" | "write" | "none";
|
|
283
290
|
}, {
|
|
284
|
-
role: "none" | "admin" | "read" | "write";
|
|
285
291
|
user_id: string;
|
|
292
|
+
role: "admin" | "read" | "write" | "none";
|
|
286
293
|
}>>>;
|
|
287
294
|
memberCount: z.ZodNumber;
|
|
288
295
|
members: z.ZodArray<z.ZodObject<{
|
|
@@ -301,6 +308,7 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
301
308
|
}, {
|
|
302
309
|
value: string;
|
|
303
310
|
}>, "many">>>;
|
|
311
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
304
312
|
last_active: z.ZodOptional<z.ZodString>;
|
|
305
313
|
}, "strip", z.ZodTypeAny, {
|
|
306
314
|
id?: string | undefined;
|
|
@@ -311,6 +319,7 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
311
319
|
}[] | undefined;
|
|
312
320
|
username?: string | null | undefined;
|
|
313
321
|
bio?: string | null | undefined;
|
|
322
|
+
post_id?: string | null | undefined;
|
|
314
323
|
last_active?: string | undefined;
|
|
315
324
|
}, {
|
|
316
325
|
id?: string | undefined;
|
|
@@ -321,11 +330,12 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
321
330
|
}[] | undefined;
|
|
322
331
|
username?: string | null | undefined;
|
|
323
332
|
bio?: string | null | undefined;
|
|
333
|
+
post_id?: string | null | undefined;
|
|
324
334
|
last_active?: string | undefined;
|
|
325
335
|
}>>>;
|
|
326
336
|
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
role: "none" | "admin" | "read" | "write";
|
|
328
337
|
user_id: string;
|
|
338
|
+
role: "admin" | "read" | "write" | "none";
|
|
329
339
|
user?: {
|
|
330
340
|
id?: string | undefined;
|
|
331
341
|
user_id?: string | undefined;
|
|
@@ -335,11 +345,12 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
335
345
|
}[] | undefined;
|
|
336
346
|
username?: string | null | undefined;
|
|
337
347
|
bio?: string | null | undefined;
|
|
348
|
+
post_id?: string | null | undefined;
|
|
338
349
|
last_active?: string | undefined;
|
|
339
350
|
} | null | undefined;
|
|
340
351
|
}, {
|
|
341
|
-
role: "none" | "admin" | "read" | "write";
|
|
342
352
|
user_id: string;
|
|
353
|
+
role: "admin" | "read" | "write" | "none";
|
|
343
354
|
user?: {
|
|
344
355
|
id?: string | undefined;
|
|
345
356
|
user_id?: string | undefined;
|
|
@@ -349,6 +360,7 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
349
360
|
}[] | undefined;
|
|
350
361
|
username?: string | null | undefined;
|
|
351
362
|
bio?: string | null | undefined;
|
|
363
|
+
post_id?: string | null | undefined;
|
|
352
364
|
last_active?: string | undefined;
|
|
353
365
|
} | null | undefined;
|
|
354
366
|
}>, "many">;
|
|
@@ -371,44 +383,43 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
371
383
|
}, "strip", z.ZodTypeAny, {
|
|
372
384
|
id?: string | undefined;
|
|
373
385
|
name?: string | undefined;
|
|
374
|
-
size?: string | undefined;
|
|
375
|
-
email?: string | null | undefined;
|
|
376
386
|
avatar_path?: string | null | undefined;
|
|
377
387
|
mission?: string | null | undefined;
|
|
388
|
+
size?: string | undefined;
|
|
389
|
+
email?: string | null | undefined;
|
|
378
390
|
domain?: string | null | undefined;
|
|
379
391
|
urls?: {
|
|
380
392
|
value: string;
|
|
381
393
|
}[] | null | undefined;
|
|
382
|
-
base_role?: "
|
|
394
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
383
395
|
}, {
|
|
384
396
|
id?: string | undefined;
|
|
385
397
|
name?: string | undefined;
|
|
386
|
-
size?: string | undefined;
|
|
387
|
-
email?: string | null | undefined;
|
|
388
398
|
avatar_path?: string | null | undefined;
|
|
389
399
|
mission?: string | null | undefined;
|
|
400
|
+
size?: string | undefined;
|
|
401
|
+
email?: string | null | undefined;
|
|
390
402
|
domain?: string | null | undefined;
|
|
391
403
|
urls?: {
|
|
392
404
|
value: string;
|
|
393
405
|
}[] | null | undefined;
|
|
394
|
-
base_role?: "
|
|
406
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
395
407
|
}>>>;
|
|
396
408
|
}>, {
|
|
397
409
|
label: z.ZodString;
|
|
398
410
|
value: z.ZodString;
|
|
399
411
|
}>, "strip", z.ZodTypeAny, {
|
|
400
412
|
id: string;
|
|
401
|
-
name: string;
|
|
402
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
403
|
-
value: string;
|
|
404
|
-
label: string;
|
|
405
413
|
org_id: string;
|
|
414
|
+
value: string;
|
|
406
415
|
created_at: string;
|
|
407
|
-
|
|
416
|
+
name: string;
|
|
417
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
418
|
+
default_role: "admin" | "read" | "write" | "none";
|
|
408
419
|
memberCount: number;
|
|
409
420
|
members: {
|
|
410
|
-
role: "none" | "admin" | "read" | "write";
|
|
411
421
|
user_id: string;
|
|
422
|
+
role: "admin" | "read" | "write" | "none";
|
|
412
423
|
user?: {
|
|
413
424
|
id?: string | undefined;
|
|
414
425
|
user_id?: string | undefined;
|
|
@@ -418,40 +429,41 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
418
429
|
}[] | undefined;
|
|
419
430
|
username?: string | null | undefined;
|
|
420
431
|
bio?: string | null | undefined;
|
|
432
|
+
post_id?: string | null | undefined;
|
|
421
433
|
last_active?: string | undefined;
|
|
422
434
|
} | null | undefined;
|
|
423
435
|
}[];
|
|
424
|
-
|
|
436
|
+
label: string;
|
|
425
437
|
organization?: {
|
|
426
438
|
id?: string | undefined;
|
|
427
439
|
name?: string | undefined;
|
|
428
|
-
size?: string | undefined;
|
|
429
|
-
email?: string | null | undefined;
|
|
430
440
|
avatar_path?: string | null | undefined;
|
|
431
441
|
mission?: string | null | undefined;
|
|
442
|
+
size?: string | undefined;
|
|
443
|
+
email?: string | null | undefined;
|
|
432
444
|
domain?: string | null | undefined;
|
|
433
445
|
urls?: {
|
|
434
446
|
value: string;
|
|
435
447
|
}[] | null | undefined;
|
|
436
|
-
base_role?: "
|
|
448
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
437
449
|
} | null | undefined;
|
|
450
|
+
description?: string | null | undefined;
|
|
438
451
|
userMembership?: {
|
|
439
|
-
role: "none" | "admin" | "read" | "write";
|
|
440
452
|
user_id: string;
|
|
453
|
+
role: "admin" | "read" | "write" | "none";
|
|
441
454
|
} | null | undefined;
|
|
442
455
|
}, {
|
|
443
456
|
id: string;
|
|
444
|
-
name: string;
|
|
445
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
446
|
-
value: string;
|
|
447
|
-
label: string;
|
|
448
457
|
org_id: string;
|
|
458
|
+
value: string;
|
|
449
459
|
created_at: string;
|
|
450
|
-
|
|
460
|
+
name: string;
|
|
461
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
462
|
+
default_role: "admin" | "read" | "write" | "none";
|
|
451
463
|
memberCount: number;
|
|
452
464
|
members: {
|
|
453
|
-
role: "none" | "admin" | "read" | "write";
|
|
454
465
|
user_id: string;
|
|
466
|
+
role: "admin" | "read" | "write" | "none";
|
|
455
467
|
user?: {
|
|
456
468
|
id?: string | undefined;
|
|
457
469
|
user_id?: string | undefined;
|
|
@@ -461,26 +473,28 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
461
473
|
}[] | undefined;
|
|
462
474
|
username?: string | null | undefined;
|
|
463
475
|
bio?: string | null | undefined;
|
|
476
|
+
post_id?: string | null | undefined;
|
|
464
477
|
last_active?: string | undefined;
|
|
465
478
|
} | null | undefined;
|
|
466
479
|
}[];
|
|
467
|
-
|
|
480
|
+
label: string;
|
|
468
481
|
organization?: {
|
|
469
482
|
id?: string | undefined;
|
|
470
483
|
name?: string | undefined;
|
|
471
|
-
size?: string | undefined;
|
|
472
|
-
email?: string | null | undefined;
|
|
473
484
|
avatar_path?: string | null | undefined;
|
|
474
485
|
mission?: string | null | undefined;
|
|
486
|
+
size?: string | undefined;
|
|
487
|
+
email?: string | null | undefined;
|
|
475
488
|
domain?: string | null | undefined;
|
|
476
489
|
urls?: {
|
|
477
490
|
value: string;
|
|
478
491
|
}[] | null | undefined;
|
|
479
|
-
base_role?: "
|
|
492
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
480
493
|
} | null | undefined;
|
|
494
|
+
description?: string | null | undefined;
|
|
481
495
|
userMembership?: {
|
|
482
|
-
role: "none" | "admin" | "read" | "write";
|
|
483
496
|
user_id: string;
|
|
497
|
+
role: "admin" | "read" | "write" | "none";
|
|
484
498
|
} | null | undefined;
|
|
485
499
|
}>, "many">;
|
|
486
500
|
declare const UpdateTeamSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
@@ -496,19 +510,19 @@ declare const UpdateTeamSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
496
510
|
}>, "strip", z.ZodTypeAny, {
|
|
497
511
|
id: string;
|
|
498
512
|
name?: string | undefined;
|
|
499
|
-
visibility?: "
|
|
513
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
500
514
|
description?: string | null | undefined;
|
|
501
|
-
default_role?: "
|
|
515
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
502
516
|
}, {
|
|
503
517
|
id: string;
|
|
504
518
|
name?: string | undefined;
|
|
505
|
-
visibility?: "
|
|
519
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
506
520
|
description?: string | null | undefined;
|
|
507
|
-
default_role?: "
|
|
521
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
508
522
|
}>;
|
|
509
|
-
|
|
510
|
-
type
|
|
511
|
-
type
|
|
512
|
-
type
|
|
513
|
-
type
|
|
514
|
-
export
|
|
523
|
+
export { TeamSchema, CreateTeamSchema, ReadTeamSchema, ReadTeamsSchema, UpdateTeamSchema, };
|
|
524
|
+
export type Team = z.infer<typeof TeamSchema>;
|
|
525
|
+
export type CreateTeam = z.infer<typeof CreateTeamSchema>;
|
|
526
|
+
export type ReadTeam = z.infer<typeof ReadTeamSchema>;
|
|
527
|
+
export type ReadTeams = z.infer<typeof ReadTeamsSchema>;
|
|
528
|
+
export type UpdateTeam = z.infer<typeof UpdateTeamSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{uuidv7 as i}from"uuidv7";import{z as e}from"zod";import{RoleSchema as r,VisibilitySchema as t}from"./common.esm.js";import{OrganizationsSchema as o}from"./organizations.esm.js";import{ProfileSchema as a}from"./users.esm.js";const n=e.object({id:e.string().uuid(),org_id:e.string().uuid(),name:e.string(),description:e.string().nullable().optional(),default_role:r,visibility:t,created_at:e.string()}),l=n.extend({id:e.string().default((()=>i())),default_role:r.default("write").refine((i=>"read"===i||"write"===i)),visibility:t.default("public").refine((i=>"public"===i||"organization"===i)),created_at:e.string().default((()=>(new Date).toISOString()))}),u=n.extend({userMembership:e.object({user_id:e.string().uuid(),role:r}).optional().nullable(),memberCount:e.number(),members:e.array(e.object({user_id:e.string().uuid(),role:r,user:a.partial().optional().nullable()})),organization:o.partial().optional().nullable()}),s=e.array(u.extend({label:e.string(),value:e.string()})),d=n.partial().omit({org_id:!0,created_at:!0}).extend({id:e.string().uuid()});export{l as CreateTeamSchema,u as ReadTeamSchema,s as ReadTeamsSchema,n as TeamSchema,d as UpdateTeamSchema};
|
|
2
|
+
//# sourceMappingURL=teams.esm.js.map
|