@axiom-lattice/client-sdk 3.0.5 → 4.0.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/dist/__tests__/a2a-keys.test.d.ts +8 -0
- package/dist/__tests__/a2a-keys.test.d.ts.map +1 -0
- package/dist/__tests__/a2a-keys.test.js +110 -0
- package/dist/__tests__/a2a-keys.test.js.map +1 -0
- package/dist/__tests__/export-import.test.d.ts +2 -0
- package/dist/__tests__/export-import.test.d.ts.map +1 -0
- package/dist/__tests__/export-import.test.js +245 -0
- package/dist/__tests__/export-import.test.js.map +1 -0
- package/dist/__tests__/tasks.test.d.ts +2 -0
- package/dist/__tests__/tasks.test.d.ts.map +1 -0
- package/dist/__tests__/tasks.test.js +67 -0
- package/dist/__tests__/tasks.test.js.map +1 -0
- package/dist/__tests__/workspace-client.test.d.ts +10 -0
- package/dist/__tests__/workspace-client.test.d.ts.map +1 -0
- package/dist/__tests__/workspace-client.test.js +56 -0
- package/dist/__tests__/workspace-client.test.js.map +1 -0
- package/dist/abstract-client.d.ts +59 -2
- package/dist/abstract-client.d.ts.map +1 -1
- package/dist/abstract-client.js +74 -3
- package/dist/abstract-client.js.map +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/export-import.d.ts +136 -24
- package/dist/export-import.d.ts.map +1 -1
- package/dist/export-import.js +142 -48
- package/dist/export-import.js.map +1 -1
- package/dist/index.d.ts +263 -33
- package/dist/index.js +258 -96
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +258 -96
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +60 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/workspace-client.d.ts +2 -2
- package/dist/workspace-client.d.ts.map +1 -1
- package/dist/workspace-client.js +7 -2
- package/dist/workspace-client.js.map +1 -1
- package/package.json +2 -2
package/dist/export-import.js
CHANGED
|
@@ -1,81 +1,175 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
function base64ToBytes(base64) {
|
|
2
|
+
if (typeof globalThis.atob === "function") {
|
|
3
|
+
const binary = globalThis.atob(base64);
|
|
4
|
+
const bytes = new Uint8Array(binary.length);
|
|
5
|
+
for (let index = 0; index < binary.length; index += 1) {
|
|
6
|
+
bytes[index] = binary.charCodeAt(index);
|
|
7
|
+
}
|
|
8
|
+
return bytes;
|
|
9
|
+
}
|
|
10
|
+
return new Uint8Array(Buffer.from(base64, "base64"));
|
|
11
|
+
}
|
|
12
|
+
function bytesToArrayBuffer(bytes) {
|
|
13
|
+
return bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength);
|
|
14
|
+
}
|
|
15
|
+
async function archiveToBlob(archive) {
|
|
16
|
+
if (typeof archive === "string") {
|
|
17
|
+
return {
|
|
18
|
+
blob: new Blob([bytesToArrayBuffer(base64ToBytes(archive))], { type: "application/gzip" }),
|
|
19
|
+
filename: "tenant-import.tar.gz",
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (archive instanceof Blob) {
|
|
23
|
+
const filename = "name" in archive && typeof archive.name === "string"
|
|
24
|
+
? archive.name
|
|
25
|
+
: "tenant-import.tar.gz";
|
|
26
|
+
return { blob: archive, filename };
|
|
27
|
+
}
|
|
28
|
+
const bytes = archive instanceof Uint8Array
|
|
29
|
+
? archive
|
|
30
|
+
: archive instanceof ArrayBuffer
|
|
31
|
+
? new Uint8Array(archive)
|
|
32
|
+
: new Uint8Array(await archive.arrayBuffer());
|
|
33
|
+
return {
|
|
34
|
+
blob: new Blob([bytesToArrayBuffer(bytes)], { type: "application/gzip" }),
|
|
35
|
+
filename: "tenant-import.tar.gz",
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function attachmentFilename(contentDisposition) {
|
|
39
|
+
if (!contentDisposition)
|
|
40
|
+
return "tenant-export.tar.gz";
|
|
41
|
+
const encoded = contentDisposition.match(/filename\*=UTF-8''([^;]+)/i)?.[1];
|
|
42
|
+
if (encoded) {
|
|
43
|
+
try {
|
|
44
|
+
return decodeURIComponent(encoded);
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
return encoded;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return contentDisposition.match(/filename="([^"]+)"/i)?.[1]
|
|
51
|
+
?? contentDisposition.match(/filename=([^;\s]+)/i)?.[1]
|
|
52
|
+
?? "tenant-export.tar.gz";
|
|
53
|
+
}
|
|
54
|
+
/** Client for the gateway tenant export/import archive API. */
|
|
7
55
|
export class ExportImportClient {
|
|
8
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Creates an export/import client.
|
|
58
|
+
*
|
|
59
|
+
* @param config - Base client configuration.
|
|
60
|
+
* @param headerProvider - Optional provider for headers that change after construction.
|
|
61
|
+
*/
|
|
62
|
+
constructor(config, headerProvider) {
|
|
9
63
|
this.baseURL = config.baseURL;
|
|
10
64
|
this.headers = {
|
|
11
65
|
"Content-Type": "application/json",
|
|
12
66
|
Authorization: `Bearer ${config.apiKey}`,
|
|
13
67
|
...config.headers,
|
|
14
68
|
};
|
|
69
|
+
this.headerProvider = headerProvider;
|
|
15
70
|
}
|
|
16
71
|
async request(url, options = {}) {
|
|
17
|
-
const
|
|
18
|
-
|
|
72
|
+
const headers = {
|
|
73
|
+
...this.headers,
|
|
74
|
+
...this.headerProvider?.(),
|
|
75
|
+
...options.headers,
|
|
76
|
+
};
|
|
77
|
+
if (options.body instanceof FormData) {
|
|
78
|
+
for (const name of Object.keys(headers)) {
|
|
79
|
+
if (name.toLowerCase() === "content-type")
|
|
80
|
+
delete headers[name];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const response = await fetch(`${this.baseURL}${url}`, {
|
|
84
|
+
method: options.method ?? "GET",
|
|
19
85
|
...options,
|
|
20
|
-
headers
|
|
21
|
-
...this.headers,
|
|
22
|
-
...options.headers,
|
|
23
|
-
},
|
|
86
|
+
headers,
|
|
24
87
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
throw new Error(
|
|
88
|
+
const envelope = (await response.json().catch(() => ({})));
|
|
89
|
+
if (!response.ok || envelope.success === false) {
|
|
90
|
+
throw new Error(envelope.message || envelope.error || `HTTP error! Status: ${response.status}`);
|
|
91
|
+
}
|
|
92
|
+
if (envelope.data === undefined) {
|
|
93
|
+
throw new Error(envelope.message || envelope.error || "API response contained no data");
|
|
28
94
|
}
|
|
29
|
-
return
|
|
95
|
+
return envelope.data;
|
|
30
96
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
97
|
+
/** Returns all entity types registered for export. */
|
|
98
|
+
getExportableTypes() {
|
|
99
|
+
return this.request("/api/tenants/exportable-types");
|
|
34
100
|
}
|
|
35
|
-
|
|
36
|
-
|
|
101
|
+
/** Starts an export or returns dependencies requiring confirmation. */
|
|
102
|
+
exportConfig(tenantId, entityTypes, entityIds) {
|
|
103
|
+
return this.request(`/api/tenants/${tenantId}/export`, {
|
|
37
104
|
method: "POST",
|
|
38
|
-
body: JSON.stringify({ entityTypes }),
|
|
105
|
+
body: JSON.stringify({ entityTypes, ...(entityIds ? { entityIds } : {}) }),
|
|
39
106
|
});
|
|
40
|
-
return response.data;
|
|
41
107
|
}
|
|
42
|
-
|
|
43
|
-
|
|
108
|
+
/** Starts an export after confirming dependency additions. */
|
|
109
|
+
exportConfigConfirm(tenantId, entityTypes, entityIds) {
|
|
110
|
+
return this.request(`/api/tenants/${tenantId}/export/confirm`, {
|
|
44
111
|
method: "POST",
|
|
45
|
-
body: JSON.stringify({ entityTypes }),
|
|
112
|
+
body: JSON.stringify({ entityTypes, ...(entityIds ? { entityIds } : {}) }),
|
|
46
113
|
});
|
|
47
|
-
return response.data;
|
|
48
114
|
}
|
|
115
|
+
/** Lists selectable entities for the requested export types. */
|
|
116
|
+
previewEntities(tenantId, entityTypes) {
|
|
117
|
+
return this.request(`/api/tenants/${tenantId}/export/entities`, { method: "POST", body: JSON.stringify({ entityTypes }) });
|
|
118
|
+
}
|
|
119
|
+
/** Returns the gateway URL for an export download job. */
|
|
49
120
|
getExportDownloadUrl(tenantId, jobId) {
|
|
50
121
|
return `${this.baseURL}/api/tenants/${tenantId}/export/${jobId}/download`;
|
|
51
122
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
headers,
|
|
61
|
-
body: formData,
|
|
123
|
+
/** Downloads an export archive as raw bytes. */
|
|
124
|
+
async downloadExport(tenantId, jobId) {
|
|
125
|
+
const response = await fetch(`${this.baseURL}/api/tenants/${tenantId}/export/${jobId}/download`, {
|
|
126
|
+
method: "GET",
|
|
127
|
+
headers: {
|
|
128
|
+
...this.headers,
|
|
129
|
+
...this.headerProvider?.(),
|
|
130
|
+
},
|
|
62
131
|
});
|
|
63
132
|
if (!response.ok) {
|
|
64
|
-
const
|
|
65
|
-
throw new Error(
|
|
133
|
+
const envelope = await response.json().catch(() => ({}));
|
|
134
|
+
throw new Error(envelope.message || envelope.error || `HTTP error! Status: ${response.status}`);
|
|
66
135
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
136
|
+
return {
|
|
137
|
+
filename: attachmentFilename(response.headers.get("Content-Disposition")),
|
|
138
|
+
data: new Uint8Array(await response.arrayBuffer()),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
/** Previews an archive or plain JSON bundle import. */
|
|
142
|
+
async importPreview(tenantId, source) {
|
|
143
|
+
if (source.archive !== undefined) {
|
|
144
|
+
const form = new FormData();
|
|
145
|
+
const { blob, filename } = await archiveToBlob(source.archive);
|
|
146
|
+
form.append("file", blob, filename);
|
|
147
|
+
return this.request(`/api/tenants/${tenantId}/import/preview`, {
|
|
148
|
+
method: "POST",
|
|
149
|
+
body: form,
|
|
150
|
+
});
|
|
70
151
|
}
|
|
71
|
-
return
|
|
152
|
+
return this.request(`/api/tenants/${tenantId}/import/preview`, {
|
|
153
|
+
method: "POST",
|
|
154
|
+
body: JSON.stringify({ bundle: source.bundle }),
|
|
155
|
+
});
|
|
72
156
|
}
|
|
73
|
-
|
|
74
|
-
|
|
157
|
+
/** Applies an archive or plain JSON bundle import with conflict resolutions. */
|
|
158
|
+
async importApply(tenantId, source, resolutions) {
|
|
159
|
+
if (source.archive !== undefined) {
|
|
160
|
+
const form = new FormData();
|
|
161
|
+
const { blob, filename } = await archiveToBlob(source.archive);
|
|
162
|
+
form.append("file", blob, filename);
|
|
163
|
+
form.append("resolutions", JSON.stringify(resolutions));
|
|
164
|
+
return this.request(`/api/tenants/${tenantId}/import/apply`, {
|
|
165
|
+
method: "POST",
|
|
166
|
+
body: form,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
return this.request(`/api/tenants/${tenantId}/import/apply`, {
|
|
75
170
|
method: "POST",
|
|
76
|
-
body: JSON.stringify({ bundle, resolutions }),
|
|
171
|
+
body: JSON.stringify({ bundle: source.bundle, resolutions }),
|
|
77
172
|
});
|
|
78
|
-
return response.data;
|
|
79
173
|
}
|
|
80
174
|
}
|
|
81
175
|
//# sourceMappingURL=export-import.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-import.js","sourceRoot":"","sources":["../src/export-import.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"export-import.js","sourceRoot":"","sources":["../src/export-import.ts"],"names":[],"mappings":"AA2IA,SAAS,aAAa,CAAC,MAAc;IACnC,IAAI,OAAO,UAAU,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5C,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,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AChD,CAAC,CAAC;IACL,CAAC;IAED,gFAAgF;IAChF,KAAK,CAAC,WAAW,CACf,QAAgB,EAChB,MAAoB,EACpB,WAA8B;QAE9B,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;YAC5B,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC/D,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;YACxD,OAAO,IAAI,CAAC,OAAO,CAAoB,gBAAgB,QAAQ,eAAe,EAAE;gBAC9E,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI;aACX,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAoB,gBAAgB,QAAQ,eAAe,EAAE;YAC9E,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -717,6 +717,12 @@ interface UpdateWorkspaceRequest {
|
|
|
717
717
|
description?: string;
|
|
718
718
|
storageType?: StorageType;
|
|
719
719
|
}
|
|
720
|
+
/**
|
|
721
|
+
* Project kind classification
|
|
722
|
+
*
|
|
723
|
+
* Defaults to "business" for legacy data and omitted input.
|
|
724
|
+
*/
|
|
725
|
+
type ProjectKind = "business" | "training" | "personal";
|
|
720
726
|
/**
|
|
721
727
|
* Project information
|
|
722
728
|
*/
|
|
@@ -728,6 +734,8 @@ interface Project {
|
|
|
728
734
|
description?: string;
|
|
729
735
|
/** Application-specific configuration stored as JSON */
|
|
730
736
|
config?: Record<string, unknown>;
|
|
737
|
+
/** Project classification; defaults to "business" when omitted */
|
|
738
|
+
kind?: ProjectKind;
|
|
731
739
|
createdAt: Date | string;
|
|
732
740
|
updatedAt: Date | string;
|
|
733
741
|
}
|
|
@@ -739,6 +747,8 @@ interface CreateProjectRequest {
|
|
|
739
747
|
description?: string;
|
|
740
748
|
/** Application-specific configuration stored as JSON (optional) */
|
|
741
749
|
config?: Record<string, unknown>;
|
|
750
|
+
/** Project classification; defaults to "business" when omitted */
|
|
751
|
+
kind?: ProjectKind;
|
|
742
752
|
}
|
|
743
753
|
/**
|
|
744
754
|
* Update project request
|
|
@@ -752,6 +762,8 @@ interface UpdateProjectRequest {
|
|
|
752
762
|
description?: string;
|
|
753
763
|
/** Application-specific configuration stored as JSON (replaces existing if provided) */
|
|
754
764
|
config?: Record<string, unknown>;
|
|
765
|
+
/** Project classification */
|
|
766
|
+
kind?: ProjectKind;
|
|
755
767
|
}
|
|
756
768
|
/**
|
|
757
769
|
* File item in workspace
|
|
@@ -849,6 +861,40 @@ interface LocalA2ATemplatesListResponse {
|
|
|
849
861
|
total: number;
|
|
850
862
|
};
|
|
851
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
* A single A2A API key as returned by the management endpoints.
|
|
866
|
+
*
|
|
867
|
+
* The `key` value is masked in list responses (only the first 8 characters
|
|
868
|
+
* followed by "..." are returned); only create/rotate responses expose the
|
|
869
|
+
* full key value.
|
|
870
|
+
*/
|
|
871
|
+
interface A2AKeyListItem {
|
|
872
|
+
id: string;
|
|
873
|
+
key: string;
|
|
874
|
+
tenantId: string;
|
|
875
|
+
projectId: string;
|
|
876
|
+
assistantIds?: string[];
|
|
877
|
+
label?: string;
|
|
878
|
+
enabled: boolean;
|
|
879
|
+
createdAt: string;
|
|
880
|
+
updatedAt: string;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Input for creating a new A2A API key.
|
|
884
|
+
*/
|
|
885
|
+
interface CreateA2AKeyInput {
|
|
886
|
+
tenantId: string;
|
|
887
|
+
projectId: string;
|
|
888
|
+
assistantIds?: string[];
|
|
889
|
+
label?: string;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* A2A API key list response (already unwrapped from `{ success, data }`).
|
|
893
|
+
*/
|
|
894
|
+
interface A2AKeysListResponse {
|
|
895
|
+
records: A2AKeyListItem[];
|
|
896
|
+
total: number;
|
|
897
|
+
}
|
|
852
898
|
/**
|
|
853
899
|
* Options for removing a pending message
|
|
854
900
|
*/
|
|
@@ -890,6 +936,20 @@ interface TaskResponse {
|
|
|
890
936
|
data?: TaskItem;
|
|
891
937
|
error?: string;
|
|
892
938
|
}
|
|
939
|
+
/** A recoverable lifecycle evidence write failure returned with task completion. */
|
|
940
|
+
interface TaskLifecycleWarning {
|
|
941
|
+
code: string;
|
|
942
|
+
taskId: string;
|
|
943
|
+
evidenceId?: string;
|
|
944
|
+
eventKey?: string;
|
|
945
|
+
parentTaskId?: string;
|
|
946
|
+
}
|
|
947
|
+
/** The full response envelope returned by the task completion endpoint. */
|
|
948
|
+
interface CompleteTaskResponse extends TaskResponse {
|
|
949
|
+
evidenceId?: string;
|
|
950
|
+
eventKey?: string;
|
|
951
|
+
warnings?: TaskLifecycleWarning[];
|
|
952
|
+
}
|
|
893
953
|
/**
|
|
894
954
|
* A single parsed Server-Sent Events payload yielded by `Client.streamEvents`.
|
|
895
955
|
*/
|
|
@@ -898,6 +958,16 @@ interface StreamEvent {
|
|
|
898
958
|
data: Record<string, unknown>;
|
|
899
959
|
}
|
|
900
960
|
|
|
961
|
+
/** Completion evidence accepted by the task lifecycle endpoint. */
|
|
962
|
+
interface CompleteTaskInput {
|
|
963
|
+
result: string;
|
|
964
|
+
beliefImpact?: Array<{
|
|
965
|
+
key: string;
|
|
966
|
+
after: number;
|
|
967
|
+
basis: string;
|
|
968
|
+
}>;
|
|
969
|
+
}
|
|
970
|
+
|
|
901
971
|
/**
|
|
902
972
|
* Abstract client class for interacting with the Axiom Lattice Agent Service API
|
|
903
973
|
* Provides common functionality for different client implementations
|
|
@@ -984,7 +1054,7 @@ declare abstract class AbstractClient {
|
|
|
984
1054
|
create: (data: CreateTaskRequest) => Promise<TaskItem>;
|
|
985
1055
|
update: (id: string, data: UpdateTaskRequest) => Promise<TaskItem>;
|
|
986
1056
|
delete: (id: string) => Promise<void>;
|
|
987
|
-
complete: (id: string) => Promise<
|
|
1057
|
+
complete: (id: string, data: CompleteTaskInput) => Promise<CompleteTaskResponse>;
|
|
988
1058
|
workItems: {
|
|
989
1059
|
list: (taskId: string, params?: {
|
|
990
1060
|
action?: string;
|
|
@@ -1257,6 +1327,54 @@ declare abstract class AbstractClient {
|
|
|
1257
1327
|
};
|
|
1258
1328
|
};
|
|
1259
1329
|
};
|
|
1330
|
+
/**
|
|
1331
|
+
* A2A API keys namespace for managing A2A API keys
|
|
1332
|
+
*/
|
|
1333
|
+
a2aKeys: {
|
|
1334
|
+
/**
|
|
1335
|
+
* Lists A2A API keys, optionally filtered by tenant
|
|
1336
|
+
* Key values are masked in list responses
|
|
1337
|
+
* @param params - Optional tenant filter and pagination
|
|
1338
|
+
* @returns A promise that resolves to the list of key records and total
|
|
1339
|
+
*/
|
|
1340
|
+
list: (params?: {
|
|
1341
|
+
tenantId?: string;
|
|
1342
|
+
limit?: number;
|
|
1343
|
+
offset?: number;
|
|
1344
|
+
}) => Promise<A2AKeysListResponse>;
|
|
1345
|
+
/**
|
|
1346
|
+
* Creates a new A2A API key
|
|
1347
|
+
* The full key value is returned only from this call
|
|
1348
|
+
* @param input - Key creation input (tenant, project, optional assistant whitelist and label)
|
|
1349
|
+
* @returns A promise that resolves to the created key record (full key value)
|
|
1350
|
+
*/
|
|
1351
|
+
create: (input: CreateA2AKeyInput) => Promise<A2AKeyListItem>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Permanently deletes an A2A API key
|
|
1354
|
+
* @param id - Key identifier
|
|
1355
|
+
* @returns A promise that resolves when the key is deleted
|
|
1356
|
+
*/
|
|
1357
|
+
delete: (id: string) => Promise<void>;
|
|
1358
|
+
/**
|
|
1359
|
+
* Disables an A2A API key
|
|
1360
|
+
* @param id - Key identifier
|
|
1361
|
+
* @returns A promise that resolves to the updated key record
|
|
1362
|
+
*/
|
|
1363
|
+
disable: (id: string) => Promise<A2AKeyListItem>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Enables a previously disabled A2A API key
|
|
1366
|
+
* @param id - Key identifier
|
|
1367
|
+
* @returns A promise that resolves to the updated key record
|
|
1368
|
+
*/
|
|
1369
|
+
enable: (id: string) => Promise<A2AKeyListItem>;
|
|
1370
|
+
/**
|
|
1371
|
+
* Rotates an A2A API key, generating a new key value
|
|
1372
|
+
* The full new key value is returned only from this call
|
|
1373
|
+
* @param id - Key identifier
|
|
1374
|
+
* @returns A promise that resolves to the updated key record (full new key value)
|
|
1375
|
+
*/
|
|
1376
|
+
rotate: (id: string) => Promise<A2AKeyListItem>;
|
|
1377
|
+
};
|
|
1260
1378
|
/**
|
|
1261
1379
|
* Skills namespace for managing skills
|
|
1262
1380
|
*/
|
|
@@ -1454,12 +1572,154 @@ declare class ResourcesClient {
|
|
|
1454
1572
|
listShares(): Promise<ShareRecord[]>;
|
|
1455
1573
|
}
|
|
1456
1574
|
|
|
1575
|
+
/** A registered entity type that can be exported. */
|
|
1576
|
+
interface ExportableTypeInfo {
|
|
1577
|
+
entityType: string;
|
|
1578
|
+
label: string;
|
|
1579
|
+
category: "core" | "plugin";
|
|
1580
|
+
dependsOn: string[];
|
|
1581
|
+
cascadeParents: string[];
|
|
1582
|
+
}
|
|
1583
|
+
/** Explicit entity IDs selected for each exportable type. */
|
|
1584
|
+
type ExportEntityIds = Record<string, string[]>;
|
|
1585
|
+
/** A completed export job returned by the gateway. */
|
|
1586
|
+
interface ExportJobResult {
|
|
1587
|
+
jobId: string;
|
|
1588
|
+
summary: Record<string, number>;
|
|
1589
|
+
}
|
|
1590
|
+
/** An export preview that requires dependency confirmation. */
|
|
1591
|
+
interface ExportConfirmationRequired {
|
|
1592
|
+
needsConfirmation: true;
|
|
1593
|
+
missingDependencies: string[];
|
|
1594
|
+
cascadeAdditions: string[];
|
|
1595
|
+
}
|
|
1596
|
+
/** Result of starting an export. */
|
|
1597
|
+
type ExportConfigResult = ExportJobResult | ExportConfirmationRequired;
|
|
1598
|
+
/** A selectable entity shown before an export. */
|
|
1599
|
+
interface ExportEntityPreview {
|
|
1600
|
+
id: string;
|
|
1601
|
+
name: string;
|
|
1602
|
+
description?: string;
|
|
1603
|
+
}
|
|
1604
|
+
/** Selectable entities grouped by entity type. */
|
|
1605
|
+
type ExportEntityPreviewMap = Record<string, ExportEntityPreview[]>;
|
|
1606
|
+
/** A single entity stored in an export bundle. */
|
|
1607
|
+
interface ExportableEntity {
|
|
1608
|
+
_exportId: string;
|
|
1609
|
+
data: Record<string, unknown>;
|
|
1610
|
+
}
|
|
1611
|
+
/** Plain JSON bundle contained in an export archive. */
|
|
1612
|
+
interface ExportBundle {
|
|
1613
|
+
version: 1;
|
|
1614
|
+
exportedAt: string;
|
|
1615
|
+
sourceTenantId: string;
|
|
1616
|
+
entities: Record<string, ExportableEntity[]>;
|
|
1617
|
+
dependencyOrder: string[];
|
|
1618
|
+
_warning?: string;
|
|
1619
|
+
}
|
|
1620
|
+
/** A conflict discovered while previewing an import. */
|
|
1621
|
+
interface ImportConflict {
|
|
1622
|
+
_exportId: string;
|
|
1623
|
+
entityType: string;
|
|
1624
|
+
conflictType: "id_exists" | "unique_constraint";
|
|
1625
|
+
existingName?: string;
|
|
1626
|
+
existingId?: string;
|
|
1627
|
+
field?: string;
|
|
1628
|
+
}
|
|
1629
|
+
/** A new entity discovered while previewing an import. */
|
|
1630
|
+
interface ImportInsertion {
|
|
1631
|
+
_exportId: string;
|
|
1632
|
+
entityType: string;
|
|
1633
|
+
name: string;
|
|
1634
|
+
}
|
|
1635
|
+
/** An invalid entity discovered while previewing an import. */
|
|
1636
|
+
interface ImportPreviewError {
|
|
1637
|
+
_exportId: string;
|
|
1638
|
+
entityType: string;
|
|
1639
|
+
error: string;
|
|
1640
|
+
}
|
|
1641
|
+
/** Gateway result for an import preview. */
|
|
1642
|
+
interface ImportPreviewResult {
|
|
1643
|
+
conflicts: ImportConflict[];
|
|
1644
|
+
insertions: ImportInsertion[];
|
|
1645
|
+
errors: ImportPreviewError[];
|
|
1646
|
+
}
|
|
1647
|
+
/** Resolution selected for an import conflict. */
|
|
1648
|
+
interface ImportResolution {
|
|
1649
|
+
_exportId: string;
|
|
1650
|
+
action: "skip" | "overwrite" | "rename";
|
|
1651
|
+
newId?: string;
|
|
1652
|
+
}
|
|
1653
|
+
/** Import conflict resolutions keyed by export ID. */
|
|
1654
|
+
type ImportResolutions = Record<string, ImportResolution>;
|
|
1655
|
+
/** Result for one imported entity. */
|
|
1656
|
+
interface ImportEntityResult {
|
|
1657
|
+
_exportId: string;
|
|
1658
|
+
entityType: string;
|
|
1659
|
+
status: "created" | "updated" | "skipped" | "failed";
|
|
1660
|
+
newId?: string;
|
|
1661
|
+
error?: string;
|
|
1662
|
+
}
|
|
1663
|
+
/** Gateway result after applying an import. */
|
|
1664
|
+
interface ImportApplyResult {
|
|
1665
|
+
results: ImportEntityResult[];
|
|
1666
|
+
idMap: Record<string, string>;
|
|
1667
|
+
}
|
|
1668
|
+
/** Binary or encoded archive accepted by import operations. */
|
|
1669
|
+
type ArchiveInput = File | Blob | ArrayBuffer | Uint8Array | string;
|
|
1670
|
+
/** Explicit archive or plain-bundle source for an import operation. */
|
|
1671
|
+
type ImportSource = {
|
|
1672
|
+
archive: ArchiveInput;
|
|
1673
|
+
bundle?: never;
|
|
1674
|
+
} | {
|
|
1675
|
+
bundle: ExportBundle;
|
|
1676
|
+
archive?: never;
|
|
1677
|
+
};
|
|
1678
|
+
/** Decoded archive returned by an export download. */
|
|
1679
|
+
interface ExportDownload {
|
|
1680
|
+
filename: string;
|
|
1681
|
+
data: Uint8Array;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
type HeaderProvider = () => Record<string, string>;
|
|
1685
|
+
/** Client for the gateway tenant export/import archive API. */
|
|
1686
|
+
declare class ExportImportClient {
|
|
1687
|
+
private readonly baseURL;
|
|
1688
|
+
private readonly headers;
|
|
1689
|
+
private readonly headerProvider?;
|
|
1690
|
+
/**
|
|
1691
|
+
* Creates an export/import client.
|
|
1692
|
+
*
|
|
1693
|
+
* @param config - Base client configuration.
|
|
1694
|
+
* @param headerProvider - Optional provider for headers that change after construction.
|
|
1695
|
+
*/
|
|
1696
|
+
constructor(config: ClientConfig, headerProvider?: HeaderProvider);
|
|
1697
|
+
private request;
|
|
1698
|
+
/** Returns all entity types registered for export. */
|
|
1699
|
+
getExportableTypes(): Promise<ExportableTypeInfo[]>;
|
|
1700
|
+
/** Starts an export or returns dependencies requiring confirmation. */
|
|
1701
|
+
exportConfig(tenantId: string, entityTypes: string[], entityIds?: ExportEntityIds): Promise<ExportConfigResult>;
|
|
1702
|
+
/** Starts an export after confirming dependency additions. */
|
|
1703
|
+
exportConfigConfirm(tenantId: string, entityTypes: string[], entityIds?: ExportEntityIds): Promise<ExportJobResult>;
|
|
1704
|
+
/** Lists selectable entities for the requested export types. */
|
|
1705
|
+
previewEntities(tenantId: string, entityTypes: string[]): Promise<ExportEntityPreviewMap>;
|
|
1706
|
+
/** Returns the gateway URL for an export download job. */
|
|
1707
|
+
getExportDownloadUrl(tenantId: string, jobId: string): string;
|
|
1708
|
+
/** Downloads an export archive as raw bytes. */
|
|
1709
|
+
downloadExport(tenantId: string, jobId: string): Promise<ExportDownload>;
|
|
1710
|
+
/** Previews an archive or plain JSON bundle import. */
|
|
1711
|
+
importPreview(tenantId: string, source: ImportSource): Promise<ImportPreviewResult>;
|
|
1712
|
+
/** Applies an archive or plain JSON bundle import with conflict resolutions. */
|
|
1713
|
+
importApply(tenantId: string, source: ImportSource, resolutions: ImportResolutions): Promise<ImportApplyResult>;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1457
1716
|
/**
|
|
1458
1717
|
* Web client class for interacting with the Axiom Lattice Agent Service API
|
|
1459
1718
|
*/
|
|
1460
1719
|
declare class Client extends AbstractClient {
|
|
1461
1720
|
private headers;
|
|
1462
1721
|
resources: ResourcesClient;
|
|
1722
|
+
exportImport: ExportImportClient;
|
|
1463
1723
|
/**
|
|
1464
1724
|
* Creates a new Client instance
|
|
1465
1725
|
* @param config - Configuration options for the client
|
|
@@ -1648,7 +1908,7 @@ declare class WorkspaceClient {
|
|
|
1648
1908
|
getWorkspace(workspaceId: string): Promise<Workspace>;
|
|
1649
1909
|
updateWorkspace(workspaceId: string, updates: UpdateWorkspaceRequest): Promise<Workspace>;
|
|
1650
1910
|
deleteWorkspace(workspaceId: string): Promise<void>;
|
|
1651
|
-
listProjects(workspaceId: string): Promise<Project[]>;
|
|
1911
|
+
listProjects(workspaceId: string, kind?: ProjectKind): Promise<Project[]>;
|
|
1652
1912
|
createProject(workspaceId: string, data: CreateProjectRequest): Promise<Project>;
|
|
1653
1913
|
getProject(workspaceId: string, projectId: string): Promise<Project>;
|
|
1654
1914
|
updateProject(workspaceId: string, projectId: string, updates: UpdateProjectRequest): Promise<Project>;
|
|
@@ -1688,36 +1948,6 @@ declare class WorkspaceClient {
|
|
|
1688
1948
|
}>;
|
|
1689
1949
|
}
|
|
1690
1950
|
|
|
1691
|
-
/**
|
|
1692
|
-
* ExportImportClient
|
|
1693
|
-
*
|
|
1694
|
-
* Client for tenant export/import API: exportable types, export config,
|
|
1695
|
-
* import preview, and import apply.
|
|
1696
|
-
*/
|
|
1697
|
-
|
|
1698
|
-
declare class ExportImportClient {
|
|
1699
|
-
private baseURL;
|
|
1700
|
-
private headers;
|
|
1701
|
-
constructor(config: ClientConfig);
|
|
1702
|
-
private request;
|
|
1703
|
-
getExportableTypes(): Promise<any[]>;
|
|
1704
|
-
exportConfig(tenantId: string, entityTypes: string[]): Promise<{
|
|
1705
|
-
jobId: string;
|
|
1706
|
-
summary: Record<string, number>;
|
|
1707
|
-
} | {
|
|
1708
|
-
needsConfirmation: boolean;
|
|
1709
|
-
missingDependencies: string[];
|
|
1710
|
-
cascadeAdditions: string[];
|
|
1711
|
-
}>;
|
|
1712
|
-
exportConfigConfirm(tenantId: string, entityTypes: string[]): Promise<{
|
|
1713
|
-
jobId: string;
|
|
1714
|
-
summary: Record<string, number>;
|
|
1715
|
-
}>;
|
|
1716
|
-
getExportDownloadUrl(tenantId: string, jobId: string): string;
|
|
1717
|
-
importPreview(tenantId: string, file: File | Blob): Promise<any>;
|
|
1718
|
-
importApply(tenantId: string, bundle: any, resolutions: Record<string, any>): Promise<any>;
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
1951
|
/**
|
|
1722
1952
|
* ChunkMessageMerger
|
|
1723
1953
|
*
|
|
@@ -1737,4 +1967,4 @@ declare function createSimpleMessageMerger(): {
|
|
|
1737
1967
|
reset: () => void;
|
|
1738
1968
|
};
|
|
1739
1969
|
|
|
1740
|
-
export { AbortAgentParams, AbstractClient, AgentState, ApiError, Assistant, AssistantListResponse, AssistantResponse, AuthenticationError, ChatResponse, ChatSendOptions, ChatStreamOptions, Client, ClientConfig, CreateAssistantOptions, CreateProjectRequest, CreateThreadOptions, CreateWorkspaceRequest, DatabaseConfigResponse, DatabaseConfigsListResponse, DatasourcesListResponse, ExportImportClient, FileItem, GetMessagesOptions, GetScheduledTasksOptions, ListThreadsOptions, LocalA2ATemplatesListResponse, McpServerResponse, McpServersListResponse, MetricsConfigResponse, MetricsConfigsListResponse, NetworkError, PendingMessage, Project, RegisterToolOptions, RemovePendingMessageOptions, ResourcesClient, ResumeStreamOptions, RetryConfig, RunOptions, ScheduleExecutionType, ScheduledTask, ScheduledTaskStatus, ScheduledTasksListResponse, StorageType, StreamCallbacks, StreamEvent, TaskResponse, TasksListResponse, TestConnectionResponse, TestMcpServerResponse, Thread, ThreadListResponse, ThreadResponse, Tool, ToolResponse, ToolsListResponse, Transport, UpdateAssistantOptions, UpdateProjectRequest, UpdateThreadOptions, UpdateWorkspaceRequest, WeChatClient, Workspace, WorkspaceClient, createSimpleMessageMerger };
|
|
1970
|
+
export { A2AKeyListItem, A2AKeysListResponse, AbortAgentParams, AbstractClient, AgentState, ApiError, ArchiveInput, Assistant, AssistantListResponse, AssistantResponse, AuthenticationError, ChatResponse, ChatSendOptions, ChatStreamOptions, Client, ClientConfig, CompleteTaskInput, CompleteTaskResponse, CreateA2AKeyInput, CreateAssistantOptions, CreateProjectRequest, CreateThreadOptions, CreateWorkspaceRequest, DatabaseConfigResponse, DatabaseConfigsListResponse, DatasourcesListResponse, ExportBundle, ExportConfigResult, ExportConfirmationRequired, ExportDownload, ExportEntityIds, ExportEntityPreview, ExportEntityPreviewMap, ExportImportClient, ExportJobResult, ExportableEntity, ExportableTypeInfo, FileItem, GetMessagesOptions, GetScheduledTasksOptions, ImportApplyResult, ImportConflict, ImportEntityResult, ImportInsertion, ImportPreviewError, ImportPreviewResult, ImportResolution, ImportResolutions, ImportSource, ListThreadsOptions, LocalA2ATemplatesListResponse, McpServerResponse, McpServersListResponse, MetricsConfigResponse, MetricsConfigsListResponse, NetworkError, PendingMessage, Project, ProjectKind, RegisterToolOptions, RemovePendingMessageOptions, ResourcesClient, ResumeStreamOptions, RetryConfig, RunOptions, ScheduleExecutionType, ScheduledTask, ScheduledTaskStatus, ScheduledTasksListResponse, StorageType, StreamCallbacks, StreamEvent, TaskLifecycleWarning, TaskResponse, TasksListResponse, TestConnectionResponse, TestMcpServerResponse, Thread, ThreadListResponse, ThreadResponse, Tool, ToolResponse, ToolsListResponse, Transport, UpdateAssistantOptions, UpdateProjectRequest, UpdateThreadOptions, UpdateWorkspaceRequest, WeChatClient, Workspace, WorkspaceClient, createSimpleMessageMerger };
|