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.
- package/dist/cjs/config/config.js +16 -113
- package/dist/cjs/gen/core/OpenAPI.js +1 -1
- package/dist/cjs/gen/services.gen.d.ts +410 -56
- package/dist/cjs/gen/services.gen.js +835 -80
- package/dist/cjs/gen/types.gen.d.ts +1213 -188
- package/dist/cjs/inline-scripts/extractor.d.ts +6 -4
- package/dist/cjs/inline-scripts/extractor.js +10 -3
- package/dist/cjs/inline-scripts/replacer.d.ts +28 -1
- package/dist/cjs/inline-scripts/replacer.js +134 -0
- package/dist/cjs/path-utils/path-assigner.d.ts +5 -0
- package/dist/cjs/path-utils/path-assigner.js +18 -2
- package/dist/esm/config/config.js +13 -77
- package/dist/esm/gen/core/OpenAPI.js +1 -1
- package/dist/esm/gen/services.gen.d.ts +410 -56
- package/dist/esm/gen/services.gen.js +784 -67
- package/dist/esm/gen/types.gen.d.ts +1213 -188
- package/dist/esm/inline-scripts/extractor.d.ts +6 -4
- package/dist/esm/inline-scripts/extractor.js +10 -3
- package/dist/esm/inline-scripts/replacer.d.ts +28 -1
- package/dist/esm/inline-scripts/replacer.js +131 -0
- package/dist/esm/path-utils/path-assigner.d.ts +5 -0
- package/dist/esm/path-utils/path-assigner.js +17 -2
- package/package.json +2 -2
|
@@ -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.
|
|
@@ -1687,6 +1798,24 @@ export const getDependents = (data) => {
|
|
|
1687
1798
|
}
|
|
1688
1799
|
});
|
|
1689
1800
|
};
|
|
1801
|
+
/**
|
|
1802
|
+
* get script imports for an importer path
|
|
1803
|
+
* @param data The data for the request.
|
|
1804
|
+
* @param data.workspace
|
|
1805
|
+
* @param data.importerPath The script path to get imports for
|
|
1806
|
+
* @returns string list of imported script paths
|
|
1807
|
+
* @throws ApiError
|
|
1808
|
+
*/
|
|
1809
|
+
export const getImports = (data) => {
|
|
1810
|
+
return __request(OpenAPI, {
|
|
1811
|
+
method: 'GET',
|
|
1812
|
+
url: '/w/{workspace}/workspaces/get_imports/{importer_path}',
|
|
1813
|
+
path: {
|
|
1814
|
+
workspace: data.workspace,
|
|
1815
|
+
importer_path: data.importerPath
|
|
1816
|
+
}
|
|
1817
|
+
});
|
|
1818
|
+
};
|
|
1690
1819
|
/**
|
|
1691
1820
|
* get dependents amounts for multiple imported paths
|
|
1692
1821
|
* @param data The data for the request.
|
|
@@ -1991,7 +2120,7 @@ export const editWebhook = (data) => {
|
|
|
1991
2120
|
* @param data The data for the request.
|
|
1992
2121
|
* @param data.workspace
|
|
1993
2122
|
* @param data.requestBody WorkspaceCopilotConfig
|
|
1994
|
-
* @returns
|
|
2123
|
+
* @returns unknown status
|
|
1995
2124
|
* @throws ApiError
|
|
1996
2125
|
*/
|
|
1997
2126
|
export const editCopilotConfig = (data) => {
|
|
@@ -2005,6 +2134,22 @@ export const editCopilotConfig = (data) => {
|
|
|
2005
2134
|
mediaType: 'application/json'
|
|
2006
2135
|
});
|
|
2007
2136
|
};
|
|
2137
|
+
/**
|
|
2138
|
+
* get copilot settings state
|
|
2139
|
+
* @param data The data for the request.
|
|
2140
|
+
* @param data.workspace
|
|
2141
|
+
* @returns unknown status
|
|
2142
|
+
* @throws ApiError
|
|
2143
|
+
*/
|
|
2144
|
+
export const getCopilotSettingsState = (data) => {
|
|
2145
|
+
return __request(OpenAPI, {
|
|
2146
|
+
method: 'GET',
|
|
2147
|
+
url: '/w/{workspace}/workspaces/get_copilot_settings_state',
|
|
2148
|
+
path: {
|
|
2149
|
+
workspace: data.workspace
|
|
2150
|
+
}
|
|
2151
|
+
});
|
|
2152
|
+
};
|
|
2008
2153
|
/**
|
|
2009
2154
|
* get copilot info
|
|
2010
2155
|
* @param data The data for the request.
|
|
@@ -2164,6 +2309,22 @@ export const editDataTableConfig = (data) => {
|
|
|
2164
2309
|
mediaType: 'application/json'
|
|
2165
2310
|
});
|
|
2166
2311
|
};
|
|
2312
|
+
/**
|
|
2313
|
+
* Check if git sync is available for this workspace
|
|
2314
|
+
* @param data The data for the request.
|
|
2315
|
+
* @param data.workspace
|
|
2316
|
+
* @returns unknown Git sync availability status
|
|
2317
|
+
* @throws ApiError
|
|
2318
|
+
*/
|
|
2319
|
+
export const getGitSyncEnabled = (data) => {
|
|
2320
|
+
return __request(OpenAPI, {
|
|
2321
|
+
method: 'GET',
|
|
2322
|
+
url: '/w/{workspace}/workspaces/git_sync_enabled',
|
|
2323
|
+
path: {
|
|
2324
|
+
workspace: data.workspace
|
|
2325
|
+
}
|
|
2326
|
+
});
|
|
2327
|
+
};
|
|
2167
2328
|
/**
|
|
2168
2329
|
* edit workspace git sync settings
|
|
2169
2330
|
* @param data The data for the request.
|
|
@@ -2738,6 +2899,10 @@ export const existsVariable = (data) => {
|
|
|
2738
2899
|
* @param data The data for the request.
|
|
2739
2900
|
* @param data.workspace
|
|
2740
2901
|
* @param data.pathStart filter variables by path prefix
|
|
2902
|
+
* @param data.path exact path match filter
|
|
2903
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
2904
|
+
* @param data.value pattern match filter for non-secret variable values (case-insensitive)
|
|
2905
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
2741
2906
|
* @param data.page which page to return (start at 1, default 1)
|
|
2742
2907
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
2743
2908
|
* @returns ListableVariable variable list
|
|
@@ -2752,6 +2917,10 @@ export const listVariable = (data) => {
|
|
|
2752
2917
|
},
|
|
2753
2918
|
query: {
|
|
2754
2919
|
path_start: data.pathStart,
|
|
2920
|
+
path: data.path,
|
|
2921
|
+
description: data.description,
|
|
2922
|
+
value: data.value,
|
|
2923
|
+
broad_filter: data.broadFilter,
|
|
2755
2924
|
page: data.page,
|
|
2756
2925
|
per_page: data.perPage
|
|
2757
2926
|
}
|
|
@@ -2870,6 +3039,143 @@ export const workspaceMuteCriticalAlertsUi = (data) => {
|
|
|
2870
3039
|
mediaType: 'application/json'
|
|
2871
3040
|
});
|
|
2872
3041
|
};
|
|
3042
|
+
/**
|
|
3043
|
+
* list all protection rules for a workspace
|
|
3044
|
+
* @param data The data for the request.
|
|
3045
|
+
* @param data.workspace
|
|
3046
|
+
* @returns ProtectionRuleset list of protection rules
|
|
3047
|
+
* @throws ApiError
|
|
3048
|
+
*/
|
|
3049
|
+
export const listProtectionRules = (data) => {
|
|
3050
|
+
return __request(OpenAPI, {
|
|
3051
|
+
method: 'GET',
|
|
3052
|
+
url: '/w/{workspace}/workspaces/protection_rules',
|
|
3053
|
+
path: {
|
|
3054
|
+
workspace: data.workspace
|
|
3055
|
+
}
|
|
3056
|
+
});
|
|
3057
|
+
};
|
|
3058
|
+
/**
|
|
3059
|
+
* create a new protection rule
|
|
3060
|
+
* @param data The data for the request.
|
|
3061
|
+
* @param data.workspace
|
|
3062
|
+
* @param data.requestBody New protection rule configuration
|
|
3063
|
+
* @returns string protection rule created successfully
|
|
3064
|
+
* @throws ApiError
|
|
3065
|
+
*/
|
|
3066
|
+
export const createProtectionRule = (data) => {
|
|
3067
|
+
return __request(OpenAPI, {
|
|
3068
|
+
method: 'POST',
|
|
3069
|
+
url: '/w/{workspace}/workspaces/protection_rules',
|
|
3070
|
+
path: {
|
|
3071
|
+
workspace: data.workspace
|
|
3072
|
+
},
|
|
3073
|
+
body: data.requestBody,
|
|
3074
|
+
mediaType: 'application/json',
|
|
3075
|
+
errors: {
|
|
3076
|
+
400: 'rule with this name already exists'
|
|
3077
|
+
}
|
|
3078
|
+
});
|
|
3079
|
+
};
|
|
3080
|
+
/**
|
|
3081
|
+
* update an existing protection rule
|
|
3082
|
+
* @param data The data for the request.
|
|
3083
|
+
* @param data.workspace
|
|
3084
|
+
* @param data.ruleName Name of the protection rule to update
|
|
3085
|
+
* @param data.requestBody Updated protection rule configuration
|
|
3086
|
+
* @returns string protection rule updated successfully
|
|
3087
|
+
* @throws ApiError
|
|
3088
|
+
*/
|
|
3089
|
+
export const updateProtectionRule = (data) => {
|
|
3090
|
+
return __request(OpenAPI, {
|
|
3091
|
+
method: 'POST',
|
|
3092
|
+
url: '/w/{workspace}/workspaces/protection_rules/{rule_name}',
|
|
3093
|
+
path: {
|
|
3094
|
+
workspace: data.workspace,
|
|
3095
|
+
rule_name: data.ruleName
|
|
3096
|
+
},
|
|
3097
|
+
body: data.requestBody,
|
|
3098
|
+
mediaType: 'application/json',
|
|
3099
|
+
errors: {
|
|
3100
|
+
404: 'protection rule not found'
|
|
3101
|
+
}
|
|
3102
|
+
});
|
|
3103
|
+
};
|
|
3104
|
+
/**
|
|
3105
|
+
* delete a protection rule
|
|
3106
|
+
* @param data The data for the request.
|
|
3107
|
+
* @param data.workspace
|
|
3108
|
+
* @param data.ruleName Name of the protection rule to delete
|
|
3109
|
+
* @returns string protection rule deleted successfully
|
|
3110
|
+
* @throws ApiError
|
|
3111
|
+
*/
|
|
3112
|
+
export const deleteProtectionRule = (data) => {
|
|
3113
|
+
return __request(OpenAPI, {
|
|
3114
|
+
method: 'DELETE',
|
|
3115
|
+
url: '/w/{workspace}/workspaces/protection_rules/{rule_name}',
|
|
3116
|
+
path: {
|
|
3117
|
+
workspace: data.workspace,
|
|
3118
|
+
rule_name: data.ruleName
|
|
3119
|
+
},
|
|
3120
|
+
errors: {
|
|
3121
|
+
404: 'protection rule not found'
|
|
3122
|
+
}
|
|
3123
|
+
});
|
|
3124
|
+
};
|
|
3125
|
+
/**
|
|
3126
|
+
* log AI chat message
|
|
3127
|
+
* @param data The data for the request.
|
|
3128
|
+
* @param data.workspace
|
|
3129
|
+
* @param data.requestBody
|
|
3130
|
+
* @returns void logged
|
|
3131
|
+
* @throws ApiError
|
|
3132
|
+
*/
|
|
3133
|
+
export const logAiChat = (data) => {
|
|
3134
|
+
return __request(OpenAPI, {
|
|
3135
|
+
method: 'POST',
|
|
3136
|
+
url: '/w/{workspace}/workspaces/log_chat',
|
|
3137
|
+
path: {
|
|
3138
|
+
workspace: data.workspace
|
|
3139
|
+
},
|
|
3140
|
+
body: data.requestBody,
|
|
3141
|
+
mediaType: 'application/json'
|
|
3142
|
+
});
|
|
3143
|
+
};
|
|
3144
|
+
/**
|
|
3145
|
+
* get cloud quota usage and limits for workspace
|
|
3146
|
+
* @param data The data for the request.
|
|
3147
|
+
* @param data.workspace
|
|
3148
|
+
* @returns unknown cloud quota usage and limits
|
|
3149
|
+
* @throws ApiError
|
|
3150
|
+
*/
|
|
3151
|
+
export const getCloudQuotas = (data) => {
|
|
3152
|
+
return __request(OpenAPI, {
|
|
3153
|
+
method: 'GET',
|
|
3154
|
+
url: '/w/{workspace}/workspaces/cloud_quotas',
|
|
3155
|
+
path: {
|
|
3156
|
+
workspace: data.workspace
|
|
3157
|
+
}
|
|
3158
|
+
});
|
|
3159
|
+
};
|
|
3160
|
+
/**
|
|
3161
|
+
* prune old versions of scripts, flows, or apps
|
|
3162
|
+
* @param data The data for the request.
|
|
3163
|
+
* @param data.workspace
|
|
3164
|
+
* @param data.requestBody
|
|
3165
|
+
* @returns unknown number of pruned versions
|
|
3166
|
+
* @throws ApiError
|
|
3167
|
+
*/
|
|
3168
|
+
export const pruneVersions = (data) => {
|
|
3169
|
+
return __request(OpenAPI, {
|
|
3170
|
+
method: 'POST',
|
|
3171
|
+
url: '/w/{workspace}/workspaces/prune_versions',
|
|
3172
|
+
path: {
|
|
3173
|
+
workspace: data.workspace
|
|
3174
|
+
},
|
|
3175
|
+
body: data.requestBody,
|
|
3176
|
+
mediaType: 'application/json'
|
|
3177
|
+
});
|
|
3178
|
+
};
|
|
2873
3179
|
/**
|
|
2874
3180
|
* Set public app rate limit for this workspace
|
|
2875
3181
|
* @param data The data for the request.
|
|
@@ -3336,6 +3642,10 @@ export const existsResource = (data) => {
|
|
|
3336
3642
|
* @param data.resourceType resource_types to list from, separated by ',',
|
|
3337
3643
|
* @param data.resourceTypeExclude resource_types to not list from, separated by ',',
|
|
3338
3644
|
* @param data.pathStart filter resources by path prefix
|
|
3645
|
+
* @param data.path exact path match filter
|
|
3646
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
3647
|
+
* @param data.value JSONB subset match filter using base64 encoded JSON
|
|
3648
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
3339
3649
|
* @returns ListableResource resource list
|
|
3340
3650
|
* @throws ApiError
|
|
3341
3651
|
*/
|
|
@@ -3351,7 +3661,11 @@ export const listResource = (data) => {
|
|
|
3351
3661
|
per_page: data.perPage,
|
|
3352
3662
|
resource_type: data.resourceType,
|
|
3353
3663
|
resource_type_exclude: data.resourceTypeExclude,
|
|
3354
|
-
path_start: data.pathStart
|
|
3664
|
+
path_start: data.pathStart,
|
|
3665
|
+
path: data.path,
|
|
3666
|
+
description: data.description,
|
|
3667
|
+
value: data.value,
|
|
3668
|
+
broad_filter: data.broadFilter
|
|
3355
3669
|
}
|
|
3356
3670
|
});
|
|
3357
3671
|
};
|
|
@@ -3430,7 +3744,7 @@ export const createResourceType = (data) => {
|
|
|
3430
3744
|
* get map from resource type to format extension
|
|
3431
3745
|
* @param data The data for the request.
|
|
3432
3746
|
* @param data.workspace
|
|
3433
|
-
* @returns unknown map from resource type to file
|
|
3747
|
+
* @returns unknown map from resource type to file resource info
|
|
3434
3748
|
* @throws ApiError
|
|
3435
3749
|
*/
|
|
3436
3750
|
export const fileResourceTypeToFileExtMap = (data) => {
|
|
@@ -3868,7 +4182,7 @@ export const listSearchScript = (data) => {
|
|
|
3868
4182
|
* @param data.page which page to return (start at 1, default 1)
|
|
3869
4183
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
3870
4184
|
* @param data.orderDesc order by desc order (default true)
|
|
3871
|
-
* @param data.createdBy
|
|
4185
|
+
* @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')
|
|
3872
4186
|
* @param data.pathStart mask to filter matching starting path
|
|
3873
4187
|
* @param data.pathExact mask to filter exact matching path
|
|
3874
4188
|
* @param data.firstParentHash mask to filter scripts whom first direct parent has exact hash
|
|
@@ -4449,6 +4763,22 @@ export const updateScriptHistory = (data) => {
|
|
|
4449
4763
|
mediaType: 'application/json'
|
|
4450
4764
|
});
|
|
4451
4765
|
};
|
|
4766
|
+
/**
|
|
4767
|
+
* list dedicated worker scripts with workspace dependency annotations
|
|
4768
|
+
* @param data The data for the request.
|
|
4769
|
+
* @param data.workspace
|
|
4770
|
+
* @returns unknown list of dedicated scripts with their workspace dependency names
|
|
4771
|
+
* @throws ApiError
|
|
4772
|
+
*/
|
|
4773
|
+
export const listDedicatedWithDeps = (data) => {
|
|
4774
|
+
return __request(OpenAPI, {
|
|
4775
|
+
method: 'GET',
|
|
4776
|
+
url: '/w/{workspace}/scripts/list_dedicated_with_deps',
|
|
4777
|
+
path: {
|
|
4778
|
+
workspace: data.workspace
|
|
4779
|
+
}
|
|
4780
|
+
});
|
|
4781
|
+
};
|
|
4452
4782
|
/**
|
|
4453
4783
|
* raw script by path
|
|
4454
4784
|
* @param data The data for the request.
|
|
@@ -4565,6 +4895,44 @@ export const getScriptDeploymentStatus = (data) => {
|
|
|
4565
4895
|
}
|
|
4566
4896
|
});
|
|
4567
4897
|
};
|
|
4898
|
+
/**
|
|
4899
|
+
* store raw script content temporarily for CLI lock generation
|
|
4900
|
+
* @param data The data for the request.
|
|
4901
|
+
* @param data.workspace
|
|
4902
|
+
* @param data.requestBody script content to store
|
|
4903
|
+
* @returns string hash of stored content
|
|
4904
|
+
* @throws ApiError
|
|
4905
|
+
*/
|
|
4906
|
+
export const storeRawScriptTemp = (data) => {
|
|
4907
|
+
return __request(OpenAPI, {
|
|
4908
|
+
method: 'POST',
|
|
4909
|
+
url: '/w/{workspace}/scripts/raw_temp/store',
|
|
4910
|
+
path: {
|
|
4911
|
+
workspace: data.workspace
|
|
4912
|
+
},
|
|
4913
|
+
body: data.requestBody,
|
|
4914
|
+
mediaType: 'application/json'
|
|
4915
|
+
});
|
|
4916
|
+
};
|
|
4917
|
+
/**
|
|
4918
|
+
* diff local script hashes against deployed versions
|
|
4919
|
+
* @param data The data for the request.
|
|
4920
|
+
* @param data.workspace
|
|
4921
|
+
* @param data.requestBody scripts and workspace deps to diff against deployed versions
|
|
4922
|
+
* @returns string list of paths that differ from deployed versions
|
|
4923
|
+
* @throws ApiError
|
|
4924
|
+
*/
|
|
4925
|
+
export const diffRawScriptsWithDeployed = (data) => {
|
|
4926
|
+
return __request(OpenAPI, {
|
|
4927
|
+
method: 'POST',
|
|
4928
|
+
url: '/w/{workspace}/scripts/raw_temp/diff',
|
|
4929
|
+
path: {
|
|
4930
|
+
workspace: data.workspace
|
|
4931
|
+
},
|
|
4932
|
+
body: data.requestBody,
|
|
4933
|
+
mediaType: 'application/json'
|
|
4934
|
+
});
|
|
4935
|
+
};
|
|
4568
4936
|
/**
|
|
4569
4937
|
* list selected jobs script/flow schemas grouped by (kind, path)
|
|
4570
4938
|
* @param data The data for the request.
|
|
@@ -5196,7 +5564,7 @@ export const listSearchFlow = (data) => {
|
|
|
5196
5564
|
* @param data.page which page to return (start at 1, default 1)
|
|
5197
5565
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5198
5566
|
* @param data.orderDesc order by desc order (default true)
|
|
5199
|
-
* @param data.createdBy
|
|
5567
|
+
* @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')
|
|
5200
5568
|
* @param data.pathStart mask to filter matching starting path
|
|
5201
5569
|
* @param data.pathExact mask to filter exact matching path
|
|
5202
5570
|
* @param data.showArchived (default false)
|
|
@@ -5636,7 +6004,7 @@ export const listConversationMessages = (data) => {
|
|
|
5636
6004
|
* @param data.page which page to return (start at 1, default 1)
|
|
5637
6005
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5638
6006
|
* @param data.orderDesc order by desc order (default true)
|
|
5639
|
-
* @param data.createdBy
|
|
6007
|
+
* @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')
|
|
5640
6008
|
* @param data.pathStart mask to filter matching starting path
|
|
5641
6009
|
* @param data.pathExact mask to filter exact matching path
|
|
5642
6010
|
* @param data.starredOnly (default false)
|
|
@@ -5704,7 +6072,7 @@ export const listSearchApp = (data) => {
|
|
|
5704
6072
|
* @param data.page which page to return (start at 1, default 1)
|
|
5705
6073
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5706
6074
|
* @param data.orderDesc order by desc order (default true)
|
|
5707
|
-
* @param data.createdBy
|
|
6075
|
+
* @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')
|
|
5708
6076
|
* @param data.pathStart mask to filter matching starting path
|
|
5709
6077
|
* @param data.pathExact mask to filter exact matching path
|
|
5710
6078
|
* @param data.starredOnly (default false)
|
|
@@ -6432,6 +6800,48 @@ export const runScriptPreviewInline = (data) => {
|
|
|
6432
6800
|
mediaType: 'application/json'
|
|
6433
6801
|
});
|
|
6434
6802
|
};
|
|
6803
|
+
/**
|
|
6804
|
+
* run script by path without starting a new job
|
|
6805
|
+
* @param data The data for the request.
|
|
6806
|
+
* @param data.workspace
|
|
6807
|
+
* @param data.path
|
|
6808
|
+
* @param data.requestBody script args
|
|
6809
|
+
* @returns unknown script result
|
|
6810
|
+
* @throws ApiError
|
|
6811
|
+
*/
|
|
6812
|
+
export const runScriptByPathInline = (data) => {
|
|
6813
|
+
return __request(OpenAPI, {
|
|
6814
|
+
method: 'POST',
|
|
6815
|
+
url: '/w/{workspace}/jobs/run_inline/p/{path}',
|
|
6816
|
+
path: {
|
|
6817
|
+
workspace: data.workspace,
|
|
6818
|
+
path: data.path
|
|
6819
|
+
},
|
|
6820
|
+
body: data.requestBody,
|
|
6821
|
+
mediaType: 'application/json'
|
|
6822
|
+
});
|
|
6823
|
+
};
|
|
6824
|
+
/**
|
|
6825
|
+
* run script by hash without starting a new job
|
|
6826
|
+
* @param data The data for the request.
|
|
6827
|
+
* @param data.workspace
|
|
6828
|
+
* @param data.hash
|
|
6829
|
+
* @param data.requestBody script args
|
|
6830
|
+
* @returns unknown script result
|
|
6831
|
+
* @throws ApiError
|
|
6832
|
+
*/
|
|
6833
|
+
export const runScriptByHashInline = (data) => {
|
|
6834
|
+
return __request(OpenAPI, {
|
|
6835
|
+
method: 'POST',
|
|
6836
|
+
url: '/w/{workspace}/jobs/run_inline/h/{hash}',
|
|
6837
|
+
path: {
|
|
6838
|
+
workspace: data.workspace,
|
|
6839
|
+
hash: data.hash
|
|
6840
|
+
},
|
|
6841
|
+
body: data.requestBody,
|
|
6842
|
+
mediaType: 'application/json'
|
|
6843
|
+
});
|
|
6844
|
+
};
|
|
6435
6845
|
/**
|
|
6436
6846
|
* run script preview and wait for result
|
|
6437
6847
|
* @param data The data for the request.
|
|
@@ -6571,26 +6981,26 @@ export const runDynamicSelect = (data) => {
|
|
|
6571
6981
|
* @param data The data for the request.
|
|
6572
6982
|
* @param data.workspace
|
|
6573
6983
|
* @param data.orderDesc order by desc order (default true)
|
|
6574
|
-
* @param data.createdBy
|
|
6984
|
+
* @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')
|
|
6575
6985
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
6576
|
-
* @param data.worker worker this job
|
|
6577
|
-
* @param data.scriptPathExact
|
|
6578
|
-
* @param data.scriptPathStart
|
|
6986
|
+
* @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')
|
|
6987
|
+
* @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')
|
|
6988
|
+
* @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')
|
|
6579
6989
|
* @param data.schedulePath mask to filter by schedule path
|
|
6580
|
-
* @param data.triggerPath
|
|
6581
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
6990
|
+
* @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')
|
|
6991
|
+
* @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')
|
|
6582
6992
|
* @param data.scriptHash mask to filter exact matching path
|
|
6583
6993
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6584
6994
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6585
6995
|
* @param data.success filter on successful jobs
|
|
6586
6996
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6587
|
-
* @param data.jobKinds filter
|
|
6997
|
+
* @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')
|
|
6588
6998
|
* @param data.suspended filter on suspended jobs
|
|
6589
6999
|
* @param data.running filter on running jobs
|
|
6590
7000
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6591
7001
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6592
7002
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6593
|
-
* @param data.tag filter
|
|
7003
|
+
* @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')
|
|
6594
7004
|
* @param data.page which page to return (start at 1, default 1)
|
|
6595
7005
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6596
7006
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
@@ -6700,12 +7110,12 @@ export const countCompletedJobs = (data) => {
|
|
|
6700
7110
|
* get the ids of all jobs matching the given filters
|
|
6701
7111
|
* @param data The data for the request.
|
|
6702
7112
|
* @param data.workspace
|
|
6703
|
-
* @param data.createdBy
|
|
6704
|
-
* @param data.label
|
|
6705
|
-
* @param data.worker worker this job
|
|
7113
|
+
* @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')
|
|
7114
|
+
* @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')
|
|
7115
|
+
* @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')
|
|
6706
7116
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
6707
|
-
* @param data.scriptPathExact
|
|
6708
|
-
* @param data.scriptPathStart
|
|
7117
|
+
* @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')
|
|
7118
|
+
* @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')
|
|
6709
7119
|
* @param data.schedulePath mask to filter by schedule path
|
|
6710
7120
|
* @param data.scriptHash mask to filter exact matching path
|
|
6711
7121
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -6718,10 +7128,10 @@ export const countCompletedJobs = (data) => {
|
|
|
6718
7128
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
6719
7129
|
* @param data.running filter on running jobs
|
|
6720
7130
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6721
|
-
* @param data.jobKinds filter
|
|
7131
|
+
* @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')
|
|
6722
7132
|
* @param data.suspended filter on suspended jobs
|
|
6723
7133
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6724
|
-
* @param data.tag filter
|
|
7134
|
+
* @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')
|
|
6725
7135
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6726
7136
|
* @param data.page which page to return (start at 1, default 1)
|
|
6727
7137
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
@@ -6781,23 +7191,23 @@ export const listFilteredJobsUuids = (data) => {
|
|
|
6781
7191
|
* @param data The data for the request.
|
|
6782
7192
|
* @param data.workspace
|
|
6783
7193
|
* @param data.orderDesc order by desc order (default true)
|
|
6784
|
-
* @param data.createdBy
|
|
7194
|
+
* @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')
|
|
6785
7195
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
6786
|
-
* @param data.scriptPathExact
|
|
6787
|
-
* @param data.scriptPathStart
|
|
7196
|
+
* @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')
|
|
7197
|
+
* @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')
|
|
6788
7198
|
* @param data.schedulePath mask to filter by schedule path
|
|
6789
7199
|
* @param data.scriptHash mask to filter exact matching path
|
|
6790
7200
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6791
7201
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6792
7202
|
* @param data.success filter on successful jobs
|
|
6793
7203
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6794
|
-
* @param data.jobKinds filter
|
|
7204
|
+
* @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')
|
|
6795
7205
|
* @param data.suspended filter on suspended jobs
|
|
6796
7206
|
* @param data.running filter on running jobs
|
|
6797
7207
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6798
7208
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6799
7209
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6800
|
-
* @param data.tag filter
|
|
7210
|
+
* @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')
|
|
6801
7211
|
* @param data.page which page to return (start at 1, default 1)
|
|
6802
7212
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6803
7213
|
* @param data.concurrencyKey
|
|
@@ -6932,22 +7342,22 @@ export const cancelSuspendedTriggerJobs = (data) => {
|
|
|
6932
7342
|
* @param data The data for the request.
|
|
6933
7343
|
* @param data.workspace
|
|
6934
7344
|
* @param data.orderDesc order by desc order (default true)
|
|
6935
|
-
* @param data.createdBy
|
|
6936
|
-
* @param data.label
|
|
6937
|
-
* @param data.worker worker this job
|
|
7345
|
+
* @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')
|
|
7346
|
+
* @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')
|
|
7347
|
+
* @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')
|
|
6938
7348
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
6939
|
-
* @param data.scriptPathExact
|
|
6940
|
-
* @param data.scriptPathStart
|
|
7349
|
+
* @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')
|
|
7350
|
+
* @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')
|
|
6941
7351
|
* @param data.schedulePath mask to filter by schedule path
|
|
6942
7352
|
* @param data.scriptHash mask to filter exact matching path
|
|
6943
7353
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6944
7354
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6945
7355
|
* @param data.success filter on successful jobs
|
|
6946
|
-
* @param data.jobKinds filter
|
|
7356
|
+
* @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')
|
|
6947
7357
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6948
7358
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6949
7359
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6950
|
-
* @param data.tag filter
|
|
7360
|
+
* @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')
|
|
6951
7361
|
* @param data.page which page to return (start at 1, default 1)
|
|
6952
7362
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6953
7363
|
* @param data.isSkipped is the job skipped
|
|
@@ -7096,12 +7506,12 @@ export const deleteJobs = (data) => {
|
|
|
7096
7506
|
* list all jobs
|
|
7097
7507
|
* @param data The data for the request.
|
|
7098
7508
|
* @param data.workspace
|
|
7099
|
-
* @param data.createdBy
|
|
7100
|
-
* @param data.label
|
|
7101
|
-
* @param data.worker worker this job
|
|
7509
|
+
* @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')
|
|
7510
|
+
* @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')
|
|
7511
|
+
* @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')
|
|
7102
7512
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7103
|
-
* @param data.scriptPathExact
|
|
7104
|
-
* @param data.scriptPathStart
|
|
7513
|
+
* @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')
|
|
7514
|
+
* @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')
|
|
7105
7515
|
* @param data.schedulePath mask to filter by schedule path
|
|
7106
7516
|
* @param data.scriptHash mask to filter exact matching path
|
|
7107
7517
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -7114,20 +7524,21 @@ export const deleteJobs = (data) => {
|
|
|
7114
7524
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
7115
7525
|
* @param data.running filter on running jobs
|
|
7116
7526
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7117
|
-
* @param data.jobKinds filter
|
|
7527
|
+
* @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')
|
|
7118
7528
|
* @param data.suspended filter on suspended jobs
|
|
7119
7529
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7120
|
-
* @param data.tag filter
|
|
7530
|
+
* @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')
|
|
7121
7531
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7122
7532
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7123
7533
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7124
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
7534
|
+
* @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')
|
|
7125
7535
|
* @param data.isSkipped is the job skipped
|
|
7126
7536
|
* @param data.isFlowStep is the job a flow step
|
|
7127
7537
|
* @param data.hasNullParent has null parent
|
|
7128
7538
|
* @param data.success filter on successful jobs
|
|
7129
7539
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
7130
7540
|
* @param data.isNotSchedule is not a scheduled job
|
|
7541
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match on path, tag, schedule path, trigger kind, label)
|
|
7131
7542
|
* @returns Job All jobs
|
|
7132
7543
|
* @throws ApiError
|
|
7133
7544
|
*/
|
|
@@ -7170,7 +7581,8 @@ export const listJobs = (data) => {
|
|
|
7170
7581
|
has_null_parent: data.hasNullParent,
|
|
7171
7582
|
success: data.success,
|
|
7172
7583
|
all_workspaces: data.allWorkspaces,
|
|
7173
|
-
is_not_schedule: data.isNotSchedule
|
|
7584
|
+
is_not_schedule: data.isNotSchedule,
|
|
7585
|
+
broad_filter: data.broadFilter
|
|
7174
7586
|
}
|
|
7175
7587
|
});
|
|
7176
7588
|
};
|
|
@@ -7363,6 +7775,7 @@ export const getJobUpdates = (data) => {
|
|
|
7363
7775
|
* @param data.getProgress
|
|
7364
7776
|
* @param data.onlyResult
|
|
7365
7777
|
* @param data.noLogs
|
|
7778
|
+
* @param data.fast
|
|
7366
7779
|
* @returns string server-sent events stream of job updates
|
|
7367
7780
|
* @throws ApiError
|
|
7368
7781
|
*/
|
|
@@ -7380,7 +7793,8 @@ export const getJobUpdatesSse = (data) => {
|
|
|
7380
7793
|
stream_offset: data.streamOffset,
|
|
7381
7794
|
get_progress: data.getProgress,
|
|
7382
7795
|
only_result: data.onlyResult,
|
|
7383
|
-
no_logs: data.noLogs
|
|
7796
|
+
no_logs: data.noLogs,
|
|
7797
|
+
fast: data.fast
|
|
7384
7798
|
}
|
|
7385
7799
|
});
|
|
7386
7800
|
};
|
|
@@ -7685,6 +8099,8 @@ export const getResumeUrls = (data) => {
|
|
|
7685
8099
|
* @param data.message
|
|
7686
8100
|
* @param data.defaultArgsJson
|
|
7687
8101
|
* @param data.dynamicEnumsJson
|
|
8102
|
+
* @param data.resumeButtonText
|
|
8103
|
+
* @param data.cancelButtonText
|
|
7688
8104
|
* @returns unknown Interactive slack approval message sent successfully
|
|
7689
8105
|
* @throws ApiError
|
|
7690
8106
|
*/
|
|
@@ -7703,7 +8119,9 @@ export const getSlackApprovalPayload = (data) => {
|
|
|
7703
8119
|
channel_id: data.channelId,
|
|
7704
8120
|
flow_step_id: data.flowStepId,
|
|
7705
8121
|
default_args_json: data.defaultArgsJson,
|
|
7706
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8122
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8123
|
+
resume_button_text: data.resumeButtonText,
|
|
8124
|
+
cancel_button_text: data.cancelButtonText
|
|
7707
8125
|
}
|
|
7708
8126
|
});
|
|
7709
8127
|
};
|
|
@@ -7719,6 +8137,8 @@ export const getSlackApprovalPayload = (data) => {
|
|
|
7719
8137
|
* @param data.message
|
|
7720
8138
|
* @param data.defaultArgsJson
|
|
7721
8139
|
* @param data.dynamicEnumsJson
|
|
8140
|
+
* @param data.resumeButtonText
|
|
8141
|
+
* @param data.cancelButtonText
|
|
7722
8142
|
* @returns unknown Interactive slack approval message sent successfully
|
|
7723
8143
|
* @throws ApiError
|
|
7724
8144
|
*/
|
|
@@ -7737,7 +8157,56 @@ export const getTeamsApprovalPayload = (data) => {
|
|
|
7737
8157
|
channel_name: data.channelName,
|
|
7738
8158
|
flow_step_id: data.flowStepId,
|
|
7739
8159
|
default_args_json: data.defaultArgsJson,
|
|
7740
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8160
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8161
|
+
resume_button_text: data.resumeButtonText,
|
|
8162
|
+
cancel_button_text: data.cancelButtonText
|
|
8163
|
+
}
|
|
8164
|
+
});
|
|
8165
|
+
};
|
|
8166
|
+
/**
|
|
8167
|
+
* resume or cancel a suspended flow/WAC job
|
|
8168
|
+
* Resume or cancel a suspended flow/WAC job. Uses approval rules to determine authorization. Either a valid approval_token or an authenticated session is required.
|
|
8169
|
+
*
|
|
8170
|
+
* @param data The data for the request.
|
|
8171
|
+
* @param data.workspace
|
|
8172
|
+
* @param data.jobId
|
|
8173
|
+
* @param data.requestBody
|
|
8174
|
+
* @returns string job resumed
|
|
8175
|
+
* @throws ApiError
|
|
8176
|
+
*/
|
|
8177
|
+
export const resumeSuspended = (data) => {
|
|
8178
|
+
return __request(OpenAPI, {
|
|
8179
|
+
method: 'POST',
|
|
8180
|
+
url: '/w/{workspace}/jobs_u/flow/resume_suspended/{job_id}',
|
|
8181
|
+
path: {
|
|
8182
|
+
workspace: data.workspace,
|
|
8183
|
+
job_id: data.jobId
|
|
8184
|
+
},
|
|
8185
|
+
body: data.requestBody,
|
|
8186
|
+
mediaType: 'application/json'
|
|
8187
|
+
});
|
|
8188
|
+
};
|
|
8189
|
+
/**
|
|
8190
|
+
* get approval info for a suspended flow/WAC job
|
|
8191
|
+
* Get approval info for a suspended flow/WAC job. Returns form schema, approval rules, and whether the current user can approve. Either a valid token query parameter or an authenticated session is required.
|
|
8192
|
+
*
|
|
8193
|
+
* @param data The data for the request.
|
|
8194
|
+
* @param data.workspace
|
|
8195
|
+
* @param data.jobId
|
|
8196
|
+
* @param data.token approval token for unauthenticated access
|
|
8197
|
+
* @returns unknown approval info
|
|
8198
|
+
* @throws ApiError
|
|
8199
|
+
*/
|
|
8200
|
+
export const getApprovalInfo = (data) => {
|
|
8201
|
+
return __request(OpenAPI, {
|
|
8202
|
+
method: 'GET',
|
|
8203
|
+
url: '/w/{workspace}/jobs_u/flow/approval_info/{job_id}',
|
|
8204
|
+
path: {
|
|
8205
|
+
workspace: data.workspace,
|
|
8206
|
+
job_id: data.jobId
|
|
8207
|
+
},
|
|
8208
|
+
query: {
|
|
8209
|
+
token: data.token
|
|
7741
8210
|
}
|
|
7742
8211
|
});
|
|
7743
8212
|
};
|
|
@@ -8082,9 +8551,13 @@ export const existsSchedule = (data) => {
|
|
|
8082
8551
|
* @param data.page which page to return (start at 1, default 1)
|
|
8083
8552
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
8084
8553
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
8085
|
-
* @param data.path filter by path
|
|
8554
|
+
* @param data.path filter by path (script path)
|
|
8086
8555
|
* @param data.isFlow filter schedules by whether they target a flow
|
|
8087
8556
|
* @param data.pathStart filter schedules by path prefix
|
|
8557
|
+
* @param data.schedulePath exact match on the schedule's path
|
|
8558
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
8559
|
+
* @param data.summary pattern match filter for summary field (case-insensitive)
|
|
8560
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
8088
8561
|
* @returns Schedule schedule list
|
|
8089
8562
|
* @throws ApiError
|
|
8090
8563
|
*/
|
|
@@ -8101,7 +8574,11 @@ export const listSchedules = (data) => {
|
|
|
8101
8574
|
args: data.args,
|
|
8102
8575
|
path: data.path,
|
|
8103
8576
|
is_flow: data.isFlow,
|
|
8104
|
-
path_start: data.pathStart
|
|
8577
|
+
path_start: data.pathStart,
|
|
8578
|
+
schedule_path: data.schedulePath,
|
|
8579
|
+
description: data.description,
|
|
8580
|
+
summary: data.summary,
|
|
8581
|
+
broad_filter: data.broadFilter
|
|
8105
8582
|
}
|
|
8106
8583
|
});
|
|
8107
8584
|
};
|
|
@@ -8689,6 +9166,45 @@ export const testKafkaConnection = (data) => {
|
|
|
8689
9166
|
mediaType: 'application/json'
|
|
8690
9167
|
});
|
|
8691
9168
|
};
|
|
9169
|
+
/**
|
|
9170
|
+
* reset kafka trigger offsets to earliest
|
|
9171
|
+
* @param data The data for the request.
|
|
9172
|
+
* @param data.workspace
|
|
9173
|
+
* @param data.path
|
|
9174
|
+
* @returns unknown kafka trigger offsets reset successfully
|
|
9175
|
+
* @throws ApiError
|
|
9176
|
+
*/
|
|
9177
|
+
export const resetKafkaOffsets = (data) => {
|
|
9178
|
+
return __request(OpenAPI, {
|
|
9179
|
+
method: 'POST',
|
|
9180
|
+
url: '/w/{workspace}/kafka_triggers/reset_offsets/{path}',
|
|
9181
|
+
path: {
|
|
9182
|
+
workspace: data.workspace,
|
|
9183
|
+
path: data.path
|
|
9184
|
+
}
|
|
9185
|
+
});
|
|
9186
|
+
};
|
|
9187
|
+
/**
|
|
9188
|
+
* commit kafka offsets for a specific trigger
|
|
9189
|
+
* @param data The data for the request.
|
|
9190
|
+
* @param data.workspace
|
|
9191
|
+
* @param data.path
|
|
9192
|
+
* @param data.requestBody offsets to commit
|
|
9193
|
+
* @returns unknown kafka offsets committed successfully
|
|
9194
|
+
* @throws ApiError
|
|
9195
|
+
*/
|
|
9196
|
+
export const commitKafkaOffsets = (data) => {
|
|
9197
|
+
return __request(OpenAPI, {
|
|
9198
|
+
method: 'POST',
|
|
9199
|
+
url: '/w/{workspace}/kafka_triggers/commit_offsets/{path}',
|
|
9200
|
+
path: {
|
|
9201
|
+
workspace: data.workspace,
|
|
9202
|
+
path: data.path
|
|
9203
|
+
},
|
|
9204
|
+
body: data.requestBody,
|
|
9205
|
+
mediaType: 'application/json'
|
|
9206
|
+
});
|
|
9207
|
+
};
|
|
8692
9208
|
/**
|
|
8693
9209
|
* create nats trigger
|
|
8694
9210
|
* @param data The data for the request.
|
|
@@ -9089,6 +9605,45 @@ export const generateNativeTriggerServiceConnectUrl = (data) => {
|
|
|
9089
9605
|
mediaType: 'application/json'
|
|
9090
9606
|
});
|
|
9091
9607
|
};
|
|
9608
|
+
/**
|
|
9609
|
+
* check if instance-level credential sharing is available for a service
|
|
9610
|
+
* @param data The data for the request.
|
|
9611
|
+
* @param data.workspace
|
|
9612
|
+
* @param data.serviceName
|
|
9613
|
+
* @returns boolean whether instance sharing is available
|
|
9614
|
+
* @throws ApiError
|
|
9615
|
+
*/
|
|
9616
|
+
export const checkInstanceSharingAvailable = (data) => {
|
|
9617
|
+
return __request(OpenAPI, {
|
|
9618
|
+
method: 'GET',
|
|
9619
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/instance_sharing_available',
|
|
9620
|
+
path: {
|
|
9621
|
+
workspace: data.workspace,
|
|
9622
|
+
service_name: data.serviceName
|
|
9623
|
+
}
|
|
9624
|
+
});
|
|
9625
|
+
};
|
|
9626
|
+
/**
|
|
9627
|
+
* generate connect url using instance-level credentials
|
|
9628
|
+
* @param data The data for the request.
|
|
9629
|
+
* @param data.workspace
|
|
9630
|
+
* @param data.serviceName
|
|
9631
|
+
* @param data.requestBody redirect_uri
|
|
9632
|
+
* @returns string authorization URL using instance credentials
|
|
9633
|
+
* @throws ApiError
|
|
9634
|
+
*/
|
|
9635
|
+
export const generateInstanceConnectUrl = (data) => {
|
|
9636
|
+
return __request(OpenAPI, {
|
|
9637
|
+
method: 'POST',
|
|
9638
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/generate_instance_connect_url',
|
|
9639
|
+
path: {
|
|
9640
|
+
workspace: data.workspace,
|
|
9641
|
+
service_name: data.serviceName
|
|
9642
|
+
},
|
|
9643
|
+
body: data.requestBody,
|
|
9644
|
+
mediaType: 'application/json'
|
|
9645
|
+
});
|
|
9646
|
+
};
|
|
9092
9647
|
/**
|
|
9093
9648
|
* delete native trigger service
|
|
9094
9649
|
* @param data The data for the request.
|
|
@@ -9112,21 +9667,17 @@ export const deleteNativeTriggerService = (data) => {
|
|
|
9112
9667
|
* @param data The data for the request.
|
|
9113
9668
|
* @param data.workspace
|
|
9114
9669
|
* @param data.serviceName
|
|
9115
|
-
* @param data.
|
|
9116
|
-
* @param data.state
|
|
9117
|
-
* @param data.requestBody redirect_uri
|
|
9670
|
+
* @param data.requestBody OAuth callback data
|
|
9118
9671
|
* @returns string native trigger service oauth completed
|
|
9119
9672
|
* @throws ApiError
|
|
9120
9673
|
*/
|
|
9121
9674
|
export const nativeTriggerServiceCallback = (data) => {
|
|
9122
9675
|
return __request(OpenAPI, {
|
|
9123
9676
|
method: 'POST',
|
|
9124
|
-
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback
|
|
9677
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback',
|
|
9125
9678
|
path: {
|
|
9126
9679
|
workspace: data.workspace,
|
|
9127
|
-
service_name: data.serviceName
|
|
9128
|
-
code: data.code,
|
|
9129
|
-
state: data.state
|
|
9680
|
+
service_name: data.serviceName
|
|
9130
9681
|
},
|
|
9131
9682
|
body: data.requestBody,
|
|
9132
9683
|
mediaType: 'application/json'
|
|
@@ -9312,6 +9863,64 @@ export const listNextCloudEvents = (data) => {
|
|
|
9312
9863
|
}
|
|
9313
9864
|
});
|
|
9314
9865
|
};
|
|
9866
|
+
/**
|
|
9867
|
+
* list Google Calendars for the authenticated user
|
|
9868
|
+
* @param data The data for the request.
|
|
9869
|
+
* @param data.workspace
|
|
9870
|
+
* @returns GoogleCalendarEntry list of Google Calendars
|
|
9871
|
+
* @throws ApiError
|
|
9872
|
+
*/
|
|
9873
|
+
export const listGoogleCalendars = (data) => {
|
|
9874
|
+
return __request(OpenAPI, {
|
|
9875
|
+
method: 'GET',
|
|
9876
|
+
url: '/w/{workspace}/native_triggers/google/calendars',
|
|
9877
|
+
path: {
|
|
9878
|
+
workspace: data.workspace
|
|
9879
|
+
}
|
|
9880
|
+
});
|
|
9881
|
+
};
|
|
9882
|
+
/**
|
|
9883
|
+
* list or search Google Drive files
|
|
9884
|
+
* @param data The data for the request.
|
|
9885
|
+
* @param data.workspace
|
|
9886
|
+
* @param data.q search query to filter files by name
|
|
9887
|
+
* @param data.parentId folder ID to list children of
|
|
9888
|
+
* @param data.pageToken token for next page of results
|
|
9889
|
+
* @param data.sharedWithMe if true, list files shared with the user
|
|
9890
|
+
* @returns GoogleDriveFilesResponse list of Google Drive files
|
|
9891
|
+
* @throws ApiError
|
|
9892
|
+
*/
|
|
9893
|
+
export const listGoogleDriveFiles = (data) => {
|
|
9894
|
+
return __request(OpenAPI, {
|
|
9895
|
+
method: 'GET',
|
|
9896
|
+
url: '/w/{workspace}/native_triggers/google/drive/files',
|
|
9897
|
+
path: {
|
|
9898
|
+
workspace: data.workspace
|
|
9899
|
+
},
|
|
9900
|
+
query: {
|
|
9901
|
+
q: data.q,
|
|
9902
|
+
parent_id: data.parentId,
|
|
9903
|
+
page_token: data.pageToken,
|
|
9904
|
+
shared_with_me: data.sharedWithMe
|
|
9905
|
+
}
|
|
9906
|
+
});
|
|
9907
|
+
};
|
|
9908
|
+
/**
|
|
9909
|
+
* list shared drives accessible to the user
|
|
9910
|
+
* @param data The data for the request.
|
|
9911
|
+
* @param data.workspace
|
|
9912
|
+
* @returns SharedDriveEntry list of shared drives
|
|
9913
|
+
* @throws ApiError
|
|
9914
|
+
*/
|
|
9915
|
+
export const listGoogleSharedDrives = (data) => {
|
|
9916
|
+
return __request(OpenAPI, {
|
|
9917
|
+
method: 'GET',
|
|
9918
|
+
url: '/w/{workspace}/native_triggers/google/drive/shared_drives',
|
|
9919
|
+
path: {
|
|
9920
|
+
workspace: data.workspace
|
|
9921
|
+
}
|
|
9922
|
+
});
|
|
9923
|
+
};
|
|
9315
9924
|
/**
|
|
9316
9925
|
* receive webhook from external native trigger service
|
|
9317
9926
|
* @param data The data for the request.
|
|
@@ -10306,7 +10915,7 @@ export const listInstanceGroupsWithWorkspaces = () => {
|
|
|
10306
10915
|
* get instance group
|
|
10307
10916
|
* @param data The data for the request.
|
|
10308
10917
|
* @param data.name
|
|
10309
|
-
* @returns
|
|
10918
|
+
* @returns InstanceGroupWithWorkspaces instance group
|
|
10310
10919
|
* @throws ApiError
|
|
10311
10920
|
*/
|
|
10312
10921
|
export const getInstanceGroup = (data) => {
|
|
@@ -12199,11 +12808,11 @@ export const getConcurrencyKey = (data) => {
|
|
|
12199
12808
|
* @param data.workspace
|
|
12200
12809
|
* @param data.concurrencyKey
|
|
12201
12810
|
* @param data.rowLimit
|
|
12202
|
-
* @param data.createdBy
|
|
12203
|
-
* @param data.label
|
|
12811
|
+
* @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')
|
|
12812
|
+
* @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')
|
|
12204
12813
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
12205
|
-
* @param data.scriptPathExact
|
|
12206
|
-
* @param data.scriptPathStart
|
|
12814
|
+
* @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')
|
|
12815
|
+
* @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')
|
|
12207
12816
|
* @param data.schedulePath mask to filter by schedule path
|
|
12208
12817
|
* @param data.scriptHash mask to filter exact matching path
|
|
12209
12818
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -12214,14 +12823,14 @@ export const getConcurrencyKey = (data) => {
|
|
|
12214
12823
|
* @param data.completedAfter filter on started after (exclusive) timestamp
|
|
12215
12824
|
* @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
|
|
12216
12825
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
12217
|
-
* @param data.jobKinds filter
|
|
12826
|
+
* @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')
|
|
12218
12827
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
12219
|
-
* @param data.tag filter
|
|
12828
|
+
* @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')
|
|
12220
12829
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
12221
12830
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
12222
12831
|
* @param data.page which page to return (start at 1, default 1)
|
|
12223
12832
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12224
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
12833
|
+
* @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')
|
|
12225
12834
|
* @param data.isSkipped is the job skipped
|
|
12226
12835
|
* @param data.isFlowStep is the job a flow step
|
|
12227
12836
|
* @param data.hasNullParent has null parent
|
|
@@ -12342,21 +12951,54 @@ export const countSearchLogsIndex = (data) => {
|
|
|
12342
12951
|
});
|
|
12343
12952
|
};
|
|
12344
12953
|
/**
|
|
12345
|
-
*
|
|
12954
|
+
* Get index disk storage sizes from the indexer.
|
|
12955
|
+
* @returns unknown disk storage sizes for each index
|
|
12956
|
+
* @throws ApiError
|
|
12957
|
+
*/
|
|
12958
|
+
export const getIndexDiskStorageSizes = () => {
|
|
12959
|
+
return __request(OpenAPI, {
|
|
12960
|
+
method: 'GET',
|
|
12961
|
+
url: '/srch/index/storage/disk'
|
|
12962
|
+
});
|
|
12963
|
+
};
|
|
12964
|
+
/**
|
|
12965
|
+
* Clear an index and restart the indexer.
|
|
12346
12966
|
* @param data The data for the request.
|
|
12347
12967
|
* @param data.idxName
|
|
12348
|
-
* @returns string idx to be deleted and
|
|
12968
|
+
* @returns string idx to be deleted and indexer restarting
|
|
12349
12969
|
* @throws ApiError
|
|
12350
12970
|
*/
|
|
12351
12971
|
export const clearIndex = (data) => {
|
|
12352
12972
|
return __request(OpenAPI, {
|
|
12353
12973
|
method: 'DELETE',
|
|
12354
|
-
url: '/
|
|
12974
|
+
url: '/indexer/delete/{idx_name}',
|
|
12355
12975
|
path: {
|
|
12356
12976
|
idx_name: data.idxName
|
|
12357
12977
|
}
|
|
12358
12978
|
});
|
|
12359
12979
|
};
|
|
12980
|
+
/**
|
|
12981
|
+
* Get index storage sizes (disk and S3).
|
|
12982
|
+
* @returns unknown storage sizes for each index
|
|
12983
|
+
* @throws ApiError
|
|
12984
|
+
*/
|
|
12985
|
+
export const getIndexStorageSizes = () => {
|
|
12986
|
+
return __request(OpenAPI, {
|
|
12987
|
+
method: 'GET',
|
|
12988
|
+
url: '/indexer/storage'
|
|
12989
|
+
});
|
|
12990
|
+
};
|
|
12991
|
+
/**
|
|
12992
|
+
* Get indexer status including liveness and storage sizes.
|
|
12993
|
+
* @returns unknown indexer status for each index
|
|
12994
|
+
* @throws ApiError
|
|
12995
|
+
*/
|
|
12996
|
+
export const getIndexerStatus = () => {
|
|
12997
|
+
return __request(OpenAPI, {
|
|
12998
|
+
method: 'GET',
|
|
12999
|
+
url: '/indexer/status'
|
|
13000
|
+
});
|
|
13001
|
+
};
|
|
12360
13002
|
/**
|
|
12361
13003
|
* List all assets in the workspace with cursor pagination
|
|
12362
13004
|
* @param data The data for the request.
|
|
@@ -12367,6 +13009,9 @@ export const clearIndex = (data) => {
|
|
|
12367
13009
|
* @param data.assetPath Filter by asset path (case-insensitive partial match)
|
|
12368
13010
|
* @param data.usagePath Filter by usage path (case-insensitive partial match)
|
|
12369
13011
|
* @param data.assetKinds Filter by asset kinds (multiple values allowed)
|
|
13012
|
+
* @param data.path exact path match filter
|
|
13013
|
+
* @param data.columns JSONB subset match filter for columns using base64 encoded JSON
|
|
13014
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
12370
13015
|
* @returns unknown paginated assets in the workspace
|
|
12371
13016
|
* @throws ApiError
|
|
12372
13017
|
*/
|
|
@@ -12383,7 +13028,10 @@ export const listAssets = (data) => {
|
|
|
12383
13028
|
cursor_id: data.cursorId,
|
|
12384
13029
|
asset_path: data.assetPath,
|
|
12385
13030
|
usage_path: data.usagePath,
|
|
12386
|
-
asset_kinds: data.assetKinds
|
|
13031
|
+
asset_kinds: data.assetKinds,
|
|
13032
|
+
path: data.path,
|
|
13033
|
+
columns: data.columns,
|
|
13034
|
+
broad_filter: data.broadFilter
|
|
12387
13035
|
}
|
|
12388
13036
|
});
|
|
12389
13037
|
};
|
|
@@ -12422,6 +13070,75 @@ export const listFavoriteAssets = (data) => {
|
|
|
12422
13070
|
}
|
|
12423
13071
|
});
|
|
12424
13072
|
};
|
|
13073
|
+
/**
|
|
13074
|
+
* List all volumes in the workspace
|
|
13075
|
+
* @param data The data for the request.
|
|
13076
|
+
* @param data.workspace
|
|
13077
|
+
* @returns Volume list of volumes
|
|
13078
|
+
* @throws ApiError
|
|
13079
|
+
*/
|
|
13080
|
+
export const listVolumes = (data) => {
|
|
13081
|
+
return __request(OpenAPI, {
|
|
13082
|
+
method: 'GET',
|
|
13083
|
+
url: '/w/{workspace}/volumes/list',
|
|
13084
|
+
path: {
|
|
13085
|
+
workspace: data.workspace
|
|
13086
|
+
}
|
|
13087
|
+
});
|
|
13088
|
+
};
|
|
13089
|
+
/**
|
|
13090
|
+
* Get the volume storage name (secondary storage) or null for primary
|
|
13091
|
+
* @param data The data for the request.
|
|
13092
|
+
* @param data.workspace
|
|
13093
|
+
* @returns string volume storage name or null
|
|
13094
|
+
* @throws ApiError
|
|
13095
|
+
*/
|
|
13096
|
+
export const getVolumeStorage = (data) => {
|
|
13097
|
+
return __request(OpenAPI, {
|
|
13098
|
+
method: 'GET',
|
|
13099
|
+
url: '/w/{workspace}/volumes/storage',
|
|
13100
|
+
path: {
|
|
13101
|
+
workspace: data.workspace
|
|
13102
|
+
}
|
|
13103
|
+
});
|
|
13104
|
+
};
|
|
13105
|
+
/**
|
|
13106
|
+
* Create a new volume
|
|
13107
|
+
* @param data The data for the request.
|
|
13108
|
+
* @param data.workspace
|
|
13109
|
+
* @param data.requestBody
|
|
13110
|
+
* @returns string volume created
|
|
13111
|
+
* @throws ApiError
|
|
13112
|
+
*/
|
|
13113
|
+
export const createVolume = (data) => {
|
|
13114
|
+
return __request(OpenAPI, {
|
|
13115
|
+
method: 'POST',
|
|
13116
|
+
url: '/w/{workspace}/volumes/create',
|
|
13117
|
+
path: {
|
|
13118
|
+
workspace: data.workspace
|
|
13119
|
+
},
|
|
13120
|
+
body: data.requestBody,
|
|
13121
|
+
mediaType: 'application/json'
|
|
13122
|
+
});
|
|
13123
|
+
};
|
|
13124
|
+
/**
|
|
13125
|
+
* Delete a volume (admin only)
|
|
13126
|
+
* @param data The data for the request.
|
|
13127
|
+
* @param data.workspace
|
|
13128
|
+
* @param data.name
|
|
13129
|
+
* @returns string volume deleted
|
|
13130
|
+
* @throws ApiError
|
|
13131
|
+
*/
|
|
13132
|
+
export const deleteVolume = (data) => {
|
|
13133
|
+
return __request(OpenAPI, {
|
|
13134
|
+
method: 'DELETE',
|
|
13135
|
+
url: '/w/{workspace}/volumes/delete/{name}',
|
|
13136
|
+
path: {
|
|
13137
|
+
workspace: data.workspace,
|
|
13138
|
+
name: data.name
|
|
13139
|
+
}
|
|
13140
|
+
});
|
|
13141
|
+
};
|
|
12425
13142
|
/**
|
|
12426
13143
|
* list available MCP tools
|
|
12427
13144
|
* @param data The data for the request.
|