@agentuity/server 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/db/index.d.ts +4 -4
- package/dist/api/db/index.d.ts.map +1 -1
- package/dist/api/db/index.js +3 -3
- package/dist/api/db/index.js.map +1 -1
- package/dist/api/db/logs.d.ts +20 -1
- package/dist/api/db/logs.d.ts.map +1 -1
- package/dist/api/db/logs.js +1 -1
- package/dist/api/db/logs.js.map +1 -1
- package/dist/api/db/tables.d.ts +20 -1
- package/dist/api/db/tables.d.ts.map +1 -1
- package/dist/api/db/tables.js +1 -1
- package/dist/api/db/tables.js.map +1 -1
- package/dist/api/eval/get.d.ts +20 -1
- package/dist/api/eval/get.d.ts.map +1 -1
- package/dist/api/eval/get.js +1 -1
- package/dist/api/eval/get.js.map +1 -1
- package/dist/api/eval/index.d.ts +4 -4
- package/dist/api/eval/index.d.ts.map +1 -1
- package/dist/api/eval/index.js +4 -4
- package/dist/api/eval/index.js.map +1 -1
- package/dist/api/eval/list.d.ts +19 -1
- package/dist/api/eval/list.d.ts.map +1 -1
- package/dist/api/eval/list.js +1 -1
- package/dist/api/eval/list.js.map +1 -1
- package/dist/api/eval/run-get.d.ts +26 -1
- package/dist/api/eval/run-get.d.ts.map +1 -1
- package/dist/api/eval/run-get.js +1 -1
- package/dist/api/eval/run-get.js.map +1 -1
- package/dist/api/eval/run-list.d.ts +25 -1
- package/dist/api/eval/run-list.d.ts.map +1 -1
- package/dist/api/eval/run-list.js +1 -1
- package/dist/api/eval/run-list.js.map +1 -1
- package/dist/api/project/agent.d.ts +54 -0
- package/dist/api/project/agent.d.ts.map +1 -1
- package/dist/api/project/agent.js +2 -2
- package/dist/api/project/agent.js.map +1 -1
- package/dist/api/project/create.d.ts +2 -3
- package/dist/api/project/create.d.ts.map +1 -1
- package/dist/api/project/create.js +1 -1
- package/dist/api/project/create.js.map +1 -1
- package/dist/api/project/delete.d.ts +9 -1
- package/dist/api/project/delete.d.ts.map +1 -1
- package/dist/api/project/delete.js +1 -1
- package/dist/api/project/delete.js.map +1 -1
- package/dist/api/project/deploy.d.ts +65 -0
- package/dist/api/project/deploy.d.ts.map +1 -1
- package/dist/api/project/deploy.js +5 -5
- package/dist/api/project/deploy.js.map +1 -1
- package/dist/api/project/deployment.d.ts +136 -0
- package/dist/api/project/deployment.d.ts.map +1 -1
- package/dist/api/project/deployment.js +5 -5
- package/dist/api/project/deployment.js.map +1 -1
- package/dist/api/project/env-delete.d.ts +8 -1
- package/dist/api/project/env-delete.d.ts.map +1 -1
- package/dist/api/project/env-delete.js +1 -1
- package/dist/api/project/env-delete.js.map +1 -1
- package/dist/api/project/env-update.d.ts +15 -1
- package/dist/api/project/env-update.d.ts.map +1 -1
- package/dist/api/project/env-update.js +1 -1
- package/dist/api/project/env-update.js.map +1 -1
- package/dist/api/project/exists.d.ts +2 -3
- package/dist/api/project/exists.d.ts.map +1 -1
- package/dist/api/project/exists.js +2 -2
- package/dist/api/project/exists.js.map +1 -1
- package/dist/api/project/get.d.ts +19 -1
- package/dist/api/project/get.d.ts.map +1 -1
- package/dist/api/project/get.js +1 -1
- package/dist/api/project/get.js.map +1 -1
- package/dist/api/project/list.d.ts +2 -3
- package/dist/api/project/list.d.ts.map +1 -1
- package/dist/api/project/list.js +1 -1
- package/dist/api/project/list.js.map +1 -1
- package/dist/api/project/malware.d.ts +27 -0
- package/dist/api/project/malware.d.ts.map +1 -1
- package/dist/api/project/malware.js +1 -1
- package/dist/api/project/malware.js.map +1 -1
- package/dist/api/project/update-region.d.ts +11 -1
- package/dist/api/project/update-region.d.ts.map +1 -1
- package/dist/api/project/update-region.js +1 -1
- package/dist/api/project/update-region.js.map +1 -1
- package/dist/api/queue/analytics.d.ts +144 -2
- package/dist/api/queue/analytics.d.ts.map +1 -1
- package/dist/api/queue/analytics.js +5 -5
- package/dist/api/queue/analytics.js.map +1 -1
- package/dist/api/queue/destinations.d.ts +96 -2
- package/dist/api/queue/destinations.d.ts.map +1 -1
- package/dist/api/queue/destinations.js +7 -7
- package/dist/api/queue/destinations.js.map +1 -1
- package/dist/api/queue/dlq.d.ts +70 -2
- package/dist/api/queue/dlq.d.ts.map +1 -1
- package/dist/api/queue/dlq.js +5 -5
- package/dist/api/queue/dlq.js.map +1 -1
- package/dist/api/queue/index.d.ts +9 -9
- package/dist/api/queue/index.d.ts.map +1 -1
- package/dist/api/queue/index.js +11 -11
- package/dist/api/queue/index.js.map +1 -1
- package/dist/api/queue/messages.d.ts +173 -2
- package/dist/api/queue/messages.d.ts.map +1 -1
- package/dist/api/queue/messages.js +10 -10
- package/dist/api/queue/messages.js.map +1 -1
- package/dist/api/queue/queues.d.ts +75 -2
- package/dist/api/queue/queues.d.ts.map +1 -1
- package/dist/api/queue/queues.js +6 -6
- package/dist/api/queue/queues.js.map +1 -1
- package/dist/api/queue/sources.d.ts +72 -2
- package/dist/api/queue/sources.d.ts.map +1 -1
- package/dist/api/queue/sources.js +6 -6
- package/dist/api/queue/sources.js.map +1 -1
- package/dist/api/sandbox/cli-list.d.ts +4 -5
- package/dist/api/sandbox/cli-list.d.ts.map +1 -1
- package/dist/api/sandbox/cli-list.js +3 -3
- package/dist/api/sandbox/cli-list.js.map +1 -1
- package/dist/api/sandbox/create.d.ts +82 -1
- package/dist/api/sandbox/create.d.ts.map +1 -1
- package/dist/api/sandbox/create.js +14 -10
- package/dist/api/sandbox/create.js.map +1 -1
- package/dist/api/sandbox/destroy.d.ts +9 -1
- package/dist/api/sandbox/destroy.d.ts.map +1 -1
- package/dist/api/sandbox/destroy.js +2 -2
- package/dist/api/sandbox/destroy.js.map +1 -1
- package/dist/api/sandbox/execute.d.ts +49 -1
- package/dist/api/sandbox/execute.d.ts.map +1 -1
- package/dist/api/sandbox/execute.js +4 -4
- package/dist/api/sandbox/execute.js.map +1 -1
- package/dist/api/sandbox/execution.d.ts +104 -1
- package/dist/api/sandbox/execution.d.ts.map +1 -1
- package/dist/api/sandbox/execution.js +5 -5
- package/dist/api/sandbox/execution.js.map +1 -1
- package/dist/api/sandbox/get.d.ts +233 -1
- package/dist/api/sandbox/get.d.ts.map +1 -1
- package/dist/api/sandbox/get.js +12 -12
- package/dist/api/sandbox/get.js.map +1 -1
- package/dist/api/sandbox/index.d.ts +25 -25
- package/dist/api/sandbox/index.d.ts.map +1 -1
- package/dist/api/sandbox/index.js +13 -13
- package/dist/api/sandbox/index.js.map +1 -1
- package/dist/api/sandbox/list.d.ts +230 -1
- package/dist/api/sandbox/list.d.ts.map +1 -1
- package/dist/api/sandbox/list.js +9 -9
- package/dist/api/sandbox/list.js.map +1 -1
- package/dist/api/sandbox/resolve.d.ts +30 -0
- package/dist/api/sandbox/resolve.d.ts.map +1 -1
- package/dist/api/sandbox/resolve.js +3 -3
- package/dist/api/sandbox/resolve.js.map +1 -1
- package/dist/api/sandbox/runtime.d.ts +69 -1
- package/dist/api/sandbox/runtime.d.ts.map +1 -1
- package/dist/api/sandbox/runtime.js +5 -5
- package/dist/api/sandbox/runtime.js.map +1 -1
- package/dist/api/sandbox/snapshot.d.ts +202 -9
- package/dist/api/sandbox/snapshot.d.ts.map +1 -1
- package/dist/api/sandbox/snapshot.js +17 -17
- package/dist/api/sandbox/snapshot.js.map +1 -1
- package/dist/api/stream/get.d.ts +3 -4
- package/dist/api/stream/get.d.ts.map +1 -1
- package/dist/api/stream/get.js +2 -2
- package/dist/api/stream/get.js.map +1 -1
- package/dist/api/stream/list.d.ts +4 -5
- package/dist/api/stream/list.d.ts.map +1 -1
- package/dist/api/stream/list.js +3 -3
- package/dist/api/stream/list.js.map +1 -1
- package/package.json +4 -4
- package/src/api/db/index.ts +15 -13
- package/src/api/db/logs.ts +2 -2
- package/src/api/db/tables.ts +2 -2
- package/src/api/eval/get.ts +2 -2
- package/src/api/eval/index.ts +19 -7
- package/src/api/eval/list.ts +2 -2
- package/src/api/eval/run-get.ts +2 -2
- package/src/api/eval/run-list.ts +2 -2
- package/src/api/project/agent.ts +2 -2
- package/src/api/project/create.ts +2 -2
- package/src/api/project/delete.ts +2 -2
- package/src/api/project/deploy.ts +7 -5
- package/src/api/project/deployment.ts +5 -5
- package/src/api/project/env-delete.ts +2 -2
- package/src/api/project/env-update.ts +2 -2
- package/src/api/project/exists.ts +2 -2
- package/src/api/project/get.ts +2 -2
- package/src/api/project/list.ts +2 -2
- package/src/api/project/malware.ts +1 -1
- package/src/api/project/update-region.ts +2 -2
- package/src/api/queue/analytics.ts +15 -11
- package/src/api/queue/destinations.ts +14 -12
- package/src/api/queue/dlq.ts +10 -10
- package/src/api/queue/index.ts +136 -108
- package/src/api/queue/messages.ts +22 -22
- package/src/api/queue/queues.ts +14 -14
- package/src/api/queue/sources.ts +11 -11
- package/src/api/sandbox/cli-list.ts +4 -4
- package/src/api/sandbox/create.ts +18 -14
- package/src/api/sandbox/destroy.ts +4 -4
- package/src/api/sandbox/execute.ts +6 -6
- package/src/api/sandbox/execution.ts +7 -7
- package/src/api/sandbox/get.ts +15 -15
- package/src/api/sandbox/index.ts +155 -93
- package/src/api/sandbox/list.ts +12 -12
- package/src/api/sandbox/resolve.ts +4 -4
- package/src/api/sandbox/runtime.ts +7 -7
- package/src/api/sandbox/snapshot.ts +20 -18
- package/src/api/stream/get.ts +3 -3
- package/src/api/stream/list.ts +4 -4
package/src/api/queue/index.ts
CHANGED
|
@@ -49,87 +49,87 @@
|
|
|
49
49
|
// ============================================================================
|
|
50
50
|
|
|
51
51
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
MessageSchema,
|
|
58
|
-
DestinationTypeSchema,
|
|
59
|
-
HttpDestinationConfigSchema,
|
|
60
|
-
DestinationStatsSchema,
|
|
61
|
-
DestinationSchema,
|
|
62
|
-
DeadLetterMessageSchema,
|
|
63
|
-
CreateQueueRequestSchema,
|
|
64
|
-
UpdateQueueRequestSchema,
|
|
65
|
-
ListQueuesRequestSchema,
|
|
66
|
-
PublishMessageRequestSchema,
|
|
52
|
+
type AnalyticsGranularity,
|
|
53
|
+
// Analytics types
|
|
54
|
+
AnalyticsGranularitySchema,
|
|
55
|
+
type AnalyticsOptions,
|
|
56
|
+
type BatchPublishMessagesRequest,
|
|
67
57
|
BatchPublishMessagesRequestSchema,
|
|
68
|
-
|
|
58
|
+
type ConsumeMessagesRequest,
|
|
69
59
|
ConsumeMessagesRequestSchema,
|
|
60
|
+
type CreateDestinationRequest,
|
|
70
61
|
CreateDestinationRequestSchema,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
type
|
|
74
|
-
|
|
75
|
-
type
|
|
76
|
-
|
|
77
|
-
type
|
|
78
|
-
type
|
|
62
|
+
type CreateQueueRequest,
|
|
63
|
+
CreateQueueRequestSchema,
|
|
64
|
+
type CreateSourceRequest,
|
|
65
|
+
CreateSourceRequestSchema,
|
|
66
|
+
type DeadLetterMessage,
|
|
67
|
+
DeadLetterMessageSchema,
|
|
68
|
+
type Destination,
|
|
69
|
+
type DestinationAnalytics,
|
|
70
|
+
DestinationAnalyticsSchema,
|
|
71
|
+
DestinationSchema,
|
|
72
|
+
type DestinationStats,
|
|
73
|
+
DestinationStatsSchema,
|
|
79
74
|
type DestinationType,
|
|
75
|
+
DestinationTypeSchema,
|
|
80
76
|
type HttpDestinationConfig,
|
|
81
|
-
|
|
82
|
-
type
|
|
83
|
-
|
|
84
|
-
type
|
|
85
|
-
|
|
77
|
+
HttpDestinationConfigSchema,
|
|
78
|
+
type LatencyStats,
|
|
79
|
+
LatencyStatsSchema,
|
|
80
|
+
type ListDlqRequest,
|
|
81
|
+
ListDlqRequestSchema,
|
|
82
|
+
type ListMessagesRequest,
|
|
83
|
+
ListMessagesRequestSchema,
|
|
86
84
|
type ListQueuesRequest,
|
|
85
|
+
ListQueuesRequestSchema,
|
|
86
|
+
type Message,
|
|
87
|
+
MessageSchema,
|
|
88
|
+
type MessageState,
|
|
89
|
+
MessageStateSchema,
|
|
90
|
+
type OrgAnalytics,
|
|
91
|
+
OrgAnalyticsSchema,
|
|
92
|
+
type OrgAnalyticsSummary,
|
|
93
|
+
OrgAnalyticsSummarySchema,
|
|
87
94
|
type PublishMessageRequest,
|
|
88
|
-
|
|
89
|
-
type
|
|
90
|
-
type
|
|
91
|
-
|
|
92
|
-
type UpdateDestinationRequest,
|
|
93
|
-
type ListDlqRequest,
|
|
95
|
+
PublishMessageRequestSchema,
|
|
96
|
+
type Queue,
|
|
97
|
+
type QueueAnalytics,
|
|
98
|
+
QueueAnalyticsSchema,
|
|
94
99
|
type QueueApiOptions,
|
|
95
|
-
|
|
96
|
-
AnalyticsGranularitySchema,
|
|
97
|
-
TimePeriodSchema,
|
|
98
|
-
LatencyStatsSchema,
|
|
100
|
+
type QueueCurrentStats,
|
|
99
101
|
QueueCurrentStatsSchema,
|
|
102
|
+
type QueuePeriodStats,
|
|
100
103
|
QueuePeriodStatsSchema,
|
|
101
|
-
|
|
102
|
-
|
|
104
|
+
QueueSchema,
|
|
105
|
+
type QueueSettings,
|
|
106
|
+
QueueSettingsSchema,
|
|
107
|
+
type QueueStats,
|
|
108
|
+
QueueStatsSchema,
|
|
109
|
+
type QueueSummary,
|
|
103
110
|
QueueSummarySchema,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
type QueueType,
|
|
112
|
+
QueueTypeSchema,
|
|
113
|
+
type Source,
|
|
114
|
+
type SourceAuthType,
|
|
115
|
+
// Source types
|
|
116
|
+
SourceAuthTypeSchema,
|
|
117
|
+
SourceSchema,
|
|
118
|
+
type SSEStatsEvent,
|
|
108
119
|
SSEStatsEventSchema,
|
|
109
|
-
type AnalyticsGranularity,
|
|
110
|
-
type AnalyticsOptions,
|
|
111
120
|
type StreamAnalyticsOptions,
|
|
112
121
|
type TimePeriod,
|
|
113
|
-
|
|
114
|
-
type QueueCurrentStats,
|
|
115
|
-
type QueuePeriodStats,
|
|
116
|
-
type DestinationAnalytics,
|
|
117
|
-
type QueueAnalytics,
|
|
118
|
-
type QueueSummary,
|
|
119
|
-
type OrgAnalyticsSummary,
|
|
120
|
-
type OrgAnalytics,
|
|
121
|
-
type TimeSeriesPoint,
|
|
122
|
+
TimePeriodSchema,
|
|
122
123
|
type TimeSeriesData,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
type Source,
|
|
131
|
-
type CreateSourceRequest,
|
|
124
|
+
TimeSeriesDataSchema,
|
|
125
|
+
type TimeSeriesPoint,
|
|
126
|
+
TimeSeriesPointSchema,
|
|
127
|
+
type UpdateDestinationRequest,
|
|
128
|
+
UpdateDestinationRequestSchema,
|
|
129
|
+
type UpdateQueueRequest,
|
|
130
|
+
UpdateQueueRequestSchema,
|
|
132
131
|
type UpdateSourceRequest,
|
|
132
|
+
UpdateSourceRequestSchema,
|
|
133
133
|
} from './types';
|
|
134
134
|
|
|
135
135
|
// ============================================================================
|
|
@@ -137,14 +137,14 @@ export {
|
|
|
137
137
|
// ============================================================================
|
|
138
138
|
|
|
139
139
|
export {
|
|
140
|
-
QueueError,
|
|
141
|
-
QueueNotFoundError,
|
|
142
|
-
MessageNotFoundError,
|
|
143
|
-
DestinationNotFoundError,
|
|
144
140
|
DestinationAlreadyExistsError,
|
|
141
|
+
DestinationNotFoundError,
|
|
142
|
+
MessageNotFoundError,
|
|
143
|
+
QueueError,
|
|
145
144
|
QueueInvalidArgumentError,
|
|
146
|
-
|
|
145
|
+
QueueNotFoundError,
|
|
147
146
|
SourceAlreadyExistsError,
|
|
147
|
+
SourceNotFoundError,
|
|
148
148
|
} from './util';
|
|
149
149
|
|
|
150
150
|
// ============================================================================
|
|
@@ -153,12 +153,15 @@ export {
|
|
|
153
153
|
|
|
154
154
|
export {
|
|
155
155
|
createQueue,
|
|
156
|
+
DeleteQueueResponseSchema,
|
|
157
|
+
deleteQueue,
|
|
156
158
|
getQueue,
|
|
157
159
|
listQueues,
|
|
158
|
-
updateQueue,
|
|
159
|
-
deleteQueue,
|
|
160
160
|
pauseQueue,
|
|
161
|
+
QueueResponseSchema,
|
|
162
|
+
QueuesListResponseSchema,
|
|
161
163
|
resumeQueue,
|
|
164
|
+
updateQueue,
|
|
162
165
|
} from './queues';
|
|
163
166
|
|
|
164
167
|
// ============================================================================
|
|
@@ -166,19 +169,26 @@ export {
|
|
|
166
169
|
// ============================================================================
|
|
167
170
|
|
|
168
171
|
export {
|
|
169
|
-
|
|
172
|
+
AckNackResponseSchema,
|
|
173
|
+
ackMessage,
|
|
174
|
+
BatchPublishResponseSchema,
|
|
170
175
|
batchPublishMessages,
|
|
176
|
+
consumeMessages,
|
|
177
|
+
DeleteMessageResponseSchema,
|
|
178
|
+
deleteMessage,
|
|
171
179
|
getMessage,
|
|
172
180
|
getMessageByOffset,
|
|
173
|
-
listMessages,
|
|
174
|
-
deleteMessage,
|
|
175
|
-
replayMessage,
|
|
176
|
-
consumeMessages,
|
|
177
181
|
getQueueHead,
|
|
178
182
|
getQueueTail,
|
|
179
|
-
|
|
180
|
-
|
|
183
|
+
listMessages,
|
|
184
|
+
MessageResponseSchema,
|
|
185
|
+
MessagesListResponseSchema,
|
|
181
186
|
nackMessage,
|
|
187
|
+
OffsetResponseSchema,
|
|
188
|
+
publishMessage,
|
|
189
|
+
ReceiveResponseSchema,
|
|
190
|
+
receiveMessage,
|
|
191
|
+
replayMessage,
|
|
182
192
|
} from './messages';
|
|
183
193
|
|
|
184
194
|
// ============================================================================
|
|
@@ -186,10 +196,13 @@ export {
|
|
|
186
196
|
// ============================================================================
|
|
187
197
|
|
|
188
198
|
export {
|
|
199
|
+
DeleteDlqResponseSchema,
|
|
200
|
+
DlqListResponseSchema,
|
|
201
|
+
deleteDeadLetterMessage,
|
|
189
202
|
listDeadLetterMessages,
|
|
190
|
-
replayDeadLetterMessage,
|
|
191
203
|
purgeDeadLetter,
|
|
192
|
-
|
|
204
|
+
ReplayDlqResponseSchema,
|
|
205
|
+
replayDeadLetterMessage,
|
|
193
206
|
} from './dlq';
|
|
194
207
|
|
|
195
208
|
// ============================================================================
|
|
@@ -198,16 +211,28 @@ export {
|
|
|
198
211
|
|
|
199
212
|
export {
|
|
200
213
|
createDestination,
|
|
214
|
+
DeleteDestinationResponseSchema,
|
|
215
|
+
DestinationResponseSchema,
|
|
216
|
+
DestinationsListResponseSchema,
|
|
217
|
+
deleteDestination,
|
|
201
218
|
listDestinations,
|
|
202
219
|
updateDestination,
|
|
203
|
-
deleteDestination,
|
|
204
220
|
} from './destinations';
|
|
205
221
|
|
|
206
222
|
// ============================================================================
|
|
207
223
|
// Source Operations
|
|
208
224
|
// ============================================================================
|
|
209
225
|
|
|
210
|
-
export {
|
|
226
|
+
export {
|
|
227
|
+
createSource,
|
|
228
|
+
DeleteSourceResponseSchema,
|
|
229
|
+
deleteSource,
|
|
230
|
+
getSource,
|
|
231
|
+
listSources,
|
|
232
|
+
SourceResponseSchema,
|
|
233
|
+
SourcesListResponseSchema,
|
|
234
|
+
updateSource,
|
|
235
|
+
} from './sources';
|
|
211
236
|
|
|
212
237
|
// ============================================================================
|
|
213
238
|
// Analytics Operations
|
|
@@ -217,8 +242,11 @@ export {
|
|
|
217
242
|
getOrgAnalytics,
|
|
218
243
|
getQueueAnalytics,
|
|
219
244
|
getQueueTimeSeries,
|
|
245
|
+
OrgAnalyticsResponseSchema,
|
|
246
|
+
QueueAnalyticsResponseSchema,
|
|
220
247
|
streamOrgAnalytics,
|
|
221
248
|
streamQueueAnalytics,
|
|
249
|
+
TimeSeriesResponseSchema,
|
|
222
250
|
} from './analytics';
|
|
223
251
|
|
|
224
252
|
// ============================================================================
|
|
@@ -226,36 +254,36 @@ export {
|
|
|
226
254
|
// ============================================================================
|
|
227
255
|
|
|
228
256
|
export {
|
|
257
|
+
MAX_BATCH_SIZE,
|
|
258
|
+
MAX_DESCRIPTION_LENGTH,
|
|
259
|
+
MAX_IDEMPOTENCY_KEY_LENGTH,
|
|
260
|
+
MAX_IN_FLIGHT,
|
|
261
|
+
MAX_METADATA_SIZE,
|
|
262
|
+
MAX_PARTITION_KEY_LENGTH,
|
|
263
|
+
MAX_PAYLOAD_SIZE,
|
|
264
|
+
MAX_QUEUE_NAME_LENGTH,
|
|
265
|
+
MAX_RETRIES,
|
|
266
|
+
MAX_SOURCE_NAME_LENGTH,
|
|
267
|
+
MAX_VISIBILITY_TIMEOUT,
|
|
268
|
+
MIN_QUEUE_NAME_LENGTH,
|
|
229
269
|
QueueValidationError,
|
|
230
|
-
|
|
231
|
-
validateQueueType,
|
|
232
|
-
validatePayload,
|
|
233
|
-
validateMessageId,
|
|
234
|
-
validateDestinationId,
|
|
270
|
+
validateBatchSize,
|
|
235
271
|
validateDescription,
|
|
236
|
-
|
|
272
|
+
validateDestinationConfig,
|
|
273
|
+
validateDestinationId,
|
|
237
274
|
validateIdempotencyKey,
|
|
238
|
-
|
|
239
|
-
validateVisibilityTimeout,
|
|
240
|
-
validateMaxRetries,
|
|
275
|
+
validateLimit,
|
|
241
276
|
validateMaxInFlight,
|
|
277
|
+
validateMaxRetries,
|
|
278
|
+
validateMessageId,
|
|
242
279
|
validateOffset,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
280
|
+
validatePartitionKey,
|
|
281
|
+
validatePayload,
|
|
282
|
+
validateQueueName,
|
|
283
|
+
validateQueueType,
|
|
247
284
|
validateSourceId,
|
|
248
285
|
validateSourceName,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
MAX_DESCRIPTION_LENGTH,
|
|
253
|
-
MAX_BATCH_SIZE,
|
|
254
|
-
MAX_METADATA_SIZE,
|
|
255
|
-
MAX_PARTITION_KEY_LENGTH,
|
|
256
|
-
MAX_IDEMPOTENCY_KEY_LENGTH,
|
|
257
|
-
MAX_VISIBILITY_TIMEOUT,
|
|
258
|
-
MAX_RETRIES,
|
|
259
|
-
MAX_IN_FLIGHT,
|
|
260
|
-
MAX_SOURCE_NAME_LENGTH,
|
|
286
|
+
validateTTL,
|
|
287
|
+
validateVisibilityTimeout,
|
|
288
|
+
validateWebhookUrl,
|
|
261
289
|
} from './validation';
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema, APIResponseSchemaNoData } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema, APIResponseSchemaNoData } from '../api';
|
|
3
3
|
import {
|
|
4
|
-
MessageSchema,
|
|
5
|
-
type Message,
|
|
6
|
-
type PublishMessageRequest,
|
|
7
4
|
type BatchPublishMessagesRequest,
|
|
8
|
-
|
|
5
|
+
BatchPublishMessagesRequestSchema,
|
|
9
6
|
type ConsumeMessagesRequest,
|
|
10
|
-
type
|
|
7
|
+
type ListMessagesRequest,
|
|
8
|
+
type Message,
|
|
9
|
+
MessageSchema,
|
|
10
|
+
type PublishMessageRequest,
|
|
11
11
|
PublishMessageRequestSchema,
|
|
12
|
-
|
|
12
|
+
type QueueApiOptions,
|
|
13
13
|
} from './types';
|
|
14
14
|
import {
|
|
15
|
+
buildQueueHeaders,
|
|
16
|
+
MessageNotFoundError,
|
|
15
17
|
QueueError,
|
|
16
18
|
QueueNotFoundError,
|
|
17
|
-
MessageNotFoundError,
|
|
18
19
|
queueApiPath,
|
|
19
20
|
queueApiPathWithQuery,
|
|
20
|
-
buildQueueHeaders,
|
|
21
21
|
} from './util';
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
validateBatchSize,
|
|
24
|
+
validateIdempotencyKey,
|
|
25
|
+
validateLimit,
|
|
25
26
|
validateMessageId,
|
|
27
|
+
validateOffset,
|
|
26
28
|
validatePartitionKey,
|
|
27
|
-
|
|
29
|
+
validatePayload,
|
|
30
|
+
validateQueueName,
|
|
28
31
|
validateTTL,
|
|
29
|
-
validateOffset,
|
|
30
|
-
validateLimit,
|
|
31
|
-
validateBatchSize,
|
|
32
32
|
} from './validation';
|
|
33
33
|
|
|
34
|
-
const MessageResponseSchema = APIResponseSchema(z.object({ message: MessageSchema }));
|
|
35
|
-
const MessagesListResponseSchema = APIResponseSchema(
|
|
34
|
+
export const MessageResponseSchema = APIResponseSchema(z.object({ message: MessageSchema }));
|
|
35
|
+
export const MessagesListResponseSchema = APIResponseSchema(
|
|
36
36
|
z.object({
|
|
37
37
|
messages: z.array(MessageSchema),
|
|
38
38
|
total: z.number().optional(),
|
|
39
39
|
})
|
|
40
40
|
);
|
|
41
|
-
const BatchPublishResponseSchema = APIResponseSchema(
|
|
41
|
+
export const BatchPublishResponseSchema = APIResponseSchema(
|
|
42
42
|
z.object({
|
|
43
43
|
messages: z.array(MessageSchema),
|
|
44
44
|
failed: z.array(z.number()).optional(),
|
|
45
45
|
})
|
|
46
46
|
);
|
|
47
|
-
const DeleteMessageResponseSchema = APIResponseSchemaNoData();
|
|
48
|
-
const AckNackResponseSchema = APIResponseSchemaNoData();
|
|
49
|
-
const OffsetResponseSchema = APIResponseSchema(z.object({ offset: z.number() }));
|
|
50
|
-
const ReceiveResponseSchema = APIResponseSchema(
|
|
47
|
+
export const DeleteMessageResponseSchema = APIResponseSchemaNoData();
|
|
48
|
+
export const AckNackResponseSchema = APIResponseSchemaNoData();
|
|
49
|
+
export const OffsetResponseSchema = APIResponseSchema(z.object({ offset: z.number() }));
|
|
50
|
+
export const ReceiveResponseSchema = APIResponseSchema(
|
|
51
51
|
z.object({
|
|
52
52
|
message: MessageSchema.nullable(),
|
|
53
53
|
})
|
package/src/api/queue/queues.ts
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema, APIResponseSchemaNoData } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema, APIResponseSchemaNoData } from '../api';
|
|
3
3
|
import {
|
|
4
|
-
QueueSchema,
|
|
5
|
-
type Queue,
|
|
6
4
|
type CreateQueueRequest,
|
|
7
|
-
|
|
5
|
+
CreateQueueRequestSchema,
|
|
8
6
|
type ListQueuesRequest,
|
|
7
|
+
type Queue,
|
|
9
8
|
type QueueApiOptions,
|
|
10
|
-
|
|
9
|
+
QueueSchema,
|
|
10
|
+
type UpdateQueueRequest,
|
|
11
11
|
UpdateQueueRequestSchema,
|
|
12
12
|
} from './types';
|
|
13
13
|
import {
|
|
14
|
+
buildQueueHeaders,
|
|
14
15
|
QueueError,
|
|
15
16
|
QueueNotFoundError,
|
|
16
17
|
queueApiPath,
|
|
17
18
|
queueApiPathWithQuery,
|
|
18
|
-
buildQueueHeaders,
|
|
19
19
|
} from './util';
|
|
20
20
|
import {
|
|
21
|
+
validateDescription,
|
|
22
|
+
validateLimit,
|
|
23
|
+
validateMaxInFlight,
|
|
24
|
+
validateMaxRetries,
|
|
25
|
+
validateOffset,
|
|
21
26
|
validateQueueName,
|
|
22
27
|
validateQueueType,
|
|
23
|
-
validateDescription,
|
|
24
28
|
validateTTL,
|
|
25
29
|
validateVisibilityTimeout,
|
|
26
|
-
validateMaxRetries,
|
|
27
|
-
validateMaxInFlight,
|
|
28
|
-
validateLimit,
|
|
29
|
-
validateOffset,
|
|
30
30
|
} from './validation';
|
|
31
31
|
|
|
32
|
-
const QueueResponseSchema = APIResponseSchema(z.object({ queue: QueueSchema }));
|
|
33
|
-
const QueuesListResponseSchema = APIResponseSchema(
|
|
32
|
+
export const QueueResponseSchema = APIResponseSchema(z.object({ queue: QueueSchema }));
|
|
33
|
+
export const QueuesListResponseSchema = APIResponseSchema(
|
|
34
34
|
z.object({
|
|
35
35
|
queues: z.array(QueueSchema),
|
|
36
36
|
total: z.number().optional(),
|
|
37
37
|
})
|
|
38
38
|
);
|
|
39
|
-
const DeleteQueueResponseSchema = APIResponseSchemaNoData();
|
|
39
|
+
export const DeleteQueueResponseSchema = APIResponseSchemaNoData();
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Create a new message queue.
|
package/src/api/queue/sources.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema, APIResponseSchemaNoData
|
|
2
|
+
import { type APIClient, APIError, APIResponseSchema, APIResponseSchemaNoData } from '../api';
|
|
3
3
|
import {
|
|
4
|
-
SourceSchema,
|
|
5
|
-
type Source,
|
|
6
4
|
type CreateSourceRequest,
|
|
7
|
-
type UpdateSourceRequest,
|
|
8
|
-
type QueueApiOptions,
|
|
9
5
|
CreateSourceRequestSchema,
|
|
6
|
+
type QueueApiOptions,
|
|
7
|
+
type Source,
|
|
8
|
+
SourceSchema,
|
|
9
|
+
type UpdateSourceRequest,
|
|
10
10
|
UpdateSourceRequestSchema,
|
|
11
11
|
} from './types';
|
|
12
12
|
import {
|
|
13
|
+
buildQueueHeaders,
|
|
13
14
|
QueueError,
|
|
14
15
|
QueueNotFoundError,
|
|
15
|
-
SourceNotFoundError,
|
|
16
|
-
SourceAlreadyExistsError,
|
|
17
16
|
queueApiPath,
|
|
18
|
-
|
|
17
|
+
SourceAlreadyExistsError,
|
|
18
|
+
SourceNotFoundError,
|
|
19
19
|
} from './util';
|
|
20
20
|
import { validateQueueName, validateSourceId, validateSourceName } from './validation';
|
|
21
21
|
|
|
22
|
-
const SourceResponseSchema = APIResponseSchema(z.object({ source: SourceSchema }));
|
|
23
|
-
const SourcesListResponseSchema = APIResponseSchema(
|
|
22
|
+
export const SourceResponseSchema = APIResponseSchema(z.object({ source: SourceSchema }));
|
|
23
|
+
export const SourcesListResponseSchema = APIResponseSchema(
|
|
24
24
|
z.object({
|
|
25
25
|
sources: z.array(SourceSchema),
|
|
26
26
|
})
|
|
27
27
|
);
|
|
28
|
-
const DeleteSourceResponseSchema = APIResponseSchemaNoData();
|
|
28
|
+
export const DeleteSourceResponseSchema = APIResponseSchemaNoData();
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Create a source for a queue.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import { SandboxResponseError } from './util';
|
|
4
4
|
|
|
5
|
-
const SandboxInfoSchema = z.object({
|
|
5
|
+
export const SandboxInfoSchema = z.object({
|
|
6
6
|
id: z.string().describe('the sandbox id'),
|
|
7
7
|
name: z.string().nullable().describe('the sandbox name'),
|
|
8
8
|
description: z.string().nullable().describe('the sandbox description'),
|
|
@@ -14,12 +14,12 @@ const SandboxInfoSchema = z.object({
|
|
|
14
14
|
projectId: z.string().nullable().describe('the project id'),
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
const SandboxListDataSchema = z.object({
|
|
17
|
+
export const SandboxListDataSchema = z.object({
|
|
18
18
|
sandboxes: z.array(SandboxInfoSchema).describe('list of sandboxes'),
|
|
19
19
|
total: z.number().describe('total count of matching sandboxes'),
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
const SandboxListResponseSchema = APIResponseSchema(SandboxListDataSchema);
|
|
22
|
+
export const SandboxListResponseSchema = APIResponseSchema(SandboxListDataSchema);
|
|
23
23
|
|
|
24
24
|
export type CLISandboxListResponse = z.infer<typeof SandboxListResponseSchema>;
|
|
25
25
|
export type CLISandboxListData = z.infer<typeof SandboxListDataSchema>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
3
|
-
import { throwSandboxError, API_VERSION } from './util';
|
|
4
1
|
import type { SandboxCreateOptions, SandboxStatus } from '@agentuity/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
4
|
+
import { API_VERSION, throwSandboxError } from './util';
|
|
5
5
|
|
|
6
|
-
const SandboxCreateRequestSchema = z
|
|
6
|
+
export const SandboxCreateRequestSchema = z
|
|
7
7
|
.object({
|
|
8
8
|
projectId: z.string().optional().describe('Project ID to associate the sandbox with'),
|
|
9
9
|
runtime: z.string().optional().describe('Runtime name (e.g., "bun:1", "python:3.14")'),
|
|
@@ -57,9 +57,7 @@ const SandboxCreateRequestSchema = z
|
|
|
57
57
|
files: z
|
|
58
58
|
.array(
|
|
59
59
|
z.object({
|
|
60
|
-
path: z
|
|
61
|
-
.string()
|
|
62
|
-
.describe('Path to the file relative to the sandbox workspace'),
|
|
60
|
+
path: z.string().describe('Path to the file relative to the sandbox workspace'),
|
|
63
61
|
content: z.string().describe('Base64-encoded file content'),
|
|
64
62
|
})
|
|
65
63
|
)
|
|
@@ -73,9 +71,14 @@ const SandboxCreateRequestSchema = z
|
|
|
73
71
|
.optional()
|
|
74
72
|
.describe('Initial command to run in the sandbox'),
|
|
75
73
|
files: z
|
|
76
|
-
.
|
|
74
|
+
.array(
|
|
75
|
+
z.object({
|
|
76
|
+
path: z.string().describe('Path to the file relative to the sandbox workspace'),
|
|
77
|
+
content: z.string().describe('Base64-encoded file content'),
|
|
78
|
+
})
|
|
79
|
+
)
|
|
77
80
|
.optional()
|
|
78
|
-
.describe('Files to write to sandbox on creation
|
|
81
|
+
.describe('Files to write to sandbox on creation'),
|
|
79
82
|
snapshot: z.string().optional().describe('Snapshot ID to restore the sandbox from'),
|
|
80
83
|
dependencies: z
|
|
81
84
|
.array(z.string())
|
|
@@ -101,7 +104,7 @@ const SandboxCreateRequestSchema = z
|
|
|
101
104
|
)
|
|
102
105
|
.describe('Request body for creating a new sandbox');
|
|
103
106
|
|
|
104
|
-
const SandboxCreateDataSchema = z
|
|
107
|
+
export const SandboxCreateDataSchema = z
|
|
105
108
|
.object({
|
|
106
109
|
sandboxId: z.string().describe('Unique identifier for the created sandbox'),
|
|
107
110
|
status: z
|
|
@@ -114,7 +117,7 @@ const SandboxCreateDataSchema = z
|
|
|
114
117
|
})
|
|
115
118
|
.describe('Response data from sandbox creation');
|
|
116
119
|
|
|
117
|
-
const SandboxCreateResponseSchema = APIResponseSchema(SandboxCreateDataSchema);
|
|
120
|
+
export const SandboxCreateResponseSchema = APIResponseSchema(SandboxCreateDataSchema);
|
|
118
121
|
|
|
119
122
|
export interface SandboxCreateResponse {
|
|
120
123
|
sandboxId: string;
|
|
@@ -186,9 +189,10 @@ export async function sandboxCreate(
|
|
|
186
189
|
};
|
|
187
190
|
}
|
|
188
191
|
if (options.files && options.files.length > 0) {
|
|
189
|
-
body.files =
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
body.files = options.files.map((f) => ({
|
|
193
|
+
path: f.path,
|
|
194
|
+
content: f.content.toString('base64'),
|
|
195
|
+
}));
|
|
192
196
|
}
|
|
193
197
|
if (options.snapshot) {
|
|
194
198
|
body.snapshot = options.snapshot;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchemaNoData } from '../api';
|
|
3
|
-
import {
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import { type APIClient, APIResponseSchemaNoData } from '../api';
|
|
3
|
+
import { API_VERSION, throwSandboxError } from './util';
|
|
4
4
|
|
|
5
|
-
const DestroyResponseSchema = APIResponseSchemaNoData();
|
|
5
|
+
export const DestroyResponseSchema = APIResponseSchemaNoData();
|
|
6
6
|
|
|
7
7
|
export interface SandboxDestroyParams {
|
|
8
8
|
sandboxId: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
3
|
-
import { throwSandboxError, API_VERSION } from './util';
|
|
4
1
|
import type { ExecuteOptions, Execution, ExecutionStatus } from '@agentuity/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
4
|
+
import { API_VERSION, throwSandboxError } from './util';
|
|
5
5
|
|
|
6
|
-
const ExecuteRequestSchema = z
|
|
6
|
+
export const ExecuteRequestSchema = z
|
|
7
7
|
.object({
|
|
8
8
|
command: z.array(z.string()).describe('Command and arguments to execute'),
|
|
9
9
|
files: z
|
|
@@ -22,7 +22,7 @@ const ExecuteRequestSchema = z
|
|
|
22
22
|
})
|
|
23
23
|
.describe('Request body for executing a command in a sandbox');
|
|
24
24
|
|
|
25
|
-
const ExecuteDataSchema = z
|
|
25
|
+
export const ExecuteDataSchema = z
|
|
26
26
|
.object({
|
|
27
27
|
executionId: z.string().describe('Unique identifier for the execution'),
|
|
28
28
|
status: z
|
|
@@ -35,7 +35,7 @@ const ExecuteDataSchema = z
|
|
|
35
35
|
})
|
|
36
36
|
.describe('Response data from command execution');
|
|
37
37
|
|
|
38
|
-
const ExecuteResponseSchema = APIResponseSchema(ExecuteDataSchema);
|
|
38
|
+
export const ExecuteResponseSchema = APIResponseSchema(ExecuteDataSchema);
|
|
39
39
|
|
|
40
40
|
export interface SandboxExecuteParams {
|
|
41
41
|
sandboxId: string;
|