@amigo-ai/platform-sdk 0.46.0 → 0.47.1

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.
@@ -1774,14 +1774,14 @@ export interface paths {
1774
1774
  cookie?: never;
1775
1775
  };
1776
1776
  /**
1777
- * List SES setups for this workspace
1778
- * @description Paginated list of SES setups owned by this workspace. Items carry the cached ``dns_verified`` aggregate; call ``GET /ses-setup/{id}`` for per-record DNS detail. Requires ``Channel.view`` permission.
1777
+ * List SES setups
1778
+ * @description Paginated list of every SES setup on the platform. Items carry the cached ``dns_verified`` aggregate; call ``GET /ses-setup/{id}`` for per-record DNS detail. Setups are shared platform-wide; any caller with ``Channel.view`` permission sees the full list.
1779
1779
  */
1780
1780
  get: operations["list-ses-setups"];
1781
1781
  put?: never;
1782
1782
  /**
1783
1783
  * Create an SES setup
1784
- * @description Create an SES tenant + verified email identity for this workspace. 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. Requires ``Channel.create`` permission.
1784
+ * @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. Setups are shared platform-wide; any caller with ``Channel.create`` permission can create one.
1785
1785
  */
1786
1786
  post: operations["create-ses-setup"];
1787
1787
  delete?: never;
