@alvera-ai/platform-sdk 0.10.0-rc.21 → 0.10.0-rc.23
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/.agent/AGENTS.md +3 -3
- package/.agent/ai_agents.md +64 -29
- package/.agent/cookbook/contact-us-triage-with-llm.md +14 -15
- package/.agent/cookbook/sanctions-screening-with-agent-review.md +13 -13
- package/.agent/cookbook/score-leads-with-llm-categorization.md +14 -14
- package/.agent/interoperability_contracts.md +66 -1
- package/.agent/workflows.md +49 -34
- package/dist/index.d.mts +196 -103
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -237,10 +237,12 @@ type AgenticWorkflowResponse = {
|
|
|
237
237
|
* Dataset type the workflow listens on (e.g. patient, appointment, generic_table)
|
|
238
238
|
*/
|
|
239
239
|
dataset_type: string;
|
|
240
|
+
decision_config?: ComplexTemplateConfigResponse | null;
|
|
240
241
|
/**
|
|
241
242
|
* Workflow description
|
|
242
243
|
*/
|
|
243
244
|
description: string;
|
|
245
|
+
filter_config?: SimpleTemplateConfigResponse | null;
|
|
244
246
|
/**
|
|
245
247
|
* Generic table ID (required when dataset_type is generic_table)
|
|
246
248
|
*/
|
|
@@ -274,7 +276,7 @@ type AgenticWorkflowResponse = {
|
|
|
274
276
|
*/
|
|
275
277
|
updated_at?: string;
|
|
276
278
|
/**
|
|
277
|
-
* AI agents attached to this workflow (response
|
|
279
|
+
* AI agents attached to this workflow (response — full detail with nested agent)
|
|
278
280
|
*/
|
|
279
281
|
readonly workflow_ai_agents?: Array<WorkflowAiAgentResponse>;
|
|
280
282
|
};
|
|
@@ -336,6 +338,7 @@ type CloudWatchLogGroupResponse = {
|
|
|
336
338
|
* AWS authentication method
|
|
337
339
|
*/
|
|
338
340
|
auth_method: 'access_key' | 'iam_role' | 'assume_role';
|
|
341
|
+
base_filter_pattern?: ComplexTemplateConfigResponse | null;
|
|
339
342
|
/**
|
|
340
343
|
* Custom CloudWatch Logs endpoint URL (e.g., http://localhost:4566 for LocalStack)
|
|
341
344
|
*/
|
|
@@ -382,6 +385,31 @@ type TenantResponse = {
|
|
|
382
385
|
*/
|
|
383
386
|
readonly slug: string;
|
|
384
387
|
};
|
|
388
|
+
/**
|
|
389
|
+
* ComplexTemplateConfigRequest
|
|
390
|
+
*
|
|
391
|
+
* Inline Liquid template configuration including the rendered-output JSON Schema Request
|
|
392
|
+
*/
|
|
393
|
+
type ComplexTemplateConfigRequest = {
|
|
394
|
+
/**
|
|
395
|
+
* Liquid template body (required for :custom type)
|
|
396
|
+
*/
|
|
397
|
+
body?: string | null;
|
|
398
|
+
/**
|
|
399
|
+
* JSON Schema describing expected rendered output
|
|
400
|
+
*/
|
|
401
|
+
output_schema: {
|
|
402
|
+
[key: string]: unknown;
|
|
403
|
+
} | null;
|
|
404
|
+
/**
|
|
405
|
+
* Filesystem path (required for :system type)
|
|
406
|
+
*/
|
|
407
|
+
path?: string | null;
|
|
408
|
+
/**
|
|
409
|
+
* Template resolution type
|
|
410
|
+
*/
|
|
411
|
+
type: 'system' | 'custom' | 'identity' | 'null';
|
|
412
|
+
};
|
|
385
413
|
/**
|
|
386
414
|
* DataActivationClientLogResponse
|
|
387
415
|
*
|
|
@@ -440,6 +468,7 @@ type S3CallResponse = {
|
|
|
440
468
|
* Action Status Updater — automated polling for delivery status updates.
|
|
441
469
|
*/
|
|
442
470
|
type ActionStatusUpdaterResponse = {
|
|
471
|
+
action_log_config?: SimpleTemplateConfigResponse | null;
|
|
443
472
|
/**
|
|
444
473
|
* SHA-256 drift fingerprint over authored fields (server-computed)
|
|
445
474
|
*/
|
|
@@ -460,6 +489,7 @@ type ActionStatusUpdaterResponse = {
|
|
|
460
489
|
* Creation timestamp
|
|
461
490
|
*/
|
|
462
491
|
readonly inserted_at?: string;
|
|
492
|
+
message_config: SimpleTemplateConfigResponse;
|
|
463
493
|
/**
|
|
464
494
|
* Updater name
|
|
465
495
|
*/
|
|
@@ -531,6 +561,7 @@ type AwsLambdaResponse = {
|
|
|
531
561
|
* Authentication method (required when type is external)
|
|
532
562
|
*/
|
|
533
563
|
auth_method?: 'access_key' | 'iam_role' | 'cloudformation';
|
|
564
|
+
base_payload?: ComplexTemplateConfigResponse | null;
|
|
534
565
|
/**
|
|
535
566
|
* User-provided environment variable key-value entries passed to the Lambda function
|
|
536
567
|
*/
|
|
@@ -634,25 +665,6 @@ type ExecuteActionRequest = {
|
|
|
634
665
|
*/
|
|
635
666
|
trigger_override?: boolean;
|
|
636
667
|
};
|
|
637
|
-
/**
|
|
638
|
-
* TemplateConfigResponse
|
|
639
|
-
*
|
|
640
|
-
* Inline Liquid template configuration
|
|
641
|
-
*/
|
|
642
|
-
type TemplateConfigResponse = {
|
|
643
|
-
/**
|
|
644
|
-
* Liquid template body (required for :custom type)
|
|
645
|
-
*/
|
|
646
|
-
body?: string | null;
|
|
647
|
-
/**
|
|
648
|
-
* Filesystem path (required for :system type)
|
|
649
|
-
*/
|
|
650
|
-
path?: string | null;
|
|
651
|
-
/**
|
|
652
|
-
* Template resolution type
|
|
653
|
-
*/
|
|
654
|
-
type: 'system' | 'custom' | 'identity' | 'null';
|
|
655
|
-
};
|
|
656
668
|
/**
|
|
657
669
|
* InteroperabilityRunResponse
|
|
658
670
|
*
|
|
@@ -972,6 +984,11 @@ type InteroperabilityContractResponse = {
|
|
|
972
984
|
* Creation timestamp
|
|
973
985
|
*/
|
|
974
986
|
inserted_at?: string;
|
|
987
|
+
/**
|
|
988
|
+
* AI agents attached to this contract (response — full detail with nested agent)
|
|
989
|
+
*/
|
|
990
|
+
readonly interoperability_contract_ai_agents?: Array<InteroperabilityContractAiAgentResponse>;
|
|
991
|
+
mdm_input_config?: SimpleTemplateConfigResponse | null;
|
|
975
992
|
/**
|
|
976
993
|
* Human-readable contract name
|
|
977
994
|
*/
|
|
@@ -988,6 +1005,7 @@ type InteroperabilityContractResponse = {
|
|
|
988
1005
|
* Whether this contract was auto-created by the system (read-only, cannot be edited or deleted)
|
|
989
1006
|
*/
|
|
990
1007
|
readonly system_created?: boolean;
|
|
1008
|
+
template_config: SimpleTemplateConfigResponse;
|
|
991
1009
|
/**
|
|
992
1010
|
* Template type (synced from template_config.type)
|
|
993
1011
|
*/
|
|
@@ -1077,12 +1095,31 @@ type ToolRequest = {
|
|
|
1077
1095
|
* Tool name
|
|
1078
1096
|
*/
|
|
1079
1097
|
name?: string;
|
|
1080
|
-
response_extractor?:
|
|
1098
|
+
response_extractor?: ComplexTemplateConfigRequest;
|
|
1081
1099
|
/**
|
|
1082
1100
|
* Tool status
|
|
1083
1101
|
*/
|
|
1084
1102
|
status?: 'draft' | 'active' | 'inactive' | 'error' | 'marked_for_deletion';
|
|
1085
1103
|
};
|
|
1104
|
+
/**
|
|
1105
|
+
* SimpleTemplateConfigRequest
|
|
1106
|
+
*
|
|
1107
|
+
* Inline Liquid template configuration (output_schema is server-derived, never request-supplied) Request
|
|
1108
|
+
*/
|
|
1109
|
+
type SimpleTemplateConfigRequest = {
|
|
1110
|
+
/**
|
|
1111
|
+
* Liquid template body (required for :custom type)
|
|
1112
|
+
*/
|
|
1113
|
+
body?: string | null;
|
|
1114
|
+
/**
|
|
1115
|
+
* Filesystem path (required for :system type)
|
|
1116
|
+
*/
|
|
1117
|
+
path?: string | null;
|
|
1118
|
+
/**
|
|
1119
|
+
* Template resolution type
|
|
1120
|
+
*/
|
|
1121
|
+
type: 'system' | 'custom' | 'identity' | 'null';
|
|
1122
|
+
};
|
|
1086
1123
|
/**
|
|
1087
1124
|
* DownloadUrlResponse
|
|
1088
1125
|
*
|
|
@@ -1100,12 +1137,12 @@ type DownloadUrlResponse = {
|
|
|
1100
1137
|
* SMS tool-call config — Liquid-templated recipient and body plus transactional/promotional category.
|
|
1101
1138
|
*/
|
|
1102
1139
|
type SmsCallResponse = {
|
|
1103
|
-
body:
|
|
1140
|
+
body: SimpleTemplateConfigResponse;
|
|
1104
1141
|
/**
|
|
1105
1142
|
* SMS category — transactional vs promotional
|
|
1106
1143
|
*/
|
|
1107
1144
|
sms_type?: 'transactional' | 'promotional';
|
|
1108
|
-
to:
|
|
1145
|
+
to: SimpleTemplateConfigResponse;
|
|
1109
1146
|
};
|
|
1110
1147
|
/**
|
|
1111
1148
|
* ResolvePageRequest
|
|
@@ -1142,6 +1179,7 @@ type ResolvePageRequest = {
|
|
|
1142
1179
|
* AWS Lambda invocation descriptor — Liquid-templated payload + timeout.
|
|
1143
1180
|
*/
|
|
1144
1181
|
type AwsLambdaCallResponse = {
|
|
1182
|
+
payload: SimpleTemplateConfigResponse;
|
|
1145
1183
|
/**
|
|
1146
1184
|
* Lambda invocation timeout in milliseconds (max 900000 = 15 minutes)
|
|
1147
1185
|
*/
|
|
@@ -1153,14 +1191,14 @@ type AwsLambdaCallResponse = {
|
|
|
1153
1191
|
* REST API call descriptor — HTTP method, path, body, params, and pagination context template. Reused across ActionStatusUpdater polling, data activation clients, tool protocols, OAuth token fetching, and chat completion.
|
|
1154
1192
|
*/
|
|
1155
1193
|
type RestCallResponse = {
|
|
1156
|
-
body?:
|
|
1194
|
+
body?: SimpleTemplateConfigResponse | null;
|
|
1157
1195
|
/**
|
|
1158
1196
|
* HTTP method
|
|
1159
1197
|
*/
|
|
1160
1198
|
method: 'head' | 'get' | 'put' | 'post' | 'delete' | 'patch';
|
|
1161
|
-
pagination_context_template:
|
|
1162
|
-
params?:
|
|
1163
|
-
path:
|
|
1199
|
+
pagination_context_template: SimpleTemplateConfigResponse;
|
|
1200
|
+
params?: SimpleTemplateConfigResponse | null;
|
|
1201
|
+
path: SimpleTemplateConfigResponse;
|
|
1164
1202
|
};
|
|
1165
1203
|
/**
|
|
1166
1204
|
* CloudStorageCustomResponse
|
|
@@ -1224,6 +1262,7 @@ type SharePointResponse = {
|
|
|
1224
1262
|
* Microsoft tenant ID (GUID)
|
|
1225
1263
|
*/
|
|
1226
1264
|
azure_tenant_id: string;
|
|
1265
|
+
base_path?: ComplexTemplateConfigResponse | null;
|
|
1227
1266
|
/**
|
|
1228
1267
|
* Azure AD application/client ID (used when auth_method is client_credentials)
|
|
1229
1268
|
*/
|
|
@@ -1245,6 +1284,25 @@ type SharePointResponse = {
|
|
|
1245
1284
|
*/
|
|
1246
1285
|
site_url?: string | null;
|
|
1247
1286
|
};
|
|
1287
|
+
/**
|
|
1288
|
+
* SimpleTemplateConfigResponse
|
|
1289
|
+
*
|
|
1290
|
+
* Inline Liquid template configuration (output_schema is server-derived, never request-supplied)
|
|
1291
|
+
*/
|
|
1292
|
+
type SimpleTemplateConfigResponse = {
|
|
1293
|
+
/**
|
|
1294
|
+
* Liquid template body (required for :custom type)
|
|
1295
|
+
*/
|
|
1296
|
+
body?: string | null;
|
|
1297
|
+
/**
|
|
1298
|
+
* Filesystem path (required for :system type)
|
|
1299
|
+
*/
|
|
1300
|
+
path?: string | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* Template resolution type
|
|
1303
|
+
*/
|
|
1304
|
+
type: 'system' | 'custom' | 'identity' | 'null';
|
|
1305
|
+
};
|
|
1248
1306
|
/**
|
|
1249
1307
|
* RESTAPIResponse
|
|
1250
1308
|
*
|
|
@@ -1263,6 +1321,10 @@ type RestapiResponse = {
|
|
|
1263
1321
|
* Authentication method
|
|
1264
1322
|
*/
|
|
1265
1323
|
auth_method: 'none' | 'api_key' | 'basic' | 'bearer' | 'oauth2' | 'oidc';
|
|
1324
|
+
base_body?: SimpleTemplateConfigResponse | null;
|
|
1325
|
+
base_headers?: SimpleTemplateConfigResponse | null;
|
|
1326
|
+
base_path?: SimpleTemplateConfigResponse | null;
|
|
1327
|
+
base_query?: SimpleTemplateConfigResponse | null;
|
|
1266
1328
|
/**
|
|
1267
1329
|
* Base URL (https) of the REST API endpoint
|
|
1268
1330
|
*/
|
|
@@ -1357,9 +1419,9 @@ type ConnectedAppListResponse = {
|
|
|
1357
1419
|
* Email tool-call config — Liquid-templated recipient, subject, and body.
|
|
1358
1420
|
*/
|
|
1359
1421
|
type EmailCallResponse = {
|
|
1360
|
-
body:
|
|
1361
|
-
subject:
|
|
1362
|
-
to:
|
|
1422
|
+
body: SimpleTemplateConfigResponse;
|
|
1423
|
+
subject: SimpleTemplateConfigResponse;
|
|
1424
|
+
to: SimpleTemplateConfigResponse;
|
|
1363
1425
|
};
|
|
1364
1426
|
/**
|
|
1365
1427
|
* ActionSQLQueryCallResponse
|
|
@@ -1393,6 +1455,7 @@ type WorkflowAiAgentResponse = {
|
|
|
1393
1455
|
* AI agent ID
|
|
1394
1456
|
*/
|
|
1395
1457
|
ai_agent_id: string;
|
|
1458
|
+
context_mapping_config: SimpleTemplateConfigResponse;
|
|
1396
1459
|
/**
|
|
1397
1460
|
* Creation timestamp
|
|
1398
1461
|
*/
|
|
@@ -1673,10 +1736,22 @@ type MinimalAiAgentResponse = {
|
|
|
1673
1736
|
* AI Agent ID
|
|
1674
1737
|
*/
|
|
1675
1738
|
id?: string;
|
|
1739
|
+
/**
|
|
1740
|
+
* JSON Schema describing the agent's input contract — validated by the runner against caller context on every invocation.
|
|
1741
|
+
*/
|
|
1742
|
+
input_schema: {
|
|
1743
|
+
[key: string]: unknown;
|
|
1744
|
+
};
|
|
1676
1745
|
/**
|
|
1677
1746
|
* Creation timestamp
|
|
1678
1747
|
*/
|
|
1679
1748
|
inserted_at?: string;
|
|
1749
|
+
/**
|
|
1750
|
+
* JSON Schema for LLM response format
|
|
1751
|
+
*/
|
|
1752
|
+
llm_response_schema: {
|
|
1753
|
+
[key: string]: unknown;
|
|
1754
|
+
} | null;
|
|
1680
1755
|
/**
|
|
1681
1756
|
* Maximum tokens for LLM response
|
|
1682
1757
|
*/
|
|
@@ -1689,6 +1764,7 @@ type MinimalAiAgentResponse = {
|
|
|
1689
1764
|
* Agent name
|
|
1690
1765
|
*/
|
|
1691
1766
|
name: string;
|
|
1767
|
+
prompt_config: SimpleTemplateConfigResponse;
|
|
1692
1768
|
/**
|
|
1693
1769
|
* URL-friendly slug
|
|
1694
1770
|
*/
|
|
@@ -2075,6 +2151,7 @@ type SftpResponse = {
|
|
|
2075
2151
|
* Base directory path on the SFTP server
|
|
2076
2152
|
*/
|
|
2077
2153
|
base_path: string;
|
|
2154
|
+
base_path_template?: ComplexTemplateConfigResponse | null;
|
|
2078
2155
|
/**
|
|
2079
2156
|
* SFTP server hostname or IP address
|
|
2080
2157
|
*/
|
|
@@ -2100,7 +2177,32 @@ type ToolSnsResponse = SnsResponse & {
|
|
|
2100
2177
|
* SQL query descriptor — Liquid-templated query body.
|
|
2101
2178
|
*/
|
|
2102
2179
|
type SqlQueryCallResponse = {
|
|
2103
|
-
|
|
2180
|
+
query: SimpleTemplateConfigResponse;
|
|
2181
|
+
};
|
|
2182
|
+
/**
|
|
2183
|
+
* ComplexTemplateConfigResponse
|
|
2184
|
+
*
|
|
2185
|
+
* Inline Liquid template configuration including the rendered-output JSON Schema
|
|
2186
|
+
*/
|
|
2187
|
+
type ComplexTemplateConfigResponse = {
|
|
2188
|
+
/**
|
|
2189
|
+
* Liquid template body (required for :custom type)
|
|
2190
|
+
*/
|
|
2191
|
+
body?: string | null;
|
|
2192
|
+
/**
|
|
2193
|
+
* JSON Schema describing expected rendered output
|
|
2194
|
+
*/
|
|
2195
|
+
output_schema: {
|
|
2196
|
+
[key: string]: unknown;
|
|
2197
|
+
} | null;
|
|
2198
|
+
/**
|
|
2199
|
+
* Filesystem path (required for :system type)
|
|
2200
|
+
*/
|
|
2201
|
+
path?: string | null;
|
|
2202
|
+
/**
|
|
2203
|
+
* Template resolution type
|
|
2204
|
+
*/
|
|
2205
|
+
type: 'system' | 'custom' | 'identity' | 'null';
|
|
2104
2206
|
};
|
|
2105
2207
|
/**
|
|
2106
2208
|
* ActionSFTPCallResponse
|
|
@@ -2182,6 +2284,7 @@ type ActionEmailCallResponse = EmailCallResponse & {
|
|
|
2182
2284
|
* S3-compatible storage tool configuration with a nested polymorphic provider config (AWS or R2).
|
|
2183
2285
|
*/
|
|
2184
2286
|
type S3Response = {
|
|
2287
|
+
base_prefix?: ComplexTemplateConfigResponse | null;
|
|
2185
2288
|
config: ({
|
|
2186
2289
|
storage_config_type: 'aws';
|
|
2187
2290
|
} & S3CloudStorageAwsResponse) | ({
|
|
@@ -2359,7 +2462,7 @@ type ToolResponse = {
|
|
|
2359
2462
|
* Tool name
|
|
2360
2463
|
*/
|
|
2361
2464
|
name?: string;
|
|
2362
|
-
response_extractor?:
|
|
2465
|
+
response_extractor?: ComplexTemplateConfigResponse | null;
|
|
2363
2466
|
/**
|
|
2364
2467
|
* Tool status
|
|
2365
2468
|
*/
|
|
@@ -2445,6 +2548,7 @@ type SnsResponse = {
|
|
|
2445
2548
|
* AWS authentication method
|
|
2446
2549
|
*/
|
|
2447
2550
|
auth_method: 'access_key' | 'iam_role' | 'assume_role';
|
|
2551
|
+
base_message?: ComplexTemplateConfigResponse | null;
|
|
2448
2552
|
/**
|
|
2449
2553
|
* Custom SNS endpoint URL (e.g., http://localhost:4566 for LocalStack); leave blank for real AWS
|
|
2450
2554
|
*/
|
|
@@ -2469,6 +2573,7 @@ type InteroperabilityContractAiAgentResponse = {
|
|
|
2469
2573
|
* AI agent ID
|
|
2470
2574
|
*/
|
|
2471
2575
|
ai_agent_id: string;
|
|
2576
|
+
context_mapping_config: ComplexTemplateConfigResponse;
|
|
2472
2577
|
/**
|
|
2473
2578
|
* Creation timestamp
|
|
2474
2579
|
*/
|
|
@@ -2476,7 +2581,7 @@ type InteroperabilityContractAiAgentResponse = {
|
|
|
2476
2581
|
/**
|
|
2477
2582
|
* Execution order in the enrichment pipeline
|
|
2478
2583
|
*/
|
|
2479
|
-
position
|
|
2584
|
+
position: number;
|
|
2480
2585
|
/**
|
|
2481
2586
|
* Last update timestamp
|
|
2482
2587
|
*/
|
|
@@ -2519,14 +2624,14 @@ type DatalakeMigrateResponse = {
|
|
|
2519
2624
|
* REST API call descriptor — HTTP method, path, body, params, and pagination context template. Reused across ActionStatusUpdater polling, data activation clients, tool protocols, OAuth token fetching, and chat completion. Request
|
|
2520
2625
|
*/
|
|
2521
2626
|
type RestCallRequest = {
|
|
2522
|
-
body?:
|
|
2627
|
+
body?: SimpleTemplateConfigRequest;
|
|
2523
2628
|
/**
|
|
2524
2629
|
* HTTP method
|
|
2525
2630
|
*/
|
|
2526
2631
|
method: 'head' | 'get' | 'put' | 'post' | 'delete' | 'patch';
|
|
2527
|
-
pagination_context_template:
|
|
2528
|
-
params?:
|
|
2529
|
-
path:
|
|
2632
|
+
pagination_context_template: SimpleTemplateConfigRequest;
|
|
2633
|
+
params?: SimpleTemplateConfigRequest;
|
|
2634
|
+
path: SimpleTemplateConfigRequest;
|
|
2530
2635
|
};
|
|
2531
2636
|
/**
|
|
2532
2637
|
* SQLDatabaseResponse
|
|
@@ -2534,6 +2639,7 @@ type RestCallRequest = {
|
|
|
2534
2639
|
* SQL database connection configuration (PostgreSQL, MySQL, MSSQL, SQLite, Snowflake).
|
|
2535
2640
|
*/
|
|
2536
2641
|
type SqlDatabaseResponse = {
|
|
2642
|
+
base_query?: ComplexTemplateConfigResponse | null;
|
|
2537
2643
|
/**
|
|
2538
2644
|
* Database host (hostname or IP address)
|
|
2539
2645
|
*/
|
|
@@ -2643,6 +2749,7 @@ type SqsResponse = {
|
|
|
2643
2749
|
* AWS authentication method
|
|
2644
2750
|
*/
|
|
2645
2751
|
auth_method: 'access_key' | 'iam_role';
|
|
2752
|
+
base_message?: ComplexTemplateConfigResponse | null;
|
|
2646
2753
|
/**
|
|
2647
2754
|
* Whether the queue is a FIFO queue (URL must end with .fifo)
|
|
2648
2755
|
*/
|
|
@@ -2660,25 +2767,6 @@ type SqsResponse = {
|
|
|
2660
2767
|
*/
|
|
2661
2768
|
region: string;
|
|
2662
2769
|
};
|
|
2663
|
-
/**
|
|
2664
|
-
* TemplateConfigRequest
|
|
2665
|
-
*
|
|
2666
|
-
* Inline Liquid template configuration Request
|
|
2667
|
-
*/
|
|
2668
|
-
type TemplateConfigRequest = {
|
|
2669
|
-
/**
|
|
2670
|
-
* Liquid template body (required for :custom type)
|
|
2671
|
-
*/
|
|
2672
|
-
body?: string | null;
|
|
2673
|
-
/**
|
|
2674
|
-
* Filesystem path (required for :system type)
|
|
2675
|
-
*/
|
|
2676
|
-
path?: string | null;
|
|
2677
|
-
/**
|
|
2678
|
-
* Template resolution type
|
|
2679
|
-
*/
|
|
2680
|
-
type: 'system' | 'custom' | 'identity' | 'null';
|
|
2681
|
-
};
|
|
2682
2770
|
/**
|
|
2683
2771
|
* PaginationMeta
|
|
2684
2772
|
*
|
|
@@ -2961,7 +3049,7 @@ type DataActivationClientResponse = {
|
|
|
2961
3049
|
* IDs of downstream DACs triggered after this one completes
|
|
2962
3050
|
*/
|
|
2963
3051
|
downstream_connection_ids?: Array<string>;
|
|
2964
|
-
filter_config?:
|
|
3052
|
+
filter_config?: SimpleTemplateConfigResponse | null;
|
|
2965
3053
|
/**
|
|
2966
3054
|
* DAC ID
|
|
2967
3055
|
*/
|
|
@@ -2986,7 +3074,7 @@ type DataActivationClientResponse = {
|
|
|
2986
3074
|
* DAC name
|
|
2987
3075
|
*/
|
|
2988
3076
|
name: string;
|
|
2989
|
-
response_extractor?:
|
|
3077
|
+
response_extractor?: SimpleTemplateConfigResponse | null;
|
|
2990
3078
|
/**
|
|
2991
3079
|
* Optional row-level Liquid pre-filter. Renders to empty/whitespace → row passes; any non-empty trimmed render → row is skipped (rendered string is the skip reason). Nil/empty body = no filter. Same semantics as InteroperabilityContract.filter_template.
|
|
2992
3080
|
*/
|
|
@@ -3456,10 +3544,22 @@ type AiAgentResponse = {
|
|
|
3456
3544
|
* AI Agent ID
|
|
3457
3545
|
*/
|
|
3458
3546
|
id?: string;
|
|
3547
|
+
/**
|
|
3548
|
+
* JSON Schema describing the agent's input contract — validated by the runner against caller context on every invocation.
|
|
3549
|
+
*/
|
|
3550
|
+
input_schema: {
|
|
3551
|
+
[key: string]: unknown;
|
|
3552
|
+
};
|
|
3459
3553
|
/**
|
|
3460
3554
|
* Creation timestamp
|
|
3461
3555
|
*/
|
|
3462
3556
|
inserted_at?: string;
|
|
3557
|
+
/**
|
|
3558
|
+
* JSON Schema for LLM response format
|
|
3559
|
+
*/
|
|
3560
|
+
llm_response_schema: {
|
|
3561
|
+
[key: string]: unknown;
|
|
3562
|
+
} | null;
|
|
3463
3563
|
/**
|
|
3464
3564
|
* Maximum tokens for LLM response
|
|
3465
3565
|
*/
|
|
@@ -3472,6 +3572,7 @@ type AiAgentResponse = {
|
|
|
3472
3572
|
* Agent name
|
|
3473
3573
|
*/
|
|
3474
3574
|
name: string;
|
|
3575
|
+
prompt_config: SimpleTemplateConfigResponse;
|
|
3475
3576
|
/**
|
|
3476
3577
|
* URL-friendly slug
|
|
3477
3578
|
*/
|
|
@@ -3826,10 +3927,6 @@ type AgenticWorkflowRequestWritable = {
|
|
|
3826
3927
|
* Decision actions — rendered as ActionResponse items on reads and accepted as the same shape on create/update. `id` and timestamps are readOnly; clients omit them when creating.
|
|
3827
3928
|
*/
|
|
3828
3929
|
actions?: Array<ActionResponseWritable>;
|
|
3829
|
-
/**
|
|
3830
|
-
* AI agents to attach (request only)
|
|
3831
|
-
*/
|
|
3832
|
-
ai_agents?: Array<WorkflowAiAgentRequestWritable>;
|
|
3833
3930
|
/**
|
|
3834
3931
|
* Context-enrichment datasets loaded before the decision stage. Same shape on read and write; readOnly fields (id, timestamps) are omitted by clients on create.
|
|
3835
3932
|
*/
|
|
@@ -3838,10 +3935,12 @@ type AgenticWorkflowRequestWritable = {
|
|
|
3838
3935
|
* Dataset type the workflow listens on (e.g. patient, appointment, generic_table)
|
|
3839
3936
|
*/
|
|
3840
3937
|
dataset_type: string;
|
|
3938
|
+
decision_config?: ComplexTemplateConfigRequest;
|
|
3841
3939
|
/**
|
|
3842
3940
|
* Workflow description
|
|
3843
3941
|
*/
|
|
3844
3942
|
description: string;
|
|
3943
|
+
filter_config?: SimpleTemplateConfigRequest;
|
|
3845
3944
|
/**
|
|
3846
3945
|
* Generic table ID (required when dataset_type is generic_table)
|
|
3847
3946
|
*/
|
|
@@ -3870,6 +3969,10 @@ type AgenticWorkflowRequestWritable = {
|
|
|
3870
3969
|
* Last update timestamp
|
|
3871
3970
|
*/
|
|
3872
3971
|
updated_at?: string;
|
|
3972
|
+
/**
|
|
3973
|
+
* AI agents to attach to this workflow (request)
|
|
3974
|
+
*/
|
|
3975
|
+
workflow_ai_agents?: Array<WorkflowAiAgentRequestWritable>;
|
|
3873
3976
|
};
|
|
3874
3977
|
/**
|
|
3875
3978
|
* InteroperabilityContractAiAgentRequest
|
|
@@ -3881,10 +3984,11 @@ type InteroperabilityContractAiAgentRequestWritable = {
|
|
|
3881
3984
|
* AI agent ID
|
|
3882
3985
|
*/
|
|
3883
3986
|
ai_agent_id: string;
|
|
3987
|
+
context_mapping_config: ComplexTemplateConfigRequest;
|
|
3884
3988
|
/**
|
|
3885
3989
|
* Execution order in the enrichment pipeline
|
|
3886
3990
|
*/
|
|
3887
|
-
position
|
|
3991
|
+
position: number;
|
|
3888
3992
|
};
|
|
3889
3993
|
/**
|
|
3890
3994
|
* ActionResponse
|
|
@@ -3990,7 +4094,7 @@ type ToolRequestWritable = {
|
|
|
3990
4094
|
* Tool name
|
|
3991
4095
|
*/
|
|
3992
4096
|
name?: string;
|
|
3993
|
-
response_extractor?:
|
|
4097
|
+
response_extractor?: ComplexTemplateConfigRequest;
|
|
3994
4098
|
/**
|
|
3995
4099
|
* Tool status
|
|
3996
4100
|
*/
|
|
@@ -4010,6 +4114,7 @@ type AwsLambdaRequestWritable = {
|
|
|
4010
4114
|
* Authentication method (required when type is external)
|
|
4011
4115
|
*/
|
|
4012
4116
|
auth_method?: 'access_key' | 'iam_role' | 'cloudformation';
|
|
4117
|
+
base_payload?: ComplexTemplateConfigRequest;
|
|
4013
4118
|
/**
|
|
4014
4119
|
* User-provided environment variable key-value entries passed to the Lambda function
|
|
4015
4120
|
*/
|
|
@@ -4063,6 +4168,7 @@ type WorkflowAiAgentRequestWritable = {
|
|
|
4063
4168
|
* AI agent ID
|
|
4064
4169
|
*/
|
|
4065
4170
|
ai_agent_id: string;
|
|
4171
|
+
context_mapping_config: SimpleTemplateConfigRequest;
|
|
4066
4172
|
/**
|
|
4067
4173
|
* Execution order in the enrichment pipeline
|
|
4068
4174
|
*/
|
|
@@ -4151,6 +4257,7 @@ type ToolSftpRequestWritable = SftpRequestWritable & {
|
|
|
4151
4257
|
* AWS Lambda invocation descriptor — Liquid-templated payload + timeout. Request
|
|
4152
4258
|
*/
|
|
4153
4259
|
type AwsLambdaCallRequestWritable = {
|
|
4260
|
+
payload: SimpleTemplateConfigRequest;
|
|
4154
4261
|
/**
|
|
4155
4262
|
* Lambda invocation timeout in milliseconds (max 900000 = 15 minutes)
|
|
4156
4263
|
*/
|
|
@@ -4225,6 +4332,7 @@ type SharePointRequestWritable = {
|
|
|
4225
4332
|
* Microsoft tenant ID (GUID)
|
|
4226
4333
|
*/
|
|
4227
4334
|
azure_tenant_id: string;
|
|
4335
|
+
base_path?: ComplexTemplateConfigRequest;
|
|
4228
4336
|
/**
|
|
4229
4337
|
* Azure AD application/client ID (used when auth_method is client_credentials)
|
|
4230
4338
|
*/
|
|
@@ -4256,7 +4364,7 @@ type SharePointRequestWritable = {
|
|
|
4256
4364
|
* SQL query descriptor — Liquid-templated query body. Request
|
|
4257
4365
|
*/
|
|
4258
4366
|
type SqlQueryCallRequestWritable = {
|
|
4259
|
-
|
|
4367
|
+
query: SimpleTemplateConfigRequest;
|
|
4260
4368
|
};
|
|
4261
4369
|
/**
|
|
4262
4370
|
* CloudWatchLogGroupRequest
|
|
@@ -4280,6 +4388,7 @@ type CloudWatchLogGroupRequestWritable = {
|
|
|
4280
4388
|
* AWS authentication method
|
|
4281
4389
|
*/
|
|
4282
4390
|
auth_method: 'access_key' | 'iam_role' | 'assume_role';
|
|
4391
|
+
base_filter_pattern?: ComplexTemplateConfigRequest;
|
|
4283
4392
|
/**
|
|
4284
4393
|
* Custom CloudWatch Logs endpoint URL (e.g., http://localhost:4566 for LocalStack)
|
|
4285
4394
|
*/
|
|
@@ -4315,6 +4424,7 @@ type SnsRequestWritable = {
|
|
|
4315
4424
|
* AWS authentication method
|
|
4316
4425
|
*/
|
|
4317
4426
|
auth_method: 'access_key' | 'iam_role' | 'assume_role';
|
|
4427
|
+
base_message?: ComplexTemplateConfigRequest;
|
|
4318
4428
|
/**
|
|
4319
4429
|
* Custom SNS endpoint URL (e.g., http://localhost:4566 for LocalStack); leave blank for real AWS
|
|
4320
4430
|
*/
|
|
@@ -4352,6 +4462,7 @@ type SqsRequestWritable = {
|
|
|
4352
4462
|
* AWS authentication method
|
|
4353
4463
|
*/
|
|
4354
4464
|
auth_method: 'access_key' | 'iam_role';
|
|
4465
|
+
base_message?: ComplexTemplateConfigRequest;
|
|
4355
4466
|
/**
|
|
4356
4467
|
* Whether the queue is a FIFO queue (URL must end with .fifo)
|
|
4357
4468
|
*/
|
|
@@ -4405,7 +4516,11 @@ type InteroperabilityContractRequestWritable = {
|
|
|
4405
4516
|
* Creation timestamp
|
|
4406
4517
|
*/
|
|
4407
4518
|
inserted_at?: string;
|
|
4408
|
-
|
|
4519
|
+
/**
|
|
4520
|
+
* AI agents to attach to this contract (request)
|
|
4521
|
+
*/
|
|
4522
|
+
interoperability_contract_ai_agents?: Array<InteroperabilityContractAiAgentRequestWritable>;
|
|
4523
|
+
mdm_input_config?: SimpleTemplateConfigRequest;
|
|
4409
4524
|
/**
|
|
4410
4525
|
* Human-readable contract name
|
|
4411
4526
|
*/
|
|
@@ -4418,7 +4533,7 @@ type InteroperabilityContractRequestWritable = {
|
|
|
4418
4533
|
* URL-friendly slug (derived from name on insert; immutable)
|
|
4419
4534
|
*/
|
|
4420
4535
|
slug?: string;
|
|
4421
|
-
template_config:
|
|
4536
|
+
template_config: SimpleTemplateConfigRequest;
|
|
4422
4537
|
/**
|
|
4423
4538
|
* Template type (synced from template_config.type)
|
|
4424
4539
|
*/
|
|
@@ -4434,33 +4549,14 @@ type InteroperabilityContractRequestWritable = {
|
|
|
4434
4549
|
* REST API call descriptor — HTTP method, path, body, params, and pagination context template. Reused across ActionStatusUpdater polling, data activation clients, tool protocols, OAuth token fetching, and chat completion. Request
|
|
4435
4550
|
*/
|
|
4436
4551
|
type RestCallRequestWritable = {
|
|
4437
|
-
body?:
|
|
4552
|
+
body?: SimpleTemplateConfigRequest;
|
|
4438
4553
|
/**
|
|
4439
4554
|
* HTTP method
|
|
4440
4555
|
*/
|
|
4441
4556
|
method: 'head' | 'get' | 'put' | 'post' | 'delete' | 'patch';
|
|
4442
|
-
pagination_context_template:
|
|
4443
|
-
params?:
|
|
4444
|
-
path:
|
|
4445
|
-
};
|
|
4446
|
-
/**
|
|
4447
|
-
* TemplateConfigRequest
|
|
4448
|
-
*
|
|
4449
|
-
* Inline Liquid template configuration Request
|
|
4450
|
-
*/
|
|
4451
|
-
type TemplateConfigRequestWritable = {
|
|
4452
|
-
/**
|
|
4453
|
-
* Liquid template body (required for :custom type)
|
|
4454
|
-
*/
|
|
4455
|
-
body?: string | null;
|
|
4456
|
-
/**
|
|
4457
|
-
* Filesystem path (required for :system type)
|
|
4458
|
-
*/
|
|
4459
|
-
path?: string | null;
|
|
4460
|
-
/**
|
|
4461
|
-
* Template resolution type
|
|
4462
|
-
*/
|
|
4463
|
-
type: 'system' | 'custom' | 'identity' | 'null';
|
|
4557
|
+
pagination_context_template: SimpleTemplateConfigRequest;
|
|
4558
|
+
params?: SimpleTemplateConfigRequest;
|
|
4559
|
+
path: SimpleTemplateConfigRequest;
|
|
4464
4560
|
};
|
|
4465
4561
|
/**
|
|
4466
4562
|
* RESTAPIRequest
|
|
@@ -4484,6 +4580,10 @@ type RestapiRequestWritable = {
|
|
|
4484
4580
|
* Authentication method
|
|
4485
4581
|
*/
|
|
4486
4582
|
auth_method: 'none' | 'api_key' | 'basic' | 'bearer' | 'oauth2' | 'oidc';
|
|
4583
|
+
base_body?: SimpleTemplateConfigRequest;
|
|
4584
|
+
base_headers?: SimpleTemplateConfigRequest;
|
|
4585
|
+
base_path?: SimpleTemplateConfigRequest;
|
|
4586
|
+
base_query?: SimpleTemplateConfigRequest;
|
|
4487
4587
|
/**
|
|
4488
4588
|
* Base URL (https) of the REST API endpoint
|
|
4489
4589
|
*/
|
|
@@ -4612,6 +4712,7 @@ type SftpRequestWritable = {
|
|
|
4612
4712
|
* Base directory path on the SFTP server
|
|
4613
4713
|
*/
|
|
4614
4714
|
base_path: string;
|
|
4715
|
+
base_path_template?: ComplexTemplateConfigRequest;
|
|
4615
4716
|
/**
|
|
4616
4717
|
* SFTP server hostname or IP address
|
|
4617
4718
|
*/
|
|
@@ -4690,7 +4791,7 @@ type DataActivationClientRequestWritable = {
|
|
|
4690
4791
|
* IDs of downstream DACs triggered after this one completes
|
|
4691
4792
|
*/
|
|
4692
4793
|
downstream_connection_ids?: Array<string>;
|
|
4693
|
-
filter_config?:
|
|
4794
|
+
filter_config?: SimpleTemplateConfigRequest;
|
|
4694
4795
|
/**
|
|
4695
4796
|
* IDs of interoperability contracts used to transform each fetched row
|
|
4696
4797
|
*/
|
|
@@ -4703,7 +4804,7 @@ type DataActivationClientRequestWritable = {
|
|
|
4703
4804
|
* DAC name
|
|
4704
4805
|
*/
|
|
4705
4806
|
name: string;
|
|
4706
|
-
response_extractor?:
|
|
4807
|
+
response_extractor?: SimpleTemplateConfigRequest;
|
|
4707
4808
|
/**
|
|
4708
4809
|
* Optional row-level Liquid pre-filter. Renders to empty/whitespace → row passes; any non-empty trimmed render → row is skipped (rendered string is the skip reason). Nil/empty body = no filter. Same semantics as InteroperabilityContract.filter_template.
|
|
4709
4810
|
*/
|
|
@@ -4862,6 +4963,7 @@ type ConnectedAppRequestWritable = {
|
|
|
4862
4963
|
* S3-compatible storage tool configuration with a nested polymorphic provider config (AWS or R2). Request
|
|
4863
4964
|
*/
|
|
4864
4965
|
type S3RequestWritable = {
|
|
4966
|
+
base_prefix?: ComplexTemplateConfigRequest;
|
|
4865
4967
|
config: ({
|
|
4866
4968
|
storage_config_type: 'aws';
|
|
4867
4969
|
} & S3CloudStorageAwsRequestWritable) | ({
|
|
@@ -4874,6 +4976,7 @@ type S3RequestWritable = {
|
|
|
4874
4976
|
* SQL database connection configuration (PostgreSQL, MySQL, MSSQL, SQLite, Snowflake). Request
|
|
4875
4977
|
*/
|
|
4876
4978
|
type SqlDatabaseRequestWritable = {
|
|
4979
|
+
base_query?: ComplexTemplateConfigRequest;
|
|
4877
4980
|
/**
|
|
4878
4981
|
* Database host (hostname or IP address)
|
|
4879
4982
|
*/
|
|
@@ -6436,16 +6539,6 @@ declare function _buildApi(myClient: Client): {
|
|
|
6436
6539
|
request: Request;
|
|
6437
6540
|
response: Response;
|
|
6438
6541
|
}>;
|
|
6439
|
-
detachAiAgent: (tenantSlug: string, datalakeSlug: string, slug: string, aiAgentId: string) => Promise<{
|
|
6440
|
-
data: void;
|
|
6441
|
-
request: Request;
|
|
6442
|
-
response: Response;
|
|
6443
|
-
}>;
|
|
6444
|
-
updateAttachedAiAgent: (tenantSlug: string, datalakeSlug: string, slug: string, aiAgentId: string, body: InteroperabilityContractAiAgentRequestWritable) => Promise<{
|
|
6445
|
-
data: InteroperabilityContractAiAgentResponse;
|
|
6446
|
-
request: Request;
|
|
6447
|
-
response: Response;
|
|
6448
|
-
}>;
|
|
6449
6542
|
metadata: (tenantSlug: string, datalakeSlug: string) => Promise<{
|
|
6450
6543
|
data: string;
|
|
6451
6544
|
request: Request;
|
|
@@ -6594,5 +6687,5 @@ declare const ENVIRONMENTS: {
|
|
|
6594
6687
|
declare const DEFAULT_ENVIRONMENT: "prod";
|
|
6595
6688
|
type EnvironmentName = keyof typeof ENVIRONMENTS;
|
|
6596
6689
|
//#endregion
|
|
6597
|
-
export { type ActionStatusUpdaterCloudWatchQueryRequest, type ActionStatusUpdaterResponse, type ActionStatusUpdaterRestCallRequest, ActionType, type AgenticWorkflowListResponse, type AgenticWorkflowRequestWritable, type AgenticWorkflowResponse, type AiAgentResponse, type AlveraApiError, type AlveraClient, type ApiConfig, type ApiDebugConfig, type BatchLogListResponse, type BatchLogResponse, type ConnectedAppListResponse, type ConnectedAppRequestWritable, type ConnectedAppResponse, type CreateActionStatusUpdaterRequest, type CreateAiAgentRequest, type CreateGenericTableRequest, type CreateSessionParams, DEFAULT_ENVIRONMENT, type DataActivationClientListResponse, type DataActivationClientLogListResponse, type DataActivationClientLogResponse, type DataActivationClientRequestWritable, type DataActivationClientResponse, type DataSourceRequest, type DataSourceRequestWritable, type DataSourceResponse, type DatalakeRequestWritable, type DatalakeResponse, type DatasetMetadataOptions, type DatasetSearchOptions, type DatasetSearchResponse, type DownloadUrlResponse, ENVIRONMENTS, type EnvironmentName, type ErrorResponse, type ExecuteActionRequest, type ExecuteActionResponse, type GenericTableColumnRequest, type GenericTableColumnResponse, type GenericTableResponse, type IngestFileRequest, type IngestRequest, type InteroperabilityContractListResponse, type InteroperabilityContractRequestWritable, type InteroperabilityContractResponse, type InteroperabilityRunRequest, type InteroperabilityRunResponse, type MdmVerifyRequest, type MdmVerifyResponse, type PaginationMeta, type PlatformApi, type ResolvePageRequest, type RunManuallyRequestWritable, type RunManuallyResponse, type RunWorkflowRequest, type RunWorkflowResponse, type SessionResponse, type SessionResult, type SyncRoutesResponse, type TemplateConfig, type TenantListResponse, type TenantResponse, ToolIntent, type ToolRequest, type ToolRequestWritable, type ToolResponse, type UpdatePageRequest, type UploadLinkRequest, type UploadLinkResponse, type WorkflowLogListResponse, type WorkflowLogResponse, createIsolatedPlatformApi, createPlatformApi, createSession, revokeSession };
|
|
6690
|
+
export { type ActionStatusUpdaterCloudWatchQueryRequest, type ActionStatusUpdaterResponse, type ActionStatusUpdaterRestCallRequest, ActionType, type AgenticWorkflowListResponse, type AgenticWorkflowRequestWritable, type AgenticWorkflowResponse, type AiAgentResponse, type AlveraApiError, type AlveraClient, type ApiConfig, type ApiDebugConfig, type BatchLogListResponse, type BatchLogResponse, type ConnectedAppListResponse, type ConnectedAppRequestWritable, type ConnectedAppResponse, type CreateActionStatusUpdaterRequest, type CreateAiAgentRequest, type CreateGenericTableRequest, type CreateSessionParams, DEFAULT_ENVIRONMENT, type DataActivationClientListResponse, type DataActivationClientLogListResponse, type DataActivationClientLogResponse, type DataActivationClientRequestWritable, type DataActivationClientResponse, type DataSourceRequest, type DataSourceRequestWritable, type DataSourceResponse, type DatalakeRequestWritable, type DatalakeResponse, type DatasetMetadataOptions, type DatasetSearchOptions, type DatasetSearchResponse, type DownloadUrlResponse, ENVIRONMENTS, type EnvironmentName, type ErrorResponse, type ExecuteActionRequest, type ExecuteActionResponse, type GenericTableColumnRequest, type GenericTableColumnResponse, type GenericTableResponse, type IngestFileRequest, type IngestRequest, type InteroperabilityContractAiAgentRequestWritable, type InteroperabilityContractListResponse, type InteroperabilityContractRequestWritable, type InteroperabilityContractResponse, type InteroperabilityRunRequest, type InteroperabilityRunResponse, type MdmVerifyRequest, type MdmVerifyResponse, type PaginationMeta, type PlatformApi, type ResolvePageRequest, type RunManuallyRequestWritable, type RunManuallyResponse, type RunWorkflowRequest, type RunWorkflowResponse, type SessionResponse, type SessionResult, type SyncRoutesResponse, type TemplateConfig, type TenantListResponse, type TenantResponse, ToolIntent, type ToolRequest, type ToolRequestWritable, type ToolResponse, type UpdatePageRequest, type UploadLinkRequest, type UploadLinkResponse, type WorkflowAiAgentRequestWritable, type WorkflowLogListResponse, type WorkflowLogResponse, createIsolatedPlatformApi, createPlatformApi, createSession, revokeSession };
|
|
6598
6691
|
//# sourceMappingURL=index.d.mts.map
|