windmill-utils-internal 1.3.3 → 1.3.5

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.
@@ -12,6 +12,48 @@ export const backendVersion = () => {
12
12
  url: '/version'
13
13
  });
14
14
  };
15
+ /**
16
+ * health status
17
+ * Health status endpoint. Returns cached health status (database connectivity, worker count).
18
+ * Cache TTL is fixed at 5 seconds. Use force=true query parameter to bypass cache.
19
+ * Note: This endpoint is intentionally different from Kubernetes probes to avoid confusion.
20
+ * For k8s liveness/readiness probes, use /version endpoint.
21
+ *
22
+ * @param data The data for the request.
23
+ * @param data.force Force a fresh check, bypassing the cache
24
+ * @returns HealthStatusResponse server is healthy or degraded
25
+ * @throws ApiError
26
+ */
27
+ export const getHealthStatus = (data = {}) => {
28
+ return __request(OpenAPI, {
29
+ method: 'GET',
30
+ url: '/health/status',
31
+ query: {
32
+ force: data.force
33
+ },
34
+ errors: {
35
+ 503: 'server is unhealthy (database unreachable)'
36
+ }
37
+ });
38
+ };
39
+ /**
40
+ * detailed health status
41
+ * Returns detailed health information including database pool stats, worker details, and queue status.
42
+ * Requires authentication. Use for monitoring dashboards and debugging.
43
+ * This endpoint always returns fresh data (no caching).
44
+ *
45
+ * @returns DetailedHealthResponse server is healthy or degraded
46
+ * @throws ApiError
47
+ */
48
+ export const getHealthDetailed = () => {
49
+ return __request(OpenAPI, {
50
+ method: 'GET',
51
+ url: '/health/detailed',
52
+ errors: {
53
+ 503: 'server is unhealthy (database unreachable)'
54
+ }
55
+ });
56
+ };
15
57
  /**
16
58
  * is backend up to date
17
59
  * @returns string is backend up to date
@@ -838,6 +880,17 @@ export const sendStats = () => {
838
880
  url: '/settings/send_stats'
839
881
  });
840
882
  };
883
+ /**
884
+ * get telemetry stats with HMAC signature (EE only)
885
+ * @returns unknown telemetry stats JSON with signature
886
+ * @throws ApiError
887
+ */
888
+ export const getStats = () => {
889
+ return __request(OpenAPI, {
890
+ method: 'GET',
891
+ url: '/settings/get_stats'
892
+ });
893
+ };
841
894
  /**
842
895
  * get latest key renewal attempt
843
896
  * @returns unknown status
@@ -907,6 +960,32 @@ export const listGlobalSettings = () => {
907
960
  url: '/settings/list_global'
908
961
  });
909
962
  };
963
+ /**
964
+ * get full instance config (global settings + worker configs)
965
+ * @returns InstanceConfig full instance configuration
966
+ * @throws ApiError
967
+ */
968
+ export const getInstanceConfig = () => {
969
+ return __request(OpenAPI, {
970
+ method: 'GET',
971
+ url: '/settings/instance_config'
972
+ });
973
+ };
974
+ /**
975
+ * update instance config (bulk upsert, no deletes). Empty or missing global_settings/worker_configs are skipped.
976
+ * @param data The data for the request.
977
+ * @param data.requestBody full instance configuration to apply
978
+ * @returns string instance config updated
979
+ * @throws ApiError
980
+ */
981
+ export const setInstanceConfig = (data) => {
982
+ return __request(OpenAPI, {
983
+ method: 'PUT',
984
+ url: '/settings/instance_config',
985
+ body: data.requestBody,
986
+ mediaType: 'application/json'
987
+ });
988
+ };
910
989
  /**
911
990
  * get minimum worker versions required to stay alive
912
991
  * @returns unknown minimum keep-alive versions for workers and agents
@@ -1194,6 +1273,38 @@ export const importInstallation = (data) => {
1194
1273
  mediaType: 'application/json'
1195
1274
  });
1196
1275
  };
1276
+ /**
1277
+ * GHES installation callback
1278
+ * Register a self-managed GitHub App installation from GitHub Enterprise Server
1279
+ * @param data The data for the request.
1280
+ * @param data.workspace
1281
+ * @param data.requestBody
1282
+ * @returns unknown GHES installation registered successfully
1283
+ * @throws ApiError
1284
+ */
1285
+ export const ghesInstallationCallback = (data) => {
1286
+ return __request(OpenAPI, {
1287
+ method: 'POST',
1288
+ url: '/w/{workspace}/github_app/ghes_installation_callback',
1289
+ path: {
1290
+ workspace: data.workspace
1291
+ },
1292
+ body: data.requestBody,
1293
+ mediaType: 'application/json'
1294
+ });
1295
+ };
1296
+ /**
1297
+ * Get GHES app config
1298
+ * Returns the GitHub Enterprise Server app configuration (without private key) for constructing the installation URL
1299
+ * @returns unknown GHES app configuration
1300
+ * @throws ApiError
1301
+ */
1302
+ export const getGhesConfig = () => {
1303
+ return __request(OpenAPI, {
1304
+ method: 'GET',
1305
+ url: '/github_app/ghes_config'
1306
+ });
1307
+ };
1197
1308
  /**
1198
1309
  * accept invite to workspace
1199
1310
  * @param data The data for the request.
@@ -2738,6 +2849,10 @@ export const existsVariable = (data) => {
2738
2849
  * @param data The data for the request.
2739
2850
  * @param data.workspace
2740
2851
  * @param data.pathStart filter variables by path prefix
2852
+ * @param data.path exact path match filter
2853
+ * @param data.description pattern match filter for description field (case-insensitive)
2854
+ * @param data.value pattern match filter for non-secret variable values (case-insensitive)
2855
+ * @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
2741
2856
  * @param data.page which page to return (start at 1, default 1)
2742
2857
  * @param data.perPage number of items to return for a given page (default 30, max 100)
2743
2858
  * @returns ListableVariable variable list
@@ -2752,6 +2867,10 @@ export const listVariable = (data) => {
2752
2867
  },
2753
2868
  query: {
2754
2869
  path_start: data.pathStart,
2870
+ path: data.path,
2871
+ description: data.description,
2872
+ value: data.value,
2873
+ broad_filter: data.broadFilter,
2755
2874
  page: data.page,
2756
2875
  per_page: data.perPage
2757
2876
  }
@@ -2777,6 +2896,7 @@ export const listContextualVariables = (data) => {
2777
2896
  * get secondary storage names
2778
2897
  * @param data The data for the request.
2779
2898
  * @param data.workspace
2899
+ * @param data.includeDefault If true, include "_default_" in the list if primary workspace storage is set
2780
2900
  * @returns string status
2781
2901
  * @throws ApiError
2782
2902
  */
