@archastro/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/auth.d.ts +15 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +65 -0
- package/dist/auth.js.map +1 -0
- package/dist/channels/api_activity_feed_channel.d.ts +21 -0
- package/dist/channels/api_activity_feed_channel.d.ts.map +1 -0
- package/dist/channels/api_activity_feed_channel.js +33 -0
- package/dist/channels/api_activity_feed_channel.js.map +1 -0
- package/dist/channels/api_chat_channel.d.ts +51 -0
- package/dist/channels/api_chat_channel.d.ts.map +1 -0
- package/dist/channels/api_chat_channel.js +95 -0
- package/dist/channels/api_chat_channel.js.map +1 -0
- package/dist/channels/api_object_channel.d.ts +17 -0
- package/dist/channels/api_object_channel.d.ts.map +1 -0
- package/dist/channels/api_object_channel.js +33 -0
- package/dist/channels/api_object_channel.js.map +1 -0
- package/dist/client.d.ts +68 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +123 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/phx_channel/channel.d.ts +35 -0
- package/dist/phx_channel/channel.d.ts.map +1 -0
- package/dist/phx_channel/channel.js +203 -0
- package/dist/phx_channel/channel.js.map +1 -0
- package/dist/phx_channel/index.d.ts +4 -0
- package/dist/phx_channel/index.d.ts.map +1 -0
- package/dist/phx_channel/index.js +3 -0
- package/dist/phx_channel/index.js.map +1 -0
- package/dist/phx_channel/socket.d.ts +71 -0
- package/dist/phx_channel/socket.d.ts.map +1 -0
- package/dist/phx_channel/socket.js +274 -0
- package/dist/phx_channel/socket.js.map +1 -0
- package/dist/runtime/http-client.d.ts +42 -0
- package/dist/runtime/http-client.d.ts.map +1 -0
- package/dist/runtime/http-client.js +207 -0
- package/dist/runtime/http-client.js.map +1 -0
- package/dist/types/agents.d.ts +2254 -0
- package/dist/types/agents.d.ts.map +1 -0
- package/dist/types/agents.js +238 -0
- package/dist/types/agents.js.map +1 -0
- package/dist/types/ai.d.ts +460 -0
- package/dist/types/ai.d.ts.map +1 -0
- package/dist/types/ai.js +70 -0
- package/dist/types/ai.js.map +1 -0
- package/dist/types/artifacts.d.ts +101 -0
- package/dist/types/artifacts.d.ts.map +1 -0
- package/dist/types/artifacts.js +40 -0
- package/dist/types/artifacts.js.map +1 -0
- package/dist/types/automations.d.ts +110 -0
- package/dist/types/automations.d.ts.map +1 -0
- package/dist/types/automations.js +47 -0
- package/dist/types/automations.js.map +1 -0
- package/dist/types/chat.d.ts +20 -0
- package/dist/types/chat.d.ts.map +1 -0
- package/dist/types/chat.js +12 -0
- package/dist/types/chat.js.map +1 -0
- package/dist/types/common.d.ts +4478 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +1209 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/config.d.ts +191 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +63 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/image.d.ts +29 -0
- package/dist/types/image.d.ts.map +1 -0
- package/dist/types/image.js +15 -0
- package/dist/types/image.js.map +1 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +24 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/invite.d.ts +17 -0
- package/dist/types/invite.d.ts.map +1 -0
- package/dist/types/invite.js +11 -0
- package/dist/types/invite.js.map +1 -0
- package/dist/types/me.d.ts +101 -0
- package/dist/types/me.d.ts.map +1 -0
- package/dist/types/me.js +41 -0
- package/dist/types/me.js.map +1 -0
- package/dist/types/members.d.ts +99 -0
- package/dist/types/members.d.ts.map +1 -0
- package/dist/types/members.js +36 -0
- package/dist/types/members.js.map +1 -0
- package/dist/types/messages.d.ts +109 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/messages.js +49 -0
- package/dist/types/messages.js.map +1 -0
- package/dist/types/orgs.d.ts +193 -0
- package/dist/types/orgs.d.ts.map +1 -0
- package/dist/types/orgs.js +69 -0
- package/dist/types/orgs.js.map +1 -0
- package/dist/types/picture.d.ts +20 -0
- package/dist/types/picture.d.ts.map +1 -0
- package/dist/types/picture.js +14 -0
- package/dist/types/picture.js.map +1 -0
- package/dist/types/profile.d.ts +17 -0
- package/dist/types/profile.d.ts.map +1 -0
- package/dist/types/profile.js +11 -0
- package/dist/types/profile.js.map +1 -0
- package/dist/types/reactions.d.ts +29 -0
- package/dist/types/reactions.d.ts.map +1 -0
- package/dist/types/reactions.js +15 -0
- package/dist/types/reactions.js.map +1 -0
- package/dist/types/runs.d.ts +46 -0
- package/dist/types/runs.d.ts.map +1 -0
- package/dist/types/runs.js +15 -0
- package/dist/types/runs.js.map +1 -0
- package/dist/types/schedules.d.ts +32 -0
- package/dist/types/schedules.d.ts.map +1 -0
- package/dist/types/schedules.js +16 -0
- package/dist/types/schedules.js.map +1 -0
- package/dist/types/system.d.ts +23 -0
- package/dist/types/system.d.ts.map +1 -0
- package/dist/types/system.js +13 -0
- package/dist/types/system.js.map +1 -0
- package/dist/types/teams.d.ts +580 -0
- package/dist/types/teams.d.ts.map +1 -0
- package/dist/types/teams.js +84 -0
- package/dist/types/teams.js.map +1 -0
- package/dist/types/threads.d.ts +802 -0
- package/dist/types/threads.d.ts.map +1 -0
- package/dist/types/threads.js +167 -0
- package/dist/types/threads.js.map +1 -0
- package/dist/types/users.d.ts +89 -0
- package/dist/types/users.d.ts.map +1 -0
- package/dist/types/users.js +37 -0
- package/dist/types/users.js.map +1 -0
- package/dist/v1/resources/agent_computers.d.ts +12 -0
- package/dist/v1/resources/agent_computers.d.ts.map +1 -0
- package/dist/v1/resources/agent_computers.js +22 -0
- package/dist/v1/resources/agent_computers.js.map +1 -0
- package/dist/v1/resources/agent_installations.d.ts +22 -0
- package/dist/v1/resources/agent_installations.d.ts.map +1 -0
- package/dist/v1/resources/agent_installations.js +42 -0
- package/dist/v1/resources/agent_installations.js.map +1 -0
- package/dist/v1/resources/agent_routines.d.ts +36 -0
- package/dist/v1/resources/agent_routines.d.ts.map +1 -0
- package/dist/v1/resources/agent_routines.js +56 -0
- package/dist/v1/resources/agent_routines.js.map +1 -0
- package/dist/v1/resources/agent_sessions.d.ts +19 -0
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -0
- package/dist/v1/resources/agent_sessions.js +31 -0
- package/dist/v1/resources/agent_sessions.js.map +1 -0
- package/dist/v1/resources/agent_skills.d.ts +16 -0
- package/dist/v1/resources/agent_skills.d.ts.map +1 -0
- package/dist/v1/resources/agent_skills.js +31 -0
- package/dist/v1/resources/agent_skills.js.map +1 -0
- package/dist/v1/resources/agent_tools.d.ts +23 -0
- package/dist/v1/resources/agent_tools.d.ts.map +1 -0
- package/dist/v1/resources/agent_tools.js +39 -0
- package/dist/v1/resources/agent_tools.js.map +1 -0
- package/dist/v1/resources/agents.d.ts +100 -0
- package/dist/v1/resources/agents.d.ts.map +1 -0
- package/dist/v1/resources/agents.js +112 -0
- package/dist/v1/resources/agents.js.map +1 -0
- package/dist/v1/resources/ai.d.ts +40 -0
- package/dist/v1/resources/ai.d.ts.map +1 -0
- package/dist/v1/resources/ai.js +57 -0
- package/dist/v1/resources/ai.js.map +1 -0
- package/dist/v1/resources/ai_chat_completions.d.ts +49 -0
- package/dist/v1/resources/ai_chat_completions.d.ts.map +1 -0
- package/dist/v1/resources/ai_chat_completions.js +14 -0
- package/dist/v1/resources/ai_chat_completions.js.map +1 -0
- package/dist/v1/resources/ai_chat_models.d.ts +12 -0
- package/dist/v1/resources/ai_chat_models.d.ts.map +1 -0
- package/dist/v1/resources/ai_chat_models.js +14 -0
- package/dist/v1/resources/ai_chat_models.js.map +1 -0
- package/dist/v1/resources/ai_image_edits.d.ts +20 -0
- package/dist/v1/resources/ai_image_edits.d.ts.map +1 -0
- package/dist/v1/resources/ai_image_edits.js +14 -0
- package/dist/v1/resources/ai_image_edits.js.map +1 -0
- package/dist/v1/resources/ai_image_generations.d.ts +20 -0
- package/dist/v1/resources/ai_image_generations.d.ts.map +1 -0
- package/dist/v1/resources/ai_image_generations.js +14 -0
- package/dist/v1/resources/ai_image_generations.js.map +1 -0
- package/dist/v1/resources/ai_image_models.d.ts +12 -0
- package/dist/v1/resources/ai_image_models.d.ts.map +1 -0
- package/dist/v1/resources/ai_image_models.js +14 -0
- package/dist/v1/resources/ai_image_models.js.map +1 -0
- package/dist/v1/resources/artifacts.d.ts +19 -0
- package/dist/v1/resources/artifacts.d.ts.map +1 -0
- package/dist/v1/resources/artifacts.js +33 -0
- package/dist/v1/resources/artifacts.js.map +1 -0
- package/dist/v1/resources/automation_runs.d.ts +14 -0
- package/dist/v1/resources/automation_runs.d.ts.map +1 -0
- package/dist/v1/resources/automation_runs.js +19 -0
- package/dist/v1/resources/automation_runs.js.map +1 -0
- package/dist/v1/resources/automations.d.ts +8 -0
- package/dist/v1/resources/automations.d.ts.map +1 -0
- package/dist/v1/resources/automations.js +13 -0
- package/dist/v1/resources/automations.js.map +1 -0
- package/dist/v1/resources/completions.d.ts +49 -0
- package/dist/v1/resources/completions.d.ts.map +1 -0
- package/dist/v1/resources/completions.js +14 -0
- package/dist/v1/resources/completions.js.map +1 -0
- package/dist/v1/resources/config.d.ts +137 -0
- package/dist/v1/resources/config.d.ts.map +1 -0
- package/dist/v1/resources/config.js +98 -0
- package/dist/v1/resources/config.js.map +1 -0
- package/dist/v1/resources/custom_objects.d.ts +27 -0
- package/dist/v1/resources/custom_objects.d.ts.map +1 -0
- package/dist/v1/resources/custom_objects.js +19 -0
- package/dist/v1/resources/custom_objects.js.map +1 -0
- package/dist/v1/resources/edits.d.ts +20 -0
- package/dist/v1/resources/edits.d.ts.map +1 -0
- package/dist/v1/resources/edits.js +14 -0
- package/dist/v1/resources/edits.js.map +1 -0
- package/dist/v1/resources/generations.d.ts +20 -0
- package/dist/v1/resources/generations.d.ts.map +1 -0
- package/dist/v1/resources/generations.js +14 -0
- package/dist/v1/resources/generations.js.map +1 -0
- package/dist/v1/resources/index.d.ts +21 -0
- package/dist/v1/resources/index.d.ts.map +1 -0
- package/dist/v1/resources/index.js +24 -0
- package/dist/v1/resources/index.js.map +1 -0
- package/dist/v1/resources/installation_sources.d.ts +7 -0
- package/dist/v1/resources/installation_sources.d.ts.map +1 -0
- package/dist/v1/resources/installation_sources.js +13 -0
- package/dist/v1/resources/installation_sources.js.map +1 -0
- package/dist/v1/resources/invoke.d.ts +29 -0
- package/dist/v1/resources/invoke.d.ts.map +1 -0
- package/dist/v1/resources/invoke.js +23 -0
- package/dist/v1/resources/invoke.js.map +1 -0
- package/dist/v1/resources/models.d.ts +12 -0
- package/dist/v1/resources/models.d.ts.map +1 -0
- package/dist/v1/resources/models.js +14 -0
- package/dist/v1/resources/models.js.map +1 -0
- package/dist/v1/resources/orgs.d.ts +23 -0
- package/dist/v1/resources/orgs.d.ts.map +1 -0
- package/dist/v1/resources/orgs.js +13 -0
- package/dist/v1/resources/orgs.js.map +1 -0
- package/dist/v1/resources/team_memberships.d.ts +15 -0
- package/dist/v1/resources/team_memberships.d.ts.map +1 -0
- package/dist/v1/resources/team_memberships.js +16 -0
- package/dist/v1/resources/team_memberships.js.map +1 -0
- package/dist/v1/resources/teams.d.ts +232 -0
- package/dist/v1/resources/teams.d.ts.map +1 -0
- package/dist/v1/resources/teams.js +118 -0
- package/dist/v1/resources/teams.js.map +1 -0
- package/dist/v1/resources/thread_messages.d.ts +38 -0
- package/dist/v1/resources/thread_messages.d.ts.map +1 -0
- package/dist/v1/resources/thread_messages.js +41 -0
- package/dist/v1/resources/thread_messages.js.map +1 -0
- package/dist/v1/resources/threads.d.ts +119 -0
- package/dist/v1/resources/threads.d.ts.map +1 -0
- package/dist/v1/resources/threads.js +119 -0
- package/dist/v1/resources/threads.js.map +1 -0
- package/dist/v1/resources/users.d.ts +148 -0
- package/dist/v1/resources/users.d.ts.map +1 -0
- package/dist/v1/resources/users.js +74 -0
- package/dist/v1/resources/users.js.map +1 -0
- package/dist/v1.d.ts +45 -0
- package/dist/v1.d.ts.map +1 -0
- package/dist/v1.js +68 -0
- package/dist/v1.js.map +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: d2f906336306
|
|
4
|
+
export class AiImageGenerationResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/** Generate an image from a text prompt. */
|
|
10
|
+
async create(input) {
|
|
11
|
+
return this.http.request(`/api/v1/ai/image/generations`, { method: "POST", body: input });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ai_image_generations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai_image_generations.js","sourceRoot":"","sources":["../../../src/v1/resources/ai_image_generations.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,yBAAyB;IAChB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,4CAA4C;IAC5C,KAAK,CAAC,MAAM,CAAC,KAA8B;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,8BAA8B,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
export declare class AiImageModelResource {
|
|
3
|
+
private http;
|
|
4
|
+
constructor(http: HttpClient);
|
|
5
|
+
/** List available image generation models. */
|
|
6
|
+
list(): Promise<{
|
|
7
|
+
data: {
|
|
8
|
+
id: string;
|
|
9
|
+
}[];
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ai_image_models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai_image_models.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/ai_image_models.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,8CAA8C;IACxC,IAAI,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,CAAC;CAGlD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 0df6285279eb
|
|
4
|
+
export class AiImageModelResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/** List available image generation models. */
|
|
10
|
+
async list() {
|
|
11
|
+
return this.http.request(`/api/v1/ai/image/models`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ai_image_models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai_image_models.js","sourceRoot":"","sources":["../../../src/v1/resources/ai_image_models.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,8CAA8C;IAC9C,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { Artifact } from "../../types/artifacts.js";
|
|
3
|
+
export declare class ContentResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
list(artifact: string, params?: {
|
|
7
|
+
version?: number;
|
|
8
|
+
}): Promise<unknown>;
|
|
9
|
+
}
|
|
10
|
+
export declare class ArtifactResource {
|
|
11
|
+
private http;
|
|
12
|
+
readonly content: ContentResource;
|
|
13
|
+
constructor(http: HttpClient);
|
|
14
|
+
delete(artifact: string): Promise<void>;
|
|
15
|
+
get(artifact: string): Promise<Artifact>;
|
|
16
|
+
replace(artifact: string, input: Record<string, unknown>): Promise<Artifact>;
|
|
17
|
+
archive(artifact: string, input: Record<string, unknown>): Promise<unknown>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,qBAAa,eAAe;IACd,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAG9E;AAED,qBAAa,gBAAgB;IAGf,OAAO,CAAC,IAAI;IAFxB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;gBAEd,IAAI,EAAE,UAAU;IAI9B,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIxC,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI5E,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;CAGlF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: d3c1b670a1f0
|
|
4
|
+
export class ContentResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
async list(artifact, params) {
|
|
10
|
+
return this.http.request(`/api/v1/artifacts/${artifact}/content`, { query: params });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export class ArtifactResource {
|
|
14
|
+
http;
|
|
15
|
+
content;
|
|
16
|
+
constructor(http) {
|
|
17
|
+
this.http = http;
|
|
18
|
+
this.content = new ContentResource(http);
|
|
19
|
+
}
|
|
20
|
+
async delete(artifact) {
|
|
21
|
+
await this.http.request(`/api/v1/artifacts/${artifact}`, { method: "DELETE" });
|
|
22
|
+
}
|
|
23
|
+
async get(artifact) {
|
|
24
|
+
return this.http.request(`/api/v1/artifacts/${artifact}`);
|
|
25
|
+
}
|
|
26
|
+
async replace(artifact, input) {
|
|
27
|
+
return this.http.request(`/api/v1/artifacts/${artifact}`, { method: "PUT", body: input });
|
|
28
|
+
}
|
|
29
|
+
async archive(artifact, input) {
|
|
30
|
+
return this.http.request(`/api/v1/artifacts/${artifact}/archive`, { method: "POST", body: input });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
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C,OAAO,CAAC,qBAAqB,QAAQ,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrG,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { AutomationRun } from "../../types/automations.js";
|
|
3
|
+
export declare class AutomationRunResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Get a single invoked automation run
|
|
8
|
+
* Fetches one run created by an invoked automation.
|
|
9
|
+
* This public lookup route only returns runs whose parent automation has
|
|
10
|
+
* `type: :invoked`.
|
|
11
|
+
*/
|
|
12
|
+
get(automationRun: string): Promise<AutomationRun>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=automation_runs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automation_runs.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/automation_runs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,qBAAa,qBAAqB;IACpB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;OAKG;IACG,GAAG,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGzD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 1b3c68c546f2
|
|
4
|
+
export class AutomationRunResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get a single invoked automation run
|
|
11
|
+
* Fetches one run created by an invoked automation.
|
|
12
|
+
* This public lookup route only returns runs whose parent automation has
|
|
13
|
+
* `type: :invoked`.
|
|
14
|
+
*/
|
|
15
|
+
async get(automationRun) {
|
|
16
|
+
return this.http.request(`/api/v1/automation_runs/${automationRun}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=automation_runs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automation_runs.js","sourceRoot":"","sources":["../../../src/v1/resources/automation_runs.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,qBAAqB;IACZ;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CAAC,aAAqB;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,2BAA2B,aAAa,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { AutomationRun } from "../../types/automations.js";
|
|
3
|
+
export declare class AutomationResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
invoke(automation: string, input: Record<string, unknown>): Promise<AutomationRun>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=automations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/automations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,qBAAa,kBAAkB;IACjB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;CAGzF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 29a53a37732e
|
|
4
|
+
export class AutomationResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
async invoke(automation, input) {
|
|
10
|
+
return this.http.request(`/api/v1/automations/${automation}/invoke`, { method: "POST", body: input });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=automations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automations.js","sourceRoot":"","sources":["../../../src/v1/resources/automations.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,kBAAkB;IACT;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,MAAM,CAAC,UAAkB,EAAE,KAA8B;QAC7D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,UAAU,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACxG,CAAC;CACF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
export declare class CompletionResource {
|
|
3
|
+
private http;
|
|
4
|
+
constructor(http: HttpClient);
|
|
5
|
+
/** Create a chat completion using the AI service (simple mode). */
|
|
6
|
+
create(input: Record<string, unknown>): Promise<{
|
|
7
|
+
finish_reason: string;
|
|
8
|
+
message: {
|
|
9
|
+
content?: string | undefined;
|
|
10
|
+
content_parts?: unknown[] | undefined;
|
|
11
|
+
resume_token?: string | undefined;
|
|
12
|
+
role: string;
|
|
13
|
+
structured_output?: unknown | undefined;
|
|
14
|
+
tool_calls?: {
|
|
15
|
+
arguments: unknown;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
thought_signature?: string | undefined;
|
|
19
|
+
}[] | undefined;
|
|
20
|
+
tool_results?: {
|
|
21
|
+
content?: string | undefined;
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
resolution?: unknown | undefined;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
};
|
|
27
|
+
messages: {
|
|
28
|
+
content?: string | undefined;
|
|
29
|
+
content_parts?: unknown[] | undefined;
|
|
30
|
+
resume_token?: string | undefined;
|
|
31
|
+
role: string;
|
|
32
|
+
structured_output?: unknown | undefined;
|
|
33
|
+
tool_calls?: {
|
|
34
|
+
arguments: unknown;
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
thought_signature?: string | undefined;
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
tool_results?: {
|
|
40
|
+
content?: string | undefined;
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
resolution?: unknown | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
}[];
|
|
46
|
+
token_usage?: unknown | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=completions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/completions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qBAAa,kBAAkB;IACjB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,mEAAmE;IAC7D,MAAM,CAAC,KAAK,EAAE,M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;gBAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAC;gBAAC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;aAAE,EAAE,GAAG,SAAS,CAAA;SAAE,EAAE,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,CAAC;CAG/6B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: fd9cb1767dba
|
|
4
|
+
export class CompletionResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/** Create a chat completion using the AI service (simple mode). */
|
|
10
|
+
async create(input) {
|
|
11
|
+
return this.http.request(`/api/v1/ai/chat/completions`, { method: "POST", body: input });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=completions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../../src/v1/resources/completions.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,kBAAkB;IACT;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,mEAAmE;IACnE,KAAK,CAAC,MAAM,CAAC,KAA8B;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { ValidationResult } from "../../types/common.js";
|
|
3
|
+
import type { Config, ConfigKindSchema } from "../../types/config.js";
|
|
4
|
+
export declare class SystemResource {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
list(params?: {
|
|
8
|
+
kind?: string;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
data: {
|
|
11
|
+
created_at?: string | undefined;
|
|
12
|
+
current_version?: {
|
|
13
|
+
change_description?: string | undefined;
|
|
14
|
+
created_at?: string | undefined;
|
|
15
|
+
data?: unknown | undefined;
|
|
16
|
+
id: string;
|
|
17
|
+
org?: string | undefined;
|
|
18
|
+
sandbox?: string | undefined;
|
|
19
|
+
version_number: number;
|
|
20
|
+
} | undefined;
|
|
21
|
+
id: string;
|
|
22
|
+
is_archived?: boolean | undefined;
|
|
23
|
+
kind: string;
|
|
24
|
+
lookup_key?: string | undefined;
|
|
25
|
+
mime_type?: string | undefined;
|
|
26
|
+
org?: string | undefined;
|
|
27
|
+
raw_content?: string | undefined;
|
|
28
|
+
sandbox?: string | undefined;
|
|
29
|
+
team?: string | undefined;
|
|
30
|
+
updated_at?: string | undefined;
|
|
31
|
+
user?: string | undefined;
|
|
32
|
+
virtual_path?: string | undefined;
|
|
33
|
+
}[];
|
|
34
|
+
}>;
|
|
35
|
+
clone(system: string, input: Record<string, unknown>): Promise<Config>;
|
|
36
|
+
get(system: string): Promise<Config>;
|
|
37
|
+
}
|
|
38
|
+
export declare class SchemaResource {
|
|
39
|
+
private http;
|
|
40
|
+
constructor(http: HttpClient);
|
|
41
|
+
list(kind: string): Promise<ConfigKindSchema>;
|
|
42
|
+
}
|
|
43
|
+
export declare class KindResource {
|
|
44
|
+
private http;
|
|
45
|
+
readonly schema: SchemaResource;
|
|
46
|
+
constructor(http: HttpClient);
|
|
47
|
+
list(params?: {
|
|
48
|
+
kind?: string[];
|
|
49
|
+
}): Promise<{
|
|
50
|
+
data: {
|
|
51
|
+
classification: string;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
kind: string;
|
|
54
|
+
sample_available: boolean;
|
|
55
|
+
schema_available: boolean;
|
|
56
|
+
}[];
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
export declare class VersionResource {
|
|
60
|
+
private http;
|
|
61
|
+
constructor(http: HttpClient);
|
|
62
|
+
list(config: string, params?: {
|
|
63
|
+
team?: string;
|
|
64
|
+
user?: string;
|
|
65
|
+
}): Promise<{
|
|
66
|
+
versions: {
|
|
67
|
+
change_description?: string | undefined;
|
|
68
|
+
created_at?: string | undefined;
|
|
69
|
+
data?: unknown | undefined;
|
|
70
|
+
id: string;
|
|
71
|
+
org?: string | undefined;
|
|
72
|
+
sandbox?: string | undefined;
|
|
73
|
+
version_number: number;
|
|
74
|
+
}[];
|
|
75
|
+
}>;
|
|
76
|
+
}
|
|
77
|
+
export declare class ConfigContentResource {
|
|
78
|
+
private http;
|
|
79
|
+
constructor(http: HttpClient);
|
|
80
|
+
list(config: string, params?: {
|
|
81
|
+
team?: string;
|
|
82
|
+
user?: string;
|
|
83
|
+
format?: string;
|
|
84
|
+
}): Promise<unknown>;
|
|
85
|
+
}
|
|
86
|
+
export declare class ConfigResource {
|
|
87
|
+
private http;
|
|
88
|
+
readonly system: SystemResource;
|
|
89
|
+
readonly kinds: KindResource;
|
|
90
|
+
readonly versions: VersionResource;
|
|
91
|
+
readonly content: ConfigContentResource;
|
|
92
|
+
constructor(http: HttpClient);
|
|
93
|
+
delete(config: string): Promise<void>;
|
|
94
|
+
get(config: string, params?: {
|
|
95
|
+
team?: string;
|
|
96
|
+
user?: string;
|
|
97
|
+
}): Promise<Config>;
|
|
98
|
+
replace(config: string, input: Record<string, unknown>): Promise<Config>;
|
|
99
|
+
validate(input: Record<string, unknown>): Promise<ValidationResult>;
|
|
100
|
+
list(params?: {
|
|
101
|
+
team?: string;
|
|
102
|
+
user?: string;
|
|
103
|
+
kind?: string;
|
|
104
|
+
}): Promise<{
|
|
105
|
+
data: {
|
|
106
|
+
created_at?: string | undefined;
|
|
107
|
+
current_version?: {
|
|
108
|
+
change_description?: string | undefined;
|
|
109
|
+
created_at?: string | undefined;
|
|
110
|
+
data?: unknown | undefined;
|
|
111
|
+
id: string;
|
|
112
|
+
org?: string | undefined;
|
|
113
|
+
sandbox?: string | undefined;
|
|
114
|
+
version_number: number;
|
|
115
|
+
} | undefined;
|
|
116
|
+
id: string;
|
|
117
|
+
is_archived?: boolean | undefined;
|
|
118
|
+
kind: string;
|
|
119
|
+
lookup_key?: string | undefined;
|
|
120
|
+
mime_type?: string | undefined;
|
|
121
|
+
org?: string | undefined;
|
|
122
|
+
raw_content?: string | undefined;
|
|
123
|
+
sandbox?: string | undefined;
|
|
124
|
+
team?: string | undefined;
|
|
125
|
+
updated_at?: string | undefined;
|
|
126
|
+
user?: string | undefined;
|
|
127
|
+
virtual_path?: string | undefined;
|
|
128
|
+
}[];
|
|
129
|
+
}>;
|
|
130
|
+
create(input: Record<string, unknown>): Promise<Config>;
|
|
131
|
+
unarchive(config: string, input: Record<string, unknown>): Promise<Config>;
|
|
132
|
+
archive(config: string, input: Record<string, unknown>): Promise<Config>;
|
|
133
|
+
encryptSecret(input: Record<string, unknown>): Promise<{
|
|
134
|
+
encrypted_value: string;
|
|
135
|
+
}>;
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,qBAAa,cAAc;IACb,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,IAAI,CAAC,MAAM,CAAC,EAAE;QA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E,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC;CAG1F"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: b56ee7ef8599
|
|
4
|
+
export class SystemResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
async list(params) {
|
|
10
|
+
return this.http.request(`/api/v1/config/system`, { query: params });
|
|
11
|
+
}
|
|
12
|
+
async clone(system, input) {
|
|
13
|
+
return this.http.request(`/api/v1/config/system/${system}/clone`, { method: "POST", body: input });
|
|
14
|
+
}
|
|
15
|
+
async get(system) {
|
|
16
|
+
return this.http.request(`/api/v1/config/system/${system}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export class SchemaResource {
|
|
20
|
+
http;
|
|
21
|
+
constructor(http) {
|
|
22
|
+
this.http = http;
|
|
23
|
+
}
|
|
24
|
+
async list(kind) {
|
|
25
|
+
return this.http.request(`/api/v1/config/kinds/${kind}/schema`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export class KindResource {
|
|
29
|
+
http;
|
|
30
|
+
schema;
|
|
31
|
+
constructor(http) {
|
|
32
|
+
this.http = http;
|
|
33
|
+
this.schema = new SchemaResource(http);
|
|
34
|
+
}
|
|
35
|
+
async list(params) {
|
|
36
|
+
return this.http.request(`/api/v1/config/kinds`, { query: params });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class VersionResource {
|
|
40
|
+
http;
|
|
41
|
+
constructor(http) {
|
|
42
|
+
this.http = http;
|
|
43
|
+
}
|
|
44
|
+
async list(config, params) {
|
|
45
|
+
return this.http.request(`/api/v1/config/${config}/versions`, { query: params });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export class ConfigContentResource {
|
|
49
|
+
http;
|
|
50
|
+
constructor(http) {
|
|
51
|
+
this.http = http;
|
|
52
|
+
}
|
|
53
|
+
async list(config, params) {
|
|
54
|
+
return this.http.request(`/api/v1/config/${config}/content`, { query: params });
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export class ConfigResource {
|
|
58
|
+
http;
|
|
59
|
+
system;
|
|
60
|
+
kinds;
|
|
61
|
+
versions;
|
|
62
|
+
content;
|
|
63
|
+
constructor(http) {
|
|
64
|
+
this.http = http;
|
|
65
|
+
this.system = new SystemResource(http);
|
|
66
|
+
this.kinds = new KindResource(http);
|
|
67
|
+
this.versions = new VersionResource(http);
|
|
68
|
+
this.content = new ConfigContentResource(http);
|
|
69
|
+
}
|
|
70
|
+
async delete(config) {
|
|
71
|
+
await this.http.request(`/api/v1/config/${config}`, { method: "DELETE" });
|
|
72
|
+
}
|
|
73
|
+
async get(config, params) {
|
|
74
|
+
return this.http.request(`/api/v1/config/${config}`, { query: params });
|
|
75
|
+
}
|
|
76
|
+
async replace(config, input) {
|
|
77
|
+
return this.http.request(`/api/v1/config/${config}`, { method: "PUT", body: input });
|
|
78
|
+
}
|
|
79
|
+
async validate(input) {
|
|
80
|
+
return this.http.request(`/api/v1/config/validate`, { method: "POST", body: input });
|
|
81
|
+
}
|
|
82
|
+
async list(params) {
|
|
83
|
+
return this.http.request(`/api/v1/config`, { query: params });
|
|
84
|
+
}
|
|
85
|
+
async create(input) {
|
|
86
|
+
return this.http.request(`/api/v1/config`, { method: "POST", body: input });
|
|
87
|
+
}
|
|
88
|
+
async unarchive(config, input) {
|
|
89
|
+
return this.http.request(`/api/v1/config/${config}/unarchive`, { method: "POST", body: input });
|
|
90
|
+
}
|
|
91
|
+
async archive(config, input) {
|
|
92
|
+
return this.http.request(`/api/v1/config/${config}/archive`, { method: "POST", body: input });
|
|
93
|
+
}
|
|
94
|
+
async encryptSecret(input) {
|
|
95
|
+
return this.http.request(`/api/v1/config/encrypt_secret`, { method: "POST", body: input });
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/v1/resources/config.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAM7B,MAAM,OAAO,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,IAAI,CAAC,MAA0B;QACnC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,MAA+D,EAAE,CAAC,CAAC;IAChI,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,MAAc,EAAE,KAA8B;QACxD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,MAAM,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACrG,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,MAAc;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF;AAED,MAAM,OAAO,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,IAAI,CAAC,IAAY;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,IAAI,SAAS,CAAC,CAAC;IAClE,CAAC;CACF;AAED,MAAM,OAAO,YAAY;IAGH;IAFX,MAAM,CAAiB;IAEhC,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QAClC,IAAI,CAAC,MAAM,GAAG,IAAI,cAAc,C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CAAC,OAAO,CAAC,MAAc,EAAE,KAA8B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,MAAM,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,KAA8B;QAChD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { CustomObject } from "../../types/common.js";
|
|
3
|
+
export declare class CustomObjectResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
delete(object: string): Promise<void>;
|
|
7
|
+
get(object: string, params?: {
|
|
8
|
+
type?: string;
|
|
9
|
+
}): Promise<CustomObject>;
|
|
10
|
+
replace(object: string, input: Record<string, unknown>): Promise<{
|
|
11
|
+
data: {
|
|
12
|
+
created_at?: string | undefined;
|
|
13
|
+
fields?: unknown | undefined;
|
|
14
|
+
id: string;
|
|
15
|
+
org?: string | undefined;
|
|
16
|
+
row_key?: string | undefined;
|
|
17
|
+
sandbox?: string | undefined;
|
|
18
|
+
schema_type?: string | undefined;
|
|
19
|
+
team?: string | undefined;
|
|
20
|
+
updated_at?: string | undefined;
|
|
21
|
+
user?: string | undefined;
|
|
22
|
+
version?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
meta?: unknown | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=custom_objects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom_objects.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/custom_objects.ts"],"names":[],"mappings":"AAIA,OAA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ash: e8c381b4b301
|
|
4
|
+
export class CustomObjectResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
async delete(object) {
|
|
10
|
+
await this.http.request(`/api/v1/custom_objects/${object}`, { method: "DELETE" });
|
|
11
|
+
}
|
|
12
|
+
async get(object, params) {
|
|
13
|
+
return this.http.request(`/api/v1/custom_objects/${object}`, { query: params });
|
|
14
|
+
}
|
|
15
|
+
async replace(object, input) {
|
|
16
|
+
return this.http.request(`/api/v1/custom_objects/${object}`, { method: "PUT", body: input });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=custom_objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom_objects.js","sourceRoot":"","sources":["../../../src/v1/resources/custom_objects.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,MAAM,CAAC,MAAc;QACzB,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpF,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,MAAc,EAAE,MAA0B;QAClD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAA+D,EAAE,CAAC,CAAC;IAC3I,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,KAA8B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
export declare class EditResource {
|
|
3
|
+
private http;
|
|
4
|
+
constructor(http: HttpClient);
|
|
5
|
+
/** Edit an image using a text prompt and one or more source images. */
|
|
6
|
+
create(input: Record<string, unknown>): Promise<{
|
|
7
|
+
aspect_ratio?: string | undefined;
|
|
8
|
+
height?: number | undefined;
|
|
9
|
+
image_data?: string | undefined;
|
|
10
|
+
image_size?: string | undefined;
|
|
11
|
+
image_type?: string | undefined;
|
|
12
|
+
image_url?: string | undefined;
|
|
13
|
+
model: string;
|
|
14
|
+
revised_prompt?: string | undefined;
|
|
15
|
+
size?: string | undefined;
|
|
16
|
+
usage?: unknown | undefined;
|
|
17
|
+
width?: number | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=edits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edits.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/edits.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,uEAAuE;IACjE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;QAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAGrY"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 110c48679321
|
|
4
|
+
export class EditResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/** Edit an image using a text prompt and one or more source images. */
|
|
10
|
+
async create(input) {
|
|
11
|
+
return this.http.request(`/api/v1/ai/image/edits`, { method: "POST", body: input });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=edits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edits.js","sourceRoot":"","sources":["../../../src/v1/resources/edits.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,uEAAuE;IACvE,KAAK,CAAC,MAAM,CAAC,KAA8B;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;CACF"}
|