@amigo-ai/platform-sdk 0.5.3 → 0.5.5
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/types/generated/api.d.ts +14655 -13144
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +166 -166
- package/dist/types/resources/agents.d.ts +88 -88
- package/dist/types/resources/analytics.d.ts +39 -39
- package/dist/types/resources/api-keys.d.ts +29 -29
- package/dist/types/resources/audit.d.ts +73 -73
- package/dist/types/resources/billing.d.ts +36 -36
- package/dist/types/resources/calls.d.ts +106 -106
- package/dist/types/resources/compliance.d.ts +17 -17
- package/dist/types/resources/context-graphs.d.ts +633 -633
- package/dist/types/resources/data-sources.d.ts +81 -81
- package/dist/types/resources/functions.d.ts +22 -22
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +257 -257
- package/dist/types/resources/memory.d.ts +35 -35
- package/dist/types/resources/operators.d.ts +147 -147
- package/dist/types/resources/personas.d.ts +37 -37
- package/dist/types/resources/phone-numbers.d.ts +62 -62
- package/dist/types/resources/recordings.d.ts +9 -9
- package/dist/types/resources/review-queue.d.ts +331 -331
- package/dist/types/resources/safety.d.ts +33 -33
- package/dist/types/resources/services.d.ts +142 -142
- package/dist/types/resources/settings.d.ts +254 -254
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +73 -73
- package/dist/types/resources/skills.d.ts +163 -163
- package/dist/types/resources/triggers.d.ts +74 -74
- package/dist/types/resources/webhook-destinations.d.ts +57 -57
- package/dist/types/resources/workspaces.d.ts +50 -50
- package/dist/types/resources/world.d.ts +216 -216
- package/package.json +1 -1
|
@@ -12,171 +12,171 @@ export interface ListDataSourcesParams extends ListParams {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class DataSourcesResource extends WorkspaceScopedResource {
|
|
14
14
|
create(body: components['schemas']['CreateDataSourceRequest']): Promise<{
|
|
15
|
-
id: string;
|
|
16
|
-
workspace_id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
display_name: string | null;
|
|
19
|
-
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
20
15
|
connection_config: {
|
|
21
16
|
[x: string]: unknown;
|
|
22
17
|
};
|
|
18
|
+
created_at: string;
|
|
19
|
+
discovered_by: string | null;
|
|
20
|
+
display_name: string | null;
|
|
23
21
|
entity_types: string[] | null;
|
|
24
22
|
field_mappings: {
|
|
25
23
|
[x: string]: unknown;
|
|
26
24
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
last_sync_at: string | null;
|
|
30
|
-
last_sync_status: ("success" | "error") | null;
|
|
31
|
-
last_sync_event_count: number;
|
|
25
|
+
health_status: "unknown" | "healthy" | "degraded";
|
|
26
|
+
id: string;
|
|
32
27
|
is_active: boolean;
|
|
33
28
|
is_stale: boolean;
|
|
34
|
-
health_status: "unknown" | "healthy" | "degraded";
|
|
35
29
|
last_health_check: string | null;
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
last_sync_at: string | null;
|
|
31
|
+
last_sync_event_count: number;
|
|
32
|
+
last_sync_status: ("success" | "error") | null;
|
|
33
|
+
name: string;
|
|
34
|
+
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
35
|
+
sync_schedule: string | null;
|
|
36
|
+
sync_strategy: "manual" | "scheduled" | "webhook" | "continuous";
|
|
38
37
|
updated_at: string;
|
|
38
|
+
workspace_id: string;
|
|
39
39
|
} & import("../index.js").ResponseMetadata>;
|
|
40
40
|
list(params?: ListDataSourcesParams): Promise<{
|
|
41
|
+
continuation_token?: number | null | undefined;
|
|
42
|
+
has_more: boolean;
|
|
41
43
|
items: {
|
|
42
|
-
id: string;
|
|
43
|
-
workspace_id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
display_name: string | null;
|
|
46
|
-
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
47
44
|
connection_config: {
|
|
48
45
|
[x: string]: unknown;
|
|
49
46
|
};
|
|
47
|
+
created_at: string;
|
|
48
|
+
discovered_by: string | null;
|
|
49
|
+
display_name: string | null;
|
|
50
50
|
entity_types: string[] | null;
|
|
51
51
|
field_mappings: {
|
|
52
52
|
[x: string]: unknown;
|
|
53
53
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
last_sync_at: string | null;
|
|
57
|
-
last_sync_status: ("success" | "error") | null;
|
|
58
|
-
last_sync_event_count: number;
|
|
54
|
+
health_status: "unknown" | "healthy" | "degraded";
|
|
55
|
+
id: string;
|
|
59
56
|
is_active: boolean;
|
|
60
57
|
is_stale: boolean;
|
|
61
|
-
health_status: "unknown" | "healthy" | "degraded";
|
|
62
58
|
last_health_check: string | null;
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
last_sync_at: string | null;
|
|
60
|
+
last_sync_event_count: number;
|
|
61
|
+
last_sync_status: ("success" | "error") | null;
|
|
62
|
+
name: string;
|
|
63
|
+
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
64
|
+
sync_schedule: string | null;
|
|
65
|
+
sync_strategy: "manual" | "scheduled" | "webhook" | "continuous";
|
|
65
66
|
updated_at: string;
|
|
67
|
+
workspace_id: string;
|
|
66
68
|
}[];
|
|
67
|
-
has_more: boolean;
|
|
68
|
-
continuation_token?: number | null | undefined;
|
|
69
69
|
total?: number | null | undefined;
|
|
70
70
|
} & import("../index.js").ResponseMetadata>;
|
|
71
71
|
listAutoPaging(params?: ListDataSourcesParams): AsyncGenerator<{
|
|
72
|
-
id: string;
|
|
73
|
-
workspace_id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
display_name: string | null;
|
|
76
|
-
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
77
72
|
connection_config: {
|
|
78
73
|
[x: string]: unknown;
|
|
79
74
|
};
|
|
75
|
+
created_at: string;
|
|
76
|
+
discovered_by: string | null;
|
|
77
|
+
display_name: string | null;
|
|
80
78
|
entity_types: string[] | null;
|
|
81
79
|
field_mappings: {
|
|
82
80
|
[x: string]: unknown;
|
|
83
81
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
last_sync_at: string | null;
|
|
87
|
-
last_sync_status: ("success" | "error") | null;
|
|
88
|
-
last_sync_event_count: number;
|
|
82
|
+
health_status: "unknown" | "healthy" | "degraded";
|
|
83
|
+
id: string;
|
|
89
84
|
is_active: boolean;
|
|
90
85
|
is_stale: boolean;
|
|
91
|
-
health_status: "unknown" | "healthy" | "degraded";
|
|
92
86
|
last_health_check: string | null;
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
last_sync_at: string | null;
|
|
88
|
+
last_sync_event_count: number;
|
|
89
|
+
last_sync_status: ("success" | "error") | null;
|
|
90
|
+
name: string;
|
|
91
|
+
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
92
|
+
sync_schedule: string | null;
|
|
93
|
+
sync_strategy: "manual" | "scheduled" | "webhook" | "continuous";
|
|
95
94
|
updated_at: string;
|
|
95
|
+
workspace_id: string;
|
|
96
96
|
}, any, any>;
|
|
97
97
|
get(dataSourceId: DataSourceId | string): Promise<{
|
|
98
|
-
id: string;
|
|
99
|
-
workspace_id: string;
|
|
100
|
-
name: string;
|
|
101
|
-
display_name: string | null;
|
|
102
|
-
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
103
98
|
connection_config: {
|
|
104
99
|
[x: string]: unknown;
|
|
105
100
|
};
|
|
101
|
+
created_at: string;
|
|
102
|
+
discovered_by: string | null;
|
|
103
|
+
display_name: string | null;
|
|
106
104
|
entity_types: string[] | null;
|
|
107
105
|
field_mappings: {
|
|
108
106
|
[x: string]: unknown;
|
|
109
107
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
last_sync_at: string | null;
|
|
113
|
-
last_sync_status: ("success" | "error") | null;
|
|
114
|
-
last_sync_event_count: number;
|
|
108
|
+
health_status: "unknown" | "healthy" | "degraded";
|
|
109
|
+
id: string;
|
|
115
110
|
is_active: boolean;
|
|
116
111
|
is_stale: boolean;
|
|
117
|
-
health_status: "unknown" | "healthy" | "degraded";
|
|
118
112
|
last_health_check: string | null;
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
last_sync_at: string | null;
|
|
114
|
+
last_sync_event_count: number;
|
|
115
|
+
last_sync_status: ("success" | "error") | null;
|
|
116
|
+
name: string;
|
|
117
|
+
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
118
|
+
sync_schedule: string | null;
|
|
119
|
+
sync_strategy: "manual" | "scheduled" | "webhook" | "continuous";
|
|
121
120
|
updated_at: string;
|
|
121
|
+
workspace_id: string;
|
|
122
122
|
} & import("../index.js").ResponseMetadata>;
|
|
123
123
|
update(dataSourceId: DataSourceId | string, body: components['schemas']['UpdateDataSourceRequest']): Promise<{
|
|
124
|
-
id: string;
|
|
125
|
-
workspace_id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
display_name: string | null;
|
|
128
|
-
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
129
124
|
connection_config: {
|
|
130
125
|
[x: string]: unknown;
|
|
131
126
|
};
|
|
127
|
+
created_at: string;
|
|
128
|
+
discovered_by: string | null;
|
|
129
|
+
display_name: string | null;
|
|
132
130
|
entity_types: string[] | null;
|
|
133
131
|
field_mappings: {
|
|
134
132
|
[x: string]: unknown;
|
|
135
133
|
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
last_sync_at: string | null;
|
|
139
|
-
last_sync_status: ("success" | "error") | null;
|
|
140
|
-
last_sync_event_count: number;
|
|
134
|
+
health_status: "unknown" | "healthy" | "degraded";
|
|
135
|
+
id: string;
|
|
141
136
|
is_active: boolean;
|
|
142
137
|
is_stale: boolean;
|
|
143
|
-
health_status: "unknown" | "healthy" | "degraded";
|
|
144
138
|
last_health_check: string | null;
|
|
145
|
-
|
|
146
|
-
|
|
139
|
+
last_sync_at: string | null;
|
|
140
|
+
last_sync_event_count: number;
|
|
141
|
+
last_sync_status: ("success" | "error") | null;
|
|
142
|
+
name: string;
|
|
143
|
+
source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
|
|
144
|
+
sync_schedule: string | null;
|
|
145
|
+
sync_strategy: "manual" | "scheduled" | "webhook" | "continuous";
|
|
147
146
|
updated_at: string;
|
|
147
|
+
workspace_id: string;
|
|
148
148
|
} & import("../index.js").ResponseMetadata>;
|
|
149
149
|
delete(dataSourceId: DataSourceId | string): Promise<void>;
|
|
150
150
|
/** Get event counts, sync status, and health for a data source */
|
|
151
151
|
getStatus(dataSourceId: DataSourceId | string): Promise<{
|
|
152
152
|
data_source_id: string;
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
event_count: number;
|
|
154
|
+
failed_count: number;
|
|
155
155
|
health_status: "unknown" | "healthy" | "degraded";
|
|
156
|
+
is_active: boolean;
|
|
156
157
|
last_sync_at: string | null;
|
|
157
|
-
last_sync_status: ("success" | "error") | null;
|
|
158
158
|
last_sync_event_count: number;
|
|
159
|
-
|
|
159
|
+
last_sync_status: ("success" | "error") | null;
|
|
160
|
+
name: string;
|
|
160
161
|
synced_count: number;
|
|
161
|
-
failed_count: number;
|
|
162
162
|
} & import("../index.js").ResponseMetadata>;
|
|
163
163
|
/** Get daily event timeline + recent sync failures for a data source */
|
|
164
164
|
getSyncHistory(dataSourceId: DataSourceId | string): Promise<{
|
|
165
165
|
data_source_id: string;
|
|
166
166
|
name: string;
|
|
167
|
-
timeline: {
|
|
168
|
-
date: string;
|
|
169
|
-
event_count: number;
|
|
170
|
-
synced_count: number;
|
|
171
|
-
failed_count: number;
|
|
172
|
-
}[];
|
|
173
167
|
recent_failures: {
|
|
168
|
+
created_at: string | null;
|
|
174
169
|
event_id: string;
|
|
175
170
|
event_type: string;
|
|
176
|
-
fhir_resource_type: string | null;
|
|
177
171
|
fhir_resource_id: string | null;
|
|
172
|
+
fhir_resource_type: string | null;
|
|
178
173
|
sync_error: string | null;
|
|
179
|
-
|
|
174
|
+
}[];
|
|
175
|
+
timeline: {
|
|
176
|
+
date: string;
|
|
177
|
+
event_count: number;
|
|
178
|
+
failed_count: number;
|
|
179
|
+
synced_count: number;
|
|
180
180
|
}[];
|
|
181
181
|
} & import("../index.js").ResponseMetadata>;
|
|
182
182
|
/**
|
|
@@ -190,8 +190,8 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
|
|
|
190
190
|
* connector-runner is unreachable.
|
|
191
191
|
*/
|
|
192
192
|
triggerSync(dataSourceId: DataSourceId | string): Promise<{
|
|
193
|
-
status: "started";
|
|
194
193
|
data_source_id: string;
|
|
194
|
+
status: "started";
|
|
195
195
|
triggered_at: string;
|
|
196
196
|
} & import("../index.js").ResponseMetadata>;
|
|
197
197
|
}
|
|
@@ -2,72 +2,72 @@ import type { components } from '../generated/api.js';
|
|
|
2
2
|
import { WorkspaceScopedResource } from './base.js';
|
|
3
3
|
export declare class FunctionsResource extends WorkspaceScopedResource {
|
|
4
4
|
list(): Promise<{
|
|
5
|
+
count: number;
|
|
5
6
|
items: {
|
|
6
|
-
name: components["schemas"]["NameString"];
|
|
7
7
|
catalog?: string | undefined;
|
|
8
|
-
schema?: string | undefined;
|
|
9
8
|
description?: components["schemas"]["DescriptionString"] | undefined;
|
|
9
|
+
enabled?: boolean | undefined;
|
|
10
|
+
function_type?: string | undefined;
|
|
10
11
|
input_schema?: {
|
|
11
12
|
[x: string]: unknown;
|
|
12
13
|
} | undefined;
|
|
14
|
+
name: components["schemas"]["NameString"];
|
|
13
15
|
returns_table?: boolean | undefined;
|
|
14
|
-
|
|
15
|
-
function_type?: string | undefined;
|
|
16
|
+
schema?: string | undefined;
|
|
16
17
|
}[];
|
|
17
|
-
count: number;
|
|
18
18
|
} & import("../index.js").ResponseMetadata>;
|
|
19
19
|
create(body: components['schemas']['FunctionCreateRequest']): Promise<{
|
|
20
|
-
name: components["schemas"]["NameString"];
|
|
21
20
|
catalog?: string | undefined;
|
|
22
|
-
schema?: string | undefined;
|
|
23
21
|
description?: components["schemas"]["DescriptionString"] | undefined;
|
|
22
|
+
enabled?: boolean | undefined;
|
|
23
|
+
function_type?: string | undefined;
|
|
24
24
|
input_schema?: {
|
|
25
25
|
[x: string]: unknown;
|
|
26
26
|
} | undefined;
|
|
27
|
+
name: components["schemas"]["NameString"];
|
|
27
28
|
returns_table?: boolean | undefined;
|
|
28
|
-
|
|
29
|
-
function_type?: string | undefined;
|
|
29
|
+
schema?: string | undefined;
|
|
30
30
|
} & import("../index.js").ResponseMetadata>;
|
|
31
31
|
delete(functionName: string): Promise<void>;
|
|
32
32
|
test(functionName: string, body: components['schemas']['FunctionTestRequest']): Promise<{
|
|
33
|
-
result?: unknown;
|
|
34
33
|
duration_ms?: number | undefined;
|
|
35
34
|
error?: string | null | undefined;
|
|
36
35
|
function_name?: string | undefined;
|
|
36
|
+
result?: unknown;
|
|
37
37
|
} & import("../index.js").ResponseMetadata>;
|
|
38
38
|
getCatalog(): Promise<{
|
|
39
|
+
catalog?: string | undefined;
|
|
40
|
+
count?: number | undefined;
|
|
39
41
|
functions: {
|
|
40
|
-
name: string;
|
|
41
|
-
data_type?: string | undefined;
|
|
42
42
|
comment?: string | undefined;
|
|
43
|
+
data_type?: string | undefined;
|
|
44
|
+
name: string;
|
|
43
45
|
registered?: boolean | undefined;
|
|
44
46
|
}[];
|
|
45
|
-
count?: number | undefined;
|
|
46
|
-
catalog?: string | undefined;
|
|
47
47
|
schema?: string | undefined;
|
|
48
48
|
} & import("../index.js").ResponseMetadata>;
|
|
49
49
|
query(body: components['schemas']['QueryRequest']): Promise<{
|
|
50
|
-
results?: {
|
|
51
|
-
[x: string]: unknown;
|
|
52
|
-
}[] | undefined;
|
|
53
50
|
count?: number | undefined;
|
|
54
51
|
duration_ms?: number | undefined;
|
|
55
52
|
error?: string | null | undefined;
|
|
53
|
+
results?: {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
}[] | undefined;
|
|
56
56
|
} & import("../index.js").ResponseMetadata>;
|
|
57
57
|
sync(): Promise<{
|
|
58
|
+
count: number;
|
|
58
59
|
items: {
|
|
59
|
-
name: components["schemas"]["NameString"];
|
|
60
60
|
catalog?: string | undefined;
|
|
61
|
-
schema?: string | undefined;
|
|
62
61
|
description?: components["schemas"]["DescriptionString"] | undefined;
|
|
62
|
+
enabled?: boolean | undefined;
|
|
63
|
+
function_type?: string | undefined;
|
|
63
64
|
input_schema?: {
|
|
64
65
|
[x: string]: unknown;
|
|
65
66
|
} | undefined;
|
|
67
|
+
name: components["schemas"]["NameString"];
|
|
66
68
|
returns_table?: boolean | undefined;
|
|
67
|
-
|
|
68
|
-
function_type?: string | undefined;
|
|
69
|
+
schema?: string | undefined;
|
|
69
70
|
}[];
|
|
70
|
-
count: number;
|
|
71
71
|
} & import("../index.js").ResponseMetadata>;
|
|
72
72
|
}
|
|
73
73
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/resources/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,iBAAkB,SAAQ,uBAAuB;IACtD,IAAI
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/resources/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,iBAAkB,SAAQ,uBAAuB;IACtD,IAAI;;;;0BAyDq1lb,qBAAsB;;;;;;kBAAic,qBAAsB;;;;;IAjDt0mb,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,uBAAuB,CAAC;;sBAiD8xlb,qBAAsB;;;;;;cAAic,qBAAsB;;;;IAxCt0mb,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM3C,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;;;;;;IAS7E,UAAU;;;;;;;;;;;IAQV,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC;;;;;;;;IASjD,IAAI;;;;0BAQq1lb,qBAAsB;;;;;;kBAAic,qBAAsB;;;;;CAD70mb"}
|