@@ -2786,6 +2906,9 @@ export const getSecondaryStorageNames = (data) => {
2786
2906
  url: '/w/{workspace}/workspaces/get_secondary_storage_names',
2787
2907
  path: {
2788
2908
  workspace: data.workspace
2909
+ },
2910
+ query: {
2911
+ include_default: data.includeDefault
2789
2912
  }
2790
2913
  });
2791
2914
  };
@@ -2866,6 +2989,127 @@ export const workspaceMuteCriticalAlertsUi = (data) => {
2866
2989
  mediaType: 'application/json'
2867
2990
  });
2868
2991
  };
2992
+ /**
2993
+ * list all protection rules for a workspace
2994
+ * @param data The data for the request.
2995
+ * @param data.workspace
2996
+ * @returns ProtectionRuleset list of protection rules
2997
+ * @throws ApiError
2998
+ */
2999
+ export const listProtectionRules = (data) => {
3000
+ return __request(OpenAPI, {
3001
+ method: 'GET',
3002
+ url: '/w/{workspace}/workspaces/protection_rules',
3003
+ path: {
3004
+ workspace: data.workspace
3005
+ }
3006
+ });
3007
+ };
3008
+ /**
3009
+ * create a new protection rule
3010
+ * @param data The data for the request.
3011
+ * @param data.workspace
3012
+ * @param data.requestBody New protection rule configuration
3013
+ * @returns string protection rule created successfully
3014
+ * @throws ApiError
3015
+ */
3016
+ export const createProtectionRule = (data) => {
3017
+ return __request(OpenAPI, {
3018
+ method: 'POST',
3019
+ url: '/w/{workspace}/workspaces/protection_rules',
3020
+ path: {
3021
+ workspace: data.workspace
3022
+ },
3023
+ body: data.requestBody,
3024
+ mediaType: 'application/json',
3025
+ errors: {
3026
+ 400: 'rule with this name already exists'
3027
+ }
3028
+ });
3029
+ };
3030
+ /**
3031
+ * update an existing protection rule
3032
+ * @param data The data for the request.
3033
+ * @param data.workspace
3034
+ * @param data.ruleName Name of the protection rule to update
3035
+ * @param data.requestBody Updated protection rule configuration
3036
+ * @returns string protection rule updated successfully
3037
+ * @throws ApiError
3038
+ */
3039
+ export const updateProtectionRule = (data) => {
3040
+ return __request(OpenAPI, {
3041
+ method: 'POST',
3042
+ url: '/w/{workspace}/workspaces/protection_rules/{rule_name}',
3043
+ path: {
3044
+ workspace: data.workspace,
3045
+ rule_name: data.ruleName
3046
+ },
3047
+ body: data.requestBody,
3048
+ mediaType: 'application/json',
3049
+ errors: {
3050
+ 404: 'protection rule not found'
3051
+ }
3052
+ });
3053
+ };
3054
+ /**
3055
+ * delete a protection rule
3056
+ * @param data The data for the request.
3057
+ * @param data.workspace
3058
+ * @param data.ruleName Name of the protection rule to delete
3059
+ * @returns string protection rule deleted successfully
3060
+ * @throws ApiError
3061
+ */
3062
+ export const deleteProtectionRule = (data) => {
3063
+ return __request(OpenAPI, {
3064
+ method: 'DELETE',
3065
+ url: '/w/{workspace}/workspaces/protection_rules/{rule_name}',
3066
+ path: {
3067
+ workspace: data.workspace,
3068
+ rule_name: data.ruleName
3069
+ },
3070
+ errors: {
3071
+ 404: 'protection rule not found'
3072
+ }
3073
+ });
3074
+ };
3075
+ /**
3076
+ * log AI chat message
3077
+ * @param data The data for the request.
3078
+ * @param data.workspace
3079
+ * @param data.requestBody
3080
+ * @returns void logged
3081
+ * @throws ApiError
3082
+ */
3083
+ export const logAiChat = (data) => {
3084
+ return __request(OpenAPI, {
3085
+ method: 'POST',
3086
+ url: '/w/{workspace}/workspaces/log_chat',
3087
+ path: {
3088
+ workspace: data.workspace
3089
+ },
3090
+ body: data.requestBody,
3091
+ mediaType: 'application/json'
3092
+ });
3093
+ };
3094
+ /**
3095
+ * Set public app rate limit for this workspace
3096
+ * @param data The data for the request.
3097
+ * @param data.workspace
3098
+ * @param data.requestBody Public app rate limit configuration
3099
+ * @returns string Successfully updated public app rate limit settings.
3100
+ * @throws ApiError
3101
+ */
3102
+ export const setPublicAppRateLimit = (data) => {
3103
+ return __request(OpenAPI, {
3104
+ method: 'POST',
3105
+ url: '/w/{workspace}/workspaces/public_app_rate_limit',
3106
+ path: {
3107
+ workspace: data.workspace
3108
+ },
3109
+ body: data.requestBody,
3110
+ mediaType: 'application/json'
3111
+ });
3112
+ };
2869
3113
  /**
2870
3114
  * login with oauth authorization flow
2871
3115
  * @param data The data for the request.
@@ -3313,6 +3557,10 @@ export const existsResource = (data) => {
3313
3557
  * @param data.resourceType resource_types to list from, separated by ',',
3314
3558
  * @param data.resourceTypeExclude resource_types to not list from, separated by ',',
3315
3559
  * @param data.pathStart filter resources by path prefix
3560
+ * @param data.path exact path match filter
3561
+ * @param data.description pattern match filter for description field (case-insensitive)
3562
+ * @param data.value JSONB subset match filter using base64 encoded JSON
3563
+ * @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
3316
3564
  * @returns ListableResource resource list
3317
3565
  * @throws ApiError
3318
3566
  */
