cyberdesk 2.2.7 → 2.2.9

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.
@@ -203,6 +203,114 @@ export type MachineUpdate = {
203
203
  [key: string]: string;
204
204
  } | null;
205
205
  };
206
+ /**
207
+ * Create a model configuration.
208
+ *
209
+ * `api_key` is the raw secret material; it will be stored in Basis Theory and only the alias is persisted.
210
+ * For providers that Cyberdesk does not provide keys for, `api_key` is required.
211
+ */
212
+ export type ModelConfigurationCreate = {
213
+ name: string;
214
+ description?: string | null;
215
+ /**
216
+ * LangChain provider name (e.g. 'anthropic', 'openai').
217
+ */
218
+ provider: string;
219
+ /**
220
+ * Provider model identifier (e.g. 'claude-sonnet-4-5-20250929').
221
+ */
222
+ model: string;
223
+ temperature?: number | null;
224
+ max_tokens?: number | null;
225
+ timeout_seconds?: number | null;
226
+ max_retries?: number | null;
227
+ /**
228
+ * Anthropic thinking budget (optional).
229
+ */
230
+ thinking_budget?: number | null;
231
+ /**
232
+ * Provider-specific kwargs passed through to LangChain.
233
+ */
234
+ additional_params?: {
235
+ [key: string]: unknown;
236
+ } | null;
237
+ /**
238
+ * True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents).
239
+ */
240
+ is_computer_use_model?: boolean;
241
+ /**
242
+ * Raw API key (stored in Basis Theory; never persisted directly).
243
+ */
244
+ api_key?: string | null;
245
+ };
246
+ /**
247
+ * API response schema for model configurations.
248
+ */
249
+ export type ModelConfigurationResponse = {
250
+ name: string;
251
+ description?: string | null;
252
+ /**
253
+ * LangChain provider name (e.g. 'anthropic', 'openai').
254
+ */
255
+ provider: string;
256
+ /**
257
+ * Provider model identifier (e.g. 'claude-sonnet-4-5-20250929').
258
+ */
259
+ model: string;
260
+ temperature?: number | null;
261
+ max_tokens?: number | null;
262
+ timeout_seconds?: number | null;
263
+ max_retries?: number | null;
264
+ /**
265
+ * Anthropic thinking budget (optional).
266
+ */
267
+ thinking_budget?: number | null;
268
+ /**
269
+ * Provider-specific kwargs passed through to LangChain.
270
+ */
271
+ additional_params?: {
272
+ [key: string]: unknown;
273
+ } | null;
274
+ /**
275
+ * True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents).
276
+ */
277
+ is_computer_use_model?: boolean;
278
+ id: string;
279
+ organization_id?: string | null;
280
+ /**
281
+ * Basis Theory token id (alias) used to resolve api_key at runtime.
282
+ */
283
+ api_key_alias?: string | null;
284
+ is_system_default: boolean;
285
+ created_at: string;
286
+ updated_at: string;
287
+ };
288
+ /**
289
+ * Update a model configuration (organization-owned only).
290
+ */
291
+ export type ModelConfigurationUpdate = {
292
+ name?: string | null;
293
+ description?: string | null;
294
+ provider?: string | null;
295
+ model?: string | null;
296
+ /**
297
+ * Raw API key; if provided, replaces the stored alias.
298
+ */
299
+ api_key?: string | null;
300
+ /**
301
+ * If true, clears any stored api_key_alias (reverts to Cyberdesk-provided key if supported).
302
+ */
303
+ clear_api_key?: boolean | null;
304
+ temperature?: number | null;
305
+ max_tokens?: number | null;
306
+ timeout_seconds?: number | null;
307
+ max_retries?: number | null;
308
+ thinking_budget?: number | null;
309
+ additional_params?: {
310
+ [key: string]: unknown;
311
+ } | null;
312
+ is_computer_use_model?: boolean | null;
313
+ };
206
314
  export type MouseClickRequest = {
207
315
  x?: number | null;
208
316
  y?: number | null;
@@ -822,6 +930,30 @@ export type WorkflowCreate = {
822
930
  * Send webhook on run completion
823
931
  */
824
932
  is_webhooks_enabled?: boolean;
933
+ /**
934
+ * Optional workflow-level model configuration metadata (main agent + fallbacks).
935
+ */
936
+ model_metadata?: WorkflowModelMetadata | null;
937
+ };
938
+ /**
939
+ * JSONB-backed workflow model configuration metadata.
940
+ *
941
+ * Stored on the Workflow row as `model_metadata` to avoid adding many FK columns.
942
+ * All fields are optional; when missing/null, the system falls back to Cyberdesk defaults.
943
+ */
944
+ export type WorkflowModelMetadata = {
945
+ /**
946
+ * ModelConfiguration.id used for the main agent. Null → Cyberdesk default.
947
+ */
948
+ main_agent_model_id?: string | null;
949
+ /**
950
+ * ModelConfiguration.id used as fallback 1 (global across agents).
951
+ */
952
+ fallback_model_1_id?: string | null;
953
+ /**
954
+ * ModelConfiguration.id used as fallback 2 (global across agents).
955
+ */
956
+ fallback_model_2_id?: string | null;
825
957
  };
826
958
  /**
827
959
  * Workflow response schema
@@ -841,6 +973,10 @@ export type WorkflowResponse = {
841
973
  * Send webhook on run completion
842
974
  */
843
975
  is_webhooks_enabled?: boolean;
976
+ /**
977
+ * Optional workflow-level model configuration metadata (main agent + fallbacks).
978
+ */
979
+ model_metadata?: WorkflowModelMetadata | null;
844
980
  id: string;
845
981
  user_id?: string | null;
846
982
  organization_id?: string | null;
@@ -869,6 +1005,10 @@ export type WorkflowUpdate = {
869
1005
  * Send webhook on run completion
870
1006
  */
871
1007
  is_webhooks_enabled?: boolean | null;
1008
+ /**
1009
+ * Optional workflow-level model configuration metadata (main agent + fallbacks).
1010
+ */
1011
+ model_metadata?: WorkflowModelMetadata | null;
872
1012
  };
873
1013
  export type HealthCheckV1HealthGetData = {
874
1014
  body?: never;
@@ -934,6 +1074,12 @@ export type ListMachinesV1MachinesGetResponses = {
934
1074
  export type ListMachinesV1MachinesGetResponse = ListMachinesV1MachinesGetResponses[keyof ListMachinesV1MachinesGetResponses];
935
1075
  export type CreateMachineV1MachinesPostData = {
936
1076
  body: MachineCreate;
1077
+ headers?: {
1078
+ /**
1079
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1080
+ */
1081
+ 'Idempotency-Key'?: string;
1082
+ };
937
1083
  path?: never;
938
1084
  query?: never;
939
1085
  url: '/v1/machines';
@@ -954,6 +1100,12 @@ export type CreateMachineV1MachinesPostResponses = {
954
1100
  export type CreateMachineV1MachinesPostResponse = CreateMachineV1MachinesPostResponses[keyof CreateMachineV1MachinesPostResponses];
955
1101
  export type DeleteMachineV1MachinesMachineIdDeleteData = {
956
1102
  body?: never;
1103
+ headers?: {
1104
+ /**
1105
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1106
+ */
1107
+ 'Idempotency-Key'?: string;
1108
+ };
957
1109
  path: {
958
1110
  machine_id: string;
959
1111
  };
@@ -998,6 +1150,12 @@ export type GetMachineV1MachinesMachineIdGetResponses = {
998
1150
  export type GetMachineV1MachinesMachineIdGetResponse = GetMachineV1MachinesMachineIdGetResponses[keyof GetMachineV1MachinesMachineIdGetResponses];
999
1151
  export type UpdateMachineV1MachinesMachineIdPatchData = {
1000
1152
  body: MachineUpdate;
1153
+ headers?: {
1154
+ /**
1155
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1156
+ */
1157
+ 'Idempotency-Key'?: string;
1158
+ };
1001
1159
  path: {
1002
1160
  machine_id: string;
1003
1161
  };
@@ -1042,6 +1200,12 @@ export type GetMachinePoolsV1MachinesMachineIdPoolsGetResponses = {
1042
1200
  export type GetMachinePoolsV1MachinesMachineIdPoolsGetResponse = GetMachinePoolsV1MachinesMachineIdPoolsGetResponses[keyof GetMachinePoolsV1MachinesMachineIdPoolsGetResponses];
1043
1201
  export type UpdateMachinePoolsV1MachinesMachineIdPoolsPutData = {
1044
1202
  body: MachinePoolUpdate;
1203
+ headers?: {
1204
+ /**
1205
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1206
+ */
1207
+ 'Idempotency-Key'?: string;
1208
+ };
1045
1209
  path: {
1046
1210
  machine_id: string;
1047
1211
  };
@@ -1087,6 +1251,12 @@ export type ListPoolsV1PoolsGetResponses = {
1087
1251
  export type ListPoolsV1PoolsGetResponse = ListPoolsV1PoolsGetResponses[keyof ListPoolsV1PoolsGetResponses];
1088
1252
  export type CreatePoolV1PoolsPostData = {
1089
1253
  body: PoolCreate;
1254
+ headers?: {
1255
+ /**
1256
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1257
+ */
1258
+ 'Idempotency-Key'?: string;
1259
+ };
1090
1260
  path?: never;
1091
1261
  query?: never;
1092
1262
  url: '/v1/pools';
@@ -1107,6 +1277,12 @@ export type CreatePoolV1PoolsPostResponses = {
1107
1277
  export type CreatePoolV1PoolsPostResponse = CreatePoolV1PoolsPostResponses[keyof CreatePoolV1PoolsPostResponses];
1108
1278
  export type DeletePoolV1PoolsPoolIdDeleteData = {
1109
1279
  body?: never;
1280
+ headers?: {
1281
+ /**
1282
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1283
+ */
1284
+ 'Idempotency-Key'?: string;
1285
+ };
1110
1286
  path: {
1111
1287
  pool_id: string;
1112
1288
  };
@@ -1156,6 +1332,12 @@ export type GetPoolV1PoolsPoolIdGetResponses = {
1156
1332
  export type GetPoolV1PoolsPoolIdGetResponse = GetPoolV1PoolsPoolIdGetResponses[keyof GetPoolV1PoolsPoolIdGetResponses];
1157
1333
  export type UpdatePoolV1PoolsPoolIdPatchData = {
1158
1334
  body: PoolUpdate;
1335
+ headers?: {
1336
+ /**
1337
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1338
+ */
1339
+ 'Idempotency-Key'?: string;
1340
+ };
1159
1341
  path: {
1160
1342
  pool_id: string;
1161
1343
  };
@@ -1178,6 +1360,12 @@ export type UpdatePoolV1PoolsPoolIdPatchResponses = {
1178
1360
  export type UpdatePoolV1PoolsPoolIdPatchResponse = UpdatePoolV1PoolsPoolIdPatchResponses[keyof UpdatePoolV1PoolsPoolIdPatchResponses];
1179
1361
  export type RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData = {
1180
1362
  body: MachinePoolAssignment;
1363
+ headers?: {
1364
+ /**
1365
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1366
+ */
1367
+ 'Idempotency-Key'?: string;
1368
+ };
1181
1369
  path: {
1182
1370
  pool_id: string;
1183
1371
  };
@@ -1200,6 +1388,12 @@ export type RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteResponses = {
1200
1388
  export type RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteResponse = RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteResponses[keyof RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteResponses];
1201
1389
  export type AddMachinesToPoolV1PoolsPoolIdMachinesPostData = {
1202
1390
  body: MachinePoolAssignment;
1391
+ headers?: {
1392
+ /**
1393
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1394
+ */
1395
+ 'Idempotency-Key'?: string;
1396
+ };
1203
1397
  path: {
1204
1398
  pool_id: string;
1205
1399
  };
@@ -1261,6 +1455,12 @@ export type ListWorkflowsV1WorkflowsGetResponses = {
1261
1455
  export type ListWorkflowsV1WorkflowsGetResponse = ListWorkflowsV1WorkflowsGetResponses[keyof ListWorkflowsV1WorkflowsGetResponses];
1262
1456
  export type CreateWorkflowV1WorkflowsPostData = {
1263
1457
  body: WorkflowCreate;
1458
+ headers?: {
1459
+ /**
1460
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1461
+ */
1462
+ 'Idempotency-Key'?: string;
1463
+ };
1264
1464
  path?: never;
1265
1465
  query?: never;
1266
1466
  url: '/v1/workflows';
@@ -1281,6 +1481,12 @@ export type CreateWorkflowV1WorkflowsPostResponses = {
1281
1481
  export type CreateWorkflowV1WorkflowsPostResponse = CreateWorkflowV1WorkflowsPostResponses[keyof CreateWorkflowV1WorkflowsPostResponses];
1282
1482
  export type DeleteWorkflowV1WorkflowsWorkflowIdDeleteData = {
1283
1483
  body?: never;
1484
+ headers?: {
1485
+ /**
1486
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1487
+ */
1488
+ 'Idempotency-Key'?: string;
1489
+ };
1284
1490
  path: {
1285
1491
  workflow_id: string;
1286
1492
  };
@@ -1325,6 +1531,12 @@ export type GetWorkflowV1WorkflowsWorkflowIdGetResponses = {
1325
1531
  export type GetWorkflowV1WorkflowsWorkflowIdGetResponse = GetWorkflowV1WorkflowsWorkflowIdGetResponses[keyof GetWorkflowV1WorkflowsWorkflowIdGetResponses];
1326
1532
  export type UpdateWorkflowV1WorkflowsWorkflowIdPatchData = {
1327
1533
  body: WorkflowUpdate;
1534
+ headers?: {
1535
+ /**
1536
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1537
+ */
1538
+ 'Idempotency-Key'?: string;
1539
+ };
1328
1540
  path: {
1329
1541
  workflow_id: string;
1330
1542
  };
@@ -1369,6 +1581,123 @@ export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses = {
1369
1581
  }>;
1370
1582
  };
1371
1583
  export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponse = GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses[keyof GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses];
1584
+ export type ListModelConfigurationsV1ModelConfigurationsGetData = {
1585
+ body?: never;
1586
+ path?: never;
1587
+ query?: never;
1588
+ url: '/v1/model-configurations';
1589
+ };
1590
+ export type ListModelConfigurationsV1ModelConfigurationsGetResponses = {
1591
+ /**
1592
+ * Successful Response
1593
+ */
1594
+ 200: Array<ModelConfigurationResponse>;
1595
+ };
1596
+ export type ListModelConfigurationsV1ModelConfigurationsGetResponse = ListModelConfigurationsV1ModelConfigurationsGetResponses[keyof ListModelConfigurationsV1ModelConfigurationsGetResponses];
1597
+ export type CreateModelConfigurationV1ModelConfigurationsPostData = {
1598
+ body: ModelConfigurationCreate;
1599
+ headers?: {
1600
+ /**
1601
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1602
+ */
1603
+ 'Idempotency-Key'?: string;
1604
+ };
1605
+ path?: never;
1606
+ query?: never;
1607
+ url: '/v1/model-configurations';
1608
+ };
1609
+ export type CreateModelConfigurationV1ModelConfigurationsPostErrors = {
1610
+ /**
1611
+ * Validation Error
1612
+ */
1613
+ 422: HttpValidationError;
1614
+ };
1615
+ export type CreateModelConfigurationV1ModelConfigurationsPostError = CreateModelConfigurationV1ModelConfigurationsPostErrors[keyof CreateModelConfigurationV1ModelConfigurationsPostErrors];
1616
+ export type CreateModelConfigurationV1ModelConfigurationsPostResponses = {
1617
+ /**
1618
+ * Successful Response
1619
+ */
1620
+ 201: ModelConfigurationResponse;
1621
+ };
1622
+ export type CreateModelConfigurationV1ModelConfigurationsPostResponse = CreateModelConfigurationV1ModelConfigurationsPostResponses[keyof CreateModelConfigurationV1ModelConfigurationsPostResponses];
1623
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteData = {
1624
+ body?: never;
1625
+ headers?: {
1626
+ /**
1627
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1628
+ */
1629
+ 'Idempotency-Key'?: string;
1630
+ };
1631
+ path: {
1632
+ model_configuration_id: string;
1633
+ };
1634
+ query?: never;
1635
+ url: '/v1/model-configurations/{model_configuration_id}';
1636
+ };
1637
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteErrors = {
1638
+ /**
1639
+ * Validation Error
1640
+ */
1641
+ 422: HttpValidationError;
1642
+ };
1643
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteError = DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteErrors[keyof DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteErrors];
1644
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteResponses = {
1645
+ /**
1646
+ * Successful Response
1647
+ */
1648
+ 204: void;
1649
+ };
1650
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteResponse = DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteResponses[keyof DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteResponses];
1651
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetData = {
1652
+ body?: never;
1653
+ path: {
1654
+ model_configuration_id: string;
1655
+ };
1656
+ query?: never;
1657
+ url: '/v1/model-configurations/{model_configuration_id}';
1658
+ };
1659
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetErrors = {
1660
+ /**
1661
+ * Validation Error
1662
+ */
1663
+ 422: HttpValidationError;
1664
+ };
1665
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetError = GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetErrors[keyof GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetErrors];
1666
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetResponses = {
1667
+ /**
1668
+ * Successful Response
1669
+ */
1670
+ 200: ModelConfigurationResponse;
1671
+ };
1672
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetResponse = GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetResponses[keyof GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetResponses];
1673
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchData = {
1674
+ body: ModelConfigurationUpdate;
1675
+ headers?: {
1676
+ /**
1677
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1678
+ */
1679
+ 'Idempotency-Key'?: string;
1680
+ };
1681
+ path: {
1682
+ model_configuration_id: string;
1683
+ };
1684
+ query?: never;
1685
+ url: '/v1/model-configurations/{model_configuration_id}';
1686
+ };
1687
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchErrors = {
1688
+ /**
1689
+ * Validation Error
1690
+ */
1691
+ 422: HttpValidationError;
1692
+ };
1693
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchError = UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchErrors[keyof UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchErrors];
1694
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchResponses = {
1695
+ /**
1696
+ * Successful Response
1697
+ */
1698
+ 200: ModelConfigurationResponse;
1699
+ };
1700
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchResponse = UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchResponses[keyof UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchResponses];
1372
1701
  export type ListRunsV1RunsGetData = {
1373
1702
  body?: never;
1374
1703
  path?: never;
@@ -1422,6 +1751,12 @@ export type ListRunsV1RunsGetResponses = {
1422
1751
  export type ListRunsV1RunsGetResponse = ListRunsV1RunsGetResponses[keyof ListRunsV1RunsGetResponses];
1423
1752
  export type CreateRunV1RunsPostData = {
1424
1753
  body: RunCreate;
1754
+ headers?: {
1755
+ /**
1756
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1757
+ */
1758
+ 'Idempotency-Key'?: string;
1759
+ };
1425
1760
  path?: never;
1426
1761
  query?: never;
1427
1762
  url: '/v1/runs';
@@ -1442,6 +1777,12 @@ export type CreateRunV1RunsPostResponses = {
1442
1777
  export type CreateRunV1RunsPostResponse = CreateRunV1RunsPostResponses[keyof CreateRunV1RunsPostResponses];
1443
1778
  export type DeleteRunV1RunsRunIdDeleteData = {
1444
1779
  body?: never;
1780
+ headers?: {
1781
+ /**
1782
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1783
+ */
1784
+ 'Idempotency-Key'?: string;
1785
+ };
1445
1786
  path: {
1446
1787
  run_id: string;
1447
1788
  };
@@ -1486,6 +1827,12 @@ export type GetRunV1RunsRunIdGetResponses = {
1486
1827
  export type GetRunV1RunsRunIdGetResponse = GetRunV1RunsRunIdGetResponses[keyof GetRunV1RunsRunIdGetResponses];
1487
1828
  export type UpdateRunV1RunsRunIdPatchData = {
1488
1829
  body: RunUpdate;
1830
+ headers?: {
1831
+ /**
1832
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1833
+ */
1834
+ 'Idempotency-Key'?: string;
1835
+ };
1489
1836
  path: {
1490
1837
  run_id: string;
1491
1838
  };
@@ -1508,6 +1855,12 @@ export type UpdateRunV1RunsRunIdPatchResponses = {
1508
1855
  export type UpdateRunV1RunsRunIdPatchResponse = UpdateRunV1RunsRunIdPatchResponses[keyof UpdateRunV1RunsRunIdPatchResponses];
1509
1856
  export type CreateRunChainV1RunsChainPostData = {
1510
1857
  body: WorkflowChainCreate;
1858
+ headers?: {
1859
+ /**
1860
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1861
+ */
1862
+ 'Idempotency-Key'?: string;
1863
+ };
1511
1864
  path?: never;
1512
1865
  query?: never;
1513
1866
  url: '/v1/runs/chain';
@@ -1528,6 +1881,12 @@ export type CreateRunChainV1RunsChainPostResponses = {
1528
1881
  export type CreateRunChainV1RunsChainPostResponse = CreateRunChainV1RunsChainPostResponses[keyof CreateRunChainV1RunsChainPostResponses];
1529
1882
  export type BulkCreateRunsV1RunsBulkPostData = {
1530
1883
  body: RunBulkCreate;
1884
+ headers?: {
1885
+ /**
1886
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1887
+ */
1888
+ 'Idempotency-Key'?: string;
1889
+ };
1531
1890
  path?: never;
1532
1891
  query?: never;
1533
1892
  url: '/v1/runs/bulk';
@@ -1548,6 +1907,12 @@ export type BulkCreateRunsV1RunsBulkPostResponses = {
1548
1907
  export type BulkCreateRunsV1RunsBulkPostResponse = BulkCreateRunsV1RunsBulkPostResponses[keyof BulkCreateRunsV1RunsBulkPostResponses];
1549
1908
  export type RetryRunV1RunsRunIdRetryPostData = {
1550
1909
  body: RunRetry;
1910
+ headers?: {
1911
+ /**
1912
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1913
+ */
1914
+ 'Idempotency-Key'?: string;
1915
+ };
1551
1916
  path: {
1552
1917
  run_id: string;
1553
1918
  };
@@ -1601,6 +1966,12 @@ export type ListRunAttachmentsV1RunAttachmentsGetResponses = {
1601
1966
  export type ListRunAttachmentsV1RunAttachmentsGetResponse = ListRunAttachmentsV1RunAttachmentsGetResponses[keyof ListRunAttachmentsV1RunAttachmentsGetResponses];
1602
1967
  export type CreateRunAttachmentV1RunAttachmentsPostData = {
1603
1968
  body: RunAttachmentCreate;
1969
+ headers?: {
1970
+ /**
1971
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1972
+ */
1973
+ 'Idempotency-Key'?: string;
1974
+ };
1604
1975
  path?: never;
1605
1976
  query?: never;
1606
1977
  url: '/v1/run-attachments';
@@ -1621,6 +1992,12 @@ export type CreateRunAttachmentV1RunAttachmentsPostResponses = {
1621
1992
  export type CreateRunAttachmentV1RunAttachmentsPostResponse = CreateRunAttachmentV1RunAttachmentsPostResponses[keyof CreateRunAttachmentV1RunAttachmentsPostResponses];
1622
1993
  export type DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData = {
1623
1994
  body?: never;
1995
+ headers?: {
1996
+ /**
1997
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1998
+ */
1999
+ 'Idempotency-Key'?: string;
2000
+ };
1624
2001
  path: {
1625
2002
  attachment_id: string;
1626
2003
  };
@@ -1665,6 +2042,12 @@ export type GetRunAttachmentV1RunAttachmentsAttachmentIdGetResponses = {
1665
2042
  export type GetRunAttachmentV1RunAttachmentsAttachmentIdGetResponse = GetRunAttachmentV1RunAttachmentsAttachmentIdGetResponses[keyof GetRunAttachmentV1RunAttachmentsAttachmentIdGetResponses];
1666
2043
  export type UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData = {
1667
2044
  body: RunAttachmentUpdate;
2045
+ headers?: {
2046
+ /**
2047
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2048
+ */
2049
+ 'Idempotency-Key'?: string;
2050
+ };
1668
2051
  path: {
1669
2052
  attachment_id: string;
1670
2053
  };
@@ -1767,6 +2150,12 @@ export type ListConnectionsV1ConnectionsGetResponses = {
1767
2150
  export type ListConnectionsV1ConnectionsGetResponse = ListConnectionsV1ConnectionsGetResponses[keyof ListConnectionsV1ConnectionsGetResponses];
1768
2151
  export type CreateConnectionV1ConnectionsPostData = {
1769
2152
  body: ConnectionCreate;
2153
+ headers?: {
2154
+ /**
2155
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2156
+ */
2157
+ 'Idempotency-Key'?: string;
2158
+ };
1770
2159
  path?: never;
1771
2160
  query?: never;
1772
2161
  url: '/v1/connections';
@@ -1787,6 +2176,12 @@ export type CreateConnectionV1ConnectionsPostResponses = {
1787
2176
  export type CreateConnectionV1ConnectionsPostResponse = CreateConnectionV1ConnectionsPostResponses[keyof CreateConnectionV1ConnectionsPostResponses];
1788
2177
  export type DeleteConnectionV1ConnectionsConnectionIdDeleteData = {
1789
2178
  body?: never;
2179
+ headers?: {
2180
+ /**
2181
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2182
+ */
2183
+ 'Idempotency-Key'?: string;
2184
+ };
1790
2185
  path: {
1791
2186
  connection_id: string;
1792
2187
  };
@@ -1831,6 +2226,12 @@ export type GetConnectionV1ConnectionsConnectionIdGetResponses = {
1831
2226
  export type GetConnectionV1ConnectionsConnectionIdGetResponse = GetConnectionV1ConnectionsConnectionIdGetResponses[keyof GetConnectionV1ConnectionsConnectionIdGetResponses];
1832
2227
  export type UpdateConnectionV1ConnectionsConnectionIdPatchData = {
1833
2228
  body: ConnectionCreate;
2229
+ headers?: {
2230
+ /**
2231
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2232
+ */
2233
+ 'Idempotency-Key'?: string;
2234
+ };
1834
2235
  path: {
1835
2236
  connection_id: string;
1836
2237
  };
@@ -1888,6 +2289,12 @@ export type ListRequestLogsV1RequestLogsGetResponses = {
1888
2289
  export type ListRequestLogsV1RequestLogsGetResponse = ListRequestLogsV1RequestLogsGetResponses[keyof ListRequestLogsV1RequestLogsGetResponses];
1889
2290
  export type CreateRequestLogV1RequestLogsPostData = {
1890
2291
  body: RequestLogCreate;
2292
+ headers?: {
2293
+ /**
2294
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2295
+ */
2296
+ 'Idempotency-Key'?: string;
2297
+ };
1891
2298
  path?: never;
1892
2299
  query?: never;
1893
2300
  url: '/v1/request-logs';
@@ -1908,6 +2315,12 @@ export type CreateRequestLogV1RequestLogsPostResponses = {
1908
2315
  export type CreateRequestLogV1RequestLogsPostResponse = CreateRequestLogV1RequestLogsPostResponses[keyof CreateRequestLogV1RequestLogsPostResponses];
1909
2316
  export type DeleteRequestLogV1RequestLogsLogIdDeleteData = {
1910
2317
  body?: never;
2318
+ headers?: {
2319
+ /**
2320
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2321
+ */
2322
+ 'Idempotency-Key'?: string;
2323
+ };
1911
2324
  path: {
1912
2325
  log_id: string;
1913
2326
  };
@@ -1952,6 +2365,12 @@ export type GetRequestLogV1RequestLogsLogIdGetResponses = {
1952
2365
  export type GetRequestLogV1RequestLogsLogIdGetResponse = GetRequestLogV1RequestLogsLogIdGetResponses[keyof GetRequestLogV1RequestLogsLogIdGetResponses];
1953
2366
  export type UpdateRequestLogV1RequestLogsLogIdPatchData = {
1954
2367
  body: RequestLogUpdate;
2368
+ headers?: {
2369
+ /**
2370
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2371
+ */
2372
+ 'Idempotency-Key'?: string;
2373
+ };
1955
2374
  path: {
1956
2375
  log_id: string;
1957
2376
  };
@@ -2021,6 +2440,12 @@ export type ListTrajectoriesV1TrajectoriesGetResponses = {
2021
2440
  export type ListTrajectoriesV1TrajectoriesGetResponse = ListTrajectoriesV1TrajectoriesGetResponses[keyof ListTrajectoriesV1TrajectoriesGetResponses];
2022
2441
  export type CreateTrajectoryV1TrajectoriesPostData = {
2023
2442
  body: TrajectoryCreate;
2443
+ headers?: {
2444
+ /**
2445
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2446
+ */
2447
+ 'Idempotency-Key'?: string;
2448
+ };
2024
2449
  path?: never;
2025
2450
  query?: never;
2026
2451
  url: '/v1/trajectories';
@@ -2041,6 +2466,12 @@ export type CreateTrajectoryV1TrajectoriesPostResponses = {
2041
2466
  export type CreateTrajectoryV1TrajectoriesPostResponse = CreateTrajectoryV1TrajectoriesPostResponses[keyof CreateTrajectoryV1TrajectoriesPostResponses];
2042
2467
  export type DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData = {
2043
2468
  body?: never;
2469
+ headers?: {
2470
+ /**
2471
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2472
+ */
2473
+ 'Idempotency-Key'?: string;
2474
+ };
2044
2475
  path: {
2045
2476
  trajectory_id: string;
2046
2477
  };
@@ -2085,6 +2516,12 @@ export type GetTrajectoryV1TrajectoriesTrajectoryIdGetResponses = {
2085
2516
  export type GetTrajectoryV1TrajectoriesTrajectoryIdGetResponse = GetTrajectoryV1TrajectoriesTrajectoryIdGetResponses[keyof GetTrajectoryV1TrajectoriesTrajectoryIdGetResponses];
2086
2517
  export type UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData = {
2087
2518
  body: TrajectoryUpdate;
2519
+ headers?: {
2520
+ /**
2521
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2522
+ */
2523
+ 'Idempotency-Key'?: string;
2524
+ };
2088
2525
  path: {
2089
2526
  trajectory_id: string;
2090
2527
  };
@@ -2172,6 +2609,12 @@ export type GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetResponses
2172
2609
  export type GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetResponse = GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetResponses[keyof GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetResponses];
2173
2610
  export type KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData = {
2174
2611
  body: KeyboardTypeRequest;
2612
+ headers?: {
2613
+ /**
2614
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2615
+ */
2616
+ 'Idempotency-Key'?: string;
2617
+ };
2175
2618
  path: {
2176
2619
  machine_id: string;
2177
2620
  };
@@ -2194,6 +2637,12 @@ export type KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostResponses = {
2194
2637
  export type KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostResponse = KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostResponses[keyof KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostResponses];
2195
2638
  export type KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData = {
2196
2639
  body: KeyboardKeyRequest;
2640
+ headers?: {
2641
+ /**
2642
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2643
+ */
2644
+ 'Idempotency-Key'?: string;
2645
+ };
2197
2646
  path: {
2198
2647
  machine_id: string;
2199
2648
  };
@@ -2216,6 +2665,12 @@ export type KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponses = {
2216
2665
  export type KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponse = KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponses[keyof KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponses];
2217
2666
  export type CopyToClipboardV1ComputerMachineIdCopyToClipboardPostData = {
2218
2667
  body: CopyToClipboardRequest;
2668
+ headers?: {
2669
+ /**
2670
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2671
+ */
2672
+ 'Idempotency-Key'?: string;
2673
+ };
2219
2674
  path: {
2220
2675
  machine_id: string;
2221
2676
  };
@@ -2262,6 +2717,12 @@ export type GetMousePositionV1ComputerMachineIdInputMousePositionGetResponses =
2262
2717
  export type GetMousePositionV1ComputerMachineIdInputMousePositionGetResponse = GetMousePositionV1ComputerMachineIdInputMousePositionGetResponses[keyof GetMousePositionV1ComputerMachineIdInputMousePositionGetResponses];
2263
2718
  export type MouseMoveV1ComputerMachineIdInputMouseMovePostData = {
2264
2719
  body: MouseMoveRequest;
2720
+ headers?: {
2721
+ /**
2722
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2723
+ */
2724
+ 'Idempotency-Key'?: string;
2725
+ };
2265
2726
  path: {
2266
2727
  machine_id: string;
2267
2728
  };
@@ -2284,6 +2745,12 @@ export type MouseMoveV1ComputerMachineIdInputMouseMovePostResponses = {
2284
2745
  export type MouseMoveV1ComputerMachineIdInputMouseMovePostResponse = MouseMoveV1ComputerMachineIdInputMouseMovePostResponses[keyof MouseMoveV1ComputerMachineIdInputMouseMovePostResponses];
2285
2746
  export type MouseClickV1ComputerMachineIdInputMouseClickPostData = {
2286
2747
  body: MouseClickRequest;
2748
+ headers?: {
2749
+ /**
2750
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2751
+ */
2752
+ 'Idempotency-Key'?: string;
2753
+ };
2287
2754
  path: {
2288
2755
  machine_id: string;
2289
2756
  };
@@ -2306,6 +2773,12 @@ export type MouseClickV1ComputerMachineIdInputMouseClickPostResponses = {
2306
2773
  export type MouseClickV1ComputerMachineIdInputMouseClickPostResponse = MouseClickV1ComputerMachineIdInputMouseClickPostResponses[keyof MouseClickV1ComputerMachineIdInputMouseClickPostResponses];
2307
2774
  export type MouseScrollV1ComputerMachineIdInputMouseScrollPostData = {
2308
2775
  body: MouseScrollRequest;
2776
+ headers?: {
2777
+ /**
2778
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2779
+ */
2780
+ 'Idempotency-Key'?: string;
2781
+ };
2309
2782
  path: {
2310
2783
  machine_id: string;
2311
2784
  };
@@ -2328,6 +2801,12 @@ export type MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses = {
2328
2801
  export type MouseScrollV1ComputerMachineIdInputMouseScrollPostResponse = MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses[keyof MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses];
2329
2802
  export type MouseDragV1ComputerMachineIdInputMouseDragPostData = {
2330
2803
  body: MouseDragRequest;
2804
+ headers?: {
2805
+ /**
2806
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2807
+ */
2808
+ 'Idempotency-Key'?: string;
2809
+ };
2331
2810
  path: {
2332
2811
  machine_id: string;
2333
2812
  };
@@ -2402,6 +2881,12 @@ export type FsReadV1ComputerMachineIdFsReadGetResponses = {
2402
2881
  export type FsReadV1ComputerMachineIdFsReadGetResponse = FsReadV1ComputerMachineIdFsReadGetResponses[keyof FsReadV1ComputerMachineIdFsReadGetResponses];
2403
2882
  export type FsWriteV1ComputerMachineIdFsWritePostData = {
2404
2883
  body: FileWriteRequest;
2884
+ headers?: {
2885
+ /**
2886
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2887
+ */
2888
+ 'Idempotency-Key'?: string;
2889
+ };
2405
2890
  path: {
2406
2891
  machine_id: string;
2407
2892
  };
@@ -2426,6 +2911,12 @@ export type FsWriteV1ComputerMachineIdFsWritePostResponses = {
2426
2911
  export type FsWriteV1ComputerMachineIdFsWritePostResponse = FsWriteV1ComputerMachineIdFsWritePostResponses[keyof FsWriteV1ComputerMachineIdFsWritePostResponses];
2427
2912
  export type PowershellExecV1ComputerMachineIdShellPowershellExecPostData = {
2428
2913
  body: PowerShellExecRequest;
2914
+ headers?: {
2915
+ /**
2916
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2917
+ */
2918
+ 'Idempotency-Key'?: string;
2919
+ };
2429
2920
  path: {
2430
2921
  machine_id: string;
2431
2922
  };
@@ -2450,6 +2941,12 @@ export type PowershellExecV1ComputerMachineIdShellPowershellExecPostResponses =
2450
2941
  export type PowershellExecV1ComputerMachineIdShellPowershellExecPostResponse = PowershellExecV1ComputerMachineIdShellPowershellExecPostResponses[keyof PowershellExecV1ComputerMachineIdShellPowershellExecPostResponses];
2451
2942
  export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData = {
2452
2943
  body: PowerShellSessionRequest;
2944
+ headers?: {
2945
+ /**
2946
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2947
+ */
2948
+ 'Idempotency-Key'?: string;
2949
+ };
2453
2950
  path: {
2454
2951
  machine_id: string;
2455
2952
  };
@@ -2472,21 +2969,6 @@ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostRespon
2472
2969
  };
2473
2970
  };
2474
2971
  export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponse = PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses[keyof PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses];
2475
- export type DummyTestEndpointV1TestPostData = {
2476
- body?: never;
2477
- path?: never;
2478
- query?: never;
2479
- url: '/v1/test';
2480
- };
2481
- export type DummyTestEndpointV1TestPostResponses = {
2482
- /**
2483
- * Successful Response
2484
- */
2485
- 200: {
2486
- [key: string]: unknown;
2487
- };
2488
- };
2489
- export type DummyTestEndpointV1TestPostResponse = DummyTestEndpointV1TestPostResponses[keyof DummyTestEndpointV1TestPostResponses];
2490
2972
  export type DbPingInternalDebugDbPingGetData = {
2491
2973
  body?: never;
2492
2974
  path?: never;