@agentuity/server 1.0.2 → 1.0.4
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 +13 -7
- 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 +52 -1
- package/dist/api/sandbox/execute.d.ts.map +1 -1
- package/dist/api/sandbox/execute.js +13 -7
- 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 +17 -11
- package/src/api/sandbox/destroy.ts +4 -4
- package/src/api/sandbox/execute.ts +17 -11
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/api/stream/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/api/stream/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,QAAQ,CAAC;AAG3D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAgB7B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;8BAAwC,CAAC;AAEhF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAYpF"}
|
package/dist/api/stream/get.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { APIResponseSchema } from '../api';
|
|
3
3
|
import { StreamResponseError } from './util';
|
|
4
|
-
const StreamDetailSchema = z.object({
|
|
4
|
+
export const StreamDetailSchema = z.object({
|
|
5
5
|
id: z.string().describe('the stream id'),
|
|
6
6
|
namespace: z.string().describe('the stream namespace'),
|
|
7
7
|
metadata: z.record(z.string(), z.string()).describe('stream metadata'),
|
|
@@ -18,7 +18,7 @@ const StreamDetailSchema = z.object({
|
|
|
18
18
|
headers: z.record(z.string(), z.string()).describe('stream headers'),
|
|
19
19
|
chunks: z.number().describe('number of chunks'),
|
|
20
20
|
});
|
|
21
|
-
const StreamDetailResponseSchema = APIResponseSchema(StreamDetailSchema);
|
|
21
|
+
export const StreamDetailResponseSchema = APIResponseSchema(StreamDetailSchema);
|
|
22
22
|
/**
|
|
23
23
|
* Get a specific stream by ID.
|
|
24
24
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/api/stream/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/api/stream/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACtD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IACtE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC3D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACxE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAC3E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC5E,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACxE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAClF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC3D,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IACzE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACpE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAKhF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,MAAiB,EAAE,EAAU;IAC5D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAChC,KAAK,EACL,eAAe,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACvC,0BAA0B,CAC1B,CAAC;IAEF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient } from '../api';
|
|
3
|
-
declare const StreamInfoSchema: z.ZodObject<{
|
|
2
|
+
import { type APIClient } from '../api';
|
|
3
|
+
export declare const StreamInfoSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
namespace: z.ZodString;
|
|
6
6
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -11,7 +11,7 @@ declare const StreamInfoSchema: z.ZodObject<{
|
|
|
11
11
|
projectId: z.ZodNullable<z.ZodString>;
|
|
12
12
|
projectName: z.ZodNullable<z.ZodString>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
declare const StreamListDataSchema: z.ZodObject<{
|
|
14
|
+
export declare const StreamListDataSchema: z.ZodObject<{
|
|
15
15
|
streams: z.ZodArray<z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
17
17
|
namespace: z.ZodString;
|
|
@@ -25,7 +25,7 @@ declare const StreamListDataSchema: z.ZodObject<{
|
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
total: z.ZodNumber;
|
|
27
27
|
}, z.core.$strip>;
|
|
28
|
-
declare const StreamListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
|
+
export declare const StreamListResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
29
|
success: z.ZodLiteral<false>;
|
|
30
30
|
message: z.ZodString;
|
|
31
31
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -104,5 +104,4 @@ export interface StreamListOptions {
|
|
|
104
104
|
* });
|
|
105
105
|
*/
|
|
106
106
|
export declare function streamList(client: APIClient, options?: StreamListOptions): Promise<StreamListData>;
|
|
107
|
-
export {};
|
|
108
107
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/api/stream/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/api/stream/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,QAAQ,CAAC;AAG3D,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAU3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;8BAA0C,CAAC;AAEhF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,UAAU,CAC/B,MAAM,EAAE,SAAS,EACjB,OAAO,GAAE,iBAAsB,GAC7B,OAAO,CAAC,cAAc,CAAC,CAyBzB"}
|
package/dist/api/stream/list.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { APIResponseSchema } from '../api';
|
|
3
3
|
import { StreamResponseError } from './util';
|
|
4
|
-
const StreamInfoSchema = z.object({
|
|
4
|
+
export const StreamInfoSchema = z.object({
|
|
5
5
|
id: z.string().describe('the stream id'),
|
|
6
6
|
namespace: z.string().describe('the stream namespace'),
|
|
7
7
|
metadata: z.record(z.string(), z.string()).describe('stream metadata'),
|
|
@@ -12,11 +12,11 @@ const StreamInfoSchema = z.object({
|
|
|
12
12
|
projectId: z.string().nullable().describe('the project id'),
|
|
13
13
|
projectName: z.string().nullable().describe('the project name'),
|
|
14
14
|
});
|
|
15
|
-
const StreamListDataSchema = z.object({
|
|
15
|
+
export const StreamListDataSchema = z.object({
|
|
16
16
|
streams: z.array(StreamInfoSchema).describe('list of streams'),
|
|
17
17
|
total: z.number().describe('total count of matching streams'),
|
|
18
18
|
});
|
|
19
|
-
const StreamListResponseSchema = APIResponseSchema(StreamListDataSchema);
|
|
19
|
+
export const StreamListResponseSchema = APIResponseSchema(StreamListDataSchema);
|
|
20
20
|
/**
|
|
21
21
|
* List streams with optional filtering.
|
|
22
22
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/api/stream/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/api/stream/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACtD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IACtE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC3D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAClF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC3D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CAC/D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAC9D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;CAC7D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;AAiChF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC/B,MAAiB,EACjB,UAA6B,EAAE;IAE/B,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IACzE,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IAErC,IAAI,SAAS;QAAE,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAClD,IAAI,KAAK;QAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACtC,IAAI,SAAS;QAAE,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAClD,IAAI,KAAK,KAAK,SAAS;QAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/D,IAAI,MAAM,KAAK,SAAS;QAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IAClE,IAAI,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClD,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;IACtC,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAChC,KAAK,EACL,cAAc,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EACpD,wBAAwB,CACxB,CAAC;IAEF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity employees and contributors",
|
|
6
6
|
"type": "module",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"prepublishOnly": "bun run clean && bun run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agentuity/core": "1.0.
|
|
29
|
-
"@agentuity/schema": "1.0.
|
|
28
|
+
"@agentuity/core": "1.0.4",
|
|
29
|
+
"@agentuity/schema": "1.0.4",
|
|
30
30
|
"zod": "^4.3.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@agentuity/test-utils": "1.0.
|
|
33
|
+
"@agentuity/test-utils": "1.0.4",
|
|
34
34
|
"@types/bun": "latest",
|
|
35
35
|
"@types/node": "^22.0.0",
|
|
36
36
|
"bun-types": "latest",
|
package/src/api/db/index.ts
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
export {
|
|
2
|
-
|
|
2
|
+
DbLogsAPIResponseSchema,
|
|
3
3
|
DbLogsRequestSchema,
|
|
4
4
|
DbLogsResponseSchema,
|
|
5
|
-
DbQueryLogSchema,
|
|
6
5
|
type DbQueryLog,
|
|
6
|
+
DbQueryLogSchema,
|
|
7
7
|
type DbQueryLogs,
|
|
8
|
+
dbLogs,
|
|
8
9
|
} from './logs';
|
|
9
|
-
export {
|
|
10
|
-
dbTables,
|
|
11
|
-
generateCreateTableSQL,
|
|
12
|
-
TableColumnSchema,
|
|
13
|
-
TableSchemaSchema,
|
|
14
|
-
type TableColumn,
|
|
15
|
-
type TableSchema,
|
|
16
|
-
} from './tables';
|
|
17
10
|
export {
|
|
18
11
|
dbQuery,
|
|
12
|
+
type QueryColumn,
|
|
19
13
|
QueryColumnSchema,
|
|
20
14
|
QueryResponseSchema,
|
|
21
|
-
QueryResultSchema,
|
|
22
|
-
type QueryColumn,
|
|
23
15
|
type QueryResult,
|
|
16
|
+
QueryResultSchema,
|
|
24
17
|
} from './query';
|
|
25
|
-
export {
|
|
18
|
+
export {
|
|
19
|
+
dbTables,
|
|
20
|
+
generateCreateTableSQL,
|
|
21
|
+
type TableColumn,
|
|
22
|
+
TableColumnSchema,
|
|
23
|
+
type TableSchema,
|
|
24
|
+
TableSchemaSchema,
|
|
25
|
+
TablesResponseSchema,
|
|
26
|
+
} from './tables';
|
|
27
|
+
export { DbInvalidArgumentError, DbResponseError } from './util';
|
package/src/api/db/logs.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import { DbInvalidArgumentError, DbResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const DbLogsRequestSchema = z.object({
|
|
@@ -30,7 +30,7 @@ export const DbQueryLogSchema = z.object({
|
|
|
30
30
|
|
|
31
31
|
export const DbLogsResponseSchema = z.array(DbQueryLogSchema);
|
|
32
32
|
|
|
33
|
-
const DbLogsAPIResponseSchema = APIResponseSchema(DbLogsResponseSchema);
|
|
33
|
+
export const DbLogsAPIResponseSchema = APIResponseSchema(DbLogsResponseSchema);
|
|
34
34
|
|
|
35
35
|
type DbLogsRequest = z.infer<typeof DbLogsRequestSchema>;
|
|
36
36
|
type DbLogsAPIResponse = z.infer<typeof DbLogsAPIResponseSchema>;
|
package/src/api/db/tables.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import { DbInvalidArgumentError, DbResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const TableColumnSchema = z.object({
|
|
@@ -15,7 +15,7 @@ export const TableSchemaSchema = z.object({
|
|
|
15
15
|
columns: z.array(TableColumnSchema).describe('table columns'),
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
const TablesResponseSchema = APIResponseSchema(
|
|
18
|
+
export const TablesResponseSchema = APIResponseSchema(
|
|
19
19
|
z.object({
|
|
20
20
|
tables: z.array(TableSchemaSchema),
|
|
21
21
|
})
|
package/src/api/eval/get.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
|
|
4
4
|
export const EvaluationDetailSchema = z.object({
|
|
5
5
|
id: z.string().describe('Evaluation ID'),
|
|
@@ -14,7 +14,7 @@ export const EvaluationDetailSchema = z.object({
|
|
|
14
14
|
updatedAt: z.string().describe('Last updated timestamp'),
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
const EvalGetResponseSchema = APIResponseSchema(EvaluationDetailSchema);
|
|
17
|
+
export const EvalGetResponseSchema = APIResponseSchema(EvaluationDetailSchema);
|
|
18
18
|
|
|
19
19
|
export type EvaluationDetail = z.infer<typeof EvaluationDetailSchema>;
|
|
20
20
|
|
package/src/api/eval/index.ts
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
export {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
EvalGetResponseSchema,
|
|
3
|
+
type EvaluationDetail,
|
|
4
|
+
EvaluationDetailSchema,
|
|
5
|
+
evalGet,
|
|
6
|
+
} from './get';
|
|
7
|
+
export {
|
|
4
8
|
EvalListResponseData,
|
|
9
|
+
EvalListResponseSchema,
|
|
5
10
|
type Evaluation,
|
|
6
11
|
type EvaluationListRequest,
|
|
12
|
+
EvaluationSchema,
|
|
13
|
+
evalList,
|
|
7
14
|
} from './list';
|
|
8
|
-
export { evalGet, EvaluationDetailSchema, type EvaluationDetail } from './get';
|
|
9
15
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
type EvalRunDetail,
|
|
17
|
+
EvalRunDetailSchema,
|
|
18
|
+
EvalRunGetResponseSchema,
|
|
19
|
+
evalRunGet,
|
|
20
|
+
} from './run-get';
|
|
21
|
+
export {
|
|
13
22
|
type EvalRunListItem,
|
|
14
23
|
type EvalRunListRequest,
|
|
24
|
+
EvalRunListResponseData,
|
|
25
|
+
EvalRunListResponseSchema,
|
|
26
|
+
EvalRunSchema,
|
|
27
|
+
evalRunList,
|
|
15
28
|
} from './run-list';
|
|
16
|
-
export { evalRunGet, EvalRunDetailSchema, type EvalRunDetail } from './run-get';
|
package/src/api/eval/list.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
|
|
4
4
|
export const EvaluationSchema = z.object({
|
|
5
5
|
id: z.string().describe('Evaluation ID'),
|
|
@@ -14,7 +14,7 @@ export const EvaluationSchema = z.object({
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
export const EvalListResponseData = z.array(EvaluationSchema);
|
|
17
|
-
const EvalListResponseSchema = APIResponseSchema(EvalListResponseData);
|
|
17
|
+
export const EvalListResponseSchema = APIResponseSchema(EvalListResponseData);
|
|
18
18
|
|
|
19
19
|
export type Evaluation = z.infer<typeof EvaluationSchema>;
|
|
20
20
|
export type EvaluationListRequest = {
|
package/src/api/eval/run-get.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
|
|
4
4
|
export const EvalRunDetailSchema = z.object({
|
|
5
5
|
id: z.string().describe('Eval run ID'),
|
|
@@ -20,7 +20,7 @@ export const EvalRunDetailSchema = z.object({
|
|
|
20
20
|
updatedAt: z.string().describe('Last updated timestamp'),
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
const EvalRunGetResponseSchema = APIResponseSchema(EvalRunDetailSchema);
|
|
23
|
+
export const EvalRunGetResponseSchema = APIResponseSchema(EvalRunDetailSchema);
|
|
24
24
|
|
|
25
25
|
export type EvalRunDetail = z.infer<typeof EvalRunDetailSchema>;
|
|
26
26
|
|
package/src/api/eval/run-list.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
|
|
4
4
|
export const EvalRunSchema = z.object({
|
|
5
5
|
id: z.string().describe('Eval run ID'),
|
|
@@ -20,7 +20,7 @@ export const EvalRunSchema = z.object({
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
export const EvalRunListResponseData = z.array(EvalRunSchema);
|
|
23
|
-
const EvalRunListResponseSchema = APIResponseSchema(EvalRunListResponseData);
|
|
23
|
+
export const EvalRunListResponseSchema = APIResponseSchema(EvalRunListResponseData);
|
|
24
24
|
|
|
25
25
|
export type EvalRunListItem = z.infer<typeof EvalRunSchema>;
|
|
26
26
|
export type EvalRunListRequest = {
|
package/src/api/project/agent.ts
CHANGED
|
@@ -28,8 +28,8 @@ export const AgentSchema = z.object({
|
|
|
28
28
|
.describe('Associated evaluations'),
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
const AgentListResponseSchema = APIResponseSchema(z.array(AgentSchema));
|
|
32
|
-
const AgentGetResponseSchema = APIResponseSchema(z.array(AgentSchema));
|
|
31
|
+
export const AgentListResponseSchema = APIResponseSchema(z.array(AgentSchema));
|
|
32
|
+
export const AgentGetResponseSchema = APIResponseSchema(z.array(AgentSchema));
|
|
33
33
|
|
|
34
34
|
export type Agent = z.infer<typeof AgentSchema>;
|
|
35
35
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import { ProjectResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const CreateProjectRequestSchema = z.object({
|
|
@@ -16,7 +16,7 @@ export const NewProjectSchema = z.object({
|
|
|
16
16
|
sdkKey: z.string().describe('the SDK key for the project'),
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
const CreateProjectResponseSchema = APIResponseSchema(NewProjectSchema);
|
|
19
|
+
export const CreateProjectResponseSchema = APIResponseSchema(NewProjectSchema);
|
|
20
20
|
|
|
21
21
|
export type CreateProjectRequest = z.infer<typeof CreateProjectRequestSchema>;
|
|
22
22
|
export type CreateProjectResponse = z.infer<typeof CreateProjectResponseSchema>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import { ProjectResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const ProjectDeleteRequestSchema = z.object({ ids: z.array(z.string()) });
|
|
6
|
-
const ProjectDeleteResponseSchema = APIResponseSchema(z.array(z.string()));
|
|
6
|
+
export const ProjectDeleteResponseSchema = APIResponseSchema(z.array(z.string()));
|
|
7
7
|
|
|
8
8
|
type ProjectDeleteRequest = z.infer<typeof ProjectDeleteRequestSchema>;
|
|
9
9
|
type ProjectDeleteResponse = z.infer<typeof ProjectDeleteResponseSchema>;
|
|
@@ -178,7 +178,9 @@ export const CreateProjectDeploymentSchema = z.object({
|
|
|
178
178
|
.describe('the URL for streaming build logs (PUT to write, GET to read)'),
|
|
179
179
|
});
|
|
180
180
|
|
|
181
|
-
const CreateProjectDeploymentResponseSchema = APIResponseSchema(
|
|
181
|
+
export const CreateProjectDeploymentResponseSchema = APIResponseSchema(
|
|
182
|
+
CreateProjectDeploymentSchema
|
|
183
|
+
);
|
|
182
184
|
|
|
183
185
|
type CreateProjectDeploymentPayload = z.infer<typeof CreateProjectDeploymentResponseSchema>;
|
|
184
186
|
|
|
@@ -218,7 +220,7 @@ export const DeploymentInstructionsSchema = z.object({
|
|
|
218
220
|
.describe('the upload metadata for public assets'),
|
|
219
221
|
});
|
|
220
222
|
|
|
221
|
-
const DeploymentInstructionsResponseSchema = APIResponseSchema(DeploymentInstructionsSchema);
|
|
223
|
+
export const DeploymentInstructionsResponseSchema = APIResponseSchema(DeploymentInstructionsSchema);
|
|
222
224
|
|
|
223
225
|
type DeploymentInstructionsResponse = z.infer<typeof DeploymentInstructionsResponseSchema>;
|
|
224
226
|
export type DeploymentInstructions = z.infer<typeof DeploymentInstructionsSchema>;
|
|
@@ -259,7 +261,7 @@ export const DeploymentCompleteSchema = z.object({
|
|
|
259
261
|
.describe('the map of public urls'),
|
|
260
262
|
});
|
|
261
263
|
|
|
262
|
-
const DeploymentCompleteResponseSchema = APIResponseSchema(DeploymentCompleteSchema);
|
|
264
|
+
export const DeploymentCompleteResponseSchema = APIResponseSchema(DeploymentCompleteSchema);
|
|
263
265
|
|
|
264
266
|
type DeploymentCompleteResponse = z.infer<typeof DeploymentCompleteResponseSchema>;
|
|
265
267
|
export type DeploymentComplete = z.infer<typeof DeploymentCompleteSchema>;
|
|
@@ -278,7 +280,7 @@ export const DeploymentStatusSchema = z.object({
|
|
|
278
280
|
state: DeploymentStateValue.describe('the current deployment state'),
|
|
279
281
|
});
|
|
280
282
|
|
|
281
|
-
const DeploymentStatusResponseSchema = APIResponseSchema(DeploymentStatusSchema);
|
|
283
|
+
export const DeploymentStatusResponseSchema = APIResponseSchema(DeploymentStatusSchema);
|
|
282
284
|
|
|
283
285
|
type DeploymentStatusResponse = z.infer<typeof DeploymentStatusResponseSchema>;
|
|
284
286
|
export type DeploymentStatusResult = z.infer<typeof DeploymentStatusSchema>;
|
|
@@ -393,7 +395,7 @@ export const DeploymentFailResponseSchema = z.object({
|
|
|
393
395
|
state: z.literal('failed'),
|
|
394
396
|
});
|
|
395
397
|
|
|
396
|
-
const DeploymentFailAPIResponseSchema = APIResponseSchema(DeploymentFailResponseSchema);
|
|
398
|
+
export const DeploymentFailAPIResponseSchema = APIResponseSchema(DeploymentFailResponseSchema);
|
|
397
399
|
type DeploymentFailResponse = z.infer<typeof DeploymentFailAPIResponseSchema>;
|
|
398
400
|
|
|
399
401
|
/**
|
|
@@ -53,9 +53,9 @@ export const DeploymentSchema = z.object({
|
|
|
53
53
|
dnsRecords: z.array(z.string()).optional(),
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
const DeploymentListResponseSchema = APIResponseSchema(z.array(DeploymentSchema));
|
|
57
|
-
const DeploymentGetResponseSchema = APIResponseSchema(DeploymentSchema);
|
|
58
|
-
const DeploymentActionResponseSchema = APIResponseSchemaOptionalData(
|
|
56
|
+
export const DeploymentListResponseSchema = APIResponseSchema(z.array(DeploymentSchema));
|
|
57
|
+
export const DeploymentGetResponseSchema = APIResponseSchema(DeploymentSchema);
|
|
58
|
+
export const DeploymentActionResponseSchema = APIResponseSchemaOptionalData(
|
|
59
59
|
z.object({ activeDeploymentId: z.string().optional() })
|
|
60
60
|
);
|
|
61
61
|
|
|
@@ -100,7 +100,7 @@ export const DeploymentLookupSchema = z.object({
|
|
|
100
100
|
active: z.boolean(),
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
const DeploymentLookupResponseSchema = APIResponseSchema(DeploymentLookupSchema);
|
|
103
|
+
export const DeploymentLookupResponseSchema = APIResponseSchema(DeploymentLookupSchema);
|
|
104
104
|
|
|
105
105
|
export type DeploymentLookup = z.infer<typeof DeploymentLookupSchema>;
|
|
106
106
|
|
|
@@ -171,7 +171,7 @@ export const DeploymentLogSchema = z.object({
|
|
|
171
171
|
serviceName: z.string(),
|
|
172
172
|
});
|
|
173
173
|
|
|
174
|
-
const DeploymentLogsResponseSchema = APIResponseSchema(z.array(DeploymentLogSchema));
|
|
174
|
+
export const DeploymentLogsResponseSchema = APIResponseSchema(z.array(DeploymentLogSchema));
|
|
175
175
|
|
|
176
176
|
export type DeploymentLog = z.infer<typeof DeploymentLogSchema>;
|
|
177
177
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchemaNoData } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchemaNoData } from '../api';
|
|
3
3
|
import { ProjectResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const ProjectEnvDeleteRequestSchema = z
|
|
@@ -12,7 +12,7 @@ export const ProjectEnvDeleteRequestSchema = z
|
|
|
12
12
|
message: 'must provide at least one of env or secrets',
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
const ProjectEnvDeleteResponseSchema = APIResponseSchemaNoData();
|
|
15
|
+
export const ProjectEnvDeleteResponseSchema = APIResponseSchemaNoData();
|
|
16
16
|
|
|
17
17
|
type ProjectEnvDeleteRequest = z.infer<typeof ProjectEnvDeleteRequestSchema>;
|
|
18
18
|
type ProjectEnvDeleteResponse = z.infer<typeof ProjectEnvDeleteResponseSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import type { Project } from './get';
|
|
4
4
|
import { projectGet } from './get';
|
|
5
5
|
import { ProjectResponseError } from './util';
|
|
@@ -10,7 +10,7 @@ export const ProjectEnvUpdateRequestSchema = z.object({
|
|
|
10
10
|
secrets: z.record(z.string(), z.string()).optional().describe('secrets to set/update'),
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
const ProjectEnvUpdateResponseSchema = APIResponseSchema(
|
|
13
|
+
export const ProjectEnvUpdateResponseSchema = APIResponseSchema(
|
|
14
14
|
z
|
|
15
15
|
.object({
|
|
16
16
|
id: z.string().describe('the project id'),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient,
|
|
2
|
+
import { type APIClient, APIError, APIResponseSchema } from '../api';
|
|
3
3
|
import { ProjectResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const ProjectExistsRequestSchema = z.object({
|
|
@@ -11,7 +11,7 @@ export const ProjectExistsRequestSchema = z.object({
|
|
|
11
11
|
.describe('the organization id to create the project in'),
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
const ProjectExistsResponseSchema = APIResponseSchema(z.boolean());
|
|
14
|
+
export const ProjectExistsResponseSchema = APIResponseSchema(z.boolean());
|
|
15
15
|
|
|
16
16
|
export type ProjectExistsRequest = z.infer<typeof ProjectExistsRequestSchema>;
|
|
17
17
|
export type ProjectExistsResponse = z.infer<typeof ProjectExistsResponseSchema>;
|
package/src/api/project/get.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import { ProjectResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const ProjectGetRequestSchema = z.object({
|
|
@@ -20,7 +20,7 @@ export const ProjectSchema = z.object({
|
|
|
20
20
|
secrets: z.record(z.string(), z.string()).optional().describe('the secrets key/values'),
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
const ProjectGetResponseSchema = APIResponseSchema(ProjectSchema);
|
|
23
|
+
export const ProjectGetResponseSchema = APIResponseSchema(ProjectSchema);
|
|
24
24
|
|
|
25
25
|
type ProjectGetRequest = z.infer<typeof ProjectGetRequestSchema>;
|
|
26
26
|
type ProjectGetResponse = z.infer<typeof ProjectGetResponseSchema>;
|
package/src/api/project/list.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import { ProjectResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const ProjectListItemSchema = z.object({
|
|
@@ -14,7 +14,7 @@ export const ProjectListItemSchema = z.object({
|
|
|
14
14
|
|
|
15
15
|
export const ProjectListSchema = z.array(ProjectListItemSchema);
|
|
16
16
|
|
|
17
|
-
const ProjectListResponseSchema = APIResponseSchema(ProjectListSchema);
|
|
17
|
+
export const ProjectListResponseSchema = APIResponseSchema(ProjectListSchema);
|
|
18
18
|
|
|
19
19
|
export type ProjectListResponse = z.infer<typeof ProjectListResponseSchema>;
|
|
20
20
|
export type ProjectList = z.infer<typeof ProjectListSchema>;
|
|
@@ -34,7 +34,7 @@ export const MalwareCheckResultSchema = z.object({
|
|
|
34
34
|
error: z.string().optional(),
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
const MalwareCheckResponseSchema = APIResponseSchema(MalwareCheckResultSchema);
|
|
37
|
+
export const MalwareCheckResponseSchema = APIResponseSchema(MalwareCheckResultSchema);
|
|
38
38
|
|
|
39
39
|
export type MalwareCheckResult = z.infer<typeof MalwareCheckResultSchema>;
|
|
40
40
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import { ProjectResponseError } from './util';
|
|
4
4
|
|
|
5
5
|
export const UpdateRegionRequestSchema = z.object({
|
|
6
6
|
cloudRegion: z.string().describe('the cloud region to update the project to'),
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
const UpdateRegionResponseSchema = APIResponseSchema(
|
|
9
|
+
export const UpdateRegionResponseSchema = APIResponseSchema(
|
|
10
10
|
z.object({
|
|
11
11
|
id: z.string().describe('the project id'),
|
|
12
12
|
})
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema } from '../api';
|
|
2
|
+
import { type APIClient, APIResponseSchema } from '../api';
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
QueueAnalyticsSchema,
|
|
6
|
-
TimeSeriesDataSchema,
|
|
7
|
-
SSEStatsEventSchema,
|
|
4
|
+
type AnalyticsOptions,
|
|
8
5
|
type OrgAnalytics,
|
|
6
|
+
OrgAnalyticsSchema,
|
|
9
7
|
type QueueAnalytics,
|
|
10
|
-
|
|
8
|
+
QueueAnalyticsSchema,
|
|
11
9
|
type SSEStatsEvent,
|
|
12
|
-
|
|
10
|
+
SSEStatsEventSchema,
|
|
13
11
|
type StreamAnalyticsOptions,
|
|
12
|
+
type TimeSeriesData,
|
|
13
|
+
TimeSeriesDataSchema,
|
|
14
14
|
} from './types';
|
|
15
|
-
import { QueueError, QueueNotFoundError, queueApiPathWithQuery
|
|
15
|
+
import { buildQueueHeaders, QueueError, QueueNotFoundError, queueApiPathWithQuery } from './util';
|
|
16
16
|
import { validateQueueName } from './validation';
|
|
17
17
|
|
|
18
|
-
const OrgAnalyticsResponseSchema = APIResponseSchema(
|
|
19
|
-
|
|
18
|
+
export const OrgAnalyticsResponseSchema = APIResponseSchema(
|
|
19
|
+
z.object({ analytics: OrgAnalyticsSchema })
|
|
20
|
+
);
|
|
21
|
+
export const QueueAnalyticsResponseSchema = APIResponseSchema(
|
|
20
22
|
z.object({ analytics: QueueAnalyticsSchema })
|
|
21
23
|
);
|
|
22
|
-
const TimeSeriesResponseSchema = APIResponseSchema(
|
|
24
|
+
export const TimeSeriesResponseSchema = APIResponseSchema(
|
|
25
|
+
z.object({ timeseries: TimeSeriesDataSchema })
|
|
26
|
+
);
|
|
23
27
|
|
|
24
28
|
/**
|
|
25
29
|
* Build query string from analytics options.
|
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { APIClient, APIResponseSchema, APIResponseSchemaNoData
|
|
2
|
+
import { type APIClient, APIError, APIResponseSchema, APIResponseSchemaNoData } from '../api';
|
|
3
3
|
import {
|
|
4
|
-
DestinationSchema,
|
|
5
|
-
type Destination,
|
|
6
4
|
type CreateDestinationRequest,
|
|
7
|
-
type UpdateDestinationRequest,
|
|
8
|
-
type QueueApiOptions,
|
|
9
5
|
CreateDestinationRequestSchema,
|
|
6
|
+
type Destination,
|
|
7
|
+
DestinationSchema,
|
|
8
|
+
type QueueApiOptions,
|
|
9
|
+
type UpdateDestinationRequest,
|
|
10
10
|
UpdateDestinationRequestSchema,
|
|
11
11
|
} from './types';
|
|
12
12
|
import {
|
|
13
|
+
buildQueueHeaders,
|
|
14
|
+
DestinationAlreadyExistsError,
|
|
15
|
+
DestinationNotFoundError,
|
|
13
16
|
QueueError,
|
|
14
17
|
QueueNotFoundError,
|
|
15
|
-
DestinationNotFoundError,
|
|
16
|
-
DestinationAlreadyExistsError,
|
|
17
18
|
queueApiPath,
|
|
18
|
-
buildQueueHeaders,
|
|
19
19
|
} from './util';
|
|
20
|
-
import {
|
|
20
|
+
import { validateDestinationConfig, validateDestinationId, validateQueueName } from './validation';
|
|
21
21
|
|
|
22
|
-
const DestinationResponseSchema = APIResponseSchema(
|
|
23
|
-
|
|
22
|
+
export const DestinationResponseSchema = APIResponseSchema(
|
|
23
|
+
z.object({ destination: DestinationSchema })
|
|
24
|
+
);
|
|
25
|
+
export const DestinationsListResponseSchema = APIResponseSchema(
|
|
24
26
|
z.object({
|
|
25
27
|
destinations: z.array(DestinationSchema),
|
|
26
28
|
})
|
|
27
29
|
);
|
|
28
|
-
const DeleteDestinationResponseSchema = APIResponseSchemaNoData();
|
|
30
|
+
export const DeleteDestinationResponseSchema = APIResponseSchemaNoData();
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
33
|
* Create a destination for a queue.
|