@@ -3328,7 +3576,11 @@ export const listResource = (data) => {
3328
3576
  per_page: data.perPage,
3329
3577
  resource_type: data.resourceType,
3330
3578
  resource_type_exclude: data.resourceTypeExclude,
3331
- path_start: data.pathStart
3579
+ path_start: data.pathStart,
3580
+ path: data.path,
3581
+ description: data.description,
3582
+ value: data.value,
3583
+ broad_filter: data.broadFilter
3332
3584
  }
3333
3585
  });
3334
3586
  };
@@ -3407,7 +3659,7 @@ export const createResourceType = (data) => {
3407
3659
  * get map from resource type to format extension
3408
3660
  * @param data The data for the request.
3409
3661
  * @param data.workspace
3410
- * @returns unknown map from resource type to file ext
3662
+ * @returns unknown map from resource type to file resource info
3411
3663
  * @throws ApiError
3412
3664
  */
3413
3665
  export const fileResourceTypeToFileExtMap = (data) => {
@@ -3700,6 +3952,22 @@ export const getHubAppById = (data) => {
3700
3952
  }
3701
3953
  });
3702
3954
  };
3955
+ /**
3956
+ * get hub raw app by id
3957
+ * @param data The data for the request.
3958
+ * @param data.id
3959
+ * @returns unknown raw app
3960
+ * @throws ApiError
3961
+ */
3962
+ export const getHubRawAppById = (data) => {
3963
+ return __request(OpenAPI, {
3964
+ method: 'GET',
3965
+ url: '/apps/hub/get_raw/{id}',
3966
+ path: {
3967
+ id: data.id
3968
+ }
3969
+ });
3970
+ };
3703
3971
  /**
3704
3972
  * get public app by custom path
3705
3973
  * @param data The data for the request.
@@ -3829,7 +4097,7 @@ export const listSearchScript = (data) => {
3829
4097
  * @param data.page which page to return (start at 1, default 1)
3830
4098
  * @param data.perPage number of items to return for a given page (default 30, max 100)
3831
4099
  * @param data.orderDesc order by desc order (default true)
3832
- * @param data.createdBy mask to filter exact matching user creator
4100
+ * @param data.createdBy 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')
3833
4101
  * @param data.pathStart mask to filter matching starting path
3834
4102
  * @param data.pathExact mask to filter exact matching path
3835
4103
  * @param data.firstParentHash mask to filter scripts whom first direct parent has exact hash
@@ -5157,7 +5425,7 @@ export const listSearchFlow = (data) => {
5157
5425
  * @param data.page which page to return (start at 1, default 1)
5158
5426
  * @param data.perPage number of items to return for a given page (default 30, max 100)
5159
5427
  * @param data.orderDesc order by desc order (default true)
5160
- * @param data.createdBy mask to filter exact matching user creator
5428
+ * @param data.createdBy 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')
5161
5429
  * @param data.pathStart mask to filter matching starting path
5162
5430
  * @param data.pathExact mask to filter exact matching path
5163
5431
  * @param data.showArchived (default false)
@@ -5597,7 +5865,7 @@ export const listConversationMessages = (data) => {
5597
5865
  * @param data.page which page to return (start at 1, default 1)
5598
5866
  * @param data.perPage number of items to return for a given page (default 30, max 100)
5599
5867
  * @param data.orderDesc order by desc order (default true)
5600
- * @param data.createdBy mask to filter exact matching user creator
5868
+ * @param data.createdBy 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')
5601
5869
  * @param data.pathStart mask to filter matching starting path
5602
5870
  * @param data.pathExact mask to filter exact matching path
5603
5871
  * @param data.starredOnly (default false)
@@ -5624,24 +5892,6 @@ export const listRawApps = (data) => {
5624
5892
  }
5625
5893
  });
5626
5894
  };
5627
- /**
5628
- * does an app exisst at path
5629
- * @param data The data for the request.
5630
- * @param data.workspace
5631
- * @param data.path
5632
- * @returns boolean app exists
5633
- * @throws ApiError
5634
- */
5635
- export const existsRawApp = (data) => {
5636
- return __request(OpenAPI, {
5637
- method: 'GET',
5638
- url: '/w/{workspace}/raw_apps/exists/{path}',
5639
- path: {
5640
- workspace: data.workspace,
5641
- path: data.path
5642
- }
5643
- });
5644
- };
5645
5895
  /**
5646
5896
  * get raw app data by
5647
5897
  * @param data The data for the request.
@@ -5683,7 +5933,7 @@ export const listSearchApp = (data) => {
5683
5933
  * @param data.page which page to return (start at 1, default 1)
5684
5934
  * @param data.perPage number of items to return for a given page (default 30, max 100)
5685
5935
  * @param data.orderDesc order by desc order (default true)
5686
- * @param data.createdBy mask to filter exact matching user creator
5936
+ * @param data.createdBy 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')
5687
5937
  * @param data.pathStart mask to filter matching starting path
5688
5938
  * @param data.pathExact mask to filter exact matching path
5689
5939
  * @param data.starredOnly (default false)
@@ -6001,64 +6251,6 @@ export const getAppByVersion = (data) => {
6001
6251
  }
6002
6252
  });
6003
6253
  };
6004
- /**
6005
- * create raw app
6006
- * @param data The data for the request.
6007
- * @param data.workspace
6008
- * @param data.requestBody new raw app
6009
- * @returns string raw app created
6010
- * @throws ApiError
6011
- */
6012
- export const createRawApp = (data) => {
6013
- return __request(OpenAPI, {
6014
- method: 'POST',
6015
- url: '/w/{workspace}/raw_apps/create',
6016
- path: {
6017
- workspace: data.workspace
6018
- },
6019
- body: data.requestBody,
6020
- mediaType: 'application/json'
6021
- });
6022
- };
6023
- /**
6024
- * update app
6025
- * @param data The data for the request.
6026
- * @param data.workspace
6027
- * @param data.path
6028
- * @param data.requestBody updateraw app
6029
- * @returns string app updated
6030
- * @throws ApiError
6031
- */
6032
- export const updateRawApp = (data) => {
6033
- return __request(OpenAPI, {
6034
- method: 'POST',
6035
- url: '/w/{workspace}/raw_apps/update/{path}',
6036
- path: {
6037
- workspace: data.workspace,
6038
- path: data.path
6039
- },
6040
- body: data.requestBody,
6041
- mediaType: 'application/json'
6042
- });
6043
- };
6044
- /**
6045
- * delete raw app
6046
- * @param data The data for the request.
6047
- * @param data.workspace
6048
- * @param data.path
6049
- * @returns string app deleted
6050
- * @throws ApiError
6051
- */
6052
- export const deleteRawApp = (data) => {
6053
- return __request(OpenAPI, {
6054
- method: 'DELETE',
6055
- url: '/w/{workspace}/raw_apps/delete/{path}',
6056
- path: {
6057
- workspace: data.workspace,
6058
- path: data.path
6059
- }
6060
- });
6061
- };
6062
6254
  /**
6063
6255
  * delete app
6064
6256
  * @param data The data for the request.
@@ -6469,6 +6661,48 @@ export const runScriptPreviewInline = (data) => {
6469
6661
  mediaType: 'application/json'
6470
6662
  });
6471
6663
  };
6664
+ /**
6665
+ * run script by path without starting a new job
6666
+ * @param data The data for the request.
6667
+ * @param data.workspace
6668
+ * @param data.path
6669
+ * @param data.requestBody script args
6670
+ * @returns unknown script result
6671
+ * @throws ApiError
6672
+ */
6673
+ export const runScriptByPathInline = (data) => {
6674
+ return __request(OpenAPI, {
6675
+ method: 'POST',
6676
+ url: '/w/{workspace}/jobs/run_inline/p/{path}',
6677
+ path: {
6678
+ workspace: data.workspace,
6679
+ path: data.path
6680
+ },
6681
+ body: data.requestBody,
6682
+ mediaType: 'application/json'
6683
+ });
6684
+ };
6685
+ /**
6686
+ * run script by hash without starting a new job
6687
+ * @param data The data for the request.
6688
+ * @param data.workspace
6689
+ * @param data.hash
6690
+ * @param data.requestBody script args
6691
+ * @returns unknown script result
6692
+ * @throws ApiError
6693
+ */
6694
+ export const runScriptByHashInline = (data) => {
6695
+ return __request(OpenAPI, {
6696
+ method: 'POST',
6697
+ url: '/w/{workspace}/jobs/run_inline/h/{hash}',
6698
+ path: {
6699
+ workspace: data.workspace,
6700
+ hash: data.hash
6701
+ },
6702
+ body: data.requestBody,
6703
+ mediaType: 'application/json'
6704
+ });
6705
+ };
6472
6706
  /**
6473
6707
  * run script preview and wait for result
6474
6708
  * @param data The data for the request.
@@ -6608,26 +6842,26 @@ export const runDynamicSelect = (data) => {
6608
6842
  * @param data The data for the request.
6609
6843
  * @param data.workspace
6610
6844
  * @param data.orderDesc order by desc order (default true)
6611
- * @param data.createdBy mask to filter exact matching user creator
6845
+ * @param data.createdBy 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')
6612
6846
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
6613
- * @param data.worker worker this job was ran on
6614
- * @param data.scriptPathExact mask to filter exact matching path
6615
- * @param data.scriptPathStart mask to filter matching starting path
6847
+ * @param data.worker 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')
6848
+ * @param data.scriptPathExact 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')
6849
+ * @param data.scriptPathStart 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')
6616
6850
  * @param data.schedulePath mask to filter by schedule path
6617
- * @param data.triggerPath mask to filter by trigger path
6618
- * @param data.triggerKind trigger kind (schedule, http, websocket...)
6851
+ * @param data.triggerPath 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')
6852
+ * @param data.triggerKind filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
6619
6853
  * @param data.scriptHash mask to filter exact matching path
6620
6854
  * @param data.startedBefore filter on started before (inclusive) timestamp
6621
6855
  * @param data.startedAfter filter on started after (exclusive) timestamp
6622
6856
  * @param data.success filter on successful jobs
6623
6857
  * @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
6624
- * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
6858
+ * @param data.jobKinds 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')
6625
6859
  * @param data.suspended filter on suspended jobs
6626
6860
  * @param data.running filter on running jobs
6627
6861
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
6628
6862
  * @param data.result filter on jobs containing those result as a json subset (@> in postgres)
6629
6863
  * @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
6630
- * @param data.tag filter on jobs with a given tag/worker group
6864
+ * @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
6631
6865
  * @param data.page which page to return (start at 1, default 1)
6632
6866
  * @param data.perPage number of items to return for a given page (default 30, max 100)
6633
6867
  * @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
@@ -6737,12 +6971,12 @@ export const countCompletedJobs = (data) => {
6737
6971
  * get the ids of all jobs matching the given filters
6738
6972
  * @param data The data for the request.
6739
6973
  * @param data.workspace
6740
- * @param data.createdBy mask to filter exact matching user creator
6741
- * @param data.label 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')
6742
- * @param data.worker worker this job was ran on
6974
+ * @param data.createdBy 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')
6975
+ * @param data.label 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')
6976
+ * @param data.worker 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')
6743
6977
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
6744
- * @param data.scriptPathExact mask to filter exact matching path
6745
- * @param data.scriptPathStart mask to filter matching starting path
6978
+ * @param data.scriptPathExact 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')
6979
+ * @param data.scriptPathStart 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')
6746
6980
  * @param data.schedulePath mask to filter by schedule path
6747
6981
  * @param data.scriptHash mask to filter exact matching path
6748
6982
  * @param data.startedBefore filter on started before (inclusive) timestamp
@@ -6755,10 +6989,10 @@ export const countCompletedJobs = (data) => {
6755
6989
  * @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
6756
6990
  * @param data.running filter on running jobs
6757
6991
  * @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
6758
- * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
6992
+ * @param data.jobKinds 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')
6759
6993
  * @param data.suspended filter on suspended jobs
6760
6994
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
6761
- * @param data.tag filter on jobs with a given tag/worker group
6995
+ * @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
6762
6996
  * @param data.result filter on jobs containing those result as a json subset (@> in postgres)
6763
6997
  * @param data.page which page to return (start at 1, default 1)
6764
6998
  * @param data.perPage number of items to return for a given page (default 30, max 100)
@@ -6818,23 +7052,23 @@ export const listFilteredJobsUuids = (data) => {
6818
7052
  * @param data The data for the request.
6819
7053
  * @param data.workspace
6820
7054
  * @param data.orderDesc order by desc order (default true)
6821
- * @param data.createdBy mask to filter exact matching user creator
7055
+ * @param data.createdBy 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')
6822
7056
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
6823
- * @param data.scriptPathExact mask to filter exact matching path
6824
- * @param data.scriptPathStart mask to filter matching starting path
7057
+ * @param data.scriptPathExact 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')
7058
+ * @param data.scriptPathStart 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')
6825
7059
  * @param data.schedulePath mask to filter by schedule path
6826
7060
  * @param data.scriptHash mask to filter exact matching path
6827
7061
  * @param data.startedBefore filter on started before (inclusive) timestamp
6828
7062
  * @param data.startedAfter filter on started after (exclusive) timestamp
6829
7063
  * @param data.success filter on successful jobs
6830
7064
  * @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
6831
- * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
7065
+ * @param data.jobKinds 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')
6832
7066
  * @param data.suspended filter on suspended jobs
6833
7067
  * @param data.running filter on running jobs
6834
7068
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
6835
7069
  * @param data.result filter on jobs containing those result as a json subset (@> in postgres)
6836
7070
  * @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
6837
- * @param data.tag filter on jobs with a given tag/worker group
7071
+ * @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
6838
7072
  * @param data.page which page to return (start at 1, default 1)
6839
7073
  * @param data.perPage number of items to return for a given page (default 30, max 100)
6840
7074
  * @param data.concurrencyKey
@@ -6969,22 +7203,22 @@ export const cancelSuspendedTriggerJobs = (data) => {
6969
7203
  * @param data The data for the request.
6970
7204
  * @param data.workspace
6971
7205
  * @param data.orderDesc order by desc order (default true)
6972
- * @param data.createdBy mask to filter exact matching user creator
6973
- * @param data.label 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')
6974
- * @param data.worker worker this job was ran on
7206
+ * @param data.createdBy 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')
7207
+ * @param data.label 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')
7208
+ * @param data.worker 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')
6975
7209
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
6976
- * @param data.scriptPathExact mask to filter exact matching path
6977
- * @param data.scriptPathStart mask to filter matching starting path
7210
+ * @param data.scriptPathExact 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')
7211
+ * @param data.scriptPathStart 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')
6978
7212
  * @param data.schedulePath mask to filter by schedule path
6979
7213
  * @param data.scriptHash mask to filter exact matching path
6980
7214
  * @param data.startedBefore filter on started before (inclusive) timestamp
6981
7215
  * @param data.startedAfter filter on started after (exclusive) timestamp
6982
7216
  * @param data.success filter on successful jobs
6983
- * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
7217
+ * @param data.jobKinds 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')
6984
7218
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
6985
7219
  * @param data.result filter on jobs containing those result as a json subset (@> in postgres)
6986
7220
  * @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
6987
- * @param data.tag filter on jobs with a given tag/worker group
7221
+ * @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
6988
7222
  * @param data.page which page to return (start at 1, default 1)
6989
7223
  * @param data.perPage number of items to return for a given page (default 30, max 100)
6990
7224
  * @param data.isSkipped is the job skipped
@@ -7133,12 +7367,12 @@ export const deleteJobs = (data) => {
7133
7367
  * list all jobs
7134
7368
  * @param data The data for the request.
7135
7369
  * @param data.workspace
7136
- * @param data.createdBy mask to filter exact matching user creator
7137
- * @param data.label 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')
7138
- * @param data.worker worker this job was ran on
7370
+ * @param data.createdBy 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')
7371
+ * @param data.label 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')
7372
+ * @param data.worker 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')
7139
7373
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
7140
- * @param data.scriptPathExact mask to filter exact matching path
7141
- * @param data.scriptPathStart mask to filter matching starting path
7374
+ * @param data.scriptPathExact 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')
7375
+ * @param data.scriptPathStart 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')
7142
7376
  * @param data.schedulePath mask to filter by schedule path
7143
7377
  * @param data.scriptHash mask to filter exact matching path
7144
7378
  * @param data.startedBefore filter on started before (inclusive) timestamp
@@ -7151,20 +7385,21 @@ export const deleteJobs = (data) => {
7151
7385
  * @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
7152
7386
  * @param data.running filter on running jobs
7153
7387
  * @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
7154
- * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
7388
+ * @param data.jobKinds 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')
7155
7389
  * @param data.suspended filter on suspended jobs
7156
7390
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
7157
- * @param data.tag filter on jobs with a given tag/worker group
7391
+ * @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
7158
7392
  * @param data.result filter on jobs containing those result as a json subset (@> in postgres)
7159
7393
  * @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
7160
7394
  * @param data.perPage number of items to return for a given page (default 30, max 100)
7161
- * @param data.triggerKind trigger kind (schedule, http, websocket...)
7395
+ * @param data.triggerKind filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
7162
7396
  * @param data.isSkipped is the job skipped
7163
7397
  * @param data.isFlowStep is the job a flow step
7164
7398
  * @param data.hasNullParent has null parent
7165
7399
  * @param data.success filter on successful jobs
7166
7400
  * @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
7167
7401
  * @param data.isNotSchedule is not a scheduled job
7402
+ * @param data.broadFilter broad search across multiple fields (case-insensitive substring match on path, tag, schedule path, trigger kind, label)
7168
7403
  * @returns Job All jobs
7169
7404
  * @throws ApiError
7170
7405
  */
