@axiom-lattice/client-sdk 3.0.6 → 4.0.1
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/README.md +37 -0
- 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__/web-apps.test.d.ts +8 -0
- package/dist/__tests__/web-apps.test.d.ts.map +1 -0
- package/dist/__tests__/web-apps.test.js +166 -0
- package/dist/__tests__/web-apps.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 +106 -2
- package/dist/abstract-client.d.ts.map +1 -1
- package/dist/abstract-client.js +170 -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 +322 -35
- package/dist/index.js +359 -96
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +359 -96
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +72 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.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/index.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import { Message, MessageChunk, DatabaseConfigEntry, MetricsServerConfigEntry, DataSource, McpServerConfigEntry, McpTool, LocalA2ATemplateDefinition, TaskItem, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, ConnectionEntry, CreateTaskRequest, UpdateTaskRequest, TaskWorkItem, LocalA2AProviderState, Skill, CreateSkillRequest, CreateShareRequest, ShareResult, ShareRecord } from '@axiom-lattice/protocols';
|
|
2
|
-
export { LocalA2AProviderId, LocalA2AProviderState, LocalA2AProviderStatus, LocalA2ATemplateDefinition, LocalRuntimeConfig } from '@axiom-lattice/protocols';
|
|
1
|
+
import { AgentWebApp, Message, MessageChunk, DatabaseConfigEntry, MetricsServerConfigEntry, DataSource, McpServerConfigEntry, McpTool, LocalA2ATemplateDefinition, TaskItem, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, ConnectionEntry, CreateTaskRequest, UpdateTaskRequest, TaskWorkItem, LocalA2AProviderState, CreateAgentWebAppInput, UpdateAgentWebAppInput, Skill, CreateSkillRequest, CreateShareRequest, ShareResult, ShareRecord } from '@axiom-lattice/protocols';
|
|
2
|
+
export { AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppScope, AgentWebAppStatus, CreateAgentWebAppInput, LocalA2AProviderId, LocalA2AProviderState, LocalA2AProviderStatus, LocalA2ATemplateDefinition, LocalRuntimeConfig, UpdateAgentWebAppInput } from '@axiom-lattice/protocols';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Core types for the Axiom Lattice Client SDK
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
/** Optional filters for listing Agent Web Apps. */
|
|
9
|
+
interface ListAgentWebAppsParams {
|
|
10
|
+
/** Return only publications for this assistant. */
|
|
11
|
+
assistantId?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Agent Web App list data, unwrapped from the gateway response envelope. */
|
|
14
|
+
interface AgentWebAppsListResponse {
|
|
15
|
+
records: AgentWebApp[];
|
|
16
|
+
total: number;
|
|
17
|
+
}
|
|
8
18
|
/**
|
|
9
19
|
* Tool interface for API responses
|
|
10
20
|
* Represents a tool configuration stored in the database
|
|
@@ -717,6 +727,12 @@ interface UpdateWorkspaceRequest {
|
|
|
717
727
|
description?: string;
|
|
718
728
|
storageType?: StorageType;
|
|
719
729
|
}
|
|
730
|
+
/**
|
|
731
|
+
* Project kind classification
|
|
732
|
+
*
|
|
733
|
+
* Defaults to "business" for legacy data and omitted input.
|
|
734
|
+
*/
|
|
735
|
+
type ProjectKind = "business" | "training" | "personal";
|
|
720
736
|
/**
|
|
721
737
|
* Project information
|
|
722
738
|
*/
|
|
@@ -728,6 +744,8 @@ interface Project {
|
|
|
728
744
|
description?: string;
|
|
729
745
|
/** Application-specific configuration stored as JSON */
|
|
730
746
|
config?: Record<string, unknown>;
|
|
747
|
+
/** Project classification; defaults to "business" when omitted */
|
|
748
|
+
kind?: ProjectKind;
|
|
731
749
|
createdAt: Date | string;
|
|
732
750
|
updatedAt: Date | string;
|
|
733
751
|
}
|
|
@@ -739,6 +757,8 @@ interface CreateProjectRequest {
|
|
|
739
757
|
description?: string;
|
|
740
758
|
/** Application-specific configuration stored as JSON (optional) */
|
|
741
759
|
config?: Record<string, unknown>;
|
|
760
|
+
/** Project classification; defaults to "business" when omitted */
|
|
761
|
+
kind?: ProjectKind;
|
|
742
762
|
}
|
|
743
763
|
/**
|
|
744
764
|
* Update project request
|
|
@@ -752,6 +772,8 @@ interface UpdateProjectRequest {
|
|
|
752
772
|
description?: string;
|
|
753
773
|
/** Application-specific configuration stored as JSON (replaces existing if provided) */
|
|
754
774
|
config?: Record<string, unknown>;
|
|
775
|
+
/** Project classification */
|
|
776
|
+
kind?: ProjectKind;
|
|
755
777
|
}
|
|
756
778
|
/**
|
|
757
779
|
* File item in workspace
|
|
@@ -849,6 +871,40 @@ interface LocalA2ATemplatesListResponse {
|
|
|
849
871
|
total: number;
|
|
850
872
|
};
|
|
851
873
|
}
|
|
874
|
+
/**
|
|
875
|
+
* A single A2A API key as returned by the management endpoints.
|
|
876
|
+
*
|
|
877
|
+
* The `key` value is masked in list responses (only the first 8 characters
|
|
878
|
+
* followed by "..." are returned); only create/rotate responses expose the
|
|
879
|
+
* full key value.
|
|
880
|
+
*/
|
|
881
|
+
interface A2AKeyListItem {
|
|
882
|
+
id: string;
|
|
883
|
+
key: string;
|
|
884
|
+
tenantId: string;
|
|
885
|
+
projectId: string;
|
|
886
|
+
assistantIds?: string[];
|
|
887
|
+
label?: string;
|
|
888
|
+
enabled: boolean;
|
|
889
|
+
createdAt: string;
|
|
890
|
+
updatedAt: string;
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Input for creating a new A2A API key.
|
|
894
|
+
*/
|
|
895
|
+
interface CreateA2AKeyInput {
|
|
896
|
+
tenantId: string;
|
|
897
|
+
projectId: string;
|
|
898
|
+
assistantIds?: string[];
|
|
899
|
+
label?: string;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* A2A API key list response (already unwrapped from `{ success, data }`).
|
|
903
|
+
*/
|
|
904
|
+
interface A2AKeysListResponse {
|
|
905
|
+
records: A2AKeyListItem[];
|
|
906
|
+
total: number;
|
|
907
|
+
}
|
|
852
908
|
/**
|
|
853
909
|
* Options for removing a pending message
|
|
854
910
|
*/
|
|
@@ -890,6 +946,20 @@ interface TaskResponse {
|
|
|
890
946
|
data?: TaskItem;
|
|
891
947
|
error?: string;
|
|
892
948
|
}
|
|
949
|
+
/** A recoverable lifecycle evidence write failure returned with task completion. */
|
|
950
|
+
interface TaskLifecycleWarning {
|
|
951
|
+
code: string;
|
|
952
|
+
taskId: string;
|
|
953
|
+
evidenceId?: string;
|
|
954
|
+
eventKey?: string;
|
|
955
|
+
parentTaskId?: string;
|
|
956
|
+
}
|
|
957
|
+
/** The full response envelope returned by the task completion endpoint. */
|
|
958
|
+
interface CompleteTaskResponse extends TaskResponse {
|
|
959
|
+
evidenceId?: string;
|
|
960
|
+
eventKey?: string;
|
|
961
|
+
warnings?: TaskLifecycleWarning[];
|
|
962
|
+
}
|
|
893
963
|
/**
|
|
894
964
|
* A single parsed Server-Sent Events payload yielded by `Client.streamEvents`.
|
|
895
965
|
*/
|
|
@@ -898,6 +968,16 @@ interface StreamEvent {
|
|
|
898
968
|
data: Record<string, unknown>;
|
|
899
969
|
}
|
|
900
970
|
|
|
971
|
+
/** Completion evidence accepted by the task lifecycle endpoint. */
|
|
972
|
+
interface CompleteTaskInput {
|
|
973
|
+
result: string;
|
|
974
|
+
beliefImpact?: Array<{
|
|
975
|
+
key: string;
|
|
976
|
+
after: number;
|
|
977
|
+
basis: string;
|
|
978
|
+
}>;
|
|
979
|
+
}
|
|
980
|
+
|
|
901
981
|
/**
|
|
902
982
|
* Abstract client class for interacting with the Axiom Lattice Agent Service API
|
|
903
983
|
* Provides common functionality for different client implementations
|
|
@@ -908,6 +988,7 @@ declare abstract class AbstractClient {
|
|
|
908
988
|
tenantId: string;
|
|
909
989
|
protected registeredTools: Map<string, RegisterToolOptions>;
|
|
910
990
|
private onUnauthorizedHandler?;
|
|
991
|
+
private hydrateAgentWebApp;
|
|
911
992
|
/**
|
|
912
993
|
* Server tools namespace for managing tools via API
|
|
913
994
|
*/
|
|
@@ -984,7 +1065,7 @@ declare abstract class AbstractClient {
|
|
|
984
1065
|
create: (data: CreateTaskRequest) => Promise<TaskItem>;
|
|
985
1066
|
update: (id: string, data: UpdateTaskRequest) => Promise<TaskItem>;
|
|
986
1067
|
delete: (id: string) => Promise<void>;
|
|
987
|
-
complete: (id: string) => Promise<
|
|
1068
|
+
complete: (id: string, data: CompleteTaskInput) => Promise<CompleteTaskResponse>;
|
|
988
1069
|
workItems: {
|
|
989
1070
|
list: (taskId: string, params?: {
|
|
990
1071
|
action?: string;
|
|
@@ -1257,6 +1338,100 @@ declare abstract class AbstractClient {
|
|
|
1257
1338
|
};
|
|
1258
1339
|
};
|
|
1259
1340
|
};
|
|
1341
|
+
/**
|
|
1342
|
+
* A2A API keys namespace for managing A2A API keys
|
|
1343
|
+
*/
|
|
1344
|
+
a2aKeys: {
|
|
1345
|
+
/**
|
|
1346
|
+
* Lists A2A API keys, optionally filtered by tenant
|
|
1347
|
+
* Key values are masked in list responses
|
|
1348
|
+
* @param params - Optional tenant filter and pagination
|
|
1349
|
+
* @returns A promise that resolves to the list of key records and total
|
|
1350
|
+
*/
|
|
1351
|
+
list: (params?: {
|
|
1352
|
+
tenantId?: string;
|
|
1353
|
+
limit?: number;
|
|
1354
|
+
offset?: number;
|
|
1355
|
+
}) => Promise<A2AKeysListResponse>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Creates a new A2A API key
|
|
1358
|
+
* The full key value is returned only from this call
|
|
1359
|
+
* @param input - Key creation input (tenant, project, optional assistant whitelist and label)
|
|
1360
|
+
* @returns A promise that resolves to the created key record (full key value)
|
|
1361
|
+
*/
|
|
1362
|
+
create: (input: CreateA2AKeyInput) => Promise<A2AKeyListItem>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Permanently deletes an A2A API key
|
|
1365
|
+
* @param id - Key identifier
|
|
1366
|
+
* @returns A promise that resolves when the key is deleted
|
|
1367
|
+
*/
|
|
1368
|
+
delete: (id: string) => Promise<void>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Disables an A2A API key
|
|
1371
|
+
* @param id - Key identifier
|
|
1372
|
+
* @returns A promise that resolves to the updated key record
|
|
1373
|
+
*/
|
|
1374
|
+
disable: (id: string) => Promise<A2AKeyListItem>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Enables a previously disabled A2A API key
|
|
1377
|
+
* @param id - Key identifier
|
|
1378
|
+
* @returns A promise that resolves to the updated key record
|
|
1379
|
+
*/
|
|
1380
|
+
enable: (id: string) => Promise<A2AKeyListItem>;
|
|
1381
|
+
/**
|
|
1382
|
+
* Rotates an A2A API key, generating a new key value
|
|
1383
|
+
* The full new key value is returned only from this call
|
|
1384
|
+
* @param id - Key identifier
|
|
1385
|
+
* @returns A promise that resolves to the updated key record (full new key value)
|
|
1386
|
+
*/
|
|
1387
|
+
rotate: (id: string) => Promise<A2AKeyListItem>;
|
|
1388
|
+
};
|
|
1389
|
+
/** Agent Web Apps namespace for managing React SDK publications. */
|
|
1390
|
+
webApps: {
|
|
1391
|
+
/**
|
|
1392
|
+
* Lists Agent Web Apps, optionally filtered by assistant.
|
|
1393
|
+
* @param params - Optional assistant filter
|
|
1394
|
+
* @returns A promise that resolves to the publication records and total
|
|
1395
|
+
*/
|
|
1396
|
+
list: (params?: ListAgentWebAppsParams) => Promise<AgentWebAppsListResponse>;
|
|
1397
|
+
/**
|
|
1398
|
+
* Retrieves an Agent Web App by ID.
|
|
1399
|
+
* @param id - Agent Web App identifier
|
|
1400
|
+
* @returns A promise that resolves to the publication
|
|
1401
|
+
*/
|
|
1402
|
+
get: (id: string) => Promise<AgentWebApp>;
|
|
1403
|
+
/**
|
|
1404
|
+
* Creates an Agent Web App.
|
|
1405
|
+
* @param input - Publication configuration
|
|
1406
|
+
* @returns A promise that resolves to the created publication
|
|
1407
|
+
*/
|
|
1408
|
+
create: (input: CreateAgentWebAppInput) => Promise<AgentWebApp>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Updates editable fields on an Agent Web App.
|
|
1411
|
+
* @param id - Agent Web App identifier
|
|
1412
|
+
* @param input - Fields to update
|
|
1413
|
+
* @returns A promise that resolves to the updated publication
|
|
1414
|
+
*/
|
|
1415
|
+
update: (id: string, input: UpdateAgentWebAppInput) => Promise<AgentWebApp>;
|
|
1416
|
+
/**
|
|
1417
|
+
* Enables an Agent Web App.
|
|
1418
|
+
* @param id - Agent Web App identifier
|
|
1419
|
+
* @returns A promise that resolves to the enabled publication
|
|
1420
|
+
*/
|
|
1421
|
+
enable: (id: string) => Promise<AgentWebApp>;
|
|
1422
|
+
/**
|
|
1423
|
+
* Disables an Agent Web App.
|
|
1424
|
+
* @param id - Agent Web App identifier
|
|
1425
|
+
* @returns A promise that resolves to the disabled publication
|
|
1426
|
+
*/
|
|
1427
|
+
disable: (id: string) => Promise<AgentWebApp>;
|
|
1428
|
+
/**
|
|
1429
|
+
* Permanently deletes an Agent Web App.
|
|
1430
|
+
* @param id - Agent Web App identifier
|
|
1431
|
+
* @returns A promise that resolves when the publication is deleted
|
|
1432
|
+
*/
|
|
1433
|
+
delete: (id: string) => Promise<void>;
|
|
1434
|
+
};
|
|
1260
1435
|
/**
|
|
1261
1436
|
* Skills namespace for managing skills
|
|
1262
1437
|
*/
|
|
@@ -1454,12 +1629,154 @@ declare class ResourcesClient {
|
|
|
1454
1629
|
listShares(): Promise<ShareRecord[]>;
|
|
1455
1630
|
}
|
|
1456
1631
|
|
|
1632
|
+
/** A registered entity type that can be exported. */
|
|
1633
|
+
interface ExportableTypeInfo {
|
|
1634
|
+
entityType: string;
|
|
1635
|
+
label: string;
|
|
1636
|
+
category: "core" | "plugin";
|
|
1637
|
+
dependsOn: string[];
|
|
1638
|
+
cascadeParents: string[];
|
|
1639
|
+
}
|
|
1640
|
+
/** Explicit entity IDs selected for each exportable type. */
|
|
1641
|
+
type ExportEntityIds = Record<string, string[]>;
|
|
1642
|
+
/** A completed export job returned by the gateway. */
|
|
1643
|
+
interface ExportJobResult {
|
|
1644
|
+
jobId: string;
|
|
1645
|
+
summary: Record<string, number>;
|
|
1646
|
+
}
|
|
1647
|
+
/** An export preview that requires dependency confirmation. */
|
|
1648
|
+
interface ExportConfirmationRequired {
|
|
1649
|
+
needsConfirmation: true;
|
|
1650
|
+
missingDependencies: string[];
|
|
1651
|
+
cascadeAdditions: string[];
|
|
1652
|
+
}
|
|
1653
|
+
/** Result of starting an export. */
|
|
1654
|
+
type ExportConfigResult = ExportJobResult | ExportConfirmationRequired;
|
|
1655
|
+
/** A selectable entity shown before an export. */
|
|
1656
|
+
interface ExportEntityPreview {
|
|
1657
|
+
id: string;
|
|
1658
|
+
name: string;
|
|
1659
|
+
description?: string;
|
|
1660
|
+
}
|
|
1661
|
+
/** Selectable entities grouped by entity type. */
|
|
1662
|
+
type ExportEntityPreviewMap = Record<string, ExportEntityPreview[]>;
|
|
1663
|
+
/** A single entity stored in an export bundle. */
|
|
1664
|
+
interface ExportableEntity {
|
|
1665
|
+
_exportId: string;
|
|
1666
|
+
data: Record<string, unknown>;
|
|
1667
|
+
}
|
|
1668
|
+
/** Plain JSON bundle contained in an export archive. */
|
|
1669
|
+
interface ExportBundle {
|
|
1670
|
+
version: 1;
|
|
1671
|
+
exportedAt: string;
|
|
1672
|
+
sourceTenantId: string;
|
|
1673
|
+
entities: Record<string, ExportableEntity[]>;
|
|
1674
|
+
dependencyOrder: string[];
|
|
1675
|
+
_warning?: string;
|
|
1676
|
+
}
|
|
1677
|
+
/** A conflict discovered while previewing an import. */
|
|
1678
|
+
interface ImportConflict {
|
|
1679
|
+
_exportId: string;
|
|
1680
|
+
entityType: string;
|
|
1681
|
+
conflictType: "id_exists" | "unique_constraint";
|
|
1682
|
+
existingName?: string;
|
|
1683
|
+
existingId?: string;
|
|
1684
|
+
field?: string;
|
|
1685
|
+
}
|
|
1686
|
+
/** A new entity discovered while previewing an import. */
|
|
1687
|
+
interface ImportInsertion {
|
|
1688
|
+
_exportId: string;
|
|
1689
|
+
entityType: string;
|
|
1690
|
+
name: string;
|
|
1691
|
+
}
|
|
1692
|
+
/** An invalid entity discovered while previewing an import. */
|
|
1693
|
+
interface ImportPreviewError {
|
|
1694
|
+
_exportId: string;
|
|
1695
|
+
entityType: string;
|
|
1696
|
+
error: string;
|
|
1697
|
+
}
|
|
1698
|
+
/** Gateway result for an import preview. */
|
|
1699
|
+
interface ImportPreviewResult {
|
|
1700
|
+
conflicts: ImportConflict[];
|
|
1701
|
+
insertions: ImportInsertion[];
|
|
1702
|
+
errors: ImportPreviewError[];
|
|
1703
|
+
}
|
|
1704
|
+
/** Resolution selected for an import conflict. */
|
|
1705
|
+
interface ImportResolution {
|
|
1706
|
+
_exportId: string;
|
|
1707
|
+
action: "skip" | "overwrite" | "rename";
|
|
1708
|
+
newId?: string;
|
|
1709
|
+
}
|
|
1710
|
+
/** Import conflict resolutions keyed by export ID. */
|
|
1711
|
+
type ImportResolutions = Record<string, ImportResolution>;
|
|
1712
|
+
/** Result for one imported entity. */
|
|
1713
|
+
interface ImportEntityResult {
|
|
1714
|
+
_exportId: string;
|
|
1715
|
+
entityType: string;
|
|
1716
|
+
status: "created" | "updated" | "skipped" | "failed";
|
|
1717
|
+
newId?: string;
|
|
1718
|
+
error?: string;
|
|
1719
|
+
}
|
|
1720
|
+
/** Gateway result after applying an import. */
|
|
1721
|
+
interface ImportApplyResult {
|
|
1722
|
+
results: ImportEntityResult[];
|
|
1723
|
+
idMap: Record<string, string>;
|
|
1724
|
+
}
|
|
1725
|
+
/** Binary or encoded archive accepted by import operations. */
|
|
1726
|
+
type ArchiveInput = File | Blob | ArrayBuffer | Uint8Array | string;
|
|
1727
|
+
/** Explicit archive or plain-bundle source for an import operation. */
|
|
1728
|
+
type ImportSource = {
|
|
1729
|
+
archive: ArchiveInput;
|
|
1730
|
+
bundle?: never;
|
|
1731
|
+
} | {
|
|
1732
|
+
bundle: ExportBundle;
|
|
1733
|
+
archive?: never;
|
|
1734
|
+
};
|
|
1735
|
+
/** Decoded archive returned by an export download. */
|
|
1736
|
+
interface ExportDownload {
|
|
1737
|
+
filename: string;
|
|
1738
|
+
data: Uint8Array;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
type HeaderProvider = () => Record<string, string>;
|
|
1742
|
+
/** Client for the gateway tenant export/import archive API. */
|
|
1743
|
+
declare class ExportImportClient {
|
|
1744
|
+
private readonly baseURL;
|
|
1745
|
+
private readonly headers;
|
|
1746
|
+
private readonly headerProvider?;
|
|
1747
|
+
/**
|
|
1748
|
+
* Creates an export/import client.
|
|
1749
|
+
*
|
|
1750
|
+
* @param config - Base client configuration.
|
|
1751
|
+
* @param headerProvider - Optional provider for headers that change after construction.
|
|
1752
|
+
*/
|
|
1753
|
+
constructor(config: ClientConfig, headerProvider?: HeaderProvider);
|
|
1754
|
+
private request;
|
|
1755
|
+
/** Returns all entity types registered for export. */
|
|
1756
|
+
getExportableTypes(): Promise<ExportableTypeInfo[]>;
|
|
1757
|
+
/** Starts an export or returns dependencies requiring confirmation. */
|
|
1758
|
+
exportConfig(tenantId: string, entityTypes: string[], entityIds?: ExportEntityIds): Promise<ExportConfigResult>;
|
|
1759
|
+
/** Starts an export after confirming dependency additions. */
|
|
1760
|
+
exportConfigConfirm(tenantId: string, entityTypes: string[], entityIds?: ExportEntityIds): Promise<ExportJobResult>;
|
|
1761
|
+
/** Lists selectable entities for the requested export types. */
|
|
1762
|
+
previewEntities(tenantId: string, entityTypes: string[]): Promise<ExportEntityPreviewMap>;
|
|
1763
|
+
/** Returns the gateway URL for an export download job. */
|
|
1764
|
+
getExportDownloadUrl(tenantId: string, jobId: string): string;
|
|
1765
|
+
/** Downloads an export archive as raw bytes. */
|
|
1766
|
+
downloadExport(tenantId: string, jobId: string): Promise<ExportDownload>;
|
|
1767
|
+
/** Previews an archive or plain JSON bundle import. */
|
|
1768
|
+
importPreview(tenantId: string, source: ImportSource): Promise<ImportPreviewResult>;
|
|
1769
|
+
/** Applies an archive or plain JSON bundle import with conflict resolutions. */
|
|
1770
|
+
importApply(tenantId: string, source: ImportSource, resolutions: ImportResolutions): Promise<ImportApplyResult>;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1457
1773
|
/**
|
|
1458
1774
|
* Web client class for interacting with the Axiom Lattice Agent Service API
|
|
1459
1775
|
*/
|
|
1460
1776
|
declare class Client extends AbstractClient {
|
|
1461
1777
|
private headers;
|
|
1462
1778
|
resources: ResourcesClient;
|
|
1779
|
+
exportImport: ExportImportClient;
|
|
1463
1780
|
/**
|
|
1464
1781
|
* Creates a new Client instance
|
|
1465
1782
|
* @param config - Configuration options for the client
|
|
@@ -1648,7 +1965,7 @@ declare class WorkspaceClient {
|
|
|
1648
1965
|
getWorkspace(workspaceId: string): Promise<Workspace>;
|
|
1649
1966
|
updateWorkspace(workspaceId: string, updates: UpdateWorkspaceRequest): Promise<Workspace>;
|
|
1650
1967
|
deleteWorkspace(workspaceId: string): Promise<void>;
|
|
1651
|
-
listProjects(workspaceId: string): Promise<Project[]>;
|
|
1968
|
+
listProjects(workspaceId: string, kind?: ProjectKind): Promise<Project[]>;
|
|
1652
1969
|
createProject(workspaceId: string, data: CreateProjectRequest): Promise<Project>;
|
|
1653
1970
|
getProject(workspaceId: string, projectId: string): Promise<Project>;
|
|
1654
1971
|
updateProject(workspaceId: string, projectId: string, updates: UpdateProjectRequest): Promise<Project>;
|
|
@@ -1688,36 +2005,6 @@ declare class WorkspaceClient {
|
|
|
1688
2005
|
}>;
|
|
1689
2006
|
}
|
|
1690
2007
|
|
|
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
2008
|
/**
|
|
1722
2009
|
* ChunkMessageMerger
|
|
1723
2010
|
*
|
|
@@ -1737,4 +2024,4 @@ declare function createSimpleMessageMerger(): {
|
|
|
1737
2024
|
reset: () => void;
|
|
1738
2025
|
};
|
|
1739
2026
|
|
|
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 };
|
|
2027
|
+
export { A2AKeyListItem, A2AKeysListResponse, AbortAgentParams, AbstractClient, AgentState, AgentWebAppsListResponse, 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, ListAgentWebAppsParams, 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 };
|