@alvera-ai/platform-sdk 0.17.0 → 0.18.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 (83) hide show
  1. package/.agent/AGENTS.md +82 -144
  2. package/.agent/account_management.md +2 -2
  3. package/.agent/action_logs.md +4 -4
  4. package/.agent/ai_agents.md +28 -21
  5. package/.agent/ai_sandbox.md +49 -39
  6. package/.agent/connected_apps.md +3 -3
  7. package/.agent/cookbook/_fixtures/README.md +1 -1
  8. package/.agent/cookbook/_fixtures/{foundation → organic-marketing}/_lead_submissions_foundation_generic_table.liquid +1 -1
  9. package/.agent/cookbook/_fixtures/organic-marketing/_lead_submissions_foundation_legal_entity.liquid +80 -0
  10. package/.agent/cookbook/_fixtures/{foundation → organic-marketing}/_lead_submissions_foundation_mdm.liquid +2 -1
  11. package/.agent/cookbook/_fixtures/payments-compliance/_compliance_screenings_generic_table.liquid +57 -0
  12. package/.agent/cookbook/_fixtures/payments-compliance/_compliance_screenings_legal_entity.liquid +30 -0
  13. package/.agent/cookbook/_fixtures/payments-compliance/_compliance_screenings_mdm.liquid +44 -0
  14. package/.agent/cookbook/_fixtures/payments-compliance/_payment_accounts_generic_table.liquid +57 -0
  15. package/.agent/cookbook/_fixtures/payments-compliance/_payment_accounts_legal_entity.liquid +36 -0
  16. package/.agent/cookbook/_fixtures/payments-compliance/_payment_accounts_mdm.liquid +41 -0
  17. package/.agent/cookbook/_fixtures/primary-care-feedback/_cahps_appointments_generic_table.liquid +70 -0
  18. package/.agent/cookbook/_fixtures/primary-care-feedback/_cahps_appointments_legal_entity.liquid +52 -0
  19. package/.agent/cookbook/_fixtures/primary-care-feedback/_cahps_appointments_mdm.liquid +42 -0
  20. package/.agent/cookbook/_fixtures/subscription-saas/_customers_subscription_generic_table.liquid +38 -0
  21. package/.agent/cookbook/_fixtures/subscription-saas/_customers_subscription_legal_entity.liquid +48 -0
  22. package/.agent/cookbook/_fixtures/subscription-saas/_customers_subscription_mdm.liquid +49 -0
  23. package/.agent/cookbook/organic-marketing.md +2801 -0
  24. package/.agent/cookbook/payments-compliance.md +2180 -0
  25. package/.agent/cookbook/primary-care.md +2175 -0
  26. package/.agent/cookbook/subscription-saas.md +2403 -0
  27. package/.agent/data_activation_clients.md +65 -52
  28. package/.agent/datalakes.md +338 -171
  29. package/.agent/errors.md +3 -3
  30. package/.agent/generic_tables.md +151 -62
  31. package/.agent/interoperability_contracts.md +57 -22
  32. package/.agent/mdm.md +136 -153
  33. package/.agent/messages.md +36 -34
  34. package/.agent/mock-services.md +1 -1
  35. package/.agent/mutations.md +2 -2
  36. package/.agent/templates.md +14 -13
  37. package/.agent/tools.md +63 -21
  38. package/.agent/type_naming.md +13 -13
  39. package/.agent/workflows.md +99 -53
  40. package/README.md +2 -2
  41. package/dist/bin/platform-sdk.mjs +33 -47
  42. package/dist/bin/platform-sdk.mjs.map +1 -1
  43. package/dist/index.d.mts +565 -379
  44. package/dist/index.d.mts.map +1 -1
  45. package/dist/index.mjs +494 -59
  46. package/dist/index.mjs.map +1 -1
  47. package/package.json +4 -3
  48. package/.agent/cookbook/_fixtures/foundation/_lead_submissions_foundation_legal_entity.liquid +0 -88
  49. package/.agent/cookbook/_fixtures/healthcare/_cahps_appointments_healthcare_appointment.liquid +0 -47
  50. package/.agent/cookbook/_fixtures/healthcare/_cahps_appointments_healthcare_mdm.liquid +0 -24
  51. package/.agent/cookbook/_fixtures/healthcare/_cahps_appointments_healthcare_patient.liquid +0 -38
  52. package/.agent/cookbook/_fixtures/payments/_compliance_screenings_payments_compliance_screening.liquid +0 -59
  53. package/.agent/cookbook/_fixtures/payments/_compliance_screenings_payments_mdm.liquid +0 -36
  54. package/.agent/cookbook/_fixtures/payments/_payment_accounts_payments_mdm.liquid +0 -30
  55. package/.agent/cookbook/_fixtures/payments/_payment_accounts_payments_payment_account.liquid +0 -55
  56. package/.agent/cookbook/_fixtures/subscription/_customers_subscription_mdm.liquid +0 -20
  57. package/.agent/cookbook/_setup/foundation.md +0 -359
  58. package/.agent/cookbook/_setup/healthcare.md +0 -361
  59. package/.agent/cookbook/_setup/payments.md +0 -365
  60. package/.agent/cookbook/_setup/subscription.md +0 -364
  61. package/.agent/cookbook/action-status-updaters.md +0 -278
  62. package/.agent/cookbook/ai-agent-invoke.md +0 -279
  63. package/.agent/cookbook/appointment-review-sms-workflow.md +0 -801
  64. package/.agent/cookbook/birthday-greeting-sms-trigger.md +0 -696
  65. package/.agent/cookbook/bulk-ingest.md +0 -302
  66. package/.agent/cookbook/contact-us-triage-with-llm.md +0 -663
  67. package/.agent/cookbook/dunning-sms-for-delinquent.md +0 -659
  68. package/.agent/cookbook/generic-tables.md +0 -244
  69. package/.agent/cookbook/invite-team.md +0 -200
  70. package/.agent/cookbook/kyc-notification-on-account-activation.md +0 -661
  71. package/.agent/cookbook/marketing-campaign-send.md +0 -1044
  72. package/.agent/cookbook/paginated-restapi-poller.md +0 -383
  73. package/.agent/cookbook/rest-fetch.md +0 -273
  74. package/.agent/cookbook/sanctions-screening-with-agent-review.md +0 -773
  75. package/.agent/cookbook/score-leads-with-llm-categorization.md +0 -665
  76. package/.agent/cookbook/system-templates.md +0 -165
  77. package/.agent/cookbook/talk-to-data.md +0 -178
  78. package/.agent/cookbook/triage-prospects-by-priority.md +0 -571
  79. package/.agent/cookbook/welcome-sms-for-customers.md +0 -647
  80. /package/.agent/cookbook/_fixtures/{healthcare → primary-care-feedback}/memorandum-of-association-01.png +0 -0
  81. /package/.agent/cookbook/_fixtures/{healthcare → primary-care-feedback}/sample_two_page.pdf +0 -0
  82. /package/.agent/cookbook/_fixtures/{subscription → subscription-saas}/_customers_subscription_customer.liquid +0 -0
  83. /package/.agent/cookbook/_fixtures/{subscription → subscription-saas}/stripe_customers_batch1.csv +0 -0
package/dist/index.d.mts CHANGED
@@ -29,9 +29,9 @@ type EnvironmentName = keyof typeof ENVIRONMENTS;
29
29
  */
