@amigo-ai/platform-sdk 0.56.0 → 0.58.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.
Files changed (67) hide show
  1. package/README.md +72 -6
  2. package/api.md +19 -24
  3. package/dist/core/branded-types.js +1 -0
  4. package/dist/core/branded-types.js.map +1 -1
  5. package/dist/index.cjs +180 -204
  6. package/dist/index.cjs.map +4 -4
  7. package/dist/index.js +9 -4
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +180 -204
  10. package/dist/index.mjs.map +4 -4
  11. package/dist/resources/fhir.js +1 -7
  12. package/dist/resources/fhir.js.map +1 -1
  13. package/dist/resources/integrations.js +66 -34
  14. package/dist/resources/integrations.js.map +1 -1
  15. package/dist/resources/settings.js +1 -19
  16. package/dist/resources/settings.js.map +1 -1
  17. package/dist/resources/tokens.js +31 -0
  18. package/dist/resources/tokens.js.map +1 -0
  19. package/dist/resources/workspace-data-queries.js +41 -0
  20. package/dist/resources/workspace-data-queries.js.map +1 -0
  21. package/dist/resources/world.js +0 -27
  22. package/dist/resources/world.js.map +1 -1
  23. package/dist/types/core/branded-types.d.ts +2 -0
  24. package/dist/types/core/branded-types.d.ts.map +1 -1
  25. package/dist/types/generated/api.d.ts +2825 -3993
  26. package/dist/types/generated/api.d.ts.map +1 -1
  27. package/dist/types/index.d.cts +10 -4
  28. package/dist/types/index.d.cts.map +1 -1
  29. package/dist/types/index.d.ts +10 -4
  30. package/dist/types/index.d.ts.map +1 -1
  31. package/dist/types/resources/actions.d.ts +5 -25
  32. package/dist/types/resources/actions.d.ts.map +1 -1
  33. package/dist/types/resources/base.d.ts +1 -1
  34. package/dist/types/resources/base.d.ts.map +1 -1
  35. package/dist/types/resources/calls.d.ts +17 -5
  36. package/dist/types/resources/calls.d.ts.map +1 -1
  37. package/dist/types/resources/context-graphs.d.ts +16 -0
  38. package/dist/types/resources/context-graphs.d.ts.map +1 -1
  39. package/dist/types/resources/fhir.d.ts +1 -22
  40. package/dist/types/resources/fhir.d.ts.map +1 -1
  41. package/dist/types/resources/intake.d.ts.map +1 -1
  42. package/dist/types/resources/integrations.d.ts +457 -599
  43. package/dist/types/resources/integrations.d.ts.map +1 -1
  44. package/dist/types/resources/metrics.d.ts +7 -3
  45. package/dist/types/resources/metrics.d.ts.map +1 -1
  46. package/dist/types/resources/operators.d.ts +2 -2
  47. package/dist/types/resources/operators.d.ts.map +1 -1
  48. package/dist/types/resources/review-queue.d.ts +11 -11
  49. package/dist/types/resources/services.d.ts +135 -0
  50. package/dist/types/resources/services.d.ts.map +1 -1
  51. package/dist/types/resources/settings.d.ts +7 -145
  52. package/dist/types/resources/settings.d.ts.map +1 -1
  53. package/dist/types/resources/skills.d.ts +5 -25
  54. package/dist/types/resources/skills.d.ts.map +1 -1
  55. package/dist/types/resources/surfaces.d.ts.map +1 -1
  56. package/dist/types/resources/tasks.d.ts +2 -2
  57. package/dist/types/resources/tokens.d.ts +20 -0
  58. package/dist/types/resources/tokens.d.ts.map +1 -0
  59. package/dist/types/resources/workspace-data-queries.d.ts +22 -0
  60. package/dist/types/resources/workspace-data-queries.d.ts.map +1 -0
  61. package/dist/types/resources/world.d.ts +25 -82
  62. package/dist/types/resources/world.d.ts.map +1 -1
  63. package/package.json +1 -1
  64. package/dist/resources/webhook-destinations.js +0 -50
  65. package/dist/resources/webhook-destinations.js.map +0 -1
  66. package/dist/types/resources/webhook-destinations.d.ts +0 -125
  67. package/dist/types/resources/webhook-destinations.d.ts.map +0 -1
@@ -1,683 +1,541 @@
1
1
  import type { components } from '../generated/api.js';
2
- import type { IntegrationId } from '../core/branded-types.js';
2
+ import type { IntegrationId, IntegrationEndpointId } from '../core/branded-types.js';
3
3
  import { WorkspaceScopedResource } from './base.js';
4
4
  import type { ListParams } from '../core/utils.js';
5
5
  export interface ListIntegrationsParams extends ListParams {
6
- protocol?: string;
7
- enabled?: boolean;
8
- search?: string;
6
+ enabled?: boolean | null;
7
+ search?: string | null;
8
+ sort_by?: string[];
9
+ }
10
+ export interface ListEndpointsParams extends ListParams {
11
+ search?: string | null;
12
+ sort_by?: string[];
9
13
  }
10
14
  /**
11
15
  * Manage integrations — connections to external systems (EHRs, CRMs, etc.).
12
- * Integrations power connector data acquisition and skill tool calls.
16
+ *
17
+ * REST integrations carry workspace-level `base_url` + `auth` config. Their
18
+ * endpoints are managed as a separate sub-resource: create the integration
19
+ * first, then add endpoints via `createEndpoint` / `updateEndpoint` /
20
+ * `deleteEndpoint`. Endpoints are identified by UUID (`endpoint_id`); the
21
+ * `name` field is human-facing only.
13
22
  */
