@amigo-ai/platform-sdk 0.80.0 → 0.81.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.
@@ -679,7 +679,7 @@ export interface paths {
679
679
  get: operations["get-test-caller-numbers"];
680
680
  /**
681
681
  * Update test caller numbers
682
- * @description Set phone numbers to be treated as test callers. Calls from these numbers will have direction='test' and be excluded from outbound EHR sync.
682
+ * @description Set phone numbers to be treated as test callers. Calls from these numbers are tagged source='test' and excluded from billing, scores, analytics, outbound EHR sync, and entity views.
683
683
  */
684
684
  put: operations["update-test-caller-numbers"];
685
685
  post?: never;
@@ -689,6 +689,30 @@ export interface paths {
689
689
  patch?: never;
690
690
  trace?: never;
691
691
  };
692
+ "/v1/workspaces/{workspace_id}/test-credential-ids": {
693
+ parameters: {
694
+ query?: never;
695
+ header?: never;
696
+ path?: never;
697
+ cookie?: never;
698
+ };
699
+ /**
700
+ * Get test credential IDs
701
+ * @description Get the credential IDs configured as test principals for this workspace's text channel.
702
+ */
703
+ get: operations["get-test-credential-ids"];
704
+ /**
705
+ * Update test credential IDs
706
+ * @description Set credential IDs to be treated as test principals. Text turns from these credentials are tagged source='test' and excluded from billing, scores, analytics, outbound EHR sync, and entity views.
707
+ */
708
+ put: operations["update-test-credential-ids"];
709
+ post?: never;
710
+ delete?: never;
711
+ options?: never;
712
+ head?: never;
713
+ patch?: never;
714
+ trace?: never;
715
+ };
692
716
  "/v1/{workspace_id}/agents": {
693
717
  parameters: {
694
718
  query?: never;
@@ -1700,6 +1724,45 @@ export interface paths {
1700
1724
  patch?: never;
1701
1725
  trace?: never;
1702
1726
  };
1727
+ "/v1/{workspace_id}/calls/{conversation_id}/eval-results": {
1728
+ parameters: {
1729
+ query?: never;
1730
+ header?: never;
1731
+ path?: never;
1732
+ cookie?: never;
1733
+ };
1734
+ /** Get Call Eval Results */
1735
+ get: operations["get-call-eval-results"];
1736
+ put?: never;
1737
+ post?: never;
1738
+ delete?: never;
1739
+ options?: never;
1740
+ head?: never;
1741
+ patch?: never;
1742
+ trace?: never;
1743
+ };
1744
+ "/v1/{workspace_id}/calls/{conversation_id}/evaluate": {
1745
+ parameters: {
1746
+ query?: never;
1747
+ header?: never;
1748
+ path?: never;
1749
+ cookie?: never;
1750
+ };
1751
+ get?: never;
1752
+ put?: never;
1753
+ /**
1754
+ * Evaluate Call
1755
+ * @description Run the workspace's active eval definitions against one completed call and
1756
+ * persist the verdicts. Synchronous (the caller waits on the judge); the eager
1757
+ * post-call trigger is a separate change.
1758
+ */
1759
+ post: operations["evaluate-call"];
1760
+ delete?: never;
1761
+ options?: never;
1762
+ head?: never;
1763
+ patch?: never;
1764
+ trace?: never;
1765
+ };
1703
1766
  "/v1/{workspace_id}/channels/email/templates": {
1704
1767
  parameters: {
1705
1768
  query?: never;
@@ -3156,6 +3219,95 @@ export interface paths {
3156
3219
  patch?: never;
3157
3220
  trace?: never;
3158
3221
  };
3222
+ "/v1/{workspace_id}/intake/batches": {
3223
+ parameters: {
3224
+ query?: never;
3225
+ header?: never;
3226
+ path?: never;
3227
+ cookie?: never;
3228
+ };
3229
+ /** List Intake Batches */
3230
+ get: operations["list_intake_batches_v1__workspace_id__intake_batches_get"];
3231
+ put?: never;
3232
+ post?: never;
3233
+ delete?: never;
3234
+ options?: never;
3235
+ head?: never;
3236
+ patch?: never;
3237
+ trace?: never;
3238
+ };
3239
+ "/v1/{workspace_id}/intake/batches/{batch_id}": {
3240
+ parameters: {
3241
+ query?: never;
3242
+ header?: never;
3243
+ path?: never;
3244
+ cookie?: never;
3245
+ };
3246
+ /** Get Intake Batch */
3247
+ get: operations["get_intake_batch_v1__workspace_id__intake_batches__batch_id__get"];
3248
+ put?: never;
3249
+ post?: never;
3250
+ delete?: never;
3251
+ options?: never;
3252
+ head?: never;
3253
+ patch?: never;
3254
+ trace?: never;
3255
+ };
3256
+ "/v1/{workspace_id}/intake/batches/{batch_id}/process": {
3257
+ parameters: {
3258
+ query?: never;
3259
+ header?: never;
3260
+ path?: never;
3261
+ cookie?: never;
3262
+ };
3263
+ get?: never;
3264
+ put?: never;
3265
+ /**
3266
+ * Process Intake Batch
3267
+ * @description Start processing a batch (idempotent + resumable). Dispatches only the
3268
+ * still-``received`` files, so re-running picks up any that weren't triggered:
3269
+ *
3270
+ * * **Snapshot/CSV — ordered:** CDC depends on the prior curated baseline, so
3271
+ * only the lowest-version file fires now; each verdict chains the next via the
3272
+ * status write-back.
3273
+ * * **Documents — one batch run:** a single extract-job run processes every
3274
+ * received file (it pulls them from the processing-manifest). NOT one run-now
3275
+ * per file — that serialised on the request path and 504'd for large batches.
3276
+ *
3277
+ * The batch rolls up to completed/failed (via the write-back) once every file
3278
+ * reaches a terminal verdict. Allowed from ``ready`` or ``processing`` (re-kick
3279
+ * a partially-dispatched batch); a terminal batch is a 409.
3280
+ */
3281
+ post: operations["process_intake_batch_v1__workspace_id__intake_batches__batch_id__process_post"];
3282
+ delete?: never;
3283
+ options?: never;
3284
+ head?: never;
3285
+ patch?: never;
3286
+ trace?: never;
3287
+ };
3288
+ "/v1/{workspace_id}/intake/batches/{batch_id}/processing-manifest": {
3289
+ parameters: {
3290
+ query?: never;
3291
+ header?: never;
3292
+ path?: never;
3293
+ cookie?: never;
3294
+ };
3295
+ /**
3296
+ * Get Batch Processing Manifest
3297
+ * @description The per-file params the batch-extract job needs to process every still-
3298
+ * ``received`` file in one run. Same workspace-scoped auth as the write-back
3299
+ * (the job holds the batch's agent-session token). Documents only — snapshot/CSV
3300
+ * batches process in version order via the chained per-file path, not here.
3301
+ */
3302
+ get: operations["get_batch_processing_manifest_v1__workspace_id__intake_batches__batch_id__processing_manifest_get"];
3303
+ put?: never;
3304
+ post?: never;
3305
+ delete?: never;
3306
+ options?: never;
3307
+ head?: never;
3308
+ patch?: never;
3309
+ trace?: never;
3310
+ };
3159
3311
  "/v1/{workspace_id}/intake/datasets": {
3160
3312
  parameters: {
3161
3313
  query?: never;
@@ -3236,12 +3388,13 @@ export interface paths {
3236
3388
  put?: never;
3237
3389
  /**
3238
3390
  * Write Back Intake File Status
3239
- * @description Advance a file's status from the async CDC job (P4).
3391
+ * @description Advance a file's status from the async CDC/extraction job (P4).
3240
3392
  *
3241
3393
  * The job authenticates with the workspace's API key (Bearer) — the same
3242
3394
  * Databricks→platform-api path launch_dpc uses — so RLS scopes the update to
3243
3395
  * that workspace. Moves the row to its terminal verdict and records the
3244
- * curated/cdc paths.
3396
+ * curated/cdc paths. For a batch-sourced file, advances its batch (chain the
3397
+ * next snapshot version + roll up) once the verdict is terminal.
3245
3398
  */
3246
3399
  post: operations["write_back_intake_file_status_v1__workspace_id__intake_files__file_id__status_post"];
3247
3400
  delete?: never;
@@ -3342,6 +3495,41 @@ export interface paths {
3342
3495
  patch?: never;
3343
3496
  trace?: never;
3344
3497
  };
3498
+ "/v1/{workspace_id}/intake/sources": {
3499
+ parameters: {
3500
+ query?: never;
3501
+ header?: never;
3502
+ path?: never;
3503
+ cookie?: never;
3504
+ };
3505
+ /** List Intake Sources */
3506
+ get: operations["list_intake_sources_v1__workspace_id__intake_sources_get"];
3507
+ put?: never;
3508
+ /** Register Intake Source */
3509
+ post: operations["register_intake_source_v1__workspace_id__intake_sources_post"];
3510
+ delete?: never;
3511
+ options?: never;
3512
+ head?: never;
3513
+ patch?: never;
3514
+ trace?: never;
3515
+ };
3516
+ "/v1/{workspace_id}/intake/sources/{source_id}/sync": {
3517
+ parameters: {
3518
+ query?: never;
3519
+ header?: never;
3520
+ path?: never;
3521
+ cookie?: never;
3522
+ };
3523
+ get?: never;
3524
+ put?: never;
3525
+ /** Sync Intake Source */
3526
+ post: operations["sync_intake_source_v1__workspace_id__intake_sources__source_id__sync_post"];
3527
+ delete?: never;
3528
+ options?: never;
3529
+ head?: never;
3530
+ patch?: never;
3531
+ trace?: never;
3532
+ };
3345
3533
  "/v1/{workspace_id}/integrations": {
3346
3534
  parameters: {
3347
3535
  query?: never;
@@ -4568,6 +4756,43 @@ export interface paths {
4568
4756
  patch?: never;
4569
4757
  trace?: never;
4570
4758
  };
4759
+ "/v1/{workspace_id}/production-eval-definitions": {
4760
+ parameters: {
4761
+ query?: never;
4762
+ header?: never;
4763
+ path?: never;
4764
+ cookie?: never;
4765
+ };
4766
+ /** List Production Eval Definitions */
4767
+ get: operations["list-production-eval-definitions"];
4768
+ put?: never;
4769
+ /** Create Production Eval Definition */
4770
+ post: operations["create-production-eval-definition"];
4771
+ delete?: never;
4772
+ options?: never;
4773
+ head?: never;
4774
+ patch?: never;
4775
+ trace?: never;
4776
+ };
4777
+ "/v1/{workspace_id}/production-eval-definitions/{definition_id}": {
4778
+ parameters: {
4779
+ query?: never;
4780
+ header?: never;
4781
+ path?: never;
4782
+ cookie?: never;
4783
+ };
4784
+ /** Get Production Eval Definition */
4785
+ get: operations["get-production-eval-definition"];
4786
+ put?: never;
4787
+ post?: never;
4788
+ /** Delete Production Eval Definition */
4789
+ delete: operations["delete-production-eval-definition"];
4790
+ options?: never;
4791
+ head?: never;
4792
+ /** Update Production Eval Definition */
4793
+ patch: operations["update-production-eval-definition"];
4794
+ trace?: never;
4795
+ };
4571
4796
  "/v1/{workspace_id}/prompt-logs": {
4572
4797
  parameters: {
4573
4798
  query?: never;
@@ -8381,6 +8606,51 @@ export interface components {
8381
8606
  /** Notes */
8382
8607
  notes?: string | null;
8383
8608
  };
8609
+ /** BatchDetail */
8610
+ BatchDetail: {
8611
+ /** Created Ts */
8612
+ created_ts: string;
8613
+ /** Dataset */
8614
+ dataset: string;
8615
+ /**
8616
+ * Files
8617
+ * @default []
8618
+ */
8619
+ files?: components["schemas"]["IntakeFileRow"][];
8620
+ /** Files Found */
8621
+ files_found: number;
8622
+ /**
8623
+ * Id
8624
+ * Format: uuid
8625
+ * @description batch_id.
8626
+ */
8627
+ id: string;
8628
+ /** Source Id */
8629
+ source_id?: string | null;
8630
+ /**
8631
+ * Status
8632
+ * @description discovered | ready | processing | completed | failed.
8633
+ */
8634
+ status: string;
8635
+ };
8636
+ /**
8637
+ * BatchProcessingManifest
8638
+ * @description Per-file extraction params for a document batch's still-``received`` files —
8639
+ * consumed by the batch-extract job, which runs ONCE per batch and extracts
8640
+ * every file (instead of one run-now per file, which blows the request/gateway
8641
+ * timeout for large batches). Authenticated by the same short-lived
8642
+ * workspace-scoped token as the status write-back. ``document_processing`` is
8643
+ * dataset-wide (the contract); ``file_type`` is per-file (V265 multi-type).
8644
+ * Filenames are deliberately absent — PHI stays on the Lakebase row.
8645
+ */
8646
+ BatchProcessingManifest: {
8647
+ /** Document Processing */
8648
+ document_processing: {
8649
+ [key: string]: unknown;
8650
+ };
8651
+ /** Files */
8652
+ files: components["schemas"]["FileEntry"][];
8653
+ };
8384
8654
  /**
8385
8655
  * BatchRejectRequest
8386
8656
  * @description Batch reject multiple review items.
@@ -8391,6 +8661,31 @@ export interface components {
8391
8661
  /** Reason */
8392
8662
  reason: string;
8393
8663
  };
8664
+ /**
8665
+ * BatchRow
8666
+ * @description A source-sync batch (Batches list / detail).
8667
+ */
8668
+ BatchRow: {
8669
+ /** Created Ts */
8670
+ created_ts: string;
8671
+ /** Dataset */
8672
+ dataset: string;
8673
+ /** Files Found */
8674
+ files_found: number;
8675
+ /**
8676
+ * Id
8677
+ * Format: uuid
8678
+ * @description batch_id.
8679
+ */
8680
+ id: string;
8681
+ /** Source Id */
8682
+ source_id?: string | null;
8683
+ /**
8684
+ * Status
8685
+ * @description discovered | ready | processing | completed | failed.
8686
+ */
8687
+ status: string;
8688
+ };
8394
8689
  /** BillingDashboardResponse */
8395
8690
  BillingDashboardResponse: {
8396
8691
  /**
@@ -8898,6 +9193,78 @@ export interface components {
8898
9193
  */
8899
9194
  trigger: "caller" | "ai" | "operator";
8900
9195
  };
9196
+ /**
9197
+ * CallEvalResult
9198
+ * @description One eval verdict for one production call, keyed by ``conversation_id``.
9199
+ * Mirrors the sim eval-result shape. ``justification`` and ``cited_turns`` come
9200
+ * from the justified ai_query metric compute. PHI: ``justification`` / ``actual``
9201
+ * can echo live transcript content; never log them.
9202
+ */
9203
+ CallEvalResult: {
9204
+ /** Actual */
9205
+ actual?: unknown;
9206
+ /** Assertion Kind */
9207
+ assertion_kind?: string | null;
9208
+ /** Call Sid */
9209
+ call_sid?: string | null;
9210
+ /** Cited Turns */
9211
+ cited_turns?: unknown[];
9212
+ /** Computed At */
9213
+ computed_at?: string | null;
9214
+ /**
9215
+ * Conversation Id
9216
+ * Format: uuid
9217
+ */
9218
+ conversation_id: string;
9219
+ /** Created At */
9220
+ created_at?: string | null;
9221
+ /** Eval Key */
9222
+ eval_key: string;
9223
+ /**
9224
+ * Eval Type
9225
+ * @enum {string}
9226
+ */
9227
+ eval_type: "assertion" | "metric";
9228
+ /** Expected */
9229
+ expected?: unknown;
9230
+ /**
9231
+ * Id
9232
+ * Format: uuid
9233
+ */
9234
+ id?: string;
9235
+ /** Justification */
9236
+ justification?: string | null;
9237
+ /** Metric Key */
9238
+ metric_key?: string | null;
9239
+ /** Passed */
9240
+ passed?: boolean | null;
9241
+ /** Rationale */
9242
+ rationale?: string | null;
9243
+ /** Score */
9244
+ score?: number | null;
9245
+ /** Service Id */
9246
+ service_id?: string | null;
9247
+ /**
9248
+ * Status
9249
+ * @enum {string}
9250
+ */
9251
+ status: "passed" | "failed" | "pending" | "skipped" | "error";
9252
+ /**
9253
+ * Workspace Id
9254
+ * Format: uuid
9255
+ */
9256
+ workspace_id: string;
9257
+ };
9258
+ /** CallEvalResultsResponse */
9259
+ CallEvalResultsResponse: {
9260
+ /**
9261
+ * Conversation Id
9262
+ * Format: uuid
9263
+ */
9264
+ conversation_id: string;
9265
+ /** Results */
9266
+ results: components["schemas"]["CallEvalResult"][];
9267
+ };
8901
9268
  /**
8902
9269
  * CallIntelligenceDetail
8903
9270
  * @description Layer 4 (Narrative) intelligence for a completed call.
@@ -11058,6 +11425,33 @@ export interface components {
11058
11425
  */
11059
11426
  status: string;
11060
11427
  };
11428
+ /** CreateProductionEvalDefinitionRequest */
11429
+ CreateProductionEvalDefinitionRequest: {
11430
+ /**
11431
+ * Active
11432
+ * @default true
11433
+ */
11434
+ active?: boolean;
11435
+ /** Assertion Kind */
11436
+ assertion_kind?: string | null;
11437
+ /** Eval Key */
11438
+ eval_key: string;
11439
+ /**
11440
+ * Eval Type
11441
+ * @enum {string}
11442
+ */
11443
+ eval_type: "assertion" | "metric";
11444
+ /** Expected */
11445
+ expected?: unknown;
11446
+ /** Metric Key */
11447
+ metric_key?: string | null;
11448
+ /** Params */
11449
+ params?: {
11450
+ [key: string]: unknown;
11451
+ };
11452
+ /** Service Id */
11453
+ service_id?: string | null;
11454
+ };
11061
11455
  /** CreateRunRequest */
11062
11456
  CreateRunRequest: {
11063
11457
  /** Branch Name */
@@ -12494,6 +12888,19 @@ export interface components {
12494
12888
  */
12495
12889
  retain_source?: boolean;
12496
12890
  };
12891
+ /**
12892
+ * DriveFolderMapping
12893
+ * @description One Google Drive folder ↔ one intake dataset.
12894
+ *
12895
+ * ``folder_id`` is the Drive folder id (the identity — never the folder name,
12896
+ * which can be renamed/moved). One folder maps to exactly one dataset.
12897
+ */
12898
+ DriveFolderMapping: {
12899
+ /** Dataset */
12900
+ dataset: string;
12901
+ /** Folder Id */
12902
+ folder_id: string;
12903
+ };
12497
12904
  /** DropColumnAction */
12498
12905
  DropColumnAction: {
12499
12906
  name: components["schemas"]["IdentifierString"];
@@ -14851,6 +15258,34 @@ export interface components {
14851
15258
  * @enum {string}
14852
15259
  */
14853
15260
  FieldType: "text" | "textarea" | "date" | "phone" | "email" | "number" | "select" | "multiselect" | "checkbox" | "photo" | "signature" | "file" | "heading" | "info";
15261
+ /** FileEntry */
15262
+ FileEntry: {
15263
+ /** Content Type */
15264
+ content_type: string;
15265
+ /** Contract Id */
15266
+ contract_id?: string | null;
15267
+ /** Contract Version */
15268
+ contract_version?: string | null;
15269
+ /** Document Id */
15270
+ document_id?: string | null;
15271
+ /**
15272
+ * File Id
15273
+ * Format: uuid
15274
+ */
15275
+ file_id: string;
15276
+ /** File Type */
15277
+ file_type: string;
15278
+ /** Ingested At */
15279
+ ingested_at: string;
15280
+ /** Sha256 */
15281
+ sha256: string;
15282
+ /** Size Bytes */
15283
+ size_bytes: number;
15284
+ /** Source Path */
15285
+ source_path: string;
15286
+ /** Version */
15287
+ version: number;
15288
+ };
14854
15289
  /** FireTriggerRequest */
14855
15290
  FireTriggerRequest: {
14856
15291
  /**
@@ -15701,6 +16136,20 @@ export interface components {
15701
16136
  schema_version?: string | null;
15702
16137
  /** Size Bytes */
15703
16138
  size_bytes: number;
16139
+ /**
16140
+ * Source File Id
16141
+ * @description The source's stable external id (e.g. the Google Drive file id) for the
16142
+ * document. Lets the console show provenance and confirm a re-synced file
16143
+ * bumped the *same* document. Null for manual uploads and snapshot rows.
16144
+ */
16145
+ source_file_id?: string | null;
16146
+ /**
16147
+ * Source Type
16148
+ * @description Origin of the document this version belongs to — ``manual`` for console
16149
+ * uploads, ``google_shared_drive`` for the Drive connector (V269). Null for
16150
+ * snapshot/CSV rows.
16151
+ */
16152
+ source_type?: string | null;
15704
16153
  status: components["schemas"]["_FileStatus"];
15705
16154
  /**
15706
16155
  * Version
@@ -15751,6 +16200,38 @@ export interface components {
15751
16200
  */
15752
16201
  workspace_id: string;
15753
16202
  };
16203
+ /**
16204
+ * IntakeSourceRow
16205
+ * @description A registered intake source (Sources list).
16206
+ */
16207
+ IntakeSourceRow: {
16208
+ /**
16209
+ * Created Ts
16210
+ * @description ISO-8601 timestamp.
16211
+ */
16212
+ created_ts: string;
16213
+ /**
16214
+ * Credential Ssm Param Path
16215
+ * @description Where the SA key must be uploaded (derived; the secret itself is never returned).
16216
+ */
16217
+ credential_ssm_param_path: string;
16218
+ /** Display Name */
16219
+ display_name: string;
16220
+ /** Drive Id */
16221
+ drive_id?: string | null;
16222
+ /** Folders */
16223
+ folders: components["schemas"]["DriveFolderMapping"][];
16224
+ /**
16225
+ * Id
16226
+ * Format: uuid
16227
+ * @description source_id.
16228
+ */
16229
+ id: string;
16230
+ /** Source Type */
16231
+ source_type: string;
16232
+ /** Status */
16233
+ status: string;
16234
+ };
15754
16235
  /** IntakeUploadResponse */
15755
16236
  IntakeUploadResponse: {
15756
16237
  /** Content Type */
@@ -18030,6 +18511,17 @@ export interface components {
18030
18511
  /** Total */
18031
18512
  total?: number | null;
18032
18513
  };
18514
+ /** PaginatedResponse[BatchRow] */
18515
+ PaginatedResponse_BatchRow_: {
18516
+ /** Continuation Token */
18517
+ continuation_token?: number | null;
18518
+ /** Has More */
18519
+ has_more: boolean;
18520
+ /** Items */
18521
+ items: components["schemas"]["BatchRow"][];
18522
+ /** Total */
18523
+ total?: number | null;
18524
+ };
18033
18525
  /** PaginatedResponse[ContextGraphResponse] */
18034
18526
  PaginatedResponse_ContextGraphResponse_: {
18035
18527
  /** Continuation Token */
@@ -18129,6 +18621,17 @@ export interface components {
18129
18621
  /** Total */
18130
18622
  total?: number | null;
18131
18623
  };
18624
+ /** PaginatedResponse[IntakeSourceRow] */
18625
+ PaginatedResponse_IntakeSourceRow_: {
18626
+ /** Continuation Token */
18627
+ continuation_token?: number | null;
18628
+ /** Has More */
18629
+ has_more: boolean;
18630
+ /** Items */
18631
+ items: components["schemas"]["IntakeSourceRow"][];
18632
+ /** Total */
18633
+ total?: number | null;
18634
+ };
18132
18635
  /** PaginatedResponse[InvoiceItem] */
18133
18636
  PaginatedResponse_InvoiceItem_: {
18134
18637
  /** Continuation Token */
@@ -18173,6 +18676,17 @@ export interface components {
18173
18676
  /** Total */
18174
18677
  total?: number | null;
18175
18678
  };
18679
+ /** PaginatedResponse[ProductionEvalDefinition] */
18680
+ PaginatedResponse_ProductionEvalDefinition_: {
18681
+ /** Continuation Token */
18682
+ continuation_token?: number | null;
18683
+ /** Has More */
18684
+ has_more: boolean;
18685
+ /** Items */
18686
+ items: components["schemas"]["ProductionEvalDefinition"][];
18687
+ /** Total */
18688
+ total?: number | null;
18689
+ };
18176
18690
  /** PaginatedResponse[ReviewItemResponse] */
18177
18691
  PaginatedResponse_ReviewItemResponse_: {
18178
18692
  /** Continuation Token */
@@ -19116,6 +19630,54 @@ export interface components {
19116
19630
  */
19117
19631
  workspace_id: string;
19118
19632
  };
19633
+ /**
19634
+ * ProductionEvalDefinition
19635
+ * @description An eval (assertion or metric-eval) that runs against a workspace's live
19636
+ * calls — the production analogue of a sim case's ``evals``. ``service_id``
19637
+ * None applies to every service in the workspace. ``expected`` is JSON: a
19638
+ * phrase string for assertions, or a ``{gte|lte|equals|...}`` threshold for
19639
+ * metric-evals.
19640
+ */
19641
+ ProductionEvalDefinition: {
19642
+ /**
19643
+ * Active
19644
+ * @default true
19645
+ */
19646
+ active?: boolean;
19647
+ /** Assertion Kind */
19648
+ assertion_kind?: string | null;
19649
+ /** Created At */
19650
+ created_at?: string | null;
19651
+ /** Eval Key */
19652
+ eval_key: string;
19653
+ /**
19654
+ * Eval Type
19655
+ * @enum {string}
19656
+ */
19657
+ eval_type: "assertion" | "metric";
19658
+ /** Expected */
19659
+ expected?: unknown;
19660
+ /**
19661
+ * Id
19662
+ * Format: uuid
19663
+ */
19664
+ id?: string;
19665
+ /** Metric Key */
19666
+ metric_key?: string | null;
19667
+ /** Params */
19668
+ params?: {
19669
+ [key: string]: unknown;
19670
+ };
19671
+ /** Service Id */
19672
+ service_id?: string | null;
19673
+ /** Updated At */
19674
+ updated_at?: string | null;
19675
+ /**
19676
+ * Workspace Id
19677
+ * Format: uuid
19678
+ */
19679
+ workspace_id: string;
19680
+ };
19119
19681
  /**
19120
19682
  * ProgressHint
19121
19683
  * @description How the agent narrates waiting on a tool.
@@ -19593,6 +20155,23 @@ export interface components {
19593
20155
  */
19594
20156
  schema?: components["schemas"]["SchemaFieldSpec"][];
19595
20157
  };
20158
+ /**
20159
+ * RegisterSourceRequest
20160
+ * @description Register a Google Shared Drive intake source (design §3).
20161
+ *
20162
+ * The credential is not part of the wire contract — the server derives the
20163
+ * SA-key SSM path deterministically from the generated ``source_id`` (the
20164
+ * ``/data-sources/`` convention) and the operator uploads the key there
20165
+ * out-of-band. ``drive_id`` is optional (resolved at sync if omitted).
20166
+ */
20167
+ RegisterSourceRequest: {
20168
+ /** Display Name */
20169
+ display_name: string;
20170
+ /** Drive Id */
20171
+ drive_id?: string | null;
20172
+ /** Folders */
20173
+ folders: components["schemas"]["DriveFolderMapping"][];
20174
+ };
19596
20175
  /**
19597
20176
  * RegisteredFunction
19598
20177
  * @description The authored shape of a platform function.
@@ -22275,6 +22854,11 @@ export interface components {
22275
22854
  */
22276
22855
  workspace_id: string;
22277
22856
  };
22857
+ /** SourceSyncResponse */
22858
+ SourceSyncResponse: {
22859
+ /** Batches */
22860
+ batches: components["schemas"]["SyncBatchRow"][];
22861
+ };
22278
22862
  /**
22279
22863
  * Span
22280
22864
  * @description OTLP ``Span`` in OTLP/JSON encoding (ids hex, timestamps decimal-string).
@@ -23204,6 +23788,23 @@ export interface components {
23204
23788
  */
23205
23789
  mode: "listen" | "takeover";
23206
23790
  };
23791
+ /**
23792
+ * SyncBatchRow
23793
+ * @description One batch produced by a source sync (one per mapped folder/dataset).
23794
+ */
23795
+ SyncBatchRow: {
23796
+ /**
23797
+ * Batch Id
23798
+ * Format: uuid
23799
+ */
23800
+ batch_id: string;
23801
+ /** Dataset */
23802
+ dataset: string;
23803
+ /** Files Found */
23804
+ files_found: number;
23805
+ /** Status */
23806
+ status: string;
23807
+ };
23207
23808
  /** SyncFailureEntry */
23208
23809
  SyncFailureEntry: {
23209
23810
  /** Created At */
@@ -23290,6 +23891,16 @@ export interface components {
23290
23891
  /** Numbers */
23291
23892
  numbers: string[];
23292
23893
  };
23894
+ /** TestCredentialIdsRequest */
23895
+ TestCredentialIdsRequest: {
23896
+ /** Credential Ids */
23897
+ credential_ids: string[];
23898
+ };
23899
+ /** TestCredentialIdsResponse */
23900
+ TestCredentialIdsResponse: {
23901
+ /** Credential Ids */
23902
+ credential_ids: string[];
23903
+ };
23293
23904
  /**
23294
23905
  * TestInvokeResponse
23295
23906
  * @description Response shape for ``POST /v1/{ws}/functions/{name}/test``.
@@ -23832,6 +24443,12 @@ export interface components {
23832
24443
  failure_delivery_by_class?: {
23833
24444
  [key: string]: "interrupt" | "queue";
23834
24445
  } | null;
24446
+ /**
24447
+ * Lifecycle
24448
+ * @default independent
24449
+ * @enum {string}
24450
+ */
24451
+ lifecycle?: "coupled" | "independent";
23835
24452
  /**
23836
24453
  * Navigate On Completion
23837
24454
  * @default false
@@ -24988,6 +25605,27 @@ export interface components {
24988
25605
  /** Type */
24989
25606
  type?: ("clinical" | "administrative" | "crisis_counselor") | null;
24990
25607
  };
25608
+ /** UpdateProductionEvalDefinitionRequest */
25609
+ UpdateProductionEvalDefinitionRequest: {
25610
+ /** Active */
25611
+ active?: boolean | null;
25612
+ /** Assertion Kind */
25613
+ assertion_kind?: string | null;
25614
+ /** Eval Key */
25615
+ eval_key?: string | null;
25616
+ /** Eval Type */
25617
+ eval_type?: ("assertion" | "metric") | null;
25618
+ /** Expected */
25619
+ expected?: unknown;
25620
+ /** Metric Key */
25621
+ metric_key?: string | null;
25622
+ /** Params */
25623
+ params?: {
25624
+ [key: string]: unknown;
25625
+ } | null;
25626
+ /** Service Id */
25627
+ service_id?: string | null;
25628
+ };
24991
25629
  /**
24992
25630
  * UpdateSchedulingRuleSetRequest
24993
25631
  * @description Partial update — fields not provided are unchanged. ``params``
@@ -28790,6 +29428,63 @@ export interface operations {
28790
29428
  };
28791
29429
  };
28792
29430
  };
29431
+ "get-test-credential-ids": {
29432
+ parameters: {
29433
+ query?: never;
29434
+ header?: never;
29435
+ path: {
29436
+ workspace_id: string;
29437
+ };
29438
+ cookie?: never;
29439
+ };
29440
+ requestBody?: never;
29441
+ responses: {
29442
+ /** @description Successful Response */
29443
+ 200: {
29444
+ headers: {
29445
+ [name: string]: unknown;
29446
+ };
29447
+ content: {
29448
+ "application/json": components["schemas"]["TestCredentialIdsResponse"];
29449
+ };
29450
+ };
29451
+ };
29452
+ };
29453
+ "update-test-credential-ids": {
29454
+ parameters: {
29455
+ query?: never;
29456
+ header?: never;
29457
+ path: {
29458
+ workspace_id: string;
29459
+ };
29460
+ cookie?: never;
29461
+ };
29462
+ requestBody: {
29463
+ content: {
29464
+ "application/json": components["schemas"]["TestCredentialIdsRequest"];
29465
+ };
29466
+ };
29467
+ responses: {
29468
+ /** @description Successful Response */
29469
+ 200: {
29470
+ headers: {
29471
+ [name: string]: unknown;
29472
+ };
29473
+ content: {
29474
+ "application/json": components["schemas"]["TestCredentialIdsResponse"];
29475
+ };
29476
+ };
29477
+ /** @description Validation Error */
29478
+ 422: {
29479
+ headers: {
29480
+ [name: string]: unknown;
29481
+ };
29482
+ content: {
29483
+ "application/json": components["schemas"]["HTTPValidationError"];
29484
+ };
29485
+ };
29486
+ };
29487
+ };
28793
29488
  "list-agents": {
28794
29489
  parameters: {
28795
29490
  query?: {
@@ -31172,6 +31867,70 @@ export interface operations {
31172
31867
  };
31173
31868
  };
31174
31869
  };
31870
+ "get-call-eval-results": {
31871
+ parameters: {
31872
+ query?: never;
31873
+ header?: never;
31874
+ path: {
31875
+ workspace_id: string;
31876
+ conversation_id: string;
31877
+ };
31878
+ cookie?: never;
31879
+ };
31880
+ requestBody?: never;
31881
+ responses: {
31882
+ /** @description Successful Response */
31883
+ 200: {
31884
+ headers: {
31885
+ [name: string]: unknown;
31886
+ };
31887
+ content: {
31888
+ "application/json": components["schemas"]["CallEvalResultsResponse"];
31889
+ };
31890
+ };
31891
+ /** @description Validation Error */
31892
+ 422: {
31893
+ headers: {
31894
+ [name: string]: unknown;
31895
+ };
31896
+ content: {
31897
+ "application/json": components["schemas"]["HTTPValidationError"];
31898
+ };
31899
+ };
31900
+ };
31901
+ };
31902
+ "evaluate-call": {
31903
+ parameters: {
31904
+ query?: never;
31905
+ header?: never;
31906
+ path: {
31907
+ workspace_id: string;
31908
+ conversation_id: string;
31909
+ };
31910
+ cookie?: never;
31911
+ };
31912
+ requestBody?: never;
31913
+ responses: {
31914
+ /** @description Successful Response */
31915
+ 200: {
31916
+ headers: {
31917
+ [name: string]: unknown;
31918
+ };
31919
+ content: {
31920
+ "application/json": components["schemas"]["CallEvalResultsResponse"];
31921
+ };
31922
+ };
31923
+ /** @description Validation Error */
31924
+ 422: {
31925
+ headers: {
31926
+ [name: string]: unknown;
31927
+ };
31928
+ content: {
31929
+ "application/json": components["schemas"]["HTTPValidationError"];
31930
+ };
31931
+ };
31932
+ };
31933
+ };
31175
31934
  "list-email-templates": {
31176
31935
  parameters: {
31177
31936
  query: {
@@ -35393,6 +36152,138 @@ export interface operations {
35393
36152
  };
35394
36153
  };
35395
36154
  };
36155
+ list_intake_batches_v1__workspace_id__intake_batches_get: {
36156
+ parameters: {
36157
+ query?: {
36158
+ limit?: number;
36159
+ continuation_token?: number;
36160
+ sort_by?: string;
36161
+ source_id?: string | null;
36162
+ };
36163
+ header?: never;
36164
+ path: {
36165
+ workspace_id: string;
36166
+ };
36167
+ cookie?: never;
36168
+ };
36169
+ requestBody?: never;
36170
+ responses: {
36171
+ /** @description Successful Response */
36172
+ 200: {
36173
+ headers: {
36174
+ [name: string]: unknown;
36175
+ };
36176
+ content: {
36177
+ "application/json": components["schemas"]["PaginatedResponse_BatchRow_"];
36178
+ };
36179
+ };
36180
+ /** @description Validation Error */
36181
+ 422: {
36182
+ headers: {
36183
+ [name: string]: unknown;
36184
+ };
36185
+ content: {
36186
+ "application/json": components["schemas"]["HTTPValidationError"];
36187
+ };
36188
+ };
36189
+ };
36190
+ };
36191
+ get_intake_batch_v1__workspace_id__intake_batches__batch_id__get: {
36192
+ parameters: {
36193
+ query?: never;
36194
+ header?: never;
36195
+ path: {
36196
+ workspace_id: string;
36197
+ batch_id: string;
36198
+ };
36199
+ cookie?: never;
36200
+ };
36201
+ requestBody?: never;
36202
+ responses: {
36203
+ /** @description Successful Response */
36204
+ 200: {
36205
+ headers: {
36206
+ [name: string]: unknown;
36207
+ };
36208
+ content: {
36209
+ "application/json": components["schemas"]["BatchDetail"];
36210
+ };
36211
+ };
36212
+ /** @description Validation Error */
36213
+ 422: {
36214
+ headers: {
36215
+ [name: string]: unknown;
36216
+ };
36217
+ content: {
36218
+ "application/json": components["schemas"]["HTTPValidationError"];
36219
+ };
36220
+ };
36221
+ };
36222
+ };
36223
+ process_intake_batch_v1__workspace_id__intake_batches__batch_id__process_post: {
36224
+ parameters: {
36225
+ query?: never;
36226
+ header?: never;
36227
+ path: {
36228
+ workspace_id: string;
36229
+ batch_id: string;
36230
+ };
36231
+ cookie?: never;
36232
+ };
36233
+ requestBody?: never;
36234
+ responses: {
36235
+ /** @description Successful Response */
36236
+ 202: {
36237
+ headers: {
36238
+ [name: string]: unknown;
36239
+ };
36240
+ content: {
36241
+ "application/json": components["schemas"]["BatchRow"];
36242
+ };
36243
+ };
36244
+ /** @description Validation Error */
36245
+ 422: {
36246
+ headers: {
36247
+ [name: string]: unknown;
36248
+ };
36249
+ content: {
36250
+ "application/json": components["schemas"]["HTTPValidationError"];
36251
+ };
36252
+ };
36253
+ };
36254
+ };
36255
+ get_batch_processing_manifest_v1__workspace_id__intake_batches__batch_id__processing_manifest_get: {
36256
+ parameters: {
36257
+ query?: never;
36258
+ header?: never;
36259
+ path: {
36260
+ workspace_id: string;
36261
+ batch_id: string;
36262
+ };
36263
+ cookie?: never;
36264
+ };
36265
+ requestBody?: never;
36266
+ responses: {
36267
+ /** @description Successful Response */
36268
+ 200: {
36269
+ headers: {
36270
+ [name: string]: unknown;
36271
+ };
36272
+ content: {
36273
+ "application/json": components["schemas"]["BatchProcessingManifest"];
36274
+ };
36275
+ };
36276
+ /** @description Validation Error */
36277
+ 422: {
36278
+ headers: {
36279
+ [name: string]: unknown;
36280
+ };
36281
+ content: {
36282
+ "application/json": components["schemas"]["HTTPValidationError"];
36283
+ };
36284
+ };
36285
+ };
36286
+ };
35396
36287
  list_intake_datasets_v1__workspace_id__intake_datasets_get: {
35397
36288
  parameters: {
35398
36289
  query?: {
@@ -35824,6 +36715,108 @@ export interface operations {
35824
36715
  };
35825
36716
  };
35826
36717
  };
36718
+ list_intake_sources_v1__workspace_id__intake_sources_get: {
36719
+ parameters: {
36720
+ query?: {
36721
+ limit?: number;
36722
+ continuation_token?: number;
36723
+ sort_by?: string;
36724
+ };
36725
+ header?: never;
36726
+ path: {
36727
+ workspace_id: string;
36728
+ };
36729
+ cookie?: never;
36730
+ };
36731
+ requestBody?: never;
36732
+ responses: {
36733
+ /** @description Successful Response */
36734
+ 200: {
36735
+ headers: {
36736
+ [name: string]: unknown;
36737
+ };
36738
+ content: {
36739
+ "application/json": components["schemas"]["PaginatedResponse_IntakeSourceRow_"];
36740
+ };
36741
+ };
36742
+ /** @description Validation Error */
36743
+ 422: {
36744
+ headers: {
36745
+ [name: string]: unknown;
36746
+ };
36747
+ content: {
36748
+ "application/json": components["schemas"]["HTTPValidationError"];
36749
+ };
36750
+ };
36751
+ };
36752
+ };
36753
+ register_intake_source_v1__workspace_id__intake_sources_post: {
36754
+ parameters: {
36755
+ query?: never;
36756
+ header?: never;
36757
+ path: {
36758
+ workspace_id: string;
36759
+ };
36760
+ cookie?: never;
36761
+ };
36762
+ requestBody: {
36763
+ content: {
36764
+ "application/json": components["schemas"]["RegisterSourceRequest"];
36765
+ };
36766
+ };
36767
+ responses: {
36768
+ /** @description Successful Response */
36769
+ 201: {
36770
+ headers: {
36771
+ [name: string]: unknown;
36772
+ };
36773
+ content: {
36774
+ "application/json": components["schemas"]["IntakeSourceRow"];
36775
+ };
36776
+ };
36777
+ /** @description Validation Error */
36778
+ 422: {
36779
+ headers: {
36780
+ [name: string]: unknown;
36781
+ };
36782
+ content: {
36783
+ "application/json": components["schemas"]["HTTPValidationError"];
36784
+ };
36785
+ };
36786
+ };
36787
+ };
36788
+ sync_intake_source_v1__workspace_id__intake_sources__source_id__sync_post: {
36789
+ parameters: {
36790
+ query?: never;
36791
+ header?: never;
36792
+ path: {
36793
+ workspace_id: string;
36794
+ source_id: string;
36795
+ };
36796
+ cookie?: never;
36797
+ };
36798
+ requestBody?: never;
36799
+ responses: {
36800
+ /** @description Successful Response */
36801
+ 201: {
36802
+ headers: {
36803
+ [name: string]: unknown;
36804
+ };
36805
+ content: {
36806
+ "application/json": components["schemas"]["SourceSyncResponse"];
36807
+ };
36808
+ };
36809
+ /** @description Validation Error */
36810
+ 422: {
36811
+ headers: {
36812
+ [name: string]: unknown;
36813
+ };
36814
+ content: {
36815
+ "application/json": components["schemas"]["HTTPValidationError"];
36816
+ };
36817
+ };
36818
+ };
36819
+ };
35827
36820
  "list-integrations": {
35828
36821
  parameters: {
35829
36822
  query?: {
@@ -38602,6 +39595,175 @@ export interface operations {
38602
39595
  };
38603
39596
  };
38604
39597
  };
39598
+ "list-production-eval-definitions": {
39599
+ parameters: {
39600
+ query?: {
39601
+ service_id?: string | null;
39602
+ active?: boolean | null;
39603
+ limit?: number;
39604
+ continuation_token?: number;
39605
+ };
39606
+ header?: never;
39607
+ path: {
39608
+ workspace_id: string;
39609
+ };
39610
+ cookie?: never;
39611
+ };
39612
+ requestBody?: never;
39613
+ responses: {
39614
+ /** @description Successful Response */
39615
+ 200: {
39616
+ headers: {
39617
+ [name: string]: unknown;
39618
+ };
39619
+ content: {
39620
+ "application/json": components["schemas"]["PaginatedResponse_ProductionEvalDefinition_"];
39621
+ };
39622
+ };
39623
+ /** @description Validation Error */
39624
+ 422: {
39625
+ headers: {
39626
+ [name: string]: unknown;
39627
+ };
39628
+ content: {
39629
+ "application/json": components["schemas"]["HTTPValidationError"];
39630
+ };
39631
+ };
39632
+ };
39633
+ };
39634
+ "create-production-eval-definition": {
39635
+ parameters: {
39636
+ query?: never;
39637
+ header?: never;
39638
+ path: {
39639
+ workspace_id: string;
39640
+ };
39641
+ cookie?: never;
39642
+ };
39643
+ requestBody: {
39644
+ content: {
39645
+ "application/json": components["schemas"]["CreateProductionEvalDefinitionRequest"];
39646
+ };
39647
+ };
39648
+ responses: {
39649
+ /** @description Successful Response */
39650
+ 201: {
39651
+ headers: {
39652
+ [name: string]: unknown;
39653
+ };
39654
+ content: {
39655
+ "application/json": components["schemas"]["ProductionEvalDefinition"];
39656
+ };
39657
+ };
39658
+ /** @description Validation Error */
39659
+ 422: {
39660
+ headers: {
39661
+ [name: string]: unknown;
39662
+ };
39663
+ content: {
39664
+ "application/json": components["schemas"]["HTTPValidationError"];
39665
+ };
39666
+ };
39667
+ };
39668
+ };
39669
+ "get-production-eval-definition": {
39670
+ parameters: {
39671
+ query?: never;
39672
+ header?: never;
39673
+ path: {
39674
+ workspace_id: string;
39675
+ definition_id: string;
39676
+ };
39677
+ cookie?: never;
39678
+ };
39679
+ requestBody?: never;
39680
+ responses: {
39681
+ /** @description Successful Response */
39682
+ 200: {
39683
+ headers: {
39684
+ [name: string]: unknown;
39685
+ };
39686
+ content: {
39687
+ "application/json": components["schemas"]["ProductionEvalDefinition"];
39688
+ };
39689
+ };
39690
+ /** @description Validation Error */
39691
+ 422: {
39692
+ headers: {
39693
+ [name: string]: unknown;
39694
+ };
39695
+ content: {
39696
+ "application/json": components["schemas"]["HTTPValidationError"];
39697
+ };
39698
+ };
39699
+ };
39700
+ };
39701
+ "delete-production-eval-definition": {
39702
+ parameters: {
39703
+ query?: never;
39704
+ header?: never;
39705
+ path: {
39706
+ workspace_id: string;
39707
+ definition_id: string;
39708
+ };
39709
+ cookie?: never;
39710
+ };
39711
+ requestBody?: never;
39712
+ responses: {
39713
+ /** @description Successful Response */
39714
+ 204: {
39715
+ headers: {
39716
+ [name: string]: unknown;
39717
+ };
39718
+ content?: never;
39719
+ };
39720
+ /** @description Validation Error */
39721
+ 422: {
39722
+ headers: {
39723
+ [name: string]: unknown;
39724
+ };
39725
+ content: {
39726
+ "application/json": components["schemas"]["HTTPValidationError"];
39727
+ };
39728
+ };
39729
+ };
39730
+ };
39731
+ "update-production-eval-definition": {
39732
+ parameters: {
39733
+ query?: never;
39734
+ header?: never;
39735
+ path: {
39736
+ workspace_id: string;
39737
+ definition_id: string;
39738
+ };
39739
+ cookie?: never;
39740
+ };
39741
+ requestBody: {
39742
+ content: {
39743
+ "application/json": components["schemas"]["UpdateProductionEvalDefinitionRequest"];
39744
+ };
39745
+ };
39746
+ responses: {
39747
+ /** @description Successful Response */
39748
+ 200: {
39749
+ headers: {
39750
+ [name: string]: unknown;
39751
+ };
39752
+ content: {
39753
+ "application/json": components["schemas"]["ProductionEvalDefinition"];
39754
+ };
39755
+ };
39756
+ /** @description Validation Error */
39757
+ 422: {
39758
+ headers: {
39759
+ [name: string]: unknown;
39760
+ };
39761
+ content: {
39762
+ "application/json": components["schemas"]["HTTPValidationError"];
39763
+ };
39764
+ };
39765
+ };
39766
+ };
38605
39767
  "list-prompt-logs": {
38606
39768
  parameters: {
38607
39769
  query?: {