windmill-client 1.864.1 → 1.866.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/OpenAPI.mjs +1 -1
- package/dist/index.js +6 -3
- package/dist/services.gen.d.ts +4 -2
- package/dist/services.gen.mjs +5 -2
- package/dist/types.gen.d.ts +45 -11
- package/package.json +1 -1
package/dist/core/OpenAPI.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -126,7 +126,7 @@ const OpenAPI = {
|
|
|
126
126
|
PASSWORD: void 0,
|
|
127
127
|
TOKEN: getEnv$1("WM_TOKEN"),
|
|
128
128
|
USERNAME: void 0,
|
|
129
|
-
VERSION: "1.
|
|
129
|
+
VERSION: "1.866.0",
|
|
130
130
|
WITH_CREDENTIALS: !getEnv$1("WM_RAW_APP"),
|
|
131
131
|
interceptors: {
|
|
132
132
|
request: new Interceptors(),
|
|
@@ -521,7 +521,9 @@ var AuditService = class {
|
|
|
521
521
|
* @param data.excludeOperations comma separated list of operations to exclude
|
|
522
522
|
* @param data.resource filter on exact or prefix name of resource
|
|
523
523
|
* @param data.actionKind filter on type of operation
|
|
524
|
-
* @param data.beforeId
|
|
524
|
+
* @param data.beforeId the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
|
|
525
|
+
*
|
|
526
|
+
* @param data.beforeIdTimestamp the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
|
|
525
527
|
*
|
|
526
528
|
* @param data.allWorkspaces get audit logs for all workspaces
|
|
527
529
|
* @param data.jobId only the entries about this run and the jobs under it (steps, loop iterations and subflows at any depth): who started, viewed, cancelled, approved, resumed or deleted each
|
|
@@ -546,6 +548,7 @@ var AuditService = class {
|
|
|
546
548
|
resource: data.resource,
|
|
547
549
|
action_kind: data.actionKind,
|
|
548
550
|
before_id: data.beforeId,
|
|
551
|
+
before_id_timestamp: data.beforeIdTimestamp,
|
|
549
552
|
all_workspaces: data.allWorkspaces,
|
|
550
553
|
job_id: data.jobId
|
|
551
554
|
}
|
|
@@ -14381,7 +14384,7 @@ var WorkspaceIntegrationService = class {
|
|
|
14381
14384
|
* @param data The data for the request.
|
|
14382
14385
|
* @param data.workspace
|
|
14383
14386
|
* @param data.serviceName
|
|
14384
|
-
* @param data.requestBody
|
|
14387
|
+
* @param data.requestBody Where to save the connection (defaults to u/{caller}/native_{resource_type}). Uses the workspace OAuth client, or the instance one when the instance shares it, and the redirect URI registered on that client.
|
|
14385
14388
|
* @returns string native trigger service connect url
|
|
14386
14389
|
* @throws ApiError
|
|
14387
14390
|
*/
|
package/dist/services.gen.d.ts
CHANGED
|
@@ -94,7 +94,9 @@ export declare class AuditService {
|
|
|
94
94
|
* @param data.excludeOperations comma separated list of operations to exclude
|
|
95
95
|
* @param data.resource filter on exact or prefix name of resource
|
|
96
96
|
* @param data.actionKind filter on type of operation
|
|
97
|
-
* @param data.beforeId
|
|
97
|
+
* @param data.beforeId the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
|
|
98
|
+
*
|
|
99
|
+
* @param data.beforeIdTimestamp the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
|
|
98
100
|
*
|
|
99
101
|
* @param data.allWorkspaces get audit logs for all workspaces
|
|
100
102
|
* @param data.jobId only the entries about this run and the jobs under it (steps, loop iterations and subflows at any depth): who started, viewed, cancelled, approved, resumed or deleted each
|
|
@@ -7377,7 +7379,7 @@ export declare class WorkspaceIntegrationService {
|
|
|
7377
7379
|
* @param data The data for the request.
|
|
7378
7380
|
* @param data.workspace
|
|
7379
7381
|
* @param data.serviceName
|
|
7380
|
-
* @param data.requestBody
|
|
7382
|
+
* @param data.requestBody Where to save the connection (defaults to u/{caller}/native_{resource_type}). Uses the workspace OAuth client, or the instance one when the instance shares it, and the redirect URI registered on that client.
|
|
7381
7383
|
* @returns string native trigger service connect url
|
|
7382
7384
|
* @throws ApiError
|
|
7383
7385
|
*/
|
package/dist/services.gen.mjs
CHANGED
|
@@ -153,7 +153,9 @@ var AuditService = class {
|
|
|
153
153
|
* @param data.excludeOperations comma separated list of operations to exclude
|
|
154
154
|
* @param data.resource filter on exact or prefix name of resource
|
|
155
155
|
* @param data.actionKind filter on type of operation
|
|
156
|
-
* @param data.beforeId
|
|
156
|
+
* @param data.beforeId the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
|
|
157
|
+
*
|
|
158
|
+
* @param data.beforeIdTimestamp the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
|
|
157
159
|
*
|
|
158
160
|
* @param data.allWorkspaces get audit logs for all workspaces
|
|
159
161
|
* @param data.jobId only the entries about this run and the jobs under it (steps, loop iterations and subflows at any depth): who started, viewed, cancelled, approved, resumed or deleted each
|
|
@@ -178,6 +180,7 @@ var AuditService = class {
|
|
|
178
180
|
resource: data.resource,
|
|
179
181
|
action_kind: data.actionKind,
|
|
180
182
|
before_id: data.beforeId,
|
|
183
|
+
before_id_timestamp: data.beforeIdTimestamp,
|
|
181
184
|
all_workspaces: data.allWorkspaces,
|
|
182
185
|
job_id: data.jobId
|
|
183
186
|
}
|
|
@@ -14013,7 +14016,7 @@ var WorkspaceIntegrationService = class {
|
|
|
14013
14016
|
* @param data The data for the request.
|
|
14014
14017
|
* @param data.workspace
|
|
14015
14018
|
* @param data.serviceName
|
|
14016
|
-
* @param data.requestBody
|
|
14019
|
+
* @param data.requestBody Where to save the connection (defaults to u/{caller}/native_{resource_type}). Uses the workspace OAuth client, or the instance one when the instance shares it, and the redirect URI registered on that client.
|
|
14017
14020
|
* @returns string native trigger service connect url
|
|
14018
14021
|
* @throws ApiError
|
|
14019
14022
|
*/
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -1635,9 +1635,13 @@ export type VaultSettings = {
|
|
|
1635
1635
|
*/
|
|
1636
1636
|
jwt_mount_path?: string;
|
|
1637
1637
|
/**
|
|
1638
|
-
* AppRole role_id (optional). When set and no static token is given, Windmill logs in with AppRole
|
|
1638
|
+
* AppRole role_id (optional). When set and no static token is given, Windmill logs in with AppRole.
|
|
1639
1639
|
*/
|
|
1640
1640
|
approle_role_id?: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* AppRole secret_id (optional). When empty, the `VAULT_APPROLE_SECRET_ID` environment variable of servers and workers is used; when that is unset too, no secret_id is sent (a role with `bind_secret_id=false`).
|
|
1643
|
+
*/
|
|
1644
|
+
approle_secret_id?: string;
|
|
1641
1645
|
/**
|
|
1642
1646
|
* Mount path of the AppRole auth method (optional, defaults to "approle").
|
|
1643
1647
|
*/
|
|
@@ -2755,6 +2759,10 @@ export type QueuedJob = {
|
|
|
2755
2759
|
preprocessed?: boolean;
|
|
2756
2760
|
is_retry?: boolean;
|
|
2757
2761
|
trigger_kind?: JobTriggerKind;
|
|
2762
|
+
/**
|
|
2763
|
+
* Path of the trigger, schedule or app that started the job, if any
|
|
2764
|
+
*/
|
|
2765
|
+
trigger_path?: string;
|
|
2758
2766
|
worker?: string;
|
|
2759
2767
|
};
|
|
2760
2768
|
export type CompletedJob = {
|
|
@@ -2821,6 +2829,10 @@ export type CompletedJob = {
|
|
|
2821
2829
|
*/
|
|
2822
2830
|
resolved_automatically?: boolean;
|
|
2823
2831
|
trigger_kind?: JobTriggerKind;
|
|
2832
|
+
/**
|
|
2833
|
+
* Path of the trigger, schedule or app that started the job, if any
|
|
2834
|
+
*/
|
|
2835
|
+
trigger_path?: string;
|
|
2824
2836
|
worker?: string;
|
|
2825
2837
|
};
|
|
2826
2838
|
/**
|
|
@@ -3564,6 +3576,10 @@ export type ListableResource = {
|
|
|
3564
3576
|
is_linked: boolean;
|
|
3565
3577
|
is_refreshed: boolean;
|
|
3566
3578
|
account?: number;
|
|
3579
|
+
/**
|
|
3580
|
+
* OAuth scopes the linked account was connected with
|
|
3581
|
+
*/
|
|
3582
|
+
scopes?: Array<(string)>;
|
|
3567
3583
|
created_by?: string;
|
|
3568
3584
|
edited_at?: string;
|
|
3569
3585
|
labels?: Array<(string)>;
|
|
@@ -8053,9 +8069,9 @@ export type WorkspaceOAuthConfig = {
|
|
|
8053
8069
|
*/
|
|
8054
8070
|
base_url: string;
|
|
8055
8071
|
/**
|
|
8056
|
-
* The OAuth
|
|
8072
|
+
* The redirect URI registered on the OAuth app. Absent for an app saved before it was stored, which uses the workspace settings page.
|
|
8057
8073
|
*/
|
|
8058
|
-
redirect_uri
|
|
8074
|
+
redirect_uri?: string;
|
|
8059
8075
|
};
|
|
8060
8076
|
export type WebhookEvent = {
|
|
8061
8077
|
type: 'webhook';
|
|
@@ -8112,6 +8128,18 @@ export type NativeTriggerConnection = {
|
|
|
8112
8128
|
* Whether this is the workspace connection, which every member may use
|
|
8113
8129
|
*/
|
|
8114
8130
|
workspace: boolean;
|
|
8131
|
+
/**
|
|
8132
|
+
* Whether the integration trigger connect flow made it. Any other connection is a resource connected from Resources, which triggers can use but only Resources can replace or delete.
|
|
8133
|
+
*/
|
|
8134
|
+
managed: boolean;
|
|
8135
|
+
/**
|
|
8136
|
+
* Scopes the account was connected with; absent when unknown
|
|
8137
|
+
*/
|
|
8138
|
+
scopes?: Array<(string)> | null;
|
|
8139
|
+
/**
|
|
8140
|
+
* Scopes the service's triggers need that the account lacks; absent when unknown
|
|
8141
|
+
*/
|
|
8142
|
+
missing_scopes?: Array<(string)> | null;
|
|
8115
8143
|
};
|
|
8116
8144
|
/**
|
|
8117
8145
|
* Response returned when a native trigger is created
|
|
@@ -8616,10 +8644,15 @@ export type ListAuditLogsData = {
|
|
|
8616
8644
|
*/
|
|
8617
8645
|
before?: string;
|
|
8618
8646
|
/**
|
|
8619
|
-
*
|
|
8647
|
+
* the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
|
|
8620
8648
|
*
|
|
8621
8649
|
*/
|
|
8622
8650
|
beforeId?: number;
|
|
8651
|
+
/**
|
|
8652
|
+
* the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
|
|
8653
|
+
*
|
|
8654
|
+
*/
|
|
8655
|
+
beforeIdTimestamp?: string;
|
|
8623
8656
|
/**
|
|
8624
8657
|
* comma separated list of operations to exclude
|
|
8625
8658
|
*/
|
|
@@ -17892,10 +17925,9 @@ export type CreateNativeTriggerServiceData = {
|
|
|
17892
17925
|
export type CreateNativeTriggerServiceResponse = string;
|
|
17893
17926
|
export type GenerateNativeTriggerServiceConnectUrlData = {
|
|
17894
17927
|
/**
|
|
17895
|
-
*
|
|
17928
|
+
* Where to save the connection (defaults to u/{caller}/native_{resource_type}). Uses the workspace OAuth client, or the instance one when the instance shares it, and the redirect URI registered on that client.
|
|
17896
17929
|
*/
|
|
17897
17930
|
requestBody: {
|
|
17898
|
-
redirect_uri: string;
|
|
17899
17931
|
resource_path?: string;
|
|
17900
17932
|
};
|
|
17901
17933
|
serviceName: NativeServiceName;
|
|
@@ -17941,7 +17973,6 @@ export type NativeTriggerServiceCallbackData = {
|
|
|
17941
17973
|
requestBody: {
|
|
17942
17974
|
code: string;
|
|
17943
17975
|
state: string;
|
|
17944
|
-
redirect_uri: string;
|
|
17945
17976
|
};
|
|
17946
17977
|
serviceName: NativeServiceName;
|
|
17947
17978
|
workspace: string;
|
|
@@ -20705,10 +20736,15 @@ export type $OpenApiTs = {
|
|
|
20705
20736
|
*/
|
|
20706
20737
|
before?: string;
|
|
20707
20738
|
/**
|
|
20708
|
-
*
|
|
20739
|
+
* the id half of a keyset cursor. Logs are ordered by descending timestamp then id: pass the last row's id here and its timestamp as before_id_timestamp to stream a page in several batches without paying a growing offset. Alone, it only filters on id < before_id, which can skip or repeat rows across pages.
|
|
20709
20740
|
*
|
|
20710
20741
|
*/
|
|
20711
20742
|
beforeId?: number;
|
|
20743
|
+
/**
|
|
20744
|
+
* the timestamp of the row whose id is before_id: with it, only logs strictly before that row in (timestamp, id) order are returned
|
|
20745
|
+
*
|
|
20746
|
+
*/
|
|
20747
|
+
beforeIdTimestamp?: string;
|
|
20712
20748
|
/**
|
|
20713
20749
|
* comma separated list of operations to exclude
|
|
20714
20750
|
*/
|
|
@@ -36381,10 +36417,9 @@ export type $OpenApiTs = {
|
|
|
36381
36417
|
post: {
|
|
36382
36418
|
req: {
|
|
36383
36419
|
/**
|
|
36384
|
-
*
|
|
36420
|
+
* Where to save the connection (defaults to u/{caller}/native_{resource_type}). Uses the workspace OAuth client, or the instance one when the instance shares it, and the redirect URI registered on that client.
|
|
36385
36421
|
*/
|
|
36386
36422
|
requestBody: {
|
|
36387
|
-
redirect_uri: string;
|
|
36388
36423
|
resource_path?: string;
|
|
36389
36424
|
};
|
|
36390
36425
|
serviceName: NativeServiceName;
|
|
@@ -36484,7 +36519,6 @@ export type $OpenApiTs = {
|
|
|
36484
36519
|
requestBody: {
|
|
36485
36520
|
code: string;
|
|
36486
36521
|
state: string;
|
|
36487
|
-
redirect_uri: string;
|
|
36488
36522
|
};
|
|
36489
36523
|
serviceName: NativeServiceName;
|
|
36490
36524
|
workspace: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-client",
|
|
3
3
|
"description": "Windmill SDK client for browsers and Node.js",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.866.0",
|
|
5
5
|
"author": "Ruben Fiszel",
|
|
6
6
|
"license": "Apache 2.0",
|
|
7
7
|
"homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",
|