@amigo-ai/platform-sdk 0.5.2 → 0.5.3
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 +81 -7
- package/api.md +3 -0
- package/dist/index.cjs +42 -10
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +42 -10
- package/dist/index.mjs.map +2 -2
- package/dist/resources/base.js +7 -2
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/operators.js.map +1 -1
- package/dist/resources/personas.js.map +1 -1
- package/dist/resources/webhook-destinations.js.map +1 -1
- package/dist/resources/workspaces.js +22 -0
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/resources/world.js.map +1 -1
- package/dist/types/generated/api.d.ts +13373 -13213
- 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/base.d.ts.map +1 -1
- 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 +643 -643
- 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 +258 -258
- package/dist/types/resources/memory.d.ts +35 -35
- package/dist/types/resources/operators.d.ts +147 -147
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +37 -37
- package/dist/types/resources/personas.d.ts.map +1 -1
- 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/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +69 -35
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +216 -216
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14,427 +14,427 @@ export interface ListIntegrationsParams extends ListParams {
|
|
|
14
14
|
export declare class IntegrationsResource extends WorkspaceScopedResource {
|
|
15
15
|
/** Create a new integration */
|
|
16
16
|
create(body: components['schemas']['CreateIntegrationRequest']): Promise<{
|
|
17
|
+
id: string;
|
|
18
|
+
workspace_id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
display_name: string;
|
|
21
|
+
protocol: "rest" | "fhir" | "mcp";
|
|
22
|
+
base_url?: string | undefined;
|
|
17
23
|
auth?: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
assertion_subject?: string | null | undefined;
|
|
24
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
25
|
+
header_name?: string | null | undefined;
|
|
26
|
+
ssm_param_path?: string | null | undefined;
|
|
27
|
+
token_ssm_param_path?: string | null | undefined;
|
|
28
|
+
token_url?: string | null | undefined;
|
|
24
29
|
client_id?: string | null | undefined;
|
|
25
30
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
31
|
+
scopes?: string[] | null | undefined;
|
|
26
32
|
gcp_scopes?: string[] | null | undefined;
|
|
27
|
-
header_name?: string | null | undefined;
|
|
28
33
|
private_key_ssm_param_path?: string | null | undefined;
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
assertion_issuer?: string | null | undefined;
|
|
35
|
+
assertion_subject?: string | null | undefined;
|
|
36
|
+
assertion_audience?: string | null | undefined;
|
|
31
37
|
token_lifetime_seconds?: number | undefined;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
39
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
40
|
+
assertion_kid?: string | null | undefined;
|
|
35
41
|
} | null | undefined;
|
|
36
|
-
base_url?: string | undefined;
|
|
37
|
-
builtin?: boolean | undefined;
|
|
38
|
-
created_at: string;
|
|
39
|
-
display_name: string;
|
|
40
|
-
enabled: boolean;
|
|
41
42
|
endpoints?: {
|
|
43
|
+
name: string;
|
|
44
|
+
description: string;
|
|
45
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
46
|
+
path: string;
|
|
47
|
+
base_url?: string | null | undefined;
|
|
42
48
|
auth?: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
assertion_subject?: string | null | undefined;
|
|
49
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
50
|
+
header_name?: string | null | undefined;
|
|
51
|
+
ssm_param_path?: string | null | undefined;
|
|
52
|
+
token_ssm_param_path?: string | null | undefined;
|
|
53
|
+
token_url?: string | null | undefined;
|
|
49
54
|
client_id?: string | null | undefined;
|
|
50
55
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
56
|
+
scopes?: string[] | null | undefined;
|
|
51
57
|
gcp_scopes?: string[] | null | undefined;
|
|
52
|
-
header_name?: string | null | undefined;
|
|
53
58
|
private_key_ssm_param_path?: string | null | undefined;
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
assertion_issuer?: string | null | undefined;
|
|
60
|
+
assertion_subject?: string | null | undefined;
|
|
61
|
+
assertion_audience?: string | null | undefined;
|
|
56
62
|
token_lifetime_seconds?: number | undefined;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
64
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
65
|
+
assertion_kid?: string | null | undefined;
|
|
60
66
|
} | null | undefined;
|
|
61
|
-
base_url?: string | null | undefined;
|
|
62
|
-
body_format?: "json" | "form" | undefined;
|
|
63
|
-
description: string;
|
|
64
|
-
headers?: {
|
|
65
|
-
[x: string]: string;
|
|
66
|
-
} | undefined;
|
|
67
67
|
input_schema?: {
|
|
68
68
|
[x: string]: unknown;
|
|
69
69
|
} | undefined;
|
|
70
|
-
max_result_length?: number | undefined;
|
|
71
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
72
|
-
name: string;
|
|
73
|
-
path: string;
|
|
74
|
-
response_filter?: string[] | null | undefined;
|
|
75
70
|
response_mapping?: {
|
|
76
71
|
[x: string]: string;
|
|
77
72
|
} | null | undefined;
|
|
78
|
-
|
|
79
|
-
result_key?: string | null | undefined;
|
|
73
|
+
response_filter?: string[] | null | undefined;
|
|
80
74
|
result_template?: string | null | undefined;
|
|
75
|
+
result_key?: string | null | undefined;
|
|
76
|
+
max_result_length?: number | undefined;
|
|
81
77
|
retry_config?: {
|
|
82
78
|
max_retries?: number | undefined;
|
|
83
79
|
retry_on_status?: number[] | undefined;
|
|
84
80
|
} | undefined;
|
|
81
|
+
result_delivery?: "interrupt" | "queue" | undefined;
|
|
82
|
+
headers?: {
|
|
83
|
+
[x: string]: string;
|
|
84
|
+
} | undefined;
|
|
85
|
+
body_format?: "json" | "form" | undefined;
|
|
85
86
|
}[] | undefined;
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
enabled: boolean;
|
|
88
|
+
builtin?: boolean | undefined;
|
|
89
|
+
created_at: string;
|
|
90
|
+
updated_at: string;
|
|
91
|
+
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
88
92
|
mcp_command?: string | null | undefined;
|
|
93
|
+
mcp_args?: string[] | null | undefined;
|
|
94
|
+
mcp_url?: string | null | undefined;
|
|
89
95
|
mcp_headers?: {
|
|
90
96
|
[x: string]: string;
|
|
91
97
|
} | null | undefined;
|
|
92
|
-
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
93
|
-
mcp_url?: string | null | undefined;
|
|
94
|
-
name: string;
|
|
95
|
-
protocol: "rest" | "fhir" | "mcp";
|
|
96
|
-
updated_at: string;
|
|
97
|
-
workspace_id: string;
|
|
98
98
|
} & import("../index.js").ResponseMetadata>;
|
|
99
99
|
/** List integrations */
|
|
100
100
|
list(params?: ListIntegrationsParams): Promise<{
|
|
101
|
-
continuation_token?: number | null | undefined;
|
|
102
|
-
has_more: boolean;
|
|
103
101
|
items: {
|
|
102
|
+
id: string;
|
|
103
|
+
workspace_id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
display_name: string;
|
|
106
|
+
protocol: "rest" | "fhir" | "mcp";
|
|
107
|
+
base_url?: string | undefined;
|
|
104
108
|
auth?: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
assertion_subject?: string | null | undefined;
|
|
109
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
110
|
+
header_name?: string | null | undefined;
|
|
111
|
+
ssm_param_path?: string | null | undefined;
|
|
112
|
+
token_ssm_param_path?: string | null | undefined;
|
|
113
|
+
token_url?: string | null | undefined;
|
|
111
114
|
client_id?: string | null | undefined;
|
|
112
115
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
116
|
+
scopes?: string[] | null | undefined;
|
|
113
117
|
gcp_scopes?: string[] | null | undefined;
|
|
114
|
-
header_name?: string | null | undefined;
|
|
115
118
|
private_key_ssm_param_path?: string | null | undefined;
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
assertion_issuer?: string | null | undefined;
|
|
120
|
+
assertion_subject?: string | null | undefined;
|
|
121
|
+
assertion_audience?: string | null | undefined;
|
|
118
122
|
token_lifetime_seconds?: number | undefined;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
123
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
124
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
125
|
+
assertion_kid?: string | null | undefined;
|
|
122
126
|
} | null | undefined;
|
|
123
|
-
base_url?: string | undefined;
|
|
124
|
-
builtin?: boolean | undefined;
|
|
125
|
-
created_at: string;
|
|
126
|
-
display_name: string;
|
|
127
|
-
enabled: boolean;
|
|
128
127
|
endpoints?: {
|
|
128
|
+
name: string;
|
|
129
|
+
description: string;
|
|
130
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
131
|
+
path: string;
|
|
132
|
+
base_url?: string | null | undefined;
|
|
129
133
|
auth?: {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
assertion_subject?: string | null | undefined;
|
|
134
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
135
|
+
header_name?: string | null | undefined;
|
|
136
|
+
ssm_param_path?: string | null | undefined;
|
|
137
|
+
token_ssm_param_path?: string | null | undefined;
|
|
138
|
+
token_url?: string | null | undefined;
|
|
136
139
|
client_id?: string | null | undefined;
|
|
137
140
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
141
|
+
scopes?: string[] | null | undefined;
|
|
138
142
|
gcp_scopes?: string[] | null | undefined;
|
|
139
|
-
header_name?: string | null | undefined;
|
|
140
143
|
private_key_ssm_param_path?: string | null | undefined;
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
assertion_issuer?: string | null | undefined;
|
|
145
|
+
assertion_subject?: string | null | undefined;
|
|
146
|
+
assertion_audience?: string | null | undefined;
|
|
143
147
|
token_lifetime_seconds?: number | undefined;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
149
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
150
|
+
assertion_kid?: string | null | undefined;
|
|
147
151
|
} | null | undefined;
|
|
148
|
-
base_url?: string | null | undefined;
|
|
149
|
-
body_format?: "json" | "form" | undefined;
|
|
150
|
-
description: string;
|
|
151
|
-
headers?: {
|
|
152
|
-
[x: string]: string;
|
|
153
|
-
} | undefined;
|
|
154
152
|
input_schema?: {
|
|
155
153
|
[x: string]: unknown;
|
|
156
154
|
} | undefined;
|
|
157
|
-
max_result_length?: number | undefined;
|
|
158
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
159
|
-
name: string;
|
|
160
|
-
path: string;
|
|
161
|
-
response_filter?: string[] | null | undefined;
|
|
162
155
|
response_mapping?: {
|
|
163
156
|
[x: string]: string;
|
|
164
157
|
} | null | undefined;
|
|
165
|
-
|
|
166
|
-
result_key?: string | null | undefined;
|
|
158
|
+
response_filter?: string[] | null | undefined;
|
|
167
159
|
result_template?: string | null | undefined;
|
|
160
|
+
result_key?: string | null | undefined;
|
|
161
|
+
max_result_length?: number | undefined;
|
|
168
162
|
retry_config?: {
|
|
169
163
|
max_retries?: number | undefined;
|
|
170
164
|
retry_on_status?: number[] | undefined;
|
|
171
165
|
} | undefined;
|
|
166
|
+
result_delivery?: "interrupt" | "queue" | undefined;
|
|
167
|
+
headers?: {
|
|
168
|
+
[x: string]: string;
|
|
169
|
+
} | undefined;
|
|
170
|
+
body_format?: "json" | "form" | undefined;
|
|
172
171
|
}[] | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
builtin?: boolean | undefined;
|
|
174
|
+
created_at: string;
|
|
175
|
+
updated_at: string;
|
|
176
|
+
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
175
177
|
mcp_command?: string | null | undefined;
|
|
178
|
+
mcp_args?: string[] | null | undefined;
|
|
179
|
+
mcp_url?: string | null | undefined;
|
|
176
180
|
mcp_headers?: {
|
|
177
181
|
[x: string]: string;
|
|
178
182
|
} | null | undefined;
|
|
179
|
-
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
180
|
-
mcp_url?: string | null | undefined;
|
|
181
|
-
name: string;
|
|
182
|
-
protocol: "rest" | "fhir" | "mcp";
|
|
183
|
-
updated_at: string;
|
|
184
|
-
workspace_id: string;
|
|
185
183
|
}[];
|
|
184
|
+
has_more: boolean;
|
|
185
|
+
continuation_token?: number | null | undefined;
|
|
186
186
|
total?: number | null | undefined;
|
|
187
187
|
} & import("../index.js").ResponseMetadata>;
|
|
188
188
|
listAutoPaging(params?: ListIntegrationsParams): AsyncGenerator<{
|
|
189
|
+
id: string;
|
|
190
|
+
workspace_id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
display_name: string;
|
|
193
|
+
protocol: "rest" | "fhir" | "mcp";
|
|
194
|
+
base_url?: string | undefined;
|
|
189
195
|
auth?: {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
assertion_subject?: string | null | undefined;
|
|
196
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
197
|
+
header_name?: string | null | undefined;
|
|
198
|
+
ssm_param_path?: string | null | undefined;
|
|
199
|
+
token_ssm_param_path?: string | null | undefined;
|
|
200
|
+
token_url?: string | null | undefined;
|
|
196
201
|
client_id?: string | null | undefined;
|
|
197
202
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
203
|
+
scopes?: string[] | null | undefined;
|
|
198
204
|
gcp_scopes?: string[] | null | undefined;
|
|
199
|
-
header_name?: string | null | undefined;
|
|
200
205
|
private_key_ssm_param_path?: string | null | undefined;
|
|
201
|
-
|
|
202
|
-
|
|
206
|
+
assertion_issuer?: string | null | undefined;
|
|
207
|
+
assertion_subject?: string | null | undefined;
|
|
208
|
+
assertion_audience?: string | null | undefined;
|
|
203
209
|
token_lifetime_seconds?: number | undefined;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
210
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
211
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
212
|
+
assertion_kid?: string | null | undefined;
|
|
207
213
|
} | null | undefined;
|
|
208
|
-
base_url?: string | undefined;
|
|
209
|
-
builtin?: boolean | undefined;
|
|
210
|
-
created_at: string;
|
|
211
|
-
display_name: string;
|
|
212
|
-
enabled: boolean;
|
|
213
214
|
endpoints?: {
|
|
215
|
+
name: string;
|
|
216
|
+
description: string;
|
|
217
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
218
|
+
path: string;
|
|
219
|
+
base_url?: string | null | undefined;
|
|
214
220
|
auth?: {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
assertion_subject?: string | null | undefined;
|
|
221
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
222
|
+
header_name?: string | null | undefined;
|
|
223
|
+
ssm_param_path?: string | null | undefined;
|
|
224
|
+
token_ssm_param_path?: string | null | undefined;
|
|
225
|
+
token_url?: string | null | undefined;
|
|
221
226
|
client_id?: string | null | undefined;
|
|
222
227
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
223
|
-
gcp_scopes?: string[] | null | undefined;
|
|
224
|
-
header_name?: string | null | undefined;
|
|
225
|
-
private_key_ssm_param_path?: string | null | undefined;
|
|
226
228
|
scopes?: string[] | null | undefined;
|
|
227
|
-
|
|
229
|
+
gcp_scopes?: string[] | null | undefined;
|
|
230
|
+
private_key_ssm_param_path?: string | null | undefined;
|
|
231
|
+
assertion_issuer?: string | null | undefined;
|
|
232
|
+
assertion_subject?: string | null | undefined;
|
|
233
|
+
assertion_audience?: string | null | undefined;
|
|
228
234
|
token_lifetime_seconds?: number | undefined;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
235
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
236
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
237
|
+
assertion_kid?: string | null | undefined;
|
|
232
238
|
} | null | undefined;
|
|
233
|
-
base_url?: string | null | undefined;
|
|
234
|
-
body_format?: "json" | "form" | undefined;
|
|
235
|
-
description: string;
|
|
236
|
-
headers?: {
|
|
237
|
-
[x: string]: string;
|
|
238
|
-
} | undefined;
|
|
239
239
|
input_schema?: {
|
|
240
240
|
[x: string]: unknown;
|
|
241
241
|
} | undefined;
|
|
242
|
-
max_result_length?: number | undefined;
|
|
243
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
244
|
-
name: string;
|
|
245
|
-
path: string;
|
|
246
|
-
response_filter?: string[] | null | undefined;
|
|
247
242
|
response_mapping?: {
|
|
248
243
|
[x: string]: string;
|
|
249
244
|
} | null | undefined;
|
|
250
|
-
|
|
251
|
-
result_key?: string | null | undefined;
|
|
245
|
+
response_filter?: string[] | null | undefined;
|
|
252
246
|
result_template?: string | null | undefined;
|
|
247
|
+
result_key?: string | null | undefined;
|
|
248
|
+
max_result_length?: number | undefined;
|
|
253
249
|
retry_config?: {
|
|
254
250
|
max_retries?: number | undefined;
|
|
255
251
|
retry_on_status?: number[] | undefined;
|
|
256
252
|
} | undefined;
|
|
253
|
+
result_delivery?: "interrupt" | "queue" | undefined;
|
|
254
|
+
headers?: {
|
|
255
|
+
[x: string]: string;
|
|
256
|
+
} | undefined;
|
|
257
|
+
body_format?: "json" | "form" | undefined;
|
|
257
258
|
}[] | undefined;
|
|
258
|
-
|
|
259
|
-
|
|
259
|
+
enabled: boolean;
|
|
260
|
+
builtin?: boolean | undefined;
|
|
261
|
+
created_at: string;
|
|
262
|
+
updated_at: string;
|
|
263
|
+
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
260
264
|
mcp_command?: string | null | undefined;
|
|
265
|
+
mcp_args?: string[] | null | undefined;
|
|
266
|
+
mcp_url?: string | null | undefined;
|
|
261
267
|
mcp_headers?: {
|
|
262
268
|
[x: string]: string;
|
|
263
269
|
} | null | undefined;
|
|
264
|
-
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
265
|
-
mcp_url?: string | null | undefined;
|
|
266
|
-
name: string;
|
|
267
|
-
protocol: "rest" | "fhir" | "mcp";
|
|
268
|
-
updated_at: string;
|
|
269
|
-
workspace_id: string;
|
|
270
270
|
}, any, any>;
|
|
271
271
|
/** Get a single integration */
|
|
272
272
|
get(integrationId: IntegrationId | string): Promise<{
|
|
273
|
+
id: string;
|
|
274
|
+
workspace_id: string;
|
|
275
|
+
name: string;
|
|
276
|
+
display_name: string;
|
|
277
|
+
protocol: "rest" | "fhir" | "mcp";
|
|
278
|
+
base_url?: string | undefined;
|
|
273
279
|
auth?: {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
assertion_subject?: string | null | undefined;
|
|
280
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
281
|
+
header_name?: string | null | undefined;
|
|
282
|
+
ssm_param_path?: string | null | undefined;
|
|
283
|
+
token_ssm_param_path?: string | null | undefined;
|
|
284
|
+
token_url?: string | null | undefined;
|
|
280
285
|
client_id?: string | null | undefined;
|
|
281
286
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
287
|
+
scopes?: string[] | null | undefined;
|
|
282
288
|
gcp_scopes?: string[] | null | undefined;
|
|
283
|
-
header_name?: string | null | undefined;
|
|
284
289
|
private_key_ssm_param_path?: string | null | undefined;
|
|
285
|
-
|
|
286
|
-
|
|
290
|
+
assertion_issuer?: string | null | undefined;
|
|
291
|
+
assertion_subject?: string | null | undefined;
|
|
292
|
+
assertion_audience?: string | null | undefined;
|
|
287
293
|
token_lifetime_seconds?: number | undefined;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
294
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
295
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
296
|
+
assertion_kid?: string | null | undefined;
|
|
291
297
|
} | null | undefined;
|
|
292
|
-
base_url?: string | undefined;
|
|
293
|
-
builtin?: boolean | undefined;
|
|
294
|
-
created_at: string;
|
|
295
|
-
display_name: string;
|
|
296
|
-
enabled: boolean;
|
|
297
298
|
endpoints?: {
|
|
299
|
+
name: string;
|
|
300
|
+
description: string;
|
|
301
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
302
|
+
path: string;
|
|
303
|
+
base_url?: string | null | undefined;
|
|
298
304
|
auth?: {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
assertion_subject?: string | null | undefined;
|
|
305
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
306
|
+
header_name?: string | null | undefined;
|
|
307
|
+
ssm_param_path?: string | null | undefined;
|
|
308
|
+
token_ssm_param_path?: string | null | undefined;
|
|
309
|
+
token_url?: string | null | undefined;
|
|
305
310
|
client_id?: string | null | undefined;
|
|
306
311
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
312
|
+
scopes?: string[] | null | undefined;
|
|
307
313
|
gcp_scopes?: string[] | null | undefined;
|
|
308
|
-
header_name?: string | null | undefined;
|
|
309
314
|
private_key_ssm_param_path?: string | null | undefined;
|
|
310
|
-
|
|
311
|
-
|
|
315
|
+
assertion_issuer?: string | null | undefined;
|
|
316
|
+
assertion_subject?: string | null | undefined;
|
|
317
|
+
assertion_audience?: string | null | undefined;
|
|
312
318
|
token_lifetime_seconds?: number | undefined;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
319
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
320
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
321
|
+
assertion_kid?: string | null | undefined;
|
|
316
322
|
} | null | undefined;
|
|
317
|
-
base_url?: string | null | undefined;
|
|
318
|
-
body_format?: "json" | "form" | undefined;
|
|
319
|
-
description: string;
|
|
320
|
-
headers?: {
|
|
321
|
-
[x: string]: string;
|
|
322
|
-
} | undefined;
|
|
323
323
|
input_schema?: {
|
|
324
324
|
[x: string]: unknown;
|
|
325
325
|
} | undefined;
|
|
326
|
-
max_result_length?: number | undefined;
|
|
327
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
328
|
-
name: string;
|
|
329
|
-
path: string;
|
|
330
|
-
response_filter?: string[] | null | undefined;
|
|
331
326
|
response_mapping?: {
|
|
332
327
|
[x: string]: string;
|
|
333
328
|
} | null | undefined;
|
|
334
|
-
|
|
335
|
-
result_key?: string | null | undefined;
|
|
329
|
+
response_filter?: string[] | null | undefined;
|
|
336
330
|
result_template?: string | null | undefined;
|
|
331
|
+
result_key?: string | null | undefined;
|
|
332
|
+
max_result_length?: number | undefined;
|
|
337
333
|
retry_config?: {
|
|
338
334
|
max_retries?: number | undefined;
|
|
339
335
|
retry_on_status?: number[] | undefined;
|
|
340
336
|
} | undefined;
|
|
337
|
+
result_delivery?: "interrupt" | "queue" | undefined;
|
|
338
|
+
headers?: {
|
|
339
|
+
[x: string]: string;
|
|
340
|
+
} | undefined;
|
|
341
|
+
body_format?: "json" | "form" | undefined;
|
|
341
342
|
}[] | undefined;
|
|
342
|
-
|
|
343
|
-
|
|
343
|
+
enabled: boolean;
|
|
344
|
+
builtin?: boolean | undefined;
|
|
345
|
+
created_at: string;
|
|
346
|
+
updated_at: string;
|
|
347
|
+
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
344
348
|
mcp_command?: string | null | undefined;
|
|
349
|
+
mcp_args?: string[] | null | undefined;
|
|
350
|
+
mcp_url?: string | null | undefined;
|
|
345
351
|
mcp_headers?: {
|
|
346
352
|
[x: string]: string;
|
|
347
353
|
} | null | undefined;
|
|
348
|
-
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
349
|
-
mcp_url?: string | null | undefined;
|
|
350
|
-
name: string;
|
|
351
|
-
protocol: "rest" | "fhir" | "mcp";
|
|
352
|
-
updated_at: string;
|
|
353
|
-
workspace_id: string;
|
|
354
354
|
} & import("../index.js").ResponseMetadata>;
|
|
355
355
|
/** Update integration configuration */
|
|
356
356
|
update(integrationId: IntegrationId | string, body: components['schemas']['UpdateIntegrationRequest']): Promise<{
|
|
357
|
+
id: string;
|
|
358
|
+
workspace_id: string;
|
|
359
|
+
name: string;
|
|
360
|
+
display_name: string;
|
|
361
|
+
protocol: "rest" | "fhir" | "mcp";
|
|
362
|
+
base_url?: string | undefined;
|
|
357
363
|
auth?: {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
assertion_subject?: string | null | undefined;
|
|
364
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
365
|
+
header_name?: string | null | undefined;
|
|
366
|
+
ssm_param_path?: string | null | undefined;
|
|
367
|
+
token_ssm_param_path?: string | null | undefined;
|
|
368
|
+
token_url?: string | null | undefined;
|
|
364
369
|
client_id?: string | null | undefined;
|
|
365
370
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
371
|
+
scopes?: string[] | null | undefined;
|
|
366
372
|
gcp_scopes?: string[] | null | undefined;
|
|
367
|
-
header_name?: string | null | undefined;
|
|
368
373
|
private_key_ssm_param_path?: string | null | undefined;
|
|
369
|
-
|
|
370
|
-
|
|
374
|
+
assertion_issuer?: string | null | undefined;
|
|
375
|
+
assertion_subject?: string | null | undefined;
|
|
376
|
+
assertion_audience?: string | null | undefined;
|
|
371
377
|
token_lifetime_seconds?: number | undefined;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
378
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
379
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
380
|
+
assertion_kid?: string | null | undefined;
|
|
375
381
|
} | null | undefined;
|
|
376
|
-
base_url?: string | undefined;
|
|
377
|
-
builtin?: boolean | undefined;
|
|
378
|
-
created_at: string;
|
|
379
|
-
display_name: string;
|
|
380
|
-
enabled: boolean;
|
|
381
382
|
endpoints?: {
|
|
383
|
+
name: string;
|
|
384
|
+
description: string;
|
|
385
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
386
|
+
path: string;
|
|
387
|
+
base_url?: string | null | undefined;
|
|
382
388
|
auth?: {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
assertion_subject?: string | null | undefined;
|
|
389
|
+
type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
|
|
390
|
+
header_name?: string | null | undefined;
|
|
391
|
+
ssm_param_path?: string | null | undefined;
|
|
392
|
+
token_ssm_param_path?: string | null | undefined;
|
|
393
|
+
token_url?: string | null | undefined;
|
|
389
394
|
client_id?: string | null | undefined;
|
|
390
395
|
client_secret_ssm_param_path?: string | null | undefined;
|
|
396
|
+
scopes?: string[] | null | undefined;
|
|
391
397
|
gcp_scopes?: string[] | null | undefined;
|
|
392
|
-
header_name?: string | null | undefined;
|
|
393
398
|
private_key_ssm_param_path?: string | null | undefined;
|
|
394
|
-
|
|
395
|
-
|
|
399
|
+
assertion_issuer?: string | null | undefined;
|
|
400
|
+
assertion_subject?: string | null | undefined;
|
|
401
|
+
assertion_audience?: string | null | undefined;
|
|
396
402
|
token_lifetime_seconds?: number | undefined;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
403
|
+
assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
|
|
404
|
+
assertion_scopes_in_jwt?: boolean | undefined;
|
|
405
|
+
assertion_kid?: string | null | undefined;
|
|
400
406
|
} | null | undefined;
|
|
401
|
-
base_url?: string | null | undefined;
|
|
402
|
-
body_format?: "json" | "form" | undefined;
|
|
403
|
-
description: string;
|
|
404
|
-
headers?: {
|
|
405
|
-
[x: string]: string;
|
|
406
|
-
} | undefined;
|
|
407
407
|
input_schema?: {
|
|
408
408
|
[x: string]: unknown;
|
|
409
409
|
} | undefined;
|
|
410
|
-
max_result_length?: number | undefined;
|
|
411
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
412
|
-
name: string;
|
|
413
|
-
path: string;
|
|
414
|
-
response_filter?: string[] | null | undefined;
|
|
415
410
|
response_mapping?: {
|
|
416
411
|
[x: string]: string;
|
|
417
412
|
} | null | undefined;
|
|
418
|
-
|
|
419
|
-
result_key?: string | null | undefined;
|
|
413
|
+
response_filter?: string[] | null | undefined;
|
|
420
414
|
result_template?: string | null | undefined;
|
|
415
|
+
result_key?: string | null | undefined;
|
|
416
|
+
max_result_length?: number | undefined;
|
|
421
417
|
retry_config?: {
|
|
422
418
|
max_retries?: number | undefined;
|
|
423
419
|
retry_on_status?: number[] | undefined;
|
|
424
420
|
} | undefined;
|
|
421
|
+
result_delivery?: "interrupt" | "queue" | undefined;
|
|
422
|
+
headers?: {
|
|
423
|
+
[x: string]: string;
|
|
424
|
+
} | undefined;
|
|
425
|
+
body_format?: "json" | "form" | undefined;
|
|
425
426
|
}[] | undefined;
|
|
426
|
-
|
|
427
|
-
|
|
427
|
+
enabled: boolean;
|
|
428
|
+
builtin?: boolean | undefined;
|
|
429
|
+
created_at: string;
|
|
430
|
+
updated_at: string;
|
|
431
|
+
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
428
432
|
mcp_command?: string | null | undefined;
|
|
433
|
+
mcp_args?: string[] | null | undefined;
|
|
434
|
+
mcp_url?: string | null | undefined;
|
|
429
435
|
mcp_headers?: {
|
|
430
436
|
[x: string]: string;
|
|
431
437
|
} | null | undefined;
|
|
432
|
-
mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
|
|
433
|
-
mcp_url?: string | null | undefined;
|
|
434
|
-
name: string;
|
|
435
|
-
protocol: "rest" | "fhir" | "mcp";
|
|
436
|
-
updated_at: string;
|
|
437
|
-
workspace_id: string;
|
|
438
438
|
} & import("../index.js").ResponseMetadata>;
|
|
439
439
|
/** Delete an integration */
|
|
440
440
|
delete(integrationId: IntegrationId | string): Promise<void>;
|
|
@@ -443,14 +443,14 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
|
|
|
443
443
|
* Used in the developer console to validate integration config.
|
|
444
444
|
*/
|
|
445
445
|
testEndpoint(integrationId: IntegrationId | string, endpointName: string, body: components['schemas']['TestEndpointRequest']): Promise<{
|
|
446
|
+
status_code?: number | null | undefined;
|
|
447
|
+
duration_ms?: number | undefined;
|
|
448
|
+
retries?: number | undefined;
|
|
449
|
+
raw_response?: unknown;
|
|
446
450
|
after_filter?: unknown;
|
|
447
451
|
after_mapping?: unknown;
|
|
448
|
-
duration_ms?: number | undefined;
|
|
449
|
-
error?: string | null | undefined;
|
|
450
452
|
final_result?: string | null | undefined;
|
|
451
|
-
|
|
452
|
-
retries?: number | undefined;
|
|
453
|
-
status_code?: number | null | undefined;
|
|
453
|
+
error?: string | null | undefined;
|
|
454
454
|
} & import("../index.js").ResponseMetadata>;
|
|
455
455
|
/** Check health of all integrations in the workspace */
|
|
456
456
|
getHealthCheck(): Promise<{
|