30
30
  type TextToSqlRequest = {
31
31
  /**
32
- * Which datalake schema to target: `unregulated` (tokenized) or `regulated` (raw)
32
+ * Which lake to target: `raw`, `tokenized` or `redacted`
33
33
  */
34
- mode: 'regulated' | 'unregulated';
34
+ mode: 'raw' | 'tokenized' | 'redacted';
35
35
  /**
36
36
  * Natural-language description of the desired query
37
37
  */
@@ -47,9 +47,9 @@ type TextToSqlRequest = {
47
47
  * `error_message`.
48
48
  *
49
49
  * UserSearch carries no `data_access_mode` of its own — the capability check
50
- * runs at query time via `Platform.RegulatedDatalakeRepo.prepare_query/3`,
51
- * which reads the ambient session and raises 403 when the ceiling is
52
- * insufficient. ExOpenApiUtils derives `UserSearchRequest` (writeable subset)
50
+ * runs where the lake's connection is acquired, via
51
+ * `Platform.Datalakes.authorize_lake_access!/1`, which reads the ambient
52
+ * session and raises 403 when the ceiling is insufficient. ExOpenApiUtils derives `UserSearchRequest` (writeable subset)
53
53
  * and `UserSearchResponse` (full readable shape) from this declaration via
54
54
  * the readOnly/writeOnly markers on each property.
55
55
  *
@@ -209,7 +209,7 @@ type ContextDatasetResponse = {
209
209
  position?: number;
210
210
  readonly updated_at?: string;
211
211
  /**
212
- * Liquid-templated SQL WHERE clause for filtering records at runtime. The context builder appends the MDM subject FK automatically.
212
+ * Liquid-templated SQL WHERE clause for filtering records at runtime. The context builder appends the legal entity FK automatically.
213
213
  */
214
214
  where_clause?: string | null;
215
215
  /**
@@ -290,7 +290,7 @@ type AgenticWorkflowResponse = {
290
290
  readonly context_datasets?: Array<ContextDatasetResponse>;
291
291
  datalake?: DatalakeResponse;
292
292
  /**
293
- * Dataset type the workflow listens on (e.g. patient, appointment, generic_table)
293
+ * Dataset type the workflow listens on (e.g. legal_entity, document, generic_table)
294
294
  */
295
295
  dataset_type: string;
296
296
  decision_config?: ComplexTemplateConfigResponse | null;
@@ -316,7 +316,7 @@ type AgenticWorkflowResponse = {
316
316
  */
317
317
  name: string;
318
318
  /**
319
- * When true, skip MDM subject resolution
319
+ * When true, skip MDM resolution
320
320
  */
321
321
  skip_mdm_resolution?: boolean;
322
322
  /**
@@ -340,6 +340,25 @@ type AgenticWorkflowResponse = {
340
340
  */
341
341
  readonly workflow_ai_agents?: Array<WorkflowAiAgentResponse>;
342
342
  };
343
+ /**
344
+ * AdvancedMigrationRequest
345
+ *
346
+ * An advanced migration — SQL a person wrote by hand for one datalake, run by the same migrator that applies the platform's own generated changes. Once it has run it can no longer be edited or deleted. Request
347
+ */
348
+ type AdvancedMigrationRequest = {
349
+ /**
350
+ * The SQL that reverses `up_statement`, used when rolling the datalake back.
351
+ */
352
+ down_statement: string;
353
+ /**
354
+ * Identifier for the migration, unique within the datalake. Must start with a capital letter and contain only letters, numbers and underscores — for example `RenameMemoToNote`.
355
+ */
356
+ name: string;
357
+ /**
358
+ * The SQL to run. Anything the platform will not generate for itself belongs here — renaming a column, changing its type, dropping one, adding an index.
359
+ */
360
+ up_statement: string;
361
+ };
343
362
  /**
344
363
  * ManualToolInvocationResponse
345
364
  *
@@ -507,7 +526,7 @@ type DataActivationClientLogResponse = {
507
526
  */
508
527
  readonly client_id: string;
509
528
  /**
510
- * Target dataset table for this slice (e.g. patients, observations)
529
+ * Target dataset table for this slice (e.g. legal_entities, documents)
511
530
  */
512
531
  dataset_table: string;
513
532
  /**
@@ -515,7 +534,7 @@ type DataActivationClientLogResponse = {
515
534
  */
516
535
  dataset_updated?: number;
517
536
  /**
518
- * Structured failure reason when `status` is `failed`; null otherwise.
537
+ * Structured failure reason when `status` is `failed` or `partial`; null otherwise.
519
538
  */
520
539
  readonly error?: string | null;
521
540
  /**
@@ -536,9 +555,9 @@ type DataActivationClientLogResponse = {
536
555
  */
537
556
  rows_ingested?: number;
538
557
  /**
539
- * `failed` when the batch died before enqueueing any row — the fetch itself errored. `rows_ingested` and `input_files` are 0/[] on such a row; read `error` for the reason.
558
+ * `failed` when the batch died before enqueueing any row — the fetch itself errored, and `rows_ingested` and `input_files` are 0/[] on such a row. `partial` when the batch ran and at least one row was refused on the way in; the rows that landed are still there. Read `error` for the reason in both cases.
540
559
  */
541
- status?: 'succeeded' | 'failed';
560
+ status?: 'succeeded' | 'partial' | 'failed';
542
561
  readonly updated_at?: string;
543
562
  };
544
563
  /**
@@ -847,7 +866,7 @@ type ExecuteActionRequest = {
847
866
  */
848
867
  dataset_id: string;
849
868
  /**
850
- * Decision key identifying which action to execute (e.g. 'cahps_survey')
869
+ * Decision key identifying which action to execute (e.g. 'send_welcome_email')
851
870
  */
852
871
  decision_key: string;
853
872
  /**
@@ -931,7 +950,11 @@ type ResolvePageResponse = {
931
950
  */
932
951
  expires_at: string;
933
952
  /**
934
- * Regulated message from the workflow action that generated this page token (raw body/subject)
953
+ * Legal entity id associated with this page token
954
+ */
955
+ legal_entity_id: string;
956
+ /**
957
+ * Raw message from the workflow action that generated this page token (raw body/subject)
935
958
  */
936
959
  message?: {
937
960
  /**
@@ -959,7 +982,7 @@ type ResolvePageResponse = {
959
982
  */
960
983
  form_submitted_at?: string | null;
961
984
  /**
962
- * Regulated message UUID
985
+ * Raw message UUID
963
986
  */
964
987
  id: string;
965
988
  /**
@@ -1002,13 +1025,9 @@ type ResolvePageResponse = {
1002
1025
  subject?: string | null;
1003
1026
  } | null;
1004
1027
  /**
1005
- * Route path within the connected app (e.g. /forms/cahps)
1028
+ * Route path within the connected app (e.g. /forms/onboarding)
1006
1029
  */
1007
1030
  route_path: string;
1008
- /**
1009
- * MDM subject ID associated with this page token
1010
- */
1011
- subject_id: string;
1012
1031
  /**
1013
1032
  * Puid token that was resolved
1014
1033
  */
@@ -1033,9 +1052,9 @@ declare enum ActionType {
1033
1052
  /**
1034
1053
  * MDMVerifyRequest
1035
1054
  *
1036
- * Request body for MDM subject identity verification.
1055
+ * Request body for MDM identity verification.
1037
1056
  *
1038
- * Every MDM subject is ultimately a **person** or a **company**, so the identity
1057
+ * Every legal entity is ultimately a **person** or a **company**, so the identity
1039
1058
  * fields are organized along that ontology rather than per industry. All identity
1040
1059
  * fields are optional on the wire; the datalake's own data-domain validator casts
1041
1060
  * only the fields its domain knows and requires **at least one** of them — a body
@@ -1044,55 +1063,64 @@ declare enum ActionType {
1044
1063
  *
1045
1064
  * Field vocabulary per data domain:
1046
1065
  *
1047
- * | data_domain | identity fields |
1066
+ * | identity fields |
1048
1067
  * |---|---|
1049
- * | `healthcare` | `given_name`, `family_name`, `birth_date`, `gender`, `phone`, `email`, `identifiers` |
1050
- * | `foundation` | `legal_entity_type`, `first_name`, `middle_name`, `last_name`, `preferred_name`, `date_of_birth`, `citizenship_country`, `nationality`, `business_name`, `doing_business_as_names`, `date_formed`, `jurisdiction_country`, `phone`, `email`, `identifiers` |
1051
- * | `subscription` | `customer_type`, `name`, `tax_id`, `phone`, `email`, `identifiers` |
1052
- * | `service_commerce` | `consumer_type`, `name`, `phone`, `email`, `identifiers` |
1053
- * | `core_banking` | `party_type`, `given_name`, `family_name`, `company_name`, `birth_date`, `phone`, `email`, `identifiers` |
1054
- * | `payments` | `account_holder_type`, `given_name`, `family_name`, `company_name`, `birth_date`, `phone`, `email`, `identifiers` (each identifier additionally requires `id_type`) |
1068
+ * | `legal_entity_type`, `first_name`, `middle_name`, `last_name`, `preferred_name`, `date_of_birth`, `citizenship_country`, `nationality`, `business_name`, `doing_business_as_names`, `date_formed`, `jurisdiction_country`, `phone`, `email`, `identifiers` |
1069
+ *
1070
+ * Every property below is cast by `Platform.MDMInput`'s
1071
+ * `@verification_fields`. Keep the two in step — a property advertised here
1072
+ * but absent there is accepted by the router and then silently dropped by
1073
+ * `cast/3`, which reads to the caller as "my attribute did not match".
1055
1074
  *
1056
1075
  */
1057
1076
  type MdmVerifyRequest = {
1058
1077
  /**
1059
- * payments: individual | business
1060
- */
1061
- account_holder_type?: string;
1062
- /**
1063
- * Date of birth — healthcare, core_banking, payments (component-fuzzy match)
1078
+ * Addresses to match against the legal entity's own — every domain. Each supplied component must agree (case- and whitespace-insensitive); components left out are not compared, and at least one address in the list must match.
1064
1079
  */
1065
- birth_date?: string;
1080
+ addresses?: Array<{
1081
+ /**
1082
+ * City / locality
1083
+ */
1084
+ city?: string;
1085
+ /**
1086
+ * Country
1087
+ */
1088
+ country?: string;
1089
+ /**
1090
+ * Postal code
1091
+ */
1092
+ postal_code?: string;
1093
+ /**
1094
+ * State / region
1095
+ */
1096
+ state?: string;
1097
+ /**
1098
+ * Street line 1
1099
+ */
1100
+ street1?: string;
1101
+ /**
1102
+ * Street line 2
1103
+ */
1104
+ street2?: string;
1105
+ }>;
1066
1106
  /**
1067
- * Business name — foundation (fuzzy match incl. doing-business-as names)
1107
+ * Business name (fuzzy match incl. doing-business-as names)
1068
1108
  */
1069
1109
  business_name?: string;
1070
1110
  /**
1071
- * Citizenship country — foundation
1111
+ * Citizenship country
1072
1112
  */
1073
1113
  citizenship_country?: string;
1074
1114
  /**
1075
- * Company legal name — core_banking (exact match), payments
1076
- */
1077
- company_name?: string;
1078
- /**
1079
- * service_commerce consumer kind
1080
- */
1081
- consumer_type?: string;
1082
- /**
1083
- * subscription customer kind
1084
- */
1085
- customer_type?: string;
1086
- /**
1087
- * Company formation date — foundation (component-fuzzy match)
1115
+ * Company formation date (component-fuzzy match)
1088
1116
  */
1089
1117
  date_formed?: string;
1090
1118
  /**
1091
- * Date of birth — foundation (component-fuzzy match)
1119
+ * Date of birth (component-fuzzy match)
1092
1120
  */
1093
1121
  date_of_birth?: string;
1094
1122
  /**
1095
- * Doing-business-as names — foundation
1123
+ * Doing-business-as names
1096
1124
  */
1097
1125
  doing_business_as_names?: Array<string>;
1098
1126
  /**
@@ -1100,35 +1128,23 @@ type MdmVerifyRequest = {
1100
1128
  */
1101
1129
  email?: string;
1102
1130
  /**
1103
- * Family/last name — healthcare, core_banking, payments (fuzzy match)
1104
- */
1105
- family_name?: string;
1106
- /**
1107
- * Given/first name — foundation (fuzzy match over first/middle/preferred)
1131
+ * Given/first name (fuzzy match over first/middle/preferred)
1108
1132
  */
1109
1133
  first_name?: string;
1110
- /**
1111
- * Administrative gender — healthcare
1112
- */
1113
- gender?: string;
1114
- /**
1115
- * Given/first name — healthcare, core_banking, payments (fuzzy match)
1116
- */
1117
- given_name?: string;
1118
1134
  /**
1119
1135
  * Identifiers for exact (system, value) matching — every domain
1120
1136
  */
1121
1137
  identifiers?: Array<{
1122
1138
  /**
1123
- * Issuing country — foundation
1139
+ * Issuing country
1124
1140
  */
1125
1141
  country?: string;
1126
1142
  /**
1127
- * Identifier kind (e.g. us_ssn, lei, digital_identifier) — required by payments
1143
+ * Identifier kind (e.g. us_ssn, lei, digital_identifier)
1128
1144
  */
1129
1145
  id_type?: string;
1130
1146
  /**
1131
- * Identifier system (e.g. MRN, SSN, account_holder_number)
1147
+ * Identifier system (e.g. lei_register, us_ssn_authority)
1132
1148
  */
1133
1149
  system: string;
1134
1150
  /**
@@ -1137,49 +1153,37 @@ type MdmVerifyRequest = {
1137
1153
  value: string;
1138
1154
  }>;
1139
1155
  /**
1140
- * Jurisdiction country — foundation
1156
+ * Jurisdiction country
1141
1157
  */
1142
1158
  jurisdiction_country?: string;
1143
1159
  /**
1144
- * Family/last name — foundation (fuzzy match)
1160
+ * Family/last name (fuzzy match)
1145
1161
  */
1146
1162
  last_name?: string;
1147
1163
  /**
1148
- * foundation: individual | business
1164
+ * The legal entity id to verify against
1149
1165
  */
1150
- legal_entity_type?: string;
1166
+ legal_entity_id: string;
1151
1167
  /**
1152
- * Middle name — foundation
1168
+ * individual | business
1153
1169
  */
1154
- middle_name?: string;
1170
+ legal_entity_type?: string;
1155
1171
  /**
1156
- * Subject full name (person or company) — subscription, service_commerce (fuzzy match)
1172
+ * Middle name
1157
1173
  */
1158
- name?: string;
1174
+ middle_name?: string;
1159
1175
  /**
1160
- * Nationality — foundation
1176
+ * Nationality
1161
1177
  */
1162
1178
  nationality?: string;
1163
1179
  /**
1164
- * core_banking: individual | organization | sole_trader | partnership | trust | government
1165
- */
1166
- party_type?: string;
1167
- /**
1168
- * Phone number — service_commerce matches it; other domains accept it
1180
+ * Phone number
1169
1181
  */
1170
1182
  phone?: string;
1171
1183
  /**
1172
- * Preferred/nickname — foundation
1184
+ * Preferred/nickname
1173
1185
  */
1174
1186
  preferred_name?: string;
1175
- /**
1176
- * The MDM subject ID to verify against
1177
- */
1178
- subject_id: string;
1179
- /**
1180
- * Tax identifier — subscription (exact match)
1181
- */
1182
- tax_id?: string;
1183
1187
  };
1184
1188
  /**
1185
1189
  * ActionResponse
@@ -1217,7 +1221,7 @@ type ActionResponse = {
1217
1221
  */
1218
1222
  readonly id?: string;
1219
1223
  /**
1220
- * Liquid template producing the idempotency key; receives checksum, subject_id, workflow_id, action_id, decision_key
1224
+ * Liquid template producing the idempotency key; receives checksum, legal_entity_id, legal_entity_id, workflow_id, action_id, decision_key
1221
1225
  */
1222
1226
  idempotency_template: string;
1223
1227
  readonly inserted_at?: string;
@@ -1314,7 +1318,7 @@ type InteroperabilityContractResponse = {
1314
1318
  */
1315
1319
  name: string;
1316
1320
  /**
1317
- * Dataset this contract targets (e.g. "patient", "observation", "generic_table")
1321
+ * Dataset this contract targets (e.g. "legal_entity", "beneficial_owner", "generic_table")
1318
1322
  */
1319
1323
  resource_type: string;
1320
1324
  /**
@@ -1873,11 +1877,11 @@ type WorkflowLogListResponse = {
1873
1877
  /**
1874
1878
  * SystemDatasetListResponse
1875
1879
  *
1876
- * Industry-registered dataset name strings for the datalake's data domain.
1880
+ * The dataset name strings the platform registers. Identical for every datalake.
1877
1881
  */
1878
1882
  type SystemDatasetListResponse = {
1879
1883
  /**
1880
- * Sorted unique dataset name strings (e.g. `patient`, `appointment`, `legal_entity`).
1884
+ * Sorted unique dataset name strings (e.g. `legal_entity`, `document`, `action_log`).
1881
1885
  */
1882
1886
  datasets: Array<string>;
1883
1887
  };
@@ -1933,7 +1937,7 @@ type UpdatePageResponse = {
1933
1937
  */
1934
1938
  form_submitted_at?: string | null;
1935
1939
  /**
1936
- * Regulated message UUID
1940
+ * Raw message UUID
1937
1941
  */
1938
1942
  id: string;
1939
1943
  /**
@@ -1976,9 +1980,9 @@ type SharePointExcelCallRequest = {
1976
1980
  */
1977
1981
  type DacRawLogFileResponse = {
1978
1982
  /**
1979
- * Bucket the archive lives in — regulated (raw) or unregulated (tokenized)
1983
+ * Bucket the archive lives in. One archive is written per log, and it is raw.
1980
1984
  */
1981
- mode: 'regulated' | 'unregulated';
1985
+ mode: 'raw';
1982
1986
  /**
1983
1987
  * Cloud-storage object key of the merged NDJSON archive
1984
1988
  */
@@ -1990,6 +1994,52 @@ type DacRawLogFileResponse = {
1990
1994
  type DataActivationClientManualUploadCallResponse = ManualUploadCallResponse & {
1991
1995
  tool_call_type: 'manual_upload';
1992
1996
  };
1997
+ /**
1998
+ * DerivedLakeTablesResponse
1999
+ *
2000
+ * Every table a derived lake's copy carries, and how far each one has got.
2001
+ *
2002
+ * Every table, not only the ones behind — a caller cannot ask to re-copy a
2003
+ * table it cannot see, and a table someone merely suspects has to be listed
2004
+ * even when the copy says it is fine.
2005
+ *
2006
+ */
2007
+ type DerivedLakeTablesResponse = {
2008
+ /**
2009
+ * One entry per table the copy carries, ordered by name
2010
+ */
2011
+ data: Array<{
2012
+ /**
2013
+ * Whether this table has finished arriving
2014
+ */
2015
+ caught_up: boolean;
2016
+ /**
2017
+ * The same state in words, identical to what the platform's own screen shows
2018
+ */
2019
+ label: string;
2020
+ /**
2021
+ * Every table `POST .../resync` would empty for this one: the table
2022
+ * itself, plus anything that points at it, transitively. Postgres will
2023
+ * not empty a table anything references, so re-copying a parent means
2024
+ * re-copying its children too. Present so a caller can say how many
2025
+ * before offering the action; only computed for tables that are behind,
2026
+ * and `null` for the rest.
2027
+ *
2028
+ */
2029
+ resync_empties?: Array<string> | null;
2030
+ /**
2031
+ * How far this table has got. Only `caught_up` has arrived —
2032
+ * `finished_copy` means the first pass is done and the changes since
2033
+ * have not been applied yet, so a table sitting there is still behind.
2034
+ *
2035
+ */
2036
+ state: 'waiting_to_start' | 'copying' | 'finished_copy' | 'catching_up' | 'caught_up';
2037
+ /**
2038
+ * Table name
2039
+ */
2040
+ table: string;
2041
+ }>;
2042
+ };
1993
2043
  /**
1994
2044
  * ManualToolInvocationSMSCallResponse
1995
2045
  */
@@ -2031,7 +2081,7 @@ type SystemTemplateConfig = {
2031
2081
  [key: string]: unknown;
2032
2082
  } | null;
2033
2083
  /**
2034
- * System template identifier — the same string the UI stores when a user selects a system template (e.g. `ai_agents/healthcare/contact_message_categorizer`).
2084
+ * System template identifier — the same string the UI stores when a user selects a system template (e.g. `ai_agents/contact_message_categorizer`).
2035
2085
  */
2036
2086
  path: string;
2037
2087
  };
@@ -2112,6 +2162,49 @@ type AiAgentInvokeRequest = {
2112
2162
  [key: string]: unknown;
2113
2163
  };
2114
2164
  };
2165
+ /**
2166
+ * AdvancedMigrationResponse
2167
+ *
2168
+ * An advanced migration — SQL a person wrote by hand for one datalake, run by the same migrator that applies the platform's own generated changes. Once it has run it can no longer be edited or deleted.
2169
+ */
2170
+ type AdvancedMigrationResponse = {
2171
+ /**
2172
+ * SHA-256 drift fingerprint over authored fields (server-computed)
2173
+ */
2174
+ readonly checksum?: string;
2175
+ /**
2176
+ * The datalake this migration belongs to. Taken from the URL, not the body.
2177
+ */
2178
+ readonly datalake_id?: string;
2179
+ /**
2180
+ * The SQL that reverses `up_statement`, used when rolling the datalake back.
2181
+ */
2182
+ down_statement: string;
2183
+ /**
2184
+ * Advanced migration ID
2185
+ */
2186
+ readonly id?: string;
2187
+ /**
2188
+ * Created at
2189
+ */
2190
+ readonly inserted_at?: string;
2191
+ /**
2192
+ * Identifier for the migration, unique within the datalake. Must start with a capital letter and contain only letters, numbers and underscores — for example `RenameMemoToNote`.
2193
+ */
2194
+ name: string;
2195
+ /**
2196
+ * The SQL to run. Anything the platform will not generate for itself belongs here — renaming a column, changing its type, dropping one, adding an index.
2197
+ */
2198
+ up_statement: string;
2199
+ /**
2200
+ * Updated at
2201
+ */
2202
+ readonly updated_at?: string;
2203
+ /**
2204
+ * Execution order, assigned by the platform from a sequence. Migrations run lowest-first.
2205
+ */
2206
+ readonly version?: number;
2207
+ };
2115
2208
  /**
2116
2209
  * ManualUploadCallResponse
2117
2210
  *
@@ -2145,9 +2238,9 @@ type WorkflowRunListResponse = {
2145
2238
  */
2146
2239
  type MinimalAiAgentResponse = {
2147
2240
  /**
2148
- * Data access level
2241
+ * Which lake the agent reads. `tokenized` means the agent's context is read from the tokenized copy, so it never sees a real identifier. It is enforced, not advisory: an agent set to `tokenized` in an environment with no tokenized lake fails its enrichment step rather than falling back to raw.
2149
2242
  */
2150
- data_access: 'regulated' | 'unregulated';
2243
+ data_access: 'raw' | 'tokenized';
2151
2244
  /**
2152
2245
  * Agent description
2153
2246
  */
@@ -2225,7 +2318,11 @@ type GenericTableColumnResponse = {
2225
2318
  * Column name
2226
2319
  */
2227
2320
  name: string;
2228
- privacy_requirement?: 'none' | 'tokenize' | 'redact_only';
2321
+ privacy_requirement?: 'none' | 'redact' | 'tokenize';
2322
+ /**
2323
+ * What the column holds, as opposed to how it is stored. Nullable.
2324
+ */
2325
+ semantic_kind?: 'string' | 'text' | 'email' | 'phone' | 'date' | 'json' | 'image' | 'pdf' | 'attachment';
2229
2326
  /**
2230
2327
  * Display title
2231
2328
  */
@@ -2233,7 +2330,7 @@ type GenericTableColumnResponse = {
2233
2330
  /**
2234
2331
  * Column data type
2235
2332
  */
2236
- type: 'string' | 'integer' | 'float' | 'boolean' | 'date' | 'datetime' | 'time' | 'jsonb';
2333
+ type: 'string' | 'integer' | 'float' | 'boolean' | 'date' | 'datetime' | 'time' | 'decimal' | 'jsonb';
2237
2334
  };
2238
2335
  /**
2239
2336
  * DatasetSearchResponse
@@ -2403,9 +2500,9 @@ type DataSourceRequest = {
2403
2500
  */
2404
2501
  type ExecuteSqlRequest = {
2405
2502
  /**
2406
- * Which datalake schema to query: `unregulated` (tokenized) or `regulated` (raw)
2503
+ * Which lake to query: `raw`, `tokenized` or `redacted`
2407
2504
  */
2408
- mode: 'regulated' | 'unregulated';
2505
+ mode: 'raw' | 'tokenized' | 'redacted';
2409
2506
  /**
2410
2507
  * 1-based page number
2411
2508
  */
@@ -2425,6 +2522,20 @@ type ExecuteSqlRequest = {
2425
2522
  type ToolManualUploadRequest = ManualUploadRequest & {
2426
2523
  tool_body_type: 'manual_upload';
2427
2524
  };
2525
+ /**
2526
+ * ResyncTableRequest
2527
+ *
2528
+ * Which table to empty in the copy and copy again from the start
2529
+ */
2530
+ type ResyncTableRequest = {
2531
+ /**
2532
+ * A table this copy carries, or one the original can send. Any other name is
2533
+ * refused — that gate is what stands between a typo and an emptied table.
2534
+ * Read `GET .../tables` for the list.
2535
+ *
2536
+ */
2537
+ table: string;
2538
+ };
2428
2539
  /**
2429
2540
  * ActionManualUploadCallResponse
2430
2541
  */
@@ -2438,29 +2549,10 @@ type ActionManualUploadCallResponse = ManualUploadCallResponse & {
2438
2549
  */
2439
2550
  type DatalakeResponse = {
2440
2551
  /**
2441
- * URL-friendly slug. Server-computed from `name`; read-only on the wire — clients do not author this field.
2442
- */
2443
- readonly slug?: string;
2444
- /**
2445
- * Unregulated reader auth method
2446
- */
2447
- unregulated_db_reader_auth_method: 'password' | 'iam_role';
2448
- /**
2449
- * Regulated reader DB host
2450
- */
2451
- regulated_data_db_reader_host: string;
2452
- /**
2453
- * Regulated reader DB name
2552
+ * SHA-256 drift fingerprint over authored fields (server-computed)
2454
2553
  */
2455
- regulated_data_db_reader_name: string;
2456
- regulated_cloud_storage: ({
2457
- cloud_storage_type: 'aws';
2458
- } & DatalakeCloudStorageAwsResponse) | ({
2459
- cloud_storage_type: 'r2';
2460
- } & DatalakeCloudStorageR2Response) | ({
2461
- cloud_storage_type: 'custom';
2462
- } & DatalakeCloudStorageCustomResponse);
2463
- unregulated_cloud_storage: ({
2554
+ readonly checksum?: string;
2555
+ cloud_storage: ({
2464
2556
  cloud_storage_type: 'aws';
2465
2557
  } & DatalakeCloudStorageAwsResponse) | ({
2466
2558
  cloud_storage_type: 'r2';
@@ -2468,130 +2560,102 @@ type DatalakeResponse = {
2468
2560
  cloud_storage_type: 'custom';
2469
2561
  } & DatalakeCloudStorageCustomResponse);
2470
2562
  /**
2471
- * SHA-256 drift fingerprint over authored fields (server-computed)
2472
- */
2473
- readonly checksum?: string;
2474
- /**
2475
- * Regulated reader DB port
2476
- */
2477
- regulated_data_db_reader_port: number;
2478
- /**
2479
- * Unregulated writer DB schema name
2480
- */
2481
- unregulated_db_writer_schema: string;
2482
- /**
2483
- * Unregulated writer DB name
2484
- */
2485
- unregulated_db_writer_name: string;
2486
- /**
2487
- * Regulated reader DB schema name
2488
- */
2489
- regulated_data_db_reader_schema: string;
2490
- /**
2491
- * Unregulated writer DB host
2492
- */
2493
- unregulated_db_writer_host: string;
2494
- /**
2495
- * Regulated writer DB name
2496
- */
2497
- regulated_data_db_writer_name: string;
2498
- /**
2499
- * Unregulated reader DB name
2563
+ * Reader auth method
2500
2564
  */
2501
- unregulated_db_reader_name: string;
2565
+ db_reader_auth_method: 'password' | 'iam_role';
2502
2566
  /**
2503
- * Unregulated writer auth method
2567
+ * Enable SSL for reader
2504
2568
  */
2505
- unregulated_db_writer_auth_method: 'password' | 'iam_role';
2506
- tenant?: TenantResponse;
2569
+ db_reader_enable_ssl: boolean;
2507
2570
  /**
2508
- * Datalake ID
2571
+ * Reader DB host
2509
2572
  */
2510
- readonly id?: string;
2573
+ db_reader_host: string;
2511
2574
  /**
2512
- * Datalake name
2575
+ * Reader DB name
2513
2576
  */
2514
- name: string;
2577
+ db_reader_name: string;
2515
2578
  /**
2516
- * Datalake description
2579
+ * Reader DB port
2517
2580
  */
2518
- description?: string | null;
2519
- /**
2520
- * Database connection pool size
2521
- */
2522
- pool_size: number | null;
2581
+ db_reader_port: number;
2523
2582
  /**
2524
- * Last update timestamp
2583
+ * Reader DB schema name
2525
2584
  */
2526
- readonly updated_at?: string;
2585
+ db_reader_schema: string;
2527
2586
  /**
2528
- * Datalake setup status
2587
+ * Writer auth method
2529
2588
  */
2530
- readonly status?: 'new' | 'processing' | 'ready';
2589
+ db_writer_auth_method: 'password' | 'iam_role';
2531
2590
  /**
2532
- * Unregulated reader DB port
2591
+ * Enable SSL for writer
2533
2592
  */
2534
- unregulated_db_reader_port: number;
2593
+ db_writer_enable_ssl: boolean;
2535
2594
  /**
2536
- * Unregulated reader DB host
2595
+ * Writer DB host
2537
2596
  */
2538
- unregulated_db_reader_host: string;
2597
+ db_writer_host: string;
2539
2598
  /**
2540
- * Enable SSL for regulated reader
2599
+ * Writer DB name
2541
2600
  */
2542
- regulated_data_db_reader_enable_ssl: boolean;
2601
+ db_writer_name: string;
2543
2602
  /**
2544
- * Enable SSL for unregulated reader
2603
+ * Writer DB port
2545
2604
  */
2546
- unregulated_db_reader_enable_ssl: boolean;
2605
+ db_writer_port: number;
2547
2606
  /**
2548
- * Regulated writer DB port
2607
+ * Writer DB schema name
2549
2608
  */
2550
- regulated_data_db_writer_port: number;
2609
+ db_writer_schema: string;
2551
2610
  /**
2552
- * Unregulated writer DB port
2611
+ * The tokenized and redacted lakes derived from this one
2553
2612
  */
2554
- unregulated_db_writer_port: number;
2613
+ readonly derived_datalakes?: Array<DatalakeResponse>;
2555
2614
  /**
2556
- * Enable SSL for unregulated writer
2615
+ * Datalake description
2557
2616
  */
2558
- unregulated_db_writer_enable_ssl: boolean;
2617
+ description?: string | null;
2559
2618
  /**
2560
- * Unregulated reader DB schema name
2619
+ * Datalake ID
2561
2620
  */
2562
- unregulated_db_reader_schema: string;
2621
+ readonly id?: string;
2563
2622
  /**
2564
- * Enable SSL for regulated writer
2623
+ * Creation timestamp
2565
2624
  */
2566
- regulated_data_db_writer_enable_ssl: boolean;
2625
+ readonly inserted_at?: string;
2567
2626
  /**
2568
- * Regulated writer DB schema name
2627
+ * Datalake name
2569
2628
  */
2570
- regulated_data_db_writer_schema: string;
2629
+ name: string;
2571
2630
  /**
2572
- * Regulated writer auth method
2631
+ * Database connection pool size
2573
2632
  */
2574
- regulated_data_db_writer_auth_method: 'password' | 'iam_role';
2633
+ pool_size: number | null;
2575
2634
  /**
2576
- * Creation timestamp
2635
+ * The raw datalake this one derives from. Required on a tokenized or redacted datalake, and always null on a raw one.
2577
2636
  */
2578
- readonly inserted_at?: string;
2637
+ primary_datalake_id?: string | null;
2579
2638
  /**
2580
- * Regulated writer DB host
2639
+ * URL-friendly slug. Server-computed from `name`; read-only on the wire — clients do not author this field.
2581
2640
  */
2582
- regulated_data_db_writer_host: string;
2641
+ readonly slug?: string;
2583
2642
  /**
2584
- * Regulated reader auth method
2643
+ * Datalake setup status
2585
2644
  */
2586
- regulated_data_db_reader_auth_method: 'password' | 'iam_role';
2645
+ readonly status?: 'new' | 'processing' | 'ready';
2646
+ tenant?: TenantResponse;
2587
2647
  /**
2588
2648
  * Datalake reporting timezone. Closed whitelist of 8 US timezones — general IANA values (including `UTC`) are rejected.
2589
2649
  */
2590
2650
  timezone: 'America/New_York' | 'America/Chicago' | 'America/Denver' | 'America/Los_Angeles' | 'America/Anchorage' | 'America/Adak' | 'Pacific/Honolulu' | 'America/Phoenix';
2591
2651
  /**
2592
- * Industry data domain. Each value carries a stability tier in the `x-stability` extension — `stable` domains hold their dataset shapes across releases; `experimental` domains may change without notice.
2652
+ * What this lake holds. `raw` is the lake the platform writes; `tokenized` and `redacted` are derived, read-only, and filled by replication.
2593
2653
  */
2594
- data_domain: 'healthcare' | 'core_banking' | 'payments' | 'subscription' | 'service_commerce' | 'trading' | 'foundation';
2654
+ type?: 'raw' | 'tokenized' | 'redacted';
2655
+ /**
2656
+ * Last update timestamp
2657
+ */
2658
+ readonly updated_at?: string;
2595
2659
  };
2596
2660
  /**
2597
2661
  * AlveraAPIError
@@ -2697,9 +2761,9 @@ type ToolSnsResponse = SnsResponse & {
2697
2761
  * `error_message`.
2698
2762
  *
2699
2763
  * UserSearch carries no `data_access_mode` of its own — the capability check
2700
- * runs at query time via `Platform.RegulatedDatalakeRepo.prepare_query/3`,
2701
- * which reads the ambient session and raises 403 when the ceiling is
2702
- * insufficient. ExOpenApiUtils derives `UserSearchRequest` (writeable subset)
2764
+ * runs where the lake's connection is acquired, via
2765
+ * `Platform.Datalakes.authorize_lake_access!/1`, which reads the ambient
2766
+ * session and raises 403 when the ceiling is insufficient. ExOpenApiUtils derives `UserSearchRequest` (writeable subset)
2703
2767
  * and `UserSearchResponse` (full readable shape) from this declaration via
2704
2768
  * the readOnly/writeOnly markers on each property.
2705
2769
  * Request
@@ -2924,9 +2988,9 @@ type ManualToolInvocationRestCallResponse = RestCallResponse & {
2924
2988
  type SessionResponse = {
2925
2989
  api_key?: ApiKeyResponse;
2926
2990
  /**
2927
- * Capability ceiling for the session. `:regulated` permits PHI/PII reads; `:unregulated` is tokenized/redacted. Set at creation time from membership role (researcher locked to `:unregulated`); cannot be widened post-creation.
2991
+ * Capability ceiling for the session — the most sensitive lake it may read. `:raw` reaches the raw lake, which holds real PHI/PII values; `:tokenized` and `:redacted` name derived lakes, which hold none. Set at creation time from the membership role: a researcher is capped at `:tokenized` and can never reach the raw lake, while an admin or member is capped at `:raw`. Cannot be widened post-creation.
2928
2992
  */
2929
- data_access_mode: 'regulated' | 'unregulated';
2993
+ data_access_mode: 'raw' | 'tokenized' | 'redacted';
2930
2994
  /**
2931
2995
  * Expiration timestamp (null for non-expiring M2M sessions)
2932
2996
  */
@@ -2947,6 +3011,18 @@ type SessionResponse = {
2947
3011
  readonly type: 'user' | 'api';
2948
3012
  user?: UserResponse;
2949
3013
  };
3014
+ /**
3015
+ * AdvancedMigrationListResponse
3016
+ *
3017
+ * Paginated list of advanced migrations
3018
+ */
3019
+ type AdvancedMigrationListResponse = {
3020
+ /**
3021
+ * List of advanced migrations
3022
+ */
3023
+ data: Array<AdvancedMigrationResponse>;
3024
+ meta: PaginationMeta;
3025
+ };
2950
3026
  /**
2951
3027
  * ActionStatusUpdaterCloudWatchQueryRequest
2952
3028
  */
@@ -3208,11 +3284,16 @@ type DatalakeMigrateResponse = {
3208
3284
  */
3209
3285
  enqueued_at: string;
3210
3286
  /**
3211
- * Oban job ID for tracking
3287
+ * Oban job ID for tracking. This datalake's own job — the first of the batch. The derived lakes are migrated by their own jobs, which are not reported here.
3212
3288
  */
3213
3289
  job_id: number;
3214
3290
  /**
3215
- * Job status (always 'enqueued' at creation)
3291
+ * Always the literal `enqueued` — a constant in the response body, not a
3292
+ * reading of the job's state. A repeat call while a job for this datalake
3293
+ * is still incomplete is deduplicated onto the existing job, so `job_id`
3294
+ * and `enqueued_at` can describe an earlier request while this field
3295
+ * still reads `enqueued`. Poll `GET /datalakes/:id` for real progress.
3296
+ *
3216
3297
  */
3217
3298
  status: 'enqueued';
3218
3299
  };
@@ -3275,14 +3356,14 @@ type SqlDatabaseResponse = {
3275
3356
  /**
3276
3357
  * MDMVerifyResponse
3277
3358
  *
3278
- * Result of MDM subject identity verification
3359
+ * Result of MDM identity verification
3279
3360
  */
3280
3361
  type MdmVerifyResponse = {
3281
- status: 'verified';
3282
3362
  /**
3283
- * The verified subject ID
3363
+ * The verified legal entity id
3284
3364
  */
3285
- subject_id: string;
3365
+ legal_entity_id: string;
3366
+ status: 'verified';
3286
3367
  /**
3287
3368
  * Timestamp of verification
3288
3369
  */
@@ -3294,11 +3375,11 @@ type MdmVerifyResponse = {
3294
3375
  errors: {
3295
3376
  [key: string]: Array<string>;
3296
3377
  };
3297
- status: 'not_verified';
3298
3378
  /**
3299
- * The subject ID that failed verification
3379
+ * The legal entity id that failed verification
3300
3380
  */
3301
- subject_id: string;
3381
+ legal_entity_id: string;
3382
+ status: 'not_verified';
3302
3383
  /**
3303
3384
  * Timestamp of verification attempt
3304
3385
  */
@@ -3518,6 +3599,10 @@ type WorkflowLogResponse = {
3518
3599
  */
3519
3600
  id?: string;
3520
3601
  inserted_at?: string;
3602
+ /**
3603
+ * The legal entity this run is about (cross-database id)
3604
+ */
3605
+ legal_entity_id?: string | null;
3521
3606
  /**
3522
3607
  * Execution mode
3523
3608
  */
@@ -3531,14 +3616,6 @@ type WorkflowLogResponse = {
3531
3616
  * Execution status
3532
3617
  */
3533
3618
  status: 'filtered' | 'pending' | 'executing' | 'completed' | 'failed' | 'partial';
3534
- /**
3535
- * Resolved subject ID (cross-DB)
3536
- */
3537
- subject_id?: string | null;
3538
- /**
3539
- * Subject type (e.g. patient, member)
3540
- */
3541
- subject_type?: string | null;
3542
3619
  /**
3543
3620
  * Tenant ID
3544
3621
  */
@@ -3603,9 +3680,9 @@ type ToolSqsResponse = SqsResponse & {
3603
3680
  */
3604
3681
  type ApiKeyResponse = {
3605
3682
  /**
3606
- * Capability ceiling baked into the key. Sessions derived from this key inherit this value. `:regulated` permits PHI/PII reads; `:unregulated` is tokenized/redacted. Cannot be widened post-creation — revoke + re-mint instead.
3683
+ * Capability ceiling baked into the key — the most sensitive lake a session derived from it may read. `:raw` reaches the raw lake, which holds real PHI/PII values; `:tokenized` and `:redacted` name derived lakes, which hold none. Sessions derived from this key inherit this value. Cannot be widened post-creation — revoke + re-mint instead.
3607
3684
  */
3608
- data_access_mode: 'regulated' | 'unregulated';
3685
+ data_access_mode: 'raw' | 'tokenized' | 'redacted';
3609
3686
  /**
3610
3687
  * API key ID
3611
3688
  */
@@ -3689,10 +3766,6 @@ type DataActivationClientResponse = {
3689
3766
  * True for platform-created default DACs. Cannot be deleted.
3690
3767
  */
3691
3768
  readonly is_default?: boolean;
3692
- /**
3693
- * Which context dimensions the DAC loops over per invocation
3694
- */
3695
- loop_over?: Array<'services' | 'locations' | 'providers'>;
3696
3769
  /**
3697
3770
  * DAC name
3698
3771
  */
@@ -3816,7 +3889,7 @@ type ActionRestCallResponse = RestCallResponse & {
3816
3889
  */
3817
3890
  type IngestFileRequest = {
3818
3891
  /**
3819
- * Optional business attributes merged into each row extracted from the uploaded file. For a document upload (image/PDF) the extracted row is just `{r2_key, content_type}`; these attrs ride alongside it (e.g. account_holder_number) so the interop contract can resolve the subject. File-derived keys (`r2_key`, `content_type`) always win over `data`.
3892
+ * Optional business attributes merged into each row extracted from the uploaded file. For a document upload (image/PDF) the extracted row is just `{r2_key, content_type}`; these attrs ride alongside it (e.g. account_holder_number) so the interop contract can resolve the legal entity. File-derived keys (`r2_key`, `content_type`) always win over `data`.
3820
3893
  */
3821
3894
  data?: {
3822
3895
  [key: string]: unknown;
@@ -3916,10 +3989,6 @@ type GenericTableResponse = {
3916
3989
  * Table column definitions
3917
3990
  */
3918
3991
  readonly columns?: Array<GenericTableColumnResponse>;
3919
- /**
3920
- * Industry data domain. Each value carries a stability tier in the `x-stability` extension — `stable` domains hold their dataset shapes across releases; `experimental` domains may change without notice.
3921
- */
3922
- data_domain?: 'healthcare' | 'core_banking' | 'payments' | 'subscription' | 'service_commerce' | 'trading' | 'foundation';
3923
3992
  /**
3924
3993
  * Datalake ID
3925
3994
  */
@@ -4219,6 +4288,41 @@ type ToolTwilioResponse = TwilioResponse & {
4219
4288
  type ToolSftpResponse = SftpResponse & {
4220
4289
  tool_body_type: 'sftp';
4221
4290
  };
4291
+ /**
4292
+ * ResyncTableResponse
4293
+ *
4294
+ * The repair was accepted and a fresh copy has started. It finishes later —
4295
+ * poll `GET .../tables` and wait for the table to read `caught_up`.
4296
+ *
4297
+ */
4298
+ type ResyncTableResponse = {
4299
+ /**
4300
+ * Every table the repair emptied — the one asked for, plus anything that
4301
+ * points at it, read from the catalog for this call. All of them are copied
4302
+ * again by the same run. Returned in full because a caller that emptied nine
4303
+ * tables should be told nine.
4304
+ *
4305
+ */
4306
+ emptied: Array<string>;
4307
+ /**
4308
+ * Which copy was repaired
4309
+ */
4310
+ mode: 'tokenized' | 'redacted';
4311
+ /**
4312
+ * Always the literal `copying` — a constant written once the repair's last
4313
+ * statement succeeded, not a reading of the copy. Nothing here queries the
4314
+ * subscription. `copying` is *also* one of the real table states
4315
+ * `GET .../tables` reports, and the two are unrelated: a table that has just
4316
+ * been put back on the subscription usually reads `waiting_to_start` for a
4317
+ * moment first. Poll `GET .../tables` for the state the copy is actually in.
4318
+ *
4319
+ */
4320
+ status: 'copying';
4321
+ /**
4322
+ * The table asked for
4323
+ */
4324
+ table: string;
4325
+ };
4222
4326
  /**
4223
4327
  * GenericTableColumnRequest
4224
4328
  *
@@ -4237,7 +4341,11 @@ type GenericTableColumnRequest = {
4237
4341
  * Column name
4238
4342
  */
4239
4343
  name: string;
4240
- privacy_requirement?: 'none' | 'tokenize' | 'redact_only';
4344
+ privacy_requirement?: 'none' | 'redact' | 'tokenize';
4345
+ /**
4346
+ * What the column holds, as opposed to how it is stored. Nullable.
4347
+ */
4348
+ semantic_kind?: 'string' | 'text' | 'email' | 'phone' | 'date' | 'json' | 'image' | 'pdf' | 'attachment';
4241
4349
  /**
4242
4350
  * Display title
4243
4351
  */
@@ -4245,7 +4353,7 @@ type GenericTableColumnRequest = {
4245
4353
  /**
4246
4354
  * Column data type
4247
4355
  */
4248
- type: 'string' | 'integer' | 'float' | 'boolean' | 'date' | 'datetime' | 'time' | 'jsonb';
4356
+ type: 'string' | 'integer' | 'float' | 'boolean' | 'date' | 'datetime' | 'time' | 'decimal' | 'jsonb';
4249
4357
  };
4250
4358
  /**
4251
4359
  * CloudWatchQueryResponse
@@ -4277,9 +4385,9 @@ type AiAgentResponse = {
4277
4385
  */
4278
4386
  readonly checksum?: string;
4279
4387
  /**
4280
- * Data access level
4388
+ * Which lake the agent reads. `tokenized` means the agent's context is read from the tokenized copy, so it never sees a real identifier. It is enforced, not advisory: an agent set to `tokenized` in an environment with no tokenized lake fails its enrichment step rather than falling back to raw.
4281
4389
  */
4282
- data_access: 'regulated' | 'unregulated';
4390
+ data_access: 'raw' | 'tokenized';
4283
4391
  datalake?: DatalakeResponse;
4284
4392
  /**
4285
4393
  * Agent description
@@ -4390,7 +4498,7 @@ type AdminCreateTenantApiKeyRequest = {
4390
4498
  /**
4391
4499
  * Capability ceiling baked into the key — see ApiKey.data_access_mode.
4392
4500
  */
4393
- data_access_mode: 'regulated' | 'unregulated';
4501
+ data_access_mode: 'raw' | 'tokenized' | 'redacted';
4394
4502
  /**
4395
4503
  * Human-readable name for the key.
4396
4504
  */
@@ -4519,34 +4627,7 @@ type ToolRestapiResponse = RestapiResponse & {
4519
4627
  * Datalake configuration. Secrets (DB passwords, credentials) are write-only — accepted on create but never returned in responses. Request
4520
4628
  */
4521
4629
  type DatalakeRequestWritable = {
4522
- /**
4523
- * Unregulated writer DB password
4524
- */
4525
- unregulated_db_writer_pass: string;
4526
- /**
4527
- * Unregulated reader auth method
4528
- */
4529
- unregulated_db_reader_auth_method: 'password' | 'iam_role';
4530
- /**
4531
- * Unregulated writer DB username
4532
- */
4533
- unregulated_db_writer_user: string;
4534
- /**
4535
- * Regulated reader DB host
4536
- */
4537
- regulated_data_db_reader_host: string;
4538
- /**
4539
- * Regulated reader DB name
4540
- */
4541
- regulated_data_db_reader_name: string;
4542
- regulated_cloud_storage: ({
4543
- cloud_storage_type: 'aws';
4544
- } & DatalakeCloudStorageAwsRequestWritable) | ({
4545
- cloud_storage_type: 'r2';
4546
- } & DatalakeCloudStorageR2RequestWritable) | ({
4547
- cloud_storage_type: 'custom';
4548
- } & DatalakeCloudStorageCustomRequestWritable);
4549
- unregulated_cloud_storage: ({
4630
+ cloud_storage: ({
4550
4631
  cloud_storage_type: 'aws';
4551
4632
  } & DatalakeCloudStorageAwsRequestWritable) | ({
4552
4633
  cloud_storage_type: 'r2';
@@ -4554,133 +4635,93 @@ type DatalakeRequestWritable = {
4554
4635
  cloud_storage_type: 'custom';
4555
4636
  } & DatalakeCloudStorageCustomRequestWritable);
4556
4637
  /**
4557
- * Regulated reader DB password
4558
- */
4559
- regulated_data_db_reader_pass: string;
4560
- /**
4561
- * Regulated writer DB username
4562
- */
4563
- regulated_data_db_writer_user: string;
4564
- /**
4565
- * Regulated reader DB port
4566
- */
4567
- regulated_data_db_reader_port: number;
4568
- /**
4569
- * Unregulated writer DB schema name
4570
- */
4571
- unregulated_db_writer_schema: string;
4572
- /**
4573
- * Unregulated writer DB name
4574
- */
4575
- unregulated_db_writer_name: string;
4576
- /**
4577
- * Regulated reader DB schema name
4638
+ * Reader auth method
4578
4639
  */
4579
- regulated_data_db_reader_schema: string;
4640
+ db_reader_auth_method: 'password' | 'iam_role';
4580
4641
  /**
4581
- * Regulated reader DB username
4642
+ * Enable SSL for reader
4582
4643
  */
4583
- regulated_data_db_reader_user: string;
4644
+ db_reader_enable_ssl: boolean;
4584
4645
  /**
4585
- * Unregulated writer DB host
4646
+ * Reader DB host
4586
4647
  */
4587
- unregulated_db_writer_host: string;
4648
+ db_reader_host: string;
4588
4649
  /**
4589
- * Regulated writer DB name
4590
- */
4591
- regulated_data_db_writer_name: string;
4592
- /**
4593
- * Unregulated reader DB name
4594
- */
4595
- unregulated_db_reader_name: string;
4596
- /**
4597
- * Unregulated writer auth method
4598
- */
4599
- unregulated_db_writer_auth_method: 'password' | 'iam_role';
4600
- /**
4601
- * Unregulated reader DB username
4602
- */
4603
- unregulated_db_reader_user: string;
4604
- /**
4605
- * Datalake name
4606
- */
4607
- name: string;
4608
- /**
4609
- * Datalake description
4650
+ * Reader DB name
4610
4651
  */
4611
- description?: string | null;
4652
+ db_reader_name: string;
4612
4653
  /**
4613
- * Database connection pool size
4654
+ * Reader DB password
4614
4655
  */
4615
- pool_size: number | null;
4656
+ db_reader_pass: string;
4616
4657
  /**
4617
- * Unregulated reader DB port
4658
+ * Reader DB port
4618
4659
  */
4619
- unregulated_db_reader_port: number;
4660
+ db_reader_port: number;
4620
4661
  /**
4621
- * Regulated writer DB password
4662
+ * Reader DB schema name
4622
4663
  */
4623
- regulated_data_db_writer_pass: string;
4664
+ db_reader_schema: string;
4624
4665
  /**
4625
- * Unregulated reader DB host
4666
+ * Reader DB username
4626
4667
  */
4627
- unregulated_db_reader_host: string;
4668
+ db_reader_user: string;
4628
4669
  /**
4629
- * Enable SSL for regulated reader
4670
+ * Writer auth method
4630
4671
  */
4631
- regulated_data_db_reader_enable_ssl: boolean;
4672
+ db_writer_auth_method: 'password' | 'iam_role';
4632
4673
  /**
4633
- * Enable SSL for unregulated reader
4674
+ * Enable SSL for writer
4634
4675
  */
4635
- unregulated_db_reader_enable_ssl: boolean;
4676
+ db_writer_enable_ssl: boolean;
4636
4677
  /**
4637
- * Unregulated reader DB password
4678
+ * Writer DB host
4638
4679
  */
4639
- unregulated_db_reader_pass: string;
4680
+ db_writer_host: string;
4640
4681
  /**
4641
- * Regulated writer DB port
4682
+ * Writer DB name
4642
4683
  */
4643
- regulated_data_db_writer_port: number;
4684
+ db_writer_name: string;
4644
4685
  /**
4645
- * Unregulated writer DB port
4686
+ * Writer DB password
4646
4687
  */
4647
- unregulated_db_writer_port: number;
4688
+ db_writer_pass: string;
4648
4689
  /**
4649
- * Enable SSL for unregulated writer
4690
+ * Writer DB port
4650
4691
  */
4651
- unregulated_db_writer_enable_ssl: boolean;
4692
+ db_writer_port: number;
4652
4693
  /**
4653
- * Unregulated reader DB schema name
4694
+ * Writer DB schema name
4654
4695
  */
4655
- unregulated_db_reader_schema: string;
4696
+ db_writer_schema: string;
4656
4697
  /**
4657
- * Enable SSL for regulated writer
4698
+ * Writer DB username
4658
4699
  */
4659
- regulated_data_db_writer_enable_ssl: boolean;
4700
+ db_writer_user: string;
4660
4701
  /**
4661
- * Regulated writer DB schema name
4702
+ * Datalake description
4662
4703
  */
4663
- regulated_data_db_writer_schema: string;
4704
+ description?: string | null;
4664
4705
  /**
4665
- * Regulated writer auth method
4706
+ * Datalake name
4666
4707
  */
4667
- regulated_data_db_writer_auth_method: 'password' | 'iam_role';
4708
+ name: string;
4668
4709
  /**
4669
- * Regulated writer DB host
4710
+ * Database connection pool size
4670
4711
  */
4671
- regulated_data_db_writer_host: string;
4712
+ pool_size: number | null;
4672
4713
  /**
4673
- * Regulated reader auth method
4714
+ * The raw datalake this one derives from. Required on a tokenized or redacted datalake, and always null on a raw one.
4674
4715
  */
4675
- regulated_data_db_reader_auth_method: 'password' | 'iam_role';
4716
+ primary_datalake_id?: string | null;
4676
4717
  /**
4677
4718
  * Datalake reporting timezone. Closed whitelist of 8 US timezones — general IANA values (including `UTC`) are rejected.
4678
4719
  */
4679
4720
  timezone: 'America/New_York' | 'America/Chicago' | 'America/Denver' | 'America/Los_Angeles' | 'America/Anchorage' | 'America/Adak' | 'Pacific/Honolulu' | 'America/Phoenix';
4680
4721
  /**
4681
- * Industry data domain. Each value carries a stability tier in the `x-stability` extension — `stable` domains hold their dataset shapes across releases; `experimental` domains may change without notice.
4722
+ * What this lake holds. `raw` is the lake the platform writes; `tokenized` and `redacted` are derived, read-only, and filled by replication.
4682
4723
  */
4683
- data_domain: 'healthcare' | 'core_banking' | 'payments' | 'subscription' | 'service_commerce' | 'trading' | 'foundation';
4724
+ type?: 'raw' | 'tokenized' | 'redacted';
4684
4725
  };
4685
4726
  /**
4686
4727
  * ToolRESTAPIRequest
@@ -4731,7 +4772,7 @@ type AgenticWorkflowRequestWritable = {
4731
4772
  */
4732
4773
  context_datasets?: Array<ContextDatasetRequestWritable>;
4733
4774
  /**
4734
- * Dataset type the workflow listens on (e.g. patient, appointment, generic_table)
4775
+ * Dataset type the workflow listens on (e.g. legal_entity, document, generic_table)
4735
4776
  */
4736
4777
  dataset_type: string;
4737
4778
  decision_config?: ComplexTemplateConfigRequest;
@@ -4757,7 +4798,7 @@ type AgenticWorkflowRequestWritable = {
4757
4798
  */
4758
4799
  name: string;
4759
4800
  /**
4760
- * When true, skip MDM subject resolution
4801
+ * When true, skip MDM resolution
4761
4802
  */
4762
4803
  skip_mdm_resolution?: boolean;
4763
4804
  /**
@@ -5006,7 +5047,7 @@ type ActionRequestWritable = {
5006
5047
  */
5007
5048
  id?: string;
5008
5049
  /**
5009
- * Liquid template producing the idempotency key; receives checksum, subject_id, workflow_id, action_id, decision_key
5050
+ * Liquid template producing the idempotency key; receives checksum, legal_entity_id, legal_entity_id, workflow_id, action_id, decision_key
5010
5051
  */
5011
5052
  idempotency_template: string;
5012
5053
  /**
@@ -5080,9 +5121,9 @@ type WorkflowAiAgentRequestWritable = {
5080
5121
  */
5081
5122
  type AiAgentRequestWritable = {
5082
5123
  /**
5083
- * Data access level
5124
+ * Which lake the agent reads. `tokenized` means the agent's context is read from the tokenized copy, so it never sees a real identifier. It is enforced, not advisory: an agent set to `tokenized` in an environment with no tokenized lake fails its enrichment step rather than falling back to raw.
5084
5125
  */
5085
- data_access: 'regulated' | 'unregulated';
5126
+ data_access: 'raw' | 'tokenized';
5086
5127
  /**
5087
5128
  * Agent description
5088
5129
  */
@@ -5246,10 +5287,6 @@ type GenericTableRequestWritable = {
5246
5287
  * Table column definitions
5247
5288
  */
5248
5289
  columns?: Array<GenericTableColumnRequest>;
5249
- /**
5250
- * Industry data domain. Each value carries a stability tier in the `x-stability` extension — `stable` domains hold their dataset shapes across releases; `experimental` domains may change without notice.
5251
- */
5252
- data_domain?: 'healthcare' | 'core_banking' | 'payments' | 'subscription' | 'service_commerce' | 'trading' | 'foundation';
5253
5290
  /**
5254
5291
  * Table description
5255
5292
  */
@@ -5616,7 +5653,7 @@ type InteroperabilityContractRequestWritable = {
5616
5653
  */
5617
5654
  name: string;
5618
5655
  /**
5619
- * Dataset this contract targets (e.g. "patient", "observation", "generic_table")
5656
+ * Dataset this contract targets (e.g. "legal_entity", "beneficial_owner", "generic_table")
5620
5657
  */
5621
5658
  resource_type: string;
5622
5659
  /**
@@ -5676,7 +5713,7 @@ type ContextDatasetRequestWritable = {
5676
5713
  */
5677
5714
  position?: number;
5678
5715
  /**
5679
- * Liquid-templated SQL WHERE clause for filtering records at runtime. The context builder appends the MDM subject FK automatically.
5716
+ * Liquid-templated SQL WHERE clause for filtering records at runtime. The context builder appends the legal entity FK automatically.
5680
5717
  */
5681
5718
  where_clause?: string | null;
5682
5719
  };
@@ -5918,10 +5955,6 @@ type DataActivationClientRequestWritable = {
5918
5955
  * IDs of interoperability contracts used to transform each fetched row
5919
5956
  */
5920
5957
  interoperability_contract_ids?: Array<string>;
5921
- /**
5922
- * Which context dimensions the DAC loops over per invocation
5923
- */
5924
- loop_over?: Array<'services' | 'locations' | 'providers'>;
5925
5958
  /**
5926
5959
  * DAC name
5927
5960
  */
@@ -6491,6 +6524,55 @@ type PlatformApiDatalakeControllerIndexData = {
6491
6524
  };
6492
6525
  url: '/api/v1/tenants/{tenant_slug}/datalakes';
6493
6526
  };
6527
+ type PlatformApiAdvancedMigrationControllerIndexData = {
6528
+ body?: never;
6529
+ path: {
6530
+ /**
6531
+ * Tenant slug
6532
+ */
6533
+ tenant_slug: string;
6534
+ /**
6535
+ * Datalake slug
6536
+ */
6537
+ datalake_slug: string;
6538
+ };
6539
+ query?: {
6540
+ /**
6541
+ * Page number (1-indexed). Defaults to 1 when omitted.
6542
+ */
6543
+ page?: number;
6544
+ /**
6545
+ * Items per page (1-100). Defaults to the resource's Flop default when omitted.
6546
+ */
6547
+ page_size?: number;
6548
+ /**
6549
+ * Fields to sort by, in order of precedence. Must appear in the resource schema's Flop `sortable:` list — unknown fields return 422.
6550
+ */
6551
+ order_by?: Array<string>;
6552
+ /**
6553
+ * Sort direction(s), pair-wise with `order_by`. `asc` or `desc`. Defaults to `asc` per unpaired `order_by` entry.
6554
+ */
6555
+ order_directions?: Array<'asc' | 'desc'>;
6556
+ /**
6557
+ * Flop-native filter array. URL shape: `?filters[][field]=status&filters[][op]=%3D%3D&filters[][value]=pending` (empty brackets — consecutive `[]` entries group into one filter object per element; indexed brackets parse as a map and fail the array cast with 422). `op` is the symbol, percent-encoded — `%3D%3D` for `==`, `%3E%3D` for `>=` — not a word like `equal`; anything outside the enum above is a 422 before the request reaches Flop. Omit `op` entirely for equality. Unknown fields return 422 via Flop validation at the context layer.
6558
+ */
6559
+ filters?: Array<{
6560
+ /**
6561
+ * Filterable field name (must be in the resource's `filterable:`)
6562
+ */
6563
+ field: string;
6564
+ /**
6565
+ * Comparison operator. Defaults to `==` when omitted.
6566
+ */
6567
+ op?: '==' | '!=' | '<' | '<=' | '>' | '>=' | 'empty' | 'not_empty' | 'like' | 'ilike' | 'like_and' | 'like_or' | 'ilike_and' | 'ilike_or' | 'in' | 'not_in' | 'contains' | 'not_contains';
6568
+ /**
6569
+ * Filter value — shape depends on `field` and `op`.
6570
+ */
6571
+ value: unknown;
6572
+ }>;
6573
+ };
6574
+ url: '/api/v1/tenants/{tenant_slug}/datalakes/{datalake_slug}/advanced-migrations';
6575
+ };
6494
6576
  type PlatformApiAiAgentControllerIndexData = {
6495
6577
  body?: never;
6496
6578
  path: {
@@ -6944,6 +7026,51 @@ type PlatformApiAgenticWorkflowOperationsControllerBatchLogsIndexData = {
6944
7026
  };
6945
7027
  url: '/api/v1/tenants/{tenant_slug}/datalakes/{datalake_slug}/agentic-workflows/{workflow_slug}/batch-logs';
6946
7028
  };
7029
+ type PlatformApiDatalakeControllerMetadataData = {
7030
+ body?: never;
7031
+ path: {
7032
+ /**
7033
+ * Tenant slug
7034
+ */
7035
+ tenant_slug: string;
7036
+ };
7037
+ query?: {
7038
+ /**
7039
+ * Page number (1-indexed). Defaults to 1 when omitted.
7040
+ */
7041
+ page?: number;
7042
+ /**
7043
+ * Items per page (1-100). Defaults to the resource's Flop default when omitted.
7044
+ */
7045
+ page_size?: number;
7046
+ /**
7047
+ * Fields to sort by, in order of precedence. Must appear in the resource schema's Flop `sortable:` list — unknown fields return 422.
7048
+ */
7049
+ order_by?: Array<string>;
7050
+ /**
7051
+ * Sort direction(s), pair-wise with `order_by`. `asc` or `desc`. Defaults to `asc` per unpaired `order_by` entry.
7052
+ */
7053
+ order_directions?: Array<'asc' | 'desc'>;
7054
+ /**
7055
+ * Flop-native filter array. URL shape: `?filters[][field]=status&filters[][op]=%3D%3D&filters[][value]=pending` (empty brackets — consecutive `[]` entries group into one filter object per element; indexed brackets parse as a map and fail the array cast with 422). `op` is the symbol, percent-encoded — `%3D%3D` for `==`, `%3E%3D` for `>=` — not a word like `equal`; anything outside the enum above is a 422 before the request reaches Flop. Omit `op` entirely for equality. Unknown fields return 422 via Flop validation at the context layer.
7056
+ */
7057
+ filters?: Array<{
7058
+ /**
7059
+ * Filterable field name (must be in the resource's `filterable:`)
7060
+ */
7061
+ field: string;
7062
+ /**
7063
+ * Comparison operator. Defaults to `==` when omitted.
7064
+ */
7065
+ op?: '==' | '!=' | '<' | '<=' | '>' | '>=' | 'empty' | 'not_empty' | 'like' | 'ilike' | 'like_and' | 'like_or' | 'ilike_and' | 'ilike_or' | 'in' | 'not_in' | 'contains' | 'not_contains';
7066
+ /**
7067
+ * Filter value — shape depends on `field` and `op`.
7068
+ */
7069
+ value: unknown;
7070
+ }>;
7071
+ };
7072
+ url: '/api/v1/tenants/{tenant_slug}/datalakes/metadata';
7073
+ };
6947
7074
  type PlatformApiDataActivationClientControllerIndexData = {
6948
7075
  body?: never;
6949
7076
  path: {
@@ -7375,7 +7502,6 @@ type DataSourceRequestWritable = DataSourceRequest;
7375
7502
  interface CreateGenericTableRequest {
7376
7503
  title: string;
7377
7504
  description?: string;
7378
- data_domain?: 'healthcare' | 'core_banking' | 'payments' | 'subscription' | 'service_commerce' | 'trading' | null;
7379
7505
  columns: GenericTableColumnRequest[];
7380
7506
  }
7381
7507
  interface TemplateConfig {
@@ -7400,7 +7526,7 @@ interface CreateAiAgentRequest {
7400
7526
  name: string;
7401
7527
  model: string;
7402
7528
  tool_id: string;
7403
- data_access: 'regulated' | 'unregulated';
7529
+ data_access: 'raw' | 'tokenized';
7404
7530
  temperature: number;
7405
7531
  max_tokens: number;
7406
7532
  enabled: boolean;
@@ -7554,7 +7680,7 @@ interface DatasetSearchOptions {
7554
7680
  * Defaults to the session's `data_access_mode`. The session's capability
7555
7681
  * ceiling still applies — escalating beyond it returns 403.
7556
7682
  */
7557
- dataAccessMode?: 'regulated' | 'unregulated';
7683
+ dataAccessMode?: 'raw' | 'tokenized' | 'redacted';
7558
7684
  /**
7559
7685
  * Outer SQL-chunk pagination. Defaults page=1, page_size=1000 (max 1000).
7560
7686
  * Pages cached IDs from `search_results`; the cap is dictated by
@@ -7598,6 +7724,11 @@ declare function _buildApi(myClient: Client): {
7598
7724
  request: Request;
7599
7725
  response: Response;
7600
7726
  }>;
7727
+ delete: () => Promise<{
7728
+ data: unknown;
7729
+ request: Request;
7730
+ response: Response;
7731
+ }>;
7601
7732
  };
7602
7733
  admin: {
7603
7734
  signUp: (body: SignUpRequestWritable) => Promise<{
@@ -7703,10 +7834,7 @@ declare function _buildApi(myClient: Client): {
7703
7834
  request: Request;
7704
7835
  response: Response;
7705
7836
  }>;
7706
- metadata: (tenantSlug: string, query?: {
7707
- page?: number;
7708
- page_size?: number;
7709
- }) => Promise<{
7837
+ metadata: (tenantSlug: string, query?: PlatformApiDatalakeControllerMetadataData["query"]) => Promise<{
7710
7838
  data: string;
7711
7839
  request: Request;
7712
7840
  response: Response;
@@ -7726,6 +7854,21 @@ declare function _buildApi(myClient: Client): {
7726
7854
  request: Request;
7727
7855
  response: Response;
7728
7856
  }>;
7857
+ provisionTokenization: (tenantSlug: string, datalakeSlug: string) => Promise<{
7858
+ data: DatalakeResponse;
7859
+ request: Request;
7860
+ response: Response;
7861
+ }>;
7862
+ derivedLakeTables: (tenantSlug: string, datalakeSlug: string, mode: "tokenized" | "redacted") => Promise<{
7863
+ data: DerivedLakeTablesResponse;
7864
+ request: Request;
7865
+ response: Response;
7866
+ }>;
7867
+ resyncTable: (tenantSlug: string, datalakeSlug: string, mode: "tokenized" | "redacted", body: ResyncTableRequest) => Promise<{
7868
+ data: ResyncTableResponse;
7869
+ request: Request;
7870
+ response: Response;
7871
+ }>;
7729
7872
  createUploadLink: (tenantSlug: string, datalakeSlug: string, body: UploadLinkRequest) => Promise<{
7730
7873
  data: UploadLinkResponse;
7731
7874
  request: Request;
@@ -7754,6 +7897,51 @@ declare function _buildApi(myClient: Client): {
7754
7897
  data: ExecuteSqlResponse | string;
7755
7898
  }>;
7756
7899
  };
7900
+ advancedMigrations: {
7901
+ list: (tenantSlug: string, datalakeSlug: string, query?: PlatformApiAdvancedMigrationControllerIndexData["query"]) => Promise<{
7902
+ data: AdvancedMigrationListResponse;
7903
+ request: Request;
7904
+ response: Response;
7905
+ }>;
7906
+ get: (tenantSlug: string, datalakeSlug: string, id: string) => Promise<{
7907
+ data: AdvancedMigrationResponse;
7908
+ request: Request;
7909
+ response: Response;
7910
+ }>;
7911
+ create: (tenantSlug: string, datalakeSlug: string, body: AdvancedMigrationRequest) => Promise<{
7912
+ data: AdvancedMigrationResponse;
7913
+ request: Request;
7914
+ response: Response;
7915
+ }>;
7916
+ update: (tenantSlug: string, datalakeSlug: string, id: string, body: AdvancedMigrationRequest) => Promise<{
7917
+ data: AdvancedMigrationResponse;
7918
+ request: Request;
7919
+ response: Response;
7920
+ }>;
7921
+ delete: (tenantSlug: string, datalakeSlug: string, id: string) => Promise<{
7922
+ data: void;
7923
+ request: Request;
7924
+ response: Response;
7925
+ }>;
7926
+ checksum: (tenantSlug: string, datalakeSlug: string, body: AdvancedMigrationRequest) => Promise<{
7927
+ data: ChecksumResponse;
7928
+ request: Request;
7929
+ response: Response;
7930
+ }>;
7931
+ metadata: (tenantSlug: string, datalakeSlug: string, query?: {
7932
+ page?: number;
7933
+ page_size?: number;
7934
+ }) => Promise<{
7935
+ data: string;
7936
+ request: Request;
7937
+ response: Response;
7938
+ }>;
7939
+ metadataDetails: (tenantSlug: string, datalakeSlug: string, id: string) => Promise<{
7940
+ data: string;
7941
+ request: Request;
7942
+ response: Response;
7943
+ }>;
7944
+ };
7757
7945
  dataSources: {
7758
7946
  list: (tenantSlug: string, datalakeSlug: string, query?: PlatformApiDataSourceControllerIndexData["query"]) => Promise<{
7759
7947
  data: DataSourceListResponse;
@@ -7958,7 +8146,7 @@ declare function _buildApi(myClient: Client): {
7958
8146
  request: Request;
7959
8147
  response: Response;
7960
8148
  }>;
7961
- metadataDetails: (tenantSlug: string, datalakeSlug: string, filename: string, intent: "ai_agent" | "blueprint_datasource" | "blueprint_workflow" | "workflow_filter" | "workflow_decision" | "data_activation_interoperability" | "data_activation_tool_calls" | "status_poller") => Promise<{
8149
+ metadataDetails: (tenantSlug: string, datalakeSlug: string, filename: string, intent: "ai_agent" | "workflow_filter" | "workflow_decision" | "data_activation_interoperability" | "data_activation_tool_calls" | "status_poller") => Promise<{
7962
8150
  data: string;
7963
8151
  request: Request;
7964
8152
  response: Response;
@@ -8290,9 +8478,7 @@ declare function _buildApi(myClient: Client): {
8290
8478
  request: Request;
8291
8479
  response: Response;
8292
8480
  }>;
8293
- get: (tenantSlug: string, datalakeSlug: string, workflowSlug: string, id: string, opts?: {
8294
- dataAccessMode?: "regulated" | "unregulated";
8295
- }) => Promise<{
8481
+ get: (tenantSlug: string, datalakeSlug: string, workflowSlug: string, id: string) => Promise<{
8296
8482
  data: WorkflowLogResponse;
8297
8483
  request: Request;
8298
8484
  response: Response;
@@ -8329,5 +8515,5 @@ declare function _buildApi(myClient: Client): {
8329
8515
  //#region src/index.d.ts
8330
8516
  declare function isEnvironmentName(name: string): name is EnvironmentName;
8331
8517
  //#endregion
8332
- 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 ExecuteSqlMeta, type ExecuteSqlRequest, type ExecuteSqlResponse, 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, type TextToSqlRequest, type TextToSqlResponse, ToolIntent, type ToolRequest, type ToolRequestWritable, type ToolResponse, type ToolTwilioRequest, type ToolTwilioRequestWritable, type ToolTwilioResponse, type TwilioRequest, type TwilioRequestWritable, type TwilioResponse, type UpdatePageRequest, type UploadLinkRequest, type UploadLinkResponse, type WorkflowAiAgentRequestWritable, type WorkflowLogListResponse, type WorkflowLogResponse, type WorkflowRunListResponse, type WorkflowRunResponse, createBootstrapSession, createIsolatedPlatformApi, createPlatformApi, createSession, isEnvironmentName, revokeSession };
8518
+ export { type ActionStatusUpdaterCloudWatchQueryRequest, type ActionStatusUpdaterRequestWritable, type ActionStatusUpdaterResponse, type ActionStatusUpdaterRestCallRequest, ActionType, type AdvancedMigrationListResponse, type AdvancedMigrationRequest, type AdvancedMigrationResponse, type AgenticWorkflowListResponse, type AgenticWorkflowRequestWritable, type AgenticWorkflowResponse, type AiAgentRequestWritable, 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 DerivedLakeTablesResponse, type DownloadUrlResponse, ENVIRONMENTS, type EnvironmentName, type ErrorResponse, type ExecuteActionRequest, type ExecuteActionResponse, type ExecuteSqlMeta, type ExecuteSqlRequest, type ExecuteSqlResponse, 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 ResyncTableRequest, type ResyncTableResponse, type RunManuallyRequestWritable, type RunManuallyResponse, type RunWorkflowRequest, type RunWorkflowResponse, type SessionResponse, type SessionResult, type SyncRoutesResponse, type TemplateConfig, type TenantListResponse, type TenantResponse, type TextToSqlRequest, type TextToSqlResponse, ToolIntent, type ToolListResponse, type ToolRequest, type ToolRequestWritable, type ToolResponse, type ToolTwilioRequest, type ToolTwilioRequestWritable, type ToolTwilioResponse, type TwilioRequest, type TwilioRequestWritable, type TwilioResponse, type UpdatePageRequest, type UploadLinkRequest, type UploadLinkResponse, type WorkflowAiAgentRequestWritable, type WorkflowLogListResponse, type WorkflowLogResponse, type WorkflowRunListResponse, type WorkflowRunResponse, createBootstrapSession, createIsolatedPlatformApi, createPlatformApi, createSession, isEnvironmentName, revokeSession };
8333
8519
  //# sourceMappingURL=index.d.mts.map