@amigo-ai/platform-sdk 0.80.0 → 0.82.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 (33) hide show
  1. package/api.md +0 -9
  2. package/dist/index.cjs +0 -73
  3. package/dist/index.cjs.map +4 -4
  4. package/dist/index.js +0 -5
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +0 -73
  7. package/dist/index.mjs.map +4 -4
  8. package/dist/types/generated/api.d.ts +1077 -751
  9. package/dist/types/generated/api.d.ts.map +1 -1
  10. package/dist/types/index.d.cts +0 -4
  11. package/dist/types/index.d.cts.map +1 -1
  12. package/dist/types/index.d.ts +0 -4
  13. package/dist/types/index.d.ts.map +1 -1
  14. package/dist/types/resources/context-graphs.d.ts +16 -0
  15. package/dist/types/resources/context-graphs.d.ts.map +1 -1
  16. package/dist/types/resources/external-integrations.d.ts.map +1 -1
  17. package/dist/types/resources/intake.d.ts.map +1 -1
  18. package/dist/types/resources/integrations.d.ts.map +1 -1
  19. package/dist/types/resources/metrics.d.ts.map +1 -1
  20. package/dist/types/resources/operators.d.ts.map +1 -1
  21. package/dist/types/resources/services.d.ts.map +1 -1
  22. package/dist/types/resources/settings.d.ts.map +1 -1
  23. package/dist/types/resources/surfaces.d.ts.map +1 -1
  24. package/dist/types/resources/world.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/dist/resources/channels/index.js +0 -27
  27. package/dist/resources/channels/index.js.map +0 -1
  28. package/dist/resources/channels/ses-setup.js +0 -62
  29. package/dist/resources/channels/ses-setup.js.map +0 -1
  30. package/dist/types/resources/channels/index.d.ts +0 -26
  31. package/dist/types/resources/channels/index.d.ts.map +0 -1
  32. package/dist/types/resources/channels/ses-setup.d.ts +0 -49
  33. package/dist/types/resources/channels/ses-setup.d.ts.map +0 -1
@@ -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,103 +1724,24 @@ export interface paths {
1700
1724
  patch?: never;
1701
1725
  trace?: never;
1702
1726
  };
