windmill-cli 1.634.6 → 1.635.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/gen/services.gen.js +26 -0
- package/esm/src/commands/instance/instance.js +18 -1
- package/esm/src/commands/lint/lint.js +184 -0
- package/esm/src/commands/sync/sync.js +11 -0
- package/esm/src/main.js +4 -2
- package/package.json +2 -1
- package/types/gen/services.gen.d.ts +15 -1
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +122 -93
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/commands/instance/instance.d.ts +5 -1
- package/types/src/commands/instance/instance.d.ts.map +1 -1
- package/types/src/commands/lint/lint.d.ts +51 -0
- package/types/src/commands/lint/lint.d.ts.map +1 -0
- package/types/src/commands/sync/sync.d.ts +2 -0
- package/types/src/commands/sync/sync.d.ts.map +1 -1
- package/types/src/core/conf.d.ts +1 -0
- package/types/src/core/conf.d.ts.map +1 -1
- package/types/src/main.d.ts +3 -2
- package/types/src/main.d.ts.map +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +122 -93
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
package/types/gen/types.gen.d.ts
CHANGED
|
@@ -1999,7 +1999,7 @@ export type Schedule = {
|
|
|
1999
1999
|
* True if script_path points to a flow, false if it points to a script
|
|
2000
2000
|
*/
|
|
2001
2001
|
is_flow: boolean;
|
|
2002
|
-
args?: ScriptArgs;
|
|
2002
|
+
args?: (ScriptArgs) | null;
|
|
2003
2003
|
/**
|
|
2004
2004
|
* Additional permissions for this schedule
|
|
2005
2005
|
*/
|
|
@@ -2013,47 +2013,47 @@ export type Schedule = {
|
|
|
2013
2013
|
/**
|
|
2014
2014
|
* Last error message if the schedule failed to trigger
|
|
2015
2015
|
*/
|
|
2016
|
-
error?: string;
|
|
2016
|
+
error?: (string) | null;
|
|
2017
2017
|
/**
|
|
2018
2018
|
* Path to a script or flow to run when the scheduled job fails
|
|
2019
2019
|
*/
|
|
2020
|
-
on_failure?: string;
|
|
2020
|
+
on_failure?: (string) | null;
|
|
2021
2021
|
/**
|
|
2022
2022
|
* Number of consecutive failures before the on_failure handler is triggered (default 1)
|
|
2023
2023
|
*/
|
|
2024
|
-
on_failure_times?: number;
|
|
2024
|
+
on_failure_times?: (number) | null;
|
|
2025
2025
|
/**
|
|
2026
2026
|
* If true, trigger on_failure handler only on exactly N failures, not on every failure after N
|
|
2027
2027
|
*/
|
|
2028
|
-
on_failure_exact?: boolean;
|
|
2029
|
-
on_failure_extra_args?: ScriptArgs;
|
|
2028
|
+
on_failure_exact?: (boolean) | null;
|
|
2029
|
+
on_failure_extra_args?: (ScriptArgs) | null;
|
|
2030
2030
|
/**
|
|
2031
2031
|
* Path to a script or flow to run when the schedule recovers after failures
|
|
2032
2032
|
*/
|
|
2033
|
-
on_recovery?: string;
|
|
2033
|
+
on_recovery?: (string) | null;
|
|
2034
2034
|
/**
|
|
2035
2035
|
* Number of consecutive successes before the on_recovery handler is triggered (default 1)
|
|
2036
2036
|
*/
|
|
2037
|
-
on_recovery_times?: number;
|
|
2038
|
-
on_recovery_extra_args?: ScriptArgs;
|
|
2037
|
+
on_recovery_times?: (number) | null;
|
|
2038
|
+
on_recovery_extra_args?: (ScriptArgs) | null;
|
|
2039
2039
|
/**
|
|
2040
2040
|
* Path to a script or flow to run after each successful execution
|
|
2041
2041
|
*/
|
|
2042
|
-
on_success?: string;
|
|
2043
|
-
on_success_extra_args?: ScriptArgs;
|
|
2042
|
+
on_success?: (string) | null;
|
|
2043
|
+
on_success_extra_args?: (ScriptArgs) | null;
|
|
2044
2044
|
/**
|
|
2045
2045
|
* If true, the workspace-level error handler will not be triggered for this schedule's failures
|
|
2046
2046
|
*/
|
|
2047
2047
|
ws_error_handler_muted?: boolean;
|
|
2048
|
-
retry?: Retry;
|
|
2048
|
+
retry?: (Retry) | null;
|
|
2049
2049
|
/**
|
|
2050
2050
|
* Short summary describing the purpose of this schedule
|
|
2051
2051
|
*/
|
|
2052
|
-
summary?: string;
|
|
2052
|
+
summary?: (string) | null;
|
|
2053
2053
|
/**
|
|
2054
2054
|
* Detailed description of what this schedule does
|
|
2055
2055
|
*/
|
|
2056
|
-
description?: string;
|
|
2056
|
+
description?: (string) | null;
|
|
2057
2057
|
/**
|
|
2058
2058
|
* If true, skip this schedule's execution if the previous run is still in progress (prevents concurrent runs)
|
|
2059
2059
|
*/
|
|
@@ -2061,19 +2061,19 @@ export type Schedule = {
|
|
|
2061
2061
|
/**
|
|
2062
2062
|
* Worker tag to route jobs to specific worker groups
|
|
2063
2063
|
*/
|
|
2064
|
-
tag?: string;
|
|
2064
|
+
tag?: (string) | null;
|
|
2065
2065
|
/**
|
|
2066
2066
|
* ISO 8601 datetime until which the schedule is paused. Schedule resumes automatically after this time
|
|
2067
2067
|
*/
|
|
2068
|
-
paused_until?: string;
|
|
2068
|
+
paused_until?: (string) | null;
|
|
2069
2069
|
/**
|
|
2070
2070
|
* Cron parser version. Use 'v2' for extended syntax with additional features
|
|
2071
2071
|
*/
|
|
2072
|
-
cron_version?: string;
|
|
2072
|
+
cron_version?: (string) | null;
|
|
2073
2073
|
/**
|
|
2074
2074
|
* Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean to skip (true) or run (false)
|
|
2075
2075
|
*/
|
|
2076
|
-
dynamic_skip?: string;
|
|
2076
|
+
dynamic_skip?: (string) | null;
|
|
2077
2077
|
};
|
|
2078
2078
|
export type ScheduleWJobs = Schedule & {
|
|
2079
2079
|
jobs?: Array<{
|
|
@@ -2104,7 +2104,7 @@ export type NewSchedule = {
|
|
|
2104
2104
|
* True if script_path points to a flow, false if it points to a script
|
|
2105
2105
|
*/
|
|
2106
2106
|
is_flow: boolean;
|
|
2107
|
-
args: ScriptArgs;
|
|
2107
|
+
args: (ScriptArgs) | null;
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Whether the schedule is currently active and will trigger jobs
|
|
2110
2110
|
*/
|
|
@@ -2112,35 +2112,35 @@ export type NewSchedule = {
|
|
|
2112
2112
|
/**
|
|
2113
2113
|
* Path to a script or flow to run when the scheduled job fails
|
|
2114
2114
|
*/
|
|
2115
|
-
on_failure?: string;
|
|
2115
|
+
on_failure?: (string) | null;
|
|
2116
2116
|
/**
|
|
2117
2117
|
* Number of consecutive failures before the on_failure handler is triggered (default 1)
|
|
2118
2118
|
*/
|
|
2119
|
-
on_failure_times?: number;
|
|
2119
|
+
on_failure_times?: (number) | null;
|
|
2120
2120
|
/**
|
|
2121
2121
|
* If true, trigger on_failure handler only on exactly N failures, not on every failure after N
|
|
2122
2122
|
*/
|
|
2123
|
-
on_failure_exact?: boolean;
|
|
2124
|
-
on_failure_extra_args?: ScriptArgs;
|
|
2123
|
+
on_failure_exact?: (boolean) | null;
|
|
2124
|
+
on_failure_extra_args?: (ScriptArgs) | null;
|
|
2125
2125
|
/**
|
|
2126
2126
|
* Path to a script or flow to run when the schedule recovers after failures
|
|
2127
2127
|
*/
|
|
2128
|
-
on_recovery?: string;
|
|
2128
|
+
on_recovery?: (string) | null;
|
|
2129
2129
|
/**
|
|
2130
2130
|
* Number of consecutive successes before the on_recovery handler is triggered (default 1)
|
|
2131
2131
|
*/
|
|
2132
|
-
on_recovery_times?: number;
|
|
2133
|
-
on_recovery_extra_args?: ScriptArgs;
|
|
2132
|
+
on_recovery_times?: (number) | null;
|
|
2133
|
+
on_recovery_extra_args?: (ScriptArgs) | null;
|
|
2134
2134
|
/**
|
|
2135
2135
|
* Path to a script or flow to run after each successful execution
|
|
2136
2136
|
*/
|
|
2137
|
-
on_success?: string;
|
|
2138
|
-
on_success_extra_args?: ScriptArgs;
|
|
2137
|
+
on_success?: (string) | null;
|
|
2138
|
+
on_success_extra_args?: (ScriptArgs) | null;
|
|
2139
2139
|
/**
|
|
2140
2140
|
* If true, the workspace-level error handler will not be triggered for this schedule's failures
|
|
2141
2141
|
*/
|
|
2142
2142
|
ws_error_handler_muted?: boolean;
|
|
2143
|
-
retry?: Retry;
|
|
2143
|
+
retry?: (Retry) | null;
|
|
2144
2144
|
/**
|
|
2145
2145
|
* If true, skip this schedule's execution if the previous run is still in progress (prevents concurrent runs)
|
|
2146
2146
|
*/
|
|
@@ -2148,27 +2148,27 @@ export type NewSchedule = {
|
|
|
2148
2148
|
/**
|
|
2149
2149
|
* Short summary describing the purpose of this schedule
|
|
2150
2150
|
*/
|
|
2151
|
-
summary?: string;
|
|
2151
|
+
summary?: (string) | null;
|
|
2152
2152
|
/**
|
|
2153
2153
|
* Detailed description of what this schedule does
|
|
2154
2154
|
*/
|
|
2155
|
-
description?: string;
|
|
2155
|
+
description?: (string) | null;
|
|
2156
2156
|
/**
|
|
2157
2157
|
* Worker tag to route jobs to specific worker groups
|
|
2158
2158
|
*/
|
|
2159
|
-
tag?: string;
|
|
2159
|
+
tag?: (string) | null;
|
|
2160
2160
|
/**
|
|
2161
2161
|
* ISO 8601 datetime until which the schedule is paused. Schedule resumes automatically after this time
|
|
2162
2162
|
*/
|
|
2163
|
-
paused_until?: string;
|
|
2163
|
+
paused_until?: (string) | null;
|
|
2164
2164
|
/**
|
|
2165
2165
|
* Cron parser version. Use 'v2' for extended syntax with additional features
|
|
2166
2166
|
*/
|
|
2167
|
-
cron_version?: string;
|
|
2167
|
+
cron_version?: (string) | null;
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean to skip (true) or run (false)
|
|
2170
2170
|
*/
|
|
2171
|
-
dynamic_skip?: string;
|
|
2171
|
+
dynamic_skip?: (string) | null;
|
|
2172
2172
|
};
|
|
2173
2173
|
export type EditSchedule = {
|
|
2174
2174
|
/**
|
|
@@ -2179,39 +2179,39 @@ export type EditSchedule = {
|
|
|
2179
2179
|
* IANA timezone for the schedule (e.g., 'UTC', 'Europe/Paris', 'America/New_York')
|
|
2180
2180
|
*/
|
|
2181
2181
|
timezone: string;
|
|
2182
|
-
args: ScriptArgs;
|
|
2182
|
+
args: (ScriptArgs) | null;
|
|
2183
2183
|
/**
|
|
2184
2184
|
* Path to a script or flow to run when the scheduled job fails
|
|
2185
2185
|
*/
|
|
2186
|
-
on_failure?: string;
|
|
2186
|
+
on_failure?: (string) | null;
|
|
2187
2187
|
/**
|
|
2188
2188
|
* Number of consecutive failures before the on_failure handler is triggered (default 1)
|
|
2189
2189
|
*/
|
|
2190
|
-
on_failure_times?: number;
|
|
2190
|
+
on_failure_times?: (number) | null;
|
|
2191
2191
|
/**
|
|
2192
2192
|
* If true, trigger on_failure handler only on exactly N failures, not on every failure after N
|
|
2193
2193
|
*/
|
|
2194
|
-
on_failure_exact?: boolean;
|
|
2195
|
-
on_failure_extra_args?: ScriptArgs;
|
|
2194
|
+
on_failure_exact?: (boolean) | null;
|
|
2195
|
+
on_failure_extra_args?: (ScriptArgs) | null;
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Path to a script or flow to run when the schedule recovers after failures
|
|
2198
2198
|
*/
|
|
2199
|
-
on_recovery?: string;
|
|
2199
|
+
on_recovery?: (string) | null;
|
|
2200
2200
|
/**
|
|
2201
2201
|
* Number of consecutive successes before the on_recovery handler is triggered (default 1)
|
|
2202
2202
|
*/
|
|
2203
|
-
on_recovery_times?: number;
|
|
2204
|
-
on_recovery_extra_args?: ScriptArgs;
|
|
2203
|
+
on_recovery_times?: (number) | null;
|
|
2204
|
+
on_recovery_extra_args?: (ScriptArgs) | null;
|
|
2205
2205
|
/**
|
|
2206
2206
|
* Path to a script or flow to run after each successful execution
|
|
2207
2207
|
*/
|
|
2208
|
-
on_success?: string;
|
|
2209
|
-
on_success_extra_args?: ScriptArgs;
|
|
2208
|
+
on_success?: (string) | null;
|
|
2209
|
+
on_success_extra_args?: (ScriptArgs) | null;
|
|
2210
2210
|
/**
|
|
2211
2211
|
* If true, the workspace-level error handler will not be triggered for this schedule's failures
|
|
2212
2212
|
*/
|
|
2213
2213
|
ws_error_handler_muted?: boolean;
|
|
2214
|
-
retry?: Retry;
|
|
2214
|
+
retry?: (Retry) | null;
|
|
2215
2215
|
/**
|
|
2216
2216
|
* If true, skip this schedule's execution if the previous run is still in progress (prevents concurrent runs)
|
|
2217
2217
|
*/
|
|
@@ -2219,27 +2219,27 @@ export type EditSchedule = {
|
|
|
2219
2219
|
/**
|
|
2220
2220
|
* Short summary describing the purpose of this schedule
|
|
2221
2221
|
*/
|
|
2222
|
-
summary?: string;
|
|
2222
|
+
summary?: (string) | null;
|
|
2223
2223
|
/**
|
|
2224
2224
|
* Detailed description of what this schedule does
|
|
2225
2225
|
*/
|
|
2226
|
-
description?: string;
|
|
2226
|
+
description?: (string) | null;
|
|
2227
2227
|
/**
|
|
2228
2228
|
* Worker tag to route jobs to specific worker groups
|
|
2229
2229
|
*/
|
|
2230
|
-
tag?: string;
|
|
2230
|
+
tag?: (string) | null;
|
|
2231
2231
|
/**
|
|
2232
2232
|
* ISO 8601 datetime until which the schedule is paused. Schedule resumes automatically after this time
|
|
2233
2233
|
*/
|
|
2234
|
-
paused_until?: string;
|
|
2234
|
+
paused_until?: (string) | null;
|
|
2235
2235
|
/**
|
|
2236
2236
|
* Cron parser version. Use 'v2' for extended syntax with additional features
|
|
2237
2237
|
*/
|
|
2238
|
-
cron_version?: string;
|
|
2238
|
+
cron_version?: (string) | null;
|
|
2239
2239
|
/**
|
|
2240
2240
|
* Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean to skip (true) or run (false)
|
|
2241
2241
|
*/
|
|
2242
|
-
dynamic_skip?: string;
|
|
2242
|
+
dynamic_skip?: (string) | null;
|
|
2243
2243
|
};
|
|
2244
2244
|
/**
|
|
2245
2245
|
* job trigger kind (schedule, http, websocket...)
|
|
@@ -2350,7 +2350,7 @@ export type HttpTrigger = TriggerExtraProperty & {
|
|
|
2350
2350
|
* Filename for the static asset
|
|
2351
2351
|
*/
|
|
2352
2352
|
filename?: string;
|
|
2353
|
-
};
|
|
2353
|
+
} | null;
|
|
2354
2354
|
/**
|
|
2355
2355
|
* HTTP method (get, post, put, delete, patch) that triggers this endpoint
|
|
2356
2356
|
*/
|
|
@@ -2358,15 +2358,15 @@ export type HttpTrigger = TriggerExtraProperty & {
|
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
|
|
2360
2360
|
*/
|
|
2361
|
-
authentication_resource_path?: string;
|
|
2361
|
+
authentication_resource_path?: (string) | null;
|
|
2362
2362
|
/**
|
|
2363
2363
|
* Short summary describing the purpose of this trigger
|
|
2364
2364
|
*/
|
|
2365
|
-
summary?: string;
|
|
2365
|
+
summary?: (string) | null;
|
|
2366
2366
|
/**
|
|
2367
2367
|
* Detailed description of what this trigger does
|
|
2368
2368
|
*/
|
|
2369
|
-
description?: string;
|
|
2369
|
+
description?: (string) | null;
|
|
2370
2370
|
/**
|
|
2371
2371
|
* How the request is handled - 'sync' waits for result, 'async' returns job ID immediately, 'sync_sse' streams results via Server-Sent Events
|
|
2372
2372
|
*/
|
|
@@ -2424,11 +2424,11 @@ export type NewHttpTrigger = {
|
|
|
2424
2424
|
/**
|
|
2425
2425
|
* Short summary describing the purpose of this trigger
|
|
2426
2426
|
*/
|
|
2427
|
-
summary?: string;
|
|
2427
|
+
summary?: (string) | null;
|
|
2428
2428
|
/**
|
|
2429
2429
|
* Detailed description of what this trigger does
|
|
2430
2430
|
*/
|
|
2431
|
-
description?: string;
|
|
2431
|
+
description?: (string) | null;
|
|
2432
2432
|
/**
|
|
2433
2433
|
* Configuration for serving static assets (s3 bucket, storage path, filename)
|
|
2434
2434
|
*/
|
|
@@ -2445,7 +2445,7 @@ export type NewHttpTrigger = {
|
|
|
2445
2445
|
* Filename for the static asset
|
|
2446
2446
|
*/
|
|
2447
2447
|
filename?: string;
|
|
2448
|
-
};
|
|
2448
|
+
} | null;
|
|
2449
2449
|
/**
|
|
2450
2450
|
* True if script_path points to a flow, false if it points to a script
|
|
2451
2451
|
*/
|
|
@@ -2457,7 +2457,7 @@ export type NewHttpTrigger = {
|
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
|
|
2459
2459
|
*/
|
|
2460
|
-
authentication_resource_path?: string;
|
|
2460
|
+
authentication_resource_path?: (string) | null;
|
|
2461
2461
|
/**
|
|
2462
2462
|
* Deprecated, use request_type instead
|
|
2463
2463
|
*/
|
|
@@ -2512,11 +2512,11 @@ export type EditHttpTrigger = {
|
|
|
2512
2512
|
/**
|
|
2513
2513
|
* Short summary describing the purpose of this trigger
|
|
2514
2514
|
*/
|
|
2515
|
-
summary?: string;
|
|
2515
|
+
summary?: (string) | null;
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Detailed description of what this trigger does
|
|
2518
2518
|
*/
|
|
2519
|
-
description?: string;
|
|
2519
|
+
description?: (string) | null;
|
|
2520
2520
|
/**
|
|
2521
2521
|
* If true, the route includes the workspace ID in the path
|
|
2522
2522
|
*/
|
|
@@ -2537,11 +2537,11 @@ export type EditHttpTrigger = {
|
|
|
2537
2537
|
* Filename for the static asset
|
|
2538
2538
|
*/
|
|
2539
2539
|
filename?: string;
|
|
2540
|
-
};
|
|
2540
|
+
} | null;
|
|
2541
2541
|
/**
|
|
2542
2542
|
* Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
|
|
2543
2543
|
*/
|
|
2544
|
-
authentication_resource_path?: string;
|
|
2544
|
+
authentication_resource_path?: (string) | null;
|
|
2545
2545
|
/**
|
|
2546
2546
|
* True if script_path points to a flow, false if it points to a script
|
|
2547
2547
|
*/
|
|
@@ -2632,11 +2632,11 @@ export type WebsocketTrigger = TriggerExtraProperty & {
|
|
|
2632
2632
|
/**
|
|
2633
2633
|
* Messages to send immediately after connecting (can be raw strings or computed by runnables)
|
|
2634
2634
|
*/
|
|
2635
|
-
initial_messages?: Array<WebsocketTriggerInitialMessage
|
|
2635
|
+
initial_messages?: Array<WebsocketTriggerInitialMessage> | null;
|
|
2636
2636
|
/**
|
|
2637
2637
|
* Arguments to pass to the script/flow that computes the WebSocket URL
|
|
2638
2638
|
*/
|
|
2639
|
-
url_runnable_args?: ScriptArgs;
|
|
2639
|
+
url_runnable_args?: (ScriptArgs) | null;
|
|
2640
2640
|
/**
|
|
2641
2641
|
* If true, the script can return a message to send back through the WebSocket
|
|
2642
2642
|
*/
|
|
@@ -2686,11 +2686,11 @@ export type NewWebsocketTrigger = {
|
|
|
2686
2686
|
/**
|
|
2687
2687
|
* Messages to send immediately after connecting (can be raw strings or computed by runnables)
|
|
2688
2688
|
*/
|
|
2689
|
-
initial_messages?: Array<WebsocketTriggerInitialMessage
|
|
2689
|
+
initial_messages?: Array<WebsocketTriggerInitialMessage> | null;
|
|
2690
2690
|
/**
|
|
2691
2691
|
* Arguments to pass to the script/flow that computes the WebSocket URL
|
|
2692
2692
|
*/
|
|
2693
|
-
url_runnable_args?: ScriptArgs;
|
|
2693
|
+
url_runnable_args?: (ScriptArgs) | null;
|
|
2694
2694
|
/**
|
|
2695
2695
|
* If true, the script can return a message to send back through the WebSocket
|
|
2696
2696
|
*/
|
|
@@ -2739,11 +2739,11 @@ export type EditWebsocketTrigger = {
|
|
|
2739
2739
|
/**
|
|
2740
2740
|
* Messages to send immediately after connecting (can be raw strings or computed by runnables)
|
|
2741
2741
|
*/
|
|
2742
|
-
initial_messages?: Array<WebsocketTriggerInitialMessage
|
|
2742
|
+
initial_messages?: Array<WebsocketTriggerInitialMessage> | null;
|
|
2743
2743
|
/**
|
|
2744
2744
|
* Arguments to pass to the script/flow that computes the WebSocket URL
|
|
2745
2745
|
*/
|
|
2746
|
-
url_runnable_args?: ScriptArgs;
|
|
2746
|
+
url_runnable_args?: (ScriptArgs) | null;
|
|
2747
2747
|
/**
|
|
2748
2748
|
* If true, the script can return a message to send back through the WebSocket
|
|
2749
2749
|
*/
|
|
@@ -2800,19 +2800,19 @@ export type MqttTrigger = TriggerExtraProperty & {
|
|
|
2800
2800
|
/**
|
|
2801
2801
|
* MQTT v3 specific configuration (clean_session)
|
|
2802
2802
|
*/
|
|
2803
|
-
v3_config?: MqttV3Config;
|
|
2803
|
+
v3_config?: (MqttV3Config) | null;
|
|
2804
2804
|
/**
|
|
2805
2805
|
* MQTT v5 specific configuration (clean_start, topic_alias_maximum, session_expiry_interval)
|
|
2806
2806
|
*/
|
|
2807
|
-
v5_config?: MqttV5Config;
|
|
2807
|
+
v5_config?: (MqttV5Config) | null;
|
|
2808
2808
|
/**
|
|
2809
2809
|
* MQTT client ID for this connection
|
|
2810
2810
|
*/
|
|
2811
|
-
client_id?: string;
|
|
2811
|
+
client_id?: (string) | null;
|
|
2812
2812
|
/**
|
|
2813
2813
|
* MQTT protocol version ('v3' or 'v5')
|
|
2814
2814
|
*/
|
|
2815
|
-
client_version?: MqttClientVersion;
|
|
2815
|
+
client_version?: (MqttClientVersion) | null;
|
|
2816
2816
|
/**
|
|
2817
2817
|
* ID of the server currently handling this trigger (internal)
|
|
2818
2818
|
*/
|
|
@@ -2850,19 +2850,19 @@ export type NewMqttTrigger = {
|
|
|
2850
2850
|
/**
|
|
2851
2851
|
* MQTT client ID for this connection
|
|
2852
2852
|
*/
|
|
2853
|
-
client_id?: string;
|
|
2853
|
+
client_id?: (string) | null;
|
|
2854
2854
|
/**
|
|
2855
2855
|
* MQTT v3 specific configuration (clean_session)
|
|
2856
2856
|
*/
|
|
2857
|
-
v3_config?: MqttV3Config;
|
|
2857
|
+
v3_config?: (MqttV3Config) | null;
|
|
2858
2858
|
/**
|
|
2859
2859
|
* MQTT v5 specific configuration (clean_start, topic_alias_maximum, session_expiry_interval)
|
|
2860
2860
|
*/
|
|
2861
|
-
v5_config?: MqttV5Config;
|
|
2861
|
+
v5_config?: (MqttV5Config) | null;
|
|
2862
2862
|
/**
|
|
2863
2863
|
* MQTT protocol version ('v3' or 'v5')
|
|
2864
2864
|
*/
|
|
2865
|
-
client_version?: MqttClientVersion;
|
|
2865
|
+
client_version?: (MqttClientVersion) | null;
|
|
2866
2866
|
/**
|
|
2867
2867
|
* The unique path identifier for this trigger
|
|
2868
2868
|
*/
|
|
@@ -2901,19 +2901,19 @@ export type EditMqttTrigger = {
|
|
|
2901
2901
|
/**
|
|
2902
2902
|
* MQTT client ID for this connection
|
|
2903
2903
|
*/
|
|
2904
|
-
client_id?: string;
|
|
2904
|
+
client_id?: (string) | null;
|
|
2905
2905
|
/**
|
|
2906
2906
|
* MQTT v3 specific configuration (clean_session)
|
|
2907
2907
|
*/
|
|
2908
|
-
v3_config?: MqttV3Config;
|
|
2908
|
+
v3_config?: (MqttV3Config) | null;
|
|
2909
2909
|
/**
|
|
2910
2910
|
* MQTT v5 specific configuration (clean_start, topic_alias_maximum, session_expiry_interval)
|
|
2911
2911
|
*/
|
|
2912
|
-
v5_config?: MqttV5Config;
|
|
2912
|
+
v5_config?: (MqttV5Config) | null;
|
|
2913
2913
|
/**
|
|
2914
2914
|
* MQTT protocol version ('v3' or 'v5')
|
|
2915
2915
|
*/
|
|
2916
|
-
client_version?: MqttClientVersion;
|
|
2916
|
+
client_version?: (MqttClientVersion) | null;
|
|
2917
2917
|
/**
|
|
2918
2918
|
* The unique path identifier for this trigger
|
|
2919
2919
|
*/
|
|
@@ -2978,7 +2978,7 @@ export type GcpTrigger = TriggerExtraProperty & {
|
|
|
2978
2978
|
*/
|
|
2979
2979
|
server_id?: string;
|
|
2980
2980
|
delivery_type: DeliveryType;
|
|
2981
|
-
delivery_config?: PushConfig;
|
|
2981
|
+
delivery_config?: (PushConfig) | null;
|
|
2982
2982
|
subscription_mode: SubscriptionMode;
|
|
2983
2983
|
/**
|
|
2984
2984
|
* Timestamp of last server heartbeat (internal use).
|
|
@@ -3027,7 +3027,7 @@ export type GcpTriggerData = {
|
|
|
3027
3027
|
*/
|
|
3028
3028
|
base_endpoint?: string;
|
|
3029
3029
|
delivery_type?: DeliveryType;
|
|
3030
|
-
delivery_config?: PushConfig;
|
|
3030
|
+
delivery_config?: (PushConfig) | null;
|
|
3031
3031
|
/**
|
|
3032
3032
|
* The unique path identifier for this trigger.
|
|
3033
3033
|
*/
|
|
@@ -3085,7 +3085,7 @@ export type SqsTrigger = TriggerExtraProperty & {
|
|
|
3085
3085
|
/**
|
|
3086
3086
|
* Array of SQS message attribute names to include with each message
|
|
3087
3087
|
*/
|
|
3088
|
-
message_attributes?: Array<(string)
|
|
3088
|
+
message_attributes?: Array<(string)> | null;
|
|
3089
3089
|
/**
|
|
3090
3090
|
* ID of the server currently handling this trigger (internal)
|
|
3091
3091
|
*/
|
|
@@ -3149,7 +3149,7 @@ export type NewSqsTrigger = {
|
|
|
3149
3149
|
/**
|
|
3150
3150
|
* Array of SQS message attribute names to include with each message
|
|
3151
3151
|
*/
|
|
3152
|
-
message_attributes?: Array<(string)
|
|
3152
|
+
message_attributes?: Array<(string)> | null;
|
|
3153
3153
|
/**
|
|
3154
3154
|
* The unique path identifier for this trigger
|
|
3155
3155
|
*/
|
|
@@ -3192,7 +3192,7 @@ export type EditSqsTrigger = {
|
|
|
3192
3192
|
/**
|
|
3193
3193
|
* Array of SQS message attribute names to include with each message
|
|
3194
3194
|
*/
|
|
3195
|
-
message_attributes?: Array<(string)
|
|
3195
|
+
message_attributes?: Array<(string)> | null;
|
|
3196
3196
|
/**
|
|
3197
3197
|
* The unique path identifier for this trigger
|
|
3198
3198
|
*/
|
|
@@ -3508,11 +3508,11 @@ export type NatsTrigger = TriggerExtraProperty & {
|
|
|
3508
3508
|
/**
|
|
3509
3509
|
* JetStream stream name (required when use_jetstream is true)
|
|
3510
3510
|
*/
|
|
3511
|
-
stream_name?: string;
|
|
3511
|
+
stream_name?: (string) | null;
|
|
3512
3512
|
/**
|
|
3513
3513
|
* JetStream consumer name (required when use_jetstream is true)
|
|
3514
3514
|
*/
|
|
3515
|
-
consumer_name?: string;
|
|
3515
|
+
consumer_name?: (string) | null;
|
|
3516
3516
|
/**
|
|
3517
3517
|
* Array of NATS subjects to subscribe to
|
|
3518
3518
|
*/
|
|
@@ -3566,11 +3566,11 @@ export type NewNatsTrigger = {
|
|
|
3566
3566
|
/**
|
|
3567
3567
|
* JetStream stream name (required when use_jetstream is true)
|
|
3568
3568
|
*/
|
|
3569
|
-
stream_name?: string;
|
|
3569
|
+
stream_name?: (string) | null;
|
|
3570
3570
|
/**
|
|
3571
3571
|
* JetStream consumer name (required when use_jetstream is true)
|
|
3572
3572
|
*/
|
|
3573
|
-
consumer_name?: string;
|
|
3573
|
+
consumer_name?: (string) | null;
|
|
3574
3574
|
/**
|
|
3575
3575
|
* Array of NATS subjects to subscribe to
|
|
3576
3576
|
*/
|
|
@@ -3601,11 +3601,11 @@ export type EditNatsTrigger = {
|
|
|
3601
3601
|
/**
|
|
3602
3602
|
* JetStream stream name (required when use_jetstream is true)
|
|
3603
3603
|
*/
|
|
3604
|
-
stream_name?: string;
|
|
3604
|
+
stream_name?: (string) | null;
|
|
3605
3605
|
/**
|
|
3606
3606
|
* JetStream consumer name (required when use_jetstream is true)
|
|
3607
3607
|
*/
|
|
3608
|
-
consumer_name?: string;
|
|
3608
|
+
consumer_name?: (string) | null;
|
|
3609
3609
|
/**
|
|
3610
3610
|
* Array of NATS subjects to subscribe to
|
|
3611
3611
|
*/
|
|
@@ -4133,6 +4133,27 @@ export type GlobalSetting = {
|
|
|
4133
4133
|
name: string;
|
|
4134
4134
|
value: unknown;
|
|
4135
4135
|
};
|
|
4136
|
+
/**
|
|
4137
|
+
* Unified instance configuration combining global settings and worker group configs
|
|
4138
|
+
*/
|
|
4139
|
+
export type InstanceConfig = {
|
|
4140
|
+
/**
|
|
4141
|
+
* 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.
|
|
4142
|
+
*
|
|
4143
|
+
*/
|
|
4144
|
+
global_settings?: {
|
|
4145
|
+
[key: string]: unknown;
|
|
4146
|
+
};
|
|
4147
|
+
/**
|
|
4148
|
+
* Worker group configurations keyed by group name (e.g. "default", "gpu"). Each value contains worker_tags, init_bash, autoscaling, etc.
|
|
4149
|
+
*
|
|
4150
|
+
*/
|
|
4151
|
+
worker_configs?: {
|
|
4152
|
+
[key: string]: {
|
|
4153
|
+
[key: string]: unknown;
|
|
4154
|
+
};
|
|
4155
|
+
};
|
|
4156
|
+
};
|
|
4136
4157
|
export type Config = {
|
|
4137
4158
|
name: string;
|
|
4138
4159
|
config?: {
|
|
@@ -5228,6 +5249,14 @@ export type TestMetadataData = {
|
|
|
5228
5249
|
};
|
|
5229
5250
|
export type TestMetadataResponse = (string);
|
|
5230
5251
|
export type ListGlobalSettingsResponse = (Array<GlobalSetting>);
|
|
5252
|
+
export type GetInstanceConfigResponse = (InstanceConfig);
|
|
5253
|
+
export type SetInstanceConfigData = {
|
|
5254
|
+
/**
|
|
5255
|
+
* full instance configuration to apply
|
|
5256
|
+
*/
|
|
5257
|
+
requestBody: InstanceConfig;
|
|
5258
|
+
};
|
|
5259
|
+
export type SetInstanceConfigResponse = (string);
|
|
5231
5260
|
export type GetMinKeepAliveVersionResponse = ({
|
|
5232
5261
|
/**
|
|
5233
5262
|
* minimum version for normal workers
|