windmill-utils-internal 1.3.4 → 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.
- 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 +310 -55
- package/dist/cjs/gen/services.gen.js +623 -78
- package/dist/cjs/gen/types.gen.d.ts +949 -178
- 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/esm/config/config.js +13 -77
- package/dist/esm/gen/core/OpenAPI.js +1 -1
- package/dist/esm/gen/services.gen.d.ts +310 -55
- package/dist/esm/gen/services.gen.js +583 -65
- package/dist/esm/gen/types.gen.d.ts +949 -178
- 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/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.
|
|
@@ -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
|
}
|
|
@@ -2870,6 +2989,108 @@ export const workspaceMuteCriticalAlertsUi = (data) => {
|
|
|
2870
2989
|
mediaType: 'application/json'
|
|
2871
2990
|
});
|
|
2872
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
|
+
};
|
|
2873
3094
|
/**
|
|
2874
3095
|
* Set public app rate limit for this workspace
|
|
2875
3096
|
* @param data The data for the request.
|
|
@@ -3336,6 +3557,10 @@ export const existsResource = (data) => {
|
|
|
3336
3557
|
* @param data.resourceType resource_types to list from, separated by ',',
|
|
3337
3558
|
* @param data.resourceTypeExclude resource_types to not list from, separated by ',',
|
|
3338
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)
|
|
3339
3564
|
* @returns ListableResource resource list
|
|
3340
3565
|
* @throws ApiError
|
|
3341
3566
|
*/
|
|
@@ -3351,7 +3576,11 @@ export const listResource = (data) => {
|
|
|
3351
3576
|
per_page: data.perPage,
|
|
3352
3577
|
resource_type: data.resourceType,
|
|
3353
3578
|
resource_type_exclude: data.resourceTypeExclude,
|
|
3354
|
-
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
|
|
3355
3584
|
}
|
|
3356
3585
|
});
|
|
3357
3586
|
};
|
|
@@ -3430,7 +3659,7 @@ export const createResourceType = (data) => {
|
|
|
3430
3659
|
* get map from resource type to format extension
|
|
3431
3660
|
* @param data The data for the request.
|
|
3432
3661
|
* @param data.workspace
|
|
3433
|
-
* @returns unknown map from resource type to file
|
|
3662
|
+
* @returns unknown map from resource type to file resource info
|
|
3434
3663
|
* @throws ApiError
|
|
3435
3664
|
*/
|
|
3436
3665
|
export const fileResourceTypeToFileExtMap = (data) => {
|
|
@@ -3868,7 +4097,7 @@ export const listSearchScript = (data) => {
|
|
|
3868
4097
|
* @param data.page which page to return (start at 1, default 1)
|
|
3869
4098
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
3870
4099
|
* @param data.orderDesc order by desc order (default true)
|
|
3871
|
-
* @param data.createdBy
|
|
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')
|
|
3872
4101
|
* @param data.pathStart mask to filter matching starting path
|
|
3873
4102
|
* @param data.pathExact mask to filter exact matching path
|
|
3874
4103
|
* @param data.firstParentHash mask to filter scripts whom first direct parent has exact hash
|
|
@@ -5196,7 +5425,7 @@ export const listSearchFlow = (data) => {
|
|
|
5196
5425
|
* @param data.page which page to return (start at 1, default 1)
|
|
5197
5426
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5198
5427
|
* @param data.orderDesc order by desc order (default true)
|
|
5199
|
-
* @param data.createdBy
|
|
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')
|
|
5200
5429
|
* @param data.pathStart mask to filter matching starting path
|
|
5201
5430
|
* @param data.pathExact mask to filter exact matching path
|
|
5202
5431
|
* @param data.showArchived (default false)
|
|
@@ -5636,7 +5865,7 @@ export const listConversationMessages = (data) => {
|
|
|
5636
5865
|
* @param data.page which page to return (start at 1, default 1)
|
|
5637
5866
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5638
5867
|
* @param data.orderDesc order by desc order (default true)
|
|
5639
|
-
* @param data.createdBy
|
|
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')
|
|
5640
5869
|
* @param data.pathStart mask to filter matching starting path
|
|
5641
5870
|
* @param data.pathExact mask to filter exact matching path
|
|
5642
5871
|
* @param data.starredOnly (default false)
|
|
@@ -5704,7 +5933,7 @@ export const listSearchApp = (data) => {
|
|
|
5704
5933
|
* @param data.page which page to return (start at 1, default 1)
|
|
5705
5934
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5706
5935
|
* @param data.orderDesc order by desc order (default true)
|
|
5707
|
-
* @param data.createdBy
|
|
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')
|
|
5708
5937
|
* @param data.pathStart mask to filter matching starting path
|
|
5709
5938
|
* @param data.pathExact mask to filter exact matching path
|
|
5710
5939
|
* @param data.starredOnly (default false)
|
|
@@ -6432,6 +6661,48 @@ export const runScriptPreviewInline = (data) => {
|
|
|
6432
6661
|
mediaType: 'application/json'
|
|
6433
6662
|
});
|
|
6434
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
|
+
};
|
|
6435
6706
|
/**
|
|
6436
6707
|
* run script preview and wait for result
|
|
6437
6708
|
* @param data The data for the request.
|
|
@@ -6571,26 +6842,26 @@ export const runDynamicSelect = (data) => {
|
|
|
6571
6842
|
* @param data The data for the request.
|
|
6572
6843
|
* @param data.workspace
|
|
6573
6844
|
* @param data.orderDesc order by desc order (default true)
|
|
6574
|
-
* @param data.createdBy
|
|
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')
|
|
6575
6846
|
* @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
|
|
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')
|
|
6579
6850
|
* @param data.schedulePath mask to filter by schedule path
|
|
6580
|
-
* @param data.triggerPath
|
|
6581
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
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')
|
|
6582
6853
|
* @param data.scriptHash mask to filter exact matching path
|
|
6583
6854
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6584
6855
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6585
6856
|
* @param data.success filter on successful jobs
|
|
6586
6857
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6587
|
-
* @param data.jobKinds filter
|
|
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')
|
|
6588
6859
|
* @param data.suspended filter on suspended jobs
|
|
6589
6860
|
* @param data.running filter on running jobs
|
|
6590
6861
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6591
6862
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6592
6863
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6593
|
-
* @param data.tag filter
|
|
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')
|
|
6594
6865
|
* @param data.page which page to return (start at 1, default 1)
|
|
6595
6866
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6596
6867
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
@@ -6700,12 +6971,12 @@ export const countCompletedJobs = (data) => {
|
|
|
6700
6971
|
* get the ids of all jobs matching the given filters
|
|
6701
6972
|
* @param data The data for the request.
|
|
6702
6973
|
* @param data.workspace
|
|
6703
|
-
* @param data.createdBy
|
|
6704
|
-
* @param data.label
|
|
6705
|
-
* @param data.worker worker this job
|
|
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')
|
|
6706
6977
|
* @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
|
|
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')
|
|
6709
6980
|
* @param data.schedulePath mask to filter by schedule path
|
|
6710
6981
|
* @param data.scriptHash mask to filter exact matching path
|
|
6711
6982
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -6718,10 +6989,10 @@ export const countCompletedJobs = (data) => {
|
|
|
6718
6989
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
6719
6990
|
* @param data.running filter on running jobs
|
|
6720
6991
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6721
|
-
* @param data.jobKinds filter
|
|
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')
|
|
6722
6993
|
* @param data.suspended filter on suspended jobs
|
|
6723
6994
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6724
|
-
* @param data.tag filter
|
|
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')
|
|
6725
6996
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6726
6997
|
* @param data.page which page to return (start at 1, default 1)
|
|
6727
6998
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
@@ -6781,23 +7052,23 @@ export const listFilteredJobsUuids = (data) => {
|
|
|
6781
7052
|
* @param data The data for the request.
|
|
6782
7053
|
* @param data.workspace
|
|
6783
7054
|
* @param data.orderDesc order by desc order (default true)
|
|
6784
|
-
* @param data.createdBy
|
|
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')
|
|
6785
7056
|
* @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
|
|
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')
|
|
6788
7059
|
* @param data.schedulePath mask to filter by schedule path
|
|
6789
7060
|
* @param data.scriptHash mask to filter exact matching path
|
|
6790
7061
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6791
7062
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6792
7063
|
* @param data.success filter on successful jobs
|
|
6793
7064
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6794
|
-
* @param data.jobKinds filter
|
|
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')
|
|
6795
7066
|
* @param data.suspended filter on suspended jobs
|
|
6796
7067
|
* @param data.running filter on running jobs
|
|
6797
7068
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6798
7069
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6799
7070
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6800
|
-
* @param data.tag filter
|
|
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')
|
|
6801
7072
|
* @param data.page which page to return (start at 1, default 1)
|
|
6802
7073
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6803
7074
|
* @param data.concurrencyKey
|
|
@@ -6932,22 +7203,22 @@ export const cancelSuspendedTriggerJobs = (data) => {
|
|
|
6932
7203
|
* @param data The data for the request.
|
|
6933
7204
|
* @param data.workspace
|
|
6934
7205
|
* @param data.orderDesc order by desc order (default true)
|
|
6935
|
-
* @param data.createdBy
|
|
6936
|
-
* @param data.label
|
|
6937
|
-
* @param data.worker worker this job
|
|
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')
|
|
6938
7209
|
* @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
|
|
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')
|
|
6941
7212
|
* @param data.schedulePath mask to filter by schedule path
|
|
6942
7213
|
* @param data.scriptHash mask to filter exact matching path
|
|
6943
7214
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6944
7215
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6945
7216
|
* @param data.success filter on successful jobs
|
|
6946
|
-
* @param data.jobKinds filter
|
|
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')
|
|
6947
7218
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6948
7219
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6949
7220
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6950
|
-
* @param data.tag filter
|
|
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')
|
|
6951
7222
|
* @param data.page which page to return (start at 1, default 1)
|
|
6952
7223
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6953
7224
|
* @param data.isSkipped is the job skipped
|
|
@@ -7096,12 +7367,12 @@ export const deleteJobs = (data) => {
|
|
|
7096
7367
|
* list all jobs
|
|
7097
7368
|
* @param data The data for the request.
|
|
7098
7369
|
* @param data.workspace
|
|
7099
|
-
* @param data.createdBy
|
|
7100
|
-
* @param data.label
|
|
7101
|
-
* @param data.worker worker this job
|
|
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')
|
|
7102
7373
|
* @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
|
|
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')
|
|
7105
7376
|
* @param data.schedulePath mask to filter by schedule path
|
|
7106
7377
|
* @param data.scriptHash mask to filter exact matching path
|
|
7107
7378
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -7114,20 +7385,21 @@ export const deleteJobs = (data) => {
|
|
|
7114
7385
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
7115
7386
|
* @param data.running filter on running jobs
|
|
7116
7387
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7117
|
-
* @param data.jobKinds filter
|
|
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')
|
|
7118
7389
|
* @param data.suspended filter on suspended jobs
|
|
7119
7390
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7120
|
-
* @param data.tag filter
|
|
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')
|
|
7121
7392
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7122
7393
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7123
7394
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7124
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
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')
|
|
7125
7396
|
* @param data.isSkipped is the job skipped
|
|
7126
7397
|
* @param data.isFlowStep is the job a flow step
|
|
7127
7398
|
* @param data.hasNullParent has null parent
|
|
7128
7399
|
* @param data.success filter on successful jobs
|
|
7129
7400
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
7130
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)
|
|
7131
7403
|
* @returns Job All jobs
|
|
7132
7404
|
* @throws ApiError
|
|
7133
7405
|
*/
|
|
@@ -7170,7 +7442,8 @@ export const listJobs = (data) => {
|
|
|
7170
7442
|
has_null_parent: data.hasNullParent,
|
|
7171
7443
|
success: data.success,
|
|
7172
7444
|
all_workspaces: data.allWorkspaces,
|
|
7173
|
-
is_not_schedule: data.isNotSchedule
|
|
7445
|
+
is_not_schedule: data.isNotSchedule,
|
|
7446
|
+
broad_filter: data.broadFilter
|
|
7174
7447
|
}
|
|
7175
7448
|
});
|
|
7176
7449
|
};
|
|
@@ -7685,6 +7958,8 @@ export const getResumeUrls = (data) => {
|
|
|
7685
7958
|
* @param data.message
|
|
7686
7959
|
* @param data.defaultArgsJson
|
|
7687
7960
|
* @param data.dynamicEnumsJson
|
|
7961
|
+
* @param data.resumeButtonText
|
|
7962
|
+
* @param data.cancelButtonText
|
|
7688
7963
|
* @returns unknown Interactive slack approval message sent successfully
|
|
7689
7964
|
* @throws ApiError
|
|
7690
7965
|
*/
|
|
@@ -7703,7 +7978,9 @@ export const getSlackApprovalPayload = (data) => {
|
|
|
7703
7978
|
channel_id: data.channelId,
|
|
7704
7979
|
flow_step_id: data.flowStepId,
|
|
7705
7980
|
default_args_json: data.defaultArgsJson,
|
|
7706
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
7981
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
7982
|
+
resume_button_text: data.resumeButtonText,
|
|
7983
|
+
cancel_button_text: data.cancelButtonText
|
|
7707
7984
|
}
|
|
7708
7985
|
});
|
|
7709
7986
|
};
|
|
@@ -7719,6 +7996,8 @@ export const getSlackApprovalPayload = (data) => {
|
|
|
7719
7996
|
* @param data.message
|
|
7720
7997
|
* @param data.defaultArgsJson
|
|
7721
7998
|
* @param data.dynamicEnumsJson
|
|
7999
|
+
* @param data.resumeButtonText
|
|
8000
|
+
* @param data.cancelButtonText
|
|
7722
8001
|
* @returns unknown Interactive slack approval message sent successfully
|
|
7723
8002
|
* @throws ApiError
|
|
7724
8003
|
*/
|
|
@@ -7737,7 +8016,9 @@ export const getTeamsApprovalPayload = (data) => {
|
|
|
7737
8016
|
channel_name: data.channelName,
|
|
7738
8017
|
flow_step_id: data.flowStepId,
|
|
7739
8018
|
default_args_json: data.defaultArgsJson,
|
|
7740
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8019
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8020
|
+
resume_button_text: data.resumeButtonText,
|
|
8021
|
+
cancel_button_text: data.cancelButtonText
|
|
7741
8022
|
}
|
|
7742
8023
|
});
|
|
7743
8024
|
};
|
|
@@ -8082,9 +8363,13 @@ export const existsSchedule = (data) => {
|
|
|
8082
8363
|
* @param data.page which page to return (start at 1, default 1)
|
|
8083
8364
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
8084
8365
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
8085
|
-
* @param data.path filter by path
|
|
8366
|
+
* @param data.path filter by path (script path)
|
|
8086
8367
|
* @param data.isFlow filter schedules by whether they target a flow
|
|
8087
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)
|
|
8088
8373
|
* @returns Schedule schedule list
|
|
8089
8374
|
* @throws ApiError
|
|
8090
8375
|
*/
|
|
@@ -8101,7 +8386,11 @@ export const listSchedules = (data) => {
|
|
|
8101
8386
|
args: data.args,
|
|
8102
8387
|
path: data.path,
|
|
8103
8388
|
is_flow: data.isFlow,
|
|
8104
|
-
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
|
|
8105
8394
|
}
|
|
8106
8395
|
});
|
|
8107
8396
|
};
|
|
@@ -8689,6 +8978,45 @@ export const testKafkaConnection = (data) => {
|
|
|
8689
8978
|
mediaType: 'application/json'
|
|
8690
8979
|
});
|
|
8691
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
|
+
};
|
|
8692
9020
|
/**
|
|
8693
9021
|
* create nats trigger
|
|
8694
9022
|
* @param data The data for the request.
|
|
@@ -9089,6 +9417,45 @@ export const generateNativeTriggerServiceConnectUrl = (data) => {
|
|
|
9089
9417
|
mediaType: 'application/json'
|
|
9090
9418
|
});
|
|
9091
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
|
+
};
|
|
9092
9459
|
/**
|
|
9093
9460
|
* delete native trigger service
|
|
9094
9461
|
* @param data The data for the request.
|
|
@@ -9112,21 +9479,17 @@ export const deleteNativeTriggerService = (data) => {
|
|
|
9112
9479
|
* @param data The data for the request.
|
|
9113
9480
|
* @param data.workspace
|
|
9114
9481
|
* @param data.serviceName
|
|
9115
|
-
* @param data.
|
|
9116
|
-
* @param data.state
|
|
9117
|
-
* @param data.requestBody redirect_uri
|
|
9482
|
+
* @param data.requestBody OAuth callback data
|
|
9118
9483
|
* @returns string native trigger service oauth completed
|
|
9119
9484
|
* @throws ApiError
|
|
9120
9485
|
*/
|
|
9121
9486
|
export const nativeTriggerServiceCallback = (data) => {
|
|
9122
9487
|
return __request(OpenAPI, {
|
|
9123
9488
|
method: 'POST',
|
|
9124
|
-
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback
|
|
9489
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback',
|
|
9125
9490
|
path: {
|
|
9126
9491
|
workspace: data.workspace,
|
|
9127
|
-
service_name: data.serviceName
|
|
9128
|
-
code: data.code,
|
|
9129
|
-
state: data.state
|
|
9492
|
+
service_name: data.serviceName
|
|
9130
9493
|
},
|
|
9131
9494
|
body: data.requestBody,
|
|
9132
9495
|
mediaType: 'application/json'
|
|
@@ -9312,6 +9675,64 @@ export const listNextCloudEvents = (data) => {
|
|
|
9312
9675
|
}
|
|
9313
9676
|
});
|
|
9314
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
|
+
};
|
|
9315
9736
|
/**
|
|
9316
9737
|
* receive webhook from external native trigger service
|
|
9317
9738
|
* @param data The data for the request.
|
|
@@ -10306,7 +10727,7 @@ export const listInstanceGroupsWithWorkspaces = () => {
|
|
|
10306
10727
|
* get instance group
|
|
10307
10728
|
* @param data The data for the request.
|
|
10308
10729
|
* @param data.name
|
|
10309
|
-
* @returns
|
|
10730
|
+
* @returns InstanceGroupWithWorkspaces instance group
|
|
10310
10731
|
* @throws ApiError
|
|
10311
10732
|
*/
|
|
10312
10733
|
export const getInstanceGroup = (data) => {
|
|
@@ -12199,11 +12620,11 @@ export const getConcurrencyKey = (data) => {
|
|
|
12199
12620
|
* @param data.workspace
|
|
12200
12621
|
* @param data.concurrencyKey
|
|
12201
12622
|
* @param data.rowLimit
|
|
12202
|
-
* @param data.createdBy
|
|
12203
|
-
* @param data.label
|
|
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')
|
|
12204
12625
|
* @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
|
|
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')
|
|
12207
12628
|
* @param data.schedulePath mask to filter by schedule path
|
|
12208
12629
|
* @param data.scriptHash mask to filter exact matching path
|
|
12209
12630
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -12214,14 +12635,14 @@ export const getConcurrencyKey = (data) => {
|
|
|
12214
12635
|
* @param data.completedAfter filter on started after (exclusive) timestamp
|
|
12215
12636
|
* @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
|
|
12216
12637
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
12217
|
-
* @param data.jobKinds filter
|
|
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')
|
|
12218
12639
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
12219
|
-
* @param data.tag filter
|
|
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')
|
|
12220
12641
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
12221
12642
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
12222
12643
|
* @param data.page which page to return (start at 1, default 1)
|
|
12223
12644
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12224
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
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')
|
|
12225
12646
|
* @param data.isSkipped is the job skipped
|
|
12226
12647
|
* @param data.isFlowStep is the job a flow step
|
|
12227
12648
|
* @param data.hasNullParent has null parent
|
|
@@ -12342,21 +12763,43 @@ export const countSearchLogsIndex = (data) => {
|
|
|
12342
12763
|
});
|
|
12343
12764
|
};
|
|
12344
12765
|
/**
|
|
12345
|
-
*
|
|
12766
|
+
* Clear an index and restart the indexer.
|
|
12346
12767
|
* @param data The data for the request.
|
|
12347
12768
|
* @param data.idxName
|
|
12348
|
-
* @returns string idx to be deleted and
|
|
12769
|
+
* @returns string idx to be deleted and indexer restarting
|
|
12349
12770
|
* @throws ApiError
|
|
12350
12771
|
*/
|
|
12351
12772
|
export const clearIndex = (data) => {
|
|
12352
12773
|
return __request(OpenAPI, {
|
|
12353
12774
|
method: 'DELETE',
|
|
12354
|
-
url: '/
|
|
12775
|
+
url: '/indexer/delete/{idx_name}',
|
|
12355
12776
|
path: {
|
|
12356
12777
|
idx_name: data.idxName
|
|
12357
12778
|
}
|
|
12358
12779
|
});
|
|
12359
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
|
+
};
|
|
12360
12803
|
/**
|
|
12361
12804
|
* List all assets in the workspace with cursor pagination
|
|
12362
12805
|
* @param data The data for the request.
|
|
@@ -12367,6 +12810,9 @@ export const clearIndex = (data) => {
|
|
|
12367
12810
|
* @param data.assetPath Filter by asset path (case-insensitive partial match)
|
|
12368
12811
|
* @param data.usagePath Filter by usage path (case-insensitive partial match)
|
|
12369
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)
|
|
12370
12816
|
* @returns unknown paginated assets in the workspace
|
|
12371
12817
|
* @throws ApiError
|
|
12372
12818
|
*/
|
|
@@ -12383,7 +12829,10 @@ export const listAssets = (data) => {
|
|
|
12383
12829
|
cursor_id: data.cursorId,
|
|
12384
12830
|
asset_path: data.assetPath,
|
|
12385
12831
|
usage_path: data.usagePath,
|
|
12386
|
-
asset_kinds: data.assetKinds
|
|
12832
|
+
asset_kinds: data.assetKinds,
|
|
12833
|
+
path: data.path,
|
|
12834
|
+
columns: data.columns,
|
|
12835
|
+
broad_filter: data.broadFilter
|
|
12387
12836
|
}
|
|
12388
12837
|
});
|
|
12389
12838
|
};
|
|
@@ -12422,6 +12871,75 @@ export const listFavoriteAssets = (data) => {
|
|
|
12422
12871
|
}
|
|
12423
12872
|
});
|
|
12424
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
|
+
};
|
|
12425
12943
|
/**
|
|
12426
12944
|
* list available MCP tools
|
|
12427
12945
|
* @param data The data for the request.
|