windmill-utils-internal 1.3.4 → 1.3.6

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.
@@ -17,6 +17,10 @@ export type OpenFlow = {
17
17
  schema?: {
18
18
  [key: string]: unknown;
19
19
  };
20
+ /**
21
+ * The flow will be run with the permissions of the user with this email.
22
+ */
23
+ on_behalf_of_email?: string;
20
24
  };
21
25
  /**
22
26
  * The flow structure containing modules and optional preprocessor/failure handlers
@@ -80,10 +84,10 @@ export type FlowValue = {
80
84
  cache_ttl?: number;
81
85
  cache_ignore_s3_path?: boolean;
82
86
  /**
83
- * Environment variables available to all steps
87
+ * Environment variables available to all steps. Values can be strings, JSON values, or special references: '$var:path' (workspace variable) or '$res:path' (resource).
84
88
  */
85
89
  flow_env?: {
86
- [key: string]: (string);
90
+ [key: string]: unknown;
87
91
  };
88
92
  /**
89
93
  * Execution priority (higher numbers run first)
@@ -101,6 +105,35 @@ export type FlowValue = {
101
105
  * Sticky notes attached to the flow
102
106
  */
103
107
  notes?: Array<FlowNote>;
108
+ /**
109
+ * Semantic groups of modules for organizational purposes
110
+ */
111
+ groups?: Array<{
112
+ /**
113
+ * Display name for this group
114
+ */
115
+ summary?: string;
116
+ /**
117
+ * Markdown note shown below the group header
118
+ */
119
+ note?: string;
120
+ /**
121
+ * If true, this group is collapsed by default in the flow editor. UI hint only.
122
+ */
123
+ autocollapse?: boolean;
124
+ /**
125
+ * ID of the first flow module in this group (topological entry point)
126
+ */
127
+ start_id: string;
128
+ /**
129
+ * ID of the last flow module in this group (topological exit point)
130
+ */
131
+ end_id: string;
132
+ /**
133
+ * Color for the group in the flow editor
134
+ */
135
+ color?: string;
136
+ }>;
104
137
  };
105
138
  /**
106
139
  * Retry configuration for failed module executions
@@ -163,9 +196,9 @@ export type StopAfterIf = {
163
196
  */
164
197
  expr: string;
165
198
  /**
166
- * Custom error message shown when stopping
199
+ * Custom error message when stopping with an error. Mutually exclusive with skip_if_stopped. If set to a non-empty string, the flow stops with this error. If empty string, a default error message is used. If null or omitted, no error is raised.
167
200
  */
168
- error_message?: string;
201
+ error_message?: (string) | null;
169
202
  };
170
203
  /**
171
204
  * A single step in a flow. Can be a script, subflow, loop, or branch
@@ -283,6 +316,31 @@ export type FlowModule = {
283
316
  * Retry configuration if this step fails
284
317
  */
285
318
  retry?: Retry;
319
+ /**
320
+ * Debounce configuration for this step (EE only)
321
+ */
322
+ debouncing?: {
323
+ /**
324
+ * Delay in seconds to debounce this step's executions across flow runs
325
+ */
326
+ debounce_delay_s?: number;
327
+ /**
328
+ * Expression to group debounced executions. Supports $workspace and $args[name]. Default: $workspace/flow/<flow_path>-<step_id>
329
+ */
330
+ debounce_key?: string;
331
+ /**
332
+ * Array-type arguments to accumulate across debounced executions
333
+ */
334
+ debounce_args_to_accumulate?: Array<(string)>;
335
+ /**
336
+ * Maximum total time in seconds before forced execution
337
+ */
338
+ max_total_debouncing_time?: number;
339
+ /**
340
+ * Maximum number of debounces before forced execution
341
+ */
342
+ max_total_debounces_amount?: number;
343
+ };
286
344
  };
287
345
  /**
288
346
  * Maps input parameters for a step. Can be a static value or a JavaScript expression that references previous results or flow inputs
@@ -420,7 +478,7 @@ export type RawScript = {
420
478
  /**
421
479
  * Type of asset
422
480
  */
423
- kind: 's3object' | 'resource' | 'ducklake' | 'datatable';
481
+ kind: 's3object' | 'resource' | 'ducklake' | 'datatable' | 'volume';
424
482
  /**
425
483
  * Access level for this asset
426
484
  */
@@ -633,12 +691,12 @@ export type AiAgent = {
633
691
  */
634
692
  output_schema?: (InputTransform);
635
693
  /**
636
- * Array of image references for vision-capable models.
694
+ * Array of file references (images or PDFs) for the AI agent.
637
695
  * Format: Array<{ bucket: string, key: string }> - S3 object references
638
- * Example: [{ bucket: 'my-bucket', key: 'images/photo.jpg' }]
696
+ * Example: [{ bucket: 'my-bucket', key: 'documents/report.pdf' }]
639
697
  *
640
698
  */
641
- user_images?: (InputTransform);
699
+ user_attachments?: (InputTransform);
642
700
  /**
643
701
  * Integer. Maximum number of tokens the AI will generate in its response.
644
702
  * Range: 1 to 4,294,967,295. Typical values: 256-4096 for most use cases.
@@ -834,6 +892,142 @@ export type FlowNote = {
834
892
  * Type of note - 'free' for standalone notes, 'group' for notes that group other nodes
835
893
  */
836
894
  export type type3 = 'free' | 'group';
895
+ /**
896
+ * Health status response (cached with 5s TTL)
897
+ */
898
+ export type HealthStatusResponse = {
899
+ /**
900
+ * Overall health status
901
+ */
902
+ status: 'healthy' | 'degraded' | 'unhealthy';
903
+ /**
904
+ * Timestamp when the health check was actually performed (not cache return time)
905
+ */
906
+ checked_at: string;
907
+ /**
908
+ * Whether the database is reachable
909
+ */
910
+ database_healthy: boolean;
911
+ /**
912
+ * Number of workers that pinged within last 5 minutes
913
+ */
914
+ workers_alive: number;
915
+ };
916
+ /**
917
+ * Overall health status
918
+ */
919
+ export type status = 'healthy' | 'degraded' | 'unhealthy';
920
+ /**
921
+ * Detailed health status response (always fresh, no caching)
922
+ */
923
+ export type DetailedHealthResponse = {
924
+ /**
925
+ * Overall health status
926
+ */
927
+ status: 'healthy' | 'degraded' | 'unhealthy';
928
+ /**
929
+ * Timestamp when the health check was performed
930
+ */
931
+ checked_at: string;
932
+ /**
933
+ * Server version (e.g., "EE 1.615.3")
934
+ */
935
+ version: string;
936
+ checks: HealthChecks;
937
+ };
938
+ /**
939
+ * Detailed health checks
940
+ */
941
+ export type HealthChecks = {
942
+ database: DatabaseHealth;
943
+ /**
944
+ * Worker status (null if database is unreachable)
945
+ */
946
+ workers?: (WorkersHealth) | null;
947
+ /**
948
+ * Queue status (null if database is unreachable)
949
+ */
950
+ queue?: (QueueHealth) | null;
951
+ readiness: ReadinessHealth;
952
+ };
953
+ /**
954
+ * Database health status
955
+ */
956
+ export type DatabaseHealth = {
957
+ /**
958
+ * Whether the database is reachable
959
+ */
960
+ healthy: boolean;
961
+ /**
962
+ * Database query latency in milliseconds
963
+ */
964
+ latency_ms: number;
965
+ pool: PoolStats;
966
+ };
967
+ /**
968
+ * Database connection pool statistics
969
+ */
970
+ export type PoolStats = {
971
+ /**
972
+ * Current number of connections in the pool
973
+ */
974
+ size: number;
975
+ /**
976
+ * Number of idle connections
977
+ */
978
+ idle: number;
979
+ /**
980
+ * Maximum number of connections allowed
981
+ */
982
+ max_connections: number;
983
+ };
984
+ /**
985
+ * Workers health status
986
+ */
987
+ export type WorkersHealth = {
988
+ /**
989
+ * Whether any workers are active
990
+ */
991
+ healthy: boolean;
992
+ /**
993
+ * Number of active workers (pinged in last 5 minutes)
994
+ */
995
+ active_count: number;
996
+ /**
997
+ * List of active worker groups
998
+ */
999
+ worker_groups: Array<(string)>;
1000
+ /**
1001
+ * Minimum required worker version
1002
+ */
1003
+ min_version: string;
1004
+ /**
1005
+ * List of active worker versions
1006
+ */
1007
+ versions: Array<(string)>;
1008
+ };
1009
+ /**
1010
+ * Job queue status
1011
+ */
1012
+ export type QueueHealth = {
1013
+ /**
1014
+ * Number of pending jobs in the queue
1015
+ */
1016
+ pending_jobs: number;
1017
+ /**
1018
+ * Number of currently running jobs
1019
+ */
1020
+ running_jobs: number;
1021
+ };
1022
+ /**
1023
+ * Server readiness status
1024
+ */
1025
+ export type ReadinessHealth = {
1026
+ /**
1027
+ * Whether the server is ready to accept requests
1028
+ */
1029
+ healthy: boolean;
1030
+ };
837
1031
  /**
838
1032
  * Configuration for auto-inviting users to the workspace
839
1033
  */
@@ -1095,7 +1289,7 @@ export type EndpointTool = {
1095
1289
  } | null;
1096
1290
  };
1097
1291
  export type AIProvider = 'openai' | 'azure_openai' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai';
1098
- export type GitSyncObjectType = 'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule' | 'user' | 'group' | 'trigger' | 'settings' | 'key';
1292
+ export type GitSyncObjectType = 'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule' | 'user' | 'group' | 'trigger' | 'settings' | 'key' | 'workspacedependencies';
1099
1293
  export type AIProviderModel = {
1100
1294
  model: string;
1101
1295
  provider: AIProvider;
@@ -1117,6 +1311,15 @@ export type AIConfig = {
1117
1311
  [key: string]: (number);
1118
1312
  };
1119
1313
  };
