sim 2.2.24-preview.278.1 → 2.2.24-preview.280.1
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/generated/v2-api.d.ts +144 -0
- package/dist/index.js +86 -2
- package/dist/runtime.js +86 -2
- package/package.json +1 -1
|
@@ -8052,6 +8052,29 @@ export type ListWorkflowsResponse = {
|
|
|
8052
8052
|
data: Array<ListWorkflowsResponseRef0>;
|
|
8053
8053
|
nextCursor: string | null;
|
|
8054
8054
|
};
|
|
8055
|
+
/** `GET /api/v2/workflows/[workflowId]/triggers` */
|
|
8056
|
+
export type ListWorkflowTriggersParams = {
|
|
8057
|
+
workflowId: string;
|
|
8058
|
+
};
|
|
8059
|
+
export type ListWorkflowTriggersQuery = Record<string, unknown>;
|
|
8060
|
+
type ListWorkflowTriggersResponseRef0 = {
|
|
8061
|
+
blockId: string;
|
|
8062
|
+
kind: 'schedule' | 'polling' | 'event' | 'webhook';
|
|
8063
|
+
provider: string | null;
|
|
8064
|
+
enabled: boolean;
|
|
8065
|
+
status: 'active' | 'disabled' | 'completed';
|
|
8066
|
+
failedCount: number;
|
|
8067
|
+
lastFailedAt: string | null;
|
|
8068
|
+
nextRunAt: string | null;
|
|
8069
|
+
lastRanAt: string | null;
|
|
8070
|
+
cronExpression: string | null;
|
|
8071
|
+
timezone: string | null;
|
|
8072
|
+
url: string | null;
|
|
8073
|
+
};
|
|
8074
|
+
export type ListWorkflowTriggersResponse = {
|
|
8075
|
+
data: Array<ListWorkflowTriggersResponseRef0>;
|
|
8076
|
+
nextCursor: string | null;
|
|
8077
|
+
};
|
|
8055
8078
|
/** `GET /api/v2/workflows/[workflowId]/versions` */
|
|
8056
8079
|
export type ListWorkflowVersionsParams = {
|
|
8057
8080
|
workflowId: string;
|
|
@@ -9220,6 +9243,20 @@ type RemovePermissionGroupMemberResponseRef0 = {
|
|
|
9220
9243
|
export type RemovePermissionGroupMemberResponse = {
|
|
9221
9244
|
data: RemovePermissionGroupMemberResponseRef0;
|
|
9222
9245
|
};
|
|
9246
|
+
/** `DELETE /api/v2/workspaces/[workspaceId]/members/[userId]` */
|
|
9247
|
+
export type RemoveWorkspaceMemberParams = {
|
|
9248
|
+
workspaceId: string;
|
|
9249
|
+
userId: string;
|
|
9250
|
+
};
|
|
9251
|
+
export type RemoveWorkspaceMemberQuery = Record<string, unknown>;
|
|
9252
|
+
type RemoveWorkspaceMemberResponseRef0 = {
|
|
9253
|
+
userId: string;
|
|
9254
|
+
deleted: true;
|
|
9255
|
+
organizationMembershipRemoved: boolean;
|
|
9256
|
+
};
|
|
9257
|
+
export type RemoveWorkspaceMemberResponse = {
|
|
9258
|
+
data: RemoveWorkspaceMemberResponseRef0;
|
|
9259
|
+
};
|
|
9223
9260
|
/** `PATCH /api/v2/files/[fileId]` */
|
|
9224
9261
|
export type RenameFileParams = {
|
|
9225
9262
|
fileId: string;
|
|
@@ -11596,6 +11633,32 @@ type UpdateWorkflowPublicApiResponseRef0 = {
|
|
|
11596
11633
|
export type UpdateWorkflowPublicApiResponse = {
|
|
11597
11634
|
data: UpdateWorkflowPublicApiResponseRef0;
|
|
11598
11635
|
};
|
|
11636
|
+
/** `PATCH /api/v2/workflows/[workflowId]/triggers/[blockId]` */
|
|
11637
|
+
export type UpdateWorkflowTriggerParams = {
|
|
11638
|
+
workflowId: string;
|
|
11639
|
+
blockId: string;
|
|
11640
|
+
};
|
|
11641
|
+
export type UpdateWorkflowTriggerQuery = Record<string, unknown>;
|
|
11642
|
+
export type UpdateWorkflowTriggerBody = {
|
|
11643
|
+
enabled: boolean;
|
|
11644
|
+
};
|
|
11645
|
+
type UpdateWorkflowTriggerResponseRef0 = {
|
|
11646
|
+
blockId: string;
|
|
11647
|
+
kind: 'schedule' | 'polling' | 'event' | 'webhook';
|
|
11648
|
+
provider: string | null;
|
|
11649
|
+
enabled: boolean;
|
|
11650
|
+
status: 'active' | 'disabled' | 'completed';
|
|
11651
|
+
failedCount: number;
|
|
11652
|
+
lastFailedAt: string | null;
|
|
11653
|
+
nextRunAt: string | null;
|
|
11654
|
+
lastRanAt: string | null;
|
|
11655
|
+
cronExpression: string | null;
|
|
11656
|
+
timezone: string | null;
|
|
11657
|
+
url: string | null;
|
|
11658
|
+
};
|
|
11659
|
+
export type UpdateWorkflowTriggerResponse = {
|
|
11660
|
+
data: UpdateWorkflowTriggerResponseRef0;
|
|
11661
|
+
};
|
|
11599
11662
|
/** `PATCH /api/v2/workflows/[workflowId]/versions/[version]` */
|
|
11600
11663
|
export type UpdateWorkflowVersionParams = {
|
|
11601
11664
|
version: number;
|
|
@@ -11649,6 +11712,27 @@ type UpdateWorkspaceForkMappingsResponseRef0 = {
|
|
|
11649
11712
|
export type UpdateWorkspaceForkMappingsResponse = {
|
|
11650
11713
|
data: UpdateWorkspaceForkMappingsResponseRef0;
|
|
11651
11714
|
};
|
|
11715
|
+
/** `PATCH /api/v2/workspaces/[workspaceId]/members/[userId]` */
|
|
11716
|
+
export type UpdateWorkspaceMemberParams = {
|
|
11717
|
+
workspaceId: string;
|
|
11718
|
+
userId: string;
|
|
11719
|
+
};
|
|
11720
|
+
export type UpdateWorkspaceMemberQuery = Record<string, unknown>;
|
|
11721
|
+
export type UpdateWorkspaceMemberBody = {
|
|
11722
|
+
role: 'admin' | 'write' | 'read';
|
|
11723
|
+
};
|
|
11724
|
+
type UpdateWorkspaceMemberResponseRef0 = {
|
|
11725
|
+
userId: string;
|
|
11726
|
+
email: string;
|
|
11727
|
+
name: string;
|
|
11728
|
+
image: string | null;
|
|
11729
|
+
role: 'admin' | 'write' | 'read';
|
|
11730
|
+
isExternal: boolean;
|
|
11731
|
+
joinedAt: string;
|
|
11732
|
+
};
|
|
11733
|
+
export type UpdateWorkspaceMemberResponse = {
|
|
11734
|
+
data: UpdateWorkspaceMemberResponseRef0;
|
|
11735
|
+
};
|
|
11652
11736
|
/** `POST /api/v2/knowledge/[knowledgeBaseId]/documents` */
|
|
11653
11737
|
export type UploadKnowledgeDocumentParams = {
|
|
11654
11738
|
knowledgeBaseId: string;
|
|
@@ -18079,6 +18163,16 @@ export declare const V2_OPERATIONS: {
|
|
|
18079
18163
|
};
|
|
18080
18164
|
};
|
|
18081
18165
|
};
|
|
18166
|
+
readonly listWorkflowTriggers: {
|
|
18167
|
+
readonly method: 'GET';
|
|
18168
|
+
readonly path: '/api/v2/workflows/[workflowId]/triggers';
|
|
18169
|
+
readonly pathParams: readonly ['workflowId'];
|
|
18170
|
+
readonly pathParamDocs: {
|
|
18171
|
+
readonly workflowId: 'Unique workflow identifier.';
|
|
18172
|
+
};
|
|
18173
|
+
readonly responseMode: 'json';
|
|
18174
|
+
readonly summary: 'List workflow triggers';
|
|
18175
|
+
};
|
|
18082
18176
|
readonly listWorkflowVersions: {
|
|
18083
18177
|
readonly method: 'GET';
|
|
18084
18178
|
readonly path: '/api/v2/workflows/[workflowId]/versions';
|
|
@@ -18904,6 +18998,18 @@ export declare const V2_OPERATIONS: {
|
|
|
18904
18998
|
readonly summary: 'Remove permission group member';
|
|
18905
18999
|
readonly workspaceKeyUnsupported: true;
|
|
18906
19000
|
};
|
|
19001
|
+
readonly removeWorkspaceMember: {
|
|
19002
|
+
readonly method: 'DELETE';
|
|
19003
|
+
readonly path: '/api/v2/workspaces/[workspaceId]/members/[userId]';
|
|
19004
|
+
readonly pathParams: readonly ['workspaceId', 'userId'];
|
|
19005
|
+
readonly pathParamDocs: {
|
|
19006
|
+
readonly workspaceId: 'Workspace the member belongs to.';
|
|
19007
|
+
readonly userId: 'User identifier of the workspace member, as returned by List workspace members.';
|
|
19008
|
+
};
|
|
19009
|
+
readonly responseMode: 'json';
|
|
19010
|
+
readonly summary: 'Remove workspace member';
|
|
19011
|
+
readonly workspaceKeyUnsupported: true;
|
|
19012
|
+
};
|
|
18907
19013
|
readonly renameFile: {
|
|
18908
19014
|
readonly method: 'PATCH';
|
|
18909
19015
|
readonly path: '/api/v2/files/[fileId]';
|
|
@@ -21074,6 +21180,24 @@ export declare const V2_OPERATIONS: {
|
|
|
21074
21180
|
};
|
|
21075
21181
|
};
|
|
21076
21182
|
};
|
|
21183
|
+
readonly updateWorkflowTrigger: {
|
|
21184
|
+
readonly method: 'PATCH';
|
|
21185
|
+
readonly path: '/api/v2/workflows/[workflowId]/triggers/[blockId]';
|
|
21186
|
+
readonly pathParams: readonly ['workflowId', 'blockId'];
|
|
21187
|
+
readonly pathParamDocs: {
|
|
21188
|
+
readonly workflowId: 'Unique workflow identifier.';
|
|
21189
|
+
readonly blockId: 'Trigger block in the deployed workflow.';
|
|
21190
|
+
};
|
|
21191
|
+
readonly responseMode: 'json';
|
|
21192
|
+
readonly summary: 'Update workflow trigger';
|
|
21193
|
+
readonly body: {
|
|
21194
|
+
readonly enabled: {
|
|
21195
|
+
readonly kind: 'boolean';
|
|
21196
|
+
readonly required: true;
|
|
21197
|
+
readonly describe: 'Whether the trigger should fire. A disable lasts until the next deploy or version activation, which re-enables every trigger.';
|
|
21198
|
+
};
|
|
21199
|
+
};
|
|
21200
|
+
};
|
|
21077
21201
|
readonly updateWorkflowVersion: {
|
|
21078
21202
|
readonly method: 'PATCH';
|
|
21079
21203
|
readonly path: '/api/v2/workflows/[workflowId]/versions/[version]';
|
|
@@ -21147,6 +21271,26 @@ export declare const V2_OPERATIONS: {
|
|
|
21147
21271
|
};
|
|
21148
21272
|
};
|
|
21149
21273
|
};
|
|
21274
|
+
readonly updateWorkspaceMember: {
|
|
21275
|
+
readonly method: 'PATCH';
|
|
21276
|
+
readonly path: '/api/v2/workspaces/[workspaceId]/members/[userId]';
|
|
21277
|
+
readonly pathParams: readonly ['workspaceId', 'userId'];
|
|
21278
|
+
readonly pathParamDocs: {
|
|
21279
|
+
readonly workspaceId: 'Workspace the member belongs to.';
|
|
21280
|
+
readonly userId: 'User identifier of the workspace member, as returned by List workspace members.';
|
|
21281
|
+
};
|
|
21282
|
+
readonly responseMode: 'json';
|
|
21283
|
+
readonly summary: 'Update workspace member';
|
|
21284
|
+
readonly workspaceKeyUnsupported: true;
|
|
21285
|
+
readonly body: {
|
|
21286
|
+
readonly role: {
|
|
21287
|
+
readonly kind: 'enum';
|
|
21288
|
+
readonly required: true;
|
|
21289
|
+
readonly values: readonly ['admin', 'write', 'read'];
|
|
21290
|
+
readonly describe: 'New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here.';
|
|
21291
|
+
};
|
|
21292
|
+
};
|
|
21293
|
+
};
|
|
21150
21294
|
readonly uploadKnowledgeDocument: {
|
|
21151
21295
|
readonly method: 'POST';
|
|
21152
21296
|
readonly path: '/api/v2/knowledge/[knowledgeBaseId]/documents';
|
package/dist/index.js
CHANGED
|
@@ -15504,6 +15504,14 @@ var V2_OPERATIONS = {
|
|
|
15504
15504
|
}
|
|
15505
15505
|
}
|
|
15506
15506
|
},
|
|
15507
|
+
listWorkflowTriggers: {
|
|
15508
|
+
method: "GET",
|
|
15509
|
+
path: "/api/v2/workflows/[workflowId]/triggers",
|
|
15510
|
+
pathParams: ["workflowId"],
|
|
15511
|
+
pathParamDocs: { workflowId: "Unique workflow identifier." },
|
|
15512
|
+
responseMode: "json",
|
|
15513
|
+
summary: "List workflow triggers"
|
|
15514
|
+
},
|
|
15507
15515
|
listWorkflowVersions: {
|
|
15508
15516
|
method: "GET",
|
|
15509
15517
|
path: "/api/v2/workflows/[workflowId]/versions",
|
|
@@ -16226,6 +16234,18 @@ var V2_OPERATIONS = {
|
|
|
16226
16234
|
summary: "Remove permission group member",
|
|
16227
16235
|
workspaceKeyUnsupported: true
|
|
16228
16236
|
},
|
|
16237
|
+
removeWorkspaceMember: {
|
|
16238
|
+
method: "DELETE",
|
|
16239
|
+
path: "/api/v2/workspaces/[workspaceId]/members/[userId]",
|
|
16240
|
+
pathParams: ["workspaceId", "userId"],
|
|
16241
|
+
pathParamDocs: {
|
|
16242
|
+
workspaceId: "Workspace the member belongs to.",
|
|
16243
|
+
userId: "User identifier of the workspace member, as returned by List workspace members."
|
|
16244
|
+
},
|
|
16245
|
+
responseMode: "json",
|
|
16246
|
+
summary: "Remove workspace member",
|
|
16247
|
+
workspaceKeyUnsupported: true
|
|
16248
|
+
},
|
|
16229
16249
|
renameFile: {
|
|
16230
16250
|
method: "PATCH",
|
|
16231
16251
|
path: "/api/v2/files/[fileId]",
|
|
@@ -18012,6 +18032,24 @@ var V2_OPERATIONS = {
|
|
|
18012
18032
|
}
|
|
18013
18033
|
}
|
|
18014
18034
|
},
|
|
18035
|
+
updateWorkflowTrigger: {
|
|
18036
|
+
method: "PATCH",
|
|
18037
|
+
path: "/api/v2/workflows/[workflowId]/triggers/[blockId]",
|
|
18038
|
+
pathParams: ["workflowId", "blockId"],
|
|
18039
|
+
pathParamDocs: {
|
|
18040
|
+
workflowId: "Unique workflow identifier.",
|
|
18041
|
+
blockId: "Trigger block in the deployed workflow."
|
|
18042
|
+
},
|
|
18043
|
+
responseMode: "json",
|
|
18044
|
+
summary: "Update workflow trigger",
|
|
18045
|
+
body: {
|
|
18046
|
+
enabled: {
|
|
18047
|
+
kind: "boolean",
|
|
18048
|
+
required: true,
|
|
18049
|
+
describe: "Whether the trigger should fire. A disable lasts until the next deploy or version activation, which re-enables every trigger."
|
|
18050
|
+
}
|
|
18051
|
+
}
|
|
18052
|
+
},
|
|
18015
18053
|
updateWorkflowVersion: {
|
|
18016
18054
|
method: "PATCH",
|
|
18017
18055
|
path: "/api/v2/workflows/[workflowId]/versions/[version]",
|
|
@@ -18078,6 +18116,26 @@ var V2_OPERATIONS = {
|
|
|
18078
18116
|
}
|
|
18079
18117
|
}
|
|
18080
18118
|
},
|
|
18119
|
+
updateWorkspaceMember: {
|
|
18120
|
+
method: "PATCH",
|
|
18121
|
+
path: "/api/v2/workspaces/[workspaceId]/members/[userId]",
|
|
18122
|
+
pathParams: ["workspaceId", "userId"],
|
|
18123
|
+
pathParamDocs: {
|
|
18124
|
+
workspaceId: "Workspace the member belongs to.",
|
|
18125
|
+
userId: "User identifier of the workspace member, as returned by List workspace members."
|
|
18126
|
+
},
|
|
18127
|
+
responseMode: "json",
|
|
18128
|
+
summary: "Update workspace member",
|
|
18129
|
+
workspaceKeyUnsupported: true,
|
|
18130
|
+
body: {
|
|
18131
|
+
role: {
|
|
18132
|
+
kind: "enum",
|
|
18133
|
+
required: true,
|
|
18134
|
+
values: ["admin", "write", "read"],
|
|
18135
|
+
describe: "New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here."
|
|
18136
|
+
}
|
|
18137
|
+
}
|
|
18138
|
+
},
|
|
18081
18139
|
uploadKnowledgeDocument: {
|
|
18082
18140
|
method: "POST",
|
|
18083
18141
|
path: "/api/v2/knowledge/[knowledgeBaseId]/documents",
|
|
@@ -19256,6 +19314,21 @@ var CLI_CONTRACT = {
|
|
|
19256
19314
|
renamedFrom: ["workflows deployment list"],
|
|
19257
19315
|
describe: "Show a workflow’s current deployment"
|
|
19258
19316
|
},
|
|
19317
|
+
listWorkflowTriggers: {
|
|
19318
|
+
describe: "Show the health of every trigger the live deployment serves",
|
|
19319
|
+
columns: [
|
|
19320
|
+
{ header: "block", path: "blockId" },
|
|
19321
|
+
{ header: "kind" },
|
|
19322
|
+
{ header: "provider" },
|
|
19323
|
+
{ header: "status" },
|
|
19324
|
+
{ header: "failures", path: "failedCount" },
|
|
19325
|
+
{ header: "last failed", path: "lastFailedAt", format: "timestamp" },
|
|
19326
|
+
{ header: "next run", path: "nextRunAt", format: "timestamp" }
|
|
19327
|
+
]
|
|
19328
|
+
},
|
|
19329
|
+
updateWorkflowTrigger: {
|
|
19330
|
+
describe: "Enable or disable one trigger of the live deployment"
|
|
19331
|
+
},
|
|
19259
19332
|
setSecret: { hidden: true },
|
|
19260
19333
|
deleteTable: {
|
|
19261
19334
|
confirm: "This archives the table and all of its rows; restore with `tables restore`."
|
|
@@ -20259,7 +20332,8 @@ var CLI_CONTRACT = {
|
|
|
20259
20332
|
]
|
|
20260
20333
|
},
|
|
20261
20334
|
listWorkspaceMembers: {
|
|
20262
|
-
command: "workspaces members",
|
|
20335
|
+
command: "workspaces members list",
|
|
20336
|
+
defaultSubcommand: true,
|
|
20263
20337
|
describe: "List workspace members",
|
|
20264
20338
|
profileWorkspacePath: true,
|
|
20265
20339
|
columns: [
|
|
@@ -20267,9 +20341,19 @@ var CLI_CONTRACT = {
|
|
|
20267
20341
|
{ header: "name" },
|
|
20268
20342
|
{ header: "role" },
|
|
20269
20343
|
{ header: "external", path: "isExternal", format: "bool" },
|
|
20270
|
-
{ header: "joined", path: "joinedAt", format: "timestamp" }
|
|
20344
|
+
{ header: "joined", path: "joinedAt", format: "timestamp" },
|
|
20345
|
+
{ header: "user", path: "userId" }
|
|
20271
20346
|
]
|
|
20272
20347
|
},
|
|
20348
|
+
updateWorkspaceMember: {
|
|
20349
|
+
command: "workspaces members update",
|
|
20350
|
+
profileWorkspacePath: true
|
|
20351
|
+
},
|
|
20352
|
+
removeWorkspaceMember: {
|
|
20353
|
+
command: "workspaces members remove",
|
|
20354
|
+
profileWorkspacePath: true,
|
|
20355
|
+
confirm: "This removes the member’s workspace access. If it was their last workspace in the organization, their organization membership is removed and their sessions end."
|
|
20356
|
+
},
|
|
20273
20357
|
listAuditLogs: {
|
|
20274
20358
|
allWorkspaces: true,
|
|
20275
20359
|
flags: {
|
package/dist/runtime.js
CHANGED
|
@@ -15553,6 +15553,14 @@ var V2_OPERATIONS = {
|
|
|
15553
15553
|
}
|
|
15554
15554
|
}
|
|
15555
15555
|
},
|
|
15556
|
+
listWorkflowTriggers: {
|
|
15557
|
+
method: "GET",
|
|
15558
|
+
path: "/api/v2/workflows/[workflowId]/triggers",
|
|
15559
|
+
pathParams: ["workflowId"],
|
|
15560
|
+
pathParamDocs: { workflowId: "Unique workflow identifier." },
|
|
15561
|
+
responseMode: "json",
|
|
15562
|
+
summary: "List workflow triggers"
|
|
15563
|
+
},
|
|
15556
15564
|
listWorkflowVersions: {
|
|
15557
15565
|
method: "GET",
|
|
15558
15566
|
path: "/api/v2/workflows/[workflowId]/versions",
|
|
@@ -16275,6 +16283,18 @@ var V2_OPERATIONS = {
|
|
|
16275
16283
|
summary: "Remove permission group member",
|
|
16276
16284
|
workspaceKeyUnsupported: true
|
|
16277
16285
|
},
|
|
16286
|
+
removeWorkspaceMember: {
|
|
16287
|
+
method: "DELETE",
|
|
16288
|
+
path: "/api/v2/workspaces/[workspaceId]/members/[userId]",
|
|
16289
|
+
pathParams: ["workspaceId", "userId"],
|
|
16290
|
+
pathParamDocs: {
|
|
16291
|
+
workspaceId: "Workspace the member belongs to.",
|
|
16292
|
+
userId: "User identifier of the workspace member, as returned by List workspace members."
|
|
16293
|
+
},
|
|
16294
|
+
responseMode: "json",
|
|
16295
|
+
summary: "Remove workspace member",
|
|
16296
|
+
workspaceKeyUnsupported: true
|
|
16297
|
+
},
|
|
16278
16298
|
renameFile: {
|
|
16279
16299
|
method: "PATCH",
|
|
16280
16300
|
path: "/api/v2/files/[fileId]",
|
|
@@ -18061,6 +18081,24 @@ var V2_OPERATIONS = {
|
|
|
18061
18081
|
}
|
|
18062
18082
|
}
|
|
18063
18083
|
},
|
|
18084
|
+
updateWorkflowTrigger: {
|
|
18085
|
+
method: "PATCH",
|
|
18086
|
+
path: "/api/v2/workflows/[workflowId]/triggers/[blockId]",
|
|
18087
|
+
pathParams: ["workflowId", "blockId"],
|
|
18088
|
+
pathParamDocs: {
|
|
18089
|
+
workflowId: "Unique workflow identifier.",
|
|
18090
|
+
blockId: "Trigger block in the deployed workflow."
|
|
18091
|
+
},
|
|
18092
|
+
responseMode: "json",
|
|
18093
|
+
summary: "Update workflow trigger",
|
|
18094
|
+
body: {
|
|
18095
|
+
enabled: {
|
|
18096
|
+
kind: "boolean",
|
|
18097
|
+
required: true,
|
|
18098
|
+
describe: "Whether the trigger should fire. A disable lasts until the next deploy or version activation, which re-enables every trigger."
|
|
18099
|
+
}
|
|
18100
|
+
}
|
|
18101
|
+
},
|
|
18064
18102
|
updateWorkflowVersion: {
|
|
18065
18103
|
method: "PATCH",
|
|
18066
18104
|
path: "/api/v2/workflows/[workflowId]/versions/[version]",
|
|
@@ -18127,6 +18165,26 @@ var V2_OPERATIONS = {
|
|
|
18127
18165
|
}
|
|
18128
18166
|
}
|
|
18129
18167
|
},
|
|
18168
|
+
updateWorkspaceMember: {
|
|
18169
|
+
method: "PATCH",
|
|
18170
|
+
path: "/api/v2/workspaces/[workspaceId]/members/[userId]",
|
|
18171
|
+
pathParams: ["workspaceId", "userId"],
|
|
18172
|
+
pathParamDocs: {
|
|
18173
|
+
workspaceId: "Workspace the member belongs to.",
|
|
18174
|
+
userId: "User identifier of the workspace member, as returned by List workspace members."
|
|
18175
|
+
},
|
|
18176
|
+
responseMode: "json",
|
|
18177
|
+
summary: "Update workspace member",
|
|
18178
|
+
workspaceKeyUnsupported: true,
|
|
18179
|
+
body: {
|
|
18180
|
+
role: {
|
|
18181
|
+
kind: "enum",
|
|
18182
|
+
required: true,
|
|
18183
|
+
values: ["admin", "write", "read"],
|
|
18184
|
+
describe: "New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here."
|
|
18185
|
+
}
|
|
18186
|
+
}
|
|
18187
|
+
},
|
|
18130
18188
|
uploadKnowledgeDocument: {
|
|
18131
18189
|
method: "POST",
|
|
18132
18190
|
path: "/api/v2/knowledge/[knowledgeBaseId]/documents",
|
|
@@ -19305,6 +19363,21 @@ var CLI_CONTRACT = {
|
|
|
19305
19363
|
renamedFrom: ["workflows deployment list"],
|
|
19306
19364
|
describe: "Show a workflow’s current deployment"
|
|
19307
19365
|
},
|
|
19366
|
+
listWorkflowTriggers: {
|
|
19367
|
+
describe: "Show the health of every trigger the live deployment serves",
|
|
19368
|
+
columns: [
|
|
19369
|
+
{ header: "block", path: "blockId" },
|
|
19370
|
+
{ header: "kind" },
|
|
19371
|
+
{ header: "provider" },
|
|
19372
|
+
{ header: "status" },
|
|
19373
|
+
{ header: "failures", path: "failedCount" },
|
|
19374
|
+
{ header: "last failed", path: "lastFailedAt", format: "timestamp" },
|
|
19375
|
+
{ header: "next run", path: "nextRunAt", format: "timestamp" }
|
|
19376
|
+
]
|
|
19377
|
+
},
|
|
19378
|
+
updateWorkflowTrigger: {
|
|
19379
|
+
describe: "Enable or disable one trigger of the live deployment"
|
|
19380
|
+
},
|
|
19308
19381
|
setSecret: { hidden: true },
|
|
19309
19382
|
deleteTable: {
|
|
19310
19383
|
confirm: "This archives the table and all of its rows; restore with `tables restore`."
|
|
@@ -20308,7 +20381,8 @@ var CLI_CONTRACT = {
|
|
|
20308
20381
|
]
|
|
20309
20382
|
},
|
|
20310
20383
|
listWorkspaceMembers: {
|
|
20311
|
-
command: "workspaces members",
|
|
20384
|
+
command: "workspaces members list",
|
|
20385
|
+
defaultSubcommand: true,
|
|
20312
20386
|
describe: "List workspace members",
|
|
20313
20387
|
profileWorkspacePath: true,
|
|
20314
20388
|
columns: [
|
|
@@ -20316,9 +20390,19 @@ var CLI_CONTRACT = {
|
|
|
20316
20390
|
{ header: "name" },
|
|
20317
20391
|
{ header: "role" },
|
|
20318
20392
|
{ header: "external", path: "isExternal", format: "bool" },
|
|
20319
|
-
{ header: "joined", path: "joinedAt", format: "timestamp" }
|
|
20393
|
+
{ header: "joined", path: "joinedAt", format: "timestamp" },
|
|
20394
|
+
{ header: "user", path: "userId" }
|
|
20320
20395
|
]
|
|
20321
20396
|
},
|
|
20397
|
+
updateWorkspaceMember: {
|
|
20398
|
+
command: "workspaces members update",
|
|
20399
|
+
profileWorkspacePath: true
|
|
20400
|
+
},
|
|
20401
|
+
removeWorkspaceMember: {
|
|
20402
|
+
command: "workspaces members remove",
|
|
20403
|
+
profileWorkspacePath: true,
|
|
20404
|
+
confirm: "This removes the member’s workspace access. If it was their last workspace in the organization, their organization membership is removed and their sessions end."
|
|
20405
|
+
},
|
|
20322
20406
|
listAuditLogs: {
|
|
20323
20407
|
allWorkspaces: true,
|
|
20324
20408
|
flags: {
|