1703
- "/v1/{workspace_id}/channels/email/templates": {
1727
+ "/v1/{workspace_id}/calls/{conversation_id}/eval-results": {
1704
1728
  parameters: {
1705
1729
  query?: never;
1706
1730
  header?: never;
1707
1731
  path?: never;
1708
1732
  cookie?: never;
1709
1733
  };
1710
- /**
1711
- * List email templates for an SES use case
1712
- * @description List the templates of one SES use case bound to this workspace. Unpaginated — templates per use case are a bounded, human-curated catalog. Template bodies are omitted; fetch one template for the full Jinja + required variables. Requires ``Channel.view`` permission.
1713
- */
1714
- get: operations["list-email-templates"];
1734
+ /** Get Call Eval Results */
1735
+ get: operations["get-call-eval-results"];
1715
1736
  put?: never;
1716
- /**
1717
- * Create an email template
1718
- * @description Create a Jinja email template under an SES use case bound to this workspace. Channel-manager validates the Jinja syntax and the unsubscribe-variable gate: the subject may not reference unsubscribe variables, and the body must reference both unsubscribe variables exactly when the use case is unsubscribable (marketing). The response carries the extracted ``required_{subject,body}_variables`` a send-time caller must supply. Requires ``Channel.create`` permission.
1719
- */
1720
- post: operations["create-email-template"];
1721
- delete?: never;
1722
- options?: never;
1723
- head?: never;
1724
- patch?: never;
1725
- trace?: never;
1726
- };
1727
- "/v1/{workspace_id}/channels/email/templates/{email_template_id}": {
1728
- parameters: {
1729
- query?: never;
1730
- header?: never;
1731
- path?: never;
1732
- cookie?: never;
1733
- };
1734
- /**
1735
- * Get an email template
1736
- * @description Full template detail including the Jinja subject/body and the extracted required variables. 404 unless the template's SES use case is bound to this workspace. Requires ``Channel.view`` permission.
1737
- */
1738
- get: operations["get-email-template"];
1739
- /**
1740
- * Update an email template
1741
- * @description Partial update: absent fields are untouched; ``description`` may be explicitly nulled; at least one field is required. Subject/body changes re-run channel-manager's Jinja validation and the unsubscribe-variable gate. 404 unless the template's SES use case is bound to this workspace. Requires ``Channel.create`` permission.
1742
- */
1743
- put: operations["update-email-template"];
1744
1737
  post?: never;
1745
- /**
1746
- * Delete an email template
1747
- * @description Delete a template. 404 unless the template's SES use case is bound to this workspace. Requires ``Channel.delete`` permission.
1748
- */
1749
- delete: operations["delete-email-template"];
1750
- options?: never;
1751
- head?: never;
1752
- patch?: never;
1753
- trace?: never;
1754
- };
1755
- "/v1/{workspace_id}/channels/ses-setup": {
1756
- parameters: {
1757
- query?: never;
1758
- header?: never;
1759
- path?: never;
1760
- cookie?: never;
1761
- };
1762
- get?: never;
1763
- put?: never;
1764
- /**
1765
- * Create an SES setup
1766
- * @description Create an SES tenant + verified email identity. Returns the DNS records the customer must publish (DKIM CNAMEs, MX, DMARC TXT). Subsequent ``GET`` or ``POST /verify`` calls re-run the live DNS lookup and update the per-record ``verified`` flag. The setup is owned by the creating workspace; only that workspace can list, get, verify, or delete it. Requires ``Channel.create`` permission.
1767
- */
1768
- post: operations["create-ses-setup"];
1769
1738
  delete?: never;
1770
1739
  options?: never;
1771
1740
  head?: never;
1772
1741
  patch?: never;
1773
1742
  trace?: never;
1774
1743
  };
1775
- "/v1/{workspace_id}/channels/ses-setup/{setup_id}": {
1776
- parameters: {
1777
- query?: never;
1778
- header?: never;
1779
- path?: never;
1780
- cookie?: never;
1781
- };
1782
- /**
1783
- * Get an SES setup with live DNS refresh
1784
- * @description Returns full SES setup detail including per-record DNS verification status. Channel-manager re-runs ``GetEmailIdentity`` + DMARC/MX resolvers on every call, so each GET is a live check. Requires ``Channel.view`` permission.
1785
- */
1786
- get: operations["get-ses-setup"];
1787
- put?: never;
1788
- post?: never;
1789
- /**
1790
- * Delete an SES setup
1791
- * @description Tear down the upstream SES tenant + identity. Refuses (409) if any use case still references the setup. Requires ``Channel.delete`` permission.
1792
- */
1793
- delete: operations["delete-ses-setup"];
1794
- options?: never;
1795
- head?: never;
1796
- patch?: never;
1797
- trace?: never;
1798
- };
1799
- "/v1/{workspace_id}/channels/ses-setup/{setup_id}/verify": {
1744
+ "/v1/{workspace_id}/calls/{conversation_id}/evaluate": {
1800
1745
  parameters: {
1801
1746
  query?: never;
1802
1747
  header?: never;
@@ -1806,10 +1751,12 @@ export interface paths {
1806
1751
  get?: never;
1807
1752
  put?: never;
1808
1753
  /**
1809
- * Refresh SES DNS verification
1810
- * @description Explicit DNS refresh endpoint. Equivalent to ``GET /ses-setup/{id}`` but exposed as a POST so UI ``Verify now`` actions read as actions rather than reads. Requires ``Channel.view`` permission.
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.
1811
1758
  */
1812
- post: operations["verify-ses-setup-dns"];
1759
+ post: operations["evaluate-call"];
1813
1760
  delete?: never;
1814
1761
  options?: never;
1815
1762
  head?: never;
@@ -3156,6 +3103,95 @@ export interface paths {
3156
3103
  patch?: never;
3157
3104
  trace?: never;
3158
3105
  };
3106
+ "/v1/{workspace_id}/intake/batches": {
3107
+ parameters: {
3108
+ query?: never;
3109
+ header?: never;
3110
+ path?: never;
3111
+ cookie?: never;
3112
+ };
3113
+ /** List Intake Batches */
3114
+ get: operations["list_intake_batches_v1__workspace_id__intake_batches_get"];
3115
+ put?: never;
3116
+ post?: never;
3117
+ delete?: never;
3118
+ options?: never;
3119
+ head?: never;
3120
+ patch?: never;
3121
+ trace?: never;
3122
+ };
3123
+ "/v1/{workspace_id}/intake/batches/{batch_id}": {
3124
+ parameters: {
3125
+ query?: never;
3126
+ header?: never;
3127
+ path?: never;
3128
+ cookie?: never;
3129
+ };
3130
+ /** Get Intake Batch */
3131
+ get: operations["get_intake_batch_v1__workspace_id__intake_batches__batch_id__get"];
3132
+ put?: never;
3133
+ post?: never;
3134
+ delete?: never;
3135
+ options?: never;
3136
+ head?: never;
3137
+ patch?: never;
3138
+ trace?: never;
3139
+ };
3140
+ "/v1/{workspace_id}/intake/batches/{batch_id}/process": {
3141
+ parameters: {
3142
+ query?: never;
3143
+ header?: never;
3144
+ path?: never;
3145
+ cookie?: never;
3146
+ };
3147
+ get?: never;
3148
+ put?: never;
3149
+ /**
3150
+ * Process Intake Batch
3151
+ * @description Start processing a batch (idempotent + resumable). Dispatches only the
3152
+ * still-``received`` files, so re-running picks up any that weren't triggered:
3153
+ *
3154
+ * * **Snapshot/CSV — ordered:** CDC depends on the prior curated baseline, so
3155
+ * only the lowest-version file fires now; each verdict chains the next via the
3156
+ * status write-back.
3157
+ * * **Documents — one batch run:** a single extract-job run processes every
3158
+ * received file (it pulls them from the processing-manifest). NOT one run-now
3159
+ * per file — that serialised on the request path and 504'd for large batches.
3160
+ *
3161
+ * The batch rolls up to completed/failed (via the write-back) once every file
3162
+ * reaches a terminal verdict. Allowed from ``ready`` or ``processing`` (re-kick
3163
+ * a partially-dispatched batch); a terminal batch is a 409.
3164
+ */
3165
+ post: operations["process_intake_batch_v1__workspace_id__intake_batches__batch_id__process_post"];
3166
+ delete?: never;
3167
+ options?: never;
3168
+ head?: never;
3169
+ patch?: never;
3170
+ trace?: never;
3171
+ };
3172
+ "/v1/{workspace_id}/intake/batches/{batch_id}/processing-manifest": {
3173
+ parameters: {
3174
+ query?: never;
3175
+ header?: never;
3176
+ path?: never;
3177
+ cookie?: never;
3178
+ };
3179
+ /**
3180
+ * Get Batch Processing Manifest
3181
+ * @description The per-file params the batch-extract job needs to process every still-
3182
+ * ``received`` file in one run. Same workspace-scoped auth as the write-back
3183
+ * (the job holds the batch's agent-session token). Documents only — snapshot/CSV
3184
+ * batches process in version order via the chained per-file path, not here.
3185
+ */
3186
+ get: operations["get_batch_processing_manifest_v1__workspace_id__intake_batches__batch_id__processing_manifest_get"];
3187
+ put?: never;
3188
+ post?: never;
3189
+ delete?: never;
3190
+ options?: never;
3191
+ head?: never;
3192
+ patch?: never;
3193
+ trace?: never;
3194
+ };
3159
3195
  "/v1/{workspace_id}/intake/datasets": {
3160
3196
  parameters: {
3161
3197
  query?: never;
@@ -3236,12 +3272,13 @@ export interface paths {
3236
3272
  put?: never;
3237
3273
  /**
3238
3274
  * Write Back Intake File Status
3239
- * @description Advance a file's status from the async CDC job (P4).
3275
+ * @description Advance a file's status from the async CDC/extraction job (P4).
3240
3276
  *
3241
3277
  * The job authenticates with the workspace's API key (Bearer) — the same
3242
3278
  * Databricks→platform-api path launch_dpc uses — so RLS scopes the update to
3243
3279
  * that workspace. Moves the row to its terminal verdict and records the
3244
- * curated/cdc paths.
3280
+ * curated/cdc paths. For a batch-sourced file, advances its batch (chain the
3281
+ * next snapshot version + roll up) once the verdict is terminal.
3245
3282
  */
3246
3283
  post: operations["write_back_intake_file_status_v1__workspace_id__intake_files__file_id__status_post"];
3247
3284
  delete?: never;
@@ -3342,6 +3379,41 @@ export interface paths {
3342
3379
  patch?: never;
3343
3380
  trace?: never;
3344
3381
  };
3382
+ "/v1/{workspace_id}/intake/sources": {
3383
+ parameters: {
3384
+ query?: never;
3385
+ header?: never;
3386
+ path?: never;
3387
+ cookie?: never;
3388
+ };
3389
+ /** List Intake Sources */
3390
+ get: operations["list_intake_sources_v1__workspace_id__intake_sources_get"];
3391
+ put?: never;
3392
+ /** Register Intake Source */
3393
+ post: operations["register_intake_source_v1__workspace_id__intake_sources_post"];
3394
+ delete?: never;
3395
+ options?: never;
3396
+ head?: never;
3397
+ patch?: never;
3398
+ trace?: never;
3399
+ };
3400
+ "/v1/{workspace_id}/intake/sources/{source_id}/sync": {
3401
+ parameters: {
3402
+ query?: never;
3403
+ header?: never;
3404
+ path?: never;
3405
+ cookie?: never;
3406
+ };
3407
+ get?: never;
3408
+ put?: never;
3409
+ /** Sync Intake Source */
3410
+ post: operations["sync_intake_source_v1__workspace_id__intake_sources__source_id__sync_post"];
3411
+ delete?: never;
3412
+ options?: never;
3413
+ head?: never;
3414
+ patch?: never;
3415
+ trace?: never;
3416
+ };
3345
3417
  "/v1/{workspace_id}/integrations": {
3346
3418
  parameters: {
3347
3419
  query?: never;
@@ -4568,6 +4640,43 @@ export interface paths {
4568
4640
  patch?: never;
4569
4641
  trace?: never;
4570
4642
  };
4643
+ "/v1/{workspace_id}/production-eval-definitions": {
4644
+ parameters: {
4645
+ query?: never;
4646
+ header?: never;
4647
+ path?: never;
4648
+ cookie?: never;
4649
+ };
4650
+ /** List Production Eval Definitions */
4651
+ get: operations["list-production-eval-definitions"];
4652
+ put?: never;
4653
+ /** Create Production Eval Definition */
4654
+ post: operations["create-production-eval-definition"];
4655
+ delete?: never;
4656
+ options?: never;
4657
+ head?: never;
4658
+ patch?: never;
4659
+ trace?: never;
4660
+ };
4661
+ "/v1/{workspace_id}/production-eval-definitions/{definition_id}": {
4662
+ parameters: {
4663
+ query?: never;
4664
+ header?: never;
4665
+ path?: never;
4666
+ cookie?: never;
4667
+ };
4668
+ /** Get Production Eval Definition */
4669
+ get: operations["get-production-eval-definition"];
4670
+ put?: never;
4671
+ post?: never;
4672
+ /** Delete Production Eval Definition */
4673
+ delete: operations["delete-production-eval-definition"];
4674
+ options?: never;
4675
+ head?: never;
4676
+ /** Update Production Eval Definition */
4677
+ patch: operations["update-production-eval-definition"];
4678
+ trace?: never;
4679
+ };
4571
4680
  "/v1/{workspace_id}/prompt-logs": {
4572
4681
  parameters: {
4573
4682
  query?: never;
@@ -8381,6 +8490,51 @@ export interface components {
8381
8490
  /** Notes */
8382
8491
  notes?: string | null;
8383
8492
  };
8493
+ /** BatchDetail */
8494
+ BatchDetail: {
8495
+ /** Created Ts */
8496
+ created_ts: string;
8497
+ /** Dataset */
8498
+ dataset: string;
8499
+ /**
8500
+ * Files
8501
+ * @default []
8502
+ */
8503
+ files?: components["schemas"]["IntakeFileRow"][];
8504
+ /** Files Found */
8505
+ files_found: number;
8506
+ /**
8507
+ * Id
8508
+ * Format: uuid
8509
+ * @description batch_id.
8510
+ */
8511
+ id: string;
8512
+ /** Source Id */
8513
+ source_id?: string | null;
8514
+ /**
8515
+ * Status
8516
+ * @description discovered | ready | processing | completed | failed.
8517
+ */
8518
+ status: string;
8519
+ };
8520
+ /**
8521
+ * BatchProcessingManifest
8522
+ * @description Per-file extraction params for a document batch's still-``received`` files —
8523
+ * consumed by the batch-extract job, which runs ONCE per batch and extracts
8524
+ * every file (instead of one run-now per file, which blows the request/gateway
8525
+ * timeout for large batches). Authenticated by the same short-lived
8526
+ * workspace-scoped token as the status write-back. ``document_processing`` is
8527
+ * dataset-wide (the contract); ``file_type`` is per-file (V265 multi-type).
8528
+ * Filenames are deliberately absent — PHI stays on the Lakebase row.
8529
+ */
8530
+ BatchProcessingManifest: {
8531
+ /** Document Processing */
8532
+ document_processing: {
8533
+ [key: string]: unknown;
8534
+ };
8535
+ /** Files */
8536
+ files: components["schemas"]["FileEntry"][];
8537
+ };
8384
8538
  /**
8385
8539
  * BatchRejectRequest
8386
8540
  * @description Batch reject multiple review items.
@@ -8391,6 +8545,31 @@ export interface components {
8391
8545
  /** Reason */
8392
8546
  reason: string;
8393
8547
  };
8548
+ /**
8549
+ * BatchRow
8550
+ * @description A source-sync batch (Batches list / detail).
8551
+ */
8552
+ BatchRow: {
8553
+ /** Created Ts */
8554
+ created_ts: string;
8555
+ /** Dataset */
8556
+ dataset: string;
8557
+ /** Files Found */
8558
+ files_found: number;
8559
+ /**
8560
+ * Id
8561
+ * Format: uuid
8562
+ * @description batch_id.
8563
+ */
8564
+ id: string;
8565
+ /** Source Id */
8566
+ source_id?: string | null;
8567
+ /**
8568
+ * Status
8569
+ * @description discovered | ready | processing | completed | failed.
8570
+ */
8571
+ status: string;
8572
+ };
8394
8573
  /** BillingDashboardResponse */
8395
8574
  BillingDashboardResponse: {
8396
8575
  /**
@@ -8898,6 +9077,78 @@ export interface components {
8898
9077
  */
8899
9078
  trigger: "caller" | "ai" | "operator";
8900
9079
  };
9080
+ /**
9081
+ * CallEvalResult
9082
+ * @description One eval verdict for one production call, keyed by ``conversation_id``.
9083
+ * Mirrors the sim eval-result shape. ``justification`` and ``cited_turns`` come
9084
+ * from the justified ai_query metric compute. PHI: ``justification`` / ``actual``
9085
+ * can echo live transcript content; never log them.
9086
+ */
9087
+ CallEvalResult: {
9088
+ /** Actual */
9089
+ actual?: unknown;
9090
+ /** Assertion Kind */
9091
+ assertion_kind?: string | null;
9092
+ /** Call Sid */
9093
+ call_sid?: string | null;
9094
+ /** Cited Turns */
9095
+ cited_turns?: unknown[];
9096
+ /** Computed At */
9097
+ computed_at?: string | null;
9098
+ /**
9099
+ * Conversation Id
9100
+ * Format: uuid
9101
+ */
9102
+ conversation_id: string;
9103
+ /** Created At */
9104
+ created_at?: string | null;
9105
+ /** Eval Key */
9106
+ eval_key: string;
9107
+ /**
9108
+ * Eval Type
9109
+ * @enum {string}
9110
+ */
9111
+ eval_type: "assertion" | "metric";
9112
+ /** Expected */
9113
+ expected?: unknown;
9114
+ /**
9115
+ * Id
9116
+ * Format: uuid
9117
+ */
9118
+ id?: string;
9119
+ /** Justification */
9120
+ justification?: string | null;
9121
+ /** Metric Key */
9122
+ metric_key?: string | null;
9123
+ /** Passed */
9124
+ passed?: boolean | null;
9125
+ /** Rationale */
9126
+ rationale?: string | null;
9127
+ /** Score */
9128
+ score?: number | null;
9129
+ /** Service Id */
9130
+ service_id?: string | null;
9131
+ /**
9132
+ * Status
9133
+ * @enum {string}
9134
+ */
9135
+ status: "passed" | "failed" | "pending" | "skipped" | "error";
9136
+ /**
9137
+ * Workspace Id
9138
+ * Format: uuid
9139
+ */
9140
+ workspace_id: string;
9141
+ };
9142
+ /** CallEvalResultsResponse */
9143
+ CallEvalResultsResponse: {
9144
+ /**
9145
+ * Conversation Id
9146
+ * Format: uuid
9147
+ */
9148
+ conversation_id: string;
9149
+ /** Results */
9150
+ results: components["schemas"]["CallEvalResult"][];
9151
+ };
8901
9152
  /**
8902
9153
  * CallIntelligenceDetail
8903
9154
  * @description Layer 4 (Narrative) intelligence for a completed call.
@@ -10884,39 +11135,6 @@ export interface components {
10884
11135
  */
10885
11136
  sync_strategy?: "manual" | "scheduled" | "webhook" | "continuous";
10886
11137
  };
10887
- /** CreateEmailTemplateRequest */
10888
- CreateEmailTemplateRequest: {
10889
- /**
10890
- * Body Template
10891
- * @description Jinja HTML body. For an unsubscribable (marketing) use case it MUST
10892
- * reference both unsubscribe variables; for a transactional one it must
10893
- * not — channel-manager enforces the gate bidirectionally.
10894
- */
10895
- body_template: string;
10896
- /**
10897
- * Description
10898
- * @description Agent-facing intent description — what the catalog shows an agent
10899
- * picking a template (R3).
10900
- */
10901
- description?: string | null;
10902
- /**
10903
- * Name
10904
- * @description Template name, unique within the SES use case.
10905
- */
10906
- name: string;
10907
- /**
10908
- * Ses Use Case Id
10909
- * Format: uuid
10910
- * @description The email use case the template belongs to. Must be bound to this
10911
- * workspace via its service binding.
10912
- */
10913
- ses_use_case_id: string;
10914
- /**
10915
- * Subject Template
10916
- * @description Jinja subject. May not reference unsubscribe variables.
10917
- */
10918
- subject_template: string;
10919
- };
10920
11138
  /** CreateLinkRequest */
10921
11139
  CreateLinkRequest: {
10922
11140
  customer_slug: components["schemas"]["SlugString"];
@@ -11058,6 +11276,33 @@ export interface components {
11058
11276
  */
11059
11277
  status: string;
11060
11278
  };
11279
+ /** CreateProductionEvalDefinitionRequest */
11280
+ CreateProductionEvalDefinitionRequest: {
11281
+ /**
11282
+ * Active
11283
+ * @default true
11284
+ */
11285
+ active?: boolean;
11286
+ /** Assertion Kind */
11287
+ assertion_kind?: string | null;
11288
+ /** Eval Key */
11289
+ eval_key: string;
11290
+ /**
11291
+ * Eval Type
11292
+ * @enum {string}
11293
+ */
11294
+ eval_type: "assertion" | "metric";
11295
+ /** Expected */
11296
+ expected?: unknown;
11297
+ /** Metric Key */
11298
+ metric_key?: string | null;
11299
+ /** Params */
11300
+ params?: {
11301
+ [key: string]: unknown;
11302
+ };
11303
+ /** Service Id */
11304
+ service_id?: string | null;
11305
+ };
11061
11306
  /** CreateRunRequest */
11062
11307
  CreateRunRequest: {
11063
11308
  /** Branch Name */
@@ -11144,21 +11389,6 @@ export interface components {
11144
11389
  };
11145
11390
  voice_config?: components["schemas"]["ServiceVoiceConfig-Input"] | null;
11146
11391
  };
11147
- /** CreateSesSetupRequest */
11148
- CreateSesSetupRequest: {
11149
- /**
11150
- * Domain Identity
11151
- * @description Domain to verify for both sending and receiving (e.g.
11152
- * ``mail.customer.com``). A single SES identity serves both directions.
11153
- */
11154
- domain_identity: string;
11155
- /**
11156
- * Tenant Name
11157
- * @description Logical SES tenant name (reputation + suppression isolation boundary).
11158
- * Unique within the AWS account. Alphabet ``[A-Za-z0-9_-]``, 1-64 chars.
11159
- */
11160
- tenant_name: string;
11161
- };
11162
11392
  /** CreateSessionRequest */
11163
11393
  CreateSessionRequest: {
11164
11394
  /** Branch Name */
@@ -12449,29 +12679,6 @@ export interface components {
12449
12679
  */
12450
12680
  workspace_id: string;
12451
12681
  };
12452
- /** DnsRecordResponse */
12453
- DnsRecordResponse: {
12454
- /**
12455
- * Address
12456
- * @description Fully-qualified hostname the DNS entry lives under.
12457
- */
12458
- address: string;
12459
- /**
12460
- * Record
12461
- * @description Target value the customer must publish at their DNS provider.
12462
- */
12463
- record: string;
12464
- /**
12465
- * Type
12466
- * @enum {string}
12467
- */
12468
- type: "CNAME" | "MX" | "TXT";
12469
- /**
12470
- * Verified
12471
- * @description Whether the live DNS lookup at the time of the GET found the entry.
12472
- */
12473
- verified: boolean;
12474
- };
12475
12682
  /**
12476
12683
  * DocumentProcessingSpec
12477
12684
  * @description Processing config for a document dataset (``ingestion_mode=document``).
@@ -12494,6 +12701,19 @@ export interface components {
12494
12701
  */
12495
12702
  retain_source?: boolean;
12496
12703
  };
12704
+ /**
12705
+ * DriveFolderMapping
12706
+ * @description One Google Drive folder ↔ one intake dataset.
12707
+ *
12708
+ * ``folder_id`` is the Drive folder id (the identity — never the folder name,
12709
+ * which can be renamed/moved). One folder maps to exactly one dataset.
12710
+ */
12711
+ DriveFolderMapping: {
12712
+ /** Dataset */
12713
+ dataset: string;
12714
+ /** Folder Id */
12715
+ folder_id: string;
12716
+ };
12497
12717
  /** DropColumnAction */
12498
12718
  DropColumnAction: {
12499
12719
  name: components["schemas"]["IdentifierString"];
@@ -12539,55 +12759,6 @@ export interface components {
12539
12759
  /** Region */
12540
12760
  region: string;
12541
12761
  };
12542
- /**
12543
- * EmailTemplateListResponse
12544
- * @description Plain (unpaginated) list — templates per use case are a bounded-small,
12545
- * human-curated catalog. Template bodies stay behind the GET-by-id route so
12546
- * a list never ships megabytes of Jinja.
12547
- */
12548
- EmailTemplateListResponse: {
12549
- /** Items */
12550
- items: components["schemas"]["src__routes__channels__email_templates__EmailTemplateListResponse__Item"][];
12551
- };
12552
- /** EmailTemplateResponse */
12553
- EmailTemplateResponse: {
12554
- /** Body Template */
12555
- body_template: string;
12556
- /**
12557
- * Created At
12558
- * Format: date-time
12559
- */
12560
- created_at: string;
12561
- /** Description */
12562
- description: string | null;
12563
- /**
12564
- * Id
12565
- * Format: uuid
12566
- */
12567
- id: string;
12568
- /** Name */
12569
- name: string;
12570
- /** Required Body Variables */
12571
- required_body_variables: string[];
12572
- /**
12573
- * Required Subject Variables
12574
- * @description Jinja variables the subject references — the send-time caller must
12575
- * supply every one via ``template_parameters``.
12576
- */
12577
- required_subject_variables: string[];
12578
- /**
12579
- * Ses Use Case Id
12580
- * Format: uuid
12581
- */
12582
- ses_use_case_id: string;
12583
- /** Subject Template */
12584
- subject_template: string;
12585
- /**
12586
- * Updated At
12587
- * Format: date-time
12588
- */
12589
- updated_at: string;
12590
- };
12591
12762
  /** EmailUseCaseRequest */
12592
12763
  EmailUseCaseRequest: {
12593
12764
  /**
@@ -14851,6 +15022,34 @@ export interface components {
14851
15022
  * @enum {string}
14852
15023
  */
14853
15024
  FieldType: "text" | "textarea" | "date" | "phone" | "email" | "number" | "select" | "multiselect" | "checkbox" | "photo" | "signature" | "file" | "heading" | "info";
15025
+ /** FileEntry */
15026
+ FileEntry: {
15027
+ /** Content Type */
15028
+ content_type: string;
15029
+ /** Contract Id */
15030
+ contract_id?: string | null;
15031
+ /** Contract Version */
15032
+ contract_version?: string | null;
15033
+ /** Document Id */
15034
+ document_id?: string | null;
15035
+ /**
15036
+ * File Id
15037
+ * Format: uuid
15038
+ */
15039
+ file_id: string;
15040
+ /** File Type */
15041
+ file_type: string;
15042
+ /** Ingested At */
15043
+ ingested_at: string;
15044
+ /** Sha256 */
15045
+ sha256: string;
15046
+ /** Size Bytes */
15047
+ size_bytes: number;
15048
+ /** Source Path */
15049
+ source_path: string;
15050
+ /** Version */
15051
+ version: number;
15052
+ };
14854
15053
  /** FireTriggerRequest */
14855
15054
  FireTriggerRequest: {
14856
15055
  /**
@@ -15701,6 +15900,20 @@ export interface components {
15701
15900
  schema_version?: string | null;
15702
15901
  /** Size Bytes */
15703
15902
  size_bytes: number;
15903
+ /**
15904
+ * Source File Id
15905
+ * @description The source's stable external id (e.g. the Google Drive file id) for the
15906
+ * document. Lets the console show provenance and confirm a re-synced file
15907
+ * bumped the *same* document. Null for manual uploads and snapshot rows.
15908
+ */
15909
+ source_file_id?: string | null;
15910
+ /**
15911
+ * Source Type
15912
+ * @description Origin of the document this version belongs to — ``manual`` for console
15913
+ * uploads, ``google_shared_drive`` for the Drive connector (V269). Null for
15914
+ * snapshot/CSV rows.
15915
+ */
15916
+ source_type?: string | null;
15704
15917
  status: components["schemas"]["_FileStatus"];
15705
15918
  /**
15706
15919
  * Version
@@ -15751,6 +15964,38 @@ export interface components {
15751
15964
  */
15752
15965
  workspace_id: string;
15753
15966
  };
15967
+ /**
15968
+ * IntakeSourceRow
15969
+ * @description A registered intake source (Sources list).
15970
+ */
15971
+ IntakeSourceRow: {
15972
+ /**
15973
+ * Created Ts
15974
+ * @description ISO-8601 timestamp.
15975
+ */
15976
+ created_ts: string;
15977
+ /**
15978
+ * Credential Ssm Param Path
15979
+ * @description Where the SA key must be uploaded (derived; the secret itself is never returned).
15980
+ */
15981
+ credential_ssm_param_path: string;
15982
+ /** Display Name */
15983
+ display_name: string;
15984
+ /** Drive Id */
15985
+ drive_id?: string | null;
15986
+ /** Folders */
15987
+ folders: components["schemas"]["DriveFolderMapping"][];
15988
+ /**
15989
+ * Id
15990
+ * Format: uuid
15991
+ * @description source_id.
15992
+ */
15993
+ id: string;
15994
+ /** Source Type */
15995
+ source_type: string;
15996
+ /** Status */
15997
+ status: string;
15998
+ };
15754
15999
  /** IntakeUploadResponse */
15755
16000
  IntakeUploadResponse: {
15756
16001
  /** Content Type */
@@ -18030,6 +18275,17 @@ export interface components {
18030
18275
  /** Total */
18031
18276
  total?: number | null;
18032
18277
  };
18278
+ /** PaginatedResponse[BatchRow] */
18279
+ PaginatedResponse_BatchRow_: {
18280
+ /** Continuation Token */
18281
+ continuation_token?: number | null;
18282
+ /** Has More */
18283
+ has_more: boolean;
18284
+ /** Items */
18285
+ items: components["schemas"]["BatchRow"][];
18286
+ /** Total */
18287
+ total?: number | null;
18288
+ };
18033
18289
  /** PaginatedResponse[ContextGraphResponse] */
18034
18290
  PaginatedResponse_ContextGraphResponse_: {
18035
18291
  /** Continuation Token */
@@ -18129,6 +18385,17 @@ export interface components {
18129
18385
  /** Total */
18130
18386
  total?: number | null;
18131
18387
  };
18388
+ /** PaginatedResponse[IntakeSourceRow] */
18389
+ PaginatedResponse_IntakeSourceRow_: {
18390
+ /** Continuation Token */
18391
+ continuation_token?: number | null;
18392
+ /** Has More */
18393
+ has_more: boolean;
18394
+ /** Items */
18395
+ items: components["schemas"]["IntakeSourceRow"][];
18396
+ /** Total */
18397
+ total?: number | null;
18398
+ };
18132
18399
  /** PaginatedResponse[InvoiceItem] */
18133
18400
  PaginatedResponse_InvoiceItem_: {
18134
18401
  /** Continuation Token */
@@ -18173,6 +18440,17 @@ export interface components {
18173
18440
  /** Total */
18174
18441
  total?: number | null;
18175
18442
  };
18443
+ /** PaginatedResponse[ProductionEvalDefinition] */
18444
+ PaginatedResponse_ProductionEvalDefinition_: {
18445
+ /** Continuation Token */
18446
+ continuation_token?: number | null;
18447
+ /** Has More */
18448
+ has_more: boolean;
18449
+ /** Items */
18450
+ items: components["schemas"]["ProductionEvalDefinition"][];
18451
+ /** Total */
18452
+ total?: number | null;
18453
+ };
18176
18454
  /** PaginatedResponse[ReviewItemResponse] */
18177
18455
  PaginatedResponse_ReviewItemResponse_: {
18178
18456
  /** Continuation Token */
@@ -19116,6 +19394,54 @@ export interface components {
19116
19394
  */
19117
19395
  workspace_id: string;
19118
19396
  };
19397
+ /**
19398
+ * ProductionEvalDefinition
19399
+ * @description An eval (assertion or metric-eval) that runs against a workspace's live
19400
+ * calls — the production analogue of a sim case's ``evals``. ``service_id``
19401
+ * None applies to every service in the workspace. ``expected`` is JSON: a
19402
+ * phrase string for assertions, or a ``{gte|lte|equals|...}`` threshold for
19403
+ * metric-evals.
19404
+ */
19405
+ ProductionEvalDefinition: {
19406
+ /**
19407
+ * Active
19408
+ * @default true
19409
+ */
19410
+ active?: boolean;
19411
+ /** Assertion Kind */
19412
+ assertion_kind?: string | null;
19413
+ /** Created At */
19414
+ created_at?: string | null;
19415
+ /** Eval Key */
19416
+ eval_key: string;
19417
+ /**
19418
+ * Eval Type
19419
+ * @enum {string}
19420
+ */
19421
+ eval_type: "assertion" | "metric";
19422
+ /** Expected */
19423
+ expected?: unknown;
19424
+ /**
19425
+ * Id
19426
+ * Format: uuid
19427
+ */
19428
+ id?: string;
19429
+ /** Metric Key */
19430
+ metric_key?: string | null;
19431
+ /** Params */
19432
+ params?: {
19433
+ [key: string]: unknown;
19434
+ };
19435
+ /** Service Id */
19436
+ service_id?: string | null;
19437
+ /** Updated At */
19438
+ updated_at?: string | null;
19439
+ /**
19440
+ * Workspace Id
19441
+ * Format: uuid
19442
+ */
19443
+ workspace_id: string;
19444
+ };
19119
19445
  /**
19120
19446
  * ProgressHint
19121
19447
  * @description How the agent narrates waiting on a tool.
@@ -19593,6 +19919,23 @@ export interface components {
19593
19919
  */
19594
19920
  schema?: components["schemas"]["SchemaFieldSpec"][];
19595
19921
  };
19922
+ /**
19923
+ * RegisterSourceRequest
19924
+ * @description Register a Google Shared Drive intake source (design §3).
19925
+ *
19926
+ * The credential is not part of the wire contract — the server derives the
19927
+ * SA-key SSM path deterministically from the generated ``source_id`` (the
19928
+ * ``/data-sources/`` convention) and the operator uploads the key there
19929
+ * out-of-band. ``drive_id`` is optional (resolved at sync if omitted).
19930
+ */
19931
+ RegisterSourceRequest: {
19932
+ /** Display Name */
19933
+ display_name: string;
19934
+ /** Drive Id */
19935
+ drive_id?: string | null;
19936
+ /** Folders */
19937
+ folders: components["schemas"]["DriveFolderMapping"][];
19938
+ };
19596
19939
  /**
19597
19940
  * RegisteredFunction
19598
19941
  * @description The authored shape of a platform function.
@@ -20824,29 +21167,6 @@ export interface components {
20824
21167
  /** Tts Provider */
20825
21168
  tts_provider?: ("cartesia" | "elevenlabs" | "groq") | null;
20826
21169
  };
20827
- /** SesSetupDetailResponse */
20828
- SesSetupDetailResponse: {
20829
- /**
20830
- * Created At
20831
- * Format: date-time
20832
- */
20833
- created_at: string;
20834
- /** Dns Checked At */
20835
- dns_checked_at: string | null;
20836
- /** Dns Records */
20837
- dns_records: components["schemas"]["DnsRecordResponse"][];
20838
- /** Domain Identity */
20839
- domain_identity: string;
20840
- /** Id */
20841
- id: string;
20842
- /** Tenant Name */
20843
- tenant_name: string;
20844
- /**
20845
- * Updated At
20846
- * Format: date-time
20847
- */
20848
- updated_at: string;
20849
- };
20850
21170
  /** SessionEndEvent */
20851
21171
  SessionEndEvent: {
20852
21172
  /**
@@ -22275,6 +22595,11 @@ export interface components {
22275
22595
  */
22276
22596
  workspace_id: string;
22277
22597
  };
22598
+ /** SourceSyncResponse */
22599
+ SourceSyncResponse: {
22600
+ /** Batches */
22601
+ batches: components["schemas"]["SyncBatchRow"][];
22602
+ };
22278
22603
  /**
22279
22604
  * Span
22280
22605
  * @description OTLP ``Span`` in OTLP/JSON encoding (ids hex, timestamps decimal-string).
@@ -23204,6 +23529,23 @@ export interface components {
23204
23529
  */
23205
23530
  mode: "listen" | "takeover";
23206
23531
  };
23532
+ /**
23533
+ * SyncBatchRow
23534
+ * @description One batch produced by a source sync (one per mapped folder/dataset).
23535
+ */
23536
+ SyncBatchRow: {
23537
+ /**
23538
+ * Batch Id
23539
+ * Format: uuid
23540
+ */
23541
+ batch_id: string;
23542
+ /** Dataset */
23543
+ dataset: string;
23544
+ /** Files Found */
23545
+ files_found: number;
23546
+ /** Status */
23547
+ status: string;
23548
+ };
23207
23549
  /** SyncFailureEntry */
23208
23550
  SyncFailureEntry: {
23209
23551
  /** Created At */
@@ -23290,6 +23632,16 @@ export interface components {
23290
23632
  /** Numbers */
23291
23633
  numbers: string[];
23292
23634
  };
23635
+ /** TestCredentialIdsRequest */
23636
+ TestCredentialIdsRequest: {
23637
+ /** Credential Ids */
23638
+ credential_ids: string[];
23639
+ };
23640
+ /** TestCredentialIdsResponse */
23641
+ TestCredentialIdsResponse: {
23642
+ /** Credential Ids */
23643
+ credential_ids: string[];
23644
+ };
23293
23645
  /**
23294
23646
  * TestInvokeResponse
23295
23647
  * @description Response shape for ``POST /v1/{ws}/functions/{name}/test``.
@@ -23832,6 +24184,12 @@ export interface components {
23832
24184
  failure_delivery_by_class?: {
23833
24185
  [key: string]: "interrupt" | "queue";
23834
24186
  } | null;
24187
+ /**
24188
+ * Lifecycle
24189
+ * @default independent
24190
+ * @enum {string}
24191
+ */
24192
+ lifecycle?: "coupled" | "independent";
23835
24193
  /**
23836
24194
  * Navigate On Completion
23837
24195
  * @default false
@@ -24955,22 +25313,6 @@ export interface components {
24955
25313
  /** Sync Strategy */
24956
25314
  sync_strategy?: ("manual" | "scheduled" | "webhook" | "continuous") | null;
24957
25315
  };
24958
- /**
24959
- * UpdateEmailTemplateRequest
24960
- * @description PATCH-style PUT mirroring channel-manager's update contract: absent
24961
- * fields are untouched (MISSING sentinel), ``description`` may be explicitly
24962
- * nulled, and at least one field must be provided.
24963
- */
24964
- UpdateEmailTemplateRequest: {
24965
- /** Body Template */
24966
- body_template?: string;
24967
- /** Description */
24968
- description?: string | null;
24969
- /** Name */
24970
- name?: string;
24971
- /** Subject Template */
24972
- subject_template?: string;
24973
- };
24974
25316
  /** UpdateOperatorRequest */
24975
25317
  UpdateOperatorRequest: {
24976
25318
  /** Connection Method */
@@ -24988,6 +25330,27 @@ export interface components {
24988
25330
  /** Type */
24989
25331
  type?: ("clinical" | "administrative" | "crisis_counselor") | null;
24990
25332
  };
25333
+ /** UpdateProductionEvalDefinitionRequest */
25334
+ UpdateProductionEvalDefinitionRequest: {
25335
+ /** Active */
25336
+ active?: boolean | null;
25337
+ /** Assertion Kind */
25338
+ assertion_kind?: string | null;
25339
+ /** Eval Key */
25340
+ eval_key?: string | null;
25341
+ /** Eval Type */
25342
+ eval_type?: ("assertion" | "metric") | null;
25343
+ /** Expected */
25344
+ expected?: unknown;
25345
+ /** Metric Key */
25346
+ metric_key?: string | null;
25347
+ /** Params */
25348
+ params?: {
25349
+ [key: string]: unknown;
25350
+ } | null;
25351
+ /** Service Id */
25352
+ service_id?: string | null;
25353
+ };
24991
25354
  /**
24992
25355
  * UpdateSchedulingRuleSetRequest
24993
25356
  * @description Partial update — fields not provided are unchanged. ``params``
@@ -26286,33 +26649,6 @@ export interface components {
26286
26649
  */
26287
26650
  unique_states?: number;
26288
26651
  };
26289
- /** Item */
26290
- src__routes__channels__email_templates__EmailTemplateListResponse__Item: {
26291
- /**
26292
- * Created At
26293
- * Format: date-time
26294
- */
26295
- created_at: string;
26296
- /** Description */
26297
- description: string | null;
26298
- /**
26299
- * Id
26300
- * Format: uuid
26301
- */
26302
- id: string;
26303
- /** Name */
26304
- name: string;
26305
- /**
26306
- * Ses Use Case Id
26307
- * Format: uuid
26308
- */
26309
- ses_use_case_id: string;
26310
- /**
26311
- * Updated At
26312
- * Format: date-time
26313
- */
26314
- updated_at: string;
26315
- };
26316
26652
  /** ConversationSummary */
26317
26653
  src__routes__conversations__ConversationSummary: {
26318
26654
  /** Call Sid */
@@ -28790,6 +29126,63 @@ export interface operations {
28790
29126
  };
28791
29127
  };
28792
29128
  };
29129
+ "get-test-credential-ids": {
29130
+ parameters: {
29131
+ query?: never;
29132
+ header?: never;
29133
+ path: {
29134
+ workspace_id: string;
29135
+ };
29136
+ cookie?: never;
29137
+ };
29138
+ requestBody?: never;
29139
+ responses: {
29140
+ /** @description Successful Response */
29141
+ 200: {
29142
+ headers: {
29143
+ [name: string]: unknown;
29144
+ };
29145
+ content: {
29146
+ "application/json": components["schemas"]["TestCredentialIdsResponse"];
29147
+ };
29148
+ };
29149
+ };
29150
+ };
29151
+ "update-test-credential-ids": {
29152
+ parameters: {
29153
+ query?: never;
29154
+ header?: never;
29155
+ path: {
29156
+ workspace_id: string;
29157
+ };
29158
+ cookie?: never;
29159
+ };
29160
+ requestBody: {
29161
+ content: {
29162
+ "application/json": components["schemas"]["TestCredentialIdsRequest"];
29163
+ };
29164
+ };
29165
+ responses: {
29166
+ /** @description Successful Response */
29167
+ 200: {
29168
+ headers: {
29169
+ [name: string]: unknown;
29170
+ };
29171
+ content: {
29172
+ "application/json": components["schemas"]["TestCredentialIdsResponse"];
29173
+ };
29174
+ };
29175
+ /** @description Validation Error */
29176
+ 422: {
29177
+ headers: {
29178
+ [name: string]: unknown;
29179
+ };
29180
+ content: {
29181
+ "application/json": components["schemas"]["HTTPValidationError"];
29182
+ };
29183
+ };
29184
+ };
29185
+ };
28793
29186
  "list-agents": {
28794
29187
  parameters: {
28795
29188
  query?: {
@@ -31172,390 +31565,13 @@ export interface operations {
31172
31565
  };
31173
31566
  };
31174
31567
  };
31175
- "list-email-templates": {
31176
- parameters: {
31177
- query: {
31178
- ses_use_case_id: string;
31179
- };
31180
- header?: never;
31181
- path: {
31182
- workspace_id: string;
31183
- };
31184
- cookie?: never;
31185
- };
31186
- requestBody?: never;
31187
- responses: {
31188
- /** @description Successful Response */
31189
- 200: {
31190
- headers: {
31191
- [name: string]: unknown;
31192
- };
31193
- content: {
31194
- "application/json": components["schemas"]["EmailTemplateListResponse"];
31195
- };
31196
- };
31197
- /** @description Insufficient permissions. */
31198
- 403: {
31199
- headers: {
31200
- [name: string]: unknown;
31201
- };
31202
- content?: never;
31203
- };
31204
- /** @description SES use case not found or not bound to this workspace. */
31205
- 404: {
31206
- headers: {
31207
- [name: string]: unknown;
31208
- };
31209
- content?: never;
31210
- };
31211
- /** @description Validation Error */
31212
- 422: {
31213
- headers: {
31214
- [name: string]: unknown;
31215
- };
31216
- content: {
31217
- "application/json": components["schemas"]["HTTPValidationError"];
31218
- };
31219
- };
31220
- /** @description Channel manager unavailable. */
31221
- 502: {
31222
- headers: {
31223
- [name: string]: unknown;
31224
- };
31225
- content?: never;
31226
- };
31227
- /** @description Channel manager timed out. */
31228
- 504: {
31229
- headers: {
31230
- [name: string]: unknown;
31231
- };
31232
- content?: never;
31233
- };
31234
- };
31235
- };
31236
- "create-email-template": {
31568
+ "get-call-eval-results": {
31237
31569
  parameters: {
31238
31570
  query?: never;
31239
31571
  header?: never;
31240
31572
  path: {
31241
31573
  workspace_id: string;
31242
- };
31243
- cookie?: never;
31244
- };
31245
- requestBody: {
31246
- content: {
31247
- "application/json": components["schemas"]["CreateEmailTemplateRequest"];
31248
- };
31249
- };
31250
- responses: {
31251
- /** @description Successful Response */
31252
- 201: {
31253
- headers: {
31254
- [name: string]: unknown;
31255
- };
31256
- content: {
31257
- "application/json": components["schemas"]["EmailTemplateResponse"];
31258
- };
31259
- };
31260
- /** @description Insufficient permissions. */
31261
- 403: {
31262
- headers: {
31263
- [name: string]: unknown;
31264
- };
31265
- content?: never;
31266
- };
31267
- /** @description SES use case not found or not bound to this workspace. */
31268
- 404: {
31269
- headers: {
31270
- [name: string]: unknown;
31271
- };
31272
- content?: never;
31273
- };
31274
- /** @description Template name already exists within the SES use case. */
31275
- 409: {
31276
- headers: {
31277
- [name: string]: unknown;
31278
- };
31279
- content?: never;
31280
- };
31281
- /** @description Jinja syntax error or unsubscribe-variable gate violation. */
31282
- 422: {
31283
- headers: {
31284
- [name: string]: unknown;
31285
- };
31286
- content?: never;
31287
- };
31288
- /** @description Channel manager unavailable. */
31289
- 502: {
31290
- headers: {
31291
- [name: string]: unknown;
31292
- };
31293
- content?: never;
31294
- };
31295
- /** @description Channel manager timed out. */
31296
- 504: {
31297
- headers: {
31298
- [name: string]: unknown;
31299
- };
31300
- content?: never;
31301
- };
31302
- };
31303
- };
31304
- "get-email-template": {
31305
- parameters: {
31306
- query?: never;
31307
- header?: never;
31308
- path: {
31309
- workspace_id: string;
31310
- email_template_id: string;
31311
- };
31312
- cookie?: never;
31313
- };
31314
- requestBody?: never;
31315
- responses: {
31316
- /** @description Successful Response */
31317
- 200: {
31318
- headers: {
31319
- [name: string]: unknown;
31320
- };
31321
- content: {
31322
- "application/json": components["schemas"]["EmailTemplateResponse"];
31323
- };
31324
- };
31325
- /** @description Insufficient permissions. */
31326
- 403: {
31327
- headers: {
31328
- [name: string]: unknown;
31329
- };
31330
- content?: never;
31331
- };
31332
- /** @description Email template not found. */
31333
- 404: {
31334
- headers: {
31335
- [name: string]: unknown;
31336
- };
31337
- content?: never;
31338
- };
31339
- /** @description Validation Error */
31340
- 422: {
31341
- headers: {
31342
- [name: string]: unknown;
31343
- };
31344
- content: {
31345
- "application/json": components["schemas"]["HTTPValidationError"];
31346
- };
31347
- };
31348
- /** @description Channel manager unavailable. */
31349
- 502: {
31350
- headers: {
31351
- [name: string]: unknown;
31352
- };
31353
- content?: never;
31354
- };
31355
- /** @description Channel manager timed out. */
31356
- 504: {
31357
- headers: {
31358
- [name: string]: unknown;
31359
- };
31360
- content?: never;
31361
- };
31362
- };
31363
- };
31364
- "update-email-template": {
31365
- parameters: {
31366
- query?: never;
31367
- header?: never;
31368
- path: {
31369
- workspace_id: string;
31370
- email_template_id: string;
31371
- };
31372
- cookie?: never;
31373
- };
31374
- requestBody: {
31375
- content: {
31376
- "application/json": components["schemas"]["UpdateEmailTemplateRequest"];
31377
- };
31378
- };
31379
- responses: {
31380
- /** @description Successful Response */
31381
- 200: {
31382
- headers: {
31383
- [name: string]: unknown;
31384
- };
31385
- content: {
31386
- "application/json": components["schemas"]["EmailTemplateResponse"];
31387
- };
31388
- };
31389
- /** @description Insufficient permissions. */
31390
- 403: {
31391
- headers: {
31392
- [name: string]: unknown;
31393
- };
31394
- content?: never;
31395
- };
31396
- /** @description Email template not found. */
31397
- 404: {
31398
- headers: {
31399
- [name: string]: unknown;
31400
- };
31401
- content?: never;
31402
- };
31403
- /** @description New template name already exists within the SES use case. */
31404
- 409: {
31405
- headers: {
31406
- [name: string]: unknown;
31407
- };
31408
- content?: never;
31409
- };
31410
- /** @description No fields provided, Jinja syntax error, or unsubscribe-variable gate violation. */
31411
- 422: {
31412
- headers: {
31413
- [name: string]: unknown;
31414
- };
31415
- content?: never;
31416
- };
31417
- /** @description Channel manager unavailable. */
31418
- 502: {
31419
- headers: {
31420
- [name: string]: unknown;
31421
- };
31422
- content?: never;
31423
- };
31424
- /** @description Channel manager timed out. */
31425
- 504: {
31426
- headers: {
31427
- [name: string]: unknown;
31428
- };
31429
- content?: never;
31430
- };
31431
- };
31432
- };
31433
- "delete-email-template": {
31434
- parameters: {
31435
- query?: never;
31436
- header?: never;
31437
- path: {
31438
- workspace_id: string;
31439
- email_template_id: string;
31440
- };
31441
- cookie?: never;
31442
- };
31443
- requestBody?: never;
31444
- responses: {
31445
- /** @description Successful Response */
31446
- 204: {
31447
- headers: {
31448
- [name: string]: unknown;
31449
- };
31450
- content?: never;
31451
- };
31452
- /** @description Insufficient permissions. */
31453
- 403: {
31454
- headers: {
31455
- [name: string]: unknown;
31456
- };
31457
- content?: never;
31458
- };
31459
- /** @description Email template not found. */
31460
- 404: {
31461
- headers: {
31462
- [name: string]: unknown;
31463
- };
31464
- content?: never;
31465
- };
31466
- /** @description Validation Error */
31467
- 422: {
31468
- headers: {
31469
- [name: string]: unknown;
31470
- };
31471
- content: {
31472
- "application/json": components["schemas"]["HTTPValidationError"];
31473
- };
31474
- };
31475
- /** @description Channel manager unavailable. */
31476
- 502: {
31477
- headers: {
31478
- [name: string]: unknown;
31479
- };
31480
- content?: never;
31481
- };
31482
- /** @description Channel manager timed out. */
31483
- 504: {
31484
- headers: {
31485
- [name: string]: unknown;
31486
- };
31487
- content?: never;
31488
- };
31489
- };
31490
- };
31491
- "create-ses-setup": {
31492
- parameters: {
31493
- query?: never;
31494
- header?: never;
31495
- path: {
31496
- workspace_id: string;
31497
- };
31498
- cookie?: never;
31499
- };
31500
- requestBody: {
31501
- content: {
31502
- "application/json": components["schemas"]["CreateSesSetupRequest"];
31503
- };
31504
- };
31505
- responses: {
31506
- /** @description Successful Response */
31507
- 201: {
31508
- headers: {
31509
- [name: string]: unknown;
31510
- };
31511
- content: {
31512
- "application/json": components["schemas"]["SesSetupDetailResponse"];
31513
- };
31514
- };
31515
- /** @description Insufficient permissions. */
31516
- 403: {
31517
- headers: {
31518
- [name: string]: unknown;
31519
- };
31520
- content?: never;
31521
- };
31522
- /** @description Tenant name or domain identity already exists upstream. */
31523
- 409: {
31524
- headers: {
31525
- [name: string]: unknown;
31526
- };
31527
- content?: never;
31528
- };
31529
- /** @description Invalid SES setup configuration. */
31530
- 422: {
31531
- headers: {
31532
- [name: string]: unknown;
31533
- };
31534
- content?: never;
31535
- };
31536
- /** @description Channel manager unavailable. */
31537
- 502: {
31538
- headers: {
31539
- [name: string]: unknown;
31540
- };
31541
- content?: never;
31542
- };
31543
- /** @description Channel manager timed out. */
31544
- 504: {
31545
- headers: {
31546
- [name: string]: unknown;
31547
- };
31548
- content?: never;
31549
- };
31550
- };
31551
- };
31552
- "get-ses-setup": {
31553
- parameters: {
31554
- query?: never;
31555
- header?: never;
31556
- path: {
31557
- workspace_id: string;
31558
- setup_id: string;
31574
+ conversation_id: string;
31559
31575
  };
31560
31576
  cookie?: never;
31561
31577
  };
@@ -31567,73 +31583,8 @@ export interface operations {
31567
31583
  [name: string]: unknown;
31568
31584
  };
31569
31585
  content: {
31570
- "application/json": components["schemas"]["SesSetupDetailResponse"];
31571
- };
31572
- };
31573
- /** @description Insufficient permissions. */
31574
- 403: {
31575
- headers: {
31576
- [name: string]: unknown;
31577
- };
31578
- content?: never;
31579
- };
31580
- /** @description SES setup not found. */
31581
- 404: {
31582
- headers: {
31583
- [name: string]: unknown;
31584
- };
31585
- content?: never;
31586
- };
31587
- /** @description Validation Error */
31588
- 422: {
31589
- headers: {
31590
- [name: string]: unknown;
31591
- };
31592
- content: {
31593
- "application/json": components["schemas"]["HTTPValidationError"];
31594
- };
31595
- };
31596
- };
31597
- };
31598
- "delete-ses-setup": {
31599
- parameters: {
31600
- query?: never;
31601
- header?: never;
31602
- path: {
31603
- workspace_id: string;
31604
- setup_id: string;
31605
- };
31606
- cookie?: never;
31607
- };
31608
- requestBody?: never;
31609
- responses: {
31610
- /** @description Successful Response */
31611
- 204: {
31612
- headers: {
31613
- [name: string]: unknown;
31586
+ "application/json": components["schemas"]["CallEvalResultsResponse"];
31614
31587
  };
31615
- content?: never;
31616
- };
31617
- /** @description Insufficient permissions. */
31618
- 403: {
31619
- headers: {
31620
- [name: string]: unknown;
31621
- };
31622
- content?: never;
31623
- };
31624
- /** @description SES setup not found. */
31625
- 404: {
31626
- headers: {
31627
- [name: string]: unknown;
31628
- };
31629
- content?: never;
31630
- };
31631
- /** @description Setup still referenced by live use cases. */
31632
- 409: {
31633
- headers: {
31634
- [name: string]: unknown;
31635
- };
31636
- content?: never;
31637
31588
  };
31638
31589
  /** @description Validation Error */
31639
31590
  422: {
@@ -31644,29 +31595,15 @@ export interface operations {
31644
31595
  "application/json": components["schemas"]["HTTPValidationError"];
31645
31596
  };
31646
31597
  };
31647
- /** @description Channel manager unavailable. */
31648
- 502: {
31649
- headers: {
31650
- [name: string]: unknown;
31651
- };
31652
- content?: never;
31653
- };
31654
- /** @description Channel manager timed out. */
31655
- 504: {
31656
- headers: {
31657
- [name: string]: unknown;
31658
- };
31659
- content?: never;
31660
- };
31661
31598
  };
31662
31599
  };
31663
- "verify-ses-setup-dns": {
31600
+ "evaluate-call": {
31664
31601
  parameters: {
31665
31602
  query?: never;
31666
31603
  header?: never;
31667
31604
  path: {
31668
31605
  workspace_id: string;
31669
- setup_id: string;
31606
+ conversation_id: string;
31670
31607
  };
31671
31608
  cookie?: never;
31672
31609
  };
@@ -31678,22 +31615,8 @@ export interface operations {
31678
31615
  [name: string]: unknown;
31679
31616
  };
31680
31617
  content: {
31681
- "application/json": components["schemas"]["SesSetupDetailResponse"];
31682
- };
31683
- };
31684
- /** @description Insufficient permissions. */
31685
- 403: {
31686
- headers: {
31687
- [name: string]: unknown;
31618
+ "application/json": components["schemas"]["CallEvalResultsResponse"];
31688
31619
  };
31689
- content?: never;
31690
- };
31691
- /** @description SES setup not found. */
31692
- 404: {
31693
- headers: {
31694
- [name: string]: unknown;
31695
- };
31696
- content?: never;
31697
31620
  };
31698
31621
  /** @description Validation Error */
31699
31622
  422: {
@@ -35393,6 +35316,138 @@ export interface operations {
35393
35316
  };
35394
35317
  };
35395
35318
  };
35319
+ list_intake_batches_v1__workspace_id__intake_batches_get: {
35320
+ parameters: {
35321
+ query?: {
35322
+ limit?: number;
35323
+ continuation_token?: number;
35324
+ sort_by?: string;
35325
+ source_id?: string | null;
35326
+ };
35327
+ header?: never;
35328
+ path: {
35329
+ workspace_id: string;
35330
+ };
35331
+ cookie?: never;
35332
+ };
35333
+ requestBody?: never;
35334
+ responses: {
35335
+ /** @description Successful Response */
35336
+ 200: {
35337
+ headers: {
35338
+ [name: string]: unknown;
35339
+ };
35340
+ content: {
35341
+ "application/json": components["schemas"]["PaginatedResponse_BatchRow_"];
35342
+ };
35343
+ };
35344
+ /** @description Validation Error */
35345
+ 422: {
35346
+ headers: {
35347
+ [name: string]: unknown;
35348
+ };
35349
+ content: {
35350
+ "application/json": components["schemas"]["HTTPValidationError"];
35351
+ };
35352
+ };
35353
+ };
35354
+ };
35355
+ get_intake_batch_v1__workspace_id__intake_batches__batch_id__get: {
35356
+ parameters: {
35357
+ query?: never;
35358
+ header?: never;
35359
+ path: {
35360
+ workspace_id: string;
35361
+ batch_id: string;
35362
+ };
35363
+ cookie?: never;
35364
+ };
35365
+ requestBody?: never;
35366
+ responses: {
35367
+ /** @description Successful Response */
35368
+ 200: {
35369
+ headers: {
35370
+ [name: string]: unknown;
35371
+ };
35372
+ content: {
35373
+ "application/json": components["schemas"]["BatchDetail"];
35374
+ };
35375
+ };
35376
+ /** @description Validation Error */
35377
+ 422: {
35378
+ headers: {
35379
+ [name: string]: unknown;
35380
+ };
35381
+ content: {
35382
+ "application/json": components["schemas"]["HTTPValidationError"];
35383
+ };
35384
+ };
35385
+ };
35386
+ };
35387
+ process_intake_batch_v1__workspace_id__intake_batches__batch_id__process_post: {
35388
+ parameters: {
35389
+ query?: never;
35390
+ header?: never;
35391
+ path: {
35392
+ workspace_id: string;
35393
+ batch_id: string;
35394
+ };
35395
+ cookie?: never;
35396
+ };
35397
+ requestBody?: never;
35398
+ responses: {
35399
+ /** @description Successful Response */
35400
+ 202: {
35401
+ headers: {
35402
+ [name: string]: unknown;
35403
+ };
35404
+ content: {
35405
+ "application/json": components["schemas"]["BatchRow"];
35406
+ };
35407
+ };
35408
+ /** @description Validation Error */
35409
+ 422: {
35410
+ headers: {
35411
+ [name: string]: unknown;
35412
+ };
35413
+ content: {
35414
+ "application/json": components["schemas"]["HTTPValidationError"];
35415
+ };
35416
+ };
35417
+ };
35418
+ };
35419
+ get_batch_processing_manifest_v1__workspace_id__intake_batches__batch_id__processing_manifest_get: {
35420
+ parameters: {
35421
+ query?: never;
35422
+ header?: never;
35423
+ path: {
35424
+ workspace_id: string;
35425
+ batch_id: string;
35426
+ };
35427
+ cookie?: never;
35428
+ };
35429
+ requestBody?: never;
35430
+ responses: {
35431
+ /** @description Successful Response */
35432
+ 200: {
35433
+ headers: {
35434
+ [name: string]: unknown;
35435
+ };
35436
+ content: {
35437
+ "application/json": components["schemas"]["BatchProcessingManifest"];
35438
+ };
35439
+ };
35440
+ /** @description Validation Error */
35441
+ 422: {
35442
+ headers: {
35443
+ [name: string]: unknown;
35444
+ };
35445
+ content: {
35446
+ "application/json": components["schemas"]["HTTPValidationError"];
35447
+ };
35448
+ };
35449
+ };
35450
+ };
35396
35451
  list_intake_datasets_v1__workspace_id__intake_datasets_get: {
35397
35452
  parameters: {
35398
35453
  query?: {
@@ -35824,6 +35879,108 @@ export interface operations {
35824
35879
  };
35825
35880
  };
35826
35881
  };
35882
+ list_intake_sources_v1__workspace_id__intake_sources_get: {
35883
+ parameters: {
35884
+ query?: {
35885
+ limit?: number;
35886
+ continuation_token?: number;
35887
+ sort_by?: string;
35888
+ };
35889
+ header?: never;
35890
+ path: {
35891
+ workspace_id: string;
35892
+ };
35893
+ cookie?: never;
35894
+ };
35895
+ requestBody?: never;
35896
+ responses: {
35897
+ /** @description Successful Response */
35898
+ 200: {
35899
+ headers: {
35900
+ [name: string]: unknown;
35901
+ };
35902
+ content: {
35903
+ "application/json": components["schemas"]["PaginatedResponse_IntakeSourceRow_"];
35904
+ };
35905
+ };
35906
+ /** @description Validation Error */
35907
+ 422: {
35908
+ headers: {
35909
+ [name: string]: unknown;
35910
+ };
35911
+ content: {
35912
+ "application/json": components["schemas"]["HTTPValidationError"];
35913
+ };
35914
+ };
35915
+ };
35916
+ };
35917
+ register_intake_source_v1__workspace_id__intake_sources_post: {
35918
+ parameters: {
35919
+ query?: never;
35920
+ header?: never;
35921
+ path: {
35922
+ workspace_id: string;
35923
+ };
35924
+ cookie?: never;
35925
+ };
35926
+ requestBody: {
35927
+ content: {
35928
+ "application/json": components["schemas"]["RegisterSourceRequest"];
35929
+ };
35930
+ };
35931
+ responses: {
35932
+ /** @description Successful Response */
35933
+ 201: {
35934
+ headers: {
35935
+ [name: string]: unknown;
35936
+ };
35937
+ content: {
35938
+ "application/json": components["schemas"]["IntakeSourceRow"];
35939
+ };
35940
+ };
35941
+ /** @description Validation Error */
35942
+ 422: {
35943
+ headers: {
35944
+ [name: string]: unknown;
35945
+ };
35946
+ content: {
35947
+ "application/json": components["schemas"]["HTTPValidationError"];
35948
+ };
35949
+ };
35950
+ };
35951
+ };
35952
+ sync_intake_source_v1__workspace_id__intake_sources__source_id__sync_post: {
35953
+ parameters: {
35954
+ query?: never;
35955
+ header?: never;
35956
+ path: {
35957
+ workspace_id: string;
35958
+ source_id: string;
35959
+ };
35960
+ cookie?: never;
35961
+ };
35962
+ requestBody?: never;
35963
+ responses: {
35964
+ /** @description Successful Response */
35965
+ 201: {
35966
+ headers: {
35967
+ [name: string]: unknown;
35968
+ };
35969
+ content: {
35970
+ "application/json": components["schemas"]["SourceSyncResponse"];
35971
+ };
35972
+ };
35973
+ /** @description Validation Error */
35974
+ 422: {
35975
+ headers: {
35976
+ [name: string]: unknown;
35977
+ };
35978
+ content: {
35979
+ "application/json": components["schemas"]["HTTPValidationError"];
35980
+ };
35981
+ };
35982
+ };
35983
+ };
35827
35984
  "list-integrations": {
35828
35985
  parameters: {
35829
35986
  query?: {
@@ -38602,6 +38759,175 @@ export interface operations {
38602
38759
  };
38603
38760
  };
38604
38761
  };
38762
+ "list-production-eval-definitions": {
38763
+ parameters: {
38764
+ query?: {
38765
+ service_id?: string | null;
38766
+ active?: boolean | null;
38767
+ limit?: number;
38768
+ continuation_token?: number;
38769
+ };
38770
+ header?: never;
38771
+ path: {
38772
+ workspace_id: string;
38773
+ };
38774
+ cookie?: never;
38775
+ };
38776
+ requestBody?: never;
38777
+ responses: {
38778
+ /** @description Successful Response */
38779
+ 200: {
38780
+ headers: {
38781
+ [name: string]: unknown;
38782
+ };
38783
+ content: {
38784
+ "application/json": components["schemas"]["PaginatedResponse_ProductionEvalDefinition_"];
38785
+ };
38786
+ };
38787
+ /** @description Validation Error */
38788
+ 422: {
38789
+ headers: {
38790
+ [name: string]: unknown;
38791
+ };
38792
+ content: {
38793
+ "application/json": components["schemas"]["HTTPValidationError"];
38794
+ };
38795
+ };
38796
+ };
38797
+ };
38798
+ "create-production-eval-definition": {
38799
+ parameters: {
38800
+ query?: never;
38801
+ header?: never;
38802
+ path: {
38803
+ workspace_id: string;
38804
+ };
38805
+ cookie?: never;
38806
+ };
38807
+ requestBody: {
38808
+ content: {
38809
+ "application/json": components["schemas"]["CreateProductionEvalDefinitionRequest"];
38810
+ };
38811
+ };
38812
+ responses: {
38813
+ /** @description Successful Response */
38814
+ 201: {
38815
+ headers: {
38816
+ [name: string]: unknown;
38817
+ };
38818
+ content: {
38819
+ "application/json": components["schemas"]["ProductionEvalDefinition"];
38820
+ };
38821
+ };
38822
+ /** @description Validation Error */
38823
+ 422: {
38824
+ headers: {
38825
+ [name: string]: unknown;
38826
+ };
38827
+ content: {
38828
+ "application/json": components["schemas"]["HTTPValidationError"];
38829
+ };
38830
+ };
38831
+ };
38832
+ };
38833
+ "get-production-eval-definition": {
38834
+ parameters: {
38835
+ query?: never;
38836
+ header?: never;
38837
+ path: {
38838
+ workspace_id: string;
38839
+ definition_id: string;
38840
+ };
38841
+ cookie?: never;
38842
+ };
38843
+ requestBody?: never;
38844
+ responses: {
38845
+ /** @description Successful Response */
38846
+ 200: {
38847
+ headers: {
38848
+ [name: string]: unknown;
38849
+ };
38850
+ content: {
38851
+ "application/json": components["schemas"]["ProductionEvalDefinition"];
38852
+ };
38853
+ };
38854
+ /** @description Validation Error */
38855
+ 422: {
38856
+ headers: {
38857
+ [name: string]: unknown;
38858
+ };
38859
+ content: {
38860
+ "application/json": components["schemas"]["HTTPValidationError"];
38861
+ };
38862
+ };
38863
+ };
38864
+ };
38865
+ "delete-production-eval-definition": {
38866
+ parameters: {
38867
+ query?: never;
38868
+ header?: never;
38869
+ path: {
38870
+ workspace_id: string;
38871
+ definition_id: string;
38872
+ };
38873
+ cookie?: never;
38874
+ };
38875
+ requestBody?: never;
38876
+ responses: {
38877
+ /** @description Successful Response */
38878
+ 204: {
38879
+ headers: {
38880
+ [name: string]: unknown;
38881
+ };
38882
+ content?: never;
38883
+ };
38884
+ /** @description Validation Error */
38885
+ 422: {
38886
+ headers: {
38887
+ [name: string]: unknown;
38888
+ };
38889
+ content: {
38890
+ "application/json": components["schemas"]["HTTPValidationError"];
38891
+ };
38892
+ };
38893
+ };
38894
+ };
38895
+ "update-production-eval-definition": {
38896
+ parameters: {
38897
+ query?: never;
38898
+ header?: never;
38899
+ path: {
38900
+ workspace_id: string;
38901
+ definition_id: string;
38902
+ };
38903
+ cookie?: never;
38904
+ };
38905
+ requestBody: {
38906
+ content: {
38907
+ "application/json": components["schemas"]["UpdateProductionEvalDefinitionRequest"];
38908
+ };
38909
+ };
38910
+ responses: {
38911
+ /** @description Successful Response */
38912
+ 200: {
38913
+ headers: {
38914
+ [name: string]: unknown;
38915
+ };
38916
+ content: {
38917
+ "application/json": components["schemas"]["ProductionEvalDefinition"];
38918
+ };
38919
+ };
38920
+ /** @description Validation Error */
38921
+ 422: {
38922
+ headers: {
38923
+ [name: string]: unknown;
38924
+ };
38925
+ content: {
38926
+ "application/json": components["schemas"]["HTTPValidationError"];
38927
+ };
38928
+ };
38929
+ };
38930
+ };
38605
38931
  "list-prompt-logs": {
38606
38932
  parameters: {
38607
38933
  query?: {