1314
+ export type InstanceAIProviderSummary = {
1315
+ provider: AIProvider;
1316
+ models: Array<(string)>;
1317
+ };
1318
+ export type InstanceAISummary = {
1319
+ providers: Array<InstanceAIProviderSummary>;
1320
+ default_model?: AIProviderModel;
1321
+ code_completion_model?: AIProviderModel;
1322
+ };
1120
1323
  export type Alert = {
1121
1324
  name: string;
1122
1325
  tags_to_monitor: Array<(string)>;
@@ -1192,17 +1395,23 @@ export type Script = {
1192
1395
  timeout?: number;
1193
1396
  delete_after_use?: boolean;
1194
1397
  visible_to_runner_only?: boolean;
1195
- no_main_func: boolean;
1398
+ auto_kind?: string;
1196
1399
  codebase?: string;
1197
1400
  has_preprocessor: boolean;
1198
1401
  on_behalf_of_email?: string;
1402
+ /**
1403
+ * Additional script modules keyed by relative file path
1404
+ */
1405
+ modules?: {
1406
+ [key: string]: ScriptModule;
1407
+ } | null;
1199
1408
  };
1200
1409
  export type kind3 = 'script' | 'failure' | 'trigger' | 'command' | 'approval' | 'preprocessor';
1201
1410
  export type NewScript = {
1202
1411
  path: string;
1203
1412
  parent_hash?: string;
1204
1413
  summary: string;
1205
- description: string;
1414
+ description?: string;
1206
1415
  content: string;
1207
1416
  schema?: {
1208
1417
  [key: string]: unknown;
@@ -1232,16 +1441,26 @@ export type NewScript = {
1232
1441
  max_total_debouncing_time?: number;
1233
1442
  max_total_debounces_amount?: number;
1234
1443
  visible_to_runner_only?: boolean;
1235
- no_main_func?: boolean;
1444
+ auto_kind?: string;
1236
1445
  codebase?: string;
1237
1446
  has_preprocessor?: boolean;
1238
1447
  on_behalf_of_email?: string;
1448
+ /**
1449
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original on_behalf_of_email value instead of overwriting it.
1450
+ */
1451
+ preserve_on_behalf_of?: boolean;
1239
1452
  assets?: Array<{
1240
1453
  path: string;
1241
1454
  kind: AssetKind;
1242
1455
  access_type?: 'r' | 'w' | 'rw';
1243
1456
  alt_access_type?: 'r' | 'w' | 'rw';
1244
1457
  }>;
1458
+ /**
1459
+ * Additional script modules keyed by relative file path
1460
+ */
1461
+ modules?: {
1462
+ [key: string]: ScriptModule;
1463
+ } | null;
1245
1464
  };
1246
1465
  export type NewScriptWithDraft = NewScript & {
1247
1466
  draft?: NewScript;
@@ -1706,11 +1925,25 @@ export type MainArgSignature = {
1706
1925
  has_default?: boolean;
1707
1926
  default?: unknown;
1708
1927
  }>;
1709
- no_main_func: (boolean) | null;
1928
+ auto_kind: (string) | null;
1710
1929
  has_preprocessor: (boolean) | null;
1711
1930
  };
1712
1931
  export type type5 = 'Valid' | 'Invalid';
1713
1932
  export type ScriptLang = 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp' | 'nu' | 'java' | 'ruby' | 'duckdb' | 'bunnative';
1933
+ /**
1934
+ * An additional module file associated with a script
1935
+ */
1936
+ export type ScriptModule = {
1937
+ /**
1938
+ * The source code content of this module
1939
+ */
1940
+ content: string;
1941
+ language: ScriptLang;
1942
+ /**
1943
+ * Lock file content for this module's dependencies
1944
+ */
1945
+ lock?: (string) | null;
1946
+ };
1714
1947
  export type Preview = {
1715
1948
  /**
1716
1949
  * The code to run
@@ -1730,6 +1963,13 @@ export type Preview = {
1730
1963
  kind?: 'code' | 'identity' | 'http';
1731
1964
  dedicated_worker?: boolean;
1732
1965
  lock?: string;
1966
+ flow_path?: string;
1967
+ /**
1968
+ * Additional script modules keyed by relative file path
1969
+ */
1970
+ modules?: {
1971
+ [key: string]: ScriptModule;
1972
+ } | null;
1733
1973
  };
1734
1974
  export type kind4 = 'code' | 'identity' | 'http';
1735
1975
  export type PreviewInline = {
@@ -1740,6 +1980,9 @@ export type PreviewInline = {
1740
1980
  args: ScriptArgs;
1741
1981
  language: ScriptLang;
1742
1982
  };
1983
+ export type InlineScriptArgs = {
1984
+ args?: ScriptArgs;
1985
+ };
1743
1986
  export type WorkflowTask = {
1744
1987
  args: ScriptArgs;
1745
1988
  };
@@ -1821,10 +2064,12 @@ export type ResourceType = {
1821
2064
  created_by?: string;
1822
2065
  edited_at?: string;
1823
2066
  format_extension?: string;
2067
+ is_fileset?: boolean;
1824
2068
  };
1825
2069
  export type EditResourceType = {
1826
2070
  schema?: unknown;
1827
2071
  description?: string;
2072
+ is_fileset?: boolean;
1828
2073
  };
1829
2074
  export type Schedule = {
1830
2075
  /**
@@ -1859,7 +2104,7 @@ export type Schedule = {
1859
2104
  * True if script_path points to a flow, false if it points to a script
1860
2105
  */
1861
2106
  is_flow: boolean;
1862
- args?: ScriptArgs;
2107
+ args?: (ScriptArgs) | null;
1863
2108
  /**
1864
2109
  * Additional permissions for this schedule
1865
2110
  */
@@ -1870,50 +2115,54 @@ export type Schedule = {
1870
2115
  * Email of the user who owns this schedule, used for permissioned_as
1871
2116
  */
1872
2117
  email: string;
2118
+ /**
2119
+ * The user or group this schedule runs as (e.g., 'u/admin' or 'g/mygroup')
2120
+ */
2121
+ permissioned_as: string;
1873
2122
  /**
1874
2123
  * Last error message if the schedule failed to trigger
1875
2124
  */
1876
- error?: string;
2125
+ error?: (string) | null;
1877
2126
  /**
1878
2127
  * Path to a script or flow to run when the scheduled job fails
1879
2128
  */
1880
- on_failure?: string;
2129
+ on_failure?: (string) | null;
1881
2130
  /**
1882
2131
  * Number of consecutive failures before the on_failure handler is triggered (default 1)
1883
2132
  */
1884
- on_failure_times?: number;
2133
+ on_failure_times?: (number) | null;
1885
2134
  /**
1886
2135
  * If true, trigger on_failure handler only on exactly N failures, not on every failure after N
1887
2136
  */
1888
- on_failure_exact?: boolean;
1889
- on_failure_extra_args?: ScriptArgs;
2137
+ on_failure_exact?: (boolean) | null;
2138
+ on_failure_extra_args?: (ScriptArgs) | null;
1890
2139
  /**
1891
2140
  * Path to a script or flow to run when the schedule recovers after failures
1892
2141
  */
1893
- on_recovery?: string;
2142
+ on_recovery?: (string) | null;
1894
2143
  /**
1895
2144
  * Number of consecutive successes before the on_recovery handler is triggered (default 1)
1896
2145
  */
1897
- on_recovery_times?: number;
1898
- on_recovery_extra_args?: ScriptArgs;
2146
+ on_recovery_times?: (number) | null;
2147
+ on_recovery_extra_args?: (ScriptArgs) | null;
1899
2148
  /**
1900
2149
  * Path to a script or flow to run after each successful execution
1901
2150
  */
1902
- on_success?: string;
1903
- on_success_extra_args?: ScriptArgs;
2151
+ on_success?: (string) | null;
2152
+ on_success_extra_args?: (ScriptArgs) | null;
1904
2153
  /**
1905
2154
  * If true, the workspace-level error handler will not be triggered for this schedule's failures
1906
2155
  */
1907
2156
  ws_error_handler_muted?: boolean;
1908
- retry?: Retry;
2157
+ retry?: (Retry) | null;
1909
2158
  /**
1910
2159
  * Short summary describing the purpose of this schedule
1911
2160
  */
1912
- summary?: string;
2161
+ summary?: (string) | null;
1913
2162
  /**
1914
2163
  * Detailed description of what this schedule does
1915
2164
  */
1916
- description?: string;
2165
+ description?: (string) | null;
1917
2166
  /**
1918
2167
  * If true, skip this schedule's execution if the previous run is still in progress (prevents concurrent runs)
1919
2168
  */
@@ -1921,19 +2170,19 @@ export type Schedule = {
1921
2170
  /**
1922
2171
  * Worker tag to route jobs to specific worker groups
1923
2172
  */
1924
- tag?: string;
2173
+ tag?: (string) | null;
1925
2174
  /**
1926
2175
  * ISO 8601 datetime until which the schedule is paused. Schedule resumes automatically after this time
1927
2176
  */
1928
- paused_until?: string;
2177
+ paused_until?: (string) | null;
1929
2178
  /**
1930
2179
  * Cron parser version. Use 'v2' for extended syntax with additional features
1931
2180
  */
1932
- cron_version?: string;
2181
+ cron_version?: (string) | null;
1933
2182
  /**
1934
2183
  * Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean to skip (true) or run (false)
1935
2184
  */
1936
- dynamic_skip?: string;
2185
+ dynamic_skip?: (string) | null;
1937
2186
  };
1938
2187
  export type ScheduleWJobs = Schedule & {
1939
2188
  jobs?: Array<{
@@ -1964,7 +2213,7 @@ export type NewSchedule = {
1964
2213
  * True if script_path points to a flow, false if it points to a script
1965
2214
  */
1966
2215
  is_flow: boolean;
1967
- args: ScriptArgs;
2216
+ args: (ScriptArgs) | null;
1968
2217
  /**
1969
2218
  * Whether the schedule is currently active and will trigger jobs
1970
2219
  */
@@ -1972,35 +2221,35 @@ export type NewSchedule = {
1972
2221
  /**
1973
2222
  * Path to a script or flow to run when the scheduled job fails
1974
2223
  */
1975
- on_failure?: string;
2224
+ on_failure?: (string) | null;
1976
2225
  /**
1977
2226
  * Number of consecutive failures before the on_failure handler is triggered (default 1)
1978
2227
  */
1979
- on_failure_times?: number;
2228
+ on_failure_times?: (number) | null;
1980
2229
  /**
1981
2230
  * If true, trigger on_failure handler only on exactly N failures, not on every failure after N
1982
2231
  */
1983
- on_failure_exact?: boolean;
1984
- on_failure_extra_args?: ScriptArgs;
2232
+ on_failure_exact?: (boolean) | null;
2233
+ on_failure_extra_args?: (ScriptArgs) | null;
1985
2234
  /**
1986
2235
  * Path to a script or flow to run when the schedule recovers after failures
1987
2236
  */
1988
- on_recovery?: string;
2237
+ on_recovery?: (string) | null;
1989
2238
  /**
1990
2239
  * Number of consecutive successes before the on_recovery handler is triggered (default 1)
1991
2240
  */
1992
- on_recovery_times?: number;
1993
- on_recovery_extra_args?: ScriptArgs;
2241
+ on_recovery_times?: (number) | null;
2242
+ on_recovery_extra_args?: (ScriptArgs) | null;
1994
2243
  /**
1995
2244
  * Path to a script or flow to run after each successful execution
1996
2245
  */
1997
- on_success?: string;
1998
- on_success_extra_args?: ScriptArgs;
2246
+ on_success?: (string) | null;
2247
+ on_success_extra_args?: (ScriptArgs) | null;
1999
2248
  /**
2000
2249
  * If true, the workspace-level error handler will not be triggered for this schedule's failures
2001
2250
  */
2002
2251
  ws_error_handler_muted?: boolean;
2003
- retry?: Retry;
2252
+ retry?: (Retry) | null;
2004
2253
  /**
2005
2254
  * If true, skip this schedule's execution if the previous run is still in progress (prevents concurrent runs)
2006
2255
  */
@@ -2008,27 +2257,35 @@ export type NewSchedule = {
2008
2257
  /**
2009
2258
  * Short summary describing the purpose of this schedule
2010
2259
  */
2011
- summary?: string;
2260
+ summary?: (string) | null;
2012
2261
  /**
2013
2262
  * Detailed description of what this schedule does
2014
2263
  */
2015
- description?: string;
2264
+ description?: (string) | null;
2016
2265
  /**
2017
2266
  * Worker tag to route jobs to specific worker groups
2018
2267
  */
2019
- tag?: string;
2268
+ tag?: (string) | null;
2020
2269
  /**
2021
2270
  * ISO 8601 datetime until which the schedule is paused. Schedule resumes automatically after this time
2022
2271
  */
2023
- paused_until?: string;
2272
+ paused_until?: (string) | null;
2024
2273
  /**
2025
2274
  * Cron parser version. Use 'v2' for extended syntax with additional features
2026
2275
  */
2027
- cron_version?: string;
2276
+ cron_version?: (string) | null;
2028
2277
  /**
2029
2278
  * Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean to skip (true) or run (false)
2030
2279
  */
2031
- dynamic_skip?: string;
2280
+ dynamic_skip?: (string) | null;
2281
+ /**
2282
+ * The user or group this schedule runs as. Used during deployment to preserve the original schedule owner.
2283
+ */
2284
+ permissioned_as?: string;
2285
+ /**
2286
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2287
+ */
2288
+ preserve_permissioned_as?: boolean;
2032
2289
  };
2033
2290
  export type EditSchedule = {
2034
2291
  /**
@@ -2039,39 +2296,39 @@ export type EditSchedule = {
2039
2296
  * IANA timezone for the schedule (e.g., 'UTC', 'Europe/Paris', 'America/New_York')
2040
2297
  */
2041
2298
  timezone: string;
2042
- args: ScriptArgs;
2299
+ args: (ScriptArgs) | null;
2043
2300
  /**
2044
2301
  * Path to a script or flow to run when the scheduled job fails
2045
2302
  */
2046
- on_failure?: string;
2303
+ on_failure?: (string) | null;
2047
2304
  /**
2048
2305
  * Number of consecutive failures before the on_failure handler is triggered (default 1)
2049
2306
  */
2050
- on_failure_times?: number;
2307
+ on_failure_times?: (number) | null;
2051
2308
  /**
2052
2309
  * If true, trigger on_failure handler only on exactly N failures, not on every failure after N
2053
2310
  */
2054
- on_failure_exact?: boolean;
2055
- on_failure_extra_args?: ScriptArgs;
2311
+ on_failure_exact?: (boolean) | null;
2312
+ on_failure_extra_args?: (ScriptArgs) | null;
2056
2313
  /**
2057
2314
  * Path to a script or flow to run when the schedule recovers after failures
2058
2315
  */
2059
- on_recovery?: string;
2316
+ on_recovery?: (string) | null;
2060
2317
  /**
2061
2318
  * Number of consecutive successes before the on_recovery handler is triggered (default 1)
2062
2319
  */
2063
- on_recovery_times?: number;
2064
- on_recovery_extra_args?: ScriptArgs;
2320
+ on_recovery_times?: (number) | null;
2321
+ on_recovery_extra_args?: (ScriptArgs) | null;
2065
2322
  /**
2066
2323
  * Path to a script or flow to run after each successful execution
2067
2324
  */
2068
- on_success?: string;
2069
- on_success_extra_args?: ScriptArgs;
2325
+ on_success?: (string) | null;
2326
+ on_success_extra_args?: (ScriptArgs) | null;
2070
2327
  /**
2071
2328
  * If true, the workspace-level error handler will not be triggered for this schedule's failures
2072
2329
  */
2073
2330
  ws_error_handler_muted?: boolean;
2074
- retry?: Retry;
2331
+ retry?: (Retry) | null;
2075
2332
  /**
2076
2333
  * If true, skip this schedule's execution if the previous run is still in progress (prevents concurrent runs)
2077
2334
  */
@@ -2079,32 +2336,40 @@ export type EditSchedule = {
2079
2336
  /**
2080
2337
  * Short summary describing the purpose of this schedule
2081
2338
  */
2082
- summary?: string;
2339
+ summary?: (string) | null;
2083
2340
  /**
2084
2341
  * Detailed description of what this schedule does
2085
2342
  */
2086
- description?: string;
2343
+ description?: (string) | null;
2087
2344
  /**
2088
2345
  * Worker tag to route jobs to specific worker groups
2089
2346
  */
2090
- tag?: string;
2347
+ tag?: (string) | null;
2091
2348
  /**
2092
2349
  * ISO 8601 datetime until which the schedule is paused. Schedule resumes automatically after this time
2093
2350
  */
2094
- paused_until?: string;
2351
+ paused_until?: (string) | null;
2095
2352
  /**
2096
2353
  * Cron parser version. Use 'v2' for extended syntax with additional features
2097
2354
  */
2098
- cron_version?: string;
2355
+ cron_version?: (string) | null;
2099
2356
  /**
2100
2357
  * Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean to skip (true) or run (false)
2101
2358
  */
2102
- dynamic_skip?: string;
2359
+ dynamic_skip?: (string) | null;
2360
+ /**
2361
+ * The user or group this schedule runs as (e.g., 'u/admin' or 'g/mygroup'). Only admins and wm_deployers can set this via preserve_permissioned_as.
2362
+ */
2363
+ permissioned_as?: (string) | null;
2364
+ /**
2365
+ * If true and user is admin/wm_deployers, preserve the provided permissioned_as instead of using the deploying user's identity
2366
+ */
2367
+ preserve_permissioned_as?: (boolean) | null;
2103
2368
  };
2104
2369
  /**
2105
2370
  * job trigger kind (schedule, http, websocket...)
2106
2371
  */
2107
- export type JobTriggerKind = 'webhook' | 'default_email' | 'email' | 'schedule' | 'http' | 'websocket' | 'postgres' | 'kafka' | 'nats' | 'mqtt' | 'sqs' | 'gcp';
2372
+ export type JobTriggerKind = 'webhook' | 'default_email' | 'email' | 'schedule' | 'http' | 'websocket' | 'postgres' | 'kafka' | 'nats' | 'mqtt' | 'sqs' | 'gcp' | 'google';
2108
2373
  /**
2109
2374
  * job trigger mode
2110
2375
  */
@@ -2119,9 +2384,9 @@ export type TriggerExtraProperty = {
2119
2384
  */
2120
2385
  script_path: string;
2121
2386
  /**
2122
- * Email of the user who owns this trigger, used for permissioned_as
2387
+ * The user or group this trigger runs as (permissioned_as)
2123
2388
  */
2124
- email: string;
2389
+ permissioned_as: string;
2125
2390
  /**
2126
2391
  * Additional permissions for this trigger
2127
2392
  */
@@ -2210,7 +2475,7 @@ export type HttpTrigger = TriggerExtraProperty & {
2210
2475
  * Filename for the static asset
2211
2476
  */
2212
2477
  filename?: string;
2213
- };
2478
+ } | null;
2214
2479
  /**
2215
2480
  * HTTP method (get, post, put, delete, patch) that triggers this endpoint
2216
2481
  */
@@ -2218,15 +2483,15 @@ export type HttpTrigger = TriggerExtraProperty & {
2218
2483
  /**
2219
2484
  * Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
2220
2485
  */
2221
- authentication_resource_path?: string;
2486
+ authentication_resource_path?: (string) | null;
2222
2487
  /**
2223
2488
  * Short summary describing the purpose of this trigger
2224
2489
  */
2225
- summary?: string;
2490
+ summary?: (string) | null;
2226
2491
  /**
2227
2492
  * Detailed description of what this trigger does
2228
2493
  */
2229
- description?: string;
2494
+ description?: (string) | null;
2230
2495
  /**
2231
2496
  * How the request is handled - 'sync' waits for result, 'async' returns job ID immediately, 'sync_sse' streams results via Server-Sent Events
2232
2497
  */
@@ -2284,11 +2549,11 @@ export type NewHttpTrigger = {
2284
2549
  /**
2285
2550
  * Short summary describing the purpose of this trigger
2286
2551
  */
2287
- summary?: string;
2552
+ summary?: (string) | null;
2288
2553
  /**
2289
2554
  * Detailed description of what this trigger does
2290
2555
  */
2291
- description?: string;
2556
+ description?: (string) | null;
2292
2557
  /**
2293
2558
  * Configuration for serving static assets (s3 bucket, storage path, filename)
2294
2559
  */
@@ -2305,7 +2570,7 @@ export type NewHttpTrigger = {
2305
2570
  * Filename for the static asset
2306
2571
  */
2307
2572
  filename?: string;
2308
- };
2573
+ } | null;
2309
2574
  /**
2310
2575
  * True if script_path points to a flow, false if it points to a script
2311
2576
  */
@@ -2317,7 +2582,7 @@ export type NewHttpTrigger = {
2317
2582
  /**
2318
2583
  * Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
2319
2584
  */
2320
- authentication_resource_path?: string;
2585
+ authentication_resource_path?: (string) | null;
2321
2586
  /**
2322
2587
  * Deprecated, use request_type instead
2323
2588
  */
@@ -2355,6 +2620,14 @@ export type NewHttpTrigger = {
2355
2620
  * Retry configuration for failed executions
2356
2621
  */
2357
2622
  retry?: Retry;
2623
+ /**
2624
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2625
+ */
2626
+ permissioned_as?: string;
2627
+ /**
2628
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2629
+ */
2630
+ preserve_permissioned_as?: boolean;
2358
2631
  };
2359
2632
  export type EditHttpTrigger = {
2360
2633
  /**
@@ -2372,11 +2645,11 @@ export type EditHttpTrigger = {
2372
2645
  /**
2373
2646
  * Short summary describing the purpose of this trigger
2374
2647
  */
2375
- summary?: string;
2648
+ summary?: (string) | null;
2376
2649
  /**
2377
2650
  * Detailed description of what this trigger does
2378
2651
  */
2379
- description?: string;
2652
+ description?: (string) | null;
2380
2653
  /**
2381
2654
  * If true, the route includes the workspace ID in the path
2382
2655
  */
@@ -2397,11 +2670,11 @@ export type EditHttpTrigger = {
2397
2670
  * Filename for the static asset
2398
2671
  */
2399
2672
  filename?: string;
2400
- };
2673
+ } | null;
2401
2674
  /**
2402
2675
  * Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
2403
2676
  */
2404
- authentication_resource_path?: string;
2677
+ authentication_resource_path?: (string) | null;
2405
2678
  /**
2406
2679
  * True if script_path points to a flow, false if it points to a script
2407
2680
  */
@@ -2446,6 +2719,14 @@ export type EditHttpTrigger = {
2446
2719
  * Retry configuration for failed executions
2447
2720
  */
2448
2721
  retry?: Retry;
2722
+ /**
2723
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2724
+ */
2725
+ permissioned_as?: string;
2726
+ /**
2727
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2728
+ */
2729
+ preserve_permissioned_as?: boolean;
2449
2730
  };
2450
2731
  export type TriggersCount = {
2451
2732
  primary_schedule?: {
@@ -2464,6 +2745,7 @@ export type TriggersCount = {
2464
2745
  gcp_count?: number;
2465
2746
  sqs_count?: number;
2466
2747
  nextcloud_count?: number;
2748
+ google_count?: number;
2467
2749
  };
2468
2750
  export type WebsocketTrigger = TriggerExtraProperty & {
2469
2751
  /**
@@ -2492,11 +2774,11 @@ export type WebsocketTrigger = TriggerExtraProperty & {
2492
2774
  /**
2493
2775
  * Messages to send immediately after connecting (can be raw strings or computed by runnables)
2494
2776
  */
2495
- initial_messages?: Array<WebsocketTriggerInitialMessage>;
2777
+ initial_messages?: Array<WebsocketTriggerInitialMessage> | null;
2496
2778
  /**
2497
2779
  * Arguments to pass to the script/flow that computes the WebSocket URL
2498
2780
  */
2499
- url_runnable_args?: ScriptArgs;
2781
+ url_runnable_args?: (ScriptArgs) | null;
2500
2782
  /**
2501
2783
  * If true, the script can return a message to send back through the WebSocket
2502
2784
  */
@@ -2546,11 +2828,11 @@ export type NewWebsocketTrigger = {
2546
2828
  /**
2547
2829
  * Messages to send immediately after connecting (can be raw strings or computed by runnables)
2548
2830
  */
2549
- initial_messages?: Array<WebsocketTriggerInitialMessage>;
2831
+ initial_messages?: Array<WebsocketTriggerInitialMessage> | null;
2550
2832
  /**
2551
2833
  * Arguments to pass to the script/flow that computes the WebSocket URL
2552
2834
  */
2553
- url_runnable_args?: ScriptArgs;
2835
+ url_runnable_args?: (ScriptArgs) | null;
2554
2836
  /**
2555
2837
  * If true, the script can return a message to send back through the WebSocket
2556
2838
  */
@@ -2571,6 +2853,14 @@ export type NewWebsocketTrigger = {
2571
2853
  * Retry configuration for failed executions
2572
2854
  */
2573
2855
  retry?: Retry;
2856
+ /**
2857
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2858
+ */
2859
+ permissioned_as?: string;
2860
+ /**
2861
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2862
+ */
2863
+ preserve_permissioned_as?: boolean;
2574
2864
  };
2575
2865
  export type EditWebsocketTrigger = {
2576
2866
  /**
@@ -2599,11 +2889,11 @@ export type EditWebsocketTrigger = {
2599
2889
  /**
2600
2890
  * Messages to send immediately after connecting (can be raw strings or computed by runnables)
2601
2891
  */
2602
- initial_messages?: Array<WebsocketTriggerInitialMessage>;
2892
+ initial_messages?: Array<WebsocketTriggerInitialMessage> | null;
2603
2893
  /**
2604
2894
  * Arguments to pass to the script/flow that computes the WebSocket URL
2605
2895
  */
2606
- url_runnable_args?: ScriptArgs;
2896
+ url_runnable_args?: (ScriptArgs) | null;
2607
2897
  /**
2608
2898
  * If true, the script can return a message to send back through the WebSocket
2609
2899
  */
@@ -2624,6 +2914,14 @@ export type EditWebsocketTrigger = {
2624
2914
  * Retry configuration for failed executions
2625
2915
  */
2626
2916
  retry?: Retry;
2917
+ /**
2918
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2919
+ */
2920
+ permissioned_as?: string;
2921
+ /**
2922
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2923
+ */
2924
+ preserve_permissioned_as?: boolean;
2627
2925
  };
2628
2926
  export type WebsocketTriggerInitialMessage = {
2629
2927
  raw_message: string;
@@ -2660,19 +2958,19 @@ export type MqttTrigger = TriggerExtraProperty & {
2660
2958
  /**
2661
2959
  * MQTT v3 specific configuration (clean_session)
2662
2960
  */
2663
- v3_config?: MqttV3Config;
2961
+ v3_config?: (MqttV3Config) | null;
2664
2962
  /**
2665
2963
  * MQTT v5 specific configuration (clean_start, topic_alias_maximum, session_expiry_interval)
2666
2964
  */
2667
- v5_config?: MqttV5Config;
2965
+ v5_config?: (MqttV5Config) | null;
2668
2966
  /**
2669
2967
  * MQTT client ID for this connection
2670
2968
  */
2671
- client_id?: string;
2969
+ client_id?: (string) | null;
2672
2970
  /**
2673
2971
  * MQTT protocol version ('v3' or 'v5')
2674
2972
  */
2675
- client_version?: MqttClientVersion;
2973
+ client_version?: (MqttClientVersion) | null;
2676
2974
  /**
2677
2975
  * ID of the server currently handling this trigger (internal)
2678
2976
  */
@@ -2710,19 +3008,19 @@ export type NewMqttTrigger = {
2710
3008
  /**
2711
3009
  * MQTT client ID for this connection
2712
3010
  */
2713
- client_id?: string;
3011
+ client_id?: (string) | null;
2714
3012
  /**
2715
3013
  * MQTT v3 specific configuration (clean_session)
2716
3014
  */
2717
- v3_config?: MqttV3Config;
3015
+ v3_config?: (MqttV3Config) | null;
2718
3016
  /**
2719
3017
  * MQTT v5 specific configuration (clean_start, topic_alias_maximum, session_expiry_interval)
2720
3018
  */
2721
- v5_config?: MqttV5Config;
3019
+ v5_config?: (MqttV5Config) | null;
2722
3020
  /**
2723
3021
  * MQTT protocol version ('v3' or 'v5')
2724
3022
  */
2725
- client_version?: MqttClientVersion;
3023
+ client_version?: (MqttClientVersion) | null;
2726
3024
  /**
2727
3025
  * The unique path identifier for this trigger
2728
3026
  */
@@ -2748,6 +3046,14 @@ export type NewMqttTrigger = {
2748
3046
  * Retry configuration for failed executions
2749
3047
  */
2750
3048
  retry?: Retry;
3049
+ /**
3050
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3051
+ */
3052
+ permissioned_as?: string;
3053
+ /**
3054
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3055
+ */
3056
+ preserve_permissioned_as?: boolean;
2751
3057
  };
2752
3058
  export type EditMqttTrigger = {
2753
3059
  /**
@@ -2761,19 +3067,19 @@ export type EditMqttTrigger = {
2761
3067
  /**
2762
3068
  * MQTT client ID for this connection
2763
3069
  */
2764
- client_id?: string;
3070
+ client_id?: (string) | null;
2765
3071
  /**
2766
3072
  * MQTT v3 specific configuration (clean_session)
2767
3073
  */
2768
- v3_config?: MqttV3Config;
3074
+ v3_config?: (MqttV3Config) | null;
2769
3075
  /**
2770
3076
  * MQTT v5 specific configuration (clean_start, topic_alias_maximum, session_expiry_interval)
2771
3077
  */
2772
- v5_config?: MqttV5Config;
3078
+ v5_config?: (MqttV5Config) | null;
2773
3079
  /**
2774
3080
  * MQTT protocol version ('v3' or 'v5')
2775
3081
  */
2776
- client_version?: MqttClientVersion;
3082
+ client_version?: (MqttClientVersion) | null;
2777
3083
  /**
2778
3084
  * The unique path identifier for this trigger
2779
3085
  */
@@ -2799,6 +3105,14 @@ export type EditMqttTrigger = {
2799
3105
  * Retry configuration for failed executions
2800
3106
  */
2801
3107
  retry?: Retry;
3108
+ /**
3109
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3110
+ */
3111
+ permissioned_as?: string;
3112
+ /**
3113
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3114
+ */
3115
+ preserve_permissioned_as?: boolean;
2802
3116
  };
2803
3117
  /**
2804
3118
  * Delivery mode for messages. 'push' for HTTP push delivery where messages are sent to a webhook endpoint, 'pull' for polling where the trigger actively fetches messages.
@@ -2838,7 +3152,7 @@ export type GcpTrigger = TriggerExtraProperty & {
2838
3152
  */
2839
3153
  server_id?: string;
2840
3154
  delivery_type: DeliveryType;
2841
- delivery_config?: PushConfig;
3155
+ delivery_config?: (PushConfig) | null;
2842
3156
  subscription_mode: SubscriptionMode;
2843
3157
  /**
2844
3158
  * Timestamp of last server heartbeat (internal use).
@@ -2887,7 +3201,7 @@ export type GcpTriggerData = {
2887
3201
  */
2888
3202
  base_endpoint?: string;
2889
3203
  delivery_type?: DeliveryType;
2890
- delivery_config?: PushConfig;
3204
+ delivery_config?: (PushConfig) | null;
2891
3205
  /**
2892
3206
  * The unique path identifier for this trigger.
2893
3207
  */
@@ -2921,6 +3235,14 @@ export type GcpTriggerData = {
2921
3235
  * Retry configuration for failed executions.
2922
3236
  */
2923
3237
  retry?: Retry;
3238
+ /**
3239
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3240
+ */
3241
+ permissioned_as?: string;
3242
+ /**
3243
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3244
+ */
3245
+ preserve_permissioned_as?: boolean;
2924
3246
  };
2925
3247
  export type GetAllTopicSubscription = {
2926
3248
  topic_id: string;
@@ -2945,7 +3267,7 @@ export type SqsTrigger = TriggerExtraProperty & {
2945
3267
  /**
2946
3268
  * Array of SQS message attribute names to include with each message
2947
3269
  */
2948
- message_attributes?: Array<(string)>;
3270
+ message_attributes?: Array<(string)> | null;
2949
3271
  /**
2950
3272
  * ID of the server currently handling this trigger (internal)
2951
3273
  */
@@ -3009,7 +3331,7 @@ export type NewSqsTrigger = {
3009
3331
  /**
3010
3332
  * Array of SQS message attribute names to include with each message
3011
3333
  */
3012
- message_attributes?: Array<(string)>;
3334
+ message_attributes?: Array<(string)> | null;
3013
3335
  /**
3014
3336
  * The unique path identifier for this trigger
3015
3337
  */
@@ -3035,6 +3357,14 @@ export type NewSqsTrigger = {
3035
3357
  * Retry configuration for failed executions
3036
3358
  */
3037
3359
  retry?: Retry;
3360
+ /**
3361
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3362
+ */
3363
+ permissioned_as?: string;
3364
+ /**
3365
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3366
+ */
3367
+ preserve_permissioned_as?: boolean;
3038
3368
  };
3039
3369
  export type EditSqsTrigger = {
3040
3370
  /**
@@ -3052,7 +3382,7 @@ export type EditSqsTrigger = {
3052
3382
  /**
3053
3383
  * Array of SQS message attribute names to include with each message
3054
3384
  */
3055
- message_attributes?: Array<(string)>;
3385
+ message_attributes?: Array<(string)> | null;
3056
3386
  /**
3057
3387
  * The unique path identifier for this trigger
3058
3388
  */
@@ -3078,6 +3408,14 @@ export type EditSqsTrigger = {
3078
3408
  * Retry configuration for failed executions
3079
3409
  */
3080
3410
  retry?: Retry;
3411
+ /**
3412
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3413
+ */
3414
+ permissioned_as?: string;
3415
+ /**
3416
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3417
+ */
3418
+ preserve_permissioned_as?: boolean;
3081
3419
  };
3082
3420
  export type Slot = {
3083
3421
  name?: string;
@@ -3185,6 +3523,14 @@ export type NewPostgresTrigger = {
3185
3523
  * Retry configuration for failed executions
3186
3524
  */
3187
3525
  retry?: Retry;
3526
+ /**
3527
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3528
+ */
3529
+ permissioned_as?: string;
3530
+ /**
3531
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3532
+ */
3533
+ preserve_permissioned_as?: boolean;
3188
3534
  };
3189
3535
  export type EditPostgresTrigger = {
3190
3536
  /**
@@ -3228,6 +3574,14 @@ export type EditPostgresTrigger = {
3228
3574
  * Retry configuration for failed executions
3229
3575
  */
3230
3576
  retry?: Retry;
3577
+ /**
3578
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3579
+ */
3580
+ permissioned_as?: string;
3581
+ /**
3582
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3583
+ */
3584
+ preserve_permissioned_as?: boolean;
3231
3585
  };
3232
3586
  export type KafkaTrigger = TriggerExtraProperty & {
3233
3587
  /**
@@ -3246,6 +3600,14 @@ export type KafkaTrigger = TriggerExtraProperty & {
3246
3600
  key: string;
3247
3601
  value: unknown;
3248
3602
  }>;
3603
+ /**
3604
+ * Initial offset behavior when consumer group has no committed offset. 'latest' starts from new messages only, 'earliest' starts from the beginning.
3605
+ */
3606
+ auto_offset_reset?: 'latest' | 'earliest';
3607
+ /**
3608
+ * When true (default), offsets are committed automatically after receiving each message. When false, you must manually commit offsets using the commit_offsets endpoint.
3609
+ */
3610
+ auto_commit?: boolean;
3249
3611
  /**
3250
3612
  * ID of the server currently handling this trigger (internal)
3251
3613
  */
@@ -3271,6 +3633,10 @@ export type KafkaTrigger = TriggerExtraProperty & {
3271
3633
  */
3272
3634
  retry?: Retry;
3273
3635
  };
3636
+ /**
3637
+ * Initial offset behavior when consumer group has no committed offset. 'latest' starts from new messages only, 'earliest' starts from the beginning.
3638
+ */
3639
+ export type auto_offset_reset = 'latest' | 'earliest';
3274
3640
  export type NewKafkaTrigger = {
3275
3641
  /**
3276
3642
  * The unique path identifier for this trigger
@@ -3300,6 +3666,14 @@ export type NewKafkaTrigger = {
3300
3666
  key: string;
3301
3667
  value: unknown;
3302
3668
  }>;
3669
+ /**
3670
+ * Initial offset behavior when consumer group has no committed offset.
3671
+ */
3672
+ auto_offset_reset?: 'latest' | 'earliest';
3673
+ /**
3674
+ * When true (default), offsets are committed automatically after receiving each message. When false, you must manually commit offsets using the commit_offsets endpoint.
3675
+ */
3676
+ auto_commit?: boolean;
3303
3677
  mode?: TriggerMode;
3304
3678
  /**
3305
3679
  * Path to a script or flow to run when the triggered job fails
@@ -3313,6 +3687,14 @@ export type NewKafkaTrigger = {
3313
3687
  * Retry configuration for failed executions
3314
3688
  */
3315
3689
  retry?: Retry;
3690
+ /**
3691
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3692
+ */
3693
+ permissioned_as?: string;
3694
+ /**
3695
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3696
+ */
3697
+ preserve_permissioned_as?: boolean;
3316
3698
  };
3317
3699
  export type EditKafkaTrigger = {
3318
3700
  /**
@@ -3331,6 +3713,14 @@ export type EditKafkaTrigger = {
3331
3713
  key: string;
3332
3714
  value: unknown;
3333
3715
  }>;
3716
+ /**
3717
+ * Initial offset behavior when consumer group has no committed offset.
3718
+ */
3719
+ auto_offset_reset?: 'latest' | 'earliest';
3720
+ /**
3721
+ * When true (default), offsets are committed automatically after receiving each message. When false, you must manually commit offsets using the commit_offsets endpoint.
3722
+ */
3723
+ auto_commit?: boolean;
3334
3724
  /**
3335
3725
  * The unique path identifier for this trigger
3336
3726
  */
@@ -3355,6 +3745,14 @@ export type EditKafkaTrigger = {
3355
3745
  * Retry configuration for failed executions
3356
3746
  */
3357
3747
  retry?: Retry;
3748
+ /**
3749
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3750
+ */
3751
+ permissioned_as?: string;
3752
+ /**
3753
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3754
+ */
3755
+ preserve_permissioned_as?: boolean;
3358
3756
  };
3359
3757
  export type NatsTrigger = TriggerExtraProperty & {
3360
3758
  /**
@@ -3368,11 +3766,11 @@ export type NatsTrigger = TriggerExtraProperty & {
3368
3766
  /**
3369
3767
  * JetStream stream name (required when use_jetstream is true)
3370
3768
  */
3371
- stream_name?: string;
3769
+ stream_name?: (string) | null;
3372
3770
  /**
3373
3771
  * JetStream consumer name (required when use_jetstream is true)
3374
3772
  */
3375
- consumer_name?: string;
3773
+ consumer_name?: (string) | null;
3376
3774
  /**
3377
3775
  * Array of NATS subjects to subscribe to
3378
3776
  */
@@ -3426,11 +3824,11 @@ export type NewNatsTrigger = {
3426
3824
  /**
3427
3825
  * JetStream stream name (required when use_jetstream is true)
3428
3826
  */
3429
- stream_name?: string;
3827
+ stream_name?: (string) | null;
3430
3828
  /**
3431
3829
  * JetStream consumer name (required when use_jetstream is true)
3432
3830
  */
3433
- consumer_name?: string;
3831
+ consumer_name?: (string) | null;
3434
3832
  /**
3435
3833
  * Array of NATS subjects to subscribe to
3436
3834
  */
@@ -3448,6 +3846,14 @@ export type NewNatsTrigger = {
3448
3846
  * Retry configuration for failed executions
3449
3847
  */
3450
3848
  retry?: Retry;
3849
+ /**
3850
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3851
+ */
3852
+ permissioned_as?: string;
3853
+ /**
3854
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3855
+ */
3856
+ preserve_permissioned_as?: boolean;
3451
3857
  };
3452
3858
  export type EditNatsTrigger = {
3453
3859
  /**
@@ -3461,11 +3867,11 @@ export type EditNatsTrigger = {
3461
3867
  /**
3462
3868
  * JetStream stream name (required when use_jetstream is true)
3463
3869
  */
3464
- stream_name?: string;
3870
+ stream_name?: (string) | null;
3465
3871
  /**
3466
3872
  * JetStream consumer name (required when use_jetstream is true)
3467
3873
  */
3468
- consumer_name?: string;
3874
+ consumer_name?: (string) | null;
3469
3875
  /**
3470
3876
  * Array of NATS subjects to subscribe to
3471
3877
  */
@@ -3494,6 +3900,14 @@ export type EditNatsTrigger = {
3494
3900
  * Retry configuration for failed executions
3495
3901
  */
3496
3902
  retry?: Retry;
3903
+ /**
3904
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3905
+ */
3906
+ permissioned_as?: string;
3907
+ /**
3908
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3909
+ */
3910
+ preserve_permissioned_as?: boolean;
3497
3911
  };
3498
3912
  export type EmailTrigger = TriggerExtraProperty & {
3499
3913
  local_part: string;
@@ -3512,6 +3926,14 @@ export type NewEmailTrigger = {
3512
3926
  error_handler_args?: ScriptArgs;
3513
3927
  retry?: Retry;
3514
3928
  mode?: TriggerMode;
3929
+ /**
3930
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3931
+ */
3932
+ permissioned_as?: string;
3933
+ /**
3934
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3935
+ */
3936
+ preserve_permissioned_as?: boolean;
3515
3937
  };
3516
3938
  export type EditEmailTrigger = {
3517
3939
  path: string;
@@ -3522,6 +3944,14 @@ export type EditEmailTrigger = {
3522
3944
  error_handler_path?: string;
3523
3945
  error_handler_args?: ScriptArgs;
3524
3946
  retry?: Retry;
3947
+ /**
3948
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3949
+ */
3950
+ permissioned_as?: string;
3951
+ /**
3952
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3953
+ */
3954
+ preserve_permissioned_as?: boolean;
3525
3955
  };
3526
3956
  export type Group = {
3527
3957
  name: string;
@@ -3535,11 +3965,14 @@ export type InstanceGroup = {
3535
3965
  name: string;
3536
3966
  summary?: string;
3537
3967
  emails?: Array<(string)>;
3968
+ instance_role?: ('superadmin' | 'devops') | null;
3538
3969
  };
3970
+ export type instance_role = 'superadmin' | 'devops';
3539
3971
  export type InstanceGroupWithWorkspaces = {
3540
3972
  name: string;
3541
3973
  summary?: string;
3542
3974
  emails?: Array<(string)>;
3975
+ instance_role?: ('superadmin' | 'devops') | null;
3543
3976
  workspaces?: Array<WorkspaceInfo>;
3544
3977
  };
3545
3978
  export type WorkspaceInfo = {
@@ -3578,6 +4011,7 @@ export type WorkerPing = {
3578
4011
  memory_usage?: number;
3579
4012
  wm_memory_usage?: number;
3580
4013
  job_isolation?: string;
4014
+ native_mode?: boolean;
3581
4015
  };
3582
4016
  export type UserWorkspaceList = {
3583
4017
  email: string;
@@ -3646,8 +4080,11 @@ export type GlobalUserInfo = {
3646
4080
  username?: string;
3647
4081
  operator_only?: boolean;
3648
4082
  first_time_user: boolean;
4083
+ role_source: 'manual' | 'instance_group';
4084
+ disabled: boolean;
3649
4085
  };
3650
4086
  export type login_type = 'password' | 'github';
4087
+ export type role_source = 'manual' | 'instance_group';
3651
4088
  export type Flow = OpenFlow & FlowMetadata & {
3652
4089
  lock_error_logs?: string;
3653
4090
  version_id?: number;
@@ -3681,6 +4118,10 @@ export type OpenFlowWPath = OpenFlow & {
3681
4118
  timeout?: number;
3682
4119
  visible_to_runner_only?: boolean;
3683
4120
  on_behalf_of_email?: string;
4121
+ /**
4122
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original on_behalf_of_email value instead of overwriting it.
4123
+ */
4124
+ preserve_on_behalf_of?: boolean;
3684
4125
  };
3685
4126
  export type FlowPreview = {
3686
4127
  value: FlowValue;
@@ -3762,9 +4203,7 @@ export type AppWithLastVersion = {
3762
4203
  versions: Array<(number)>;
3763
4204
  created_by: string;
3764
4205
  created_at: string;
3765
- value: {
3766
- [key: string]: unknown;
3767
- };
4206
+ value: unknown;
3768
4207
  policy: Policy;
3769
4208
  execution_mode: 'viewer' | 'publisher' | 'anonymous';
3770
4209
  extra_perms: {
@@ -3935,10 +4374,11 @@ export type S3PermissionRule = {
3935
4374
  allow: string;
3936
4375
  };
3937
4376
  export type GitRepositorySettings = {
3938
- script_path: string;
4377
+ script_path?: string;
3939
4378
  git_repo_resource_path: string;
3940
4379
  use_individual_branch?: boolean;
3941
4380
  group_by_folder?: boolean;
4381
+ force_branch?: string;
3942
4382
  collapsed?: boolean;
3943
4383
  settings?: {
3944
4384
  include_path?: Array<(string)>;
@@ -3993,9 +4433,28 @@ export type ExportedUser = {
3993
4433
  };
3994
4434
  export type GlobalSetting = {
3995
4435
  name: string;
3996
- value: {
4436
+ value: unknown;
4437
+ };
4438
+ /**
4439
+ * Unified instance configuration combining global settings and worker group configs
4440
+ */
4441
+ export type InstanceConfig = {
4442
+ /**
4443
+ * Global settings keyed by setting name. Known fields include base_url, license_key, retention_period_secs, smtp_settings, otel, etc. Unknown fields are preserved as-is.
4444
+ *
4445
+ */
4446
+ global_settings?: {
3997
4447
  [key: string]: unknown;
3998
4448
  };
4449
+ /**
4450
+ * Worker group configurations keyed by group name (e.g. "default", "gpu"). Each value contains worker_tags, init_bash, autoscaling, etc.
4451
+ *
4452
+ */
4453
+ worker_configs?: {
4454
+ [key: string]: {
4455
+ [key: string]: unknown;
4456
+ };
4457
+ };
3999
4458
  };
4000
4459
  export type Config = {
4001
4460
  name: string;
@@ -4010,6 +4469,7 @@ export type ExportedInstanceGroup = {
4010
4469
  id?: string;
4011
4470
  scim_display_name?: string;
4012
4471
  external_id?: string;
4472
+ instance_role?: ('superadmin' | 'devops') | null;
4013
4473
  };
4014
4474
  export type JobSearchHit = {
4015
4475
  dancer?: string;
@@ -4133,7 +4593,7 @@ export type WorkspaceItemDiff = {
4133
4593
  /**
4134
4594
  * Type of the item
4135
4595
  */
4136
- kind: 'script' | 'flow' | 'app' | 'resource' | 'variable' | 'resource_type';
4596
+ kind: 'script' | 'flow' | 'app' | 'raw_app' | 'resource' | 'variable' | 'resource_type';
4137
4597
  /**
4138
4598
  * Path of the item in the workspace
4139
4599
  */
@@ -4162,7 +4622,7 @@ export type WorkspaceItemDiff = {
4162
4622
  /**
4163
4623
  * Type of the item
4164
4624
  */
4165
- export type kind5 = 'script' | 'flow' | 'app' | 'resource' | 'variable' | 'resource_type';
4625
+ export type kind5 = 'script' | 'flow' | 'app' | 'raw_app' | 'resource' | 'variable' | 'resource_type';
4166
4626
  export type CompareSummary = {
4167
4627
  /**
4168
4628
  * Total number of items with differences
@@ -4292,12 +4752,55 @@ export type TeamsChannel = {
4292
4752
  };
4293
4753
  export type AssetUsageKind = 'script' | 'flow' | 'job';
4294
4754
  export type AssetUsageAccessType = 'r' | 'w' | 'rw';
4295
- export type AssetKind = 's3object' | 'resource' | 'ducklake' | 'datatable';
4755
+ export type AssetKind = 's3object' | 'resource' | 'ducklake' | 'datatable' | 'volume';
4296
4756
  export type Asset = {
4297
4757
  path: string;
4298
4758
  kind: AssetKind;
4299
4759
  };
4300
- export type NativeServiceName = 'nextcloud';
4760
+ export type Volume = {
4761
+ name: string;
4762
+ size_bytes: number;
4763
+ file_count: number;
4764
+ created_at: string;
4765
+ created_by: string;
4766
+ updated_at?: (string) | null;
4767
+ last_used_at?: (string) | null;
4768
+ extra_perms?: {
4769
+ [key: string]: unknown;
4770
+ };
4771
+ };
4772
+ /**
4773
+ * A workspace protection rule defining restrictions and bypass permissions
4774
+ */
4775
+ export type ProtectionRuleset = {
4776
+ /**
4777
+ * Unique name for the protection rule
4778
+ */
4779
+ name: string;
4780
+ workspace_id?: string;
4781
+ rules: ProtectionRules;
4782
+ bypass_groups: RuleBypasserGroups;
4783
+ bypass_users: RuleBypasserUsers;
4784
+ };
4785
+ /**
4786
+ * Configuration of protection restrictions
4787
+ */
4788
+ export type ProtectionRules = Array<ProtectionRuleKind>;
4789
+ export type ProtectionRuleKind = 'DisableDirectDeployment' | 'DisableWorkspaceForking';
4790
+ /**
4791
+ * Groups that can bypass this ruleset
4792
+ */
4793
+ export type RuleBypasserGroups = Array<(string)>;
4794
+ /**
4795
+ * Users that can bypass this ruleset
4796
+ */
4797
+ export type RuleBypasserUsers = Array<(string)>;
4798
+ export type QuotaInfo = {
4799
+ used: number;
4800
+ limit: number;
4801
+ prunable: number;
4802
+ };
4803
+ export type NativeServiceName = 'nextcloud' | 'google';
4301
4804
  /**
4302
4805
  * A native trigger stored in Windmill
4303
4806
  */
@@ -4329,6 +4832,10 @@ export type NativeTrigger = {
4329
4832
  * Error message if the trigger is in an error state
4330
4833
  */
4331
4834
  error?: (string) | null;
4835
+ /**
4836
+ * Short summary to be displayed when listed
4837
+ */
4838
+ summary?: (string) | null;
4332
4839
  };
4333
4840
  /**
4334
4841
  * Full trigger response containing both Windmill data and external service data
@@ -4361,6 +4868,10 @@ export type NativeTriggerWithExternal = {
4361
4868
  * Error message if the trigger is in an error state
4362
4869
  */
4363
4870
  error?: (string) | null;
4871
+ /**
4872
+ * Short summary to be displayed when listed
4873
+ */
4874
+ summary?: (string) | null;
4364
4875
  /**
4365
4876
  * Configuration data from the external service
4366
4877
  */
@@ -4371,6 +4882,10 @@ export type NativeTriggerWithExternal = {
4371
4882
  export type WorkspaceIntegrations = {
4372
4883
  service_name: NativeServiceName;
4373
4884
  oauth_data?: (WorkspaceOAuthConfig) | null;
4885
+ /**
4886
+ * Path to the resource storing the OAuth token
4887
+ */
4888
+ resource_path?: (string) | null;
4374
4889
  };
4375
4890
  export type WorkspaceOAuthConfig = {
4376
4891
  /**
@@ -4420,6 +4935,10 @@ export type NativeTriggerData = {
4420
4935
  service_config: {
4421
4936
  [key: string]: unknown;
4422
4937
  };
4938
+ /**
4939
+ * Short summary to be displayed when listed
4940
+ */
4941
+ summary?: (string) | null;
4423
4942
  };
4424
4943
  /**
4425
4944
  * Response returned when a native trigger is created
@@ -4444,6 +4963,25 @@ export type NextCloudEventType = {
4444
4963
  category?: string;
4445
4964
  path: string;
4446
4965
  };
4966
+ export type GoogleCalendarEntry = {
4967
+ id: string;
4968
+ summary: string;
4969
+ primary?: boolean;
4970
+ };
4971
+ export type GoogleDriveFile = {
4972
+ id: string;
4973
+ name: string;
4974
+ mime_type: string;
4975
+ is_folder?: boolean;
4976
+ };
4977
+ export type GoogleDriveFilesResponse = {
4978
+ files: Array<GoogleDriveFile>;
4979
+ next_page_token?: string;
4980
+ };
4981
+ export type SharedDriveEntry = {
4982
+ id: string;
4983
+ name: string;
4984
+ };
4447
4985
  export type ParameterId = string;
4448
4986
  export type ParameterKey = string;
4449
4987
  export type ParameterWorkspaceId = string;
@@ -4472,23 +5010,23 @@ export type ParameterPage = number;
4472
5010
  */
4473
5011
  export type ParameterPerPage = number;
4474
5012
  /**
4475
- * trigger kind (schedule, http, websocket...)
5013
+ * filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
4476
5014
  */
4477
- export type ParameterJobTriggerKind = JobTriggerKind;
5015
+ export type ParameterJobTriggerKind = string;
4478
5016
  /**
4479
5017
  * order by desc order (default true)
4480
5018
  */
4481
5019
  export type ParameterOrderDesc = boolean;
4482
5020
  /**
4483
- * mask to filter exact matching user creator
5021
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
4484
5022
  */
4485
5023
  export type ParameterCreatedBy = string;
4486
5024
  /**
4487
- * mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
5025
+ * filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
4488
5026
  */
4489
5027
  export type ParameterLabel = string;
4490
5028
  /**
4491
- * worker this job was ran on
5029
+ * filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
4492
5030
  */
4493
5031
  export type ParameterWorker = string;
4494
5032
  /**
@@ -4529,7 +5067,7 @@ export type ParameterSkipPreprocessor = boolean;
4529
5067
  */
4530
5068
  export type ParameterPayload = string;
4531
5069
  /**
4532
- * mask to filter matching starting path
5070
+ * filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
4533
5071
  */
4534
5072
  export type ParameterScriptStartPath = string;
4535
5073
  /**
@@ -4537,11 +5075,11 @@ export type ParameterScriptStartPath = string;
4537
5075
  */
4538
5076
  export type ParameterSchedulePath = string;
4539
5077
  /**
4540
- * mask to filter by trigger path
5078
+ * filter by trigger path. Supports comma-separated list (e.g. 'f/trigger1,f/trigger2') and negation by prefixing all values with '!' (e.g. '!f/trigger1,!f/trigger2')
4541
5079
  */
4542
5080
  export type ParameterTriggerPath = string;
4543
5081
  /**
4544
- * mask to filter exact matching path
5082
+ * filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
4545
5083
  */
4546
5084
  export type ParameterScriptExactPath = string;
4547
5085
  /**
@@ -4609,7 +5147,7 @@ export type ParameterAllowWildcards = boolean;
4609
5147
  */
4610
5148
  export type ParameterArgsFilter = string;
4611
5149
  /**
4612
- * filter on jobs with a given tag/worker group
5150
+ * filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
4613
5151
  */
4614
5152
  export type ParameterTag = string;
4615
5153
  /**
@@ -4637,7 +5175,7 @@ export type ParameterResourceName = string;
4637
5175
  */
4638
5176
  export type ParameterActionKind = 'Create' | 'Update' | 'Delete' | 'Execute';
4639
5177
  /**
4640
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
5178
+ * filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
4641
5179
  */
4642
5180
  export type ParameterJobKinds = string;
4643
5181
  export type ParameterRunnableId = string;
@@ -4647,6 +5185,14 @@ export type ParameterGetStarted = boolean;
4647
5185
  export type ParameterConcurrencyId = string;
4648
5186
  export type ParameterRunnableKind = 'script' | 'flow';
4649
5187
  export type BackendVersionResponse = (string);
5188
+ export type GetHealthStatusData = {
5189
+ /**
5190
+ * Force a fresh check, bypassing the cache
5191
+ */
5192
+ force?: boolean;
5193
+ };
5194
+ export type GetHealthStatusResponse = (HealthStatusResponse);
5195
+ export type GetHealthDetailedResponse = (DetailedHealthResponse);
4650
5196
  export type BackendUptodateResponse = (string);
4651
5197
  export type GetLicenseIdResponse = (string);
4652
5198
  export type QueryDocumentationData = {
@@ -4819,6 +5365,7 @@ export type GlobalUserUpdateData = {
4819
5365
  is_super_admin?: boolean;
4820
5366
  is_devops?: boolean;
4821
5367
  name?: string;
5368
+ disabled?: boolean;
4822
5369
  };
4823
5370
  };
4824
5371
  export type GlobalUserUpdateResponse = (string);
@@ -5037,6 +5584,10 @@ export type TestObjectStorageConfigData = {
5037
5584
  };
5038
5585
  export type TestObjectStorageConfigResponse = (string);
5039
5586
  export type SendStatsResponse = (string);
5587
+ export type GetStatsResponse = ({
5588
+ signature?: string;
5589
+ data?: string;
5590
+ });
5040
5591
  export type GetLatestKeyRenewalAttemptResponse = ({
5041
5592
  result: string;
5042
5593
  attempted_at: string;
@@ -5057,6 +5608,14 @@ export type TestMetadataData = {
5057
5608
  };
5058
5609
  export type TestMetadataResponse = (string);
5059
5610
  export type ListGlobalSettingsResponse = (Array<GlobalSetting>);
5611
+ export type GetInstanceConfigResponse = (InstanceConfig);
5612
+ export type SetInstanceConfigData = {
5613
+ /**
5614
+ * full instance configuration to apply
5615
+ */
5616
+ requestBody: InstanceConfig;
5617
+ };
5618
+ export type SetInstanceConfigResponse = (string);
5060
5619
  export type GetMinKeepAliveVersionResponse = ({
5061
5620
  /**
5062
5621
  * minimum version for normal workers
@@ -5172,6 +5731,21 @@ export type ImportInstallationData = {
5172
5731
  workspace: string;
5173
5732
  };
5174
5733
  export type ImportInstallationResponse = (unknown);
5734
+ export type GhesInstallationCallbackData = {
5735
+ requestBody: {
5736
+ /**
5737
+ * The GitHub App installation ID from GHES
5738
+ */
5739
+ installation_id: number;
5740
+ };
5741
+ workspace: string;
5742
+ };
5743
+ export type GhesInstallationCallbackResponse = (unknown);
5744
+ export type GetGhesConfigResponse = ({
5745
+ base_url: string;
5746
+ app_slug: string;
5747
+ client_id: string;
5748
+ });
5175
5749
  export type AcceptInviteData = {
5176
5750
  /**
5177
5751
  * accept invite
@@ -5412,6 +5986,14 @@ export type GetDependentsData = {
5412
5986
  workspace: string;
5413
5987
  };
5414
5988
  export type GetDependentsResponse = (Array<DependencyDependent>);
5989
+ export type GetImportsData = {
5990
+ /**
5991
+ * The script path to get imports for
5992
+ */
5993
+ importerPath: string;
5994
+ workspace: string;
5995
+ };
5996
+ export type GetImportsResponse = (Array<(string)>);
5415
5997
  export type GetDependentsAmountsData = {
5416
5998
  /**
5417
5999
  * List of imported paths to get dependents counts for
@@ -5600,7 +6182,20 @@ export type EditCopilotConfigData = {
5600
6182
  requestBody: AIConfig;
5601
6183
  workspace: string;
5602
6184
  };
5603
- export type EditCopilotConfigResponse = (string);
6185
+ export type EditCopilotConfigResponse = ({
6186
+ effective_ai_config: AIConfig;
6187
+ has_instance_ai_config: boolean;
6188
+ uses_instance_ai_config: boolean;
6189
+ instance_ai_summary?: InstanceAISummary;
6190
+ });
6191
+ export type GetCopilotSettingsStateData = {
6192
+ workspace: string;
6193
+ };
6194
+ export type GetCopilotSettingsStateResponse = ({
6195
+ has_instance_ai_config: boolean;
6196
+ uses_instance_ai_config: boolean;
6197
+ instance_ai_summary?: InstanceAISummary;
6198
+ });
5604
6199
  export type GetCopilotInfoData = {
5605
6200
  workspace: string;
5606
6201
  };
@@ -5663,6 +6258,16 @@ export type EditDataTableConfigData = {
5663
6258
  workspace: string;
5664
6259
  };
5665
6260
  export type EditDataTableConfigResponse = (unknown);
6261
+ export type GetGitSyncEnabledData = {
6262
+ workspace: string;
6263
+ };
6264
+ export type GetGitSyncEnabledResponse = ({
6265
+ enabled?: boolean;
6266
+ reason?: (string) | null;
6267
+ max_repos?: (number) | null;
6268
+ user_count?: (number) | null;
6269
+ max_users?: (number) | null;
6270
+ });
5666
6271
  export type EditWorkspaceGitSyncConfigData = {
5667
6272
  /**
5668
6273
  * Workspace Git sync settings
@@ -5765,6 +6370,7 @@ export type GetWorkspaceDefaultAppData = {
5765
6370
  };
5766
6371
  export type GetWorkspaceDefaultAppResponse = ({
5767
6372
  default_app_path?: string;
6373
+ default_app_raw?: boolean;
5768
6374
  });
5769
6375
  export type GetWorkspaceUsageData = {
5770
6376
  workspace: string;
@@ -5784,6 +6390,7 @@ export type GetUsedTriggersResponse = ({
5784
6390
  sqs_used: boolean;
5785
6391
  email_used: boolean;
5786
6392
  nextcloud_used: boolean;
6393
+ google_used: boolean;
5787
6394
  });
5788
6395
  export type ListUsersData = {
5789
6396
  workspace: string;
@@ -5919,10 +6526,22 @@ export type ExistsVariableData = {
5919
6526
  };
5920
6527
  export type ExistsVariableResponse = (boolean);
5921
6528
  export type ListVariableData = {
6529
+ /**
6530
+ * broad search across multiple fields (case-insensitive substring match)
6531
+ */
6532
+ broadFilter?: string;
6533
+ /**
6534
+ * pattern match filter for description field (case-insensitive)
6535
+ */
6536
+ description?: string;
5922
6537
  /**
5923
6538
  * which page to return (start at 1, default 1)
5924
6539
  */
5925
6540
  page?: number;
6541
+ /**
6542
+ * exact path match filter
6543
+ */
6544
+ path?: string;
5926
6545
  /**
5927
6546
  * filter variables by path prefix
5928
6547
  */
@@ -5931,6 +6550,10 @@ export type ListVariableData = {
5931
6550
  * number of items to return for a given page (default 30, max 100)
5932
6551
  */
5933
6552
  perPage?: number;
6553
+ /**
6554
+ * pattern match filter for non-secret variable values (case-insensitive)
6555
+ */
6556
+ value?: string;
5934
6557
  workspace: string;
5935
6558
  };
5936
6559
  export type ListVariableResponse = (Array<ListableVariable>);
@@ -5988,6 +6611,79 @@ export type WorkspaceMuteCriticalAlertsUiData = {
5988
6611
  workspace: string;
5989
6612
  };
5990
6613
  export type WorkspaceMuteCriticalAlertsUiResponse = (string);
6614
+ export type ListProtectionRulesData = {
6615
+ workspace: string;
6616
+ };
6617
+ export type ListProtectionRulesResponse = (Array<ProtectionRuleset>);
6618
+ export type CreateProtectionRuleData = {
6619
+ /**
6620
+ * New protection rule configuration
6621
+ */
6622
+ requestBody: {
6623
+ /**
6624
+ * Unique name for the protection rule
6625
+ */
6626
+ name: string;
6627
+ rules: ProtectionRules;
6628
+ bypass_groups: RuleBypasserGroups;
6629
+ bypass_users: RuleBypasserUsers;
6630
+ };
6631
+ workspace: string;
6632
+ };
6633
+ export type CreateProtectionRuleResponse = (string);
6634
+ export type UpdateProtectionRuleData = {
6635
+ /**
6636
+ * Updated protection rule configuration
6637
+ */
6638
+ requestBody: {
6639
+ rules: ProtectionRules;
6640
+ bypass_groups: RuleBypasserGroups;
6641
+ bypass_users: RuleBypasserUsers;
6642
+ };
6643
+ /**
6644
+ * Name of the protection rule to update
6645
+ */
6646
+ ruleName: string;
6647
+ workspace: string;
6648
+ };
6649
+ export type UpdateProtectionRuleResponse = (string);
6650
+ export type DeleteProtectionRuleData = {
6651
+ /**
6652
+ * Name of the protection rule to delete
6653
+ */
6654
+ ruleName: string;
6655
+ workspace: string;
6656
+ };
6657
+ export type DeleteProtectionRuleResponse = (string);
6658
+ export type LogAiChatData = {
6659
+ requestBody: {
6660
+ session_id: string;
6661
+ provider: string;
6662
+ model: string;
6663
+ mode: string;
6664
+ };
6665
+ workspace: string;
6666
+ };
6667
+ export type LogAiChatResponse = (void);
6668
+ export type GetCloudQuotasData = {
6669
+ workspace: string;
6670
+ };
6671
+ export type GetCloudQuotasResponse = ({
6672
+ scripts: QuotaInfo;
6673
+ flows: QuotaInfo;
6674
+ apps: QuotaInfo;
6675
+ variables: QuotaInfo;
6676
+ resources: QuotaInfo;
6677
+ });
6678
+ export type PruneVersionsData = {
6679
+ requestBody: {
6680
+ resource_type: 'scripts' | 'flows' | 'apps';
6681
+ };
6682
+ workspace: string;
6683
+ };
6684
+ export type PruneVersionsResponse = ({
6685
+ pruned: number;
6686
+ });
5991
6687
  export type SetPublicAppRateLimitData = {
5992
6688
  /**
5993
6689
  * Public app rate limit configuration
@@ -6072,6 +6768,10 @@ export type CreateAccountData = {
6072
6768
  * MCP server URL for MCP OAuth token refresh
6073
6769
  */
6074
6770
  mcp_server_url?: string;
6771
+ /**
6772
+ * OAuth scopes to use for token refresh. Overrides instance-level scopes.
6773
+ */
6774
+ scopes?: Array<(string)>;
6075
6775
  };
6076
6776
  workspace: string;
6077
6777
  };
@@ -6256,10 +6956,22 @@ export type ExistsResourceData = {
6256
6956
  };
6257
6957
  export type ExistsResourceResponse = (boolean);
6258
6958
  export type ListResourceData = {
6959
+ /**
6960
+ * broad search across multiple fields (case-insensitive substring match)
6961
+ */
6962
+ broadFilter?: string;
6963
+ /**
6964
+ * pattern match filter for description field (case-insensitive)
6965
+ */
6966
+ description?: string;
6259
6967
  /**
6260
6968
  * which page to return (start at 1, default 1)
6261
6969
  */
6262
6970
  page?: number;
6971
+ /**
6972
+ * exact path match filter
6973
+ */
6974
+ path?: string;
6263
6975
  /**
6264
6976
  * filter resources by path prefix
6265
6977
  */
@@ -6276,6 +6988,10 @@ export type ListResourceData = {
6276
6988
  * resource_types to not list from, separated by ',',
6277
6989
  */
6278
6990
  resourceTypeExclude?: string;
6991
+ /**
6992
+ * JSONB subset match filter using base64 encoded JSON
6993
+ */
6994
+ value?: string;
6279
6995
  workspace: string;
6280
6996
  };
6281
6997
  export type ListResourceResponse = (Array<ListableResource>);
@@ -6316,7 +7032,12 @@ export type CreateResourceTypeResponse = (string);
6316
7032
  export type FileResourceTypeToFileExtMapData = {
6317
7033
  workspace: string;
6318
7034
  };
6319
- export type FileResourceTypeToFileExtMapResponse = (unknown);
7035
+ export type FileResourceTypeToFileExtMapResponse = ({
7036
+ [key: string]: {
7037
+ format_extension?: (string) | null;
7038
+ is_fileset?: boolean;
7039
+ };
7040
+ });
6320
7041
  export type DeleteResourceTypeData = {
6321
7042
  path: string;
6322
7043
  workspace: string;
@@ -6566,7 +7287,7 @@ export type ListSearchScriptResponse = (Array<{
6566
7287
  }>);
6567
7288
  export type ListScriptsData = {
6568
7289
  /**
6569
- * mask to filter exact matching user creator
7290
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
6570
7291
  */
6571
7292
  createdBy?: string;
6572
7293
  /**
@@ -6838,6 +7559,14 @@ export type UpdateScriptHistoryData = {
6838
7559
  workspace: string;
6839
7560
  };
6840
7561
  export type UpdateScriptHistoryResponse = (string);
7562
+ export type ListDedicatedWithDepsData = {
7563
+ workspace: string;
7564
+ };
7565
+ export type ListDedicatedWithDepsResponse = (Array<{
7566
+ path: string;
7567
+ language: 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'graphql' | 'nativets' | 'bun' | 'bunnative' | 'php' | 'rust' | 'ansible' | 'csharp' | 'oracledb' | 'duckdb' | 'java' | 'ruby';
7568
+ workspace_dep_names: Array<(string)>;
7569
+ }>);
6841
7570
  export type RawScriptByPathData = {
6842
7571
  path: string;
6843
7572
  workspace: string;
@@ -6875,6 +7604,47 @@ export type GetScriptDeploymentStatusResponse = ({
6875
7604
  lock_error_logs?: string;
6876
7605
  job_id?: string;
6877
7606
  });
7607
+ export type StoreRawScriptTempData = {
7608
+ /**
7609
+ * script content to store
7610
+ */
7611
+ requestBody: string;
7612
+ workspace: string;
7613
+ };
7614
+ export type StoreRawScriptTempResponse = (string);
7615
+ export type DiffRawScriptsWithDeployedData = {
7616
+ /**
7617
+ * scripts and workspace deps to diff against deployed versions
7618
+ */
7619
+ requestBody: {
7620
+ /**
7621
+ * map of script path to SHA256 content hash
7622
+ */
7623
+ scripts: {
7624
+ [key: string]: (string);
7625
+ };
7626
+ /**
7627
+ * workspace dependencies to diff
7628
+ */
7629
+ workspace_deps?: Array<{
7630
+ /**
7631
+ * CLI path (e.g. dependencies/package.json)
7632
+ */
7633
+ path: string;
7634
+ language: ScriptLang;
7635
+ /**
7636
+ * named workspace dependency (null for default)
7637
+ */
7638
+ name?: string;
7639
+ /**
7640
+ * SHA256 content hash
7641
+ */
7642
+ hash: string;
7643
+ }>;
7644
+ };
7645
+ workspace: string;
7646
+ };
7647
+ export type DiffRawScriptsWithDeployedResponse = (Array<(string)>);
6878
7648
  export type ListSelectedJobGroupsData = {
6879
7649
  /**
6880
7650
  * script args
@@ -7476,7 +8246,7 @@ export type ListSearchFlowResponse = (Array<{
7476
8246
  }>);
7477
8247
  export type ListFlowsData = {
7478
8248
  /**
7479
- * mask to filter exact matching user creator
8249
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
7480
8250
  */
7481
8251
  createdBy?: string;
7482
8252
  /**
@@ -7712,7 +8482,7 @@ export type ListConversationMessagesData = {
7712
8482
  export type ListConversationMessagesResponse = (Array<FlowConversationMessage>);
7713
8483
  export type ListRawAppsData = {
7714
8484
  /**
7715
- * mask to filter exact matching user creator
8485
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
7716
8486
  */
7717
8487
  createdBy?: string;
7718
8488
  /**
@@ -7758,7 +8528,7 @@ export type ListSearchAppResponse = (Array<{
7758
8528
  }>);
7759
8529
  export type ListAppsData = {
7760
8530
  /**
7761
- * mask to filter exact matching user creator
8531
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
7762
8532
  */
7763
8533
  createdBy?: string;
7764
8534
  /**
@@ -7814,6 +8584,10 @@ export type CreateAppData = {
7814
8584
  draft_only?: boolean;
7815
8585
  deployment_message?: string;
7816
8586
  custom_path?: string;
8587
+ /**
8588
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original on_behalf_of value in the policy instead of overwriting it.
8589
+ */
8590
+ preserve_on_behalf_of?: boolean;
7817
8591
  };
7818
8592
  workspace: string;
7819
8593
  };
@@ -7831,6 +8605,10 @@ export type CreateAppRawData = {
7831
8605
  draft_only?: boolean;
7832
8606
  deployment_message?: string;
7833
8607
  custom_path?: string;
8608
+ /**
8609
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original on_behalf_of value in the policy instead of overwriting it.
8610
+ */
8611
+ preserve_on_behalf_of?: boolean;
7834
8612
  };
7835
8613
  js?: string;
7836
8614
  css?: string;
@@ -7929,6 +8707,10 @@ export type UpdateAppData = {
7929
8707
  policy?: Policy;
7930
8708
  deployment_message?: string;
7931
8709
  custom_path?: string;
8710
+ /**
8711
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original on_behalf_of value in the policy instead of overwriting it.
8712
+ */
8713
+ preserve_on_behalf_of?: boolean;
7932
8714
  };
7933
8715
  workspace: string;
7934
8716
  };
@@ -7945,6 +8727,10 @@ export type UpdateAppRawData = {
7945
8727
  policy?: Policy;
7946
8728
  deployment_message?: string;
7947
8729
  custom_path?: string;
8730
+ /**
8731
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original on_behalf_of value in the policy instead of overwriting it.
8732
+ */
8733
+ preserve_on_behalf_of?: boolean;
7948
8734
  };
7949
8735
  js?: string;
7950
8736
  css?: string;
@@ -8281,6 +9067,24 @@ export type RunScriptPreviewInlineData = {
8281
9067
  workspace: string;
8282
9068
  };
8283
9069
  export type RunScriptPreviewInlineResponse = (unknown);
9070
+ export type RunScriptByPathInlineData = {
9071
+ path: string;
9072
+ /**
9073
+ * script args
9074
+ */
9075
+ requestBody: InlineScriptArgs;
9076
+ workspace: string;
9077
+ };
9078
+ export type RunScriptByPathInlineResponse = (unknown);
9079
+ export type RunScriptByHashInlineData = {
9080
+ hash: string;
9081
+ /**
9082
+ * script args
9083
+ */
9084
+ requestBody: InlineScriptArgs;
9085
+ workspace: string;
9086
+ };
9087
+ export type RunScriptByHashInlineResponse = (unknown);
8284
9088
  export type RunScriptPreviewAndWaitResultData = {
8285
9089
  /**
8286
9090
  * preview
@@ -8372,7 +9176,7 @@ export type ListQueueData = {
8372
9176
  */
8373
9177
  args?: string;
8374
9178
  /**
8375
- * mask to filter exact matching user creator
9179
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
8376
9180
  */
8377
9181
  createdBy?: string;
8378
9182
  /**
@@ -8380,7 +9184,7 @@ export type ListQueueData = {
8380
9184
  */
8381
9185
  isNotSchedule?: boolean;
8382
9186
  /**
8383
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
9187
+ * filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
8384
9188
  */
8385
9189
  jobKinds?: string;
8386
9190
  /**
@@ -8420,11 +9224,11 @@ export type ListQueueData = {
8420
9224
  */
8421
9225
  scriptHash?: string;
8422
9226
  /**
8423
- * mask to filter exact matching path
9227
+ * filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
8424
9228
  */
8425
9229
  scriptPathExact?: string;
8426
9230
  /**
8427
- * mask to filter matching starting path
9231
+ * filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
8428
9232
  */
8429
9233
  scriptPathStart?: string;
8430
9234
  /**
@@ -8444,19 +9248,19 @@ export type ListQueueData = {
8444
9248
  */
8445
9249
  suspended?: boolean;
8446
9250
  /**
8447
- * filter on jobs with a given tag/worker group
9251
+ * filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
8448
9252
  */
8449
9253
  tag?: string;
8450
9254
  /**
8451
- * trigger kind (schedule, http, websocket...)
9255
+ * filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
8452
9256
  */
8453
- triggerKind?: JobTriggerKind;
9257
+ triggerKind?: string;
8454
9258
  /**
8455
- * mask to filter by trigger path
9259
+ * filter by trigger path. Supports comma-separated list (e.g. 'f/trigger1,f/trigger2') and negation by prefixing all values with '!' (e.g. '!f/trigger1,!f/trigger2')
8456
9260
  */
8457
9261
  triggerPath?: string;
8458
9262
  /**
8459
- * worker this job was ran on
9263
+ * filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
8460
9264
  */
8461
9265
  worker?: string;
8462
9266
  workspace: string;
@@ -8521,7 +9325,7 @@ export type ListFilteredJobsUuidsData = {
8521
9325
  */
8522
9326
  createdBeforeQueue?: string;
8523
9327
  /**
8524
- * mask to filter exact matching user creator
9328
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
8525
9329
  */
8526
9330
  createdBy?: string;
8527
9331
  /**
@@ -8541,11 +9345,11 @@ export type ListFilteredJobsUuidsData = {
8541
9345
  */
8542
9346
  isSkipped?: boolean;
8543
9347
  /**
8544
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
9348
+ * filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
8545
9349
  */
8546
9350
  jobKinds?: string;
8547
9351
  /**
8548
- * mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
9352
+ * filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
8549
9353
  */
8550
9354
  label?: string;
8551
9355
  /**
@@ -8581,11 +9385,11 @@ export type ListFilteredJobsUuidsData = {
8581
9385
  */
8582
9386
  scriptHash?: string;
8583
9387
  /**
8584
- * mask to filter exact matching path
9388
+ * filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
8585
9389
  */
8586
9390
  scriptPathExact?: string;
8587
9391
  /**
8588
- * mask to filter matching starting path
9392
+ * filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
8589
9393
  */
8590
9394
  scriptPathStart?: string;
8591
9395
  /**
@@ -8605,11 +9409,11 @@ export type ListFilteredJobsUuidsData = {
8605
9409
  */
8606
9410
  suspended?: boolean;
8607
9411
  /**
8608
- * filter on jobs with a given tag/worker group
9412
+ * filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
8609
9413
  */
8610
9414
  tag?: string;
8611
9415
  /**
8612
- * worker this job was ran on
9416
+ * filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
8613
9417
  */
8614
9418
  worker?: string;
8615
9419
  workspace: string;
@@ -8630,7 +9434,7 @@ export type ListFilteredQueueUuidsData = {
8630
9434
  args?: string;
8631
9435
  concurrencyKey?: string;
8632
9436
  /**
8633
- * mask to filter exact matching user creator
9437
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
8634
9438
  */
8635
9439
  createdBy?: string;
8636
9440
  /**
@@ -8638,7 +9442,7 @@ export type ListFilteredQueueUuidsData = {
8638
9442
  */
8639
9443
  isNotSchedule?: boolean;
8640
9444
  /**
8641
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
9445
+ * filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
8642
9446
  */
8643
9447
  jobKinds?: string;
8644
9448
  /**
@@ -8678,11 +9482,11 @@ export type ListFilteredQueueUuidsData = {
8678
9482
  */
8679
9483
  scriptHash?: string;
8680
9484
  /**
8681
- * mask to filter exact matching path
9485
+ * filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
8682
9486
  */
8683
9487
  scriptPathExact?: string;
8684
9488
  /**
8685
- * mask to filter matching starting path
9489
+ * filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
8686
9490
  */
8687
9491
  scriptPathStart?: string;
8688
9492
  /**
@@ -8702,7 +9506,7 @@ export type ListFilteredQueueUuidsData = {
8702
9506
  */
8703
9507
  suspended?: boolean;
8704
9508
  /**
8705
- * filter on jobs with a given tag/worker group
9509
+ * filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
8706
9510
  */
8707
9511
  tag?: string;
8708
9512
  workspace: string;
@@ -8776,7 +9580,7 @@ export type ListCompletedJobsData = {
8776
9580
  */
8777
9581
  args?: string;
8778
9582
  /**
8779
- * mask to filter exact matching user creator
9583
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
8780
9584
  */
8781
9585
  createdBy?: string;
8782
9586
  /**
@@ -8796,11 +9600,11 @@ export type ListCompletedJobsData = {
8796
9600
  */
8797
9601
  isSkipped?: boolean;
8798
9602
  /**
8799
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
9603
+ * filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
8800
9604
  */
8801
9605
  jobKinds?: string;
8802
9606
  /**
8803
- * mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
9607
+ * filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
8804
9608
  */
8805
9609
  label?: string;
8806
9610
  /**
@@ -8832,11 +9636,11 @@ export type ListCompletedJobsData = {
8832
9636
  */
8833
9637
  scriptHash?: string;
8834
9638
  /**
8835
- * mask to filter exact matching path
9639
+ * filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
8836
9640
  */
8837
9641
  scriptPathExact?: string;
8838
9642
  /**
8839
- * mask to filter matching starting path
9643
+ * filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
8840
9644
  */
8841
9645
  scriptPathStart?: string;
8842
9646
  /**
@@ -8852,11 +9656,11 @@ export type ListCompletedJobsData = {
8852
9656
  */
8853
9657
  success?: boolean;
8854
9658
  /**
8855
- * filter on jobs with a given tag/worker group
9659
+ * filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
8856
9660
  */
8857
9661
  tag?: string;
8858
9662
  /**
8859
- * worker this job was ran on
9663
+ * filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
8860
9664
  */
8861
9665
  worker?: string;
8862
9666
  workspace: string;
@@ -8914,6 +9718,10 @@ export type ListJobsData = {
8914
9718
  * filter on jobs containing those args as a json subset (@> in postgres)
8915
9719
  */
8916
9720
  args?: string;
9721
+ /**
9722
+ * broad search across multiple fields (case-insensitive substring match on path, tag, schedule path, trigger kind, label)
9723
+ */
9724
+ broadFilter?: string;
8917
9725
  /**
8918
9726
  * filter on started after (exclusive) timestamp
8919
9727
  */
@@ -8939,7 +9747,7 @@ export type ListJobsData = {
8939
9747
  */
8940
9748
  createdBeforeQueue?: string;
8941
9749
  /**
8942
- * mask to filter exact matching user creator
9750
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
8943
9751
  */
8944
9752
  createdBy?: string;
8945
9753
  /**
@@ -8959,11 +9767,11 @@ export type ListJobsData = {
8959
9767
  */
8960
9768
  isSkipped?: boolean;
8961
9769
  /**
8962
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
9770
+ * filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
8963
9771
  */
8964
9772
  jobKinds?: string;
8965
9773
  /**
8966
- * mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
9774
+ * filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
8967
9775
  */
8968
9776
  label?: string;
8969
9777
  /**
@@ -8995,11 +9803,11 @@ export type ListJobsData = {
8995
9803
  */
8996
9804
  scriptHash?: string;
8997
9805
  /**
8998
- * mask to filter exact matching path
9806
+ * filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
8999
9807
  */
9000
9808
  scriptPathExact?: string;
9001
9809
  /**
9002
- * mask to filter matching starting path
9810
+ * filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
9003
9811
  */
9004
9812
  scriptPathStart?: string;
9005
9813
  /**
@@ -9019,15 +9827,15 @@ export type ListJobsData = {
9019
9827
  */
9020
9828
  suspended?: boolean;
9021
9829
  /**
9022
- * filter on jobs with a given tag/worker group
9830
+ * filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
9023
9831
  */
9024
9832
  tag?: string;
9025
9833
  /**
9026
- * trigger kind (schedule, http, websocket...)
9834
+ * filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
9027
9835
  */
9028
- triggerKind?: JobTriggerKind;
9836
+ triggerKind?: string;
9029
9837
  /**
9030
- * worker this job was ran on
9838
+ * filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
9031
9839
  */
9032
9840
  worker?: string;
9033
9841
  workspace: string;
@@ -9106,6 +9914,7 @@ export type GetJobUpdatesResponse = ({
9106
9914
  workflow_as_code_status?: WorkflowStatus;
9107
9915
  });
9108
9916
  export type GetJobUpdatesSseData = {
9917
+ fast?: boolean;
9109
9918
  getProgress?: boolean;
9110
9919
  id: string;
9111
9920
  logOffset?: number;
@@ -9237,28 +10046,91 @@ export type GetResumeUrlsResponse = ({
9237
10046
  });
9238
10047
  export type GetSlackApprovalPayloadData = {
9239
10048
  approver?: string;
10049
+ cancelButtonText?: string;
9240
10050
  channelId: string;
9241
10051
  defaultArgsJson?: string;
9242
10052
  dynamicEnumsJson?: string;
9243
10053
  flowStepId: string;
9244
10054
  id: string;
9245
10055
  message?: string;
10056
+ resumeButtonText?: string;
9246
10057
  slackResourcePath: string;
9247
10058
  workspace: string;
9248
10059
  };
9249
10060
  export type GetSlackApprovalPayloadResponse = (unknown);
9250
10061
  export type GetTeamsApprovalPayloadData = {
9251
10062
  approver?: string;
10063
+ cancelButtonText?: string;
9252
10064
  channelName: string;
9253
10065
  defaultArgsJson?: string;
9254
10066
  dynamicEnumsJson?: string;
9255
10067
  flowStepId: string;
9256
10068
  id: string;
9257
10069
  message?: string;
10070
+ resumeButtonText?: string;
9258
10071
  teamName: string;
9259
10072
  workspace: string;
9260
10073
  };
9261
10074
  export type GetTeamsApprovalPayloadResponse = (unknown);
10075
+ export type ResumeSuspendedData = {
10076
+ jobId: string;
10077
+ requestBody: {
10078
+ /**
10079
+ * payload to send to the resumed job
10080
+ */
10081
+ payload?: unknown;
10082
+ /**
10083
+ * approval token for unauthenticated access
10084
+ */
10085
+ approval_token?: string;
10086
+ /**
10087
+ * whether to approve (true) or cancel (false) the job
10088
+ */
10089
+ approved?: boolean;
10090
+ };
10091
+ workspace: string;
10092
+ };
10093
+ export type ResumeSuspendedResponse = (string);
10094
+ export type GetApprovalInfoData = {
10095
+ jobId: string;
10096
+ /**
10097
+ * approval token for unauthenticated access
10098
+ */
10099
+ token?: string;
10100
+ workspace: string;
10101
+ };
10102
+ export type GetApprovalInfoResponse = ({
10103
+ flow_id: string;
10104
+ /**
10105
+ * form schema for the approval step
10106
+ */
10107
+ form_schema?: unknown;
10108
+ /**
10109
+ * description of the approval step
10110
+ */
10111
+ description?: unknown;
10112
+ approval_conditions?: {
10113
+ user_auth_required: boolean;
10114
+ user_groups_required: Array<(string)>;
10115
+ self_approval_disabled: boolean;
10116
+ };
10117
+ /**
10118
+ * whether the current user/token holder can approve
10119
+ */
10120
+ can_approve: boolean;
10121
+ /**
10122
+ * whether user authentication is required to approve
10123
+ */
10124
+ user_auth_required: boolean;
10125
+ /**
10126
+ * whether to hide the cancel button in the UI
10127
+ */
10128
+ hide_cancel?: boolean;
10129
+ approvers: Array<{
10130
+ resume_id: number;
10131
+ approver: string;
10132
+ }>;
10133
+ });
9262
10134
  export type ResumeSuspendedJobGetData = {
9263
10135
  approver?: string;
9264
10136
  id: string;
@@ -9400,6 +10272,14 @@ export type ListSchedulesData = {
9400
10272
  * filter on jobs containing those args as a json subset (@> in postgres)
9401
10273
  */
9402
10274
  args?: string;
10275
+ /**
10276
+ * broad search across multiple fields (case-insensitive substring match)
10277
+ */
10278
+ broadFilter?: string;
10279
+ /**
10280
+ * pattern match filter for description field (case-insensitive)
10281
+ */
10282
+ description?: string;
9403
10283
  /**
9404
10284
  * filter schedules by whether they target a flow
9405
10285
  */
@@ -9409,7 +10289,7 @@ export type ListSchedulesData = {
9409
10289
  */
9410
10290
  page?: number;
9411
10291
  /**
9412
- * filter by path
10292
+ * filter by path (script path)
9413
10293
  */
9414
10294
  path?: string;
9415
10295
  /**
@@ -9420,6 +10300,14 @@ export type ListSchedulesData = {
9420
10300
  * number of items to return for a given page (default 30, max 100)
9421
10301
  */
9422
10302
  perPage?: number;
10303
+ /**
10304
+ * exact match on the schedule's path
10305
+ */
10306
+ schedulePath?: string;
10307
+ /**
10308
+ * pattern match filter for summary field (case-insensitive)
10309
+ */
10310
+ summary?: string;
9423
10311
  workspace: string;
9424
10312
  };
9425
10313
  export type ListSchedulesResponse = (Array<Schedule>);
@@ -9694,6 +10582,24 @@ export type TestKafkaConnectionData = {
9694
10582
  workspace: string;
9695
10583
  };
9696
10584
  export type TestKafkaConnectionResponse = (string);
10585
+ export type ResetKafkaOffsetsData = {
10586
+ path: string;
10587
+ workspace: string;
10588
+ };
10589
+ export type ResetKafkaOffsetsResponse = (unknown);
10590
+ export type CommitKafkaOffsetsData = {
10591
+ path: string;
10592
+ /**
10593
+ * offsets to commit
10594
+ */
10595
+ requestBody: {
10596
+ topic: string;
10597
+ partition: number;
10598
+ offset: number;
10599
+ };
10600
+ workspace: string;
10601
+ };
10602
+ export type CommitKafkaOffsetsResponse = (unknown);
9697
10603
  export type CreateNatsTriggerData = {
9698
10604
  /**
9699
10605
  * new nats trigger
@@ -9867,19 +10773,36 @@ export type GenerateNativeTriggerServiceConnectUrlData = {
9867
10773
  workspace: string;
9868
10774
  };
9869
10775
  export type GenerateNativeTriggerServiceConnectUrlResponse = (string);
10776
+ export type CheckInstanceSharingAvailableData = {
10777
+ serviceName: NativeServiceName;
10778
+ workspace: string;
10779
+ };
10780
+ export type CheckInstanceSharingAvailableResponse = (boolean);
10781
+ export type GenerateInstanceConnectUrlData = {
10782
+ /**
10783
+ * redirect_uri
10784
+ */
10785
+ requestBody: RedirectUri;
10786
+ serviceName: NativeServiceName;
10787
+ workspace: string;
10788
+ };
10789
+ export type GenerateInstanceConnectUrlResponse = (string);
9870
10790
  export type DeleteNativeTriggerServiceData = {
9871
10791
  serviceName: NativeServiceName;
9872
10792
  workspace: string;
9873
10793
  };
9874
10794
  export type DeleteNativeTriggerServiceResponse = (string);
9875
10795
  export type NativeTriggerServiceCallbackData = {
9876
- code: string;
9877
10796
  /**
9878
- * redirect_uri
10797
+ * OAuth callback data
9879
10798
  */
9880
- requestBody: RedirectUri;
10799
+ requestBody: {
10800
+ code: string;
10801
+ state: string;
10802
+ redirect_uri: string;
10803
+ resource_path?: string;
10804
+ };
9881
10805
  serviceName: NativeServiceName;
9882
- state: string;
9883
10806
  workspace: string;
9884
10807
  };
9885
10808
  export type NativeTriggerServiceCallbackResponse = (string);
@@ -9962,6 +10885,34 @@ export type ListNextCloudEventsData = {
9962
10885
  workspace: string;
9963
10886
  };
9964
10887
  export type ListNextCloudEventsResponse = (Array<NextCloudEventType>);
10888
+ export type ListGoogleCalendarsData = {
10889
+ workspace: string;
10890
+ };
10891
+ export type ListGoogleCalendarsResponse = (Array<GoogleCalendarEntry>);
10892
+ export type ListGoogleDriveFilesData = {
10893
+ /**
10894
+ * token for next page of results
10895
+ */
10896
+ pageToken?: string;
10897
+ /**
10898
+ * folder ID to list children of
10899
+ */
10900
+ parentId?: string;
10901
+ /**
10902
+ * search query to filter files by name
10903
+ */
10904
+ q?: string;
10905
+ /**
10906
+ * if true, list files shared with the user
10907
+ */
10908
+ sharedWithMe?: boolean;
10909
+ workspace: string;
10910
+ };
10911
+ export type ListGoogleDriveFilesResponse = (GoogleDriveFilesResponse);
10912
+ export type ListGoogleSharedDrivesData = {
10913
+ workspace: string;
10914
+ };
10915
+ export type ListGoogleSharedDrivesResponse = (Array<SharedDriveEntry>);
9965
10916
  export type NativeTriggerWebhookData = {
9966
10917
  /**
9967
10918
  * The internal database ID of the trigger
@@ -10387,7 +11338,7 @@ export type ListInstanceGroupsWithWorkspacesResponse = (Array<InstanceGroupWithW
10387
11338
  export type GetInstanceGroupData = {
10388
11339
  name: string;
10389
11340
  };
10390
- export type GetInstanceGroupResponse = (InstanceGroup);
11341
+ export type GetInstanceGroupResponse = (InstanceGroupWithWorkspaces);
10391
11342
  export type CreateInstanceGroupData = {
10392
11343
  /**
10393
11344
  * create instance group
@@ -10405,6 +11356,10 @@ export type UpdateInstanceGroupData = {
10405
11356
  */
10406
11357
  requestBody: {
10407
11358
  new_summary: string;
11359
+ /**
11360
+ * Instance-level role for group members. 'superadmin', 'devops', 'user' or empty to clear.
11361
+ */
11362
+ instance_role?: (string) | null;
10408
11363
  };
10409
11364
  };
10410
11365
  export type UpdateInstanceGroupResponse = (string);
@@ -10793,7 +11748,7 @@ export type ListBlacklistedAgentTokensResponse = (Array<{
10793
11748
  }>);
10794
11749
  export type GetMinVersionResponse = (string);
10795
11750
  export type GetGranularAclsData = {
10796
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger';
11751
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger' | 'volume';
10797
11752
  path: string;
10798
11753
  workspace: string;
10799
11754
  };
@@ -10801,7 +11756,7 @@ export type GetGranularAclsResponse = ({
10801
11756
  [key: string]: (boolean);
10802
11757
  });
10803
11758
  export type AddGranularAclsData = {
10804
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger';
11759
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger' | 'volume';
10805
11760
  path: string;
10806
11761
  /**
10807
11762
  * acl to add
@@ -10814,7 +11769,7 @@ export type AddGranularAclsData = {
10814
11769
  };
10815
11770
  export type AddGranularAclsResponse = (string);
10816
11771
  export type RemoveGranularAclsData = {
10817
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger';
11772
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger' | 'volume';
10818
11773
  path: string;
10819
11774
  /**
10820
11775
  * acl to add
@@ -11329,7 +12284,7 @@ export type ListExtendedJobsData = {
11329
12284
  */
11330
12285
  createdBeforeQueue?: string;
11331
12286
  /**
11332
- * mask to filter exact matching user creator
12287
+ * filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
11333
12288
  */
11334
12289
  createdBy?: string;
11335
12290
  /**
@@ -11349,11 +12304,11 @@ export type ListExtendedJobsData = {
11349
12304
  */
11350
12305
  isSkipped?: boolean;
11351
12306
  /**
11352
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
12307
+ * filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
11353
12308
  */
11354
12309
  jobKinds?: string;
11355
12310
  /**
11356
- * mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
12311
+ * filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
11357
12312
  */
11358
12313
  label?: string;
11359
12314
  /**
@@ -11390,11 +12345,11 @@ export type ListExtendedJobsData = {
11390
12345
  */
11391
12346
  scriptHash?: string;
11392
12347
  /**
11393
- * mask to filter exact matching path
12348
+ * filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
11394
12349
  */
11395
12350
  scriptPathExact?: string;
11396
12351
  /**
11397
- * mask to filter matching starting path
12352
+ * filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
11398
12353
  */
11399
12354
  scriptPathStart?: string;
11400
12355
  /**
@@ -11410,13 +12365,13 @@ export type ListExtendedJobsData = {
11410
12365
  */
11411
12366
  success?: boolean;
11412
12367
  /**
11413
- * filter on jobs with a given tag/worker group
12368
+ * filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
11414
12369
  */
11415
12370
  tag?: string;
11416
12371
  /**
11417
- * trigger kind (schedule, http, websocket...)
12372
+ * filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
11418
12373
  */
11419
- triggerKind?: JobTriggerKind;
12374
+ triggerKind?: string;
11420
12375
  workspace: string;
11421
12376
  };
11422
12377
  export type ListExtendedJobsResponse = (ExtendedJobs);
@@ -11450,6 +12405,10 @@ export type SearchJobsIndexResponse = ({
11450
12405
  * Is the current indexer service being replaced
11451
12406
  */
11452
12407
  lost_lock_ownership?: boolean;
12408
+ /**
12409
+ * Maximum time window in seconds for indexing
12410
+ */
12411
+ max_index_time_window_secs?: number;
11453
12412
  };
11454
12413
  });
11455
12414
  export type SearchLogsIndexData = {
@@ -11487,10 +12446,44 @@ export type CountSearchLogsIndexResponse = ({
11487
12446
  [key: string]: unknown;
11488
12447
  };
11489
12448
  });
12449
+ export type GetIndexDiskStorageSizesResponse = ({
12450
+ job_index_disk_size_bytes?: (number) | null;
12451
+ log_index_disk_size_bytes?: (number) | null;
12452
+ });
11490
12453
  export type ClearIndexData = {
11491
12454
  idxName: 'JobIndex' | 'ServiceLogIndex';
11492
12455
  };
11493
12456
  export type ClearIndexResponse = (string);
12457
+ export type GetIndexStorageSizesResponse = ({
12458
+ job_index?: {
12459
+ disk_size_bytes?: (number) | null;
12460
+ s3_size_bytes?: (number) | null;
12461
+ };
12462
+ service_log_index?: {
12463
+ disk_size_bytes?: (number) | null;
12464
+ s3_size_bytes?: (number) | null;
12465
+ };
12466
+ });
12467
+ export type GetIndexerStatusResponse = ({
12468
+ job_indexer?: {
12469
+ is_alive?: boolean;
12470
+ last_locked_at?: (string) | null;
12471
+ owner?: (string) | null;
12472
+ storage?: {
12473
+ disk_size_bytes?: (number) | null;
12474
+ s3_size_bytes?: (number) | null;
12475
+ };
12476
+ };
12477
+ log_indexer?: {
12478
+ is_alive?: boolean;
12479
+ last_locked_at?: (string) | null;
12480
+ owner?: (string) | null;
12481
+ storage?: {
12482
+ disk_size_bytes?: (number) | null;
12483
+ s3_size_bytes?: (number) | null;
12484
+ };
12485
+ };
12486
+ });
11494
12487
  export type ListAssetsData = {
11495
12488
  /**
11496
12489
  * Filter by asset kinds (multiple values allowed)
@@ -11500,6 +12493,14 @@ export type ListAssetsData = {
11500
12493
  * Filter by asset path (case-insensitive partial match)
11501
12494
  */
11502
12495
  assetPath?: string;
12496
+ /**
12497
+ * broad search across multiple fields (case-insensitive substring match)
12498
+ */
12499
+ broadFilter?: string;
12500
+ /**
12501
+ * JSONB subset match filter for columns using base64 encoded JSON
12502
+ */
12503
+ columns?: string;
11503
12504
  /**
11504
12505
  * Cursor timestamp for pagination (created_at of last item from previous page)
11505
12506
  */
@@ -11508,6 +12509,10 @@ export type ListAssetsData = {
11508
12509
  * Cursor ID for pagination (id of last item from previous page)
11509
12510
  */
11510
12511
  cursorId?: number;
12512
+ /**
12513
+ * exact path match filter
12514
+ */
12515
+ path?: string;
11511
12516
  /**
11512
12517
  * Number of items per page (max 1000, default 50)
11513
12518
  */
@@ -11594,6 +12599,26 @@ export type ListFavoriteAssetsResponse = (Array<{
11594
12599
  */
11595
12600
  path: string;
11596
12601
  }>);
12602
+ export type ListVolumesData = {
12603
+ workspace: string;
12604
+ };
12605
+ export type ListVolumesResponse = (Array<Volume>);
12606
+ export type GetVolumeStorageData = {
12607
+ workspace: string;
12608
+ };
12609
+ export type GetVolumeStorageResponse = ((string) | null);
12610
+ export type CreateVolumeData = {
12611
+ requestBody: {
12612
+ name: string;
12613
+ };
12614
+ workspace: string;
12615
+ };
12616
+ export type CreateVolumeResponse = (string);
12617
+ export type DeleteVolumeData = {
12618
+ name: string;
12619
+ workspace: string;
12620
+ };
12621
+ export type DeleteVolumeResponse = (string);
11597
12622
  export type ListMcpToolsData = {
11598
12623
  workspace: string;
11599
12624
  };