@@ -1806,7 +1806,7 @@ export interface paths {
1806
1806
  post?: never;
1807
1807
  /**
1808
1808
  * Delete an SES setup
1809
- * @description Tear down the upstream SES tenant + identity and soft-delete the workspace binding. Refuses (409) if any use case still references the setup. Requires ``Channel.delete`` permission.
1809
+ * @description Tear down the upstream SES tenant + identity. Refuses (409) if any use case still references the setup. Requires ``Channel.delete`` permission.
1810
1810
  */
1811
1811
  delete: operations["delete-ses-setup"];
1812
1812
  options?: never;
@@ -3117,6 +3117,25 @@ export interface paths {
3117
3117
  patch?: never;
3118
3118
  trace?: never;
3119
3119
  };
3120
+ "/v1/{workspace_id}/fork": {
3121
+ parameters: {
3122
+ query?: never;
3123
+ header?: never;
3124
+ path?: never;
3125
+ cookie?: never;
3126
+ };
3127
+ /** Get fork status */
3128
+ get: operations["get-fork"];
3129
+ put?: never;
3130
+ /** Create a Lakebase fork (sandbox) */
3131
+ post: operations["create-fork"];
3132
+ /** Destroy fork */
3133
+ delete: operations["delete-fork"];
3134
+ options?: never;
3135
+ head?: never;
3136
+ patch?: never;
3137
+ trace?: never;
3138
+ };
3120
3139
  "/v1/{workspace_id}/functions": {
3121
3140
  parameters: {
3122
3141
  query?: never;
@@ -3848,6 +3867,23 @@ export interface paths {
3848
3867
  patch?: never;
3849
3868
  trace?: never;
3850
3869
  };
3870
+ "/v1/{workspace_id}/lakebase/query": {
3871
+ parameters: {
3872
+ query?: never;
3873
+ header?: never;
3874
+ path?: never;
3875
+ cookie?: never;
3876
+ };
3877
+ get?: never;
3878
+ put?: never;
3879
+ /** Execute SQL against workspace Lakebase */
3880
+ post: operations["execute-workspace-query"];
3881
+ delete?: never;
3882
+ options?: never;
3883
+ head?: never;
3884
+ patch?: never;
3885
+ trace?: never;
3886
+ };
3851
3887
  "/v1/{workspace_id}/m42/anomalies/ranked": {
3852
3888
  parameters: {
3853
3889
  query?: never;
@@ -5248,6 +5284,59 @@ export interface paths {
5248
5284
  patch?: never;
5249
5285
  trace?: never;
5250
5286
  };
5287
+ "/v1/{workspace_id}/query-tools": {
5288
+ parameters: {
5289
+ query?: never;
5290
+ header?: never;
5291
+ path?: never;
5292
+ cookie?: never;
5293
+ };
5294
+ /** List query tools */
5295
+ get: operations["list-query-tools"];
5296
+ put?: never;
5297
+ /** Create a query tool */
5298
+ post: operations["create-query-tool"];
5299
+ delete?: never;
5300
+ options?: never;
5301
+ head?: never;
5302
+ patch?: never;
5303
+ trace?: never;
5304
+ };
5305
+ "/v1/{workspace_id}/query-tools/{tool_id}": {
5306
+ parameters: {
5307
+ query?: never;
5308
+ header?: never;
5309
+ path?: never;
5310
+ cookie?: never;
5311
+ };
5312
+ get?: never;
5313
+ put?: never;
5314
+ post?: never;
5315
+ /** Delete a query tool */
5316
+ delete: operations["delete-query-tool"];
5317
+ options?: never;
5318
+ head?: never;
5319
+ /** Update a query tool */
5320
+ patch: operations["update-query-tool"];
5321
+ trace?: never;
5322
+ };
5323
+ "/v1/{workspace_id}/query-tools/{tool_id}/test": {
5324
+ parameters: {
5325
+ query?: never;
5326
+ header?: never;
5327
+ path?: never;
5328
+ cookie?: never;
5329
+ };
5330
+ get?: never;
5331
+ put?: never;
5332
+ /** Test a query tool with sample parameters */
5333
+ post: operations["test-query-tool"];
5334
+ delete?: never;
5335
+ options?: never;
5336
+ head?: never;
5337
+ patch?: never;
5338
+ trace?: never;
5339
+ };
5251
5340
  "/v1/{workspace_id}/query/{schema}/{table}": {
5252
5341
  parameters: {
5253
5342
  query?: never;
@@ -6830,6 +6919,46 @@ export interface paths {
6830
6919
  patch?: never;
6831
6920
  trace?: never;
6832
6921
  };
6922
+ "/v1/{workspace_id}/simulations/cases": {
6923
+ parameters: {
6924
+ query?: never;
6925
+ header?: never;
6926
+ path?: never;
6927
+ cookie?: never;
6928
+ };
6929
+ /**
6930
+ * List Simulation Cases
6931
+ * @description List durable simulation cases for case-library inspection.
6932
+ */
6933
+ get: operations["list-simulation-cases"];
6934
+ put?: never;
6935
+ post?: never;
6936
+ delete?: never;
6937
+ options?: never;
6938
+ head?: never;
6939
+ patch?: never;
6940
+ trace?: never;
6941
+ };
6942
+ "/v1/{workspace_id}/simulations/cases/{case_id}": {
6943
+ parameters: {
6944
+ query?: never;
6945
+ header?: never;
6946
+ path?: never;
6947
+ cookie?: never;
6948
+ };
6949
+ /**
6950
+ * Get Simulation Case
6951
+ * @description Fetch one durable simulation case for case-library inspection.
6952
+ */
6953
+ get: operations["get-simulation-case"];
6954
+ put?: never;
6955
+ post?: never;
6956
+ delete?: never;
6957
+ options?: never;
6958
+ head?: never;
6959
+ patch?: never;
6960
+ trace?: never;
6961
+ };
6833
6962
  "/v1/{workspace_id}/simulations/cases/{case_id}/run": {
6834
6963
  parameters: {
6835
6964
  query?: never;
@@ -6939,6 +7068,10 @@ export interface paths {
6939
7068
  /**
6940
7069
  * Create Simulation Session
6941
7070
  * @description Create a simulation session within a run. Proxies to agent-engine.
7071
+ *
7072
+ * entity_id ownership: agent-engine's _resolve_caller queries the entity
7073
+ * with workspace_id scoping — a workspace-A entity_id resolves to None in
7074
+ * workspace-B, so no cross-tenant data is exposed.
6942
7075
  */
6943
7076
  post: operations["create-simulation-session"];
6944
7077
  delete?: never;
@@ -7853,7 +7986,7 @@ export interface paths {
7853
7986
  post?: never;
7854
7987
  /**
7855
7988
  * Delete a channel use case
7856
- * @description Delete a use case. Fails if voice use case still has phone assignments. Requires Channel.delete permission.
7989
+ * @description Delete a use case. Refuses (409) while any workspace has the use case bound — call DELETE `/use-cases/{id}/bindings` first. Also refuses if a Twilio use case still has phone-number assignments. Requires Channel.delete permission.
7857
7990
  */
7858
7991
  delete: operations["delete-use-case"];
7859
7992
  options?: never;
@@ -7861,6 +7994,30 @@ export interface paths {
7861
7994
  patch?: never;
7862
7995
  trace?: never;
7863
7996
  };
7997
+ "/v1/{workspace_id}/use-cases/{use_case_id}/bindings": {
7998
+ parameters: {
7999
+ query?: never;
8000
+ header?: never;
8001
+ path?: never;
8002
+ cookie?: never;
8003
+ };
8004
+ get?: never;
8005
+ put?: never;
8006
+ /**
8007
+ * Bind a use case to this workspace
8008
+ * @description Claim a use case for this workspace. Inbound webhook events for the use case will resolve to this workspace. Idempotent for the same workspace; 409 if another workspace owns the binding; revives a soft-deleted binding (after a prior unbind) and re-points it at this workspace. Requires Channel.create permission.
8009
+ */
8010
+ post: operations["bind-use-case"];
8011
+ /**
8012
+ * Unbind a use case from this workspace
8013
+ * @description Release a use case from this workspace. Soft-delete on the binding row. 404 if the use case is not currently bound to this workspace (covers both 'never bound' and 'already unbound'). Requires Channel.delete permission.
8014
+ */
8015
+ delete: operations["unbind-use-case"];
8016
+ options?: never;
8017
+ head?: never;
8018
+ patch?: never;
8019
+ trace?: never;
8020
+ };
7864
8021
  "/v1/{workspace_id}/voicemail": {
7865
8022
  parameters: {
7866
8023
  query?: never;
@@ -9894,6 +10051,18 @@ export interface components {
9894
10051
  */
9895
10052
  setup_id: string;
9896
10053
  };
10054
+ /** BindingResponse */
10055
+ BindingResponse: {
10056
+ /**
10057
+ * Channel
10058
+ * @enum {string}
10059
+ */
10060
+ channel: "voice" | "voicemail" | "email";
10061
+ /** Use Case Id */
10062
+ use_case_id: string;
10063
+ /** Workspace Id */
10064
+ workspace_id: string;
10065
+ };
9897
10066
  /** Body_enroll-voiceprint */
9898
10067
  "Body_enroll-voiceprint": {
9899
10068
  /** Audio */
@@ -10914,13 +11083,13 @@ export interface components {
10914
11083
  occurred_at: string;
10915
11084
  /** Phone Number */
10916
11085
  phone_number?: string | null;
11086
+ /** To Address */
11087
+ to_address?: string | null;
10917
11088
  /**
10918
- * Setup Id
11089
+ * Use Case Id
10919
11090
  * Format: uuid
10920
11091
  */
10921
- setup_id: string;
10922
- /** To Address */
10923
- to_address?: string | null;
11092
+ use_case_id: string;
10924
11093
  };
10925
11094
  /** ChannelEventResponse */
10926
11095
  ChannelEventResponse: {
@@ -12382,6 +12551,14 @@ export interface components {
12382
12551
  */
12383
12552
  sync_strategy?: "manual" | "scheduled" | "webhook" | "continuous";
12384
12553
  };
12554
+ /** CreateForkRequest */
12555
+ CreateForkRequest: {
12556
+ /**
12557
+ * Ttl Days
12558
+ * @default 7
12559
+ */
12560
+ ttl_days?: number;
12561
+ };
12385
12562
  /** CreateIntegrationRequest */
12386
12563
  CreateIntegrationRequest: {
12387
12564
  auth?: components["schemas"]["AuthConfigWithSecrets"] | null;
@@ -12926,6 +13103,24 @@ export interface components {
12926
13103
  /** Url */
12927
13104
  url?: string | null;
12928
13105
  };
13106
+ /** CreateToolRequest */
13107
+ CreateToolRequest: {
13108
+ /** @default */
13109
+ description?: components["schemas"]["DescriptionString"];
13110
+ name: components["schemas"]["NameString"];
13111
+ /** Parameters */
13112
+ parameters?: {
13113
+ [key: string]: unknown;
13114
+ };
13115
+ /** Query */
13116
+ query: string;
13117
+ /**
13118
+ * Target
13119
+ * @default lakebase
13120
+ * @constant
13121
+ */
13122
+ target?: "lakebase";
13123
+ };
12929
13124
  /** CreateTriggerRequest */
12930
13125
  CreateTriggerRequest: {
12931
13126
  /**
@@ -15917,6 +16112,11 @@ export interface components {
15917
16112
  [key: string]: unknown;
15918
16113
  };
15919
16114
  };
16115
+ /** ExecuteQueryRequest */
16116
+ ExecuteQueryRequest: {
16117
+ /** Sql */
16118
+ sql: string;
16119
+ };
15920
16120
  /** ExitCondition */
15921
16121
  ExitCondition: {
15922
16122
  /** Description */
@@ -16595,6 +16795,18 @@ export interface components {
16595
16795
  /** Alternatives */
16596
16796
  alternatives: components["schemas"]["ForkAlternative"][];
16597
16797
  };
16798
+ /** ForkResponse */
16799
+ ForkResponse: {
16800
+ /** Endpoint */
16801
+ endpoint: string;
16802
+ /**
16803
+ * Status
16804
+ * @enum {string}
16805
+ */
16806
+ status: "pending" | "ready" | "deleting";
16807
+ /** Ttl Days */
16808
+ ttl_days?: number | null;
16809
+ };
16598
16810
  /**
16599
16811
  * FormTemplate
16600
16812
  * @description Reusable form template with sections, prefill, branding.
@@ -20054,6 +20266,17 @@ export interface components {
20054
20266
  /** Total */
20055
20267
  total?: number | null;
20056
20268
  };
20269
+ /** PaginatedResponse[SimulationCaseResponse] */
20270
+ PaginatedResponse_SimulationCaseResponse_: {
20271
+ /** Continuation Token */
20272
+ continuation_token?: number | null;
20273
+ /** Has More */
20274
+ has_more: boolean;
20275
+ /** Items */
20276
+ items: components["schemas"]["SimulationCaseResponse"][];
20277
+ /** Total */
20278
+ total?: number | null;
20279
+ };
20057
20280
  /** PaginatedResponse[SkillResponse] */
20058
20281
  PaginatedResponse_SkillResponse_: {
20059
20282
  /** Continuation Token */
@@ -20087,6 +20310,17 @@ export interface components {
20087
20310
  /** Total */
20088
20311
  total?: number | null;
20089
20312
  };
20313
+ /** PaginatedResponse[ToolResponse] */
20314
+ PaginatedResponse_ToolResponse_: {
20315
+ /** Continuation Token */
20316
+ continuation_token?: number | null;
20317
+ /** Has More */
20318
+ has_more: boolean;
20319
+ /** Items */
20320
+ items: components["schemas"]["ToolResponse"][];
20321
+ /** Total */
20322
+ total?: number | null;
20323
+ };
20090
20324
  /** PaginatedResponse[TriggerResponse] */
20091
20325
  PaginatedResponse_TriggerResponse_: {
20092
20326
  /** Continuation Token */
@@ -21509,6 +21743,17 @@ export interface components {
21509
21743
  [key: string]: unknown;
21510
21744
  }[];
21511
21745
  };
21746
+ /** QueryResultResponse */
21747
+ QueryResultResponse: {
21748
+ /** Columns */
21749
+ columns?: string[] | null;
21750
+ /** Row Count */
21751
+ row_count: number;
21752
+ /** Rows */
21753
+ rows?: {
21754
+ [key: string]: unknown;
21755
+ }[] | null;
21756
+ };
21512
21757
  /**
21513
21758
  * QuietHours
21514
21759
  * @description TCPA-compliant quiet hours — no outbound SMS during this window.
@@ -23572,6 +23817,65 @@ export interface components {
23572
23817
  /** Skipped Cases */
23573
23818
  skipped_cases: components["schemas"]["SimulationBenchmarkCaseResult"][];
23574
23819
  };
23820
+ /**
23821
+ * SimulationCaseResponse
23822
+ * @description HTTP response shape for durable simulation cases.
23823
+ */
23824
+ SimulationCaseResponse: {
23825
+ /** Assertions */
23826
+ assertions?: {
23827
+ [key: string]: unknown;
23828
+ }[];
23829
+ /** Constraints */
23830
+ constraints?: {
23831
+ [key: string]: unknown;
23832
+ };
23833
+ /** Created At */
23834
+ created_at?: string | null;
23835
+ /** Created By */
23836
+ created_by?: string | null;
23837
+ /** Description */
23838
+ description: string;
23839
+ /** Fixtures */
23840
+ fixtures?: {
23841
+ [key: string]: unknown;
23842
+ };
23843
+ /**
23844
+ * Id
23845
+ * Format: uuid
23846
+ */
23847
+ id: string;
23848
+ /** Initial Message */
23849
+ initial_message: string;
23850
+ /** Persona */
23851
+ persona?: {
23852
+ [key: string]: unknown;
23853
+ };
23854
+ /**
23855
+ * Provenance
23856
+ * @default manual
23857
+ */
23858
+ provenance?: string;
23859
+ /** Scenario Instructions */
23860
+ scenario_instructions: string;
23861
+ /** Service Id */
23862
+ service_id?: string | null;
23863
+ /** Tags */
23864
+ tags?: string[];
23865
+ /** Target Spec */
23866
+ target_spec?: {
23867
+ [key: string]: unknown;
23868
+ };
23869
+ /** Temperament */
23870
+ temperament?: string | null;
23871
+ /** Updated At */
23872
+ updated_at?: string | null;
23873
+ /**
23874
+ * Workspace Id
23875
+ * Format: uuid
23876
+ */
23877
+ workspace_id: string;
23878
+ };
23575
23879
  /** SimulationIntelligenceResponse */
23576
23880
  SimulationIntelligenceResponse: {
23577
23881
  /** Intelligence */
@@ -25568,6 +25872,13 @@ export interface components {
25568
25872
  */
25569
25873
  sub_tool_logs: components["schemas"]["SubToolLog"][];
25570
25874
  };
25875
+ /** TestToolRequest */
25876
+ TestToolRequest: {
25877
+ /** Parameters */
25878
+ parameters?: {
25879
+ [key: string]: unknown;
25880
+ };
25881
+ };
25571
25882
  /** TextCompletedEvent */
25572
25883
  TextCompletedEvent: {
25573
25884
  /** Channel Kind */
@@ -26062,6 +26373,34 @@ export interface components {
26062
26373
  */
26063
26374
  workspace_id: string;
26064
26375
  };
26376
+ /** ToolResponse */
26377
+ ToolResponse: {
26378
+ /** Created At */
26379
+ created_at?: string | null;
26380
+ /** Description */
26381
+ description: string;
26382
+ /** Enabled */
26383
+ enabled: boolean;
26384
+ /** Id */
26385
+ id: string;
26386
+ /** Name */
26387
+ name: string;
26388
+ /** Parameters */
26389
+ parameters: {
26390
+ [key: string]: unknown;
26391
+ };
26392
+ /** Query */
26393
+ query: string;
26394
+ /**
26395
+ * Target
26396
+ * @constant
26397
+ */
26398
+ target: "lakebase";
26399
+ /** Updated At */
26400
+ updated_at?: string | null;
26401
+ /** Workspace Id */
26402
+ workspace_id: string;
26403
+ };
26065
26404
  /**
26066
26405
  * ToolSummary
26067
26406
  * @description Tool usage statistics.
@@ -27312,6 +27651,19 @@ export interface components {
27312
27651
  */
27313
27652
  workspace_id: string;
27314
27653
  };
27654
+ /** UpdateToolRequest */
27655
+ UpdateToolRequest: {
27656
+ description?: components["schemas"]["DescriptionString"] | null;
27657
+ /** Enabled */
27658
+ enabled?: boolean | null;
27659
+ name?: components["schemas"]["NameString"] | null;
27660
+ /** Parameters */
27661
+ parameters?: {
27662
+ [key: string]: unknown;
27663
+ } | null;
27664
+ /** Query */
27665
+ query?: string | null;
27666
+ };
27315
27667
  /** UpdateTriggerRequest */
27316
27668
  UpdateTriggerRequest: {
27317
27669
  /** Action Id */
@@ -28872,6 +29224,11 @@ export interface components {
28872
29224
  * @description Simulated caller phone number for patient resolution. When omitted or blank the agent-engine falls back to the sim-orchestrator sentinel.
28873
29225
  */
28874
29226
  caller_id?: string | null;
29227
+ /**
29228
+ * Entity Id
29229
+ * @description Entity UUID to bind to the session for patient context resolution.
29230
+ */
29231
+ entity_id?: string | null;
28875
29232
  /**
28876
29233
  * Service Id
28877
29234
  * Format: uuid
@@ -33250,7 +33607,7 @@ export interface operations {
33250
33607
  };
33251
33608
  content?: never;
33252
33609
  };
33253
- /** @description SES setup not found in this workspace. */
33610
+ /** @description SES setup not found. */
33254
33611
  404: {
33255
33612
  headers: {
33256
33613
  [name: string]: unknown;
@@ -33294,7 +33651,7 @@ export interface operations {
33294
33651
  };
33295
33652
  content?: never;
33296
33653
  };
33297
- /** @description SES setup not found in this workspace. */
33654
+ /** @description SES setup not found. */
33298
33655
  404: {
33299
33656
  headers: {
33300
33657
  [name: string]: unknown;
@@ -33361,7 +33718,7 @@ export interface operations {
33361
33718
  };
33362
33719
  content?: never;
33363
33720
  };
33364
- /** @description SES setup not found in this workspace. */
33721
+ /** @description SES setup not found. */
33365
33722
  404: {
33366
33723
  headers: {
33367
33724
  [name: string]: unknown;
@@ -36480,6 +36837,109 @@ export interface operations {
36480
36837
  };
36481
36838
  };
36482
36839
  };
36840
+ "get-fork": {
36841
+ parameters: {
36842
+ query?: never;
36843
+ header?: never;
36844
+ path: {
36845
+ workspace_id: string;
36846
+ };
36847
+ cookie?: never;
36848
+ };
36849
+ requestBody?: never;
36850
+ responses: {
36851
+ /** @description Successful Response */
36852
+ 200: {
36853
+ headers: {
36854
+ [name: string]: unknown;
36855
+ };
36856
+ content: {
36857
+ "application/json": components["schemas"]["ForkResponse"] | null;
36858
+ };
36859
+ };
36860
+ /** @description Rate limited */
36861
+ 429: {
36862
+ headers: {
36863
+ [name: string]: unknown;
36864
+ };
36865
+ content?: never;
36866
+ };
36867
+ };
36868
+ };
36869
+ "create-fork": {
36870
+ parameters: {
36871
+ query?: never;
36872
+ header?: never;
36873
+ path: {
36874
+ workspace_id: string;
36875
+ };
36876
+ cookie?: never;
36877
+ };
36878
+ requestBody: {
36879
+ content: {
36880
+ "application/json": components["schemas"]["CreateForkRequest"];
36881
+ };
36882
+ };
36883
+ responses: {
36884
+ /** @description Successful Response */
36885
+ 201: {
36886
+ headers: {
36887
+ [name: string]: unknown;
36888
+ };
36889
+ content: {
36890
+ "application/json": components["schemas"]["ForkResponse"];
36891
+ };
36892
+ };
36893
+ /** @description Validation error */
36894
+ 422: {
36895
+ headers: {
36896
+ [name: string]: unknown;
36897
+ };
36898
+ content?: never;
36899
+ };
36900
+ /** @description Rate limited */
36901
+ 429: {
36902
+ headers: {
36903
+ [name: string]: unknown;
36904
+ };
36905
+ content?: never;
36906
+ };
36907
+ };
36908
+ };
36909
+ "delete-fork": {
36910
+ parameters: {
36911
+ query?: never;
36912
+ header?: never;
36913
+ path: {
36914
+ workspace_id: string;
36915
+ };
36916
+ cookie?: never;
36917
+ };
36918
+ requestBody?: never;
36919
+ responses: {
36920
+ /** @description Successful Response */
36921
+ 204: {
36922
+ headers: {
36923
+ [name: string]: unknown;
36924
+ };
36925
+ content?: never;
36926
+ };
36927
+ /** @description Validation error */
36928
+ 422: {
36929
+ headers: {
36930
+ [name: string]: unknown;
36931
+ };
36932
+ content?: never;
36933
+ };
36934
+ /** @description Rate limited */
36935
+ 429: {
36936
+ headers: {
36937
+ [name: string]: unknown;
36938
+ };
36939
+ content?: never;
36940
+ };
36941
+ };
36942
+ };
36483
36943
  "list-functions": {
36484
36944
  parameters: {
36485
36945
  query?: never;
@@ -38020,6 +38480,46 @@ export interface operations {
38020
38480
  };
38021
38481
  };
38022
38482
  };
38483
+ "execute-workspace-query": {
38484
+ parameters: {
38485
+ query?: never;
38486
+ header?: never;
38487
+ path: {
38488
+ workspace_id: string;
38489
+ };
38490
+ cookie?: never;
38491
+ };
38492
+ requestBody: {
38493
+ content: {
38494
+ "application/json": components["schemas"]["ExecuteQueryRequest"];
38495
+ };
38496
+ };
38497
+ responses: {
38498
+ /** @description Successful Response */
38499
+ 200: {
38500
+ headers: {
38501
+ [name: string]: unknown;
38502
+ };
38503
+ content: {
38504
+ "application/json": components["schemas"]["QueryResultResponse"];
38505
+ };
38506
+ };
38507
+ /** @description Validation error */
38508
+ 422: {
38509
+ headers: {
38510
+ [name: string]: unknown;
38511
+ };
38512
+ content?: never;
38513
+ };
38514
+ /** @description Rate limited */
38515
+ 429: {
38516
+ headers: {
38517
+ [name: string]: unknown;
38518
+ };
38519
+ content?: never;
38520
+ };
38521
+ };
38522
+ };
38023
38523
  list_anomalies_ranked_v1__workspace_id__m42_anomalies_ranked_get: {
38024
38524
  parameters: {
38025
38525
  query?: {
@@ -41192,6 +41692,213 @@ export interface operations {
41192
41692
  };
41193
41693
  };
41194
41694
  };
41695
+ "list-query-tools": {
41696
+ parameters: {
41697
+ query?: {
41698
+ limit?: number;
41699
+ continuation_token?: number;
41700
+ };
41701
+ header?: never;
41702
+ path: {
41703
+ workspace_id: string;
41704
+ };
41705
+ cookie?: never;
41706
+ };
41707
+ requestBody?: never;
41708
+ responses: {
41709
+ /** @description Successful Response */
41710
+ 200: {
41711
+ headers: {
41712
+ [name: string]: unknown;
41713
+ };
41714
+ content: {
41715
+ "application/json": components["schemas"]["PaginatedResponse_ToolResponse_"];
41716
+ };
41717
+ };
41718
+ /** @description Validation Error */
41719
+ 422: {
41720
+ headers: {
41721
+ [name: string]: unknown;
41722
+ };
41723
+ content: {
41724
+ "application/json": components["schemas"]["HTTPValidationError"];
41725
+ };
41726
+ };
41727
+ /** @description Rate limited */
41728
+ 429: {
41729
+ headers: {
41730
+ [name: string]: unknown;
41731
+ };
41732
+ content?: never;
41733
+ };
41734
+ };
41735
+ };
41736
+ "create-query-tool": {
41737
+ parameters: {
41738
+ query?: never;
41739
+ header?: never;
41740
+ path: {
41741
+ workspace_id: string;
41742
+ };
41743
+ cookie?: never;
41744
+ };
41745
+ requestBody: {
41746
+ content: {
41747
+ "application/json": components["schemas"]["CreateToolRequest"];
41748
+ };
41749
+ };
41750
+ responses: {
41751
+ /** @description Successful Response */
41752
+ 201: {
41753
+ headers: {
41754
+ [name: string]: unknown;
41755
+ };
41756
+ content: {
41757
+ "application/json": components["schemas"]["ToolResponse"];
41758
+ };
41759
+ };
41760
+ /** @description Validation error */
41761
+ 422: {
41762
+ headers: {
41763
+ [name: string]: unknown;
41764
+ };
41765
+ content?: never;
41766
+ };
41767
+ /** @description Rate limited */
41768
+ 429: {
41769
+ headers: {
41770
+ [name: string]: unknown;
41771
+ };
41772
+ content?: never;
41773
+ };
41774
+ };
41775
+ };
41776
+ "delete-query-tool": {
41777
+ parameters: {
41778
+ query?: never;
41779
+ header?: never;
41780
+ path: {
41781
+ workspace_id: string;
41782
+ tool_id: string;
41783
+ };
41784
+ cookie?: never;
41785
+ };
41786
+ requestBody?: never;
41787
+ responses: {
41788
+ /** @description Successful Response */
41789
+ 204: {
41790
+ headers: {
41791
+ [name: string]: unknown;
41792
+ };
41793
+ content?: never;
41794
+ };
41795
+ /** @description Validation Error */
41796
+ 422: {
41797
+ headers: {
41798
+ [name: string]: unknown;
41799
+ };
41800
+ content: {
41801
+ "application/json": components["schemas"]["HTTPValidationError"];
41802
+ };
41803
+ };
41804
+ /** @description Rate limited */
41805
+ 429: {
41806
+ headers: {
41807
+ [name: string]: unknown;
41808
+ };
41809
+ content?: never;
41810
+ };
41811
+ };
41812
+ };
41813
+ "update-query-tool": {
41814
+ parameters: {
41815
+ query?: never;
41816
+ header?: never;
41817
+ path: {
41818
+ workspace_id: string;
41819
+ tool_id: string;
41820
+ };
41821
+ cookie?: never;
41822
+ };
41823
+ requestBody: {
41824
+ content: {
41825
+ "application/json": components["schemas"]["UpdateToolRequest"];
41826
+ };
41827
+ };
41828
+ responses: {
41829
+ /** @description Successful Response */
41830
+ 200: {
41831
+ headers: {
41832
+ [name: string]: unknown;
41833
+ };
41834
+ content: {
41835
+ "application/json": components["schemas"]["ToolResponse"];
41836
+ };
41837
+ };
41838
+ /** @description Tool not found */
41839
+ 404: {
41840
+ headers: {
41841
+ [name: string]: unknown;
41842
+ };
41843
+ content?: never;
41844
+ };
41845
+ /** @description Validation error */
41846
+ 422: {
41847
+ headers: {
41848
+ [name: string]: unknown;
41849
+ };
41850
+ content?: never;
41851
+ };
41852
+ /** @description Rate limited */
41853
+ 429: {
41854
+ headers: {
41855
+ [name: string]: unknown;
41856
+ };
41857
+ content?: never;
41858
+ };
41859
+ };
41860
+ };
41861
+ "test-query-tool": {
41862
+ parameters: {
41863
+ query?: never;
41864
+ header?: never;
41865
+ path: {
41866
+ workspace_id: string;
41867
+ tool_id: string;
41868
+ };
41869
+ cookie?: never;
41870
+ };
41871
+ requestBody: {
41872
+ content: {
41873
+ "application/json": components["schemas"]["TestToolRequest"];
41874
+ };
41875
+ };
41876
+ responses: {
41877
+ /** @description Successful Response */
41878
+ 200: {
41879
+ headers: {
41880
+ [name: string]: unknown;
41881
+ };
41882
+ content: {
41883
+ "application/json": components["schemas"]["QueryResultResponse"];
41884
+ };
41885
+ };
41886
+ /** @description Validation error */
41887
+ 422: {
41888
+ headers: {
41889
+ [name: string]: unknown;
41890
+ };
41891
+ content?: never;
41892
+ };
41893
+ /** @description Rate limited */
41894
+ 429: {
41895
+ headers: {
41896
+ [name: string]: unknown;
41897
+ };
41898
+ content?: never;
41899
+ };
41900
+ };
41901
+ };
41195
41902
  query_table_v1__workspace_id__query__schema___table__get: {
41196
41903
  parameters: {
41197
41904
  query?: {
@@ -44765,6 +45472,81 @@ export interface operations {
44765
45472
  };
44766
45473
  };
44767
45474
  };
45475
+ "list-simulation-cases": {
45476
+ parameters: {
45477
+ query?: {
45478
+ service_id?: string | null;
45479
+ tags?: string[] | null;
45480
+ limit?: number;
45481
+ continuation_token?: number;
45482
+ };
45483
+ header?: never;
45484
+ path: {
45485
+ workspace_id: string;
45486
+ };
45487
+ cookie?: never;
45488
+ };
45489
+ requestBody?: never;
45490
+ responses: {
45491
+ /** @description Successful Response */
45492
+ 200: {
45493
+ headers: {
45494
+ [name: string]: unknown;
45495
+ };
45496
+ content: {
45497
+ "application/json": components["schemas"]["PaginatedResponse_SimulationCaseResponse_"];
45498
+ };
45499
+ };
45500
+ /** @description Validation Error */
45501
+ 422: {
45502
+ headers: {
45503
+ [name: string]: unknown;
45504
+ };
45505
+ content: {
45506
+ "application/json": components["schemas"]["HTTPValidationError"];
45507
+ };
45508
+ };
45509
+ };
45510
+ };
45511
+ "get-simulation-case": {
45512
+ parameters: {
45513
+ query?: never;
45514
+ header?: never;
45515
+ path: {
45516
+ workspace_id: string;
45517
+ case_id: string;
45518
+ };
45519
+ cookie?: never;
45520
+ };
45521
+ requestBody?: never;
45522
+ responses: {
45523
+ /** @description Successful Response */
45524
+ 200: {
45525
+ headers: {
45526
+ [name: string]: unknown;
45527
+ };
45528
+ content: {
45529
+ "application/json": components["schemas"]["SimulationCaseResponse"];
45530
+ };
45531
+ };
45532
+ /** @description Simulation case not found */
45533
+ 404: {
45534
+ headers: {
45535
+ [name: string]: unknown;
45536
+ };
45537
+ content?: never;
45538
+ };
45539
+ /** @description Validation Error */
45540
+ 422: {
45541
+ headers: {
45542
+ [name: string]: unknown;
45543
+ };
45544
+ content: {
45545
+ "application/json": components["schemas"]["HTTPValidationError"];
45546
+ };
45547
+ };
45548
+ };
45549
+ };
44768
45550
  "run-simulation-case": {
44769
45551
  parameters: {
44770
45552
  query?: never;
@@ -47680,7 +48462,74 @@ export interface operations {
47680
48462
  };
47681
48463
  content?: never;
47682
48464
  };
47683
- /** @description Use case has active phone assignments. */
48465
+ /** @description Use case is bound to a workspace, or still has active phone assignments. */
48466
+ 409: {
48467
+ headers: {
48468
+ [name: string]: unknown;
48469
+ };
48470
+ content?: never;
48471
+ };
48472
+ /** @description Validation Error */
48473
+ 422: {
48474
+ headers: {
48475
+ [name: string]: unknown;
48476
+ };
48477
+ content: {
48478
+ "application/json": components["schemas"]["HTTPValidationError"];
48479
+ };
48480
+ };
48481
+ /** @description Channel manager unavailable. */
48482
+ 502: {
48483
+ headers: {
48484
+ [name: string]: unknown;
48485
+ };
48486
+ content?: never;
48487
+ };
48488
+ /** @description Channel manager timed out. */
48489
+ 504: {
48490
+ headers: {
48491
+ [name: string]: unknown;
48492
+ };
48493
+ content?: never;
48494
+ };
48495
+ };
48496
+ };
48497
+ "bind-use-case": {
48498
+ parameters: {
48499
+ query?: never;
48500
+ header?: never;
48501
+ path: {
48502
+ workspace_id: string;
48503
+ use_case_id: string;
48504
+ };
48505
+ cookie?: never;
48506
+ };
48507
+ requestBody?: never;
48508
+ responses: {
48509
+ /** @description Successful Response */
48510
+ 201: {
48511
+ headers: {
48512
+ [name: string]: unknown;
48513
+ };
48514
+ content: {
48515
+ "application/json": components["schemas"]["BindingResponse"];
48516
+ };
48517
+ };
48518
+ /** @description Insufficient permissions. */
48519
+ 403: {
48520
+ headers: {
48521
+ [name: string]: unknown;
48522
+ };
48523
+ content?: never;
48524
+ };
48525
+ /** @description Use case not found. */
48526
+ 404: {
48527
+ headers: {
48528
+ [name: string]: unknown;
48529
+ };
48530
+ content?: never;
48531
+ };
48532
+ /** @description Use case is already bound to a different workspace. */
47684
48533
  409: {
47685
48534
  headers: {
47686
48535
  [name: string]: unknown;
@@ -47712,6 +48561,50 @@ export interface operations {
47712
48561
  };
47713
48562
  };
47714
48563
  };
48564
+ "unbind-use-case": {
48565
+ parameters: {
48566
+ query?: never;
48567
+ header?: never;
48568
+ path: {
48569
+ workspace_id: string;
48570
+ use_case_id: string;
48571
+ };
48572
+ cookie?: never;
48573
+ };
48574
+ requestBody?: never;
48575
+ responses: {
48576
+ /** @description Successful Response */
48577
+ 204: {
48578
+ headers: {
48579
+ [name: string]: unknown;
48580
+ };
48581
+ content?: never;
48582
+ };
48583
+ /** @description Insufficient permissions. */
48584
+ 403: {
48585
+ headers: {
48586
+ [name: string]: unknown;
48587
+ };
48588
+ content?: never;
48589
+ };
48590
+ /** @description Use case is not bound to this workspace. */
48591
+ 404: {
48592
+ headers: {
48593
+ [name: string]: unknown;
48594
+ };
48595
+ content?: never;
48596
+ };
48597
+ /** @description Validation Error */
48598
+ 422: {
48599
+ headers: {
48600
+ [name: string]: unknown;
48601
+ };
48602
+ content: {
48603
+ "application/json": components["schemas"]["HTTPValidationError"];
48604
+ };
48605
+ };
48606
+ };
48607
+ };
47715
48608
  "list-voicemails": {
47716
48609
  parameters: {
47717
48610
  query?: {