@@ -7207,7 +7442,8 @@ export const listJobs = (data) => {
7207
7442
  has_null_parent: data.hasNullParent,
7208
7443
  success: data.success,
7209
7444
  all_workspaces: data.allWorkspaces,
7210
- is_not_schedule: data.isNotSchedule
7445
+ is_not_schedule: data.isNotSchedule,
7446
+ broad_filter: data.broadFilter
7211
7447
  }
7212
7448
  });
7213
7449
  };
@@ -7722,6 +7958,8 @@ export const getResumeUrls = (data) => {
7722
7958
  * @param data.message
7723
7959
  * @param data.defaultArgsJson
7724
7960
  * @param data.dynamicEnumsJson
7961
+ * @param data.resumeButtonText
7962
+ * @param data.cancelButtonText
7725
7963
  * @returns unknown Interactive slack approval message sent successfully
7726
7964
  * @throws ApiError
7727
7965
  */
@@ -7740,7 +7978,9 @@ export const getSlackApprovalPayload = (data) => {
7740
7978
  channel_id: data.channelId,
7741
7979
  flow_step_id: data.flowStepId,
7742
7980
  default_args_json: data.defaultArgsJson,
7743
- dynamic_enums_json: data.dynamicEnumsJson
7981
+ dynamic_enums_json: data.dynamicEnumsJson,
7982
+ resume_button_text: data.resumeButtonText,
7983
+ cancel_button_text: data.cancelButtonText
7744
7984
  }
7745
7985
  });
