@archastro/sdk 0.1.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.
- package/LICENSE +21 -0
- package/dist/auth.d.ts +15 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +65 -0
- package/dist/auth.js.map +1 -0
- package/dist/channels/api_activity_feed_channel.d.ts +21 -0
- package/dist/channels/api_activity_feed_channel.d.ts.map +1 -0
- package/dist/channels/api_activity_feed_channel.js +33 -0
- package/dist/channels/api_activity_feed_channel.js.map +1 -0
- package/dist/channels/api_chat_channel.d.ts +51 -0
- package/dist/channels/api_chat_channel.d.ts.map +1 -0
- package/dist/channels/api_chat_channel.js +95 -0
- package/dist/channels/api_chat_channel.js.map +1 -0
- package/dist/channels/api_object_channel.d.ts +17 -0
- package/dist/channels/api_object_channel.d.ts.map +1 -0
- package/dist/channels/api_object_channel.js +33 -0
- package/dist/channels/api_object_channel.js.map +1 -0
- package/dist/client.d.ts +68 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +123 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/phx_channel/channel.d.ts +35 -0
- package/dist/phx_channel/channel.d.ts.map +1 -0
- package/dist/phx_channel/channel.js +203 -0
- package/dist/phx_channel/channel.js.map +1 -0
- package/dist/phx_channel/index.d.ts +4 -0
- package/dist/phx_channel/index.d.ts.map +1 -0
- package/dist/phx_channel/index.js +3 -0
- package/dist/phx_channel/index.js.map +1 -0
- package/dist/phx_channel/socket.d.ts +71 -0
- package/dist/phx_channel/socket.d.ts.map +1 -0
- package/dist/phx_channel/socket.js +274 -0
- package/dist/phx_channel/socket.js.map +1 -0
- package/dist/runtime/http-client.d.ts +42 -0
- package/dist/runtime/http-client.d.ts.map +1 -0
- package/dist/runtime/http-client.js +207 -0
- package/dist/runtime/http-client.js.map +1 -0
- package/dist/types/agents.d.ts +2254 -0
- package/dist/types/agents.d.ts.map +1 -0
- package/dist/types/agents.js +238 -0
- package/dist/types/agents.js.map +1 -0
- package/dist/types/ai.d.ts +460 -0
- package/dist/types/ai.d.ts.map +1 -0
- package/dist/types/ai.js +70 -0
- package/dist/types/ai.js.map +1 -0
- package/dist/types/artifacts.d.ts +101 -0
- package/dist/types/artifacts.d.ts.map +1 -0
- package/dist/types/artifacts.js +40 -0
- package/dist/types/artifacts.js.map +1 -0
- package/dist/types/automations.d.ts +110 -0
- package/dist/types/automations.d.ts.map +1 -0
- package/dist/types/automations.js +47 -0
- package/dist/types/automations.js.map +1 -0
- package/dist/types/chat.d.ts +20 -0
- package/dist/types/chat.d.ts.map +1 -0
- package/dist/types/chat.js +12 -0
- package/dist/types/chat.js.map +1 -0
- package/dist/types/common.d.ts +4478 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +1209 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/config.d.ts +191 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +63 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/image.d.ts +29 -0
- package/dist/types/image.d.ts.map +1 -0
- package/dist/types/image.js +15 -0
- package/dist/types/image.js.map +1 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +24 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/invite.d.ts +17 -0
- package/dist/types/invite.d.ts.map +1 -0
- package/dist/types/invite.js +11 -0
- package/dist/types/invite.js.map +1 -0
- package/dist/types/me.d.ts +101 -0
- package/dist/types/me.d.ts.map +1 -0
- package/dist/types/me.js +41 -0
- package/dist/types/me.js.map +1 -0
- package/dist/types/members.d.ts +99 -0
- package/dist/types/members.d.ts.map +1 -0
- package/dist/types/members.js +36 -0
- package/dist/types/members.js.map +1 -0
- package/dist/types/messages.d.ts +109 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/messages.js +49 -0
- package/dist/types/messages.js.map +1 -0
- package/dist/types/orgs.d.ts +193 -0
- package/dist/types/orgs.d.ts.map +1 -0
- package/dist/types/orgs.js +69 -0
- package/dist/types/orgs.js.map +1 -0
- package/dist/types/picture.d.ts +20 -0
- package/dist/types/picture.d.ts.map +1 -0
- package/dist/types/picture.js +14 -0
- package/dist/types/picture.js.map +1 -0
- package/dist/types/profile.d.ts +17 -0
- package/dist/types/profile.d.ts.map +1 -0
- package/dist/types/profile.js +11 -0
- package/dist/types/profile.js.map +1 -0
- package/dist/types/reactions.d.ts +29 -0
- package/dist/types/reactions.d.ts.map +1 -0
- package/dist/types/reactions.js +15 -0
- package/dist/types/reactions.js.map +1 -0
- package/dist/types/runs.d.ts +46 -0
- package/dist/types/runs.d.ts.map +1 -0
- package/dist/types/runs.js +15 -0
- package/dist/types/runs.js.map +1 -0
- package/dist/types/schedules.d.ts +32 -0
- package/dist/types/schedules.d.ts.map +1 -0
- package/dist/types/schedules.js +16 -0
- package/dist/types/schedules.js.map +1 -0
- package/dist/types/system.d.ts +23 -0
- package/dist/types/system.d.ts.map +1 -0
- package/dist/types/system.js +13 -0
- package/dist/types/system.js.map +1 -0
- package/dist/types/teams.d.ts +580 -0
- package/dist/types/teams.d.ts.map +1 -0
- package/dist/types/teams.js +84 -0
- package/dist/types/teams.js.map +1 -0
- package/dist/types/threads.d.ts +802 -0
- package/dist/types/threads.d.ts.map +1 -0
- package/dist/types/threads.js +167 -0
- package/dist/types/threads.js.map +1 -0
- package/dist/types/users.d.ts +89 -0
- package/dist/types/users.d.ts.map +1 -0
- package/dist/types/users.js +37 -0
- package/dist/types/users.js.map +1 -0
- package/dist/v1/resources/agent_computers.d.ts +12 -0
- package/dist/v1/resources/agent_computers.d.ts.map +1 -0
- package/dist/v1/resources/agent_computers.js +22 -0
- package/dist/v1/resources/agent_computers.js.map +1 -0
- package/dist/v1/resources/agent_installations.d.ts +22 -0
- package/dist/v1/resources/agent_installations.d.ts.map +1 -0
- package/dist/v1/resources/agent_installations.js +42 -0
- package/dist/v1/resources/agent_installations.js.map +1 -0
- package/dist/v1/resources/agent_routines.d.ts +36 -0
- package/dist/v1/resources/agent_routines.d.ts.map +1 -0
- package/dist/v1/resources/agent_routines.js +56 -0
- package/dist/v1/resources/agent_routines.js.map +1 -0
- package/dist/v1/resources/agent_sessions.d.ts +19 -0
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -0
- package/dist/v1/resources/agent_sessions.js +31 -0
- package/dist/v1/resources/agent_sessions.js.map +1 -0
- package/dist/v1/resources/agent_skills.d.ts +16 -0
- package/dist/v1/resources/agent_skills.d.ts.map +1 -0
- package/dist/v1/resources/agent_skills.js +31 -0
- package/dist/v1/resources/agent_skills.js.map +1 -0
- package/dist/v1/resources/agent_tools.d.ts +23 -0
- package/dist/v1/resources/agent_tools.d.ts.map +1 -0
- package/dist/v1/resources/agent_tools.js +39 -0
- package/dist/v1/resources/agent_tools.js.map +1 -0
- package/dist/v1/resources/agents.d.ts +100 -0
- package/dist/v1/resources/agents.d.ts.map +1 -0
- package/dist/v1/resources/agents.js +112 -0
- package/dist/v1/resources/agents.js.map +1 -0
- package/dist/v1/resources/ai.d.ts +40 -0
- package/dist/v1/resources/ai.d.ts.map +1 -0
- package/dist/v1/resources/ai.js +57 -0
- package/dist/v1/resources/ai.js.map +1 -0
- package/dist/v1/resources/ai_chat_completions.d.ts +49 -0
- package/dist/v1/resources/ai_chat_completions.d.ts.map +1 -0
- package/dist/v1/resources/ai_chat_completions.js +14 -0
- package/dist/v1/resources/ai_chat_completions.js.map +1 -0
- package/dist/v1/resources/ai_chat_models.d.ts +12 -0
- package/dist/v1/resources/ai_chat_models.d.ts.map +1 -0
- package/dist/v1/resources/ai_chat_models.js +14 -0
- package/dist/v1/resources/ai_chat_models.js.map +1 -0
- package/dist/v1/resources/ai_image_edits.d.ts +20 -0
- package/dist/v1/resources/ai_image_edits.d.ts.map +1 -0
- package/dist/v1/resources/ai_image_edits.js +14 -0
- package/dist/v1/resources/ai_image_edits.js.map +1 -0
- package/dist/v1/resources/ai_image_generations.d.ts +20 -0
- package/dist/v1/resources/ai_image_generations.d.ts.map +1 -0
- package/dist/v1/resources/ai_image_generations.js +14 -0
- package/dist/v1/resources/ai_image_generations.js.map +1 -0
- package/dist/v1/resources/ai_image_models.d.ts +12 -0
- package/dist/v1/resources/ai_image_models.d.ts.map +1 -0
- package/dist/v1/resources/ai_image_models.js +14 -0
- package/dist/v1/resources/ai_image_models.js.map +1 -0
- package/dist/v1/resources/artifacts.d.ts +19 -0
- package/dist/v1/resources/artifacts.d.ts.map +1 -0
- package/dist/v1/resources/artifacts.js +33 -0
- package/dist/v1/resources/artifacts.js.map +1 -0
- package/dist/v1/resources/automation_runs.d.ts +14 -0
- package/dist/v1/resources/automation_runs.d.ts.map +1 -0
- package/dist/v1/resources/automation_runs.js +19 -0
- package/dist/v1/resources/automation_runs.js.map +1 -0
- package/dist/v1/resources/automations.d.ts +8 -0
- package/dist/v1/resources/automations.d.ts.map +1 -0
- package/dist/v1/resources/automations.js +13 -0
- package/dist/v1/resources/automations.js.map +1 -0
- package/dist/v1/resources/completions.d.ts +49 -0
- package/dist/v1/resources/completions.d.ts.map +1 -0
- package/dist/v1/resources/completions.js +14 -0
- package/dist/v1/resources/completions.js.map +1 -0
- package/dist/v1/resources/config.d.ts +137 -0
- package/dist/v1/resources/config.d.ts.map +1 -0
- package/dist/v1/resources/config.js +98 -0
- package/dist/v1/resources/config.js.map +1 -0
- package/dist/v1/resources/custom_objects.d.ts +27 -0
- package/dist/v1/resources/custom_objects.d.ts.map +1 -0
- package/dist/v1/resources/custom_objects.js +19 -0
- package/dist/v1/resources/custom_objects.js.map +1 -0
- package/dist/v1/resources/edits.d.ts +20 -0
- package/dist/v1/resources/edits.d.ts.map +1 -0
- package/dist/v1/resources/edits.js +14 -0
- package/dist/v1/resources/edits.js.map +1 -0
- package/dist/v1/resources/generations.d.ts +20 -0
- package/dist/v1/resources/generations.d.ts.map +1 -0
- package/dist/v1/resources/generations.js +14 -0
- package/dist/v1/resources/generations.js.map +1 -0
- package/dist/v1/resources/index.d.ts +21 -0
- package/dist/v1/resources/index.d.ts.map +1 -0
- package/dist/v1/resources/index.js +24 -0
- package/dist/v1/resources/index.js.map +1 -0
- package/dist/v1/resources/installation_sources.d.ts +7 -0
- package/dist/v1/resources/installation_sources.d.ts.map +1 -0
- package/dist/v1/resources/installation_sources.js +13 -0
- package/dist/v1/resources/installation_sources.js.map +1 -0
- package/dist/v1/resources/invoke.d.ts +29 -0
- package/dist/v1/resources/invoke.d.ts.map +1 -0
- package/dist/v1/resources/invoke.js +23 -0
- package/dist/v1/resources/invoke.js.map +1 -0
- package/dist/v1/resources/models.d.ts +12 -0
- package/dist/v1/resources/models.d.ts.map +1 -0
- package/dist/v1/resources/models.js +14 -0
- package/dist/v1/resources/models.js.map +1 -0
- package/dist/v1/resources/orgs.d.ts +23 -0
- package/dist/v1/resources/orgs.d.ts.map +1 -0
- package/dist/v1/resources/orgs.js +13 -0
- package/dist/v1/resources/orgs.js.map +1 -0
- package/dist/v1/resources/team_memberships.d.ts +15 -0
- package/dist/v1/resources/team_memberships.d.ts.map +1 -0
- package/dist/v1/resources/team_memberships.js +16 -0
- package/dist/v1/resources/team_memberships.js.map +1 -0
- package/dist/v1/resources/teams.d.ts +232 -0
- package/dist/v1/resources/teams.d.ts.map +1 -0
- package/dist/v1/resources/teams.js +118 -0
- package/dist/v1/resources/teams.js.map +1 -0
- package/dist/v1/resources/thread_messages.d.ts +38 -0
- package/dist/v1/resources/thread_messages.d.ts.map +1 -0
- package/dist/v1/resources/thread_messages.js +41 -0
- package/dist/v1/resources/thread_messages.js.map +1 -0
- package/dist/v1/resources/threads.d.ts +119 -0
- package/dist/v1/resources/threads.d.ts.map +1 -0
- package/dist/v1/resources/threads.js +119 -0
- package/dist/v1/resources/threads.js.map +1 -0
- package/dist/v1/resources/users.d.ts +148 -0
- package/dist/v1/resources/users.d.ts.map +1 -0
- package/dist/v1/resources/users.js +74 -0
- package/dist/v1/resources/users.js.map +1 -0
- package/dist/v1.d.ts +45 -0
- package/dist/v1.d.ts.map +1 -0
- package/dist/v1.js +68 -0
- package/dist/v1.js.map +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Schema for a team invite response.
|
|
3
|
+
*/
|
|
4
|
+
export declare const teamInviteSchema: z.ZodObject<{
|
|
5
|
+
code: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
code: string;
|
|
8
|
+
}, {
|
|
9
|
+
code: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type TeamInvite = z.infer<typeof teamInviteSchema>;
|
|
12
|
+
/** Schema for a team member.
|
|
13
|
+
*/
|
|
14
|
+
export declare const teamMemberSchema: z.ZodObject<{
|
|
15
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
16
|
+
email: z.ZodOptional<z.ZodString>;
|
|
17
|
+
full_name: z.ZodOptional<z.ZodString>;
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
role: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
id: string;
|
|
22
|
+
email?: string | undefined;
|
|
23
|
+
alias?: string | undefined;
|
|
24
|
+
full_name?: string | undefined;
|
|
25
|
+
role?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
id: string;
|
|
28
|
+
email?: string | undefined;
|
|
29
|
+
alias?: string | undefined;
|
|
30
|
+
full_name?: string | undefined;
|
|
31
|
+
role?: string | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type TeamMember = z.infer<typeof teamMemberSchema>;
|
|
34
|
+
/** API schema for a team. */
|
|
35
|
+
export declare const teamSchema: z.ZodObject<{
|
|
36
|
+
acl: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
add: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
39
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
40
|
+
principal_type: z.ZodString;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
actions: string[];
|
|
43
|
+
principal_type: string;
|
|
44
|
+
principal?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
actions: string[];
|
|
47
|
+
principal_type: string;
|
|
48
|
+
principal?: string | undefined;
|
|
49
|
+
}>, "many">>;
|
|
50
|
+
grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
52
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
53
|
+
principal_type: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
actions: string[];
|
|
56
|
+
principal_type: string;
|
|
57
|
+
principal?: string | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
actions: string[];
|
|
60
|
+
principal_type: string;
|
|
61
|
+
principal?: string | undefined;
|
|
62
|
+
}>, "many">>;
|
|
63
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
64
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
65
|
+
principal_type: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
principal_type: string;
|
|
68
|
+
principal?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
principal_type: string;
|
|
71
|
+
principal?: string | undefined;
|
|
72
|
+
}>, "many">>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
add?: {
|
|
75
|
+
actions: string[];
|
|
76
|
+
principal_type: string;
|
|
77
|
+
principal?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
grants?: {
|
|
80
|
+
actions: string[];
|
|
81
|
+
principal_type: string;
|
|
82
|
+
principal?: string | undefined;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
remove?: {
|
|
85
|
+
principal_type: string;
|
|
86
|
+
principal?: string | undefined;
|
|
87
|
+
}[] | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
add?: {
|
|
90
|
+
actions: string[];
|
|
91
|
+
principal_type: string;
|
|
92
|
+
principal?: string | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
grants?: {
|
|
95
|
+
actions: string[];
|
|
96
|
+
principal_type: string;
|
|
97
|
+
principal?: string | undefined;
|
|
98
|
+
}[] | undefined;
|
|
99
|
+
remove?: {
|
|
100
|
+
principal_type: string;
|
|
101
|
+
principal?: string | undefined;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
}>>;
|
|
104
|
+
app: z.ZodOptional<z.ZodString>;
|
|
105
|
+
badges: z.ZodOptional<z.ZodUnknown>;
|
|
106
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
107
|
+
description: z.ZodOptional<z.ZodString>;
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
membership_status: z.ZodOptional<z.ZodString>;
|
|
110
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
111
|
+
name: z.ZodOptional<z.ZodString>;
|
|
112
|
+
org: z.ZodOptional<z.ZodString>;
|
|
113
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
114
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
115
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
id: string;
|
|
118
|
+
created_at?: string | undefined;
|
|
119
|
+
metadata?: unknown;
|
|
120
|
+
org?: string | undefined;
|
|
121
|
+
sandbox?: string | undefined;
|
|
122
|
+
name?: string | undefined;
|
|
123
|
+
updated_at?: string | undefined;
|
|
124
|
+
slug?: string | undefined;
|
|
125
|
+
description?: string | undefined;
|
|
126
|
+
acl?: {
|
|
127
|
+
add?: {
|
|
128
|
+
actions: string[];
|
|
129
|
+
principal_type: string;
|
|
130
|
+
principal?: string | undefined;
|
|
131
|
+
}[] | undefined;
|
|
132
|
+
grants?: {
|
|
133
|
+
actions: string[];
|
|
134
|
+
principal_type: string;
|
|
135
|
+
principal?: string | undefined;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
remove?: {
|
|
138
|
+
principal_type: string;
|
|
139
|
+
principal?: string | undefined;
|
|
140
|
+
}[] | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
app?: string | undefined;
|
|
143
|
+
badges?: unknown;
|
|
144
|
+
membership_status?: string | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
id: string;
|
|
147
|
+
created_at?: string | undefined;
|
|
148
|
+
metadata?: unknown;
|
|
149
|
+
org?: string | undefined;
|
|
150
|
+
sandbox?: string | undefined;
|
|
151
|
+
name?: string | undefined;
|
|
152
|
+
updated_at?: string | undefined;
|
|
153
|
+
slug?: string | undefined;
|
|
154
|
+
description?: string | undefined;
|
|
155
|
+
acl?: {
|
|
156
|
+
add?: {
|
|
157
|
+
actions: string[];
|
|
158
|
+
principal_type: string;
|
|
159
|
+
principal?: string | undefined;
|
|
160
|
+
}[] | undefined;
|
|
161
|
+
grants?: {
|
|
162
|
+
actions: string[];
|
|
163
|
+
principal_type: string;
|
|
164
|
+
principal?: string | undefined;
|
|
165
|
+
}[] | undefined;
|
|
166
|
+
remove?: {
|
|
167
|
+
principal_type: string;
|
|
168
|
+
principal?: string | undefined;
|
|
169
|
+
}[] | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
app?: string | undefined;
|
|
172
|
+
badges?: unknown;
|
|
173
|
+
membership_status?: string | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
export type Team = z.infer<typeof teamSchema>;
|
|
176
|
+
/** Base64-encoded profile picture */
|
|
177
|
+
export declare const teamUpdateParamsProfilePictureSchema: z.ZodObject<{
|
|
178
|
+
data: z.ZodOptional<z.ZodString>;
|
|
179
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
180
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
mime_type?: string | undefined;
|
|
183
|
+
data?: string | undefined;
|
|
184
|
+
filename?: string | undefined;
|
|
185
|
+
}, {
|
|
186
|
+
mime_type?: string | undefined;
|
|
187
|
+
data?: string | undefined;
|
|
188
|
+
filename?: string | undefined;
|
|
189
|
+
}>;
|
|
190
|
+
export type TeamUpdateParamsProfilePicture = z.infer<typeof teamUpdateParamsProfilePictureSchema>;
|
|
191
|
+
/** API schema for a team membership. */
|
|
192
|
+
export declare const teamMembershipSchema: z.ZodObject<{
|
|
193
|
+
agent: z.ZodOptional<z.ZodUnknown>;
|
|
194
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
joined_at: z.ZodOptional<z.ZodString>;
|
|
197
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
198
|
+
name: z.ZodOptional<z.ZodString>;
|
|
199
|
+
profile_picture: z.ZodOptional<z.ZodUnknown>;
|
|
200
|
+
role: z.ZodOptional<z.ZodString>;
|
|
201
|
+
team: z.ZodOptional<z.ZodUnknown>;
|
|
202
|
+
type: z.ZodOptional<z.ZodString>;
|
|
203
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
204
|
+
user: z.ZodOptional<z.ZodUnknown>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
id: string;
|
|
207
|
+
type?: string | undefined;
|
|
208
|
+
agent?: unknown;
|
|
209
|
+
created_at?: string | undefined;
|
|
210
|
+
metadata?: unknown;
|
|
211
|
+
team?: unknown;
|
|
212
|
+
user?: unknown;
|
|
213
|
+
name?: string | undefined;
|
|
214
|
+
updated_at?: string | undefined;
|
|
215
|
+
profile_picture?: unknown;
|
|
216
|
+
role?: string | undefined;
|
|
217
|
+
joined_at?: string | undefined;
|
|
218
|
+
}, {
|
|
219
|
+
id: string;
|
|
220
|
+
type?: string | undefined;
|
|
221
|
+
agent?: unknown;
|
|
222
|
+
created_at?: string | undefined;
|
|
223
|
+
metadata?: unknown;
|
|
224
|
+
team?: unknown;
|
|
225
|
+
user?: unknown;
|
|
226
|
+
name?: string | undefined;
|
|
227
|
+
updated_at?: string | undefined;
|
|
228
|
+
profile_picture?: unknown;
|
|
229
|
+
role?: string | undefined;
|
|
230
|
+
joined_at?: string | undefined;
|
|
231
|
+
}>;
|
|
232
|
+
export type TeamMembership = z.infer<typeof teamMembershipSchema>;
|
|
233
|
+
/** Paginated list response for team memberships. */
|
|
234
|
+
export declare const teamMembershipListResponseSchema: z.ZodObject<{
|
|
235
|
+
data: z.ZodArray<z.ZodObject<{
|
|
236
|
+
agent: z.ZodOptional<z.ZodUnknown>;
|
|
237
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
joined_at: z.ZodOptional<z.ZodString>;
|
|
240
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
241
|
+
name: z.ZodOptional<z.ZodString>;
|
|
242
|
+
profile_picture: z.ZodOptional<z.ZodUnknown>;
|
|
243
|
+
role: z.ZodOptional<z.ZodString>;
|
|
244
|
+
team: z.ZodOptional<z.ZodUnknown>;
|
|
245
|
+
type: z.ZodOptional<z.ZodString>;
|
|
246
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
247
|
+
user: z.ZodOptional<z.ZodUnknown>;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
id: string;
|
|
250
|
+
type?: string | undefined;
|
|
251
|
+
agent?: unknown;
|
|
252
|
+
created_at?: string | undefined;
|
|
253
|
+
metadata?: unknown;
|
|
254
|
+
team?: unknown;
|
|
255
|
+
user?: unknown;
|
|
256
|
+
name?: string | undefined;
|
|
257
|
+
updated_at?: string | undefined;
|
|
258
|
+
profile_picture?: unknown;
|
|
259
|
+
role?: string | undefined;
|
|
260
|
+
joined_at?: string | undefined;
|
|
261
|
+
}, {
|
|
262
|
+
id: string;
|
|
263
|
+
type?: string | undefined;
|
|
264
|
+
agent?: unknown;
|
|
265
|
+
created_at?: string | undefined;
|
|
266
|
+
metadata?: unknown;
|
|
267
|
+
team?: unknown;
|
|
268
|
+
user?: unknown;
|
|
269
|
+
name?: string | undefined;
|
|
270
|
+
updated_at?: string | undefined;
|
|
271
|
+
profile_picture?: unknown;
|
|
272
|
+
role?: string | undefined;
|
|
273
|
+
joined_at?: string | undefined;
|
|
274
|
+
}>, "many">;
|
|
275
|
+
has_next: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
has_prev: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
total_entries: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
total_pages: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
data: {
|
|
283
|
+
id: string;
|
|
284
|
+
type?: string | undefined;
|
|
285
|
+
agent?: unknown;
|
|
286
|
+
created_at?: string | undefined;
|
|
287
|
+
metadata?: unknown;
|
|
288
|
+
team?: unknown;
|
|
289
|
+
user?: unknown;
|
|
290
|
+
name?: string | undefined;
|
|
291
|
+
updated_at?: string | undefined;
|
|
292
|
+
profile_picture?: unknown;
|
|
293
|
+
role?: string | undefined;
|
|
294
|
+
joined_at?: string | undefined;
|
|
295
|
+
}[];
|
|
296
|
+
has_next?: boolean | undefined;
|
|
297
|
+
has_prev?: boolean | undefined;
|
|
298
|
+
page?: number | undefined;
|
|
299
|
+
page_size?: number | undefined;
|
|
300
|
+
total_entries?: number | undefined;
|
|
301
|
+
total_pages?: number | undefined;
|
|
302
|
+
}, {
|
|
303
|
+
data: {
|
|
304
|
+
id: string;
|
|
305
|
+
type?: string | undefined;
|
|
306
|
+
agent?: unknown;
|
|
307
|
+
created_at?: string | undefined;
|
|
308
|
+
metadata?: unknown;
|
|
309
|
+
team?: unknown;
|
|
310
|
+
user?: unknown;
|
|
311
|
+
name?: string | undefined;
|
|
312
|
+
updated_at?: string | undefined;
|
|
313
|
+
profile_picture?: unknown;
|
|
314
|
+
role?: string | undefined;
|
|
315
|
+
joined_at?: string | undefined;
|
|
316
|
+
}[];
|
|
317
|
+
has_next?: boolean | undefined;
|
|
318
|
+
has_prev?: boolean | undefined;
|
|
319
|
+
page?: number | undefined;
|
|
320
|
+
page_size?: number | undefined;
|
|
321
|
+
total_entries?: number | undefined;
|
|
322
|
+
total_pages?: number | undefined;
|
|
323
|
+
}>;
|
|
324
|
+
export type TeamMembershipListResponse = z.infer<typeof teamMembershipListResponseSchema>;
|
|
325
|
+
/** Schema for team creation parameters.
|
|
326
|
+
*/
|
|
327
|
+
export declare const teamCreateParamsSchema: z.ZodObject<{
|
|
328
|
+
acl: z.ZodOptional<z.ZodObject<{
|
|
329
|
+
add: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
330
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
331
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
332
|
+
principal_type: z.ZodString;
|
|
333
|
+
}, "strip", z.ZodTypeAny, {
|
|
334
|
+
actions: string[];
|
|
335
|
+
principal_type: string;
|
|
336
|
+
principal?: string | undefined;
|
|
337
|
+
}, {
|
|
338
|
+
actions: string[];
|
|
339
|
+
principal_type: string;
|
|
340
|
+
principal?: string | undefined;
|
|
341
|
+
}>, "many">>;
|
|
342
|
+
grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
343
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
344
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
345
|
+
principal_type: z.ZodString;
|
|
346
|
+
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
actions: string[];
|
|
348
|
+
principal_type: string;
|
|
349
|
+
principal?: string | undefined;
|
|
350
|
+
}, {
|
|
351
|
+
actions: string[];
|
|
352
|
+
principal_type: string;
|
|
353
|
+
principal?: string | undefined;
|
|
354
|
+
}>, "many">>;
|
|
355
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
356
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
357
|
+
principal_type: z.ZodString;
|
|
358
|
+
}, "strip", z.ZodTypeAny, {
|
|
359
|
+
principal_type: string;
|
|
360
|
+
principal?: string | undefined;
|
|
361
|
+
}, {
|
|
362
|
+
principal_type: string;
|
|
363
|
+
principal?: string | undefined;
|
|
364
|
+
}>, "many">>;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
add?: {
|
|
367
|
+
actions: string[];
|
|
368
|
+
principal_type: string;
|
|
369
|
+
principal?: string | undefined;
|
|
370
|
+
}[] | undefined;
|
|
371
|
+
grants?: {
|
|
372
|
+
actions: string[];
|
|
373
|
+
principal_type: string;
|
|
374
|
+
principal?: string | undefined;
|
|
375
|
+
}[] | undefined;
|
|
376
|
+
remove?: {
|
|
377
|
+
principal_type: string;
|
|
378
|
+
principal?: string | undefined;
|
|
379
|
+
}[] | undefined;
|
|
380
|
+
}, {
|
|
381
|
+
add?: {
|
|
382
|
+
actions: string[];
|
|
383
|
+
principal_type: string;
|
|
384
|
+
principal?: string | undefined;
|
|
385
|
+
}[] | undefined;
|
|
386
|
+
grants?: {
|
|
387
|
+
actions: string[];
|
|
388
|
+
principal_type: string;
|
|
389
|
+
principal?: string | undefined;
|
|
390
|
+
}[] | undefined;
|
|
391
|
+
remove?: {
|
|
392
|
+
principal_type: string;
|
|
393
|
+
principal?: string | undefined;
|
|
394
|
+
}[] | undefined;
|
|
395
|
+
}>>;
|
|
396
|
+
description: z.ZodOptional<z.ZodString>;
|
|
397
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
398
|
+
name: z.ZodString;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
name: string;
|
|
401
|
+
metadata?: unknown;
|
|
402
|
+
description?: string | undefined;
|
|
403
|
+
acl?: {
|
|
404
|
+
add?: {
|
|
405
|
+
actions: string[];
|
|
406
|
+
principal_type: string;
|
|
407
|
+
principal?: string | undefined;
|
|
408
|
+
}[] | undefined;
|
|
409
|
+
grants?: {
|
|
410
|
+
actions: string[];
|
|
411
|
+
principal_type: string;
|
|
412
|
+
principal?: string | undefined;
|
|
413
|
+
}[] | undefined;
|
|
414
|
+
remove?: {
|
|
415
|
+
principal_type: string;
|
|
416
|
+
principal?: string | undefined;
|
|
417
|
+
}[] | undefined;
|
|
418
|
+
} | undefined;
|
|
419
|
+
}, {
|
|
420
|
+
name: string;
|
|
421
|
+
metadata?: unknown;
|
|
422
|
+
description?: string | undefined;
|
|
423
|
+
acl?: {
|
|
424
|
+
add?: {
|
|
425
|
+
actions: string[];
|
|
426
|
+
principal_type: string;
|
|
427
|
+
principal?: string | undefined;
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
grants?: {
|
|
430
|
+
actions: string[];
|
|
431
|
+
principal_type: string;
|
|
432
|
+
principal?: string | undefined;
|
|
433
|
+
}[] | undefined;
|
|
434
|
+
remove?: {
|
|
435
|
+
principal_type: string;
|
|
436
|
+
principal?: string | undefined;
|
|
437
|
+
}[] | undefined;
|
|
438
|
+
} | undefined;
|
|
439
|
+
}>;
|
|
440
|
+
export type TeamCreateParams = z.infer<typeof teamCreateParamsSchema>;
|
|
441
|
+
/** Schema for team update parameters.
|
|
442
|
+
*/
|
|
443
|
+
export declare const teamUpdateParamsSchema: z.ZodObject<{
|
|
444
|
+
acl: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
add: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
446
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
447
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
448
|
+
principal_type: z.ZodString;
|
|
449
|
+
}, "strip", z.ZodTypeAny, {
|
|
450
|
+
actions: string[];
|
|
451
|
+
principal_type: string;
|
|
452
|
+
principal?: string | undefined;
|
|
453
|
+
}, {
|
|
454
|
+
actions: string[];
|
|
455
|
+
principal_type: string;
|
|
456
|
+
principal?: string | undefined;
|
|
457
|
+
}>, "many">>;
|
|
458
|
+
grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
459
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
460
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
461
|
+
principal_type: z.ZodString;
|
|
462
|
+
}, "strip", z.ZodTypeAny, {
|
|
463
|
+
actions: string[];
|
|
464
|
+
principal_type: string;
|
|
465
|
+
principal?: string | undefined;
|
|
466
|
+
}, {
|
|
467
|
+
actions: string[];
|
|
468
|
+
principal_type: string;
|
|
469
|
+
principal?: string | undefined;
|
|
470
|
+
}>, "many">>;
|
|
471
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
472
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
473
|
+
principal_type: z.ZodString;
|
|
474
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
principal_type: string;
|
|
476
|
+
principal?: string | undefined;
|
|
477
|
+
}, {
|
|
478
|
+
principal_type: string;
|
|
479
|
+
principal?: string | undefined;
|
|
480
|
+
}>, "many">>;
|
|
481
|
+
}, "strip", z.ZodTypeAny, {
|
|
482
|
+
add?: {
|
|
483
|
+
actions: string[];
|
|
484
|
+
principal_type: string;
|
|
485
|
+
principal?: string | undefined;
|
|
486
|
+
}[] | undefined;
|
|
487
|
+
grants?: {
|
|
488
|
+
actions: string[];
|
|
489
|
+
principal_type: string;
|
|
490
|
+
principal?: string | undefined;
|
|
491
|
+
}[] | undefined;
|
|
492
|
+
remove?: {
|
|
493
|
+
principal_type: string;
|
|
494
|
+
principal?: string | undefined;
|
|
495
|
+
}[] | undefined;
|
|
496
|
+
}, {
|
|
497
|
+
add?: {
|
|
498
|
+
actions: string[];
|
|
499
|
+
principal_type: string;
|
|
500
|
+
principal?: string | undefined;
|
|
501
|
+
}[] | undefined;
|
|
502
|
+
grants?: {
|
|
503
|
+
actions: string[];
|
|
504
|
+
principal_type: string;
|
|
505
|
+
principal?: string | undefined;
|
|
506
|
+
}[] | undefined;
|
|
507
|
+
remove?: {
|
|
508
|
+
principal_type: string;
|
|
509
|
+
principal?: string | undefined;
|
|
510
|
+
}[] | undefined;
|
|
511
|
+
}>>;
|
|
512
|
+
description: z.ZodOptional<z.ZodString>;
|
|
513
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
514
|
+
name: z.ZodOptional<z.ZodString>;
|
|
515
|
+
profile_picture: z.ZodOptional<z.ZodObject<{
|
|
516
|
+
data: z.ZodOptional<z.ZodString>;
|
|
517
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
518
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
mime_type?: string | undefined;
|
|
521
|
+
data?: string | undefined;
|
|
522
|
+
filename?: string | undefined;
|
|
523
|
+
}, {
|
|
524
|
+
mime_type?: string | undefined;
|
|
525
|
+
data?: string | undefined;
|
|
526
|
+
filename?: string | undefined;
|
|
527
|
+
}>>;
|
|
528
|
+
}, "strip", z.ZodTypeAny, {
|
|
529
|
+
metadata?: unknown;
|
|
530
|
+
name?: string | undefined;
|
|
531
|
+
profile_picture?: {
|
|
532
|
+
mime_type?: string | undefined;
|
|
533
|
+
data?: string | undefined;
|
|
534
|
+
filename?: string | undefined;
|
|
535
|
+
} | undefined;
|
|
536
|
+
description?: string | undefined;
|
|
537
|
+
acl?: {
|
|
538
|
+
add?: {
|
|
539
|
+
actions: string[];
|
|
540
|
+
principal_type: string;
|
|
541
|
+
principal?: string | undefined;
|
|
542
|
+
}[] | undefined;
|
|
543
|
+
grants?: {
|
|
544
|
+
actions: string[];
|
|
545
|
+
principal_type: string;
|
|
546
|
+
principal?: string | undefined;
|
|
547
|
+
}[] | undefined;
|
|
548
|
+
remove?: {
|
|
549
|
+
principal_type: string;
|
|
550
|
+
principal?: string | undefined;
|
|
551
|
+
}[] | undefined;
|
|
552
|
+
} | undefined;
|
|
553
|
+
}, {
|
|
554
|
+
metadata?: unknown;
|
|
555
|
+
name?: string | undefined;
|
|
556
|
+
profile_picture?: {
|
|
557
|
+
mime_type?: string | undefined;
|
|
558
|
+
data?: string | undefined;
|
|
559
|
+
filename?: string | undefined;
|
|
560
|
+
} | undefined;
|
|
561
|
+
description?: string | undefined;
|
|
562
|
+
acl?: {
|
|
563
|
+
add?: {
|
|
564
|
+
actions: string[];
|
|
565
|
+
principal_type: string;
|
|
566
|
+
principal?: string | undefined;
|
|
567
|
+
}[] | undefined;
|
|
568
|
+
grants?: {
|
|
569
|
+
actions: string[];
|
|
570
|
+
principal_type: string;
|
|
571
|
+
principal?: string | undefined;
|
|
572
|
+
}[] | undefined;
|
|
573
|
+
remove?: {
|
|
574
|
+
principal_type: string;
|
|
575
|
+
principal?: string | undefined;
|
|
576
|
+
}[] | undefined;
|
|
577
|
+
} | undefined;
|
|
578
|
+
}>;
|
|
579
|
+
export type TeamUpdateParams = z.infer<typeof teamUpdateParamsSchema>;
|
|
580
|
+
//# sourceMappingURL=teams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../src/types/teams.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;GACG;AACH,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;GACG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,6BAA6B;AAC7B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcrB,CAAC;AACH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|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 01f78dac4f40
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { aclSchema } from "./common.js";
|
|
6
|
+
/** Schema for a team invite response.
|
|
7
|
+
*/
|
|
8
|
+
export const teamInviteSchema = z.object({
|
|
9
|
+
code: z.string(), // 6-character invite code
|
|
10
|
+
});
|
|
11
|
+
/** Schema for a team member.
|
|
12
|
+
*/
|
|
13
|
+
export const teamMemberSchema = z.object({
|
|
14
|
+
alias: z.string().optional(), // User alias
|
|
15
|
+
email: z.string().optional(), // User email
|
|
16
|
+
full_name: z.string().optional(), // User full name
|
|
17
|
+
id: z.string(), // Public user ID
|
|
18
|
+
role: z.string().optional(), // Role in the team (owner, admin, member)
|
|
19
|
+
});
|
|
20
|
+
/** API schema for a team. */
|
|
21
|
+
export const teamSchema = z.object({
|
|
22
|
+
acl: aclSchema.optional(), // Access control list. Contains grants array with principal_type, principal, and actions. Null when no ACL restrictions are applied.
|
|
23
|
+
app: z.string().optional(), // Application
|
|
24
|
+
badges: z.unknown().optional(), // Badge counts by category
|
|
25
|
+
created_at: z.string().optional(), // Creation timestamp
|
|
26
|
+
description: z.string().optional(), // Team description
|
|
27
|
+
id: z.string(), // Team ID
|
|
28
|
+
membership_status: z.string().optional(), // Viewer's membership role (owner, admin, member) or null if not a member
|
|
29
|
+
metadata: z.unknown().optional(), // Team metadata
|
|
30
|
+
name: z.string().optional(), // Team name
|
|
31
|
+
org: z.string().optional(), // Organization
|
|
32
|
+
sandbox: z.string().optional(), // Sandbox
|
|
33
|
+
slug: z.string().optional(), // URL slug
|
|
34
|
+
updated_at: z.string().optional(), // Last update timestamp
|
|
35
|
+
});
|
|
36
|
+
/** Base64-encoded profile picture */
|
|
37
|
+
export const teamUpdateParamsProfilePictureSchema = z.object({
|
|
38
|
+
data: z.string().optional(), // Base64 encoded image data
|
|
39
|
+
filename: z.string().optional(), // Original filename
|
|
40
|
+
mime_type: z.string().optional(), // MIME type of the image
|
|
41
|
+
});
|
|
42
|
+
/** API schema for a team membership. */
|
|
43
|
+
export const teamMembershipSchema = z.object({
|
|
44
|
+
agent: z.unknown().optional(), // Agent object (when loaded)
|
|
45
|
+
created_at: z.string().optional(), // Creation timestamp
|
|
46
|
+
id: z.string(), // Membership ID
|
|
47
|
+
joined_at: z.string().optional(), // Join timestamp
|
|
48
|
+
metadata: z.unknown().optional(), // Membership metadata
|
|
49
|
+
name: z.string().optional(), // Member name
|
|
50
|
+
profile_picture: z.unknown().optional(), // Profile picture
|
|
51
|
+
role: z.string().optional(), // Role in team
|
|
52
|
+
team: z.unknown().optional(), // Team object (when loaded)
|
|
53
|
+
type: z.string().optional(), // Member type (user, agent, unknown)
|
|
54
|
+
updated_at: z.string().optional(), // Last update timestamp
|
|
55
|
+
user: z.unknown().optional(), // User object (when loaded)
|
|
56
|
+
});
|
|
57
|
+
/** Paginated list response for team memberships. */
|
|
58
|
+
export const teamMembershipListResponseSchema = z.object({
|
|
59
|
+
data: z.array(teamMembershipSchema), // List of team memberships
|
|
60
|
+
has_next: z.boolean().optional(), // Whether a next page exists
|
|
61
|
+
has_prev: z.boolean().optional(), // Whether a previous page exists
|
|
62
|
+
page: z.number().int().optional(), // Current page number
|
|
63
|
+
page_size: z.number().int().optional(), // Results per page
|
|
64
|
+
total_entries: z.number().int().optional(), // Total number of entries
|
|
65
|
+
total_pages: z.number().int().optional(), // Total number of pages
|
|
66
|
+
});
|
|
67
|
+
/** Schema for team creation parameters.
|
|
68
|
+
*/
|
|
69
|
+
export const teamCreateParamsSchema = z.object({
|
|
70
|
+
acl: aclSchema.optional(), // Access control list
|
|
71
|
+
description: z.string().optional(), // Team description
|
|
72
|
+
metadata: z.unknown().optional(), // Arbitrary key-value metadata
|
|
73
|
+
name: z.string(), // Team name
|
|
74
|
+
});
|
|
75
|
+
/** Schema for team update parameters.
|
|
76
|
+
*/
|
|
77
|
+
export const teamUpdateParamsSchema = z.object({
|
|
78
|
+
acl: aclSchema.optional(), // Access control list
|
|
79
|
+
description: z.string().optional(), // Team description
|
|
80
|
+
metadata: z.unknown().optional(), // Arbitrary key-value metadata
|
|
81
|
+
name: z.string().optional(), // Team name
|
|
82
|
+
profile_picture: teamUpdateParamsProfilePictureSchema.optional(), // Base64-encoded profile picture
|
|
83
|
+
});
|
|
84
|
+
//# sourceMappingURL=teams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.js","sourceRoot":"","sources":["../../src/types/teams.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;GACG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,0BAA0B;CAC7C,CAAC,CAAC;AAGH;GACG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,aAAa;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,aAAa;IAC3C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,iBAAiB;IACnD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,iBAAiB;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,0CAA0C;CACxE,CAAC,CAAC;AAGH,6BAA6B;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,GAAG,EAAE,SAAS,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