@alvera-ai/platform-sdk 0.10.0-rc.21 → 0.10.0-rc.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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?: ComplexTemplateConfigResponse | null;
244
246
  /**
245
247
  * Generic table ID (required when dataset_type is generic_table)
246
248
  */
@@ -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,25 @@ 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
+ * Filesystem path (required for :system type)
400
+ */
401
+ path?: string | null;
402
+ /**
403
+ * Template resolution type
404
+ */
405
+ type: 'system' | 'custom' | 'identity' | 'null';
406
+ };
385
407
  /**
386
408
  * DataActivationClientLogResponse
387
409
  *
@@ -440,6 +462,7 @@ type S3CallResponse = {
440
462
  * Action Status Updater — automated polling for delivery status updates.
441
463
  */
442
464
  type ActionStatusUpdaterResponse = {
465
+ action_log_config?: ComplexTemplateConfigResponse | null;
443
466
  /**
444
467
  * SHA-256 drift fingerprint over authored fields (server-computed)
445
468
  */
@@ -460,6 +483,7 @@ type ActionStatusUpdaterResponse = {
460
483
  * Creation timestamp
461
484
  */
462
485
  readonly inserted_at?: string;
486
+ message_config: ComplexTemplateConfigResponse | null;
463
487
  /**
464
488
  * Updater name
465
489
  */
@@ -531,6 +555,7 @@ type AwsLambdaResponse = {
531
555
  * Authentication method (required when type is external)
532
556
  */
533
557
  auth_method?: 'access_key' | 'iam_role' | 'cloudformation';
558
+ base_payload?: ComplexTemplateConfigResponse | null;
534
559
  /**
535
560
  * User-provided environment variable key-value entries passed to the Lambda function
536
561
  */
@@ -634,25 +659,6 @@ type ExecuteActionRequest = {
634
659
  */
635
660
  trigger_override?: boolean;
636
661
  };
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
662
  /**
657
663
  * InteroperabilityRunResponse
658
664
  *
@@ -972,6 +978,7 @@ type InteroperabilityContractResponse = {
972
978
  * Creation timestamp
973
979
  */
974
980
  inserted_at?: string;
981
+ mdm_input_config?: ComplexTemplateConfigResponse | null;
975
982
  /**
976
983
  * Human-readable contract name
977
984
  */
@@ -988,6 +995,7 @@ type InteroperabilityContractResponse = {
988
995
  * Whether this contract was auto-created by the system (read-only, cannot be edited or deleted)
989
996
  */
990
997
  readonly system_created?: boolean;
998
+ template_config: ComplexTemplateConfigResponse | null;
991
999
  /**
992
1000
  * Template type (synced from template_config.type)
993
1001
  */
@@ -1077,12 +1085,31 @@ type ToolRequest = {
1077
1085
  * Tool name
1078
1086
  */
1079
1087
  name?: string;
1080
- response_extractor?: TemplateConfigRequest;
1088
+ response_extractor?: ComplexTemplateConfigRequest;
1081
1089
  /**
1082
1090
  * Tool status
1083
1091
  */
1084
1092
  status?: 'draft' | 'active' | 'inactive' | 'error' | 'marked_for_deletion';
1085
1093
  };
1094
+ /**
1095
+ * SimpleTemplateConfigRequest
1096
+ *
1097
+ * Inline Liquid template configuration (output_schema is server-derived, never request-supplied) Request
1098
+ */
1099
+ type SimpleTemplateConfigRequest = {
1100
+ /**
1101
+ * Liquid template body (required for :custom type)
1102
+ */
1103
+ body?: string | null;
1104
+ /**
1105
+ * Filesystem path (required for :system type)
1106
+ */
1107
+ path?: string | null;
1108
+ /**
1109
+ * Template resolution type
1110
+ */
1111
+ type: 'system' | 'custom' | 'identity' | 'null';
1112
+ };
1086
1113
  /**
1087
1114
  * DownloadUrlResponse
1088
1115
  *
@@ -1100,12 +1127,12 @@ type DownloadUrlResponse = {
1100
1127
  * SMS tool-call config — Liquid-templated recipient and body plus transactional/promotional category.
1101
1128
  */
1102
1129
  type SmsCallResponse = {
1103
- body: TemplateConfigResponse;
1130
+ body: ComplexTemplateConfigResponse | null;
1104
1131
  /**
1105
1132
  * SMS category — transactional vs promotional
1106
1133
  */
1107
1134
  sms_type?: 'transactional' | 'promotional';
1108
- to: TemplateConfigResponse;
1135
+ to: ComplexTemplateConfigResponse | null;
1109
1136
  };
1110
1137
  /**
1111
1138
  * ResolvePageRequest
@@ -1142,6 +1169,7 @@ type ResolvePageRequest = {
1142
1169
  * AWS Lambda invocation descriptor — Liquid-templated payload + timeout.
1143
1170
  */
1144
1171
  type AwsLambdaCallResponse = {
1172
+ payload: ComplexTemplateConfigResponse | null;
1145
1173
  /**
1146
1174
  * Lambda invocation timeout in milliseconds (max 900000 = 15 minutes)
1147
1175
  */
@@ -1153,14 +1181,14 @@ type AwsLambdaCallResponse = {
1153
1181
  * 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
1182
  */
1155
1183
  type RestCallResponse = {
1156
- body?: TemplateConfigResponse;
1184
+ body?: ComplexTemplateConfigResponse | null;
1157
1185
  /**
1158
1186
  * HTTP method
1159
1187
  */
1160
1188
  method: 'head' | 'get' | 'put' | 'post' | 'delete' | 'patch';
1161
- pagination_context_template: TemplateConfigResponse;
1162
- params?: TemplateConfigResponse;
1163
- path: TemplateConfigResponse;
1189
+ pagination_context_template: ComplexTemplateConfigResponse | null;
1190
+ params?: ComplexTemplateConfigResponse | null;
1191
+ path: ComplexTemplateConfigResponse | null;
1164
1192
  };
1165
1193
  /**
1166
1194
  * CloudStorageCustomResponse
@@ -1224,6 +1252,7 @@ type SharePointResponse = {
1224
1252
  * Microsoft tenant ID (GUID)
1225
1253
  */
1226
1254
  azure_tenant_id: string;
1255
+ base_path?: ComplexTemplateConfigResponse | null;
1227
1256
  /**
1228
1257
  * Azure AD application/client ID (used when auth_method is client_credentials)
1229
1258
  */
@@ -1263,6 +1292,10 @@ type RestapiResponse = {
1263
1292
  * Authentication method
1264
1293
  */
1265
1294
  auth_method: 'none' | 'api_key' | 'basic' | 'bearer' | 'oauth2' | 'oidc';
1295
+ base_body?: ComplexTemplateConfigResponse | null;
1296
+ base_headers?: ComplexTemplateConfigResponse | null;
1297
+ base_path?: ComplexTemplateConfigResponse | null;
1298
+ base_query?: ComplexTemplateConfigResponse | null;
1266
1299
  /**
1267
1300
  * Base URL (https) of the REST API endpoint
1268
1301
  */
@@ -1357,9 +1390,9 @@ type ConnectedAppListResponse = {
1357
1390
  * Email tool-call config — Liquid-templated recipient, subject, and body.
1358
1391
  */
1359
1392
  type EmailCallResponse = {
1360
- body: TemplateConfigResponse;
1361
- subject: TemplateConfigResponse;
1362
- to: TemplateConfigResponse;
1393
+ body: ComplexTemplateConfigResponse | null;
1394
+ subject: ComplexTemplateConfigResponse | null;
1395
+ to: ComplexTemplateConfigResponse | null;
1363
1396
  };
1364
1397
  /**
1365
1398
  * ActionSQLQueryCallResponse
@@ -1393,6 +1426,7 @@ type WorkflowAiAgentResponse = {
1393
1426
  * AI agent ID
1394
1427
  */
1395
1428
  ai_agent_id: string;
1429
+ context_mapping_config: ComplexTemplateConfigResponse | null;
1396
1430
  /**
1397
1431
  * Creation timestamp
1398
1432
  */
@@ -1689,6 +1723,7 @@ type MinimalAiAgentResponse = {
1689
1723
  * Agent name
1690
1724
  */
1691
1725
  name: string;
1726
+ prompt_config: ComplexTemplateConfigResponse | null;
1692
1727
  /**
1693
1728
  * URL-friendly slug
1694
1729
  */
@@ -2075,6 +2110,7 @@ type SftpResponse = {
2075
2110
  * Base directory path on the SFTP server
2076
2111
  */
2077
2112
  base_path: string;
2113
+ base_path_template?: ComplexTemplateConfigResponse | null;
2078
2114
  /**
2079
2115
  * SFTP server hostname or IP address
2080
2116
  */
@@ -2100,7 +2136,26 @@ type ToolSnsResponse = SnsResponse & {
2100
2136
  * SQL query descriptor — Liquid-templated query body.
2101
2137
  */
2102
2138
  type SqlQueryCallResponse = {
2103
- [key: string]: unknown;
2139
+ query: ComplexTemplateConfigResponse | null;
2140
+ };
2141
+ /**
2142
+ * ComplexTemplateConfigResponse
2143
+ *
2144
+ * Inline Liquid template configuration including the rendered-output JSON Schema
2145
+ */
2146
+ type ComplexTemplateConfigResponse = {
2147
+ /**
2148
+ * Liquid template body (required for :custom type)
2149
+ */
2150
+ body?: string | null;
2151
+ /**
2152
+ * Filesystem path (required for :system type)
2153
+ */
2154
+ path?: string | null;
2155
+ /**
2156
+ * Template resolution type
2157
+ */
2158
+ type: 'system' | 'custom' | 'identity' | 'null';
2104
2159
  };
2105
2160
  /**
2106
2161
  * ActionSFTPCallResponse
@@ -2182,6 +2237,7 @@ type ActionEmailCallResponse = EmailCallResponse & {
2182
2237
  * S3-compatible storage tool configuration with a nested polymorphic provider config (AWS or R2).
2183
2238
  */
2184
2239
  type S3Response = {
2240
+ base_prefix?: ComplexTemplateConfigResponse | null;
2185
2241
  config: ({
2186
2242
  storage_config_type: 'aws';
2187
2243
  } & S3CloudStorageAwsResponse) | ({
@@ -2359,7 +2415,7 @@ type ToolResponse = {
2359
2415
  * Tool name
2360
2416
  */
2361
2417
  name?: string;
2362
- response_extractor?: TemplateConfigResponse;
2418
+ response_extractor?: ComplexTemplateConfigResponse | null;
2363
2419
  /**
2364
2420
  * Tool status
2365
2421
  */
@@ -2445,6 +2501,7 @@ type SnsResponse = {
2445
2501
  * AWS authentication method
2446
2502
  */
2447
2503
  auth_method: 'access_key' | 'iam_role' | 'assume_role';
2504
+ base_message?: ComplexTemplateConfigResponse | null;
2448
2505
  /**
2449
2506
  * Custom SNS endpoint URL (e.g., http://localhost:4566 for LocalStack); leave blank for real AWS
2450
2507
  */
@@ -2469,6 +2526,7 @@ type InteroperabilityContractAiAgentResponse = {
2469
2526
  * AI agent ID
2470
2527
  */
2471
2528
  ai_agent_id: string;
2529
+ context_mapping_config?: ComplexTemplateConfigResponse | null;
2472
2530
  /**
2473
2531
  * Creation timestamp
2474
2532
  */
@@ -2519,14 +2577,14 @@ type DatalakeMigrateResponse = {
2519
2577
  * 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
2578
  */
2521
2579
  type RestCallRequest = {
2522
- body?: TemplateConfigRequest;
2580
+ body?: SimpleTemplateConfigRequest;
2523
2581
  /**
2524
2582
  * HTTP method
2525
2583
  */
2526
2584
  method: 'head' | 'get' | 'put' | 'post' | 'delete' | 'patch';
2527
- pagination_context_template: TemplateConfigRequest;
2528
- params?: TemplateConfigRequest;
2529
- path: TemplateConfigRequest;
2585
+ pagination_context_template: SimpleTemplateConfigRequest;
2586
+ params?: SimpleTemplateConfigRequest;
2587
+ path: SimpleTemplateConfigRequest;
2530
2588
  };
2531
2589
  /**
2532
2590
  * SQLDatabaseResponse
@@ -2534,6 +2592,7 @@ type RestCallRequest = {
2534
2592
  * SQL database connection configuration (PostgreSQL, MySQL, MSSQL, SQLite, Snowflake).
2535
2593
  */
2536
2594
  type SqlDatabaseResponse = {
2595
+ base_query?: ComplexTemplateConfigResponse | null;
2537
2596
  /**
2538
2597
  * Database host (hostname or IP address)
2539
2598
  */
@@ -2643,6 +2702,7 @@ type SqsResponse = {
2643
2702
  * AWS authentication method
2644
2703
  */
2645
2704
  auth_method: 'access_key' | 'iam_role';
2705
+ base_message?: ComplexTemplateConfigResponse | null;
2646
2706
  /**
2647
2707
  * Whether the queue is a FIFO queue (URL must end with .fifo)
2648
2708
  */
@@ -2660,25 +2720,6 @@ type SqsResponse = {
2660
2720
  */
2661
2721
  region: string;
2662
2722
  };
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
2723
  /**
2683
2724
  * PaginationMeta
2684
2725
  *
@@ -2961,7 +3002,7 @@ type DataActivationClientResponse = {
2961
3002
  * IDs of downstream DACs triggered after this one completes
2962
3003
  */
2963
3004
  downstream_connection_ids?: Array<string>;
2964
- filter_config?: TemplateConfigResponse;
3005
+ filter_config?: ComplexTemplateConfigResponse | null;
2965
3006
  /**
2966
3007
  * DAC ID
2967
3008
  */
@@ -2986,7 +3027,7 @@ type DataActivationClientResponse = {
2986
3027
  * DAC name
2987
3028
  */
2988
3029
  name: string;
2989
- response_extractor?: TemplateConfigResponse;
3030
+ response_extractor?: ComplexTemplateConfigResponse | null;
2990
3031
  /**
2991
3032
  * 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
3033
  */
@@ -3472,6 +3513,7 @@ type AiAgentResponse = {
3472
3513
  * Agent name
3473
3514
  */
3474
3515
  name: string;
3516
+ prompt_config: ComplexTemplateConfigResponse | null;
3475
3517
  /**
3476
3518
  * URL-friendly slug
3477
3519
  */
@@ -3810,6 +3852,25 @@ type DatalakeRequestWritable = {
3810
3852
  type ToolRestapiRequestWritable = RestapiRequestWritable & {
3811
3853
  tool_body_type: 'rest_api';
3812
3854
  };
3855
+ /**
3856
+ * ComplexTemplateConfigRequest
3857
+ *
3858
+ * Inline Liquid template configuration including the rendered-output JSON Schema Request
3859
+ */
3860
+ type ComplexTemplateConfigRequestWritable = {
3861
+ /**
3862
+ * Liquid template body (required for :custom type)
3863
+ */
3864
+ body?: string | null;
3865
+ /**
3866
+ * Filesystem path (required for :system type)
3867
+ */
3868
+ path?: string | null;
3869
+ /**
3870
+ * Template resolution type
3871
+ */
3872
+ type: 'system' | 'custom' | 'identity' | 'null';
3873
+ };
3813
3874
  /**
3814
3875
  * DataActivationClientSharePointExcelCallRequest
3815
3876
  */
@@ -3826,10 +3887,6 @@ type AgenticWorkflowRequestWritable = {
3826
3887
  * 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
3888
  */
3828
3889
  actions?: Array<ActionResponseWritable>;
3829
- /**
3830
- * AI agents to attach (request only)
3831
- */
3832
- ai_agents?: Array<WorkflowAiAgentRequestWritable>;
3833
3890
  /**
3834
3891
  * 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
3892
  */
@@ -3838,10 +3895,12 @@ type AgenticWorkflowRequestWritable = {
3838
3895
  * Dataset type the workflow listens on (e.g. patient, appointment, generic_table)
3839
3896
  */
3840
3897
  dataset_type: string;
3898
+ decision_config?: ComplexTemplateConfigRequestWritable;
3841
3899
  /**
3842
3900
  * Workflow description
3843
3901
  */
3844
3902
  description: string;
3903
+ filter_config?: SimpleTemplateConfigRequest;
3845
3904
  /**
3846
3905
  * Generic table ID (required when dataset_type is generic_table)
3847
3906
  */
@@ -3881,6 +3940,7 @@ type InteroperabilityContractAiAgentRequestWritable = {
3881
3940
  * AI agent ID
3882
3941
  */
3883
3942
  ai_agent_id: string;
3943
+ context_mapping_config?: ComplexTemplateConfigRequestWritable;
3884
3944
  /**
3885
3945
  * Execution order in the enrichment pipeline
3886
3946
  */
@@ -3990,7 +4050,7 @@ type ToolRequestWritable = {
3990
4050
  * Tool name
3991
4051
  */
3992
4052
  name?: string;
3993
- response_extractor?: TemplateConfigRequestWritable;
4053
+ response_extractor?: ComplexTemplateConfigRequestWritable;
3994
4054
  /**
3995
4055
  * Tool status
3996
4056
  */
@@ -4010,6 +4070,7 @@ type AwsLambdaRequestWritable = {
4010
4070
  * Authentication method (required when type is external)
4011
4071
  */
4012
4072
  auth_method?: 'access_key' | 'iam_role' | 'cloudformation';
4073
+ base_payload?: ComplexTemplateConfigRequestWritable;
4013
4074
  /**
4014
4075
  * User-provided environment variable key-value entries passed to the Lambda function
4015
4076
  */
@@ -4063,6 +4124,7 @@ type WorkflowAiAgentRequestWritable = {
4063
4124
  * AI agent ID
4064
4125
  */
4065
4126
  ai_agent_id: string;
4127
+ context_mapping_config: SimpleTemplateConfigRequest;
4066
4128
  /**
4067
4129
  * Execution order in the enrichment pipeline
4068
4130
  */
@@ -4151,6 +4213,7 @@ type ToolSftpRequestWritable = SftpRequestWritable & {
4151
4213
  * AWS Lambda invocation descriptor — Liquid-templated payload + timeout. Request
4152
4214
  */
4153
4215
  type AwsLambdaCallRequestWritable = {
4216
+ payload: SimpleTemplateConfigRequest;
4154
4217
  /**
4155
4218
  * Lambda invocation timeout in milliseconds (max 900000 = 15 minutes)
4156
4219
  */
@@ -4225,6 +4288,7 @@ type SharePointRequestWritable = {
4225
4288
  * Microsoft tenant ID (GUID)
4226
4289
  */
4227
4290
  azure_tenant_id: string;
4291
+ base_path?: ComplexTemplateConfigRequestWritable;
4228
4292
  /**
4229
4293
  * Azure AD application/client ID (used when auth_method is client_credentials)
4230
4294
  */
@@ -4256,7 +4320,7 @@ type SharePointRequestWritable = {
4256
4320
  * SQL query descriptor — Liquid-templated query body. Request
4257
4321
  */
4258
4322
  type SqlQueryCallRequestWritable = {
4259
- [key: string]: unknown;
4323
+ query: SimpleTemplateConfigRequest;
4260
4324
  };
4261
4325
  /**
4262
4326
  * CloudWatchLogGroupRequest
@@ -4280,6 +4344,7 @@ type CloudWatchLogGroupRequestWritable = {
4280
4344
  * AWS authentication method
4281
4345
  */
4282
4346
  auth_method: 'access_key' | 'iam_role' | 'assume_role';
4347
+ base_filter_pattern?: ComplexTemplateConfigRequestWritable;
4283
4348
  /**
4284
4349
  * Custom CloudWatch Logs endpoint URL (e.g., http://localhost:4566 for LocalStack)
4285
4350
  */
@@ -4315,6 +4380,7 @@ type SnsRequestWritable = {
4315
4380
  * AWS authentication method
4316
4381
  */
4317
4382
  auth_method: 'access_key' | 'iam_role' | 'assume_role';
4383
+ base_message?: ComplexTemplateConfigRequestWritable;
4318
4384
  /**
4319
4385
  * Custom SNS endpoint URL (e.g., http://localhost:4566 for LocalStack); leave blank for real AWS
4320
4386
  */
@@ -4352,6 +4418,7 @@ type SqsRequestWritable = {
4352
4418
  * AWS authentication method
4353
4419
  */
4354
4420
  auth_method: 'access_key' | 'iam_role';
4421
+ base_message?: ComplexTemplateConfigRequestWritable;
4355
4422
  /**
4356
4423
  * Whether the queue is a FIFO queue (URL must end with .fifo)
4357
4424
  */
@@ -4405,7 +4472,7 @@ type InteroperabilityContractRequestWritable = {
4405
4472
  * Creation timestamp
4406
4473
  */
4407
4474
  inserted_at?: string;
4408
- mdm_input_config?: TemplateConfigRequestWritable;
4475
+ mdm_input_config?: SimpleTemplateConfigRequest;
4409
4476
  /**
4410
4477
  * Human-readable contract name
4411
4478
  */
@@ -4418,7 +4485,7 @@ type InteroperabilityContractRequestWritable = {
4418
4485
  * URL-friendly slug (derived from name on insert; immutable)
4419
4486
  */
4420
4487
  slug?: string;
4421
- template_config: TemplateConfigRequestWritable;
4488
+ template_config: SimpleTemplateConfigRequest;
4422
4489
  /**
4423
4490
  * Template type (synced from template_config.type)
4424
4491
  */
@@ -4434,33 +4501,14 @@ type InteroperabilityContractRequestWritable = {
4434
4501
  * 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
4502
  */
4436
4503
  type RestCallRequestWritable = {
4437
- body?: TemplateConfigRequestWritable;
4504
+ body?: SimpleTemplateConfigRequest;
4438
4505
  /**
4439
4506
  * HTTP method
4440
4507
  */
4441
4508
  method: 'head' | 'get' | 'put' | 'post' | 'delete' | 'patch';
4442
- pagination_context_template: TemplateConfigRequestWritable;
4443
- params?: TemplateConfigRequestWritable;
4444
- path: TemplateConfigRequestWritable;
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';
4509
+ pagination_context_template: SimpleTemplateConfigRequest;
4510
+ params?: SimpleTemplateConfigRequest;
4511
+ path: SimpleTemplateConfigRequest;
4464
4512
  };
4465
4513
  /**
4466
4514
  * RESTAPIRequest
@@ -4484,6 +4532,10 @@ type RestapiRequestWritable = {
4484
4532
  * Authentication method
4485
4533
  */
4486
4534
  auth_method: 'none' | 'api_key' | 'basic' | 'bearer' | 'oauth2' | 'oidc';
4535
+ base_body?: SimpleTemplateConfigRequest;
4536
+ base_headers?: SimpleTemplateConfigRequest;
4537
+ base_path?: SimpleTemplateConfigRequest;
4538
+ base_query?: SimpleTemplateConfigRequest;
4487
4539
  /**
4488
4540
  * Base URL (https) of the REST API endpoint
4489
4541
  */
@@ -4612,6 +4664,7 @@ type SftpRequestWritable = {
4612
4664
  * Base directory path on the SFTP server
4613
4665
  */
4614
4666
  base_path: string;
4667
+ base_path_template?: ComplexTemplateConfigRequestWritable;
4615
4668
  /**
4616
4669
  * SFTP server hostname or IP address
4617
4670
  */
@@ -4690,7 +4743,7 @@ type DataActivationClientRequestWritable = {
4690
4743
  * IDs of downstream DACs triggered after this one completes
4691
4744
  */
4692
4745
  downstream_connection_ids?: Array<string>;
4693
- filter_config?: TemplateConfigRequestWritable;
4746
+ filter_config?: SimpleTemplateConfigRequest;
4694
4747
  /**
4695
4748
  * IDs of interoperability contracts used to transform each fetched row
4696
4749
  */
@@ -4703,7 +4756,7 @@ type DataActivationClientRequestWritable = {
4703
4756
  * DAC name
4704
4757
  */
4705
4758
  name: string;
4706
- response_extractor?: TemplateConfigRequestWritable;
4759
+ response_extractor?: SimpleTemplateConfigRequest;
4707
4760
  /**
4708
4761
  * 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
4762
  */
@@ -4862,6 +4915,7 @@ type ConnectedAppRequestWritable = {
4862
4915
  * S3-compatible storage tool configuration with a nested polymorphic provider config (AWS or R2). Request
4863
4916
  */
4864
4917
  type S3RequestWritable = {
4918
+ base_prefix?: ComplexTemplateConfigRequestWritable;
4865
4919
  config: ({
4866
4920
  storage_config_type: 'aws';
4867
4921
  } & S3CloudStorageAwsRequestWritable) | ({
@@ -4874,6 +4928,7 @@ type S3RequestWritable = {
4874
4928
  * SQL database connection configuration (PostgreSQL, MySQL, MSSQL, SQLite, Snowflake). Request
4875
4929
  */
4876
4930
  type SqlDatabaseRequestWritable = {
4931
+ base_query?: ComplexTemplateConfigRequestWritable;
4877
4932
  /**
4878
4933
  * Database host (hostname or IP address)
4879
4934
  */
@@ -6436,6 +6491,11 @@ declare function _buildApi(myClient: Client): {
6436
6491
  request: Request;
6437
6492
  response: Response;
6438
6493
  }>;
6494
+ attachAiAgent: (tenantSlug: string, datalakeSlug: string, slug: string, body: InteroperabilityContractAiAgentRequestWritable) => Promise<{
6495
+ data: InteroperabilityContractAiAgentResponse;
6496
+ request: Request;
6497
+ response: Response;
6498
+ }>;
6439
6499
  detachAiAgent: (tenantSlug: string, datalakeSlug: string, slug: string, aiAgentId: string) => Promise<{
6440
6500
  data: void;
6441
6501
  request: Request;
@@ -6510,6 +6570,21 @@ declare function _buildApi(myClient: Client): {
6510
6570
  request: Request;
6511
6571
  response: Response;
6512
6572
  }>;
6573
+ attachAiAgent: (tenantSlug: string, datalakeSlug: string, slug: string, body: WorkflowAiAgentRequestWritable) => Promise<{
6574
+ data: WorkflowAiAgentResponse;
6575
+ request: Request;
6576
+ response: Response;
6577
+ }>;
6578
+ detachAiAgent: (tenantSlug: string, datalakeSlug: string, slug: string, aiAgentId: string) => Promise<{
6579
+ data: void;
6580
+ request: Request;
6581
+ response: Response;
6582
+ }>;
6583
+ updateAttachedAiAgent: (tenantSlug: string, datalakeSlug: string, slug: string, aiAgentId: string, body: WorkflowAiAgentRequestWritable) => Promise<{
6584
+ data: WorkflowAiAgentResponse;
6585
+ request: Request;
6586
+ response: Response;
6587
+ }>;
6513
6588
  execute: (tenantSlug: string, datalakeSlug: string, workflowSlug: string, body: Record<string, unknown>) => Promise<{
6514
6589
  data: ExecuteActionResponse;
6515
6590
  request: Request;