7746
7986
  };
@@ -7756,6 +7996,8 @@ export const getSlackApprovalPayload = (data) => {
7756
7996
  * @param data.message
7757
7997
  * @param data.defaultArgsJson
7758
7998
  * @param data.dynamicEnumsJson
7999
+ * @param data.resumeButtonText
8000
+ * @param data.cancelButtonText
7759
8001
  * @returns unknown Interactive slack approval message sent successfully
7760
8002
  * @throws ApiError
7761
8003
  */
@@ -7774,7 +8016,9 @@ export const getTeamsApprovalPayload = (data) => {
7774
8016
  channel_name: data.channelName,
7775
8017
  flow_step_id: data.flowStepId,
7776
8018
  default_args_json: data.defaultArgsJson,
7777
- dynamic_enums_json: data.dynamicEnumsJson
8019
+ dynamic_enums_json: data.dynamicEnumsJson,
8020
+ resume_button_text: data.resumeButtonText,
8021
+ cancel_button_text: data.cancelButtonText
7778
8022
  }
7779
8023
  });
7780
8024
  };
@@ -8119,9 +8363,13 @@ export const existsSchedule = (data) => {
8119
8363
  * @param data.page which page to return (start at 1, default 1)
8120
8364
  * @param data.perPage number of items to return for a given page (default 30, max 100)
8121
8365
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
8122
- * @param data.path filter by path
8366
+ * @param data.path filter by path (script path)
8123
8367
  * @param data.isFlow filter schedules by whether they target a flow
8124
8368
  * @param data.pathStart filter schedules by path prefix
8369
+ * @param data.schedulePath exact match on the schedule's path
8370
+ * @param data.description pattern match filter for description field (case-insensitive)
8371
+ * @param data.summary pattern match filter for summary field (case-insensitive)
8372
+ * @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
8125
8373
  * @returns Schedule schedule list
8126
8374
  * @throws ApiError
8127
8375
  */
@@ -8138,7 +8386,11 @@ export const listSchedules = (data) => {
8138
8386
  args: data.args,
8139
8387
  path: data.path,
8140
8388
  is_flow: data.isFlow,
8141
- path_start: data.pathStart
8389
+ path_start: data.pathStart,
8390
+ schedule_path: data.schedulePath,
8391
+ description: data.description,
8392
+ summary: data.summary,
8393
+ broad_filter: data.broadFilter
8142
8394
  }
8143
8395
  });
