@andocorp/sdk 0.0.1 → 0.2.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/README.md +63 -0
- package/dist/agent-endpoints.d.ts +89 -0
- package/dist/agent-endpoints.d.ts.map +1 -0
- package/dist/agent-endpoints.js +229 -0
- package/dist/agent-endpoints.js.map +1 -0
- package/dist/agent-types.d.ts +81 -0
- package/dist/agent-types.d.ts.map +1 -0
- package/dist/agent-types.js +3 -0
- package/dist/agent-types.js.map +1 -0
- package/dist/client.d.ts +133 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +525 -57
- package/dist/client.js.map +1 -1
- package/dist/generated/contracts.d.ts +326 -11
- package/dist/generated/contracts.d.ts.map +1 -1
- package/dist/generated/contracts.js +21 -1
- package/dist/generated/contracts.js.map +1 -1
- package/dist/generated/public-api.d.ts +856 -0
- package/dist/generated/public-api.d.ts.map +1 -0
- package/dist/generated/public-api.js +382 -0
- package/dist/generated/public-api.js.map +1 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/realtime-events.d.ts +9 -4
- package/dist/realtime-events.d.ts.map +1 -1
- package/dist/realtime-events.js +113 -157
- package/dist/realtime-events.js.map +1 -1
- package/dist/realtime-runtime.d.ts +6 -17
- package/dist/realtime-runtime.d.ts.map +1 -1
- package/dist/realtime-runtime.js +45 -62
- package/dist/realtime-runtime.js.map +1 -1
- package/dist/realtime-types.d.ts +60 -77
- package/dist/realtime-types.d.ts.map +1 -1
- package/dist/realtime-types.js +2 -0
- package/dist/realtime-types.js.map +1 -1
- package/dist/realtime.d.ts +6 -5
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +282 -144
- package/dist/realtime.js.map +1 -1
- package/dist/targets.d.ts.map +1 -1
- package/dist/targets.js.map +1 -1
- package/dist/types.d.ts +61 -20
- package/dist/types.d.ts.map +1 -1
- package/package.json +24 -16
|
@@ -0,0 +1,856 @@
|
|
|
1
|
+
export declare const ANDO_PUBLIC_API_SPEC: {
|
|
2
|
+
readonly title: "Ando Public API";
|
|
3
|
+
readonly version: "v1";
|
|
4
|
+
readonly openapi: "3.0.3";
|
|
5
|
+
readonly source: "https://api.ando.so/openapi.json";
|
|
6
|
+
readonly sha256: "c05079ab3b2c113fc082c0077157378ee1b7e4401490810f6e4d97186475a07d";
|
|
7
|
+
readonly servers: readonly [{
|
|
8
|
+
readonly description: "Canonical public API host.";
|
|
9
|
+
readonly url: "https://api.ando.so/v1";
|
|
10
|
+
}];
|
|
11
|
+
};
|
|
12
|
+
export declare const ANDO_PUBLIC_API_OPERATIONS: {
|
|
13
|
+
readonly getCall: {
|
|
14
|
+
readonly method: "GET";
|
|
15
|
+
readonly path: "/calls/{callId}";
|
|
16
|
+
readonly publicPath: "/v1/calls/:callId";
|
|
17
|
+
readonly routeId: "api.api_v1_calls_by_callid.get";
|
|
18
|
+
readonly gaStatus: "beta_non_ga";
|
|
19
|
+
readonly publicApiDisposition: "beta";
|
|
20
|
+
readonly compatibilityMode: "legacy_api_v1_compatibility";
|
|
21
|
+
readonly migrationTarget: "standard_public";
|
|
22
|
+
readonly rateLimitPolicy: "implicit_legacy";
|
|
23
|
+
readonly selectedRuntime: "express";
|
|
24
|
+
readonly targetRuntime: "convex_http";
|
|
25
|
+
readonly pathParameters: readonly ["callId"];
|
|
26
|
+
readonly queryParameters: readonly [];
|
|
27
|
+
readonly headerParameters: readonly [];
|
|
28
|
+
readonly requestBodySchema: null;
|
|
29
|
+
readonly responseSchema: "#/components/schemas/CallResponse";
|
|
30
|
+
};
|
|
31
|
+
readonly getCallTranscript: {
|
|
32
|
+
readonly method: "GET";
|
|
33
|
+
readonly path: "/calls/{callId}/transcript";
|
|
34
|
+
readonly publicPath: "/v1/calls/:callId/transcript";
|
|
35
|
+
readonly routeId: "api.api_v1_calls_by_callid_transcript.get";
|
|
36
|
+
readonly gaStatus: "beta_non_ga";
|
|
37
|
+
readonly publicApiDisposition: "beta";
|
|
38
|
+
readonly compatibilityMode: "legacy_api_v1_compatibility";
|
|
39
|
+
readonly migrationTarget: "standard_public";
|
|
40
|
+
readonly rateLimitPolicy: "implicit_legacy";
|
|
41
|
+
readonly selectedRuntime: "express";
|
|
42
|
+
readonly targetRuntime: "convex_http";
|
|
43
|
+
readonly pathParameters: readonly ["callId"];
|
|
44
|
+
readonly queryParameters: readonly ["limit", "cursor"];
|
|
45
|
+
readonly headerParameters: readonly [];
|
|
46
|
+
readonly requestBodySchema: null;
|
|
47
|
+
readonly responseSchema: "#/components/schemas/CallTranscriptResponse";
|
|
48
|
+
};
|
|
49
|
+
readonly getClipboard: {
|
|
50
|
+
readonly method: "GET";
|
|
51
|
+
readonly path: "/clipboards/{clipboardId}";
|
|
52
|
+
readonly publicPath: "/v1/clipboards/:clipboardId";
|
|
53
|
+
readonly routeId: "api.api_v1_clipboards_by_clipboardid.get";
|
|
54
|
+
readonly gaStatus: "legacy_frozen_non_ga";
|
|
55
|
+
readonly publicApiDisposition: "legacy_frozen";
|
|
56
|
+
readonly compatibilityMode: "legacy_api_v1_compatibility";
|
|
57
|
+
readonly migrationTarget: "legacy_frozen";
|
|
58
|
+
readonly rateLimitPolicy: "implicit_legacy";
|
|
59
|
+
readonly selectedRuntime: "express";
|
|
60
|
+
readonly targetRuntime: "convex_http";
|
|
61
|
+
readonly pathParameters: readonly ["clipboardId"];
|
|
62
|
+
readonly queryParameters: readonly [];
|
|
63
|
+
readonly headerParameters: readonly [];
|
|
64
|
+
readonly requestBodySchema: null;
|
|
65
|
+
readonly responseSchema: "#/components/schemas/ClipboardResponse";
|
|
66
|
+
};
|
|
67
|
+
readonly getConversationMessage: {
|
|
68
|
+
readonly method: "GET";
|
|
69
|
+
readonly path: "/conversation-messages/{messageId}";
|
|
70
|
+
readonly publicPath: "/v1/conversation-messages/:messageId";
|
|
71
|
+
readonly routeId: "api.api_v1_conversation_messages_by_messageid.get";
|
|
72
|
+
readonly gaStatus: "ga";
|
|
73
|
+
readonly publicApiDisposition: "ga";
|
|
74
|
+
readonly compatibilityMode: "standard_public";
|
|
75
|
+
readonly migrationTarget: "standard_public";
|
|
76
|
+
readonly rateLimitPolicy: "declared";
|
|
77
|
+
readonly selectedRuntime: "convex_http";
|
|
78
|
+
readonly targetRuntime: "convex_http";
|
|
79
|
+
readonly pathParameters: readonly ["messageId"];
|
|
80
|
+
readonly queryParameters: readonly [];
|
|
81
|
+
readonly headerParameters: readonly [];
|
|
82
|
+
readonly requestBodySchema: null;
|
|
83
|
+
readonly responseSchema: "#/components/schemas/MessageResultResponse";
|
|
84
|
+
};
|
|
85
|
+
readonly listThreadReplies: {
|
|
86
|
+
readonly method: "GET";
|
|
87
|
+
readonly path: "/conversation-messages/{messageId}/replies";
|
|
88
|
+
readonly publicPath: "/v1/conversation-messages/:messageId/replies";
|
|
89
|
+
readonly routeId: "api.api_v1_conversation_messages_by_messageid_replies.get";
|
|
90
|
+
readonly gaStatus: "ga";
|
|
91
|
+
readonly publicApiDisposition: "ga";
|
|
92
|
+
readonly compatibilityMode: "standard_public";
|
|
93
|
+
readonly migrationTarget: "standard_public";
|
|
94
|
+
readonly rateLimitPolicy: "declared";
|
|
95
|
+
readonly selectedRuntime: "convex_http";
|
|
96
|
+
readonly targetRuntime: "convex_http";
|
|
97
|
+
readonly pathParameters: readonly ["messageId"];
|
|
98
|
+
readonly queryParameters: readonly ["limit", "after"];
|
|
99
|
+
readonly headerParameters: readonly [];
|
|
100
|
+
readonly requestBodySchema: null;
|
|
101
|
+
readonly responseSchema: "#/components/schemas/ThreadRepliesResponse";
|
|
102
|
+
};
|
|
103
|
+
readonly listConversationMessages: {
|
|
104
|
+
readonly method: "GET";
|
|
105
|
+
readonly path: "/conversations/{conversationId}/messages";
|
|
106
|
+
readonly publicPath: "/v1/conversations/:conversationId/messages";
|
|
107
|
+
readonly routeId: "api.api_v1_conversations_by_conversationid_messages.get";
|
|
108
|
+
readonly gaStatus: "ga";
|
|
109
|
+
readonly publicApiDisposition: "ga";
|
|
110
|
+
readonly compatibilityMode: "standard_public";
|
|
111
|
+
readonly migrationTarget: "standard_public";
|
|
112
|
+
readonly rateLimitPolicy: "declared";
|
|
113
|
+
readonly selectedRuntime: "convex_http";
|
|
114
|
+
readonly targetRuntime: "convex_http";
|
|
115
|
+
readonly pathParameters: readonly ["conversationId"];
|
|
116
|
+
readonly queryParameters: readonly ["limit", "before"];
|
|
117
|
+
readonly headerParameters: readonly [];
|
|
118
|
+
readonly requestBodySchema: null;
|
|
119
|
+
readonly responseSchema: "#/components/schemas/ConversationMessagesResponse";
|
|
120
|
+
};
|
|
121
|
+
readonly createConversationMessage: {
|
|
122
|
+
readonly method: "POST";
|
|
123
|
+
readonly path: "/conversations/{conversationId}/messages";
|
|
124
|
+
readonly publicPath: "/v1/conversations/:conversationId/messages";
|
|
125
|
+
readonly routeId: "api.api_v1_conversations_by_conversationid_messages.post";
|
|
126
|
+
readonly gaStatus: "ga";
|
|
127
|
+
readonly publicApiDisposition: "ga";
|
|
128
|
+
readonly compatibilityMode: "standard_public";
|
|
129
|
+
readonly migrationTarget: "standard_public";
|
|
130
|
+
readonly rateLimitPolicy: "declared";
|
|
131
|
+
readonly selectedRuntime: "convex_http";
|
|
132
|
+
readonly targetRuntime: "convex_http";
|
|
133
|
+
readonly pathParameters: readonly ["conversationId"];
|
|
134
|
+
readonly queryParameters: readonly [];
|
|
135
|
+
readonly headerParameters: readonly ["Idempotency-Key"];
|
|
136
|
+
readonly requestBodySchema: "#/components/schemas/CreateConversationMessageBody";
|
|
137
|
+
readonly responseSchema: "#/components/schemas/CreateConversationMessageResponse";
|
|
138
|
+
};
|
|
139
|
+
readonly getMember: {
|
|
140
|
+
readonly method: "GET";
|
|
141
|
+
readonly path: "/members/{memberId}";
|
|
142
|
+
readonly publicPath: "/v1/members/:memberId";
|
|
143
|
+
readonly routeId: "api.api_v1_members_by_memberid.get";
|
|
144
|
+
readonly gaStatus: "beta_non_ga";
|
|
145
|
+
readonly publicApiDisposition: "beta";
|
|
146
|
+
readonly compatibilityMode: "legacy_api_v1_compatibility";
|
|
147
|
+
readonly migrationTarget: "standard_public";
|
|
148
|
+
readonly rateLimitPolicy: "implicit_legacy";
|
|
149
|
+
readonly selectedRuntime: "express";
|
|
150
|
+
readonly targetRuntime: "convex_http";
|
|
151
|
+
readonly pathParameters: readonly ["memberId"];
|
|
152
|
+
readonly queryParameters: readonly [];
|
|
153
|
+
readonly headerParameters: readonly [];
|
|
154
|
+
readonly requestBodySchema: null;
|
|
155
|
+
readonly responseSchema: "#/components/schemas/MemberResult";
|
|
156
|
+
};
|
|
157
|
+
readonly openRealtimeConnection: {
|
|
158
|
+
readonly method: "POST";
|
|
159
|
+
readonly path: "/realtime/connections";
|
|
160
|
+
readonly publicPath: "/v1/realtime/connections";
|
|
161
|
+
readonly routeId: "api.api_v1_realtime_connections.post";
|
|
162
|
+
readonly gaStatus: "beta_non_ga";
|
|
163
|
+
readonly publicApiDisposition: "beta";
|
|
164
|
+
readonly compatibilityMode: "standard_public";
|
|
165
|
+
readonly migrationTarget: "standard_public";
|
|
166
|
+
readonly rateLimitPolicy: "declared";
|
|
167
|
+
readonly selectedRuntime: "express";
|
|
168
|
+
readonly targetRuntime: "express";
|
|
169
|
+
readonly pathParameters: readonly [];
|
|
170
|
+
readonly queryParameters: readonly [];
|
|
171
|
+
readonly headerParameters: readonly [];
|
|
172
|
+
readonly requestBodySchema: "#/components/schemas/OpenRealtimeConnectionRequest";
|
|
173
|
+
readonly responseSchema: "#/components/schemas/OpenRealtimeConnectionResponse";
|
|
174
|
+
};
|
|
175
|
+
readonly searchCalls: {
|
|
176
|
+
readonly method: "GET";
|
|
177
|
+
readonly path: "/search/calls";
|
|
178
|
+
readonly publicPath: "/v1/search/calls";
|
|
179
|
+
readonly routeId: "api.api_v1_search_calls.get";
|
|
180
|
+
readonly gaStatus: "ga";
|
|
181
|
+
readonly publicApiDisposition: "ga";
|
|
182
|
+
readonly compatibilityMode: "standard_public";
|
|
183
|
+
readonly migrationTarget: "standard_public";
|
|
184
|
+
readonly rateLimitPolicy: "declared";
|
|
185
|
+
readonly selectedRuntime: "convex_http";
|
|
186
|
+
readonly targetRuntime: "convex_http";
|
|
187
|
+
readonly pathParameters: readonly [];
|
|
188
|
+
readonly queryParameters: readonly ["q", "conversation", "after", "before"];
|
|
189
|
+
readonly headerParameters: readonly [];
|
|
190
|
+
readonly requestBodySchema: null;
|
|
191
|
+
readonly responseSchema: "#/components/schemas/SearchCallsResponse";
|
|
192
|
+
};
|
|
193
|
+
readonly searchClipboards: {
|
|
194
|
+
readonly method: "GET";
|
|
195
|
+
readonly path: "/search/clipboard";
|
|
196
|
+
readonly publicPath: "/v1/search/clipboard";
|
|
197
|
+
readonly routeId: "api.api_v1_search_clipboard.get";
|
|
198
|
+
readonly gaStatus: "legacy_frozen_non_ga";
|
|
199
|
+
readonly publicApiDisposition: "legacy_frozen";
|
|
200
|
+
readonly compatibilityMode: "legacy_api_v1_compatibility";
|
|
201
|
+
readonly migrationTarget: "legacy_frozen";
|
|
202
|
+
readonly rateLimitPolicy: "implicit_legacy";
|
|
203
|
+
readonly selectedRuntime: "express";
|
|
204
|
+
readonly targetRuntime: "convex_http";
|
|
205
|
+
readonly pathParameters: readonly [];
|
|
206
|
+
readonly queryParameters: readonly ["q"];
|
|
207
|
+
readonly headerParameters: readonly [];
|
|
208
|
+
readonly requestBodySchema: null;
|
|
209
|
+
readonly responseSchema: "#/components/schemas/SearchClipboardResponse";
|
|
210
|
+
};
|
|
211
|
+
readonly searchConversations: {
|
|
212
|
+
readonly method: "GET";
|
|
213
|
+
readonly path: "/search/conversations";
|
|
214
|
+
readonly publicPath: "/v1/search/conversations";
|
|
215
|
+
readonly routeId: "api.api_v1_search_conversations.get";
|
|
216
|
+
readonly gaStatus: "ga";
|
|
217
|
+
readonly publicApiDisposition: "ga";
|
|
218
|
+
readonly compatibilityMode: "standard_public";
|
|
219
|
+
readonly migrationTarget: "standard_public";
|
|
220
|
+
readonly rateLimitPolicy: "declared";
|
|
221
|
+
readonly selectedRuntime: "convex_http";
|
|
222
|
+
readonly targetRuntime: "convex_http";
|
|
223
|
+
readonly pathParameters: readonly [];
|
|
224
|
+
readonly queryParameters: readonly ["q"];
|
|
225
|
+
readonly headerParameters: readonly [];
|
|
226
|
+
readonly requestBodySchema: null;
|
|
227
|
+
readonly responseSchema: "#/components/schemas/SearchConversationsResponse";
|
|
228
|
+
};
|
|
229
|
+
readonly searchMembers: {
|
|
230
|
+
readonly method: "GET";
|
|
231
|
+
readonly path: "/search/members";
|
|
232
|
+
readonly publicPath: "/v1/search/members";
|
|
233
|
+
readonly routeId: "api.api_v1_search_members.get";
|
|
234
|
+
readonly gaStatus: "ga";
|
|
235
|
+
readonly publicApiDisposition: "ga";
|
|
236
|
+
readonly compatibilityMode: "standard_public";
|
|
237
|
+
readonly migrationTarget: "standard_public";
|
|
238
|
+
readonly rateLimitPolicy: "declared";
|
|
239
|
+
readonly selectedRuntime: "convex_http";
|
|
240
|
+
readonly targetRuntime: "convex_http";
|
|
241
|
+
readonly pathParameters: readonly [];
|
|
242
|
+
readonly queryParameters: readonly ["q"];
|
|
243
|
+
readonly headerParameters: readonly [];
|
|
244
|
+
readonly requestBodySchema: null;
|
|
245
|
+
readonly responseSchema: "#/components/schemas/SearchMembersResponse";
|
|
246
|
+
};
|
|
247
|
+
readonly searchMessages: {
|
|
248
|
+
readonly method: "GET";
|
|
249
|
+
readonly path: "/search/messages";
|
|
250
|
+
readonly publicPath: "/v1/search/messages";
|
|
251
|
+
readonly routeId: "api.api_v1_search_messages.get";
|
|
252
|
+
readonly gaStatus: "ga";
|
|
253
|
+
readonly publicApiDisposition: "ga";
|
|
254
|
+
readonly compatibilityMode: "standard_public";
|
|
255
|
+
readonly migrationTarget: "standard_public";
|
|
256
|
+
readonly rateLimitPolicy: "declared";
|
|
257
|
+
readonly selectedRuntime: "convex_http";
|
|
258
|
+
readonly targetRuntime: "convex_http";
|
|
259
|
+
readonly pathParameters: readonly [];
|
|
260
|
+
readonly queryParameters: readonly ["q", "author", "conversation", "thread", "after", "before", "mode"];
|
|
261
|
+
readonly headerParameters: readonly [];
|
|
262
|
+
readonly requestBodySchema: null;
|
|
263
|
+
readonly responseSchema: "#/components/schemas/SearchMessagesResponse";
|
|
264
|
+
};
|
|
265
|
+
readonly searchTasks: {
|
|
266
|
+
readonly method: "GET";
|
|
267
|
+
readonly path: "/search/tasks";
|
|
268
|
+
readonly publicPath: "/v1/search/tasks";
|
|
269
|
+
readonly routeId: "api.api_v1_search_tasks.get";
|
|
270
|
+
readonly gaStatus: "candidate";
|
|
271
|
+
readonly publicApiDisposition: "ga_candidate";
|
|
272
|
+
readonly compatibilityMode: "standard_public";
|
|
273
|
+
readonly migrationTarget: "standard_public";
|
|
274
|
+
readonly rateLimitPolicy: "implicit_legacy";
|
|
275
|
+
readonly selectedRuntime: "express";
|
|
276
|
+
readonly targetRuntime: "convex_http";
|
|
277
|
+
readonly pathParameters: readonly [];
|
|
278
|
+
readonly queryParameters: readonly ["q", "limit"];
|
|
279
|
+
readonly headerParameters: readonly [];
|
|
280
|
+
readonly requestBodySchema: null;
|
|
281
|
+
readonly responseSchema: "#/components/schemas/SearchTasksResponse";
|
|
282
|
+
};
|
|
283
|
+
readonly getTask: {
|
|
284
|
+
readonly method: "GET";
|
|
285
|
+
readonly path: "/tasks/{taskId}";
|
|
286
|
+
readonly publicPath: "/v1/tasks/:taskId";
|
|
287
|
+
readonly routeId: "api.api_v1_tasks_by_taskid.get";
|
|
288
|
+
readonly gaStatus: "beta_non_ga";
|
|
289
|
+
readonly publicApiDisposition: "beta";
|
|
290
|
+
readonly compatibilityMode: "legacy_api_v1_compatibility";
|
|
291
|
+
readonly migrationTarget: "standard_public";
|
|
292
|
+
readonly rateLimitPolicy: "implicit_legacy";
|
|
293
|
+
readonly selectedRuntime: "express";
|
|
294
|
+
readonly targetRuntime: "convex_http";
|
|
295
|
+
readonly pathParameters: readonly ["taskId"];
|
|
296
|
+
readonly queryParameters: readonly [];
|
|
297
|
+
readonly headerParameters: readonly [];
|
|
298
|
+
readonly requestBodySchema: null;
|
|
299
|
+
readonly responseSchema: "#/components/schemas/TaskContextResponse";
|
|
300
|
+
};
|
|
301
|
+
readonly recordTaskUpdate: {
|
|
302
|
+
readonly method: "POST";
|
|
303
|
+
readonly path: "/tasks/{taskId}/updates";
|
|
304
|
+
readonly publicPath: "/v1/tasks/:taskId/updates";
|
|
305
|
+
readonly routeId: "api.api_v1_tasks_by_taskid_updates.post";
|
|
306
|
+
readonly gaStatus: "beta_non_ga";
|
|
307
|
+
readonly publicApiDisposition: "beta";
|
|
308
|
+
readonly compatibilityMode: "legacy_api_v1_compatibility";
|
|
309
|
+
readonly migrationTarget: "standard_public";
|
|
310
|
+
readonly rateLimitPolicy: "implicit_legacy";
|
|
311
|
+
readonly selectedRuntime: "express";
|
|
312
|
+
readonly targetRuntime: "convex_http";
|
|
313
|
+
readonly pathParameters: readonly ["taskId"];
|
|
314
|
+
readonly queryParameters: readonly [];
|
|
315
|
+
readonly headerParameters: readonly ["Idempotency-Key"];
|
|
316
|
+
readonly requestBodySchema: "#/components/schemas/RecordTaskUpdateBody";
|
|
317
|
+
readonly responseSchema: "#/components/schemas/RecordTaskUpdateResponse";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
export type AndoPublicApiOperationId = keyof typeof ANDO_PUBLIC_API_OPERATIONS;
|
|
321
|
+
export type AndoPublicApiOperation = (typeof ANDO_PUBLIC_API_OPERATIONS)[AndoPublicApiOperationId];
|
|
322
|
+
export type CallParticipant = {
|
|
323
|
+
id: string;
|
|
324
|
+
name: string | null;
|
|
325
|
+
};
|
|
326
|
+
export type CallResponse = {
|
|
327
|
+
chapters: CallTranscriptChapter[];
|
|
328
|
+
conversation_id: string;
|
|
329
|
+
conversation_name: string | null;
|
|
330
|
+
duration_seconds: number | null;
|
|
331
|
+
ended_at: string | null;
|
|
332
|
+
id: string;
|
|
333
|
+
participants: CallParticipant[];
|
|
334
|
+
started_at: string | null;
|
|
335
|
+
status: string;
|
|
336
|
+
summary: string | null;
|
|
337
|
+
};
|
|
338
|
+
export type CallResult = {
|
|
339
|
+
conversation_id: string;
|
|
340
|
+
conversation_name: string | null;
|
|
341
|
+
duration_seconds: number | null;
|
|
342
|
+
ended_at: string | null;
|
|
343
|
+
id: string;
|
|
344
|
+
participant_count: number;
|
|
345
|
+
participant_names: string[];
|
|
346
|
+
started_at: string | null;
|
|
347
|
+
status: string;
|
|
348
|
+
summary: string | null;
|
|
349
|
+
};
|
|
350
|
+
export type CallTranscriptChapter = {
|
|
351
|
+
content: string;
|
|
352
|
+
end_ms: number;
|
|
353
|
+
start_ms: number;
|
|
354
|
+
title: string;
|
|
355
|
+
};
|
|
356
|
+
export type CallTranscriptResponse = {
|
|
357
|
+
call_id: string;
|
|
358
|
+
conversation_name: string | null;
|
|
359
|
+
duration_seconds: number | null;
|
|
360
|
+
pageInfo: LegacyPageInfo;
|
|
361
|
+
segments: CallTranscriptSegment[];
|
|
362
|
+
};
|
|
363
|
+
export type CallTranscriptSegment = {
|
|
364
|
+
content: string;
|
|
365
|
+
end_ms: number;
|
|
366
|
+
speaker_name: string | null;
|
|
367
|
+
start_ms: number;
|
|
368
|
+
};
|
|
369
|
+
export type ClipboardItem = {
|
|
370
|
+
author_name?: string | null;
|
|
371
|
+
content?: string | null;
|
|
372
|
+
created_at?: string | null;
|
|
373
|
+
display_name?: string | null;
|
|
374
|
+
id: string;
|
|
375
|
+
mime_type?: string | null;
|
|
376
|
+
name?: string | null;
|
|
377
|
+
title?: string | null;
|
|
378
|
+
type: "message" | "member" | "conversation" | "file";
|
|
379
|
+
url?: string | null;
|
|
380
|
+
};
|
|
381
|
+
export type ClipboardResponse = {
|
|
382
|
+
created_at: string;
|
|
383
|
+
description: string | null;
|
|
384
|
+
id: string;
|
|
385
|
+
items: ClipboardItem[];
|
|
386
|
+
title: string | null;
|
|
387
|
+
};
|
|
388
|
+
export type ClipboardResult = {
|
|
389
|
+
created_at: string;
|
|
390
|
+
description: string | null;
|
|
391
|
+
id: string;
|
|
392
|
+
item_count: number;
|
|
393
|
+
title: string | null;
|
|
394
|
+
};
|
|
395
|
+
export type ConversationMessagesData = {
|
|
396
|
+
conversation_id: string;
|
|
397
|
+
conversation_name: string | null;
|
|
398
|
+
items: MessageResult[];
|
|
399
|
+
page_info: PublicApiPageInfo;
|
|
400
|
+
};
|
|
401
|
+
export type ConversationMessagesResponse = {
|
|
402
|
+
conversation_id: string;
|
|
403
|
+
conversation_name: string | null;
|
|
404
|
+
data: ConversationMessagesData;
|
|
405
|
+
items: MessageResult[];
|
|
406
|
+
pageInfo: LegacyPageInfo;
|
|
407
|
+
};
|
|
408
|
+
export type ConversationResult = {
|
|
409
|
+
agent_members_count: number;
|
|
410
|
+
description: string | null;
|
|
411
|
+
human_members_count: number;
|
|
412
|
+
id: string;
|
|
413
|
+
name: string | null;
|
|
414
|
+
type: "channel" | "direct_message" | "task_channel";
|
|
415
|
+
};
|
|
416
|
+
export type CreateConversationMessageBody = {
|
|
417
|
+
markdown_content: string | null;
|
|
418
|
+
explicit_context_message_ids?: string[];
|
|
419
|
+
image_urls?: string[];
|
|
420
|
+
file_ids?: string[];
|
|
421
|
+
suppressed_link_preview_urls?: string[];
|
|
422
|
+
initiator_id?: string | null;
|
|
423
|
+
thread_root_id?: string | null;
|
|
424
|
+
replied_to_message_id?: string | null;
|
|
425
|
+
call_root_id?: string | null;
|
|
426
|
+
optimistic_id?: string;
|
|
427
|
+
client_request_id?: string | null;
|
|
428
|
+
author_id?: string;
|
|
429
|
+
};
|
|
430
|
+
export type CreateConversationMessageResponse = {
|
|
431
|
+
data: MessageResult;
|
|
432
|
+
legacy_data?: Record<string, unknown> | null;
|
|
433
|
+
success: boolean;
|
|
434
|
+
};
|
|
435
|
+
export type CreateWebhookEndpointBody = {
|
|
436
|
+
enabled_events: ("message.created" | "message.updated" | "conversation.membership.created" | "conversation.archived" | "conversation.unarchived" | "call.started" | "call.ended" | "call.updated" | "call.transcript.updated" | "webhook.test")[];
|
|
437
|
+
name?: string | null;
|
|
438
|
+
url: string;
|
|
439
|
+
};
|
|
440
|
+
export type LegacyErrorResponse = {
|
|
441
|
+
error: string;
|
|
442
|
+
error_code?: string | null;
|
|
443
|
+
missing_scopes?: string[];
|
|
444
|
+
};
|
|
445
|
+
export type LegacyPageInfo = {
|
|
446
|
+
endCursor?: string | null;
|
|
447
|
+
hasNextPage: boolean;
|
|
448
|
+
hasPreviousPage: boolean;
|
|
449
|
+
startCursor?: string | null;
|
|
450
|
+
};
|
|
451
|
+
export type MemberResult = {
|
|
452
|
+
display_name: string | null;
|
|
453
|
+
email: string | null;
|
|
454
|
+
id: string;
|
|
455
|
+
profile_image_url: string | null;
|
|
456
|
+
title: string | null;
|
|
457
|
+
workspaceMembershipId: string;
|
|
458
|
+
};
|
|
459
|
+
export type MessageReactionSummary = {
|
|
460
|
+
count: number;
|
|
461
|
+
emoji_text: string;
|
|
462
|
+
};
|
|
463
|
+
export type MessageResult = {
|
|
464
|
+
authorWorkspaceMembershipId: string;
|
|
465
|
+
author_id: string;
|
|
466
|
+
author_name: string | null;
|
|
467
|
+
content: string | null;
|
|
468
|
+
conversation_id: string;
|
|
469
|
+
conversation_name: string | null;
|
|
470
|
+
created_at: string;
|
|
471
|
+
id: string;
|
|
472
|
+
image_urls: string[];
|
|
473
|
+
reactions: MessageReactionSummary[];
|
|
474
|
+
replies_count: number;
|
|
475
|
+
};
|
|
476
|
+
export type MessageResultResponse = {
|
|
477
|
+
authorWorkspaceMembershipId: string;
|
|
478
|
+
author_id: string;
|
|
479
|
+
author_name: string | null;
|
|
480
|
+
content: string | null;
|
|
481
|
+
conversation_id: string;
|
|
482
|
+
conversation_name: string | null;
|
|
483
|
+
created_at: string;
|
|
484
|
+
data: MessageResult;
|
|
485
|
+
id: string;
|
|
486
|
+
image_urls: string[];
|
|
487
|
+
reactions: MessageReactionSummary[];
|
|
488
|
+
replies_count: number;
|
|
489
|
+
};
|
|
490
|
+
export type OpenRealtimeConnectionRequest = {
|
|
491
|
+
resume_from?: RealtimeResumeRequest;
|
|
492
|
+
subscriptions: RealtimeConnectionSubscriptionRequest[];
|
|
493
|
+
};
|
|
494
|
+
export type OpenRealtimeConnectionResponse = {
|
|
495
|
+
approximate_connection_time_seconds: number | null;
|
|
496
|
+
connection_id: string;
|
|
497
|
+
expires_at: string;
|
|
498
|
+
expires_in_seconds: number;
|
|
499
|
+
heartbeat_interval_seconds: number;
|
|
500
|
+
protocol: "ando.realtime.v1";
|
|
501
|
+
resume_supported: boolean;
|
|
502
|
+
subscriptions: RealtimeConnectionSubscription[];
|
|
503
|
+
url: string;
|
|
504
|
+
warnings?: RealtimeConnectionWarning[];
|
|
505
|
+
};
|
|
506
|
+
export type PublicApiErrorResponse = {
|
|
507
|
+
error: {
|
|
508
|
+
code: string;
|
|
509
|
+
message: string;
|
|
510
|
+
request_id?: string | null;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
export type PublicApiPageInfo = {
|
|
514
|
+
end_cursor?: string | null;
|
|
515
|
+
has_next_page: boolean;
|
|
516
|
+
has_previous_page?: boolean;
|
|
517
|
+
next_cursor?: string | null;
|
|
518
|
+
previous_cursor?: string | null;
|
|
519
|
+
start_cursor?: string | null;
|
|
520
|
+
};
|
|
521
|
+
export type PublicApiSearchMessageResult = {
|
|
522
|
+
authorWorkspaceMembershipId: string;
|
|
523
|
+
author_id: string;
|
|
524
|
+
author_name: string | null;
|
|
525
|
+
content: string | null;
|
|
526
|
+
conversation_id: string;
|
|
527
|
+
conversation_name: string | null;
|
|
528
|
+
created_at: string;
|
|
529
|
+
id: string;
|
|
530
|
+
image_urls: string[];
|
|
531
|
+
replies_count: number;
|
|
532
|
+
};
|
|
533
|
+
export type RealtimeAckError = {
|
|
534
|
+
code: string;
|
|
535
|
+
message?: string;
|
|
536
|
+
};
|
|
537
|
+
export type RealtimeAckFrame = {
|
|
538
|
+
envelope_id: string;
|
|
539
|
+
error?: RealtimeAckError;
|
|
540
|
+
};
|
|
541
|
+
export type RealtimeConnectionSubscription = {
|
|
542
|
+
delivery: RealtimeDelivery;
|
|
543
|
+
events: RealtimeEventType[];
|
|
544
|
+
id: string;
|
|
545
|
+
target: RealtimeObjectTarget;
|
|
546
|
+
};
|
|
547
|
+
export type RealtimeConnectionSubscriptionRequest = {
|
|
548
|
+
delivery: RealtimeDelivery;
|
|
549
|
+
events: RealtimeEventType[];
|
|
550
|
+
target: RealtimeTarget;
|
|
551
|
+
};
|
|
552
|
+
export type RealtimeConnectionWarning = {
|
|
553
|
+
code: "resume_failed" | "resume_unavailable";
|
|
554
|
+
message: string;
|
|
555
|
+
};
|
|
556
|
+
export type RealtimeDelivery = "mentions";
|
|
557
|
+
export type RealtimeDisconnectFrame = {
|
|
558
|
+
reason: "server_restart" | "deploy_draining" | "connection_max_age" | "backpressure" | "temporary_unavailable" | "refresh_requested" | "invalid_ticket" | "expired_ticket" | "revoked_api_key" | "missing_scope" | "unsupported_subscription" | "policy_violation";
|
|
559
|
+
retry_after_seconds?: number;
|
|
560
|
+
type: "disconnect";
|
|
561
|
+
};
|
|
562
|
+
export type RealtimeEventFrame = {
|
|
563
|
+
accepts_response_payload: boolean;
|
|
564
|
+
cursor: string;
|
|
565
|
+
envelope_id: string;
|
|
566
|
+
payload: RealtimeProductEventEnvelope;
|
|
567
|
+
subscription_id: string;
|
|
568
|
+
type: "event";
|
|
569
|
+
};
|
|
570
|
+
export type RealtimeEventType = "message.created";
|
|
571
|
+
export type RealtimeHelloFrame = {
|
|
572
|
+
connection_id: string;
|
|
573
|
+
heartbeat_interval_seconds: number;
|
|
574
|
+
resume_supported: boolean;
|
|
575
|
+
subscriptions: RealtimeConnectionSubscription[];
|
|
576
|
+
type: "hello";
|
|
577
|
+
warnings?: RealtimeConnectionWarning[];
|
|
578
|
+
};
|
|
579
|
+
export type RealtimeObjectTarget = {
|
|
580
|
+
id: string;
|
|
581
|
+
type: "workspace" | "workspace_membership" | "conversation" | "call" | "agent_run";
|
|
582
|
+
};
|
|
583
|
+
export type RealtimeProductEventData = {
|
|
584
|
+
object: Record<string, unknown>;
|
|
585
|
+
};
|
|
586
|
+
export type RealtimeProductEventEnvelope = {
|
|
587
|
+
api_version: string;
|
|
588
|
+
data: RealtimeProductEventData;
|
|
589
|
+
id: string;
|
|
590
|
+
related: Record<string, unknown>;
|
|
591
|
+
type: RealtimeEventType;
|
|
592
|
+
};
|
|
593
|
+
export type RealtimeResumeRequest = {
|
|
594
|
+
cursor: string;
|
|
595
|
+
};
|
|
596
|
+
export type RealtimeServerFrame = RealtimeHelloFrame | RealtimeEventFrame | RealtimeDisconnectFrame;
|
|
597
|
+
export type RealtimeTarget = "self" | RealtimeObjectTarget;
|
|
598
|
+
export type RecordTaskUpdateBody = {
|
|
599
|
+
entry: {
|
|
600
|
+
author_kind: TaskEntryAuthorKind;
|
|
601
|
+
author_label: string;
|
|
602
|
+
body_markdown?: string | null;
|
|
603
|
+
kind: TaskEntryKind;
|
|
604
|
+
run_id?: string | null;
|
|
605
|
+
source_message_id?: string | null;
|
|
606
|
+
};
|
|
607
|
+
expected_state_version?: number;
|
|
608
|
+
resource_ops?: TaskResourceOperation[];
|
|
609
|
+
task_patch?: {
|
|
610
|
+
phase?: TaskPhase;
|
|
611
|
+
summary?: string | null;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
export type RecordTaskUpdateResponse = {
|
|
615
|
+
changed_resources: TaskResourceResult[];
|
|
616
|
+
entry: TaskEntryResult;
|
|
617
|
+
task: TaskResult;
|
|
618
|
+
};
|
|
619
|
+
export type RotateWebhookEndpointSecretBody = {
|
|
620
|
+
previous_secret_ttl_seconds?: number;
|
|
621
|
+
};
|
|
622
|
+
export type SearchCallsResponse = {
|
|
623
|
+
data: {
|
|
624
|
+
items: CallResult[];
|
|
625
|
+
};
|
|
626
|
+
items: CallResult[];
|
|
627
|
+
};
|
|
628
|
+
export type SearchClipboardResponse = {
|
|
629
|
+
items: ClipboardResult[];
|
|
630
|
+
};
|
|
631
|
+
export type SearchConversationsResponse = {
|
|
632
|
+
data: {
|
|
633
|
+
items: ConversationResult[];
|
|
634
|
+
};
|
|
635
|
+
items: ConversationResult[];
|
|
636
|
+
};
|
|
637
|
+
export type SearchMembersResponse = {
|
|
638
|
+
data: {
|
|
639
|
+
items: MemberResult[];
|
|
640
|
+
};
|
|
641
|
+
items: MemberResult[];
|
|
642
|
+
};
|
|
643
|
+
export type SearchMessagesResponse = {
|
|
644
|
+
data: {
|
|
645
|
+
items: PublicApiSearchMessageResult[];
|
|
646
|
+
};
|
|
647
|
+
items: PublicApiSearchMessageResult[];
|
|
648
|
+
};
|
|
649
|
+
export type SearchTasksResponse = {
|
|
650
|
+
data: {
|
|
651
|
+
items: TaskResult[];
|
|
652
|
+
};
|
|
653
|
+
items: TaskResult[];
|
|
654
|
+
};
|
|
655
|
+
export type TaskContextResponse = {
|
|
656
|
+
entries: TaskEntryResult[];
|
|
657
|
+
resources: TaskResourceResult[];
|
|
658
|
+
task: TaskResult;
|
|
659
|
+
};
|
|
660
|
+
export type TaskEntryAuthorKind = "member" | "managed_agent" | "connected_agent" | "local_agent" | "system";
|
|
661
|
+
export type TaskEntryKind = "memory" | "note" | "worklog" | "checkpoint" | "handoff";
|
|
662
|
+
export type TaskEntryResult = {
|
|
663
|
+
author_kind: TaskEntryAuthorKind;
|
|
664
|
+
author_label: string;
|
|
665
|
+
authorWorkspaceMembershipId: string | null;
|
|
666
|
+
author_member_id: string | null;
|
|
667
|
+
body_markdown: string | null;
|
|
668
|
+
created_at: string;
|
|
669
|
+
id: string;
|
|
670
|
+
kind: TaskEntryKind;
|
|
671
|
+
run_id: string | null;
|
|
672
|
+
source_message_id: string | null;
|
|
673
|
+
task_id: string;
|
|
674
|
+
updated_at: string;
|
|
675
|
+
workspace_id: string;
|
|
676
|
+
};
|
|
677
|
+
export type TaskPhase = "idea" | "building" | "review" | "done";
|
|
678
|
+
export type TaskResourceOperation = {
|
|
679
|
+
label: string;
|
|
680
|
+
op: "add";
|
|
681
|
+
url: string;
|
|
682
|
+
} | {
|
|
683
|
+
label?: string;
|
|
684
|
+
op: "update";
|
|
685
|
+
resource_id: string;
|
|
686
|
+
url?: string;
|
|
687
|
+
} | {
|
|
688
|
+
op: "archive";
|
|
689
|
+
resource_id: string;
|
|
690
|
+
};
|
|
691
|
+
export type TaskResourceResult = {
|
|
692
|
+
archived_at: string | null;
|
|
693
|
+
created_at: string;
|
|
694
|
+
created_by_entry_id: string | null;
|
|
695
|
+
id: string;
|
|
696
|
+
label: string;
|
|
697
|
+
task_id: string;
|
|
698
|
+
updated_at: string;
|
|
699
|
+
url: string;
|
|
700
|
+
workspace_id: string;
|
|
701
|
+
};
|
|
702
|
+
export type TaskResult = {
|
|
703
|
+
conversation_id: string | null;
|
|
704
|
+
conversation_name: string | null;
|
|
705
|
+
created_at: string;
|
|
706
|
+
creatorWorkspaceMembershipId: string | null;
|
|
707
|
+
creator_member_id: string | null;
|
|
708
|
+
id: string;
|
|
709
|
+
last_activity_at: string;
|
|
710
|
+
name: string;
|
|
711
|
+
objective: string;
|
|
712
|
+
phase: TaskPhase;
|
|
713
|
+
state_version: number;
|
|
714
|
+
summary: string | null;
|
|
715
|
+
updated_at: string;
|
|
716
|
+
};
|
|
717
|
+
export type ThreadRepliesData = {
|
|
718
|
+
conversation_id: string;
|
|
719
|
+
conversation_name: string | null;
|
|
720
|
+
items: MessageResult[];
|
|
721
|
+
page_info: PublicApiPageInfo;
|
|
722
|
+
thread_root_id: string;
|
|
723
|
+
};
|
|
724
|
+
export type ThreadRepliesResponse = {
|
|
725
|
+
conversation_id: string;
|
|
726
|
+
conversation_name: string | null;
|
|
727
|
+
data: ThreadRepliesData;
|
|
728
|
+
items: MessageResult[];
|
|
729
|
+
pageInfo: LegacyPageInfo;
|
|
730
|
+
thread_root_id: string;
|
|
731
|
+
};
|
|
732
|
+
export type UpdateWebhookEndpointBody = {
|
|
733
|
+
enabled_events?: ("message.created" | "message.updated" | "conversation.membership.created" | "conversation.archived" | "conversation.unarchived" | "call.started" | "call.ended" | "call.updated" | "call.transcript.updated" | "webhook.test")[];
|
|
734
|
+
name?: string | null;
|
|
735
|
+
status?: "active" | "disabled";
|
|
736
|
+
url?: string;
|
|
737
|
+
};
|
|
738
|
+
export type WebhookDelivery = {
|
|
739
|
+
api_version: string;
|
|
740
|
+
attempt_count: number;
|
|
741
|
+
created_at: string;
|
|
742
|
+
endpoint_enabled_events: ("message.created" | "message.updated" | "conversation.membership.created" | "conversation.archived" | "conversation.unarchived" | "call.started" | "call.ended" | "call.updated" | "call.transcript.updated" | "webhook.test")[];
|
|
743
|
+
endpoint_id: string;
|
|
744
|
+
endpoint_signing_secret_prefix: string | null;
|
|
745
|
+
endpoint_status: "active" | "disabled";
|
|
746
|
+
endpoint_url: string | null;
|
|
747
|
+
event_id: string;
|
|
748
|
+
event_type: "message.created" | "message.updated" | "conversation.membership.created" | "conversation.archived" | "conversation.unarchived" | "call.started" | "call.ended" | "call.updated" | "call.transcript.updated" | "webhook.test";
|
|
749
|
+
failed_at: string | null;
|
|
750
|
+
first_attempted_at: string | null;
|
|
751
|
+
id: string;
|
|
752
|
+
last_attempted_at: string | null;
|
|
753
|
+
last_error_code: string | null;
|
|
754
|
+
last_error_message: string | null;
|
|
755
|
+
last_http_status: number | null;
|
|
756
|
+
max_attempts: number;
|
|
757
|
+
next_attempt_at: string | null;
|
|
758
|
+
object: "webhook_delivery";
|
|
759
|
+
replayable: boolean;
|
|
760
|
+
status: "pending" | "scheduled" | "in_flight" | "succeeded" | "retrying" | "failed" | "skipped";
|
|
761
|
+
succeeded_at: string | null;
|
|
762
|
+
updated_at: string;
|
|
763
|
+
workspace_id: string;
|
|
764
|
+
};
|
|
765
|
+
export type WebhookDeliveryListResponse = {
|
|
766
|
+
data: {
|
|
767
|
+
items: WebhookDelivery[];
|
|
768
|
+
};
|
|
769
|
+
items: WebhookDelivery[];
|
|
770
|
+
};
|
|
771
|
+
export type WebhookEndpoint = {
|
|
772
|
+
created_at: string;
|
|
773
|
+
disabled_at: string | null;
|
|
774
|
+
enabled_events: ("message.created" | "message.updated" | "conversation.membership.created" | "conversation.archived" | "conversation.unarchived" | "call.started" | "call.ended" | "call.updated" | "call.transcript.updated" | "webhook.test")[];
|
|
775
|
+
id: string;
|
|
776
|
+
name: string | null;
|
|
777
|
+
object: "webhook_endpoint";
|
|
778
|
+
previous_signing_secret_expires_at: string | null;
|
|
779
|
+
signing_secret_prefix: string;
|
|
780
|
+
status: "active" | "disabled";
|
|
781
|
+
updated_at: string;
|
|
782
|
+
url: string;
|
|
783
|
+
workspace_id: string;
|
|
784
|
+
};
|
|
785
|
+
export type WebhookEndpointDeliverySummary = {
|
|
786
|
+
failed_count: number;
|
|
787
|
+
in_flight_count: number;
|
|
788
|
+
latest_attempted_at: string | null;
|
|
789
|
+
latest_delivery_id: string | null;
|
|
790
|
+
latest_delivery_status: "pending" | "scheduled" | "in_flight" | "succeeded" | "retrying" | "failed" | "skipped";
|
|
791
|
+
latest_failed_at: string | null;
|
|
792
|
+
latest_succeeded_at: string | null;
|
|
793
|
+
pending_count: number;
|
|
794
|
+
recent_count: number;
|
|
795
|
+
retrying_count: number;
|
|
796
|
+
scheduled_count: number;
|
|
797
|
+
skipped_count: number;
|
|
798
|
+
succeeded_count: number;
|
|
799
|
+
};
|
|
800
|
+
export type WebhookEndpointDetail = {
|
|
801
|
+
created_at: string;
|
|
802
|
+
disabled_at: string | null;
|
|
803
|
+
enabled_events: ("message.created" | "message.updated" | "conversation.membership.created" | "conversation.archived" | "conversation.unarchived" | "call.started" | "call.ended" | "call.updated" | "call.transcript.updated" | "webhook.test")[];
|
|
804
|
+
id: string;
|
|
805
|
+
name: string | null;
|
|
806
|
+
object: "webhook_endpoint";
|
|
807
|
+
previous_signing_secret_expires_at: string | null;
|
|
808
|
+
signing_secret_prefix: string;
|
|
809
|
+
status: "active" | "disabled";
|
|
810
|
+
updated_at: string;
|
|
811
|
+
url: string;
|
|
812
|
+
workspace_id: string;
|
|
813
|
+
delivery_summary: WebhookEndpointDeliverySummary;
|
|
814
|
+
};
|
|
815
|
+
export type WebhookEndpointDetailResponse = {
|
|
816
|
+
data: WebhookEndpointDetail;
|
|
817
|
+
};
|
|
818
|
+
export type WebhookEndpointListResponse = {
|
|
819
|
+
data: {
|
|
820
|
+
items: WebhookEndpoint[];
|
|
821
|
+
};
|
|
822
|
+
items: WebhookEndpoint[];
|
|
823
|
+
};
|
|
824
|
+
export type WebhookEndpointResponse = {
|
|
825
|
+
data: WebhookEndpoint;
|
|
826
|
+
};
|
|
827
|
+
export type WebhookEndpointSecret = {
|
|
828
|
+
created_at: string;
|
|
829
|
+
disabled_at: string | null;
|
|
830
|
+
enabled_events: ("message.created" | "message.updated" | "conversation.membership.created" | "conversation.archived" | "conversation.unarchived" | "call.started" | "call.ended" | "call.updated" | "call.transcript.updated" | "webhook.test")[];
|
|
831
|
+
id: string;
|
|
832
|
+
name: string | null;
|
|
833
|
+
object: "webhook_endpoint";
|
|
834
|
+
previous_signing_secret_expires_at: string | null;
|
|
835
|
+
signing_secret_prefix: string;
|
|
836
|
+
status: "active" | "disabled";
|
|
837
|
+
updated_at: string;
|
|
838
|
+
url: string;
|
|
839
|
+
workspace_id: string;
|
|
840
|
+
signing_secret: string;
|
|
841
|
+
};
|
|
842
|
+
export type WebhookEndpointSecretResponse = {
|
|
843
|
+
data: WebhookEndpointSecret;
|
|
844
|
+
};
|
|
845
|
+
export type WebhookReplayResponse = {
|
|
846
|
+
data: {
|
|
847
|
+
delivery_id: string;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
export type WebhookTestEventResponse = {
|
|
851
|
+
data: {
|
|
852
|
+
delivery_ids: string[];
|
|
853
|
+
event_id: string;
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
//# sourceMappingURL=public-api.d.ts.map
|