@relaycast/types 0.2.5 → 0.3.1
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/agent.d.ts +77 -139
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +4 -4
- package/dist/agent.js.map +1 -1
- package/dist/api.d.ts +13 -177
- package/dist/api.d.ts.map +1 -1
- package/dist/billing.d.ts +32 -82
- package/dist/billing.d.ts.map +1 -1
- package/dist/channel.d.ts +14 -64
- package/dist/channel.d.ts.map +1 -1
- package/dist/command.d.ts +29 -153
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +2 -2
- package/dist/command.js.map +1 -1
- package/dist/dm.d.ts +19 -62
- package/dist/dm.d.ts.map +1 -1
- package/dist/events.d.ts +169 -1217
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +21 -1
- package/dist/events.js.map +1 -1
- package/dist/file.d.ts +15 -69
- package/dist/file.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/message.d.ts +85 -746
- package/dist/message.d.ts.map +1 -1
- package/dist/reaction.d.ts +4 -28
- package/dist/reaction.d.ts.map +1 -1
- package/dist/receipt.d.ts +3 -27
- package/dist/receipt.d.ts.map +1 -1
- package/dist/subscription.d.ts +87 -95
- package/dist/subscription.d.ts.map +1 -1
- package/dist/webhook.d.ts +6 -64
- package/dist/webhook.d.ts.map +1 -1
- package/dist/webhook.js +1 -1
- package/dist/webhook.js.map +1 -1
- package/dist/workspace.d.ts +41 -57
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +26 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +2 -2
- package/dist/dashboard.d.ts +0 -174
- package/dist/dashboard.d.ts.map +0 -1
- package/dist/dashboard.js +0 -33
- package/dist/dashboard.js.map +0 -1
package/dist/agent.d.ts
CHANGED
|
@@ -1,202 +1,140 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const AgentTypeSchema: z.ZodEnum<
|
|
2
|
+
export declare const AgentTypeSchema: z.ZodEnum<{
|
|
3
|
+
agent: "agent";
|
|
4
|
+
human: "human";
|
|
5
|
+
}>;
|
|
3
6
|
export type AgentType = z.infer<typeof AgentTypeSchema>;
|
|
4
|
-
export declare const AgentStatusSchema: z.ZodEnum<
|
|
7
|
+
export declare const AgentStatusSchema: z.ZodEnum<{
|
|
8
|
+
online: "online";
|
|
9
|
+
offline: "offline";
|
|
10
|
+
away: "away";
|
|
11
|
+
}>;
|
|
5
12
|
export type AgentStatus = z.infer<typeof AgentStatusSchema>;
|
|
6
13
|
export declare const AgentSchema: z.ZodObject<{
|
|
7
14
|
id: z.ZodString;
|
|
8
15
|
workspace_id: z.ZodString;
|
|
9
16
|
name: z.ZodString;
|
|
10
|
-
type: z.ZodEnum<
|
|
17
|
+
type: z.ZodEnum<{
|
|
18
|
+
agent: "agent";
|
|
19
|
+
human: "human";
|
|
20
|
+
}>;
|
|
11
21
|
token_hash: z.ZodString;
|
|
12
|
-
status: z.ZodEnum<
|
|
22
|
+
status: z.ZodEnum<{
|
|
23
|
+
online: "online";
|
|
24
|
+
offline: "offline";
|
|
25
|
+
away: "away";
|
|
26
|
+
}>;
|
|
13
27
|
persona: z.ZodNullable<z.ZodString>;
|
|
14
28
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
29
|
created_at: z.ZodString;
|
|
16
30
|
last_seen: z.ZodString;
|
|
17
|
-
},
|
|
18
|
-
type: "agent" | "human";
|
|
19
|
-
status: "online" | "offline" | "away";
|
|
20
|
-
id: string;
|
|
21
|
-
workspace_id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
token_hash: string;
|
|
24
|
-
persona: string | null;
|
|
25
|
-
metadata: Record<string, unknown>;
|
|
26
|
-
created_at: string;
|
|
27
|
-
last_seen: string;
|
|
28
|
-
}, {
|
|
29
|
-
type: "agent" | "human";
|
|
30
|
-
status: "online" | "offline" | "away";
|
|
31
|
-
id: string;
|
|
32
|
-
workspace_id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
token_hash: string;
|
|
35
|
-
persona: string | null;
|
|
36
|
-
metadata: Record<string, unknown>;
|
|
37
|
-
created_at: string;
|
|
38
|
-
last_seen: string;
|
|
39
|
-
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
40
32
|
export type Agent = z.infer<typeof AgentSchema>;
|
|
41
33
|
export declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
42
34
|
name: z.ZodString;
|
|
43
|
-
type: z.ZodOptional<z.ZodEnum<
|
|
35
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
agent: "agent";
|
|
37
|
+
human: "human";
|
|
38
|
+
}>>;
|
|
44
39
|
persona: z.ZodOptional<z.ZodString>;
|
|
45
40
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
-
},
|
|
47
|
-
name: string;
|
|
48
|
-
type?: "agent" | "human" | undefined;
|
|
49
|
-
persona?: string | undefined;
|
|
50
|
-
metadata?: Record<string, unknown> | undefined;
|
|
51
|
-
}, {
|
|
52
|
-
name: string;
|
|
53
|
-
type?: "agent" | "human" | undefined;
|
|
54
|
-
persona?: string | undefined;
|
|
55
|
-
metadata?: Record<string, unknown> | undefined;
|
|
56
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
57
42
|
export type CreateAgentRequest = z.infer<typeof CreateAgentRequestSchema>;
|
|
58
43
|
export declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
59
44
|
id: z.ZodString;
|
|
60
45
|
name: z.ZodString;
|
|
61
46
|
token: z.ZodString;
|
|
62
|
-
status: z.ZodEnum<
|
|
47
|
+
status: z.ZodEnum<{
|
|
48
|
+
online: "online";
|
|
49
|
+
offline: "offline";
|
|
50
|
+
away: "away";
|
|
51
|
+
}>;
|
|
63
52
|
created_at: z.ZodString;
|
|
64
|
-
},
|
|
65
|
-
status: "online" | "offline" | "away";
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
created_at: string;
|
|
69
|
-
token: string;
|
|
70
|
-
}, {
|
|
71
|
-
status: "online" | "offline" | "away";
|
|
72
|
-
id: string;
|
|
73
|
-
name: string;
|
|
74
|
-
created_at: string;
|
|
75
|
-
token: string;
|
|
76
|
-
}>;
|
|
53
|
+
}, z.core.$strip>;
|
|
77
54
|
export type CreateAgentResponse = z.infer<typeof CreateAgentResponseSchema>;
|
|
78
55
|
export declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
79
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
56
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
online: "online";
|
|
58
|
+
offline: "offline";
|
|
59
|
+
away: "away";
|
|
60
|
+
}>>;
|
|
80
61
|
persona: z.ZodOptional<z.ZodString>;
|
|
81
62
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
82
|
-
},
|
|
83
|
-
status?: "online" | "offline" | "away" | undefined;
|
|
84
|
-
persona?: string | undefined;
|
|
85
|
-
metadata?: Record<string, unknown> | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
status?: "online" | "offline" | "away" | undefined;
|
|
88
|
-
persona?: string | undefined;
|
|
89
|
-
metadata?: Record<string, unknown> | undefined;
|
|
90
|
-
}>;
|
|
63
|
+
}, z.core.$strip>;
|
|
91
64
|
export type UpdateAgentRequest = z.infer<typeof UpdateAgentRequestSchema>;
|
|
92
65
|
export declare const AgentListQuerySchema: z.ZodObject<{
|
|
93
|
-
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}>;
|
|
66
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
67
|
+
online: "online";
|
|
68
|
+
offline: "offline";
|
|
69
|
+
away: "away";
|
|
70
|
+
}>, z.ZodLiteral<"all">]>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
99
72
|
export type AgentListQuery = z.infer<typeof AgentListQuerySchema>;
|
|
100
73
|
export declare const AgentPresenceInfoSchema: z.ZodObject<{
|
|
101
74
|
agent_id: z.ZodString;
|
|
102
75
|
agent_name: z.ZodString;
|
|
103
|
-
status: z.ZodEnum<
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}, {
|
|
109
|
-
status: "online" | "offline";
|
|
110
|
-
agent_id: string;
|
|
111
|
-
agent_name: string;
|
|
112
|
-
}>;
|
|
76
|
+
status: z.ZodEnum<{
|
|
77
|
+
online: "online";
|
|
78
|
+
offline: "offline";
|
|
79
|
+
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
113
81
|
export type AgentPresenceInfo = z.infer<typeof AgentPresenceInfoSchema>;
|
|
114
|
-
export declare const CliTypeSchema: z.ZodEnum<
|
|
82
|
+
export declare const CliTypeSchema: z.ZodEnum<{
|
|
83
|
+
claude: "claude";
|
|
84
|
+
codex: "codex";
|
|
85
|
+
gemini: "gemini";
|
|
86
|
+
aider: "aider";
|
|
87
|
+
goose: "goose";
|
|
88
|
+
}>;
|
|
115
89
|
export type CliType = z.infer<typeof CliTypeSchema>;
|
|
116
90
|
export declare const SpawnAgentRequestSchema: z.ZodObject<{
|
|
117
91
|
name: z.ZodString;
|
|
118
|
-
cli: z.ZodEnum<
|
|
92
|
+
cli: z.ZodEnum<{
|
|
93
|
+
claude: "claude";
|
|
94
|
+
codex: "codex";
|
|
95
|
+
gemini: "gemini";
|
|
96
|
+
aider: "aider";
|
|
97
|
+
goose: "goose";
|
|
98
|
+
}>;
|
|
119
99
|
task: z.ZodString;
|
|
120
100
|
channel: z.ZodOptional<z.ZodString>;
|
|
121
101
|
persona: z.ZodOptional<z.ZodString>;
|
|
122
102
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
123
|
-
},
|
|
124
|
-
name: string;
|
|
125
|
-
cli: "claude" | "codex" | "gemini" | "aider" | "goose";
|
|
126
|
-
task: string;
|
|
127
|
-
persona?: string | undefined;
|
|
128
|
-
metadata?: Record<string, unknown> | undefined;
|
|
129
|
-
channel?: string | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
name: string;
|
|
132
|
-
cli: "claude" | "codex" | "gemini" | "aider" | "goose";
|
|
133
|
-
task: string;
|
|
134
|
-
persona?: string | undefined;
|
|
135
|
-
metadata?: Record<string, unknown> | undefined;
|
|
136
|
-
channel?: string | undefined;
|
|
137
|
-
}>;
|
|
103
|
+
}, z.core.$strip>;
|
|
138
104
|
export type SpawnAgentRequest = z.infer<typeof SpawnAgentRequestSchema>;
|
|
139
105
|
export declare const SpawnAgentResponseSchema: z.ZodObject<{
|
|
140
106
|
id: z.ZodString;
|
|
141
107
|
name: z.ZodString;
|
|
142
108
|
token: z.ZodString;
|
|
143
|
-
cli: z.ZodEnum<
|
|
109
|
+
cli: z.ZodEnum<{
|
|
110
|
+
claude: "claude";
|
|
111
|
+
codex: "codex";
|
|
112
|
+
gemini: "gemini";
|
|
113
|
+
aider: "aider";
|
|
114
|
+
goose: "goose";
|
|
115
|
+
}>;
|
|
144
116
|
task: z.ZodString;
|
|
145
117
|
channel: z.ZodNullable<z.ZodString>;
|
|
146
|
-
status: z.ZodEnum<
|
|
118
|
+
status: z.ZodEnum<{
|
|
119
|
+
online: "online";
|
|
120
|
+
offline: "offline";
|
|
121
|
+
away: "away";
|
|
122
|
+
}>;
|
|
147
123
|
created_at: z.ZodString;
|
|
148
124
|
already_existed: z.ZodBoolean;
|
|
149
|
-
},
|
|
150
|
-
status: "online" | "offline" | "away";
|
|
151
|
-
id: string;
|
|
152
|
-
name: string;
|
|
153
|
-
created_at: string;
|
|
154
|
-
token: string;
|
|
155
|
-
cli: "claude" | "codex" | "gemini" | "aider" | "goose";
|
|
156
|
-
task: string;
|
|
157
|
-
channel: string | null;
|
|
158
|
-
already_existed: boolean;
|
|
159
|
-
}, {
|
|
160
|
-
status: "online" | "offline" | "away";
|
|
161
|
-
id: string;
|
|
162
|
-
name: string;
|
|
163
|
-
created_at: string;
|
|
164
|
-
token: string;
|
|
165
|
-
cli: "claude" | "codex" | "gemini" | "aider" | "goose";
|
|
166
|
-
task: string;
|
|
167
|
-
channel: string | null;
|
|
168
|
-
already_existed: boolean;
|
|
169
|
-
}>;
|
|
125
|
+
}, z.core.$strip>;
|
|
170
126
|
export type SpawnAgentResponse = z.infer<typeof SpawnAgentResponseSchema>;
|
|
171
127
|
export declare const ReleaseAgentRequestSchema: z.ZodObject<{
|
|
172
128
|
name: z.ZodString;
|
|
173
129
|
reason: z.ZodOptional<z.ZodString>;
|
|
174
130
|
delete_agent: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
-
},
|
|
176
|
-
name: string;
|
|
177
|
-
reason?: string | undefined;
|
|
178
|
-
delete_agent?: boolean | undefined;
|
|
179
|
-
}, {
|
|
180
|
-
name: string;
|
|
181
|
-
reason?: string | undefined;
|
|
182
|
-
delete_agent?: boolean | undefined;
|
|
183
|
-
}>;
|
|
131
|
+
}, z.core.$strip>;
|
|
184
132
|
export type ReleaseAgentRequest = z.infer<typeof ReleaseAgentRequestSchema>;
|
|
185
133
|
export declare const ReleaseAgentResponseSchema: z.ZodObject<{
|
|
186
134
|
name: z.ZodString;
|
|
187
135
|
released: z.ZodBoolean;
|
|
188
136
|
deleted: z.ZodBoolean;
|
|
189
137
|
reason: z.ZodNullable<z.ZodString>;
|
|
190
|
-
},
|
|
191
|
-
name: string;
|
|
192
|
-
reason: string | null;
|
|
193
|
-
released: boolean;
|
|
194
|
-
deleted: boolean;
|
|
195
|
-
}, {
|
|
196
|
-
name: string;
|
|
197
|
-
reason: string | null;
|
|
198
|
-
released: boolean;
|
|
199
|
-
deleted: boolean;
|
|
200
|
-
}>;
|
|
138
|
+
}, z.core.$strip>;
|
|
201
139
|
export type ReleaseAgentResponse = z.infer<typeof ReleaseAgentResponseSchema>;
|
|
202
140
|
//# sourceMappingURL=agent.d.ts.map
|
package/dist/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;EAA6B,CAAC;AAC1D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,iBAAiB;;;;EAAwC,CAAC;AACvE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;iBAWtB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,wBAAwB;;;;;;;;iBAKnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;;iBAMpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,wBAAwB;;;;;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,oBAAoB;;;;;;iBAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,aAAa;;;;;;EAA0D,CAAC;AACrF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAOlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;iBAUnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
package/dist/agent.js
CHANGED
|
@@ -9,7 +9,7 @@ export const AgentSchema = z.object({
|
|
|
9
9
|
token_hash: z.string(),
|
|
10
10
|
status: AgentStatusSchema,
|
|
11
11
|
persona: z.string().nullable(),
|
|
12
|
-
metadata: z.record(z.unknown()),
|
|
12
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
13
13
|
created_at: z.string(),
|
|
14
14
|
last_seen: z.string(),
|
|
15
15
|
});
|
|
@@ -17,7 +17,7 @@ export const CreateAgentRequestSchema = z.object({
|
|
|
17
17
|
name: z.string(),
|
|
18
18
|
type: AgentTypeSchema.optional(),
|
|
19
19
|
persona: z.string().optional(),
|
|
20
|
-
metadata: z.record(z.unknown()).optional(),
|
|
20
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
21
21
|
});
|
|
22
22
|
export const CreateAgentResponseSchema = z.object({
|
|
23
23
|
id: z.string(),
|
|
@@ -29,7 +29,7 @@ export const CreateAgentResponseSchema = z.object({
|
|
|
29
29
|
export const UpdateAgentRequestSchema = z.object({
|
|
30
30
|
status: AgentStatusSchema.optional(),
|
|
31
31
|
persona: z.string().optional(),
|
|
32
|
-
metadata: z.record(z.unknown()).optional(),
|
|
32
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
33
33
|
});
|
|
34
34
|
export const AgentListQuerySchema = z.object({
|
|
35
35
|
status: z.union([AgentStatusSchema, z.literal('all')]).optional(),
|
|
@@ -47,7 +47,7 @@ export const SpawnAgentRequestSchema = z.object({
|
|
|
47
47
|
task: z.string(),
|
|
48
48
|
channel: z.string().optional(),
|
|
49
49
|
persona: z.string().optional(),
|
|
50
|
-
metadata: z.record(z.unknown()).optional(),
|
|
50
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
51
51
|
});
|
|
52
52
|
export const SpawnAgentResponseSchema = z.object({
|
|
53
53
|
id: z.string(),
|
package/dist/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAG1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAGvE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,MAAM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AAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
|
package/dist/api.d.ts
CHANGED
|
@@ -5,212 +5,48 @@ export declare const ApiSuccessSchema: <T extends z.ZodType>(dataSchema: T) => z
|
|
|
5
5
|
cursor: z.ZodOptional<z.ZodObject<{
|
|
6
6
|
next: z.ZodNullable<z.ZodString>;
|
|
7
7
|
has_more: z.ZodBoolean;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
has_more: boolean;
|
|
11
|
-
}, {
|
|
12
|
-
next: string | null;
|
|
13
|
-
has_more: boolean;
|
|
14
|
-
}>>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
16
|
-
ok: z.ZodLiteral<true>;
|
|
17
|
-
data: T;
|
|
18
|
-
cursor: z.ZodOptional<z.ZodObject<{
|
|
19
|
-
next: z.ZodNullable<z.ZodString>;
|
|
20
|
-
has_more: z.ZodBoolean;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
next: string | null;
|
|
23
|
-
has_more: boolean;
|
|
24
|
-
}, {
|
|
25
|
-
next: string | null;
|
|
26
|
-
has_more: boolean;
|
|
27
|
-
}>>;
|
|
28
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
29
|
-
ok: z.ZodLiteral<true>;
|
|
30
|
-
data: T;
|
|
31
|
-
cursor: z.ZodOptional<z.ZodObject<{
|
|
32
|
-
next: z.ZodNullable<z.ZodString>;
|
|
33
|
-
has_more: z.ZodBoolean;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
next: string | null;
|
|
36
|
-
has_more: boolean;
|
|
37
|
-
}, {
|
|
38
|
-
next: string | null;
|
|
39
|
-
has_more: boolean;
|
|
40
|
-
}>>;
|
|
41
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
42
10
|
export declare const ApiErrorSchema: z.ZodObject<{
|
|
43
11
|
ok: z.ZodLiteral<false>;
|
|
44
12
|
error: z.ZodObject<{
|
|
45
13
|
code: z.ZodString;
|
|
46
14
|
message: z.ZodString;
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}, {
|
|
51
|
-
code: string;
|
|
52
|
-
message: string;
|
|
53
|
-
}>;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
ok: false;
|
|
56
|
-
error: {
|
|
57
|
-
code: string;
|
|
58
|
-
message: string;
|
|
59
|
-
};
|
|
60
|
-
}, {
|
|
61
|
-
ok: false;
|
|
62
|
-
error: {
|
|
63
|
-
code: string;
|
|
64
|
-
message: string;
|
|
65
|
-
};
|
|
66
|
-
}>;
|
|
67
|
-
export declare const ApiResponseSchema: <T extends z.ZodType>(dataSchema: T) => z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const ApiResponseSchema: <T extends z.ZodType>(dataSchema: T) => z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
68
18
|
ok: z.ZodLiteral<true>;
|
|
69
19
|
data: T;
|
|
70
20
|
cursor: z.ZodOptional<z.ZodObject<{
|
|
71
21
|
next: z.ZodNullable<z.ZodString>;
|
|
72
22
|
has_more: z.ZodBoolean;
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
has_more: boolean;
|
|
76
|
-
}, {
|
|
77
|
-
next: string | null;
|
|
78
|
-
has_more: boolean;
|
|
79
|
-
}>>;
|
|
80
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
81
|
-
ok: z.ZodLiteral<true>;
|
|
82
|
-
data: T;
|
|
83
|
-
cursor: z.ZodOptional<z.ZodObject<{
|
|
84
|
-
next: z.ZodNullable<z.ZodString>;
|
|
85
|
-
has_more: z.ZodBoolean;
|
|
86
|
-
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
next: string | null;
|
|
88
|
-
has_more: boolean;
|
|
89
|
-
}, {
|
|
90
|
-
next: string | null;
|
|
91
|
-
has_more: boolean;
|
|
92
|
-
}>>;
|
|
93
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
94
|
-
ok: z.ZodLiteral<true>;
|
|
95
|
-
data: T;
|
|
96
|
-
cursor: z.ZodOptional<z.ZodObject<{
|
|
97
|
-
next: z.ZodNullable<z.ZodString>;
|
|
98
|
-
has_more: z.ZodBoolean;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
next: string | null;
|
|
101
|
-
has_more: boolean;
|
|
102
|
-
}, {
|
|
103
|
-
next: string | null;
|
|
104
|
-
has_more: boolean;
|
|
105
|
-
}>>;
|
|
106
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>, z.ZodObject<{
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
25
|
ok: z.ZodLiteral<false>;
|
|
108
26
|
error: z.ZodObject<{
|
|
109
27
|
code: z.ZodString;
|
|
110
28
|
message: z.ZodString;
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
message: string;
|
|
114
|
-
}, {
|
|
115
|
-
code: string;
|
|
116
|
-
message: string;
|
|
117
|
-
}>;
|
|
118
|
-
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
ok: false;
|
|
120
|
-
error: {
|
|
121
|
-
code: string;
|
|
122
|
-
message: string;
|
|
123
|
-
};
|
|
124
|
-
}, {
|
|
125
|
-
ok: false;
|
|
126
|
-
error: {
|
|
127
|
-
code: string;
|
|
128
|
-
message: string;
|
|
129
|
-
};
|
|
130
|
-
}>]>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>], "ok">;
|
|
131
31
|
export declare const InboxResponseSchema: z.ZodObject<{
|
|
132
32
|
unread_channels: z.ZodArray<z.ZodObject<{
|
|
133
33
|
channel_name: z.ZodString;
|
|
134
34
|
unread_count: z.ZodNumber;
|
|
135
|
-
},
|
|
136
|
-
channel_name: string;
|
|
137
|
-
unread_count: number;
|
|
138
|
-
}, {
|
|
139
|
-
channel_name: string;
|
|
140
|
-
unread_count: number;
|
|
141
|
-
}>, "many">;
|
|
35
|
+
}, z.core.$strip>>;
|
|
142
36
|
mentions: z.ZodArray<z.ZodObject<{
|
|
143
37
|
id: z.ZodString;
|
|
144
38
|
channel_name: z.ZodString;
|
|
145
39
|
agent_name: z.ZodString;
|
|
146
40
|
text: z.ZodString;
|
|
147
41
|
created_at: z.ZodString;
|
|
148
|
-
},
|
|
149
|
-
id: string;
|
|
150
|
-
created_at: string;
|
|
151
|
-
agent_name: string;
|
|
152
|
-
channel_name: string;
|
|
153
|
-
text: string;
|
|
154
|
-
}, {
|
|
155
|
-
id: string;
|
|
156
|
-
created_at: string;
|
|
157
|
-
agent_name: string;
|
|
158
|
-
channel_name: string;
|
|
159
|
-
text: string;
|
|
160
|
-
}>, "many">;
|
|
42
|
+
}, z.core.$strip>>;
|
|
161
43
|
unread_dms: z.ZodArray<z.ZodObject<{
|
|
162
44
|
conversation_id: z.ZodString;
|
|
163
45
|
from: z.ZodString;
|
|
164
46
|
unread_count: z.ZodNumber;
|
|
165
47
|
last_message: z.ZodNullable<z.ZodString>;
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
conversation_id: string;
|
|
169
|
-
from: string;
|
|
170
|
-
last_message: string | null;
|
|
171
|
-
}, {
|
|
172
|
-
unread_count: number;
|
|
173
|
-
conversation_id: string;
|
|
174
|
-
from: string;
|
|
175
|
-
last_message: string | null;
|
|
176
|
-
}>, "many">;
|
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
unread_channels: {
|
|
179
|
-
channel_name: string;
|
|
180
|
-
unread_count: number;
|
|
181
|
-
}[];
|
|
182
|
-
mentions: {
|
|
183
|
-
id: string;
|
|
184
|
-
created_at: string;
|
|
185
|
-
agent_name: string;
|
|
186
|
-
channel_name: string;
|
|
187
|
-
text: string;
|
|
188
|
-
}[];
|
|
189
|
-
unread_dms: {
|
|
190
|
-
unread_count: number;
|
|
191
|
-
conversation_id: string;
|
|
192
|
-
from: string;
|
|
193
|
-
last_message: string | null;
|
|
194
|
-
}[];
|
|
195
|
-
}, {
|
|
196
|
-
unread_channels: {
|
|
197
|
-
channel_name: string;
|
|
198
|
-
unread_count: number;
|
|
199
|
-
}[];
|
|
200
|
-
mentions: {
|
|
201
|
-
id: string;
|
|
202
|
-
created_at: string;
|
|
203
|
-
agent_name: string;
|
|
204
|
-
channel_name: string;
|
|
205
|
-
text: string;
|
|
206
|
-
}[];
|
|
207
|
-
unread_dms: {
|
|
208
|
-
unread_count: number;
|
|
209
|
-
conversation_id: string;
|
|
210
|
-
from: string;
|
|
211
|
-
last_message: string | null;
|
|
212
|
-
}[];
|
|
213
|
-
}>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
214
50
|
export interface ApiSuccess<T> {
|
|
215
51
|
ok: true;
|
|
216
52
|
data: T;
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC;;;;;;;iBAQ/D,CAAC;AAEL,eAAO,MAAM,cAAc;;;;;;iBAMzB,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC;;;;;;;;;;;;;yBACQ,CAAC;AAE7E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;iBAI9B,CAAC;AAEH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,EAAE,EAAE,IAAI,CAAC;IACT,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,KAAK,CAAC;IACV,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|