8144
8396
  };
@@ -8726,6 +8978,45 @@ export const testKafkaConnection = (data) => {
8726
8978
  mediaType: 'application/json'
8727
8979
  });
8728
8980
  };
8981
+ /**
8982
+ * reset kafka trigger offsets to earliest
8983
+ * @param data The data for the request.
8984
+ * @param data.workspace
8985
+ * @param data.path
8986
+ * @returns unknown kafka trigger offsets reset successfully
8987
+ * @throws ApiError
8988
+ */
8989
+ export const resetKafkaOffsets = (data) => {
8990
+ return __request(OpenAPI, {
8991
+ method: 'POST',
8992
+ url: '/w/{workspace}/kafka_triggers/reset_offsets/{path}',
8993
+ path: {
8994
+ workspace: data.workspace,
8995
+ path: data.path
8996
+ }
8997
+ });
8998
+ };
8999
+ /**
9000
+ * commit kafka offsets for a specific trigger
9001
+ * @param data The data for the request.
9002
+ * @param data.workspace
9003
+ * @param data.path
9004
+ * @param data.requestBody offsets to commit
9005
+ * @returns unknown kafka offsets committed successfully
9006
+ * @throws ApiError
9007
+ */
9008
+ export const commitKafkaOffsets = (data) => {
9009
+ return __request(OpenAPI, {
9010
+ method: 'POST',
9011
+ url: '/w/{workspace}/kafka_triggers/commit_offsets/{path}',
9012
+ path: {
9013
+ workspace: data.workspace,
9014
+ path: data.path
9015
+ },
9016
+ body: data.requestBody,
9017
+ mediaType: 'application/json'
9018
+ });
9019
+ };
8729
9020
  /**
8730
9021
  * create nats trigger
8731
9022
  * @param data The data for the request.
@@ -9126,6 +9417,45 @@ export const generateNativeTriggerServiceConnectUrl = (data) => {
9126
9417
  mediaType: 'application/json'
9127
9418
  });
9128
9419
  };
9420
+ /**
9421
+ * check if instance-level credential sharing is available for a service
9422
+ * @param data The data for the request.
9423
+ * @param data.workspace
9424
+ * @param data.serviceName
9425
+ * @returns boolean whether instance sharing is available
9426
+ * @throws ApiError
9427
+ */
9428
+ export const checkInstanceSharingAvailable = (data) => {
9429
+ return __request(OpenAPI, {
9430
+ method: 'GET',
9431
+ url: '/w/{workspace}/native_triggers/integrations/{service_name}/instance_sharing_available',
9432
+ path: {
9433
+ workspace: data.workspace,
9434
+ service_name: data.serviceName
9435
+ }
9436
+ });
9437
+ };
9438
+ /**
9439
+ * generate connect url using instance-level credentials
9440
+ * @param data The data for the request.
9441
+ * @param data.workspace
9442
+ * @param data.serviceName
9443
+ * @param data.requestBody redirect_uri
9444
+ * @returns string authorization URL using instance credentials
9445
+ * @throws ApiError
9446
+ */
9447
+ export const generateInstanceConnectUrl = (data) => {
9448
+ return __request(OpenAPI, {
9449
+ method: 'POST',
9450
+ url: '/w/{workspace}/native_triggers/integrations/{service_name}/generate_instance_connect_url',
9451
+ path: {
9452
+ workspace: data.workspace,
9453
+ service_name: data.serviceName
9454
+ },
9455
+ body: data.requestBody,
9456
+ mediaType: 'application/json'
9457
+ });
9458
+ };
9129
9459
  /**
9130
9460
  * delete native trigger service
9131
9461
  * @param data The data for the request.
@@ -9149,21 +9479,17 @@ export const deleteNativeTriggerService = (data) => {
9149
9479
  * @param data The data for the request.
9150
9480
  * @param data.workspace
9151
9481
  * @param data.serviceName
9152
- * @param data.code
9153
- * @param data.state
9154
- * @param data.requestBody redirect_uri
9482
+ * @param data.requestBody OAuth callback data
9155
9483
  * @returns string native trigger service oauth completed
9156
9484
  * @throws ApiError
9157
9485
  */
