@amigo-ai/platform-sdk 0.73.0 → 0.75.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.
@@ -1 +1 @@
1
- {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/resources/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAchE;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAqB,SAAQ,uBAAuB;IAC/D,6EAA6E;IAE7E,oCAAoC;IACpC,KAAK,CAAC,MAAM,CACV,IAAqF;QAErF,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,EAAE;YACxD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,yCAAyC;IACzC,KAAK,CAAC,IAAI,CAAC,MAA+B;QACxC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,iCAAiC,EAAE;YACvD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,cAAc,CAAC,MAA+B;QAC5C,OAAO,IAAI,CAAC,oBAAoB,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACjF,CAAC;IAED,+BAA+B;IAC/B,KAAK,CAAC,GAAG,CAAC,aAAqC;QAC7C,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,kDAAkD,EAAE;YACxE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IA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AC1C,IAAgF;QAEhF,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACpB,+EAA+E,EAC/E;YACE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,YAAY,EAAE,IAAI,CAAC,WAAW;oBAC9B,cAAc,EAAE,aAAa;oBAC7B,WAAW,EAAE,UAAU;iBACxB;aACF;YACD,IAAI;SACL,CACF,CACF,CAAA;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/resources/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AA8ChE;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAqB,SAAQ,uBAAuB;IAC/D,6EAA6E;IAE7E,oCAAoC;IACpC,KAAK,CAAC,MAAM,CAAC,IAA8B;QACzC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,EAAE;YACxD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,yCAAyC;IACzC,KAAK,CAAC,IAAI,CAAC,MAA+B;QACxC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,iCAAiC,EAAE;YACvD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,cAAc,CAAC,MAA+B;QAC5C,OAAO,IAAI,CAAC,oBAAoB,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACjF,CAAC;IAED,+BAA+B;IAC/B,KAAK,CAAC,GA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AAW;oBAC9B,cAAc,EAAE,aAAa;oBAC7B,WAAW,EAAE,UAAU;iBACxB;aACF;SACF,CACF,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAChB,aAAqC,EACrC,UAA0C,EAC1C,IAAoC;QAEpC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACpB,+EAA+E,EAC/E;YACE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,YAAY,EAAE,IAAI,CAAC,WAAW;oBAC9B,cAAc,EAAE,aAAa;oBAC7B,WAAW,EAAE,UAAU;iBACxB;aACF;YACD,IAAI;SACL,CACF,CACF,CAAA;IACH,CAAC;CACF"}
@@ -57,7 +57,7 @@ export interface paths {
57
57
  * Get Availability
58
58
  * @description Return available appointment slots for the surface's workspace.
59
59
  *
60
- * Queries FHIR Slot resources from world.entities_synced_v3 that are free
60
+ * Queries FHIR Slot resources from world.entities_synced that are free
61
61
  * and within the requested date range. Token-authenticated, no Bearer auth.
62
62
  */
63
63
  get: operations["get-surface-availability"];
@@ -3160,7 +3160,42 @@ export interface paths {
3160
3160
  patch?: never;
3161
3161
  trace?: never;
3162
3162
  };
3163
+ "/v1/{workspace_id}/intake/datasets": {
3164
+ parameters: {
3165
+ query?: never;
3166
+ header?: never;
3167
+ path?: never;
3168
+ cookie?: never;
3169
+ };
3170
+ /** List Intake Datasets */
3171
+ get: operations["list_intake_datasets_v1__workspace_id__intake_datasets_get"];
3172
+ put?: never;
3173
+ post?: never;
3174
+ delete?: never;
3175
+ options?: never;
3176
+ head?: never;
3177
+ patch?: never;
3178
+ trace?: never;
3179
+ };
3163
3180
  "/v1/{workspace_id}/intake/files": {
3181
+ parameters: {
3182
+ query?: never;
3183
+ header?: never;
3184
+ path?: never;
3185
+ cookie?: never;
3186
+ };
3187
+ /** List Intake Files */
3188
+ get: operations["list_intake_files_v1__workspace_id__intake_files_get"];
3189
+ put?: never;
3190
+ /** Upload Intake File */
3191
+ post: operations["upload_intake_file_v1__workspace_id__intake_files_post"];
3192
+ delete?: never;
3193
+ options?: never;
3194
+ head?: never;
3195
+ patch?: never;
3196
+ trace?: never;
3197
+ };
3198
+ "/v1/{workspace_id}/intake/files/external": {
3164
3199
  parameters: {
3165
3200
  query?: never;
3166
3201
  header?: never;
@@ -3170,7 +3205,24 @@ export interface paths {
3170
3205
  get?: never;
3171
3206
  put?: never;
3172
3207
  /** Receive Intake File */
3173
- post: operations["receive_intake_file_v1__workspace_id__intake_files_post"];
3208
+ post: operations["receive_intake_file_v1__workspace_id__intake_files_external_post"];
3209
+ delete?: never;
3210
+ options?: never;
3211
+ head?: never;
3212
+ patch?: never;
3213
+ trace?: never;
3214
+ };
3215
+ "/v1/{workspace_id}/intake/files/{file_id}/download": {
3216
+ parameters: {
3217
+ query?: never;
3218
+ header?: never;
3219
+ path?: never;
3220
+ cookie?: never;
3221
+ };
3222
+ /** Download Intake File */
3223
+ get: operations["download_intake_file_v1__workspace_id__intake_files__file_id__download_get"];
3224
+ put?: never;
3225
+ post?: never;
3174
3226
  delete?: never;
3175
3227
  options?: never;
3176
3228
  head?: never;
@@ -3252,6 +3304,23 @@ export interface paths {
3252
3304
  patch?: never;
3253
3305
  trace?: never;
3254
3306
  };
3307
+ "/v1/{workspace_id}/intake/schema/register": {
3308
+ parameters: {
3309
+ query?: never;
3310
+ header?: never;
3311
+ path?: never;
3312
+ cookie?: never;
3313
+ };
3314
+ get?: never;
3315
+ put?: never;
3316
+ /** Register Intake Schema */
3317
+ post: operations["register_intake_schema_v1__workspace_id__intake_schema_register_post"];
3318
+ delete?: never;
3319
+ options?: never;
3320
+ head?: never;
3321
+ patch?: never;
3322
+ trace?: never;
3323
+ };
3255
3324
  "/v1/{workspace_id}/integrations": {
3256
3325
  parameters: {
3257
3326
  query?: never;
@@ -7020,7 +7089,7 @@ export interface paths {
7020
7089
  put?: never;
7021
7090
  /**
7022
7091
  * Resolve entity by identifier
7023
- * @description Polymorphic identifier → ranked entity candidates. Accepts any subset of {phone, email, canonical_id, external_id, entity_id} plus a required ``entity_type``. Served from the SDP serving surfaces: entity rows from ``world.entities_synced_v3``; canonical_id and external_id resolve through ``world.canonical_entity_map_synced`` point reads. Returns matches ranked by confidence + number of identifiers matched. Summary narrowing: ``external_ids`` is always ``{}``, ``tags`` is always ``[]``, and ``canonical_id`` is the canonical-map value or the entity's MRN.
7092
+ * @description Polymorphic identifier → ranked entity candidates. Accepts any subset of {phone, email, canonical_id, external_id, entity_id} plus a required ``entity_type``. Served from the SDP serving surfaces: entity rows from ``world.entities_synced``; canonical_id and external_id resolve through ``world.canonical_entity_map_synced`` point reads. Returns matches ranked by confidence + number of identifiers matched. Summary narrowing: ``external_ids`` is always ``{}``, ``tags`` is always ``[]``, and ``canonical_id`` is the canonical-map value or the entity's MRN.
7024
7093
  */
7025
7094
  post: operations["resolve-entity"];
7026
7095
  delete?: never;
@@ -8249,6 +8318,13 @@ export interface components {
8249
8318
  */
8250
8319
  workspace_id: string;
8251
8320
  };
8321
+ /** Body_upload_intake_file_v1__workspace_id__intake_files_post */
8322
+ Body_upload_intake_file_v1__workspace_id__intake_files_post: {
8323
+ /** Dataset */
8324
+ dataset: string;
8325
+ /** File */
8326
+ file: string;
8327
+ };
8252
8328
  /** Body_voice-turn */
8253
8329
  "Body_voice-turn": {
8254
8330
  /** Audio */
@@ -10692,7 +10768,7 @@ export interface components {
10692
10768
  * @description World model outbound_task entity ID for completion feedback.
10693
10769
  */
10694
10770
  outbound_task_entity_id?: string | null;
10695
- /** @description Patient world model canonical_id of the form 'source:resource_type:id' (e.g. 'charmhealth:Patient:67890'). The structural regex on CanonicalIdString rejects spaces, names, DOBs, and similar regulated content so PHI cannot leak into audit events or pipeline projections. The raw value is deliberately not recorded in the outbound.initiated event — correlation back to the source system is via the resolved entity_id joined to world.entities_synced_v3.canonical_id. Resolved against the SDP-projected world.entities_synced_v3 table; an entity created moments ago may not yet be visible if the projection is lagging. Provide either patient_entity_id or patient_canonical_id, not both. */
10771
+ /** @description Patient world model canonical_id of the form 'source:resource_type:id' (e.g. 'charmhealth:Patient:67890'). The structural regex on CanonicalIdString rejects spaces, names, DOBs, and similar regulated content so PHI cannot leak into audit events or pipeline projections. The raw value is deliberately not recorded in the outbound.initiated event — correlation back to the source system is via the resolved entity_id joined to world.entities_synced.canonical_id. Resolved against the SDP-projected world.entities_synced table; an entity created moments ago may not yet be visible if the projection is lagging. Provide either patient_entity_id or patient_canonical_id, not both. */
10696
10772
  patient_canonical_id?: components["schemas"]["CanonicalIdString"] | null;
10697
10773
  /**
10698
10774
  * Patient Entity Id
@@ -11170,6 +11246,10 @@ export interface components {
11170
11246
  body_encoding: "json" | "form";
11171
11247
  /** Exchange Url */
11172
11248
  exchange_url: string;
11249
+ /** Identity Binding Test Values */
11250
+ identity_binding_test_values?: {
11251
+ [key: string]: string;
11252
+ };
11173
11253
  /** Identity Bindings */
11174
11254
  identity_bindings: {
11175
11255
  [key: string]: string;
@@ -11220,6 +11300,17 @@ export interface components {
11220
11300
  * Format: uri
11221
11301
  */
11222
11302
  exchange_url: string;
11303
+ /**
11304
+ * Identity Binding Test Values
11305
+ * @description Author-configured test values for identity-bound params.
11306
+ *
11307
+ * Only ``external_user.subject_key`` bindings may carry test values. Runtime
11308
+ * dispatch uses them only when a backend execution path explicitly opts in.
11309
+ * @default {}
11310
+ */
11311
+ identity_binding_test_values?: {
11312
+ [key: string]: string;
11313
+ };
11223
11314
  /**
11224
11315
  * Identity Bindings
11225
11316
  * @description Maps a declared ``param_name`` to the verified identity attribute that supplies it
@@ -11874,6 +11965,24 @@ export interface components {
11874
11965
  */
11875
11966
  sensitive?: boolean;
11876
11967
  };
11968
+ /**
11969
+ * DatasetRow
11970
+ * @description A registered schema in the Schemas list (intake-ui-mvp-design.md §5.3).
11971
+ */
11972
+ DatasetRow: {
11973
+ /** Field Count */
11974
+ field_count: number;
11975
+ /** File Type */
11976
+ file_type: string;
11977
+ limits: components["schemas"]["Limits"];
11978
+ /**
11979
+ * Name
11980
+ * @description Dataset slug (UI label "Schema").
11981
+ */
11982
+ name: string;
11983
+ /** Schema Version */
11984
+ schema_version: string;
11985
+ };
11877
11986
  /**
11878
11987
  * DecisionFactor
11879
11988
  * @description A specific audio input that drove an agent decision.
@@ -13056,7 +13165,7 @@ export interface components {
13056
13165
  * the ones a UI / agent needs to confirm "yes, that's the right
13057
13166
  * person" before paying for the full state read.
13058
13167
  *
13059
- * Stage-7 narrowing (resolver serves from ``entities_synced_v3`` +
13168
+ * Stage-7 narrowing (resolver serves from ``entities_synced`` +
13060
13169
  * the canonical entity map; fields retained for wire compatibility):
13061
13170
  * ``external_ids`` is always ``{}`` and ``tags`` is always ``[]`` —
13062
13171
  * neither survives on the synced serving table. ``canonical_id`` is
@@ -15207,6 +15316,15 @@ export interface components {
15207
15316
  */
15208
15317
  status: "delivered" | "queued_no_subscriber";
15209
15318
  };
15319
+ /**
15320
+ * IntakeFieldType
15321
+ * @description Allowed ``schema[].type`` values for a registered contract.
15322
+ *
15323
+ * Confirmed set (intake-ui-mvp design contract point #1): scalars plus
15324
+ * ISO date/datetime. Coercion semantics live in :func:`_coerces`.
15325
+ * @enum {string}
15326
+ */
15327
+ IntakeFieldType: "str" | "int" | "float" | "bool" | "date" | "datetime";
15210
15328
  /** IntakeFileResponse */
15211
15329
  IntakeFileResponse: {
15212
15330
  /**
@@ -15223,6 +15341,43 @@ export interface components {
15223
15341
  /** Volume Path */
15224
15342
  volume_path: string;
15225
15343
  };
15344
+ /**
15345
+ * IntakeFileRow
15346
+ * @description A file in the Files list (intake-ui-mvp-design.md §5.1).
15347
+ */
15348
+ IntakeFileRow: {
15349
+ /**
15350
+ * Dataset
15351
+ * @description Schema slug (UI label "Schema").
15352
+ */
15353
+ dataset: string;
15354
+ /**
15355
+ * Error Reason
15356
+ * @description Null unless rejected/failed.
15357
+ */
15358
+ error_reason?: string | null;
15359
+ /** Filename */
15360
+ filename: string;
15361
+ /**
15362
+ * Id
15363
+ * Format: uuid
15364
+ * @description file_id — used for download.
15365
+ */
15366
+ id: string;
15367
+ /**
15368
+ * Ingested At
15369
+ * @description ISO-8601 timestamp the file was received.
15370
+ */
15371
+ ingested_at: string;
15372
+ /**
15373
+ * Schema Version
15374
+ * @description The contract version this file validated against (e.g. ``v1``).
15375
+ */
15376
+ schema_version?: string | null;
15377
+ /** Size Bytes */
15378
+ size_bytes: number;
15379
+ status: components["schemas"]["_FileStatus"];
15380
+ };
15226
15381
  /** IntakeLinkResponse */
15227
15382
  IntakeLinkResponse: {
15228
15383
  /**
@@ -15923,6 +16078,11 @@ export interface components {
15923
16078
  /** Success */
15924
16079
  success: boolean;
15925
16080
  };
16081
+ /** Limits */
16082
+ Limits: {
16083
+ /** Max Size Mb */
16084
+ max_size_mb?: number | null;
16085
+ };
15926
16086
  /**
15927
16087
  * LinkErrorResponse
15928
16088
  * @description Error envelope returned for token / link validation failures.
@@ -17562,6 +17722,17 @@ export interface components {
17562
17722
  /** Total */
17563
17723
  total?: number | null;
17564
17724
  };
17725
+ /** PaginatedResponse[DatasetRow] */
17726
+ PaginatedResponse_DatasetRow_: {
17727
+ /** Continuation Token */
17728
+ continuation_token?: number | null;
17729
+ /** Has More */
17730
+ has_more: boolean;
17731
+ /** Items */
17732
+ items: components["schemas"]["DatasetRow"][];
17733
+ /** Total */
17734
+ total?: number | null;
17735
+ };
17565
17736
  /** PaginatedResponse[EscalationEventResponse] */
17566
17737
  PaginatedResponse_EscalationEventResponse_: {
17567
17738
  /** Continuation Token */
@@ -17584,6 +17755,17 @@ export interface components {
17584
17755
  /** Total */
17585
17756
  total?: number | null;
17586
17757
  };
17758
+ /** PaginatedResponse[IntakeFileRow] */
17759
+ PaginatedResponse_IntakeFileRow_: {
17760
+ /** Continuation Token */
17761
+ continuation_token?: number | null;
17762
+ /** Has More */
17763
+ has_more: boolean;
17764
+ /** Items */
17765
+ items: components["schemas"]["IntakeFileRow"][];
17766
+ /** Total */
17767
+ total?: number | null;
17768
+ };
17587
17769
  /** PaginatedResponse[InvoiceItem] */
17588
17770
  PaginatedResponse_InvoiceItem_: {
17589
17771
  /** Continuation Token */
@@ -18700,7 +18882,7 @@ export interface components {
18700
18882
  next_offset?: number | null;
18701
18883
  /**
18702
18884
  * Resolved Call Sid
18703
- * @description When ``conversation_id`` was supplied, this is the underlying ``call_sid`` that the lookup resolved to. Useful for callers that want to drill into per-call surfaces afterward without re-querying ``world.entities_synced_v3``. Null when the caller filtered by ``call_sid`` directly or did not filter by conversation.
18885
+ * @description When ``conversation_id`` was supplied, this is the underlying ``call_sid`` that the lookup resolved to. Useful for callers that want to drill into per-call surfaces afterward without re-querying ``world.entities_synced``. Null when the caller filtered by ``call_sid`` directly or did not filter by conversation.
18704
18886
  */
18705
18887
  resolved_call_sid?: string | null;
18706
18888
  /**
@@ -19019,6 +19201,31 @@ export interface components {
19019
19201
  */
19020
19202
  status?: "available";
19021
19203
  };
19204
+ /**
19205
+ * RegisterSchemaRequest
19206
+ * @description Create Schema payload (intake-ui-mvp-design.md §5.4).
19207
+ *
19208
+ * The backend applies the hidden defaults (``ingestion_mode=snapshot``,
19209
+ * ``on_schema_change=additive``, ``schema_version`` auto) — they are not part
19210
+ * of the wire contract.
19211
+ */
19212
+ RegisterSchemaRequest: {
19213
+ /**
19214
+ * File Type
19215
+ * @constant
19216
+ */
19217
+ file_type: "csv";
19218
+ /** Max Size Mb */
19219
+ max_size_mb?: number | null;
19220
+ name: components["schemas"]["_DatasetSlug"];
19221
+ /** Primary Key */
19222
+ primary_key: components["schemas"]["_FieldName"][];
19223
+ /**
19224
+ * Schema
19225
+ * @description Canonical field list ``[{name, type}]`` (wire key ``schema``).
19226
+ */
19227
+ schema: components["schemas"]["SchemaFieldSpec"][];
19228
+ };
19022
19229
  /**
19023
19230
  * RegisteredFunction
19024
19231
  * @description The authored shape of a platform function.
@@ -19820,6 +20027,11 @@ export interface components {
19820
20027
  */
19821
20028
  workspace_id: string;
19822
20029
  };
20030
+ /** SchemaFieldSpec */
20031
+ SchemaFieldSpec: {
20032
+ name: components["schemas"]["_FieldName"];
20033
+ type: components["schemas"]["IntakeFieldType"];
20034
+ };
19823
20035
  /** SchemaResponse */
19824
20036
  SchemaResponse: {
19825
20037
  /** Ai Functions */
@@ -20145,6 +20357,8 @@ export interface components {
20145
20357
  progress_interval_ms?: number | null;
20146
20358
  /** Progress Vocabulary */
20147
20359
  progress_vocabulary?: string[] | null;
20360
+ /** Session Provider */
20361
+ session_provider?: ("inhouse" | "openai_realtime") | null;
20148
20362
  /** Transition Deadline Ms */
20149
20363
  transition_deadline_ms?: number | null;
20150
20364
  /** Tts Config */
@@ -20213,6 +20427,8 @@ export interface components {
20213
20427
  progress_interval_ms?: number | null;
20214
20428
  /** Progress Vocabulary */
20215
20429
  progress_vocabulary?: string[] | null;
20430
+ /** Session Provider */
20431
+ session_provider?: ("inhouse" | "openai_realtime") | null;
20216
20432
  /** Transition Deadline Ms */
20217
20433
  transition_deadline_ms?: number | null;
20218
20434
  /** Tts Config */
@@ -21756,7 +21972,7 @@ export interface components {
21756
21972
  };
21757
21973
  /** StartSessionRequest */
21758
21974
  StartSessionRequest: {
21759
- /** @description World model canonical_id of the form 'source:resource_type:id' (e.g. 'charmhealth:Patient:67890'). The structural regex on CanonicalIdString blocks spaces, names, DOBs, and similar regulated content. Resolved against the SDP-projected world.entities_synced_v3 table; a freshly-created entity may not be visible yet if the projection is lagging. Provide either entity_id or canonical_id, not both. */
21975
+ /** @description World model canonical_id of the form 'source:resource_type:id' (e.g. 'charmhealth:Patient:67890'). The structural regex on CanonicalIdString blocks spaces, names, DOBs, and similar regulated content. Resolved against the SDP-projected world.entities_synced table; a freshly-created entity may not be visible yet if the projection is lagging. Provide either entity_id or canonical_id, not both. */
21760
21976
  canonical_id?: components["schemas"]["CanonicalIdString"] | null;
21761
21977
  /**
21762
21978
  * Channel Kind
@@ -23393,7 +23609,7 @@ export interface components {
23393
23609
  TraceAnalysisListItem: {
23394
23610
  /**
23395
23611
  * Call Entity Id
23396
- * @description Associated world.entities_synced_v3 call row UUID
23612
+ * @description Associated world.entities_synced call row UUID
23397
23613
  */
23398
23614
  call_entity_id?: string | null;
23399
23615
  /**
@@ -23473,7 +23689,7 @@ export interface components {
23473
23689
  TraceAnalysisResponse: {
23474
23690
  /**
23475
23691
  * Call Entity Id
23476
- * @description UUID string of the associated world.entities_synced_v3 call row (if resolved)
23692
+ * @description UUID string of the associated world.entities_synced call row (if resolved)
23477
23693
  */
23478
23694
  call_entity_id?: string | null;
23479
23695
  /**
@@ -24804,6 +25020,12 @@ export interface components {
24804
25020
  llm_model_preferences?: {
24805
25021
  [key: string]: components["schemas"]["LLMConfig"];
24806
25022
  };
25023
+ /**
25024
+ * Turn Runtime
25025
+ * @default native
25026
+ * @enum {string}
25027
+ */
25028
+ turn_runtime?: "native" | "openai-agents";
24807
25029
  };
24808
25030
  /**
24809
25031
  * VersionSet
@@ -24818,6 +25040,12 @@ export interface components {
24818
25040
  llm_model_preferences?: {
24819
25041
  [key: string]: components["schemas"]["LLMConfig"];
24820
25042
  };
25043
+ /**
25044
+ * Turn Runtime
25045
+ * @default native
25046
+ * @enum {string}
25047
+ */
25048
+ turn_runtime?: "native" | "openai-agents";
24821
25049
  };
24822
25050
  /** VoiceConfig */
24823
25051
  VoiceConfig: {
@@ -24825,6 +25053,8 @@ export interface components {
24825
25053
  language_providers?: {
24826
25054
  [key: string]: components["schemas"]["LanguageProviderEntry"];
24827
25055
  } | null;
25056
+ /** Session Provider */
25057
+ session_provider?: ("inhouse" | "openai_realtime") | null;
24828
25058
  /**
24829
25059
  * Similarity Boost
24830
25060
  * @default 0
@@ -25408,6 +25638,7 @@ export interface components {
25408
25638
  };
25409
25639
  /** @enum {string} */
25410
25640
  _Access: "read" | "write";
25641
+ _DatasetSlug: string;
25411
25642
  /**
25412
25643
  * _DayHours
25413
25644
  * @description Open-hours window for one weekday. Times in 24h ``HH:MM`` form,
@@ -25419,6 +25650,9 @@ export interface components {
25419
25650
  /** Start */
25420
25651
  start: string;
25421
25652
  };
25653
+ _FieldName: string;
25654
+ /** @enum {string} */
25655
+ _FileStatus: "received" | "scanned" | "processing" | "curated" | "rejected" | "failed" | "held";
25422
25656
  /** @enum {string} */
25423
25657
  _ResourceType: "integration_endpoint" | "skill" | "kb_scope";
25424
25658
  _ToolMockKey: string;
@@ -34746,7 +34980,115 @@ export interface operations {
34746
34980
  };
34747
34981
  };
34748
34982
  };
34749
- receive_intake_file_v1__workspace_id__intake_files_post: {
34983
+ list_intake_datasets_v1__workspace_id__intake_datasets_get: {
34984
+ parameters: {
34985
+ query?: {
34986
+ limit?: number;
34987
+ continuation_token?: number;
34988
+ sort_by?: string;
34989
+ search?: string | null;
34990
+ };
34991
+ header?: never;
34992
+ path: {
34993
+ workspace_id: string;
34994
+ };
34995
+ cookie?: never;
34996
+ };
34997
+ requestBody?: never;
34998
+ responses: {
34999
+ /** @description Successful Response */
35000
+ 200: {
35001
+ headers: {
35002
+ [name: string]: unknown;
35003
+ };
35004
+ content: {
35005
+ "application/json": components["schemas"]["PaginatedResponse_DatasetRow_"];
35006
+ };
35007
+ };
35008
+ /** @description Validation Error */
35009
+ 422: {
35010
+ headers: {
35011
+ [name: string]: unknown;
35012
+ };
35013
+ content: {
35014
+ "application/json": components["schemas"]["HTTPValidationError"];
35015
+ };
35016
+ };
35017
+ };
35018
+ };
35019
+ list_intake_files_v1__workspace_id__intake_files_get: {
35020
+ parameters: {
35021
+ query?: {
35022
+ limit?: number;
35023
+ continuation_token?: number;
35024
+ sort_by?: string;
35025
+ status?: components["schemas"]["_FileStatus"] | null;
35026
+ search?: string | null;
35027
+ };
35028
+ header?: never;
35029
+ path: {
35030
+ workspace_id: string;
35031
+ };
35032
+ cookie?: never;
35033
+ };
35034
+ requestBody?: never;
35035
+ responses: {
35036
+ /** @description Successful Response */
35037
+ 200: {
35038
+ headers: {
35039
+ [name: string]: unknown;
35040
+ };
35041
+ content: {
35042
+ "application/json": components["schemas"]["PaginatedResponse_IntakeFileRow_"];
35043
+ };
35044
+ };
35045
+ /** @description Validation Error */
35046
+ 422: {
35047
+ headers: {
35048
+ [name: string]: unknown;
35049
+ };
35050
+ content: {
35051
+ "application/json": components["schemas"]["HTTPValidationError"];
35052
+ };
35053
+ };
35054
+ };
35055
+ };
35056
+ upload_intake_file_v1__workspace_id__intake_files_post: {
35057
+ parameters: {
35058
+ query?: never;
35059
+ header?: never;
35060
+ path: {
35061
+ workspace_id: string;
35062
+ };
35063
+ cookie?: never;
35064
+ };
35065
+ requestBody: {
35066
+ content: {
35067
+ "multipart/form-data": components["schemas"]["Body_upload_intake_file_v1__workspace_id__intake_files_post"];
35068
+ };
35069
+ };
35070
+ responses: {
35071
+ /** @description Successful Response */
35072
+ 201: {
35073
+ headers: {
35074
+ [name: string]: unknown;
35075
+ };
35076
+ content: {
35077
+ "application/json": components["schemas"]["IntakeFileRow"];
35078
+ };
35079
+ };
35080
+ /** @description Validation Error */
35081
+ 422: {
35082
+ headers: {
35083
+ [name: string]: unknown;
35084
+ };
35085
+ content: {
35086
+ "application/json": components["schemas"]["HTTPValidationError"];
35087
+ };
35088
+ };
35089
+ };
35090
+ };
35091
+ receive_intake_file_v1__workspace_id__intake_files_external_post: {
34750
35092
  parameters: {
34751
35093
  query?: never;
34752
35094
  header: {
@@ -34784,6 +35126,38 @@ export interface operations {
34784
35126
  };
34785
35127
  };
34786
35128
  };
35129
+ download_intake_file_v1__workspace_id__intake_files__file_id__download_get: {
35130
+ parameters: {
35131
+ query?: never;
35132
+ header?: never;
35133
+ path: {
35134
+ workspace_id: string;
35135
+ file_id: string;
35136
+ };
35137
+ cookie?: never;
35138
+ };
35139
+ requestBody?: never;
35140
+ responses: {
35141
+ /** @description Successful Response */
35142
+ 200: {
35143
+ headers: {
35144
+ [name: string]: unknown;
35145
+ };
35146
+ content: {
35147
+ "application/json": unknown;
35148
+ };
35149
+ };
35150
+ /** @description Validation Error */
35151
+ 422: {
35152
+ headers: {
35153
+ [name: string]: unknown;
35154
+ };
35155
+ content: {
35156
+ "application/json": components["schemas"]["HTTPValidationError"];
35157
+ };
35158
+ };
35159
+ };
35160
+ };
34787
35161
  "list-intake-links": {
34788
35162
  parameters: {
34789
35163
  query?: {
@@ -34966,6 +35340,41 @@ export interface operations {
34966
35340
  };
34967
35341
  };
34968
35342
  };
35343
+ register_intake_schema_v1__workspace_id__intake_schema_register_post: {
35344
+ parameters: {
35345
+ query?: never;
35346
+ header?: never;
35347
+ path: {
35348
+ workspace_id: string;
35349
+ };
35350
+ cookie?: never;
35351
+ };
35352
+ requestBody: {
35353
+ content: {
35354
+ "application/json": components["schemas"]["RegisterSchemaRequest"];
35355
+ };
35356
+ };
35357
+ responses: {
35358
+ /** @description Successful Response */
35359
+ 201: {
35360
+ headers: {
35361
+ [name: string]: unknown;
35362
+ };
35363
+ content: {
35364
+ "application/json": components["schemas"]["DatasetRow"];
35365
+ };
35366
+ };
35367
+ /** @description Validation Error */
35368
+ 422: {
35369
+ headers: {
35370
+ [name: string]: unknown;
35371
+ };
35372
+ content: {
35373
+ "application/json": components["schemas"]["HTTPValidationError"];
35374
+ };
35375
+ };
35376
+ };
35377
+ };
34969
35378
  "list-integrations": {
34970
35379
  parameters: {
34971
35380
  query?: {