@agentuity/server 0.0.46 → 0.0.47
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.
|
@@ -2,13 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
import { APIClient } from '../api';
|
|
3
3
|
declare const CreateProjectRequestSchema: z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
orgId: z.ZodString;
|
|
6
|
+
cloudRegion: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const CreateProjectResponse: z.ZodObject<{
|
|
9
9
|
id: z.ZodString;
|
|
10
|
-
|
|
11
|
-
projectKey: z.ZodString;
|
|
10
|
+
sdkKey: z.ZodString;
|
|
12
11
|
}, z.core.$strip>;
|
|
13
12
|
declare const CreateProjectResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
13
|
success: z.ZodLiteral<false>;
|
|
@@ -17,13 +16,12 @@ declare const CreateProjectResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
17
16
|
success: z.ZodLiteral<true>;
|
|
18
17
|
data: z.ZodObject<{
|
|
19
18
|
id: z.ZodString;
|
|
20
|
-
|
|
21
|
-
projectKey: z.ZodString;
|
|
19
|
+
sdkKey: z.ZodString;
|
|
22
20
|
}, z.core.$strip>;
|
|
23
21
|
}, z.core.$strip>], "success">;
|
|
24
22
|
export type CreateProjectRequest = z.infer<typeof CreateProjectRequestSchema>;
|
|
25
23
|
export type CreateProjectResponse = z.infer<typeof CreateProjectResponseSchema>;
|
|
26
|
-
export type NewProject =
|
|
24
|
+
export type NewProject = z.infer<typeof CreateProjectResponse>;
|
|
27
25
|
/**
|
|
28
26
|
* Create a new Project
|
|
29
27
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/api/project/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,QAAQ,CAAC;AAEtD,QAAA,MAAM,0BAA0B;;;;
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/api/project/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,QAAQ,CAAC;AAEtD,QAAA,MAAM,0BAA0B;;;;iBAI9B,CAAC;AAEH,QAAA,MAAM,qBAAqB;;;iBAGzB,CAAC;AAEH,QAAA,MAAM,2BAA2B;;;;;;;;;8BAA2C,CAAC;AAE7E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE/D;;;;;;GAMG;AACH,wBAAsB,aAAa,CAClC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,oBAAoB,GACxB,OAAO,CAAC,UAAU,CAAC,CAYrB"}
|
|
@@ -2,17 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
import { APIResponseSchema } from '../api';
|
|
3
3
|
const CreateProjectRequestSchema = z.object({
|
|
4
4
|
name: z.string().max(255).min(1).describe('the name of the new project'),
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
.max(255)
|
|
8
|
-
.min(1)
|
|
9
|
-
.describe('the organization id to create the project in'),
|
|
10
|
-
provider: z.string().max(255).min(1),
|
|
5
|
+
orgId: z.string().max(255).min(1).describe('the organization id to create the project in'),
|
|
6
|
+
cloudRegion: z.string().describe('the cloud region to create the project'),
|
|
11
7
|
});
|
|
12
8
|
const CreateProjectResponse = z.object({
|
|
13
9
|
id: z.string().describe('the unique id for the project'),
|
|
14
|
-
|
|
15
|
-
projectKey: z.string().describe('the Project api key for the project'),
|
|
10
|
+
sdkKey: z.string().describe('the SDK key for the project'),
|
|
16
11
|
});
|
|
17
12
|
const CreateProjectResponseSchema = APIResponseSchema(CreateProjectResponse);
|
|
18
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/api/project/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAa,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEtD,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACxE,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/api/project/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAa,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEtD,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACxE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IAC1F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;CAC1E,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;CAC1D,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAM7E;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAClC,MAAiB,EACjB,IAA0B;IAE1B,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAChC,MAAM,EACN,cAAc,EACd,2BAA2B,EAC3B,IAAI,EACJ,0BAA0B,CAC1B,CAAC;IACF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity employees and contributors",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"prepublishOnly": "bun run clean && bun run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agentuity/core": "0.0.
|
|
28
|
+
"@agentuity/core": "0.0.47",
|
|
29
29
|
"zod": "^4.1.12"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -3,25 +3,20 @@ import { APIClient, APIResponseSchema } from '../api';
|
|
|
3
3
|
|
|
4
4
|
const CreateProjectRequestSchema = z.object({
|
|
5
5
|
name: z.string().max(255).min(1).describe('the name of the new project'),
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
.max(255)
|
|
9
|
-
.min(1)
|
|
10
|
-
.describe('the organization id to create the project in'),
|
|
11
|
-
provider: z.string().max(255).min(1),
|
|
6
|
+
orgId: z.string().max(255).min(1).describe('the organization id to create the project in'),
|
|
7
|
+
cloudRegion: z.string().describe('the cloud region to create the project'),
|
|
12
8
|
});
|
|
13
9
|
|
|
14
10
|
const CreateProjectResponse = z.object({
|
|
15
11
|
id: z.string().describe('the unique id for the project'),
|
|
16
|
-
|
|
17
|
-
projectKey: z.string().describe('the Project api key for the project'),
|
|
12
|
+
sdkKey: z.string().describe('the SDK key for the project'),
|
|
18
13
|
});
|
|
19
14
|
|
|
20
15
|
const CreateProjectResponseSchema = APIResponseSchema(CreateProjectResponse);
|
|
21
16
|
|
|
22
17
|
export type CreateProjectRequest = z.infer<typeof CreateProjectRequestSchema>;
|
|
23
18
|
export type CreateProjectResponse = z.infer<typeof CreateProjectResponseSchema>;
|
|
24
|
-
export type NewProject =
|
|
19
|
+
export type NewProject = z.infer<typeof CreateProjectResponse>;
|
|
25
20
|
|
|
26
21
|
/**
|
|
27
22
|
* Create a new Project
|