9158
9486
  export const nativeTriggerServiceCallback = (data) => {
9159
9487
  return __request(OpenAPI, {
9160
9488
  method: 'POST',
9161
- url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback/{code}/{state}',
9489
+ url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback',
9162
9490
  path: {
9163
9491
  workspace: data.workspace,
9164
- service_name: data.serviceName,
9165
- code: data.code,
9166
- state: data.state
9492
+ service_name: data.serviceName
9167
9493
  },
9168
9494
  body: data.requestBody,
9169
9495
  mediaType: 'application/json'
@@ -9349,6 +9675,64 @@ export const listNextCloudEvents = (data) => {
9349
9675
  }
9350
9676
  });
9351
9677
  };
9678
+ /**
9679
+ * list Google Calendars for the authenticated user
9680
+ * @param data The data for the request.
9681
+ * @param data.workspace
9682
+ * @returns GoogleCalendarEntry list of Google Calendars
9683
+ * @throws ApiError
9684
+ */
9685
+ export const listGoogleCalendars = (data) => {
9686
+ return __request(OpenAPI, {
9687
+ method: 'GET',
9688
+ url: '/w/{workspace}/native_triggers/google/calendars',
9689
+ path: {
9690
+ workspace: data.workspace
9691
+ }
9692
+ });
9693
+ };
9694
+ /**
9695
+ * list or search Google Drive files
9696
+ * @param data The data for the request.
9697
+ * @param data.workspace
9698
+ * @param data.q search query to filter files by name
9699
+ * @param data.parentId folder ID to list children of
9700
+ * @param data.pageToken token for next page of results
9701
+ * @param data.sharedWithMe if true, list files shared with the user
9702
+ * @returns GoogleDriveFilesResponse list of Google Drive files
9703
+ * @throws ApiError
9704
+ */
9705
+ export const listGoogleDriveFiles = (data) => {
9706
+ return __request(OpenAPI, {
9707
+ method: 'GET',
9708
+ url: '/w/{workspace}/native_triggers/google/drive/files',
9709
+ path: {
9710
+ workspace: data.workspace
9711
+ },
9712
+ query: {
9713
+ q: data.q,
9714
+ parent_id: data.parentId,
9715
+ page_token: data.pageToken,
9716
+ shared_with_me: data.sharedWithMe
9717
+ }
9718
+ });
9719
+ };
9720
+ /**
9721
+ * list shared drives accessible to the user
9722
+ * @param data The data for the request.
9723
+ * @param data.workspace
9724
+ * @returns SharedDriveEntry list of shared drives
9725
+ * @throws ApiError
9726
+ */
9727
+ export const listGoogleSharedDrives = (data) => {
9728
+ return __request(OpenAPI, {
9729
+ method: 'GET',
9730
+ url: '/w/{workspace}/native_triggers/google/drive/shared_drives',
9731
+ path: {
9732
+ workspace: data.workspace
9733
+ }
9734
+ });
9735
+ };
9352
9736
  /**
9353
9737
  * receive webhook from external native trigger service
9354
9738
  * @param data The data for the request.
@@ -10343,7 +10727,7 @@ export const listInstanceGroupsWithWorkspaces = () => {
10343
10727
  * get instance group
10344
10728
  * @param data The data for the request.
10345
10729
  * @param data.name
10346
- * @returns InstanceGroup instance group
10730
+ * @returns InstanceGroupWithWorkspaces instance group
10347
10731
  * @throws ApiError
10348
10732
  */