14
23
  export declare class IntegrationsResource extends WorkspaceScopedResource {
15
- /** Create a new integration */
16
- create(body: components['schemas']['CreateIntegrationRequest']): Promise<{
24
+ /** Create a new REST integration */
25
+ create(body: components['schemas']['src__routes__integrations__create_integration__Request']): Promise<{
17
26
  auth?: {
18
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
19
- assertion_audience?: string | null | undefined;
20
- assertion_issuer?: string | null | undefined;
21
- assertion_kid?: string | null | undefined;
22
- assertion_scopes_in_jwt?: boolean | undefined;
23
- assertion_subject?: string | null | undefined;
24
- client_id?: string | null | undefined;
25
- client_secret_ssm_param_path?: string | null | undefined;
26
- exchange_default_ttl_seconds?: number | undefined;
27
- exchange_expires_in_field?: string | null | undefined;
28
- exchange_param_headers?: {
29
- consume?: boolean | undefined;
30
- header_name: string;
31
- param_name: string;
32
- required?: boolean | undefined;
33
- }[] | undefined;
34
- exchange_secret_format?: string | undefined;
35
- exchange_secret_header?: string | undefined;
36
- exchange_secret_ssm_param_path?: string | null | undefined;
37
- exchange_token_field?: string | undefined;
38
- exchange_url?: string | null | undefined;
39
- gcp_scopes?: string[] | null | undefined;
40
- header_name?: string | null | undefined;
41
- private_key_ssm_param_path?: string | null | undefined;
42
- scopes?: string[] | null | undefined;
43
- ssm_param_path?: string | null | undefined;
44
- token_lifetime_seconds?: number | undefined;
45
- token_request_client_id_field?: string | null | undefined;
46
- token_request_client_secret_field?: string | null | undefined;
47
- token_response_path?: string | null | undefined;
48
- token_ssm_param_path?: string | null | undefined;
49
- token_url?: string | null | undefined;
50
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
27
+ body_encoding: "json" | "form";
28
+ exchange_url: string;
29
+ param_body_fields: {
30
+ [x: string]: {
31
+ description: string;
32
+ param_name: string;
33
+ };
34
+ };
35
+ param_headers: {
36
+ [x: string]: {
37
+ description: string;
38
+ param_name: string;
39
+ };
40
+ };
41
+ response_token_path: string;
42
+ static_body_fields: {
43
+ [x: string]: string;
44
+ };
45
+ static_headers: {
46
+ [x: string]: string;
47
+ };
48
+ type: "custom_token_exchange";
49
+ } | {
50
+ header_name: string;
51
+ type: "static_header";
52
+ } | {
53
+ client_auth_method: "basic" | "body";
54
+ client_id: string;
55
+ scopes: string[] | null;
56
+ token_url: string;
57
+ type: "oauth2_client_credentials";
58
+ } | {
59
+ assertion_algorithm: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | "ES256" | "ES384" | "ES512";
60
+ assertion_audience: string;
61
+ assertion_issuer: string;
62
+ assertion_lifetime_seconds: number;
63
+ assertion_subject: string;
64
+ extra_claims: {
65
+ [x: string]: unknown;
66
+ };
67
+ include_iat: boolean;
68
+ include_jti: boolean;
69
+ scopes: string[] | null;
70
+ token_url: string;
71
+ type: "oauth2_jwt_bearer";
51
72
  } | null | undefined;
52
- base_url?: string | undefined;
53
- builtin?: boolean | undefined;
73
+ base_url: string;
54
74
  created_at: string;
55
75
  display_name: string;
56
76
  enabled: boolean;
57
- endpoints?: {
58
- auth?: {
59
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
60
- assertion_audience?: string | null | undefined;
61
- assertion_issuer?: string | null | undefined;
62
- assertion_kid?: string | null | undefined;
63
- assertion_scopes_in_jwt?: boolean | undefined;
64
- assertion_subject?: string | null | undefined;
65
- client_id?: string | null | undefined;
66
- client_secret_ssm_param_path?: string | null | undefined;
67
- exchange_default_ttl_seconds?: number | undefined;
68
- exchange_expires_in_field?: string | null | undefined;
69
- exchange_param_headers?: {
70
- consume?: boolean | undefined;
71
- header_name: string;
72
- param_name: string;
73
- required?: boolean | undefined;
74
- }[] | undefined;
75
- exchange_secret_format?: string | undefined;
76
- exchange_secret_header?: string | undefined;
77
- exchange_secret_ssm_param_path?: string | null | undefined;
78
- exchange_token_field?: string | undefined;
79
- exchange_url?: string | null | undefined;
80
- gcp_scopes?: string[] | null | undefined;
81
- header_name?: string | null | undefined;
82
- private_key_ssm_param_path?: string | null | undefined;
83
- scopes?: string[] | null | undefined;
84
- ssm_param_path?: string | null | undefined;
85
- token_lifetime_seconds?: number | undefined;
86
- token_request_client_id_field?: string | null | undefined;
87
- token_request_client_secret_field?: string | null | undefined;
88
- token_response_path?: string | null | undefined;
89
- token_ssm_param_path?: string | null | undefined;
90
- token_url?: string | null | undefined;
91
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
92
- } | null | undefined;
93
- base_url?: string | null | undefined;
94
- body_format?: "json" | "form" | undefined;
95
- description: string;
96
- headers?: {
97
- [x: string]: string;
98
- } | undefined;
99
- input_schema?: {
100
- [x: string]: unknown;
101
- } | undefined;
102
- max_result_length?: number | undefined;
103
- method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
104
- name: string;
105
- path: string;
106
- request_transform?: {
107
- inject?: {
108
- [x: string]: string;
109
- } | undefined;
110
- wrap_params_key?: string | null | undefined;
111
- } | null | undefined;
112
- response_filter?: string[] | null | undefined;
113
- response_mapping?: {
114
- [x: string]: string;
115
- } | null | undefined;
116
- result_delivery?: "interrupt" | "queue" | undefined;
117
- result_key?: string | null | undefined;
118
- result_template?: string | null | undefined;
119
- retry_config?: {
120
- max_retries?: number | undefined;
121
- retry_on_status?: number[] | undefined;
122
- } | undefined;
123
- }[] | undefined;
77
+ endpoint_count: number;
124
78
  id: string;
125
- last_test_status?: ("healthy" | "auth_failed" | "unreachable" | "timeout" | "ssl_error" | "misconfigured") | null | undefined;
126
- last_tested_at?: string | null | undefined;
127
- mcp_args?: string[] | null | undefined;
128
- mcp_command?: string | null | undefined;
129
- mcp_headers?: {
130
- [x: string]: string;
131
- } | null | undefined;
132
- mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
133
- mcp_url?: string | null | undefined;
79
+ kind: "rest";
134
80
  name: string;
135
- protocol: "rest" | "fhir" | "mcp" | "desktop";
136
81
  updated_at: string;
137
82
  workspace_id: string;
138
83
  } & import("../index.js").ResponseMetadata>;
139
- /** List integrations */
84
+ /** List integrations (REST + desktop) */
140
85
  list(params?: ListIntegrationsParams): Promise<{
141
- continuation_token?: number | null | undefined;
86
+ continuation_token?: unknown;
142
87
  has_more: boolean;
143
- items: {
88
+ items: ({
144
89
  auth?: {
145
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
146
- assertion_audience?: string | null | undefined;
147
- assertion_issuer?: string | null | undefined;
148
- assertion_kid?: string | null | undefined;
149
- assertion_scopes_in_jwt?: boolean | undefined;
150
- assertion_subject?: string | null | undefined;
151
- client_id?: string | null | undefined;
152
- client_secret_ssm_param_path?: string | null | undefined;
153
- exchange_default_ttl_seconds?: number | undefined;
154
- exchange_expires_in_field?: string | null | undefined;
155
- exchange_param_headers?: {
156
- consume?: boolean | undefined;
157
- header_name: string;
158
- param_name: string;
159
- required?: boolean | undefined;
160
- }[] | undefined;
161
- exchange_secret_format?: string | undefined;
162
- exchange_secret_header?: string | undefined;
163
- exchange_secret_ssm_param_path?: string | null | undefined;
164
- exchange_token_field?: string | undefined;
165
- exchange_url?: string | null | undefined;
166
- gcp_scopes?: string[] | null | undefined;
167
- header_name?: string | null | undefined;
168
- private_key_ssm_param_path?: string | null | undefined;
169
- scopes?: string[] | null | undefined;
170
- ssm_param_path?: string | null | undefined;
171
- token_lifetime_seconds?: number | undefined;
172
- token_request_client_id_field?: string | null | undefined;
173
- token_request_client_secret_field?: string | null | undefined;
174
- token_response_path?: string | null | undefined;
175
- token_ssm_param_path?: string | null | undefined;
176
- token_url?: string | null | undefined;
177
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
90
+ body_encoding: "json" | "form";
91
+ exchange_url: string;
92
+ param_body_fields: {
93
+ [x: string]: {
94
+ description: string;
95
+ param_name: string;
96
+ };
97
+ };
98
+ param_headers: {
99
+ [x: string]: {
100
+ description: string;
101
+ param_name: string;
102
+ };
103
+ };
104
+ response_token_path: string;
105
+ static_body_fields: {
106
+ [x: string]: string;
107
+ };
108
+ static_headers: {
109
+ [x: string]: string;
110
+ };
111
+ type: "custom_token_exchange";
112
+ } | {
113
+ header_name: string;
114
+ type: "static_header";
115
+ } | {
116
+ client_auth_method: "basic" | "body";
117
+ client_id: string;
118
+ scopes: string[] | null;
119
+ token_url: string;
120
+ type: "oauth2_client_credentials";
121
+ } | {
122
+ assertion_algorithm: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | "ES256" | "ES384" | "ES512";
123
+ assertion_audience: string;
124
+ assertion_issuer: string;
125
+ assertion_lifetime_seconds: number;
126
+ assertion_subject: string;
127
+ extra_claims: {
128
+ [x: string]: unknown;
129
+ };
130
+ include_iat: boolean;
131
+ include_jti: boolean;
132
+ scopes: string[] | null;
133
+ token_url: string;
134
+ type: "oauth2_jwt_bearer";
178
135
  } | null | undefined;
179
- base_url?: string | undefined;
180
- builtin?: boolean | undefined;
136
+ base_url: string;
181
137
  created_at: string;
182
138
  display_name: string;
183
139
  enabled: boolean;
184
- endpoints?: {
185
- auth?: {
186
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
187
- assertion_audience?: string | null | undefined;
188
- assertion_issuer?: string | null | undefined;
189
- assertion_kid?: string | null | undefined;
190
- assertion_scopes_in_jwt?: boolean | undefined;
191
- assertion_subject?: string | null | undefined;
192
- client_id?: string | null | undefined;
193
- client_secret_ssm_param_path?: string | null | undefined;
194
- exchange_default_ttl_seconds?: number | undefined;
195
- exchange_expires_in_field?: string | null | undefined;
196
- exchange_param_headers?: {
197
- consume?: boolean | undefined;
198
- header_name: string;
199
- param_name: string;
200
- required?: boolean | undefined;
201
- }[] | undefined;
202
- exchange_secret_format?: string | undefined;
203
- exchange_secret_header?: string | undefined;
204
- exchange_secret_ssm_param_path?: string | null | undefined;
205
- exchange_token_field?: string | undefined;
206
- exchange_url?: string | null | undefined;
207
- gcp_scopes?: string[] | null | undefined;
208
- header_name?: string | null | undefined;
209
- private_key_ssm_param_path?: string | null | undefined;
210
- scopes?: string[] | null | undefined;
211
- ssm_param_path?: string | null | undefined;
212
- token_lifetime_seconds?: number | undefined;
213
- token_request_client_id_field?: string | null | undefined;
214
- token_request_client_secret_field?: string | null | undefined;
215
- token_response_path?: string | null | undefined;
216
- token_ssm_param_path?: string | null | undefined;
217
- token_url?: string | null | undefined;
218
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
219
- } | null | undefined;
220
- base_url?: string | null | undefined;
221
- body_format?: "json" | "form" | undefined;
222
- description: string;
223
- headers?: {
224
- [x: string]: string;
225
- } | undefined;
226
- input_schema?: {
227
- [x: string]: unknown;
228
- } | undefined;
229
- max_result_length?: number | undefined;
230
- method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
231
- name: string;
232
- path: string;
233
- request_transform?: {
234
- inject?: {
235
- [x: string]: string;
236
- } | undefined;
237
- wrap_params_key?: string | null | undefined;
238
- } | null | undefined;
239
- response_filter?: string[] | null | undefined;
240
- response_mapping?: {
241
- [x: string]: string;
242
- } | null | undefined;
243
- result_delivery?: "interrupt" | "queue" | undefined;
244
- result_key?: string | null | undefined;
245
- result_template?: string | null | undefined;
246
- retry_config?: {
247
- max_retries?: number | undefined;
248
- retry_on_status?: number[] | undefined;
249
- } | undefined;
250
- }[] | undefined;
140
+ endpoint_count: number;
251
141
  id: string;
252
- last_test_status?: ("healthy" | "auth_failed" | "unreachable" | "timeout" | "ssl_error" | "misconfigured") | null | undefined;
253
- last_tested_at?: string | null | undefined;
254
- mcp_args?: string[] | null | undefined;
255
- mcp_command?: string | null | undefined;
256
- mcp_headers?: {
257
- [x: string]: string;
258
- } | null | undefined;
259
- mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
260
- mcp_url?: string | null | undefined;
142
+ kind: "rest";
261
143
  name: string;
262
- protocol: "rest" | "fhir" | "mcp" | "desktop";
263
144
  updated_at: string;
264
145
  workspace_id: string;
265
- }[];
266
- total?: number | null | undefined;
146
+ } | {
147
+ created_at: string;
148
+ desktop_allowed_domains: string[];
149
+ desktop_display_height: number;
150
+ desktop_display_width: number;
151
+ desktop_gateway_host: string | null;
152
+ desktop_gateway_password_ssm_path: string | null;
153
+ desktop_gateway_user_ssm_path: string | null;
154
+ desktop_host: string | null;
155
+ desktop_load_balance_info: string | null;
156
+ desktop_password_ssm_path: string | null;
157
+ desktop_port: number | null;
158
+ desktop_rdp_file: string | null;
159
+ desktop_remote_app: string | null;
160
+ desktop_remote_app_cmd: string | null;
161
+ desktop_security: ("nla" | "tls" | "rdp") | null;
162
+ desktop_start_url: string | null;
163
+ desktop_type: "rdp" | "vnc" | "browser";
164
+ desktop_username_ssm_path: string | null;
165
+ display_name: string;
166
+ enabled: boolean;
167
+ id: string;
168
+ kind: "desktop";
169
+ name: string;
170
+ updated_at: string;
171
+ workspace_id: string;
172
+ })[];
267
173
  } & import("../index.js").ResponseMetadata>;
268
174
  listAutoPaging(params?: ListIntegrationsParams): AsyncGenerator<{
269
175
  auth?: {
270
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
271
- assertion_audience?: string | null | undefined;
272
- assertion_issuer?: string | null | undefined;
273
- assertion_kid?: string | null | undefined;
274
- assertion_scopes_in_jwt?: boolean | undefined;
275
- assertion_subject?: string | null | undefined;
276
- client_id?: string | null | undefined;
277
- client_secret_ssm_param_path?: string | null | undefined;
278
- exchange_default_ttl_seconds?: number | undefined;
279
- exchange_expires_in_field?: string | null | undefined;
280
- exchange_param_headers?: {
281
- consume?: boolean | undefined;
282
- header_name: string;
283
- param_name: string;
284
- required?: boolean | undefined;
285
- }[] | undefined;
286
- exchange_secret_format?: string | undefined;
287
- exchange_secret_header?: string | undefined;
288
- exchange_secret_ssm_param_path?: string | null | undefined;
289
- exchange_token_field?: string | undefined;
290
- exchange_url?: string | null | undefined;
291
- gcp_scopes?: string[] | null | undefined;
292
- header_name?: string | null | undefined;
293
- private_key_ssm_param_path?: string | null | undefined;
294
- scopes?: string[] | null | undefined;
295
- ssm_param_path?: string | null | undefined;
296
- token_lifetime_seconds?: number | undefined;
297
- token_request_client_id_field?: string | null | undefined;
298
- token_request_client_secret_field?: string | null | undefined;
299
- token_response_path?: string | null | undefined;
300
- token_ssm_param_path?: string | null | undefined;
301
- token_url?: string | null | undefined;
302
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
176
+ body_encoding: "json" | "form";
177
+ exchange_url: string;
178
+ param_body_fields: {
179
+ [x: string]: {
180
+ description: string;
181
+ param_name: string;
182
+ };
183
+ };
184
+ param_headers: {
185
+ [x: string]: {
186
+ description: string;
187
+ param_name: string;
188
+ };
189
+ };
190
+ response_token_path: string;
191
+ static_body_fields: {
192
+ [x: string]: string;
193
+ };
194
+ static_headers: {
195
+ [x: string]: string;
196
+ };
197
+ type: "custom_token_exchange";
198
+ } | {
199
+ header_name: string;
200
+ type: "static_header";
201
+ } | {
202
+ client_auth_method: "basic" | "body";
203
+ client_id: string;
204
+ scopes: string[] | null;
205
+ token_url: string;
206
+ type: "oauth2_client_credentials";
207
+ } | {
208
+ assertion_algorithm: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | "ES256" | "ES384" | "ES512";
209
+ assertion_audience: string;
210
+ assertion_issuer: string;
211
+ assertion_lifetime_seconds: number;
212
+ assertion_subject: string;
213
+ extra_claims: {
214
+ [x: string]: unknown;
215
+ };
216
+ include_iat: boolean;
217
+ include_jti: boolean;
218
+ scopes: string[] | null;
219
+ token_url: string;
220
+ type: "oauth2_jwt_bearer";
303
221
  } | null | undefined;
304
- base_url?: string | undefined;
305
- builtin?: boolean | undefined;
222
+ base_url: string;
306
223
  created_at: string;
307
224
  display_name: string;
308
225
  enabled: boolean;
309
- endpoints?: {
310
- auth?: {
311
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
312
- assertion_audience?: string | null | undefined;
313
- assertion_issuer?: string | null | undefined;
314
- assertion_kid?: string | null | undefined;
315
- assertion_scopes_in_jwt?: boolean | undefined;
316
- assertion_subject?: string | null | undefined;
317
- client_id?: string | null | undefined;
318
- client_secret_ssm_param_path?: string | null | undefined;
319
- exchange_default_ttl_seconds?: number | undefined;
320
- exchange_expires_in_field?: string | null | undefined;
321
- exchange_param_headers?: {
322
- consume?: boolean | undefined;
323
- header_name: string;
324
- param_name: string;
325
- required?: boolean | undefined;
326
- }[] | undefined;
327
- exchange_secret_format?: string | undefined;
328
- exchange_secret_header?: string | undefined;
329
- exchange_secret_ssm_param_path?: string | null | undefined;
330
- exchange_token_field?: string | undefined;
331
- exchange_url?: string | null | undefined;
332
- gcp_scopes?: string[] | null | undefined;
333
- header_name?: string | null | undefined;
334
- private_key_ssm_param_path?: string | null | undefined;
335
- scopes?: string[] | null | undefined;
336
- ssm_param_path?: string | null | undefined;
337
- token_lifetime_seconds?: number | undefined;
338
- token_request_client_id_field?: string | null | undefined;
339
- token_request_client_secret_field?: string | null | undefined;
340
- token_response_path?: string | null | undefined;
341
- token_ssm_param_path?: string | null | undefined;
342
- token_url?: string | null | undefined;
343
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
344
- } | null | undefined;
345
- base_url?: string | null | undefined;
346
- body_format?: "json" | "form" | undefined;
347
- description: string;
348
- headers?: {
349
- [x: string]: string;
350
- } | undefined;
351
- input_schema?: {
352
- [x: string]: unknown;
353
- } | undefined;
354
- max_result_length?: number | undefined;
355
- method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
356
- name: string;
357
- path: string;
358
- request_transform?: {
359
- inject?: {
360
- [x: string]: string;
361
- } | undefined;
362
- wrap_params_key?: string | null | undefined;
363
- } | null | undefined;
364
- response_filter?: string[] | null | undefined;
365
- response_mapping?: {
366
- [x: string]: string;
367
- } | null | undefined;
368
- result_delivery?: "interrupt" | "queue" | undefined;
369
- result_key?: string | null | undefined;
370
- result_template?: string | null | undefined;
371
- retry_config?: {
372
- max_retries?: number | undefined;
373
- retry_on_status?: number[] | undefined;
374
- } | undefined;
375
- }[] | undefined;
226
+ endpoint_count: number;
376
227
  id: string;
377
- last_test_status?: ("healthy" | "auth_failed" | "unreachable" | "timeout" | "ssl_error" | "misconfigured") | null | undefined;
378
- last_tested_at?: string | null | undefined;
379
- mcp_args?: string[] | null | undefined;
380
- mcp_command?: string | null | undefined;
381
- mcp_headers?: {
382
- [x: string]: string;
383
- } | null | undefined;
384
- mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
385
- mcp_url?: string | null | undefined;
228
+ kind: "rest";
229
+ name: string;
230
+ updated_at: string;
231
+ workspace_id: string;
232
+ } | {
233
+ created_at: string;
234
+ desktop_allowed_domains: string[];
235
+ desktop_display_height: number;
236
+ desktop_display_width: number;
237
+ desktop_gateway_host: string | null;
238
+ desktop_gateway_password_ssm_path: string | null;
239
+ desktop_gateway_user_ssm_path: string | null;
240
+ desktop_host: string | null;
241
+ desktop_load_balance_info: string | null;
242
+ desktop_password_ssm_path: string | null;
243
+ desktop_port: number | null;
244
+ desktop_rdp_file: string | null;
245
+ desktop_remote_app: string | null;
246
+ desktop_remote_app_cmd: string | null;
247
+ desktop_security: ("nla" | "tls" | "rdp") | null;
248
+ desktop_start_url: string | null;
249
+ desktop_type: "rdp" | "vnc" | "browser";
250
+ desktop_username_ssm_path: string | null;
251
+ display_name: string;
252
+ enabled: boolean;
253
+ id: string;
254
+ kind: "desktop";
386
255
  name: string;
387
- protocol: "rest" | "fhir" | "mcp" | "desktop";
388
256
  updated_at: string;
389
257
  workspace_id: string;
390
258
  }, any, any>;
391
259
  /** Get a single integration */
392
- get(integrationId: IntegrationId | string): Promise<{
260
+ get(integrationId: IntegrationId | string): Promise<({
393
261
  auth?: {
394
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
395
- assertion_audience?: string | null | undefined;
396
- assertion_issuer?: string | null | undefined;
397
- assertion_kid?: string | null | undefined;
398
- assertion_scopes_in_jwt?: boolean | undefined;
399
- assertion_subject?: string | null | undefined;
400
- client_id?: string | null | undefined;
401
- client_secret_ssm_param_path?: string | null | undefined;
402
- exchange_default_ttl_seconds?: number | undefined;
403
- exchange_expires_in_field?: string | null | undefined;
404
- exchange_param_headers?: {
405
- consume?: boolean | undefined;
406
- header_name: string;
407
- param_name: string;
408
- required?: boolean | undefined;
409
- }[] | undefined;
410
- exchange_secret_format?: string | undefined;
411
- exchange_secret_header?: string | undefined;
412
- exchange_secret_ssm_param_path?: string | null | undefined;
413
- exchange_token_field?: string | undefined;
414
- exchange_url?: string | null | undefined;
415
- gcp_scopes?: string[] | null | undefined;
416
- header_name?: string | null | undefined;
417
- private_key_ssm_param_path?: string | null | undefined;
418
- scopes?: string[] | null | undefined;
419
- ssm_param_path?: string | null | undefined;
420
- token_lifetime_seconds?: number | undefined;
421
- token_request_client_id_field?: string | null | undefined;
422
- token_request_client_secret_field?: string | null | undefined;
423
- token_response_path?: string | null | undefined;
424
- token_ssm_param_path?: string | null | undefined;
425
- token_url?: string | null | undefined;
426
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
262
+ body_encoding: "json" | "form";
263
+ exchange_url: string;
264
+ param_body_fields: {
265
+ [x: string]: {
266
+ description: string;
267
+ param_name: string;
268
+ };
269
+ };
270
+ param_headers: {
271
+ [x: string]: {
272
+ description: string;
273
+ param_name: string;
274
+ };
275
+ };
276
+ response_token_path: string;
277
+ static_body_fields: {
278
+ [x: string]: string;
279
+ };
280
+ static_headers: {
281
+ [x: string]: string;
282
+ };
283
+ type: "custom_token_exchange";
284
+ } | {
285
+ header_name: string;
286
+ type: "static_header";
287
+ } | {
288
+ client_auth_method: "basic" | "body";
289
+ client_id: string;
290
+ scopes: string[] | null;
291
+ token_url: string;
292
+ type: "oauth2_client_credentials";
293
+ } | {
294
+ assertion_algorithm: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | "ES256" | "ES384" | "ES512";
295
+ assertion_audience: string;
296
+ assertion_issuer: string;
297
+ assertion_lifetime_seconds: number;
298
+ assertion_subject: string;
299
+ extra_claims: {
300
+ [x: string]: unknown;
301
+ };
302
+ include_iat: boolean;
303
+ include_jti: boolean;
304
+ scopes: string[] | null;
305
+ token_url: string;
306
+ type: "oauth2_jwt_bearer";
427
307
  } | null | undefined;
428
- base_url?: string | undefined;
429
- builtin?: boolean | undefined;
308
+ base_url: string;
430
309
  created_at: string;
431
310
  display_name: string;
432
311
  enabled: boolean;
433
- endpoints?: {
434
- auth?: {
435
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
436
- assertion_audience?: string | null | undefined;
437
- assertion_issuer?: string | null | undefined;
438
- assertion_kid?: string | null | undefined;
439
- assertion_scopes_in_jwt?: boolean | undefined;
440
- assertion_subject?: string | null | undefined;
441
- client_id?: string | null | undefined;
442
- client_secret_ssm_param_path?: string | null | undefined;
443
- exchange_default_ttl_seconds?: number | undefined;
444
- exchange_expires_in_field?: string | null | undefined;
445
- exchange_param_headers?: {
446
- consume?: boolean | undefined;
447
- header_name: string;
448
- param_name: string;
449
- required?: boolean | undefined;
450
- }[] | undefined;
451
- exchange_secret_format?: string | undefined;
452
- exchange_secret_header?: string | undefined;
453
- exchange_secret_ssm_param_path?: string | null | undefined;
454
- exchange_token_field?: string | undefined;
455
- exchange_url?: string | null | undefined;
456
- gcp_scopes?: string[] | null | undefined;
457
- header_name?: string | null | undefined;
458
- private_key_ssm_param_path?: string | null | undefined;
459
- scopes?: string[] | null | undefined;
460
- ssm_param_path?: string | null | undefined;
461
- token_lifetime_seconds?: number | undefined;
462
- token_request_client_id_field?: string | null | undefined;
463
- token_request_client_secret_field?: string | null | undefined;
464
- token_response_path?: string | null | undefined;
465
- token_ssm_param_path?: string | null | undefined;
466
- token_url?: string | null | undefined;
467
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
468
- } | null | undefined;
469
- base_url?: string | null | undefined;
470
- body_format?: "json" | "form" | undefined;
471
- description: string;
472
- headers?: {
473
- [x: string]: string;
474
- } | undefined;
475
- input_schema?: {
476
- [x: string]: unknown;
477
- } | undefined;
478
- max_result_length?: number | undefined;
479
- method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
480
- name: string;
481
- path: string;
482
- request_transform?: {
483
- inject?: {
484
- [x: string]: string;
485
- } | undefined;
486
- wrap_params_key?: string | null | undefined;
487
- } | null | undefined;
488
- response_filter?: string[] | null | undefined;
489
- response_mapping?: {
490
- [x: string]: string;
491
- } | null | undefined;
492
- result_delivery?: "interrupt" | "queue" | undefined;
493
- result_key?: string | null | undefined;
494
- result_template?: string | null | undefined;
495
- retry_config?: {
496
- max_retries?: number | undefined;
497
- retry_on_status?: number[] | undefined;
498
- } | undefined;
499
- }[] | undefined;
312
+ endpoint_count: number;
500
313
  id: string;
501
- last_test_status?: ("healthy" | "auth_failed" | "unreachable" | "timeout" | "ssl_error" | "misconfigured") | null | undefined;
502
- last_tested_at?: string | null | undefined;
503
- mcp_args?: string[] | null | undefined;
504
- mcp_command?: string | null | undefined;
505
- mcp_headers?: {
506
- [x: string]: string;
507
- } | null | undefined;
508
- mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
509
- mcp_url?: string | null | undefined;
314
+ kind: "rest";
510
315
  name: string;
511
- protocol: "rest" | "fhir" | "mcp" | "desktop";
512
316
  updated_at: string;
513
317
  workspace_id: string;
514
- } & import("../index.js").ResponseMetadata>;
515
- /** Update integration configuration */
516
- update(integrationId: IntegrationId | string, body: components['schemas']['UpdateIntegrationRequest']): Promise<{
318
+ } & import("../index.js").ResponseMetadata) | ({
319
+ created_at: string;
320
+ desktop_allowed_domains: string[];
321
+ desktop_display_height: number;
322
+ desktop_display_width: number;
323
+ desktop_gateway_host: string | null;
324
+ desktop_gateway_password_ssm_path: string | null;
325
+ desktop_gateway_user_ssm_path: string | null;
326
+ desktop_host: string | null;
327
+ desktop_load_balance_info: string | null;
328
+ desktop_password_ssm_path: string | null;
329
+ desktop_port: number | null;
330
+ desktop_rdp_file: string | null;
331
+ desktop_remote_app: string | null;
332
+ desktop_remote_app_cmd: string | null;
333
+ desktop_security: ("nla" | "tls" | "rdp") | null;
334
+ desktop_start_url: string | null;
335
+ desktop_type: "rdp" | "vnc" | "browser";
336
+ desktop_username_ssm_path: string | null;
337
+ display_name: string;
338
+ enabled: boolean;
339
+ id: string;
340
+ kind: "desktop";
341
+ name: string;
342
+ updated_at: string;
343
+ workspace_id: string;
344
+ } & import("../index.js").ResponseMetadata)>;
345
+ /** Patch a REST integration. Pass `auth: null` to clear auth. */
346
+ update(integrationId: IntegrationId | string, body: components['schemas']['src__routes__integrations__update_integration__Request']): Promise<{
517
347
  auth?: {
518
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
519
- assertion_audience?: string | null | undefined;
520
- assertion_issuer?: string | null | undefined;
521
- assertion_kid?: string | null | undefined;
522
- assertion_scopes_in_jwt?: boolean | undefined;
523
- assertion_subject?: string | null | undefined;
524
- client_id?: string | null | undefined;
525
- client_secret_ssm_param_path?: string | null | undefined;
526
- exchange_default_ttl_seconds?: number | undefined;
527
- exchange_expires_in_field?: string | null | undefined;
528
- exchange_param_headers?: {
529
- consume?: boolean | undefined;
530
- header_name: string;
531
- param_name: string;
532
- required?: boolean | undefined;
533
- }[] | undefined;
534
- exchange_secret_format?: string | undefined;
535
- exchange_secret_header?: string | undefined;
536
- exchange_secret_ssm_param_path?: string | null | undefined;
537
- exchange_token_field?: string | undefined;
538
- exchange_url?: string | null | undefined;
539
- gcp_scopes?: string[] | null | undefined;
540
- header_name?: string | null | undefined;
541
- private_key_ssm_param_path?: string | null | undefined;
542
- scopes?: string[] | null | undefined;
543
- ssm_param_path?: string | null | undefined;
544
- token_lifetime_seconds?: number | undefined;
545
- token_request_client_id_field?: string | null | undefined;
546
- token_request_client_secret_field?: string | null | undefined;
547
- token_response_path?: string | null | undefined;
548
- token_ssm_param_path?: string | null | undefined;
549
- token_url?: string | null | undefined;
550
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
348
+ body_encoding: "json" | "form";
349
+ exchange_url: string;
350
+ param_body_fields: {
351
+ [x: string]: {
352
+ description: string;
353
+ param_name: string;
354
+ };
355
+ };
356
+ param_headers: {
357
+ [x: string]: {
358
+ description: string;
359
+ param_name: string;
360
+ };
361
+ };
362
+ response_token_path: string;
363
+ static_body_fields: {
364
+ [x: string]: string;
365
+ };
366
+ static_headers: {
367
+ [x: string]: string;
368
+ };
369
+ type: "custom_token_exchange";
370
+ } | {
371
+ header_name: string;
372
+ type: "static_header";
373
+ } | {
374
+ client_auth_method: "basic" | "body";
375
+ client_id: string;
376
+ scopes: string[] | null;
377
+ token_url: string;
378
+ type: "oauth2_client_credentials";
379
+ } | {
380
+ assertion_algorithm: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | "ES256" | "ES384" | "ES512";
381
+ assertion_audience: string;
382
+ assertion_issuer: string;
383
+ assertion_lifetime_seconds: number;
384
+ assertion_subject: string;
385
+ extra_claims: {
386
+ [x: string]: unknown;
387
+ };
388
+ include_iat: boolean;
389
+ include_jti: boolean;
390
+ scopes: string[] | null;
391
+ token_url: string;
392
+ type: "oauth2_jwt_bearer";
551
393
  } | null | undefined;
552
- base_url?: string | undefined;
553
- builtin?: boolean | undefined;
394
+ base_url: string;
554
395
  created_at: string;
555
396
  display_name: string;
556
397
  enabled: boolean;
557
- endpoints?: {
558
- auth?: {
559
- assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
560
- assertion_audience?: string | null | undefined;
561
- assertion_issuer?: string | null | undefined;
562
- assertion_kid?: string | null | undefined;
563
- assertion_scopes_in_jwt?: boolean | undefined;
564
- assertion_subject?: string | null | undefined;
565
- client_id?: string | null | undefined;
566
- client_secret_ssm_param_path?: string | null | undefined;
567
- exchange_default_ttl_seconds?: number | undefined;
568
- exchange_expires_in_field?: string | null | undefined;
569
- exchange_param_headers?: {
570
- consume?: boolean | undefined;
571
- header_name: string;
572
- param_name: string;
573
- required?: boolean | undefined;
574
- }[] | undefined;
575
- exchange_secret_format?: string | undefined;
576
- exchange_secret_header?: string | undefined;
577
- exchange_secret_ssm_param_path?: string | null | undefined;
578
- exchange_token_field?: string | undefined;
579
- exchange_url?: string | null | undefined;
580
- gcp_scopes?: string[] | null | undefined;
581
- header_name?: string | null | undefined;
582
- private_key_ssm_param_path?: string | null | undefined;
583
- scopes?: string[] | null | undefined;
584
- ssm_param_path?: string | null | undefined;
585
- token_lifetime_seconds?: number | undefined;
586
- token_request_client_id_field?: string | null | undefined;
587
- token_request_client_secret_field?: string | null | undefined;
588
- token_response_path?: string | null | undefined;
589
- token_ssm_param_path?: string | null | undefined;
590
- token_url?: string | null | undefined;
591
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "json_token_exchange" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
592
- } | null | undefined;
593
- base_url?: string | null | undefined;
398
+ endpoint_count: number;
399
+ id: string;
400
+ kind: "rest";
401
+ name: string;
402
+ updated_at: string;
403
+ workspace_id: string;
404
+ } & import("../index.js").ResponseMetadata>;
405
+ /** Delete a REST integration */
406
+ delete(integrationId: IntegrationId | string): Promise<void>;
407
+ /** List endpoints on a REST integration */
408
+ listEndpoints(integrationId: IntegrationId | string, params?: ListEndpointsParams): Promise<{
409
+ continuation_token?: unknown;
410
+ has_more: boolean;
411
+ items: {
594
412
  body_format?: "json" | "form" | undefined;
595
413
  description: string;
596
414
  headers?: {
597
415
  [x: string]: string;
598
416
  } | undefined;
417
+ id: string;
599
418
  input_schema?: {
600
419
  [x: string]: unknown;
601
420
  } | undefined;
602
- max_result_length?: number | undefined;
603
- method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
421
+ max_response_length?: number | undefined;
422
+ max_retries?: number | undefined;
423
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
604
424
  name: string;
605
425
  path: string;
606
- request_transform?: {
607
- inject?: {
608
- [x: string]: string;
609
- } | undefined;
610
- wrap_params_key?: string | null | undefined;
611
- } | null | undefined;
612
- response_filter?: string[] | null | undefined;
613
- response_mapping?: {
426
+ response_template?: string | null | undefined;
427
+ retry_on_status?: number[] | undefined;
428
+ static_body_fields?: {
614
429
  [x: string]: string;
615
- } | null | undefined;
616
- result_delivery?: "interrupt" | "queue" | undefined;
617
- result_key?: string | null | undefined;
618
- result_template?: string | null | undefined;
619
- retry_config?: {
620
- max_retries?: number | undefined;
621
- retry_on_status?: number[] | undefined;
622
430
  } | undefined;
623
- }[] | undefined;
431
+ timeout_seconds?: number | undefined;
432
+ }[];
433
+ } & import("../index.js").ResponseMetadata>;
434
+ listEndpointsAutoPaging(integrationId: IntegrationId | string, params?: ListEndpointsParams): AsyncGenerator<{
435
+ body_format?: "json" | "form" | undefined;
436
+ description: string;
437
+ headers?: {
438
+ [x: string]: string;
439
+ } | undefined;
624
440
  id: string;
625
- last_test_status?: ("healthy" | "auth_failed" | "unreachable" | "timeout" | "ssl_error" | "misconfigured") | null | undefined;
626
- last_tested_at?: string | null | undefined;
627
- mcp_args?: string[] | null | undefined;
628
- mcp_command?: string | null | undefined;
629
- mcp_headers?: {
441
+ input_schema?: {
442
+ [x: string]: unknown;
443
+ } | undefined;
444
+ max_response_length?: number | undefined;
445
+ max_retries?: number | undefined;
446
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
447
+ name: string;
448
+ path: string;
449
+ response_template?: string | null | undefined;
450
+ retry_on_status?: number[] | undefined;
451
+ static_body_fields?: {
630
452
  [x: string]: string;
631
- } | null | undefined;
632
- mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
633
- mcp_url?: string | null | undefined;
453
+ } | undefined;
454
+ timeout_seconds?: number | undefined;
455
+ }, any, any>;
456
+ /** Get a single endpoint */
457
+ getEndpoint(integrationId: IntegrationId | string, endpointId: IntegrationEndpointId | string): Promise<{
458
+ body_format?: "json" | "form" | undefined;
459
+ description: string;
460
+ headers?: {
461
+ [x: string]: string;
462
+ } | undefined;
463
+ id: string;
464
+ input_schema?: {
465
+ [x: string]: unknown;
466
+ } | undefined;
467
+ max_response_length?: number | undefined;
468
+ max_retries?: number | undefined;
469
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
634
470
  name: string;
635
- protocol: "rest" | "fhir" | "mcp" | "desktop";
636
- updated_at: string;
637
- workspace_id: string;
471
+ path: string;
472
+ response_template?: string | null | undefined;
473
+ retry_on_status?: number[] | undefined;
474
+ static_body_fields?: {
475
+ [x: string]: string;
476
+ } | undefined;
477
+ timeout_seconds?: number | undefined;
638
478
  } & import("../index.js").ResponseMetadata>;
639
- /** Delete an integration */
640
- delete(integrationId: IntegrationId | string): Promise<void>;
479
+ /** Add an endpoint to a REST integration */
480
+ createEndpoint(integrationId: IntegrationId | string, body: components['schemas']['src__routes__integrations__create_endpoint__Request']): Promise<{
481
+ body_format?: "json" | "form" | undefined;
482
+ description: string;
483
+ headers?: {
484
+ [x: string]: string;
485
+ } | undefined;
486
+ id: string;
487
+ input_schema?: {
488
+ [x: string]: unknown;
489
+ } | undefined;
490
+ max_response_length?: number | undefined;
491
+ max_retries?: number | undefined;
492
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
493
+ name: string;
494
+ path: string;
495
+ response_template?: string | null | undefined;
496
+ retry_on_status?: number[] | undefined;
497
+ static_body_fields?: {
498
+ [x: string]: string;
499
+ } | undefined;
500
+ timeout_seconds?: number | undefined;
501
+ } & import("../index.js").ResponseMetadata>;
502
+ /** Patch an endpoint. The endpoint `name` is immutable. */
503
+ updateEndpoint(integrationId: IntegrationId | string, endpointId: IntegrationEndpointId | string, body: components['schemas']['src__routes__integrations__update_endpoint__Request']): Promise<{
504
+ body_format?: "json" | "form" | undefined;
505
+ description: string;
506
+ headers?: {
507
+ [x: string]: string;
508
+ } | undefined;
509
+ id: string;
510
+ input_schema?: {
511
+ [x: string]: unknown;
512
+ } | undefined;
513
+ max_response_length?: number | undefined;
514
+ max_retries?: number | undefined;
515
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
516
+ name: string;
517
+ path: string;
518
+ response_template?: string | null | undefined;
519
+ retry_on_status?: number[] | undefined;
520
+ static_body_fields?: {
521
+ [x: string]: string;
522
+ } | undefined;
523
+ timeout_seconds?: number | undefined;
524
+ } & import("../index.js").ResponseMetadata>;
525
+ /** Delete an endpoint from a REST integration */
526
+ deleteEndpoint(integrationId: IntegrationId | string, endpointId: IntegrationEndpointId | string): Promise<void>;
641
527
  /**
642
- * Test a specific endpoint on an integration with given params.
643
- * Used in the developer console to validate integration config.
528
+ * Execute an endpoint with test parameters and return the full response
529
+ * pipeline breakdown. Used by the developer console to validate config.
644
530
  */
645
- testEndpoint(integrationId: IntegrationId | string, endpointName: string, body: components['schemas']['TestEndpointRequest']): Promise<{
646
- after_filter?: unknown;
647
- after_mapping?: unknown;
531
+ testEndpoint(integrationId: IntegrationId | string, endpointId: IntegrationEndpointId | string, body: components['schemas']['src__routes__integrations__test_endpoint__Request']): Promise<{
648
532
  duration_ms?: number | undefined;
649
533
  error?: string | null | undefined;
650
534
  final_result?: string | null | undefined;
651
535
  raw_response?: unknown;
536
+ rendered?: string | null | undefined;
652
537
  retries?: number | undefined;
653
538
  status_code?: number | null | undefined;
654
539
  } & import("../index.js").ResponseMetadata>;
655
- /**
656
- * Probe an integration's connection + auth without invoking any specific
657
- * endpoint. Exercises auth resolution end-to-end (SSM lookups, OAuth2 token
658
- * mints, JWT signing) and sends a HEAD request to ``base_url`` (REST/FHIR)
659
- * or ``mcp_url`` (MCP). Safe on production integrations — HEAD carries no
660
- * side effects.
661
- *
662
- * The most recent probe outcome is persisted on the integration so
663
- * subsequent ``get`` / ``list`` responses surface ``last_tested_at`` +
664
- * ``last_test_status`` without re-probing.
665
- *
666
- * @returns ``status`` is one of ``healthy`` / ``auth_failed`` /
667
- * ``unreachable`` / ``timeout`` / ``ssl_error`` / ``misconfigured``,
668
- * each mapping to a distinct, actionable user message.
669
- */
670
- testConnection(integrationId: IntegrationId | string): Promise<{
671
- auth_resolved?: boolean | undefined;
672
- duration_ms?: number | undefined;
673
- http_status?: number | null | undefined;
674
- message?: string | undefined;
675
- status: "healthy" | "auth_failed" | "unreachable" | "timeout" | "ssl_error" | "misconfigured";
676
- tested_at: string;
677
- } & import("../index.js").ResponseMetadata>;
678
- /** Check health of all integrations in the workspace */
679
- getHealthCheck(): Promise<{
680
- [x: string]: unknown;
681
- } & import("../index.js").ResponseMetadata>;
682
540
  }
683
541
  //# sourceMappingURL=integrations.d.ts.map