@agentuity/server 0.1.16 → 0.1.18
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/api/api.d.ts +11 -6
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/api.js +19 -12
- package/dist/api/api.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/org/env-delete.d.ts.map +1 -1
- package/dist/api/org/env-delete.js.map +1 -1
- package/dist/api/org/env-get.d.ts.map +1 -1
- package/dist/api/org/env-get.js.map +1 -1
- package/dist/api/org/env-update.d.ts.map +1 -1
- package/dist/api/org/env-update.js.map +1 -1
- package/dist/api/queue/analytics.d.ts +108 -0
- package/dist/api/queue/analytics.d.ts.map +1 -0
- package/dist/api/queue/analytics.js +245 -0
- package/dist/api/queue/analytics.js.map +1 -0
- package/dist/api/queue/destinations.d.ts +108 -0
- package/dist/api/queue/destinations.d.ts.map +1 -0
- package/dist/api/queue/destinations.js +238 -0
- package/dist/api/queue/destinations.js.map +1 -0
- package/dist/api/queue/dlq.d.ts +100 -0
- package/dist/api/queue/dlq.d.ts.map +1 -0
- package/dist/api/queue/dlq.js +204 -0
- package/dist/api/queue/dlq.js.map +1 -0
- package/dist/api/queue/index.d.ts +55 -0
- package/dist/api/queue/index.d.ts.map +1 -0
- package/dist/api/queue/index.js +86 -0
- package/dist/api/queue/index.js.map +1 -0
- package/dist/api/queue/messages.d.ts +332 -0
- package/dist/api/queue/messages.d.ts.map +1 -0
- package/dist/api/queue/messages.js +637 -0
- package/dist/api/queue/messages.js.map +1 -0
- package/dist/api/queue/queues.d.ts +153 -0
- package/dist/api/queue/queues.d.ts.map +1 -0
- package/dist/api/queue/queues.js +319 -0
- package/dist/api/queue/queues.js.map +1 -0
- package/dist/api/queue/sources.d.ts +132 -0
- package/dist/api/queue/sources.d.ts.map +1 -0
- package/dist/api/queue/sources.js +285 -0
- package/dist/api/queue/sources.js.map +1 -0
- package/dist/api/queue/types.d.ts +1129 -0
- package/dist/api/queue/types.d.ts.map +1 -0
- package/dist/api/queue/types.js +949 -0
- package/dist/api/queue/types.js.map +1 -0
- package/dist/api/queue/util.d.ts +262 -0
- package/dist/api/queue/util.d.ts.map +1 -0
- package/dist/api/queue/util.js +171 -0
- package/dist/api/queue/util.js.map +1 -0
- package/dist/api/queue/validation.d.ts +247 -0
- package/dist/api/queue/validation.d.ts.map +1 -0
- package/dist/api/queue/validation.js +513 -0
- package/dist/api/queue/validation.js.map +1 -0
- package/dist/api/sandbox/get.d.ts.map +1 -1
- package/dist/api/sandbox/get.js +5 -0
- package/dist/api/sandbox/get.js.map +1 -1
- package/dist/api/sandbox/index.d.ts +3 -3
- package/dist/api/sandbox/index.d.ts.map +1 -1
- package/dist/api/sandbox/index.js +1 -1
- package/dist/api/sandbox/index.js.map +1 -1
- package/dist/api/sandbox/run.d.ts.map +1 -1
- package/dist/api/sandbox/run.js +5 -2
- package/dist/api/sandbox/run.js.map +1 -1
- package/dist/api/sandbox/snapshot-build.d.ts +2 -0
- package/dist/api/sandbox/snapshot-build.d.ts.map +1 -1
- package/dist/api/sandbox/snapshot-build.js +4 -0
- package/dist/api/sandbox/snapshot-build.js.map +1 -1
- package/dist/api/sandbox/snapshot.d.ts +143 -1
- package/dist/api/sandbox/snapshot.d.ts.map +1 -1
- package/dist/api/sandbox/snapshot.js +183 -4
- package/dist/api/sandbox/snapshot.js.map +1 -1
- package/package.json +4 -4
- package/src/api/api.ts +62 -13
- package/src/api/index.ts +1 -0
- package/src/api/org/env-delete.ts +1 -4
- package/src/api/org/env-get.ts +1 -4
- package/src/api/org/env-update.ts +1 -4
- package/src/api/queue/analytics.ts +313 -0
- package/src/api/queue/destinations.ts +321 -0
- package/src/api/queue/dlq.ts +283 -0
- package/src/api/queue/index.ts +261 -0
- package/src/api/queue/messages.ts +875 -0
- package/src/api/queue/queues.ts +448 -0
- package/src/api/queue/sources.ts +384 -0
- package/src/api/queue/types.ts +1253 -0
- package/src/api/queue/util.ts +204 -0
- package/src/api/queue/validation.ts +560 -0
- package/src/api/sandbox/get.ts +5 -0
- package/src/api/sandbox/index.ts +13 -1
- package/src/api/sandbox/run.ts +5 -2
- package/src/api/sandbox/snapshot-build.ts +4 -0
- package/src/api/sandbox/snapshot.ts +223 -5
|
@@ -0,0 +1,1129 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Queue type schema for validation.
|
|
4
|
+
*
|
|
5
|
+
* - `worker`: Messages are consumed by workers with acknowledgment. Each message is processed by exactly one consumer.
|
|
6
|
+
* - `pubsub`: Messages are broadcast to all subscribers. Multiple consumers can receive the same message.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const queueType = QueueTypeSchema.parse('worker'); // 'worker' | 'pubsub'
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare const QueueTypeSchema: z.ZodEnum<{
|
|
14
|
+
worker: "worker";
|
|
15
|
+
pubsub: "pubsub";
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Queue type - either 'worker' for task queues or 'pubsub' for broadcast messaging.
|
|
19
|
+
*/
|
|
20
|
+
export type QueueType = z.infer<typeof QueueTypeSchema>;
|
|
21
|
+
/**
|
|
22
|
+
* Queue settings schema for configuring queue behavior.
|
|
23
|
+
*
|
|
24
|
+
* These settings control message lifecycle, retry behavior, and concurrency limits.
|
|
25
|
+
* This schema includes defaults and is used for output types and documentation.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* const settings = QueueSettingsSchema.parse({
|
|
30
|
+
* default_ttl_seconds: 3600, // Messages expire after 1 hour
|
|
31
|
+
* default_visibility_timeout_seconds: 60, // Processing timeout
|
|
32
|
+
* default_max_retries: 3, // Retry failed messages 3 times
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const QueueSettingsSchema: z.ZodObject<{
|
|
37
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
default_visibility_timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
default_max_retries: z.ZodDefault<z.ZodNumber>;
|
|
40
|
+
default_retry_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
41
|
+
default_retry_max_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
42
|
+
default_retry_multiplier: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
max_in_flight_per_client: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
retention_seconds: z.ZodDefault<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
/**
|
|
47
|
+
* Queue settings configuration type.
|
|
48
|
+
*/
|
|
49
|
+
export type QueueSettings = z.infer<typeof QueueSettingsSchema>;
|
|
50
|
+
/**
|
|
51
|
+
* Queue statistics schema showing current queue state.
|
|
52
|
+
*/
|
|
53
|
+
export declare const QueueStatsSchema: z.ZodObject<{
|
|
54
|
+
message_count: z.ZodNumber;
|
|
55
|
+
dlq_count: z.ZodNumber;
|
|
56
|
+
next_offset: z.ZodNumber;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
/**
|
|
59
|
+
* Queue statistics type.
|
|
60
|
+
*/
|
|
61
|
+
export type QueueStats = z.infer<typeof QueueStatsSchema>;
|
|
62
|
+
/**
|
|
63
|
+
* Queue schema representing a message queue.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* const queue = await getQueue(client, 'my-queue');
|
|
68
|
+
* console.log(`Queue ${queue.name} has ${queue.message_count} messages`);
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare const QueueSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
queue_type: z.ZodEnum<{
|
|
76
|
+
worker: "worker";
|
|
77
|
+
pubsub: "pubsub";
|
|
78
|
+
}>;
|
|
79
|
+
default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
80
|
+
default_visibility_timeout_seconds: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
default_max_retries: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
default_retry_backoff_ms: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
default_retry_max_backoff_ms: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
default_retry_multiplier: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
max_in_flight_per_client: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
next_offset: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
message_count: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
dlq_count: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
created_at: z.ZodString;
|
|
90
|
+
updated_at: z.ZodString;
|
|
91
|
+
paused_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
retention_seconds: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
/**
|
|
95
|
+
* Queue type representing a message queue instance.
|
|
96
|
+
*/
|
|
97
|
+
export type Queue = z.infer<typeof QueueSchema>;
|
|
98
|
+
/**
|
|
99
|
+
* Message state schema for tracking message lifecycle.
|
|
100
|
+
*
|
|
101
|
+
* - `pending`: Message is waiting to be processed.
|
|
102
|
+
* - `leased`: Message has been received and is currently being processed by a consumer.
|
|
103
|
+
* - `processing`: Message has been received and is being processed (legacy, equivalent to leased).
|
|
104
|
+
* - `delivered`: Message was successfully acknowledged.
|
|
105
|
+
* - `failed`: Message processing failed but may be retried.
|
|
106
|
+
* - `dead`: Message exceeded retry limit and was moved to DLQ.
|
|
107
|
+
*/
|
|
108
|
+
export declare const MessageStateSchema: z.ZodEnum<{
|
|
109
|
+
pending: "pending";
|
|
110
|
+
failed: "failed";
|
|
111
|
+
leased: "leased";
|
|
112
|
+
processing: "processing";
|
|
113
|
+
delivered: "delivered";
|
|
114
|
+
dead: "dead";
|
|
115
|
+
}>;
|
|
116
|
+
/**
|
|
117
|
+
* Message state type.
|
|
118
|
+
*/
|
|
119
|
+
export type MessageState = z.infer<typeof MessageStateSchema>;
|
|
120
|
+
/**
|
|
121
|
+
* Message schema representing a queue message.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```typescript
|
|
125
|
+
* const message = await publishMessage(client, 'my-queue', { payload: 'Hello' });
|
|
126
|
+
* console.log(`Published message ${message.id} at offset ${message.offset}`);
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
export declare const MessageSchema: z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
queue_id: z.ZodString;
|
|
132
|
+
offset: z.ZodNumber;
|
|
133
|
+
payload: z.ZodUnknown;
|
|
134
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
136
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
pending: "pending";
|
|
138
|
+
failed: "failed";
|
|
139
|
+
leased: "leased";
|
|
140
|
+
processing: "processing";
|
|
141
|
+
delivered: "delivered";
|
|
142
|
+
dead: "dead";
|
|
143
|
+
}>>;
|
|
144
|
+
idempotency_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
partition_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
147
|
+
delivery_attempts: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
max_retries: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
published_at: z.ZodOptional<z.ZodString>;
|
|
150
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
delivered_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
|
+
acknowledged_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
154
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
/**
|
|
157
|
+
* Message type representing a queue message.
|
|
158
|
+
*/
|
|
159
|
+
export type Message = z.infer<typeof MessageSchema>;
|
|
160
|
+
/**
|
|
161
|
+
* Destination type schema. Currently only HTTP webhooks are supported.
|
|
162
|
+
*/
|
|
163
|
+
export declare const DestinationTypeSchema: z.ZodEnum<{
|
|
164
|
+
http: "http";
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* Destination type.
|
|
168
|
+
*/
|
|
169
|
+
export type DestinationType = z.infer<typeof DestinationTypeSchema>;
|
|
170
|
+
/**
|
|
171
|
+
* HTTP destination configuration schema for webhook delivery.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* const config: HttpDestinationConfig = {
|
|
176
|
+
* url: 'https://api.example.com/webhook',
|
|
177
|
+
* method: 'POST',
|
|
178
|
+
* headers: { 'X-Custom-Header': 'value' },
|
|
179
|
+
* timeout_ms: 10000,
|
|
180
|
+
* retry_policy: { max_attempts: 3 },
|
|
181
|
+
* };
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
export declare const HttpDestinationConfigSchema: z.ZodObject<{
|
|
185
|
+
url: z.ZodString;
|
|
186
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
187
|
+
method: z.ZodDefault<z.ZodString>;
|
|
188
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
189
|
+
retry_policy: z.ZodOptional<z.ZodObject<{
|
|
190
|
+
max_attempts: z.ZodDefault<z.ZodNumber>;
|
|
191
|
+
initial_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
192
|
+
max_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
193
|
+
backoff_multiplier: z.ZodDefault<z.ZodNumber>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
signing: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
197
|
+
secret_key: z.ZodOptional<z.ZodString>;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
/**
|
|
201
|
+
* HTTP destination configuration type.
|
|
202
|
+
*/
|
|
203
|
+
export type HttpDestinationConfig = z.infer<typeof HttpDestinationConfigSchema>;
|
|
204
|
+
/**
|
|
205
|
+
* Destination statistics schema showing delivery metrics.
|
|
206
|
+
*/
|
|
207
|
+
export declare const DestinationStatsSchema: z.ZodObject<{
|
|
208
|
+
total_deliveries: z.ZodNumber;
|
|
209
|
+
successful_deliveries: z.ZodNumber;
|
|
210
|
+
failed_deliveries: z.ZodNumber;
|
|
211
|
+
last_delivery_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
+
last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
/**
|
|
216
|
+
* Destination statistics type.
|
|
217
|
+
*/
|
|
218
|
+
export type DestinationStats = z.infer<typeof DestinationStatsSchema>;
|
|
219
|
+
/**
|
|
220
|
+
* Destination schema representing a webhook endpoint for message delivery.
|
|
221
|
+
*
|
|
222
|
+
* Destinations are attached to queues and automatically receive messages when published.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```typescript
|
|
226
|
+
* const destination = await createDestination(client, 'my-queue', {
|
|
227
|
+
* destination_type: 'http',
|
|
228
|
+
* config: { url: 'https://api.example.com/webhook' },
|
|
229
|
+
* enabled: true,
|
|
230
|
+
* });
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
export declare const DestinationSchema: z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
queue_id: z.ZodString;
|
|
236
|
+
destination_type: z.ZodEnum<{
|
|
237
|
+
http: "http";
|
|
238
|
+
}>;
|
|
239
|
+
config: z.ZodObject<{
|
|
240
|
+
url: z.ZodString;
|
|
241
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
242
|
+
method: z.ZodDefault<z.ZodString>;
|
|
243
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
244
|
+
retry_policy: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
max_attempts: z.ZodDefault<z.ZodNumber>;
|
|
246
|
+
initial_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
247
|
+
max_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
248
|
+
backoff_multiplier: z.ZodDefault<z.ZodNumber>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
signing: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
252
|
+
secret_key: z.ZodOptional<z.ZodString>;
|
|
253
|
+
}, z.core.$strip>>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
enabled: z.ZodBoolean;
|
|
256
|
+
stats: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
total_deliveries: z.ZodNumber;
|
|
258
|
+
successful_deliveries: z.ZodNumber;
|
|
259
|
+
failed_deliveries: z.ZodNumber;
|
|
260
|
+
last_delivery_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
|
+
last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
+
last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
|
+
}, z.core.$strip>>;
|
|
264
|
+
created_at: z.ZodString;
|
|
265
|
+
updated_at: z.ZodString;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
/**
|
|
268
|
+
* Destination type representing a webhook endpoint.
|
|
269
|
+
*/
|
|
270
|
+
export type Destination = z.infer<typeof DestinationSchema>;
|
|
271
|
+
/**
|
|
272
|
+
* Dead letter message schema for messages that failed processing.
|
|
273
|
+
*
|
|
274
|
+
* Messages are moved to the dead letter queue (DLQ) after exceeding the maximum
|
|
275
|
+
* retry limit. They can be inspected, replayed, or deleted.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```typescript
|
|
279
|
+
* const { messages } = await listDeadLetterMessages(client, 'my-queue');
|
|
280
|
+
* for (const msg of messages) {
|
|
281
|
+
* console.log(`Failed message: ${msg.failure_reason}`);
|
|
282
|
+
* await replayDeadLetterMessage(client, 'my-queue', msg.id);
|
|
283
|
+
* }
|
|
284
|
+
* ```
|
|
285
|
+
*/
|
|
286
|
+
export declare const DeadLetterMessageSchema: z.ZodObject<{
|
|
287
|
+
id: z.ZodString;
|
|
288
|
+
queue_id: z.ZodString;
|
|
289
|
+
original_message_id: z.ZodString;
|
|
290
|
+
offset: z.ZodNumber;
|
|
291
|
+
payload: z.ZodUnknown;
|
|
292
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
293
|
+
failure_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
|
+
delivery_attempts: z.ZodNumber;
|
|
295
|
+
moved_at: z.ZodString;
|
|
296
|
+
original_published_at: z.ZodString;
|
|
297
|
+
created_at: z.ZodString;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
/**
|
|
300
|
+
* Dead letter message type.
|
|
301
|
+
*/
|
|
302
|
+
export type DeadLetterMessage = z.infer<typeof DeadLetterMessageSchema>;
|
|
303
|
+
/**
|
|
304
|
+
* Common options for queue API calls.
|
|
305
|
+
*
|
|
306
|
+
* Used to pass organization context when calling from CLI or other
|
|
307
|
+
* contexts where the org is not implicit in the authentication token.
|
|
308
|
+
*/
|
|
309
|
+
export interface QueueApiOptions {
|
|
310
|
+
/**
|
|
311
|
+
* Organization ID for the request.
|
|
312
|
+
* Required when using user authentication (CLI) instead of SDK key.
|
|
313
|
+
*/
|
|
314
|
+
orgId?: string;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Request schema for creating a new queue.
|
|
318
|
+
*
|
|
319
|
+
* @example
|
|
320
|
+
* ```typescript
|
|
321
|
+
* const request: CreateQueueRequest = {
|
|
322
|
+
* name: 'my-worker-queue',
|
|
323
|
+
* queue_type: 'worker',
|
|
324
|
+
* description: 'Processes background jobs',
|
|
325
|
+
* settings: { default_max_retries: 3 },
|
|
326
|
+
* };
|
|
327
|
+
* ```
|
|
328
|
+
*/
|
|
329
|
+
export declare const CreateQueueRequestSchema: z.ZodObject<{
|
|
330
|
+
name: z.ZodOptional<z.ZodString>;
|
|
331
|
+
description: z.ZodOptional<z.ZodString>;
|
|
332
|
+
queue_type: z.ZodEnum<{
|
|
333
|
+
worker: "worker";
|
|
334
|
+
pubsub: "pubsub";
|
|
335
|
+
}>;
|
|
336
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
default_ttl_seconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
338
|
+
default_visibility_timeout_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
339
|
+
default_max_retries: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
340
|
+
default_retry_backoff_ms: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
341
|
+
default_retry_max_backoff_ms: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
342
|
+
default_retry_multiplier: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
343
|
+
max_in_flight_per_client: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
344
|
+
retention_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
345
|
+
}, z.core.$strip>>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
/** Request type for creating a queue. */
|
|
348
|
+
export type CreateQueueRequest = z.infer<typeof CreateQueueRequestSchema>;
|
|
349
|
+
/**
|
|
350
|
+
* Request schema for updating an existing queue.
|
|
351
|
+
*/
|
|
352
|
+
export declare const UpdateQueueRequestSchema: z.ZodObject<{
|
|
353
|
+
description: z.ZodOptional<z.ZodString>;
|
|
354
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
default_ttl_seconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
356
|
+
default_visibility_timeout_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
357
|
+
default_max_retries: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
358
|
+
default_retry_backoff_ms: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
359
|
+
default_retry_max_backoff_ms: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
360
|
+
default_retry_multiplier: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
361
|
+
max_in_flight_per_client: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
362
|
+
retention_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
363
|
+
}, z.core.$strip>>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
/** Request type for updating a queue. */
|
|
366
|
+
export type UpdateQueueRequest = z.infer<typeof UpdateQueueRequestSchema>;
|
|
367
|
+
/**
|
|
368
|
+
* Request schema for listing queues with pagination.
|
|
369
|
+
*/
|
|
370
|
+
export declare const ListQueuesRequestSchema: z.ZodObject<{
|
|
371
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
372
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
/** Request type for listing queues. */
|
|
375
|
+
export type ListQueuesRequest = z.infer<typeof ListQueuesRequestSchema>;
|
|
376
|
+
/**
|
|
377
|
+
* Request schema for publishing a message to a queue.
|
|
378
|
+
*
|
|
379
|
+
* @example
|
|
380
|
+
* ```typescript
|
|
381
|
+
* const request: PublishMessageRequest = {
|
|
382
|
+
* payload: { task: 'process-order', orderId: 123 },
|
|
383
|
+
* metadata: { priority: 'high' },
|
|
384
|
+
* idempotency_key: 'order-123-v1',
|
|
385
|
+
* ttl_seconds: 3600,
|
|
386
|
+
* };
|
|
387
|
+
* ```
|
|
388
|
+
*/
|
|
389
|
+
export declare const PublishMessageRequestSchema: z.ZodObject<{
|
|
390
|
+
payload: z.ZodUnknown;
|
|
391
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
392
|
+
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
393
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
394
|
+
ttl_seconds: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
/** Request type for publishing a message. */
|
|
397
|
+
export type PublishMessageRequest = z.infer<typeof PublishMessageRequestSchema>;
|
|
398
|
+
/**
|
|
399
|
+
* Request schema for batch publishing multiple messages.
|
|
400
|
+
*
|
|
401
|
+
* @example
|
|
402
|
+
* ```typescript
|
|
403
|
+
* const request: BatchPublishMessagesRequest = {
|
|
404
|
+
* messages: [
|
|
405
|
+
* { payload: { task: 'a' } },
|
|
406
|
+
* { payload: { task: 'b' } },
|
|
407
|
+
* ],
|
|
408
|
+
* };
|
|
409
|
+
* ```
|
|
410
|
+
*/
|
|
411
|
+
export declare const BatchPublishMessagesRequestSchema: z.ZodObject<{
|
|
412
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
413
|
+
payload: z.ZodUnknown;
|
|
414
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
415
|
+
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
416
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
417
|
+
ttl_seconds: z.ZodOptional<z.ZodNumber>;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
}, z.core.$strip>;
|
|
420
|
+
/** Request type for batch publishing messages. */
|
|
421
|
+
export type BatchPublishMessagesRequest = z.infer<typeof BatchPublishMessagesRequestSchema>;
|
|
422
|
+
/**
|
|
423
|
+
* Request schema for listing messages with pagination and filtering.
|
|
424
|
+
*/
|
|
425
|
+
export declare const ListMessagesRequestSchema: z.ZodObject<{
|
|
426
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
427
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
428
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
429
|
+
pending: "pending";
|
|
430
|
+
failed: "failed";
|
|
431
|
+
leased: "leased";
|
|
432
|
+
processing: "processing";
|
|
433
|
+
delivered: "delivered";
|
|
434
|
+
dead: "dead";
|
|
435
|
+
}>>;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
/** Request type for listing messages. */
|
|
438
|
+
export type ListMessagesRequest = z.infer<typeof ListMessagesRequestSchema>;
|
|
439
|
+
/**
|
|
440
|
+
* Request schema for consuming messages from a specific offset.
|
|
441
|
+
*/
|
|
442
|
+
export declare const ConsumeMessagesRequestSchema: z.ZodObject<{
|
|
443
|
+
offset: z.ZodNumber;
|
|
444
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
/** Request type for consuming messages. */
|
|
447
|
+
export type ConsumeMessagesRequest = z.infer<typeof ConsumeMessagesRequestSchema>;
|
|
448
|
+
/**
|
|
449
|
+
* Request schema for creating a destination webhook.
|
|
450
|
+
*
|
|
451
|
+
* @example
|
|
452
|
+
* ```typescript
|
|
453
|
+
* const request: CreateDestinationRequest = {
|
|
454
|
+
* destination_type: 'http',
|
|
455
|
+
* config: {
|
|
456
|
+
* url: 'https://api.example.com/webhook',
|
|
457
|
+
* method: 'POST',
|
|
458
|
+
* },
|
|
459
|
+
* enabled: true,
|
|
460
|
+
* };
|
|
461
|
+
* ```
|
|
462
|
+
*/
|
|
463
|
+
export declare const CreateDestinationRequestSchema: z.ZodObject<{
|
|
464
|
+
destination_type: z.ZodEnum<{
|
|
465
|
+
http: "http";
|
|
466
|
+
}>;
|
|
467
|
+
config: z.ZodObject<{
|
|
468
|
+
url: z.ZodString;
|
|
469
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
470
|
+
method: z.ZodDefault<z.ZodString>;
|
|
471
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
472
|
+
retry_policy: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
max_attempts: z.ZodDefault<z.ZodNumber>;
|
|
474
|
+
initial_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
475
|
+
max_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
476
|
+
backoff_multiplier: z.ZodDefault<z.ZodNumber>;
|
|
477
|
+
}, z.core.$strip>>;
|
|
478
|
+
signing: z.ZodOptional<z.ZodObject<{
|
|
479
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
480
|
+
secret_key: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$strip>>;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
484
|
+
}, z.core.$strip>;
|
|
485
|
+
/** Request type for creating a destination. */
|
|
486
|
+
export type CreateDestinationRequest = z.infer<typeof CreateDestinationRequestSchema>;
|
|
487
|
+
/**
|
|
488
|
+
* Request schema for updating a destination.
|
|
489
|
+
*/
|
|
490
|
+
export declare const UpdateDestinationRequestSchema: z.ZodObject<{
|
|
491
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
url: z.ZodOptional<z.ZodString>;
|
|
493
|
+
headers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
494
|
+
method: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
495
|
+
timeout_ms: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
496
|
+
retry_policy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
497
|
+
max_attempts: z.ZodDefault<z.ZodNumber>;
|
|
498
|
+
initial_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
499
|
+
max_backoff_ms: z.ZodDefault<z.ZodNumber>;
|
|
500
|
+
backoff_multiplier: z.ZodDefault<z.ZodNumber>;
|
|
501
|
+
}, z.core.$strip>>>;
|
|
502
|
+
signing: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
503
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
504
|
+
secret_key: z.ZodOptional<z.ZodString>;
|
|
505
|
+
}, z.core.$strip>>>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
}, z.core.$strip>;
|
|
509
|
+
/** Request type for updating a destination. */
|
|
510
|
+
export type UpdateDestinationRequest = z.infer<typeof UpdateDestinationRequestSchema>;
|
|
511
|
+
/**
|
|
512
|
+
* Request schema for listing dead letter queue messages with pagination.
|
|
513
|
+
*/
|
|
514
|
+
export declare const ListDlqRequestSchema: z.ZodObject<{
|
|
515
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
517
|
+
}, z.core.$strip>;
|
|
518
|
+
/** Request type for listing DLQ messages. */
|
|
519
|
+
export type ListDlqRequest = z.infer<typeof ListDlqRequestSchema>;
|
|
520
|
+
/**
|
|
521
|
+
* Time bucket granularity for analytics queries.
|
|
522
|
+
*
|
|
523
|
+
* - `minute`: 1-minute buckets, max range 24 hours. Best for real-time monitoring.
|
|
524
|
+
* - `hour`: 1-hour buckets, max range 7 days. Best for short-term trend analysis.
|
|
525
|
+
* - `day`: 1-day buckets, max range 90 days. Best for long-term analysis.
|
|
526
|
+
*
|
|
527
|
+
* @example
|
|
528
|
+
* ```typescript
|
|
529
|
+
* const analytics = await getQueueAnalytics(client, 'my-queue', {
|
|
530
|
+
* granularity: 'hour',
|
|
531
|
+
* start: '2026-01-14T00:00:00Z',
|
|
532
|
+
* });
|
|
533
|
+
* ```
|
|
534
|
+
*/
|
|
535
|
+
export declare const AnalyticsGranularitySchema: z.ZodEnum<{
|
|
536
|
+
minute: "minute";
|
|
537
|
+
hour: "hour";
|
|
538
|
+
day: "day";
|
|
539
|
+
}>;
|
|
540
|
+
/**
|
|
541
|
+
* Time bucket granularity type.
|
|
542
|
+
*/
|
|
543
|
+
export type AnalyticsGranularity = z.infer<typeof AnalyticsGranularitySchema>;
|
|
544
|
+
/**
|
|
545
|
+
* Options for analytics queries.
|
|
546
|
+
*
|
|
547
|
+
* Use these options to filter and configure analytics requests by time range,
|
|
548
|
+
* granularity, and optional filters like project or agent ID.
|
|
549
|
+
*
|
|
550
|
+
* @example
|
|
551
|
+
* ```typescript
|
|
552
|
+
* const options: AnalyticsOptions = {
|
|
553
|
+
* start: '2026-01-14T00:00:00Z',
|
|
554
|
+
* end: '2026-01-15T00:00:00Z',
|
|
555
|
+
* granularity: 'hour',
|
|
556
|
+
* projectId: 'proj_abc123',
|
|
557
|
+
* };
|
|
558
|
+
* const analytics = await getQueueAnalytics(client, 'my-queue', options);
|
|
559
|
+
* ```
|
|
560
|
+
*/
|
|
561
|
+
export interface AnalyticsOptions extends QueueApiOptions {
|
|
562
|
+
/**
|
|
563
|
+
* Start of time range in ISO8601 format.
|
|
564
|
+
* @default 24 hours ago
|
|
565
|
+
* @example '2026-01-14T00:00:00Z'
|
|
566
|
+
*/
|
|
567
|
+
start?: string;
|
|
568
|
+
/**
|
|
569
|
+
* End of time range in ISO8601 format.
|
|
570
|
+
* @default Current time
|
|
571
|
+
* @example '2026-01-15T00:00:00Z'
|
|
572
|
+
*/
|
|
573
|
+
end?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Time bucket granularity for aggregation.
|
|
576
|
+
* @default 'hour'
|
|
577
|
+
*/
|
|
578
|
+
granularity?: AnalyticsGranularity;
|
|
579
|
+
/**
|
|
580
|
+
* Filter analytics to messages from a specific project.
|
|
581
|
+
* Only messages with matching `project_id` will be included.
|
|
582
|
+
*/
|
|
583
|
+
projectId?: string;
|
|
584
|
+
/**
|
|
585
|
+
* Filter analytics to messages from a specific agent.
|
|
586
|
+
* Only messages with matching `agent_id` will be included.
|
|
587
|
+
*/
|
|
588
|
+
agentId?: string;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Options for real-time SSE streaming analytics.
|
|
592
|
+
*
|
|
593
|
+
* SSE (Server-Sent Events) streams provide live updates of queue statistics
|
|
594
|
+
* at a configurable interval. The stream stays open until closed by the client.
|
|
595
|
+
*
|
|
596
|
+
* @example
|
|
597
|
+
* ```typescript
|
|
598
|
+
* const stream = streamQueueAnalytics(client, 'my-queue', { interval: 5 });
|
|
599
|
+
* for await (const event of stream) {
|
|
600
|
+
* console.log(`Backlog: ${event.backlog}`);
|
|
601
|
+
* }
|
|
602
|
+
* ```
|
|
603
|
+
*/
|
|
604
|
+
export interface StreamAnalyticsOptions extends QueueApiOptions {
|
|
605
|
+
/**
|
|
606
|
+
* Interval between stats updates in seconds.
|
|
607
|
+
* @default 5
|
|
608
|
+
* @minimum 1
|
|
609
|
+
* @maximum 60
|
|
610
|
+
*/
|
|
611
|
+
interval?: number;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Time period for analytics responses.
|
|
615
|
+
*
|
|
616
|
+
* Represents the time range and granularity of the analytics data.
|
|
617
|
+
*/
|
|
618
|
+
export declare const TimePeriodSchema: z.ZodObject<{
|
|
619
|
+
start: z.ZodString;
|
|
620
|
+
end: z.ZodString;
|
|
621
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
622
|
+
minute: "minute";
|
|
623
|
+
hour: "hour";
|
|
624
|
+
day: "day";
|
|
625
|
+
}>>;
|
|
626
|
+
}, z.core.$strip>;
|
|
627
|
+
/**
|
|
628
|
+
* Time period type representing a date range for analytics.
|
|
629
|
+
*/
|
|
630
|
+
export type TimePeriod = z.infer<typeof TimePeriodSchema>;
|
|
631
|
+
/**
|
|
632
|
+
* Latency statistics with percentile distributions.
|
|
633
|
+
*
|
|
634
|
+
* Provides average, percentile (p50, p95, p99), and maximum latency values
|
|
635
|
+
* for message delivery operations.
|
|
636
|
+
*
|
|
637
|
+
* @example
|
|
638
|
+
* ```typescript
|
|
639
|
+
* const { latency } = await getQueueAnalytics(client, 'my-queue');
|
|
640
|
+
* console.log(`Average: ${latency.avg_ms}ms, P95: ${latency.p95_ms}ms`);
|
|
641
|
+
* ```
|
|
642
|
+
*/
|
|
643
|
+
export declare const LatencyStatsSchema: z.ZodObject<{
|
|
644
|
+
avg_ms: z.ZodNumber;
|
|
645
|
+
p50_ms: z.ZodOptional<z.ZodNumber>;
|
|
646
|
+
p95_ms: z.ZodOptional<z.ZodNumber>;
|
|
647
|
+
p99_ms: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
max_ms: z.ZodOptional<z.ZodNumber>;
|
|
649
|
+
}, z.core.$strip>;
|
|
650
|
+
/**
|
|
651
|
+
* Latency statistics type.
|
|
652
|
+
*/
|
|
653
|
+
export type LatencyStats = z.infer<typeof LatencyStatsSchema>;
|
|
654
|
+
/**
|
|
655
|
+
* Current real-time queue state.
|
|
656
|
+
*
|
|
657
|
+
* Represents the instantaneous state of a queue, useful for monitoring
|
|
658
|
+
* dashboards and alerting on queue health.
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* ```typescript
|
|
662
|
+
* const { current } = await getQueueAnalytics(client, 'my-queue');
|
|
663
|
+
* if (current.backlog > 1000) {
|
|
664
|
+
* console.warn('Queue backlog is high!');
|
|
665
|
+
* }
|
|
666
|
+
* ```
|
|
667
|
+
*/
|
|
668
|
+
export declare const QueueCurrentStatsSchema: z.ZodObject<{
|
|
669
|
+
backlog: z.ZodNumber;
|
|
670
|
+
dlq_count: z.ZodNumber;
|
|
671
|
+
messages_in_flight: z.ZodNumber;
|
|
672
|
+
active_consumers: z.ZodNumber;
|
|
673
|
+
oldest_message_age_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
674
|
+
}, z.core.$strip>;
|
|
675
|
+
/**
|
|
676
|
+
* Current queue state type.
|
|
677
|
+
*/
|
|
678
|
+
export type QueueCurrentStats = z.infer<typeof QueueCurrentStatsSchema>;
|
|
679
|
+
/**
|
|
680
|
+
* Aggregated statistics for a time period.
|
|
681
|
+
*
|
|
682
|
+
* Contains counts and metrics aggregated over the requested time range.
|
|
683
|
+
*
|
|
684
|
+
* @example
|
|
685
|
+
* ```typescript
|
|
686
|
+
* const { period_stats } = await getQueueAnalytics(client, 'my-queue');
|
|
687
|
+
* const successRate = period_stats.messages_acknowledged / period_stats.messages_published;
|
|
688
|
+
* console.log(`Success rate: ${(successRate * 100).toFixed(1)}%`);
|
|
689
|
+
* ```
|
|
690
|
+
*/
|
|
691
|
+
export declare const QueuePeriodStatsSchema: z.ZodObject<{
|
|
692
|
+
messages_published: z.ZodNumber;
|
|
693
|
+
messages_delivered: z.ZodNumber;
|
|
694
|
+
messages_acknowledged: z.ZodNumber;
|
|
695
|
+
messages_failed: z.ZodNumber;
|
|
696
|
+
messages_replayed: z.ZodNumber;
|
|
697
|
+
bytes_published: z.ZodNumber;
|
|
698
|
+
delivery_attempts: z.ZodNumber;
|
|
699
|
+
retry_count: z.ZodNumber;
|
|
700
|
+
}, z.core.$strip>;
|
|
701
|
+
/**
|
|
702
|
+
* Period statistics type.
|
|
703
|
+
*/
|
|
704
|
+
export type QueuePeriodStats = z.infer<typeof QueuePeriodStatsSchema>;
|
|
705
|
+
/**
|
|
706
|
+
* Analytics for a webhook destination.
|
|
707
|
+
*
|
|
708
|
+
* Provides delivery statistics for a configured webhook endpoint.
|
|
709
|
+
*
|
|
710
|
+
* @example
|
|
711
|
+
* ```typescript
|
|
712
|
+
* const { destinations } = await getQueueAnalytics(client, 'my-queue');
|
|
713
|
+
* for (const dest of destinations ?? []) {
|
|
714
|
+
* const successRate = dest.success_count / (dest.success_count + dest.failure_count);
|
|
715
|
+
* console.log(`${dest.url}: ${(successRate * 100).toFixed(1)}% success`);
|
|
716
|
+
* }
|
|
717
|
+
* ```
|
|
718
|
+
*/
|
|
719
|
+
export declare const DestinationAnalyticsSchema: z.ZodObject<{
|
|
720
|
+
id: z.ZodString;
|
|
721
|
+
type: z.ZodString;
|
|
722
|
+
url: z.ZodString;
|
|
723
|
+
success_count: z.ZodNumber;
|
|
724
|
+
failure_count: z.ZodNumber;
|
|
725
|
+
avg_response_time_ms: z.ZodOptional<z.ZodNumber>;
|
|
726
|
+
last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
727
|
+
last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
|
+
/**
|
|
730
|
+
* Destination analytics type.
|
|
731
|
+
*/
|
|
732
|
+
export type DestinationAnalytics = z.infer<typeof DestinationAnalyticsSchema>;
|
|
733
|
+
/**
|
|
734
|
+
* Complete analytics for a single queue.
|
|
735
|
+
*
|
|
736
|
+
* Provides comprehensive analytics including current state, period statistics,
|
|
737
|
+
* latency metrics, and destination performance.
|
|
738
|
+
*
|
|
739
|
+
* @example
|
|
740
|
+
* ```typescript
|
|
741
|
+
* const analytics = await getQueueAnalytics(client, 'order-processing');
|
|
742
|
+
* console.log(`Queue: ${analytics.queue_name} (${analytics.queue_type})`);
|
|
743
|
+
* console.log(`Backlog: ${analytics.current.backlog}`);
|
|
744
|
+
* console.log(`Published (24h): ${analytics.period_stats.messages_published}`);
|
|
745
|
+
* console.log(`P95 Latency: ${analytics.latency.p95_ms}ms`);
|
|
746
|
+
* ```
|
|
747
|
+
*/
|
|
748
|
+
export declare const QueueAnalyticsSchema: z.ZodObject<{
|
|
749
|
+
queue_id: z.ZodString;
|
|
750
|
+
queue_name: z.ZodString;
|
|
751
|
+
queue_type: z.ZodString;
|
|
752
|
+
period: z.ZodObject<{
|
|
753
|
+
start: z.ZodString;
|
|
754
|
+
end: z.ZodString;
|
|
755
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
756
|
+
minute: "minute";
|
|
757
|
+
hour: "hour";
|
|
758
|
+
day: "day";
|
|
759
|
+
}>>;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
current: z.ZodObject<{
|
|
762
|
+
backlog: z.ZodNumber;
|
|
763
|
+
dlq_count: z.ZodNumber;
|
|
764
|
+
messages_in_flight: z.ZodNumber;
|
|
765
|
+
active_consumers: z.ZodNumber;
|
|
766
|
+
oldest_message_age_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
period_stats: z.ZodObject<{
|
|
769
|
+
messages_published: z.ZodNumber;
|
|
770
|
+
messages_delivered: z.ZodNumber;
|
|
771
|
+
messages_acknowledged: z.ZodNumber;
|
|
772
|
+
messages_failed: z.ZodNumber;
|
|
773
|
+
messages_replayed: z.ZodNumber;
|
|
774
|
+
bytes_published: z.ZodNumber;
|
|
775
|
+
delivery_attempts: z.ZodNumber;
|
|
776
|
+
retry_count: z.ZodNumber;
|
|
777
|
+
}, z.core.$strip>;
|
|
778
|
+
latency: z.ZodObject<{
|
|
779
|
+
avg_ms: z.ZodNumber;
|
|
780
|
+
p50_ms: z.ZodOptional<z.ZodNumber>;
|
|
781
|
+
p95_ms: z.ZodOptional<z.ZodNumber>;
|
|
782
|
+
p99_ms: z.ZodOptional<z.ZodNumber>;
|
|
783
|
+
max_ms: z.ZodOptional<z.ZodNumber>;
|
|
784
|
+
}, z.core.$strip>;
|
|
785
|
+
consumer_latency: z.ZodObject<{
|
|
786
|
+
avg_ms: z.ZodNumber;
|
|
787
|
+
p50_ms: z.ZodOptional<z.ZodNumber>;
|
|
788
|
+
p95_ms: z.ZodOptional<z.ZodNumber>;
|
|
789
|
+
p99_ms: z.ZodOptional<z.ZodNumber>;
|
|
790
|
+
max_ms: z.ZodOptional<z.ZodNumber>;
|
|
791
|
+
}, z.core.$strip>;
|
|
792
|
+
destinations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
793
|
+
id: z.ZodString;
|
|
794
|
+
type: z.ZodString;
|
|
795
|
+
url: z.ZodString;
|
|
796
|
+
success_count: z.ZodNumber;
|
|
797
|
+
failure_count: z.ZodNumber;
|
|
798
|
+
avg_response_time_ms: z.ZodOptional<z.ZodNumber>;
|
|
799
|
+
last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
800
|
+
last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
801
|
+
}, z.core.$strip>>>;
|
|
802
|
+
}, z.core.$strip>;
|
|
803
|
+
/**
|
|
804
|
+
* Queue analytics type.
|
|
805
|
+
*/
|
|
806
|
+
export type QueueAnalytics = z.infer<typeof QueueAnalyticsSchema>;
|
|
807
|
+
/**
|
|
808
|
+
* Summary statistics for a queue in org-level analytics.
|
|
809
|
+
*
|
|
810
|
+
* Provides a condensed view of queue metrics for listing in dashboards.
|
|
811
|
+
*/
|
|
812
|
+
export declare const QueueSummarySchema: z.ZodObject<{
|
|
813
|
+
id: z.ZodString;
|
|
814
|
+
name: z.ZodString;
|
|
815
|
+
queue_type: z.ZodString;
|
|
816
|
+
messages_published: z.ZodNumber;
|
|
817
|
+
messages_delivered: z.ZodNumber;
|
|
818
|
+
messages_acknowledged: z.ZodNumber;
|
|
819
|
+
backlog: z.ZodNumber;
|
|
820
|
+
dlq_count: z.ZodNumber;
|
|
821
|
+
avg_latency_ms: z.ZodNumber;
|
|
822
|
+
error_rate_percent: z.ZodNumber;
|
|
823
|
+
}, z.core.$strip>;
|
|
824
|
+
/**
|
|
825
|
+
* Queue summary type for org-level listings.
|
|
826
|
+
*/
|
|
827
|
+
export type QueueSummary = z.infer<typeof QueueSummarySchema>;
|
|
828
|
+
/**
|
|
829
|
+
* Aggregated summary across all queues in an organization.
|
|
830
|
+
*
|
|
831
|
+
* @example
|
|
832
|
+
* ```typescript
|
|
833
|
+
* const { summary } = await getOrgAnalytics(client);
|
|
834
|
+
* console.log(`Total queues: ${summary.total_queues}`);
|
|
835
|
+
* console.log(`Total messages: ${summary.total_messages_published}`);
|
|
836
|
+
* console.log(`Error rate: ${summary.error_rate_percent.toFixed(2)}%`);
|
|
837
|
+
* ```
|
|
838
|
+
*/
|
|
839
|
+
export declare const OrgAnalyticsSummarySchema: z.ZodObject<{
|
|
840
|
+
total_queues: z.ZodNumber;
|
|
841
|
+
total_messages_published: z.ZodNumber;
|
|
842
|
+
total_messages_delivered: z.ZodNumber;
|
|
843
|
+
total_messages_acknowledged: z.ZodNumber;
|
|
844
|
+
total_dlq_messages: z.ZodNumber;
|
|
845
|
+
total_bytes_published: z.ZodNumber;
|
|
846
|
+
avg_latency_ms: z.ZodNumber;
|
|
847
|
+
p95_latency_ms: z.ZodNumber;
|
|
848
|
+
error_rate_percent: z.ZodNumber;
|
|
849
|
+
}, z.core.$strip>;
|
|
850
|
+
/**
|
|
851
|
+
* Org-level analytics summary type.
|
|
852
|
+
*/
|
|
853
|
+
export type OrgAnalyticsSummary = z.infer<typeof OrgAnalyticsSummarySchema>;
|
|
854
|
+
/**
|
|
855
|
+
* Complete organization-level analytics.
|
|
856
|
+
*
|
|
857
|
+
* Provides an overview of all queues with aggregated metrics and per-queue summaries.
|
|
858
|
+
*
|
|
859
|
+
* @example
|
|
860
|
+
* ```typescript
|
|
861
|
+
* const analytics = await getOrgAnalytics(client);
|
|
862
|
+
* console.log(`Org: ${analytics.org_id}`);
|
|
863
|
+
* console.log(`Queues: ${analytics.summary.total_queues}`);
|
|
864
|
+
* for (const queue of analytics.queues) {
|
|
865
|
+
* console.log(` ${queue.name}: ${queue.backlog} pending`);
|
|
866
|
+
* }
|
|
867
|
+
* ```
|
|
868
|
+
*/
|
|
869
|
+
export declare const OrgAnalyticsSchema: z.ZodObject<{
|
|
870
|
+
org_id: z.ZodString;
|
|
871
|
+
period: z.ZodObject<{
|
|
872
|
+
start: z.ZodString;
|
|
873
|
+
end: z.ZodString;
|
|
874
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
875
|
+
minute: "minute";
|
|
876
|
+
hour: "hour";
|
|
877
|
+
day: "day";
|
|
878
|
+
}>>;
|
|
879
|
+
}, z.core.$strip>;
|
|
880
|
+
summary: z.ZodObject<{
|
|
881
|
+
total_queues: z.ZodNumber;
|
|
882
|
+
total_messages_published: z.ZodNumber;
|
|
883
|
+
total_messages_delivered: z.ZodNumber;
|
|
884
|
+
total_messages_acknowledged: z.ZodNumber;
|
|
885
|
+
total_dlq_messages: z.ZodNumber;
|
|
886
|
+
total_bytes_published: z.ZodNumber;
|
|
887
|
+
avg_latency_ms: z.ZodNumber;
|
|
888
|
+
p95_latency_ms: z.ZodNumber;
|
|
889
|
+
error_rate_percent: z.ZodNumber;
|
|
890
|
+
}, z.core.$strip>;
|
|
891
|
+
queues: z.ZodArray<z.ZodObject<{
|
|
892
|
+
id: z.ZodString;
|
|
893
|
+
name: z.ZodString;
|
|
894
|
+
queue_type: z.ZodString;
|
|
895
|
+
messages_published: z.ZodNumber;
|
|
896
|
+
messages_delivered: z.ZodNumber;
|
|
897
|
+
messages_acknowledged: z.ZodNumber;
|
|
898
|
+
backlog: z.ZodNumber;
|
|
899
|
+
dlq_count: z.ZodNumber;
|
|
900
|
+
avg_latency_ms: z.ZodNumber;
|
|
901
|
+
error_rate_percent: z.ZodNumber;
|
|
902
|
+
}, z.core.$strip>>;
|
|
903
|
+
}, z.core.$strip>;
|
|
904
|
+
/**
|
|
905
|
+
* Org-level analytics type.
|
|
906
|
+
*/
|
|
907
|
+
export type OrgAnalytics = z.infer<typeof OrgAnalyticsSchema>;
|
|
908
|
+
/**
|
|
909
|
+
* Single data point in a time series.
|
|
910
|
+
*
|
|
911
|
+
* Represents metrics for one time bucket (minute, hour, or day).
|
|
912
|
+
* Used for building charts and visualizing trends over time.
|
|
913
|
+
*
|
|
914
|
+
* @example
|
|
915
|
+
* ```typescript
|
|
916
|
+
* const { series } = await getQueueTimeSeries(client, 'my-queue', { granularity: 'hour' });
|
|
917
|
+
* for (const point of series) {
|
|
918
|
+
* console.log(`${point.timestamp}: ${point.throughput} msg/h, ${point.avg_latency_ms}ms avg`);
|
|
919
|
+
* }
|
|
920
|
+
* ```
|
|
921
|
+
*/
|
|
922
|
+
export declare const TimeSeriesPointSchema: z.ZodObject<{
|
|
923
|
+
timestamp: z.ZodString;
|
|
924
|
+
throughput: z.ZodNumber;
|
|
925
|
+
delivery_rate: z.ZodNumber;
|
|
926
|
+
ack_rate: z.ZodNumber;
|
|
927
|
+
error_rate: z.ZodNumber;
|
|
928
|
+
avg_latency_ms: z.ZodNumber;
|
|
929
|
+
p95_latency_ms: z.ZodOptional<z.ZodNumber>;
|
|
930
|
+
backlog: z.ZodOptional<z.ZodNumber>;
|
|
931
|
+
messages_in_flight: z.ZodOptional<z.ZodNumber>;
|
|
932
|
+
}, z.core.$strip>;
|
|
933
|
+
/**
|
|
934
|
+
* Time series data point type.
|
|
935
|
+
*/
|
|
936
|
+
export type TimeSeriesPoint = z.infer<typeof TimeSeriesPointSchema>;
|
|
937
|
+
/**
|
|
938
|
+
* Time series analytics data for charting and visualization.
|
|
939
|
+
*
|
|
940
|
+
* Contains an array of data points at the requested granularity for building
|
|
941
|
+
* time-based charts and dashboards.
|
|
942
|
+
*
|
|
943
|
+
* @example
|
|
944
|
+
* ```typescript
|
|
945
|
+
* const timeseries = await getQueueTimeSeries(client, 'order-processing', {
|
|
946
|
+
* granularity: 'hour',
|
|
947
|
+
* start: '2026-01-14T00:00:00Z',
|
|
948
|
+
* end: '2026-01-15T00:00:00Z',
|
|
949
|
+
* });
|
|
950
|
+
*
|
|
951
|
+
* // Plot throughput over time
|
|
952
|
+
* const chartData = timeseries.series.map(p => ({
|
|
953
|
+
* x: new Date(p.timestamp),
|
|
954
|
+
* y: p.throughput,
|
|
955
|
+
* }));
|
|
956
|
+
* ```
|
|
957
|
+
*/
|
|
958
|
+
export declare const TimeSeriesDataSchema: z.ZodObject<{
|
|
959
|
+
queue_id: z.ZodString;
|
|
960
|
+
queue_name: z.ZodString;
|
|
961
|
+
period: z.ZodObject<{
|
|
962
|
+
start: z.ZodString;
|
|
963
|
+
end: z.ZodString;
|
|
964
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
965
|
+
minute: "minute";
|
|
966
|
+
hour: "hour";
|
|
967
|
+
day: "day";
|
|
968
|
+
}>>;
|
|
969
|
+
}, z.core.$strip>;
|
|
970
|
+
series: z.ZodArray<z.ZodObject<{
|
|
971
|
+
timestamp: z.ZodString;
|
|
972
|
+
throughput: z.ZodNumber;
|
|
973
|
+
delivery_rate: z.ZodNumber;
|
|
974
|
+
ack_rate: z.ZodNumber;
|
|
975
|
+
error_rate: z.ZodNumber;
|
|
976
|
+
avg_latency_ms: z.ZodNumber;
|
|
977
|
+
p95_latency_ms: z.ZodOptional<z.ZodNumber>;
|
|
978
|
+
backlog: z.ZodOptional<z.ZodNumber>;
|
|
979
|
+
messages_in_flight: z.ZodOptional<z.ZodNumber>;
|
|
980
|
+
}, z.core.$strip>>;
|
|
981
|
+
}, z.core.$strip>;
|
|
982
|
+
/**
|
|
983
|
+
* Time series data type.
|
|
984
|
+
*/
|
|
985
|
+
export type TimeSeriesData = z.infer<typeof TimeSeriesDataSchema>;
|
|
986
|
+
/**
|
|
987
|
+
* Real-time stats event from SSE stream.
|
|
988
|
+
*
|
|
989
|
+
* Represents a single snapshot of queue statistics delivered via Server-Sent Events.
|
|
990
|
+
* Events are pushed at the interval specified when opening the stream.
|
|
991
|
+
*
|
|
992
|
+
* @example
|
|
993
|
+
* ```typescript
|
|
994
|
+
* const stream = streamQueueAnalytics(client, 'my-queue', { interval: 5 });
|
|
995
|
+
* for await (const event of stream) {
|
|
996
|
+
* updateDashboard({
|
|
997
|
+
* backlog: event.backlog,
|
|
998
|
+
* throughput: event.throughput_1m,
|
|
999
|
+
* latency: event.avg_latency_ms,
|
|
1000
|
+
* consumers: event.active_consumers,
|
|
1001
|
+
* });
|
|
1002
|
+
* }
|
|
1003
|
+
* ```
|
|
1004
|
+
*/
|
|
1005
|
+
export declare const SSEStatsEventSchema: z.ZodObject<{
|
|
1006
|
+
timestamp: z.ZodString;
|
|
1007
|
+
backlog: z.ZodNumber;
|
|
1008
|
+
messages_in_flight: z.ZodNumber;
|
|
1009
|
+
throughput_1m: z.ZodNumber;
|
|
1010
|
+
delivery_rate_1m: z.ZodNumber;
|
|
1011
|
+
error_rate_1m: z.ZodNumber;
|
|
1012
|
+
avg_latency_ms: z.ZodNumber;
|
|
1013
|
+
active_consumers: z.ZodNumber;
|
|
1014
|
+
}, z.core.$strip>;
|
|
1015
|
+
/**
|
|
1016
|
+
* SSE stats event type for real-time streaming.
|
|
1017
|
+
*/
|
|
1018
|
+
export type SSEStatsEvent = z.infer<typeof SSEStatsEventSchema>;
|
|
1019
|
+
/**
|
|
1020
|
+
* Source authentication type schema.
|
|
1021
|
+
*/
|
|
1022
|
+
export declare const SourceAuthTypeSchema: z.ZodEnum<{
|
|
1023
|
+
none: "none";
|
|
1024
|
+
basic: "basic";
|
|
1025
|
+
header: "header";
|
|
1026
|
+
}>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Source authentication type.
|
|
1029
|
+
*/
|
|
1030
|
+
export type SourceAuthType = z.infer<typeof SourceAuthTypeSchema>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Queue source schema representing an HTTP ingestion endpoint.
|
|
1033
|
+
*
|
|
1034
|
+
* Sources provide public URLs for ingesting data into queues from external sources.
|
|
1035
|
+
* They support various authentication methods to secure access.
|
|
1036
|
+
*
|
|
1037
|
+
* @example
|
|
1038
|
+
* ```typescript
|
|
1039
|
+
* const source = await getSource(client, 'my-queue', 'qsrc_abc123');
|
|
1040
|
+
* console.log(`Source URL: ${source.url}`);
|
|
1041
|
+
* console.log(`Success rate: ${source.success_count}/${source.request_count}`);
|
|
1042
|
+
* ```
|
|
1043
|
+
*/
|
|
1044
|
+
export declare const SourceSchema: z.ZodObject<{
|
|
1045
|
+
id: z.ZodString;
|
|
1046
|
+
queue_id: z.ZodString;
|
|
1047
|
+
name: z.ZodString;
|
|
1048
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1049
|
+
auth_type: z.ZodEnum<{
|
|
1050
|
+
none: "none";
|
|
1051
|
+
basic: "basic";
|
|
1052
|
+
header: "header";
|
|
1053
|
+
}>;
|
|
1054
|
+
enabled: z.ZodBoolean;
|
|
1055
|
+
url: z.ZodString;
|
|
1056
|
+
request_count: z.ZodNumber;
|
|
1057
|
+
success_count: z.ZodNumber;
|
|
1058
|
+
failure_count: z.ZodNumber;
|
|
1059
|
+
last_request_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1060
|
+
last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1061
|
+
last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1062
|
+
last_failure_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1063
|
+
created_at: z.ZodString;
|
|
1064
|
+
updated_at: z.ZodString;
|
|
1065
|
+
}, z.core.$strip>;
|
|
1066
|
+
/**
|
|
1067
|
+
* Queue source type.
|
|
1068
|
+
*/
|
|
1069
|
+
export type Source = z.infer<typeof SourceSchema>;
|
|
1070
|
+
/**
|
|
1071
|
+
* Create source request schema.
|
|
1072
|
+
*
|
|
1073
|
+
* @example
|
|
1074
|
+
* ```typescript
|
|
1075
|
+
* const request: CreateSourceRequest = {
|
|
1076
|
+
* name: 'webhook-ingestion',
|
|
1077
|
+
* description: 'Receives webhooks from external service',
|
|
1078
|
+
* auth_type: 'header',
|
|
1079
|
+
* auth_value: 'Bearer my-secret-token',
|
|
1080
|
+
* };
|
|
1081
|
+
* ```
|
|
1082
|
+
*/
|
|
1083
|
+
export declare const CreateSourceRequestSchema: z.ZodObject<{
|
|
1084
|
+
name: z.ZodString;
|
|
1085
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
auth_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1087
|
+
none: "none";
|
|
1088
|
+
basic: "basic";
|
|
1089
|
+
header: "header";
|
|
1090
|
+
}>>>;
|
|
1091
|
+
auth_value: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
}, z.core.$strip>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Create source request type.
|
|
1095
|
+
*/
|
|
1096
|
+
export type CreateSourceRequest = z.infer<typeof CreateSourceRequestSchema>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Update source request schema.
|
|
1099
|
+
*
|
|
1100
|
+
* All fields are optional - only provided fields will be updated.
|
|
1101
|
+
*
|
|
1102
|
+
* @example
|
|
1103
|
+
* ```typescript
|
|
1104
|
+
* // Disable a source
|
|
1105
|
+
* const request: UpdateSourceRequest = { enabled: false };
|
|
1106
|
+
*
|
|
1107
|
+
* // Update authentication
|
|
1108
|
+
* const request: UpdateSourceRequest = {
|
|
1109
|
+
* auth_type: 'basic',
|
|
1110
|
+
* auth_value: 'user:password',
|
|
1111
|
+
* };
|
|
1112
|
+
* ```
|
|
1113
|
+
*/
|
|
1114
|
+
export declare const UpdateSourceRequestSchema: z.ZodObject<{
|
|
1115
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1117
|
+
auth_type: z.ZodOptional<z.ZodEnum<{
|
|
1118
|
+
none: "none";
|
|
1119
|
+
basic: "basic";
|
|
1120
|
+
header: "header";
|
|
1121
|
+
}>>;
|
|
1122
|
+
auth_value: z.ZodOptional<z.ZodString>;
|
|
1123
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1124
|
+
}, z.core.$strip>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Update source request type.
|
|
1127
|
+
*/
|
|
1128
|
+
export type UpdateSourceRequest = z.infer<typeof UpdateSourceRequestSchema>;
|
|
1129
|
+
//# sourceMappingURL=types.d.ts.map
|