10349
10733
  export const getInstanceGroup = (data) => {
@@ -12236,11 +12620,11 @@ export const getConcurrencyKey = (data) => {
12236
12620
  * @param data.workspace
12237
12621
  * @param data.concurrencyKey
12238
12622
  * @param data.rowLimit
12239
- * @param data.createdBy mask to filter exact matching user creator
12240
- * @param data.label 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')
12623
+ * @param data.createdBy 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')
12624
+ * @param data.label 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')
12241
12625
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
12242
- * @param data.scriptPathExact mask to filter exact matching path
12243
- * @param data.scriptPathStart mask to filter matching starting path
12626
+ * @param data.scriptPathExact 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')
12627
+ * @param data.scriptPathStart 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')
12244
12628
  * @param data.schedulePath mask to filter by schedule path
12245
12629
  * @param data.scriptHash mask to filter exact matching path
12246
12630
  * @param data.startedBefore filter on started before (inclusive) timestamp
@@ -12251,14 +12635,14 @@ export const getConcurrencyKey = (data) => {
12251
12635
  * @param data.completedAfter filter on started after (exclusive) timestamp
12252
12636
  * @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
12253
12637
  * @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
12254
- * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
12638
+ * @param data.jobKinds 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')
12255
12639
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
12256
- * @param data.tag filter on jobs with a given tag/worker group
12640
+ * @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
12257
12641
  * @param data.result filter on jobs containing those result as a json subset (@> in postgres)
12258
12642
  * @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
12259
12643
  * @param data.page which page to return (start at 1, default 1)
12260
12644
  * @param data.perPage number of items to return for a given page (default 30, max 100)
12261
- * @param data.triggerKind trigger kind (schedule, http, websocket...)
12645
+ * @param data.triggerKind filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
12262
12646
  * @param data.isSkipped is the job skipped
12263
12647
  * @param data.isFlowStep is the job a flow step
12264
12648
  * @param data.hasNullParent has null parent
@@ -12379,21 +12763,43 @@ export const countSearchLogsIndex = (data) => {
12379
12763
  });
12380
12764
  };
12381
12765
  /**
12382
- * Restart container and delete the index to recreate it.
12766
+ * Clear an index and restart the indexer.
12383
12767
  * @param data The data for the request.
12384
12768
  * @param data.idxName
12385
- * @returns string idx to be deleted and container restarting
12769
+ * @returns string idx to be deleted and indexer restarting
12386
12770
  * @throws ApiError
12387
12771
  */
12388
12772
  export const clearIndex = (data) => {
12389
12773
  return __request(OpenAPI, {
12390
12774
  method: 'DELETE',
12391
- url: '/srch/index/delete/{idx_name}',
12775
+ url: '/indexer/delete/{idx_name}',
12392
12776
  path: {
12393
12777
  idx_name: data.idxName
12394
12778
  }
12395
12779
  });
12396
12780
  };
12781
+ /**
12782
+ * Get index storage sizes (disk and S3).
12783
+ * @returns unknown storage sizes for each index
12784
+ * @throws ApiError
12785
+ */
12786
+ export const getIndexStorageSizes = () => {
12787
+ return __request(OpenAPI, {
12788
+ method: 'GET',
12789
+ url: '/indexer/storage'
12790
+ });
12791
+ };
12792
+ /**
12793
+ * Get indexer status including liveness and storage sizes.
12794
+ * @returns unknown indexer status for each index
12795
+ * @throws ApiError
12796
+ */
12797
+ export const getIndexerStatus = () => {
12798
+ return __request(OpenAPI, {
12799
+ method: 'GET',
12800
+ url: '/indexer/status'
12801
+ });
12802
+ };
12397
12803
  /**
12398
12804
  * List all assets in the workspace with cursor pagination
12399
12805
  * @param data The data for the request.
@@ -12404,6 +12810,9 @@ export const clearIndex = (data) => {
12404
12810
  * @param data.assetPath Filter by asset path (case-insensitive partial match)
12405
12811
  * @param data.usagePath Filter by usage path (case-insensitive partial match)
12406
12812
  * @param data.assetKinds Filter by asset kinds (multiple values allowed)
12813
+ * @param data.path exact path match filter
12814
+ * @param data.columns JSONB subset match filter for columns using base64 encoded JSON
12815
+ * @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
12407
12816
  * @returns unknown paginated assets in the workspace
12408
12817
  * @throws ApiError
12409
12818
  */
@@ -12420,7 +12829,10 @@ export const listAssets = (data) => {
12420
12829
  cursor_id: data.cursorId,
12421
12830
  asset_path: data.assetPath,
12422
12831
  usage_path: data.usagePath,
12423
- asset_kinds: data.assetKinds
12832
+ asset_kinds: data.assetKinds,
12833
+ path: data.path,
12834
+ columns: data.columns,
12835
+ broad_filter: data.broadFilter
12424
12836
  }
12425
12837
  });
12426
12838
  };
@@ -12443,6 +12855,91 @@ export const listAssetsByUsage = (data) => {
12443
12855
  mediaType: 'application/json'
12444
12856
  });
12445
12857
  };
12858
+ /**
12859
+ * List all favorite assets for the authenticated user
12860
+ * @param data The data for the request.
12861
+ * @param data.workspace
12862
+ * @returns unknown list of favorite assets
12863
+ * @throws ApiError
12864
+ */
12865
+ export const listFavoriteAssets = (data) => {
12866
+ return __request(OpenAPI, {
12867
+ method: 'GET',
12868
+ url: '/w/{workspace}/assets/list_favorites',
12869
+ path: {
12870
+ workspace: data.workspace
12871
+ }
12872
+ });
12873
+ };
12874
+ /**
12875
+ * List all volumes in the workspace
12876
+ * @param data The data for the request.
12877
+ * @param data.workspace
12878
+ * @returns Volume list of volumes
12879
+ * @throws ApiError
12880
+ */
12881
+ export const listVolumes = (data) => {
12882
+ return __request(OpenAPI, {
12883
+ method: 'GET',
12884
+ url: '/w/{workspace}/volumes/list',
12885
+ path: {
12886
+ workspace: data.workspace
12887
+ }
12888
+ });
12889
+ };
12890
+ /**
12891
+ * Get the volume storage name (secondary storage) or null for primary
12892
+ * @param data The data for the request.
12893
+ * @param data.workspace
12894
+ * @returns string volume storage name or null
12895
+ * @throws ApiError
12896
+ */
12897
+ export const getVolumeStorage = (data) => {
12898
+ return __request(OpenAPI, {
12899
+ method: 'GET',
12900
+ url: '/w/{workspace}/volumes/storage',
12901
+ path: {
12902
+ workspace: data.workspace
12903
+ }
12904
+ });
12905
+ };
12906
+ /**
12907
+ * Create a new volume
12908
+ * @param data The data for the request.
12909
+ * @param data.workspace
12910
+ * @param data.requestBody
12911
+ * @returns string volume created
12912
+ * @throws ApiError
12913
+ */
12914
+ export const createVolume = (data) => {
12915
+ return __request(OpenAPI, {
12916
+ method: 'POST',
12917
+ url: '/w/{workspace}/volumes/create',
12918
+ path: {
12919
+ workspace: data.workspace
12920
+ },
12921
+ body: data.requestBody,
12922
+ mediaType: 'application/json'
12923
+ });
12924
+ };
12925
+ /**
12926
+ * Delete a volume (admin only)
12927
+ * @param data The data for the request.
12928
+ * @param data.workspace
12929
+ * @param data.name
12930
+ * @returns string volume deleted
12931
+ * @throws ApiError
12932
+ */
12933
+ export const deleteVolume = (data) => {
12934
+ return __request(OpenAPI, {
12935
+ method: 'DELETE',
12936
+ url: '/w/{workspace}/volumes/delete/{name}',
12937
+ path: {
12938
+ workspace: data.workspace,
12939
+ name: data.name
12940
+ }
12941
+ });
12942
+ };
12446
12943
  /**
12447
12944
  * list available MCP tools
12448
12945
  * @param data The data for the request.