@lessly/sdk-app 67.4.0 → 68.0.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/_types/gen/client.gen.d.ts +6 -3
- package/dist/_types/gen/types.gen.d.ts +224 -49
- package/dist/_types/gen/users/index.d.ts +1 -1
- package/dist/_types/gen/users/queryOptions.gen.d.ts +1 -9
- package/dist/_types/gen/workflow/index.d.ts +1 -1
- package/dist/_types/gen/workflow/queryOptions.gen.d.ts +13 -1
- package/dist/{chunk-UPW2DNXO.js → chunk-GFP6RQ7Z.js} +45 -28
- package/dist/{chunk-UPW2DNXO.js.map → chunk-GFP6RQ7Z.js.map} +1 -1
- package/dist/index.cjs +46 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/playground/index.cjs.map +1 -1
- package/dist/playground/index.js +1 -1
- package/dist/users/index.cjs +0 -10
- package/dist/users/index.cjs.map +1 -1
- package/dist/users/index.js +1 -9
- package/dist/users/index.js.map +1 -1
- package/dist/workflow/index.cjs +15 -0
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.js +13 -1
- package/dist/workflow/index.js.map +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +43 -26
- package/src/gen/client.gen.ts +11 -6
- package/src/gen/manifest.gen.ts +3 -2
- package/src/gen/types.gen.ts +231 -53
- package/src/gen/users/index.ts +1 -1
- package/src/gen/users/queryOptions.gen.ts +0 -12
- package/src/gen/workflow/index.ts +1 -1
- package/src/gen/workflow/queryOptions.gen.ts +20 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "68.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"engines": {
|
|
@@ -219,5 +219,5 @@
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
|
-
"sdkContentHash": "sha256:
|
|
222
|
+
"sdkContentHash": "sha256:e9b9ded12f091c84317d84bfc9602ab46b90c9d2b3b3fa5eea3cc0a28679a5e0"
|
|
223
223
|
}
|
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -10006,19 +10006,6 @@ export const bindings: BindingsMap = {
|
|
|
10006
10006
|
"path": "/users/users/:userId",
|
|
10007
10007
|
"readOnly": false
|
|
10008
10008
|
},
|
|
10009
|
-
"erase": {
|
|
10010
|
-
"level": "admin",
|
|
10011
|
-
"method": "POST",
|
|
10012
|
-
"operationKey": "users_users_erase",
|
|
10013
|
-
"params": [
|
|
10014
|
-
{
|
|
10015
|
-
"in": "path",
|
|
10016
|
-
"name": "userId"
|
|
10017
|
-
}
|
|
10018
|
-
],
|
|
10019
|
-
"path": "/users/users/:userId/erase",
|
|
10020
|
-
"readOnly": false
|
|
10021
|
-
},
|
|
10022
10009
|
"export": {
|
|
10023
10010
|
"level": "admin",
|
|
10024
10011
|
"method": "GET",
|
|
@@ -10219,19 +10206,6 @@ export const bindings: BindingsMap = {
|
|
|
10219
10206
|
}
|
|
10220
10207
|
},
|
|
10221
10208
|
"waitlist": {
|
|
10222
|
-
"erase": {
|
|
10223
|
-
"level": "admin",
|
|
10224
|
-
"method": "POST",
|
|
10225
|
-
"operationKey": "users_waitlist_erase",
|
|
10226
|
-
"params": [
|
|
10227
|
-
{
|
|
10228
|
-
"in": "body",
|
|
10229
|
-
"name": "userId"
|
|
10230
|
-
}
|
|
10231
|
-
],
|
|
10232
|
-
"path": "/users/waitlist/erase",
|
|
10233
|
-
"readOnly": false
|
|
10234
|
-
},
|
|
10235
10209
|
"funnel": {
|
|
10236
10210
|
"level": "read",
|
|
10237
10211
|
"method": "POST",
|
|
@@ -10740,6 +10714,23 @@ export const bindings: BindingsMap = {
|
|
|
10740
10714
|
"path": "/workflow/definition/enable",
|
|
10741
10715
|
"readOnly": false
|
|
10742
10716
|
},
|
|
10717
|
+
"estimate": {
|
|
10718
|
+
"level": "read",
|
|
10719
|
+
"method": "POST",
|
|
10720
|
+
"operationKey": "workflow_definition_estimate",
|
|
10721
|
+
"params": [
|
|
10722
|
+
{
|
|
10723
|
+
"in": "body",
|
|
10724
|
+
"name": "workflow_id"
|
|
10725
|
+
},
|
|
10726
|
+
{
|
|
10727
|
+
"in": "body",
|
|
10728
|
+
"name": "definition"
|
|
10729
|
+
}
|
|
10730
|
+
],
|
|
10731
|
+
"path": "/workflow/definition/estimate",
|
|
10732
|
+
"readOnly": true
|
|
10733
|
+
},
|
|
10743
10734
|
"export": {
|
|
10744
10735
|
"level": "read",
|
|
10745
10736
|
"method": "GET",
|
|
@@ -11123,6 +11114,32 @@ export const bindings: BindingsMap = {
|
|
|
11123
11114
|
"readOnly": false
|
|
11124
11115
|
}
|
|
11125
11116
|
},
|
|
11117
|
+
"template": {
|
|
11118
|
+
"apply": {
|
|
11119
|
+
"level": "write",
|
|
11120
|
+
"method": "POST",
|
|
11121
|
+
"operationKey": "workflow_template_apply",
|
|
11122
|
+
"params": [
|
|
11123
|
+
{
|
|
11124
|
+
"in": "body",
|
|
11125
|
+
"name": "template_id"
|
|
11126
|
+
},
|
|
11127
|
+
{
|
|
11128
|
+
"in": "body",
|
|
11129
|
+
"name": "name"
|
|
11130
|
+
}
|
|
11131
|
+
],
|
|
11132
|
+
"path": "/workflow/templates/apply",
|
|
11133
|
+
"readOnly": false
|
|
11134
|
+
},
|
|
11135
|
+
"list": {
|
|
11136
|
+
"level": "read",
|
|
11137
|
+
"method": "GET",
|
|
11138
|
+
"operationKey": "workflow_template_list",
|
|
11139
|
+
"path": "/workflow/templates",
|
|
11140
|
+
"readOnly": true
|
|
11141
|
+
}
|
|
11142
|
+
},
|
|
11126
11143
|
"version": {
|
|
11127
11144
|
"get": {
|
|
11128
11145
|
"level": "read",
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -1069,8 +1069,6 @@ import type {
|
|
|
1069
1069
|
UsersUsersCreateOutput,
|
|
1070
1070
|
UsersUsersDeleteInput,
|
|
1071
1071
|
UsersUsersDeleteOutput,
|
|
1072
|
-
UsersUsersEraseInput,
|
|
1073
|
-
UsersUsersEraseOutput,
|
|
1074
1072
|
UsersUsersExportInput,
|
|
1075
1073
|
UsersUsersExportOutput,
|
|
1076
1074
|
UsersUsersGetInput,
|
|
@@ -1087,8 +1085,6 @@ import type {
|
|
|
1087
1085
|
UsersUsersUnbanOutput,
|
|
1088
1086
|
UsersUsersUpdateInput,
|
|
1089
1087
|
UsersUsersUpdateOutput,
|
|
1090
|
-
UsersWaitlistEraseInput,
|
|
1091
|
-
UsersWaitlistEraseOutput,
|
|
1092
1088
|
UsersWaitlistFunnelInput,
|
|
1093
1089
|
UsersWaitlistFunnelOutput,
|
|
1094
1090
|
UsersWaitlistImportInput,
|
|
@@ -1145,6 +1141,8 @@ import type {
|
|
|
1145
1141
|
WorkflowDefinitionDryrunOutput,
|
|
1146
1142
|
WorkflowDefinitionEnableInput,
|
|
1147
1143
|
WorkflowDefinitionEnableOutput,
|
|
1144
|
+
WorkflowDefinitionEstimateInput,
|
|
1145
|
+
WorkflowDefinitionEstimateOutput,
|
|
1148
1146
|
WorkflowDefinitionExportInput,
|
|
1149
1147
|
WorkflowDefinitionExportOutput,
|
|
1150
1148
|
WorkflowDefinitionGetInput,
|
|
@@ -1189,6 +1187,10 @@ import type {
|
|
|
1189
1187
|
WorkflowRunStatsOutput,
|
|
1190
1188
|
WorkflowRunTestInput,
|
|
1191
1189
|
WorkflowRunTestOutput,
|
|
1190
|
+
WorkflowTemplateApplyInput,
|
|
1191
|
+
WorkflowTemplateApplyOutput,
|
|
1192
|
+
WorkflowTemplateListInput,
|
|
1193
|
+
WorkflowTemplateListOutput,
|
|
1192
1194
|
WorkflowVersionGetInput,
|
|
1193
1195
|
WorkflowVersionGetOutput,
|
|
1194
1196
|
WorkflowVersionListInput,
|
|
@@ -2182,7 +2184,6 @@ export interface GeneratedClient {
|
|
|
2182
2184
|
ban: ((input: UsersUsersBanInput) => Promise<UsersUsersBanOutput>) & Operation;
|
|
2183
2185
|
create: ((input: UsersUsersCreateInput) => Promise<UsersUsersCreateOutput>) & Operation;
|
|
2184
2186
|
delete: ((input: UsersUsersDeleteInput) => Promise<UsersUsersDeleteOutput>) & Operation;
|
|
2185
|
-
erase: ((input: UsersUsersEraseInput) => Promise<UsersUsersEraseOutput>) & Operation;
|
|
2186
2187
|
export: ((input: UsersUsersExportInput) => Promise<UsersUsersExportOutput>) & Operation;
|
|
2187
2188
|
get: ((input: UsersUsersGetInput) => Promise<UsersUsersGetOutput>) & Operation;
|
|
2188
2189
|
import: ((input: UsersUsersImportInput) => Promise<UsersUsersImportOutput>) & Operation;
|
|
@@ -2195,7 +2196,6 @@ export interface GeneratedClient {
|
|
|
2195
2196
|
identifier: ((input: UsersUsersSetPrimaryIdentifierInput) => Promise<UsersUsersSetPrimaryIdentifierOutput>) & Operation;
|
|
2196
2197
|
};
|
|
2197
2198
|
waitlist: {
|
|
2198
|
-
erase: ((input: UsersWaitlistEraseInput) => Promise<UsersWaitlistEraseOutput>) & Operation;
|
|
2199
2199
|
funnel: ((input: UsersWaitlistFunnelInput) => Promise<UsersWaitlistFunnelOutput>) & Operation;
|
|
2200
2200
|
import: ((input: UsersWaitlistImportInput) => Promise<UsersWaitlistImportOutput>) & Operation;
|
|
2201
2201
|
invite: ((input: UsersWaitlistInviteInput) => Promise<UsersWaitlistInviteOutput>) & Operation;
|
|
@@ -2250,6 +2250,7 @@ export interface GeneratedClient {
|
|
|
2250
2250
|
disable: ((input: WorkflowDefinitionDisableInput) => Promise<WorkflowDefinitionDisableOutput>) & Operation;
|
|
2251
2251
|
dryrun: ((input: WorkflowDefinitionDryrunInput) => Promise<WorkflowDefinitionDryrunOutput>) & Operation;
|
|
2252
2252
|
enable: ((input: WorkflowDefinitionEnableInput) => Promise<WorkflowDefinitionEnableOutput>) & Operation;
|
|
2253
|
+
estimate: ((input: WorkflowDefinitionEstimateInput) => Promise<WorkflowDefinitionEstimateOutput>) & Operation;
|
|
2253
2254
|
export: ((input: WorkflowDefinitionExportInput) => Promise<WorkflowDefinitionExportOutput>) & Operation;
|
|
2254
2255
|
get: ((input: WorkflowDefinitionGetInput) => Promise<WorkflowDefinitionGetOutput>) & Operation;
|
|
2255
2256
|
import: ((input: WorkflowDefinitionImportInput) => Promise<WorkflowDefinitionImportOutput>) & Operation;
|
|
@@ -2285,6 +2286,10 @@ export interface GeneratedClient {
|
|
|
2285
2286
|
'run-replay': {
|
|
2286
2287
|
all: ((input: WorkflowRunReplayAllInput) => Promise<WorkflowRunReplayAllOutput>) & Operation;
|
|
2287
2288
|
};
|
|
2289
|
+
template: {
|
|
2290
|
+
apply: ((input: WorkflowTemplateApplyInput) => Promise<WorkflowTemplateApplyOutput>) & Operation;
|
|
2291
|
+
list: ((input: WorkflowTemplateListInput) => Promise<WorkflowTemplateListOutput>) & Operation;
|
|
2292
|
+
};
|
|
2288
2293
|
version: {
|
|
2289
2294
|
get: ((input: WorkflowVersionGetInput) => Promise<WorkflowVersionGetOutput>) & Operation;
|
|
2290
2295
|
list: ((input: WorkflowVersionListInput) => Promise<WorkflowVersionListOutput>) & Operation;
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -538,7 +538,6 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
538
538
|
'users_users_ban': 'admin',
|
|
539
539
|
'users_users_create': 'write',
|
|
540
540
|
'users_users_delete': 'admin',
|
|
541
|
-
'users_users_erase': 'admin',
|
|
542
541
|
'users_users_export': 'admin',
|
|
543
542
|
'users_users_get': 'read',
|
|
544
543
|
'users_users_import': 'admin',
|
|
@@ -547,7 +546,6 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
547
546
|
'users_users_set_primary_identifier': 'write',
|
|
548
547
|
'users_users_unban': 'admin',
|
|
549
548
|
'users_users_update': 'write',
|
|
550
|
-
'users_waitlist_erase': 'admin',
|
|
551
549
|
'users_waitlist_funnel': 'read',
|
|
552
550
|
'users_waitlist_import': 'write',
|
|
553
551
|
'users_waitlist_invite': 'write',
|
|
@@ -576,6 +574,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
576
574
|
'workflow_definition_disable': 'write',
|
|
577
575
|
'workflow_definition_dryrun': 'read',
|
|
578
576
|
'workflow_definition_enable': 'write',
|
|
577
|
+
'workflow_definition_estimate': 'read',
|
|
579
578
|
'workflow_definition_export': 'read',
|
|
580
579
|
'workflow_definition_get': 'read',
|
|
581
580
|
'workflow_definition_import': 'write',
|
|
@@ -598,6 +597,8 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
598
597
|
'workflow_run_start': 'write',
|
|
599
598
|
'workflow_run_stats': 'read',
|
|
600
599
|
'workflow_run_test': 'write',
|
|
600
|
+
'workflow_template_apply': 'write',
|
|
601
|
+
'workflow_template_list': 'read',
|
|
601
602
|
'workflow_version_get': 'read',
|
|
602
603
|
'workflow_version_list': 'read',
|
|
603
604
|
'workflow_wait_get': 'read',
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -110050,46 +110050,6 @@ export interface UsersUsersDeleteOutputPublicMetadata {
|
|
|
110050
110050
|
[k: string]: unknown
|
|
110051
110051
|
}
|
|
110052
110052
|
|
|
110053
|
-
export interface UsersUsersEraseInput {
|
|
110054
|
-
/**
|
|
110055
|
-
* The opaque user id returned by users_users_create or _list.
|
|
110056
|
-
*/
|
|
110057
|
-
userId: string
|
|
110058
|
-
}
|
|
110059
|
-
|
|
110060
|
-
export interface UsersUsersEraseOutput {
|
|
110061
|
-
id: string
|
|
110062
|
-
name: (string | null)
|
|
110063
|
-
bannedAt: (string | null)
|
|
110064
|
-
erasedAt: (string | null)
|
|
110065
|
-
imageUrl: (string | null)
|
|
110066
|
-
testUser: boolean
|
|
110067
|
-
createdAt: string
|
|
110068
|
-
deletedAt: (string | null)
|
|
110069
|
-
productId: string
|
|
110070
|
-
updatedAt: string
|
|
110071
|
-
waitlisted: boolean
|
|
110072
|
-
identifiers: {
|
|
110073
|
-
id: string
|
|
110074
|
-
type: "email"
|
|
110075
|
-
value: string
|
|
110076
|
-
isPrimary: boolean
|
|
110077
|
-
verifiedAt: (string | null)
|
|
110078
|
-
valueCanonical: string
|
|
110079
|
-
verificationStatus: ("unverified" | "verified" | "expired")
|
|
110080
|
-
}[]
|
|
110081
|
-
lockedUntil: (string | null)
|
|
110082
|
-
lastSignInAt: (string | null)
|
|
110083
|
-
requiresReset: boolean
|
|
110084
|
-
publicMetadata: UsersUsersEraseOutputPublicMetadata
|
|
110085
|
-
unsafeMetadata: UsersUsersEraseOutputPublicMetadata
|
|
110086
|
-
privateMetadata: UsersUsersEraseOutputPublicMetadata
|
|
110087
|
-
emailChangeLockedUntil: (string | null)
|
|
110088
|
-
}
|
|
110089
|
-
export interface UsersUsersEraseOutputPublicMetadata {
|
|
110090
|
-
[k: string]: unknown
|
|
110091
|
-
}
|
|
110092
|
-
|
|
110093
110053
|
export interface UsersUsersExportInput {
|
|
110094
110054
|
/**
|
|
110095
110055
|
* Rows per page, 1-500. Default 100.
|
|
@@ -110451,17 +110411,6 @@ export interface UsersUsersUpdateOutputPublicMetadata {
|
|
|
110451
110411
|
[k: string]: unknown
|
|
110452
110412
|
}
|
|
110453
110413
|
|
|
110454
|
-
export interface UsersWaitlistEraseInput {
|
|
110455
|
-
/**
|
|
110456
|
-
* The waitlisted user whose entry and directory row to erase.
|
|
110457
|
-
*/
|
|
110458
|
-
userId: string
|
|
110459
|
-
}
|
|
110460
|
-
|
|
110461
|
-
export interface UsersWaitlistEraseOutput {
|
|
110462
|
-
erased: boolean
|
|
110463
|
-
}
|
|
110464
|
-
|
|
110465
110414
|
export interface UsersWaitlistFunnelInput {
|
|
110466
110415
|
|
|
110467
110416
|
}
|
|
@@ -111115,7 +111064,7 @@ http?: ({
|
|
|
111115
111064
|
path: string
|
|
111116
111065
|
method: string
|
|
111117
111066
|
} | null)
|
|
111118
|
-
kind: ("action" | "event" | "schedule" | "manual")
|
|
111067
|
+
kind: ("action" | "event" | "schedule" | "batch" | "manual")
|
|
111119
111068
|
title: string
|
|
111120
111069
|
schema?: {
|
|
111121
111070
|
[k: string]: unknown
|
|
@@ -111169,7 +111118,7 @@ http?: ({
|
|
|
111169
111118
|
path: string
|
|
111170
111119
|
method: string
|
|
111171
111120
|
} | null)
|
|
111172
|
-
kind: ("action" | "event" | "schedule" | "manual")
|
|
111121
|
+
kind: ("action" | "event" | "schedule" | "batch" | "manual")
|
|
111173
111122
|
title: string
|
|
111174
111123
|
schema?: {
|
|
111175
111124
|
[k: string]: unknown
|
|
@@ -111575,6 +111524,37 @@ description: (string | null)
|
|
|
111575
111524
|
live_version: (number | null)
|
|
111576
111525
|
}
|
|
111577
111526
|
|
|
111527
|
+
export interface WorkflowDefinitionEstimateInput {
|
|
111528
|
+
/**
|
|
111529
|
+
* A workflow definition: trigger, nodes, edges, grants, config_refs.
|
|
111530
|
+
*/
|
|
111531
|
+
definition?: {
|
|
111532
|
+
[k: string]: unknown
|
|
111533
|
+
}
|
|
111534
|
+
workflow_id?: string
|
|
111535
|
+
}
|
|
111536
|
+
|
|
111537
|
+
/**
|
|
111538
|
+
* There is deliberately no `count` on `unavailable`: "we could not ask" and "nobody is in the audience" are opposite facts. `grant_missing` is the ordinary answer for an unpublished draft — the source's grant arrives at publish.
|
|
111539
|
+
*/
|
|
111540
|
+
export type WorkflowDefinitionEstimateOutput = ({
|
|
111541
|
+
/**
|
|
111542
|
+
* Runs one tick would start: the trigger filter is applied. A floor when `exact` is false.
|
|
111543
|
+
*/
|
|
111544
|
+
count: number
|
|
111545
|
+
/**
|
|
111546
|
+
* False when the page budget ran out before the source did; `count` is then "at least this many".
|
|
111547
|
+
*/
|
|
111548
|
+
exact: boolean
|
|
111549
|
+
status: "counted"
|
|
111550
|
+
counted_pages: number
|
|
111551
|
+
page_limit_reached: boolean
|
|
111552
|
+
} | {
|
|
111553
|
+
reason: ("unknown_tool" | "not_a_batch_trigger" | "source_failed" | "grant_missing")
|
|
111554
|
+
status: "unavailable"
|
|
111555
|
+
counted_pages: number
|
|
111556
|
+
})
|
|
111557
|
+
|
|
111578
111558
|
export interface WorkflowDefinitionExportInput {
|
|
111579
111559
|
/**
|
|
111580
111560
|
* Defaults to the live version.
|
|
@@ -112765,6 +112745,204 @@ trigger_event_id: string
|
|
|
112765
112745
|
replay_generation: number
|
|
112766
112746
|
}
|
|
112767
112747
|
|
|
112748
|
+
export interface WorkflowTemplateApplyInput {
|
|
112749
|
+
/**
|
|
112750
|
+
* Defaults to the template's own name.
|
|
112751
|
+
*/
|
|
112752
|
+
name?: string
|
|
112753
|
+
template_id: string
|
|
112754
|
+
}
|
|
112755
|
+
|
|
112756
|
+
export interface WorkflowTemplateApplyOutput {
|
|
112757
|
+
live: ({
|
|
112758
|
+
note: (string | null)
|
|
112759
|
+
version: number
|
|
112760
|
+
published_at: (string | null)
|
|
112761
|
+
} | null)
|
|
112762
|
+
draft: ({
|
|
112763
|
+
[k: string]: unknown
|
|
112764
|
+
} | null)
|
|
112765
|
+
/**
|
|
112766
|
+
* The workflow principal's grants; null when Governance could not be reached.
|
|
112767
|
+
*/
|
|
112768
|
+
grants: ({
|
|
112769
|
+
/**
|
|
112770
|
+
* What to do next, when something needs doing; null when nothing does.
|
|
112771
|
+
*/
|
|
112772
|
+
hint: (string | null)
|
|
112773
|
+
grants: {
|
|
112774
|
+
/**
|
|
112775
|
+
* "approved" is the only status a call gets through on.
|
|
112776
|
+
*/
|
|
112777
|
+
status: ("pending" | "approved" | "revoked" | "needs_sponsor")
|
|
112778
|
+
tool_key: string
|
|
112779
|
+
approved_at: (string | null)
|
|
112780
|
+
/**
|
|
112781
|
+
* The member who vouches for the grant.
|
|
112782
|
+
*/
|
|
112783
|
+
sponsor_member_id: (string | null)
|
|
112784
|
+
}[]
|
|
112785
|
+
/**
|
|
112786
|
+
* Tool keys asked for and waiting on a human.
|
|
112787
|
+
*/
|
|
112788
|
+
pending: string[]
|
|
112789
|
+
/**
|
|
112790
|
+
* Tool keys a human withdrew. Approving one again is not enough: Governance does not resurrect a revoked grant, so it has to be asked for first.
|
|
112791
|
+
*/
|
|
112792
|
+
revoked: string[]
|
|
112793
|
+
/**
|
|
112794
|
+
* Tool keys the workflow may call right now.
|
|
112795
|
+
*/
|
|
112796
|
+
effective: string[]
|
|
112797
|
+
/**
|
|
112798
|
+
* Tool keys that were approved and lost their sponsor.
|
|
112799
|
+
*/
|
|
112800
|
+
needs_sponsor: string[]
|
|
112801
|
+
} | null)
|
|
112802
|
+
/**
|
|
112803
|
+
* What the dependency check found; null when nothing is unknown.
|
|
112804
|
+
*/
|
|
112805
|
+
health: ({
|
|
112806
|
+
unknown: {
|
|
112807
|
+
kind: ("trigger" | "action")
|
|
112808
|
+
name: string
|
|
112809
|
+
reason: ("missing" | "schema_changed")
|
|
112810
|
+
node_id?: string
|
|
112811
|
+
toolkit: string
|
|
112812
|
+
}[]
|
|
112813
|
+
/**
|
|
112814
|
+
* What a recovery restores.
|
|
112815
|
+
*/
|
|
112816
|
+
previous_status?: ("draft" | "enabled" | "disabled")
|
|
112817
|
+
} | null)
|
|
112818
|
+
/**
|
|
112819
|
+
* Validation of the draft as it stands right now.
|
|
112820
|
+
*/
|
|
112821
|
+
issues: {
|
|
112822
|
+
/**
|
|
112823
|
+
* A documented issue code; repair by reacting to this, not to prose.
|
|
112824
|
+
*/
|
|
112825
|
+
code: string
|
|
112826
|
+
hint?: string
|
|
112827
|
+
/**
|
|
112828
|
+
* JSON Pointer into the definition.
|
|
112829
|
+
*/
|
|
112830
|
+
path: string
|
|
112831
|
+
actual?: string
|
|
112832
|
+
node_id?: string
|
|
112833
|
+
expected?: string
|
|
112834
|
+
severity: ("error" | "warning")
|
|
112835
|
+
}[]
|
|
112836
|
+
/**
|
|
112837
|
+
* The last 20 health entries, newest first; `workflow_health_list` pages the rest.
|
|
112838
|
+
*/
|
|
112839
|
+
timeline: {
|
|
112840
|
+
at: string
|
|
112841
|
+
fix?: unknown
|
|
112842
|
+
/**
|
|
112843
|
+
* `broken`, `recovered`, `grants_pending`, `grant_revoked`, `sponsor_gone`, `grants_ok` and whatever the dispatcher and the executor record beside them.
|
|
112844
|
+
*/
|
|
112845
|
+
kind: string
|
|
112846
|
+
detail?: unknown
|
|
112847
|
+
}[]
|
|
112848
|
+
workflow: {
|
|
112849
|
+
id: string
|
|
112850
|
+
name: string
|
|
112851
|
+
/**
|
|
112852
|
+
* `broken` is the dependency check's, not an operator's: a capability is gone.
|
|
112853
|
+
*/
|
|
112854
|
+
status: ("draft" | "enabled" | "disabled" | "broken")
|
|
112855
|
+
/**
|
|
112856
|
+
* What starts this workflow and how big it is, without fetching the definition. Taken from the live version when one is live, from the draft otherwise.
|
|
112857
|
+
*/
|
|
112858
|
+
summary: {
|
|
112859
|
+
/**
|
|
112860
|
+
* What starts the workflow; null when the definition declares no trigger.
|
|
112861
|
+
*/
|
|
112862
|
+
trigger: ({
|
|
112863
|
+
/**
|
|
112864
|
+
* Set for `schedule` and `batch`; null otherwise.
|
|
112865
|
+
*/
|
|
112866
|
+
cron: (string | null)
|
|
112867
|
+
kind: ("event" | "schedule" | "batch" | "manual")
|
|
112868
|
+
/**
|
|
112869
|
+
* The event name for `event`, the source tool for `batch`; null otherwise.
|
|
112870
|
+
*/
|
|
112871
|
+
name: (string | null)
|
|
112872
|
+
} | null)
|
|
112873
|
+
/**
|
|
112874
|
+
* Steps in the graph; a loop counts as one.
|
|
112875
|
+
*/
|
|
112876
|
+
node_count: number
|
|
112877
|
+
}
|
|
112878
|
+
/**
|
|
112879
|
+
* What is stopping an otherwise published workflow; null when nothing is.
|
|
112880
|
+
*/
|
|
112881
|
+
attention: ({
|
|
112882
|
+
code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning")
|
|
112883
|
+
detail: {
|
|
112884
|
+
/**
|
|
112885
|
+
* Set instead when Governance could not be asked.
|
|
112886
|
+
*/
|
|
112887
|
+
error?: string
|
|
112888
|
+
/**
|
|
112889
|
+
* The tools still waiting on a sponsor.
|
|
112890
|
+
*/
|
|
112891
|
+
tools?: string[]
|
|
112892
|
+
}
|
|
112893
|
+
} | null)
|
|
112894
|
+
created_at: string
|
|
112895
|
+
updated_at: string
|
|
112896
|
+
description: (string | null)
|
|
112897
|
+
live_version: (number | null)
|
|
112898
|
+
}
|
|
112899
|
+
/**
|
|
112900
|
+
* What the live version was validated against, with the hashes it saw.
|
|
112901
|
+
*/
|
|
112902
|
+
dependencies: {
|
|
112903
|
+
kind: ("trigger" | "action")
|
|
112904
|
+
/**
|
|
112905
|
+
* The event name of the trigger, or the tool name of the action.
|
|
112906
|
+
*/
|
|
112907
|
+
name: string
|
|
112908
|
+
toolkit: string
|
|
112909
|
+
/**
|
|
112910
|
+
* The hash the capability had at publish; a drift means broken.
|
|
112911
|
+
*/
|
|
112912
|
+
schema_hash: string
|
|
112913
|
+
}[]
|
|
112914
|
+
}
|
|
112915
|
+
|
|
112916
|
+
export interface WorkflowTemplateListInput {
|
|
112917
|
+
|
|
112918
|
+
}
|
|
112919
|
+
|
|
112920
|
+
export interface WorkflowTemplateListOutput {
|
|
112921
|
+
items: {
|
|
112922
|
+
id: string
|
|
112923
|
+
name: string
|
|
112924
|
+
/**
|
|
112925
|
+
* Empty when applicable. An inapplicable template is shown with this, never hidden.
|
|
112926
|
+
*/
|
|
112927
|
+
missing: {
|
|
112928
|
+
/**
|
|
112929
|
+
* The tool name or event name the template needs.
|
|
112930
|
+
*/
|
|
112931
|
+
key: string
|
|
112932
|
+
kind: ("tool" | "event")
|
|
112933
|
+
/**
|
|
112934
|
+
* Why this template cannot work without it, as a sentence to show a person.
|
|
112935
|
+
*/
|
|
112936
|
+
reason: string
|
|
112937
|
+
}[]
|
|
112938
|
+
/**
|
|
112939
|
+
* False when something in `missing` is not registered on this Product.
|
|
112940
|
+
*/
|
|
112941
|
+
applicable: boolean
|
|
112942
|
+
description: string
|
|
112943
|
+
}[]
|
|
112944
|
+
}
|
|
112945
|
+
|
|
112768
112946
|
export interface WorkflowVersionGetInput {
|
|
112769
112947
|
/**
|
|
112770
112948
|
* 0 is the draft.
|
package/src/gen/users/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { UsersApikeysCreateInput, UsersApikeysCreateOutput, UsersApikeysListInput, UsersApikeysListOutput, UsersApikeysRevokeInput, UsersApikeysRevokeOutput, UsersAuditListInput, UsersAuditListOutput, UsersConfigGetInput, UsersConfigGetOutput, UsersConfigUpsertInput, UsersConfigUpsertOutput, UsersFactorsListInput, UsersFactorsListOutput, UsersFactorsResetInput, UsersFactorsResetOutput, UsersKeysListInput, UsersKeysListOutput, UsersKeysRevokeInput, UsersKeysRevokeOutput, UsersKeysRotateInput, UsersKeysRotateOutput, UsersOpsRetentionGetInput, UsersOpsRetentionGetOutput, UsersOpsSloGetInput, UsersOpsSloGetOutput, UsersPasskeysListInput, UsersPasskeysListOutput, UsersPasskeysRevokeInput, UsersPasskeysRevokeOutput, UsersSessionsGetInput, UsersSessionsGetOutput, UsersSessionsImpersonateInput, UsersSessionsImpersonateOutput, UsersSessionsListInput, UsersSessionsListOutput, UsersSessionsRevokeInput, UsersSessionsRevokeOutput, UsersStatsGetInput, UsersStatsGetOutput, UsersUsersBanInput, UsersUsersBanOutput, UsersUsersCreateInput, UsersUsersCreateOutput, UsersUsersDeleteInput, UsersUsersDeleteOutput,
|
|
3
|
+
export type { UsersApikeysCreateInput, UsersApikeysCreateOutput, UsersApikeysListInput, UsersApikeysListOutput, UsersApikeysRevokeInput, UsersApikeysRevokeOutput, UsersAuditListInput, UsersAuditListOutput, UsersConfigGetInput, UsersConfigGetOutput, UsersConfigUpsertInput, UsersConfigUpsertOutput, UsersFactorsListInput, UsersFactorsListOutput, UsersFactorsResetInput, UsersFactorsResetOutput, UsersKeysListInput, UsersKeysListOutput, UsersKeysRevokeInput, UsersKeysRevokeOutput, UsersKeysRotateInput, UsersKeysRotateOutput, UsersOpsRetentionGetInput, UsersOpsRetentionGetOutput, UsersOpsSloGetInput, UsersOpsSloGetOutput, UsersPasskeysListInput, UsersPasskeysListOutput, UsersPasskeysRevokeInput, UsersPasskeysRevokeOutput, UsersSessionsGetInput, UsersSessionsGetOutput, UsersSessionsImpersonateInput, UsersSessionsImpersonateOutput, UsersSessionsListInput, UsersSessionsListOutput, UsersSessionsRevokeInput, UsersSessionsRevokeOutput, UsersStatsGetInput, UsersStatsGetOutput, UsersUsersBanInput, UsersUsersBanOutput, UsersUsersCreateInput, UsersUsersCreateOutput, UsersUsersDeleteInput, UsersUsersDeleteOutput, UsersUsersExportInput, UsersUsersExportOutput, UsersUsersGetInput, UsersUsersGetOutput, UsersUsersImportInput, UsersUsersImportOutput, UsersUsersInviteInput, UsersUsersInviteOutput, UsersUsersListInput, UsersUsersListOutput, UsersUsersSetPrimaryIdentifierInput, UsersUsersSetPrimaryIdentifierOutput, UsersUsersUnbanInput, UsersUsersUnbanOutput, UsersUsersUpdateInput, UsersUsersUpdateOutput, UsersWaitlistFunnelInput, UsersWaitlistFunnelOutput, UsersWaitlistImportInput, UsersWaitlistImportOutput, UsersWaitlistInviteInput, UsersWaitlistInviteOutput, UsersWaitlistListInput, UsersWaitlistListOutput, UsersWebhooksCreateInput, UsersWebhooksCreateOutput, UsersWebhooksDeleteInput, UsersWebhooksDeleteOutput, UsersWebhooksDeliveriesListInput, UsersWebhooksDeliveriesListOutput, UsersWebhooksGetInput, UsersWebhooksGetOutput, UsersWebhooksListInput, UsersWebhooksListOutput, UsersWebhooksRotateSecretInput, UsersWebhooksRotateSecretOutput, UsersWebhooksUpdateInput, UsersWebhooksUpdateOutput } from '../types.gen';
|
|
@@ -32,7 +32,6 @@ import type {
|
|
|
32
32
|
UsersUsersBanInput,
|
|
33
33
|
UsersUsersCreateInput,
|
|
34
34
|
UsersUsersDeleteInput,
|
|
35
|
-
UsersUsersEraseInput,
|
|
36
35
|
UsersUsersExportInput,
|
|
37
36
|
UsersUsersGetInput,
|
|
38
37
|
UsersUsersGetOutput,
|
|
@@ -43,7 +42,6 @@ import type {
|
|
|
43
42
|
UsersUsersSetPrimaryIdentifierInput,
|
|
44
43
|
UsersUsersUnbanInput,
|
|
45
44
|
UsersUsersUpdateInput,
|
|
46
|
-
UsersWaitlistEraseInput,
|
|
47
45
|
UsersWaitlistFunnelInput,
|
|
48
46
|
UsersWaitlistImportInput,
|
|
49
47
|
UsersWaitlistInviteInput,
|
|
@@ -175,11 +173,6 @@ export const usersUsersDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
|
175
173
|
mutationFn: (input: UsersUsersDeleteInput) => sdk['users']['users']['delete'](input),
|
|
176
174
|
});
|
|
177
175
|
|
|
178
|
-
export const usersUsersEraseMutationOptions = (sdk: GeneratedClient) => ({
|
|
179
|
-
mutationKey: ['users', 'users', 'erase'],
|
|
180
|
-
mutationFn: (input: UsersUsersEraseInput) => sdk['users']['users']['erase'](input),
|
|
181
|
-
});
|
|
182
|
-
|
|
183
176
|
export const usersUsersExportMutationOptions = (sdk: GeneratedClient) => ({
|
|
184
177
|
mutationKey: ['users', 'users', 'export'],
|
|
185
178
|
mutationFn: (input: UsersUsersExportInput) => sdk['users']['users']['export'](input),
|
|
@@ -220,11 +213,6 @@ export const usersUsersUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
|
220
213
|
mutationFn: (input: UsersUsersUpdateInput) => sdk['users']['users']['update'](input),
|
|
221
214
|
});
|
|
222
215
|
|
|
223
|
-
export const usersWaitlistEraseMutationOptions = (sdk: GeneratedClient) => ({
|
|
224
|
-
mutationKey: ['users', 'waitlist', 'erase'],
|
|
225
|
-
mutationFn: (input: UsersWaitlistEraseInput) => sdk['users']['waitlist']['erase'](input),
|
|
226
|
-
});
|
|
227
|
-
|
|
228
216
|
export const usersWaitlistFunnelMutationOptions = (sdk: GeneratedClient) => ({
|
|
229
217
|
mutationKey: ['users', 'waitlist', 'funnel'],
|
|
230
218
|
mutationFn: (input: UsersWaitlistFunnelInput) => sdk['users']['waitlist']['funnel'](input),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { WorkflowCapListInput, WorkflowCapListOutput, WorkflowCapabilityGetInput, WorkflowCapabilityGetOutput, WorkflowCapabilityListInput, WorkflowCapabilityListOutput, WorkflowConfigDeleteInput, WorkflowConfigDeleteOutput, WorkflowConfigListInput, WorkflowConfigListOutput, WorkflowConfigSetInput, WorkflowConfigSetOutput, WorkflowDefinitionCreateInput, WorkflowDefinitionCreateOutput, WorkflowDefinitionDisableInput, WorkflowDefinitionDisableOutput, WorkflowDefinitionDryrunInput, WorkflowDefinitionDryrunOutput, WorkflowDefinitionEnableInput, WorkflowDefinitionEnableOutput, WorkflowDefinitionExportInput, WorkflowDefinitionExportOutput, WorkflowDefinitionGetInput, WorkflowDefinitionGetOutput, WorkflowDefinitionImportInput, WorkflowDefinitionImportOutput, WorkflowDefinitionListInput, WorkflowDefinitionListOutput, WorkflowDefinitionPublishInput, WorkflowDefinitionPublishOutput, WorkflowDefinitionUpdateInput, WorkflowDefinitionUpdateOutput, WorkflowDefinitionValidateInput, WorkflowDefinitionValidateOutput, WorkflowDependencyListInput, WorkflowDependencyListOutput, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowGrantRequestInput, WorkflowGrantRequestOutput, WorkflowHealthListInput, WorkflowHealthListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowKillswitchSetOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayAllOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowRunStatsInput, WorkflowRunStatsOutput, WorkflowRunTestInput, WorkflowRunTestOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput, WorkflowWaitGetInput, WorkflowWaitGetOutput, WorkflowWaitListAllInput, WorkflowWaitListAllOutput, WorkflowWaitListInput, WorkflowWaitListOutput, WorkflowWaitResolveInput, WorkflowWaitResolveOutput } from '../types.gen';
|
|
3
|
+
export type { WorkflowCapListInput, WorkflowCapListOutput, WorkflowCapabilityGetInput, WorkflowCapabilityGetOutput, WorkflowCapabilityListInput, WorkflowCapabilityListOutput, WorkflowConfigDeleteInput, WorkflowConfigDeleteOutput, WorkflowConfigListInput, WorkflowConfigListOutput, WorkflowConfigSetInput, WorkflowConfigSetOutput, WorkflowDefinitionCreateInput, WorkflowDefinitionCreateOutput, WorkflowDefinitionDisableInput, WorkflowDefinitionDisableOutput, WorkflowDefinitionDryrunInput, WorkflowDefinitionDryrunOutput, WorkflowDefinitionEnableInput, WorkflowDefinitionEnableOutput, WorkflowDefinitionEstimateInput, WorkflowDefinitionEstimateOutput, WorkflowDefinitionExportInput, WorkflowDefinitionExportOutput, WorkflowDefinitionGetInput, WorkflowDefinitionGetOutput, WorkflowDefinitionImportInput, WorkflowDefinitionImportOutput, WorkflowDefinitionListInput, WorkflowDefinitionListOutput, WorkflowDefinitionPublishInput, WorkflowDefinitionPublishOutput, WorkflowDefinitionUpdateInput, WorkflowDefinitionUpdateOutput, WorkflowDefinitionValidateInput, WorkflowDefinitionValidateOutput, WorkflowDependencyListInput, WorkflowDependencyListOutput, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowGrantRequestInput, WorkflowGrantRequestOutput, WorkflowHealthListInput, WorkflowHealthListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowKillswitchSetOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayAllOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowRunStatsInput, WorkflowRunStatsOutput, WorkflowRunTestInput, WorkflowRunTestOutput, WorkflowTemplateApplyInput, WorkflowTemplateApplyOutput, WorkflowTemplateListInput, WorkflowTemplateListOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput, WorkflowWaitGetInput, WorkflowWaitGetOutput, WorkflowWaitListAllInput, WorkflowWaitListAllOutput, WorkflowWaitListInput, WorkflowWaitListOutput, WorkflowWaitResolveInput, WorkflowWaitResolveOutput } from '../types.gen';
|
|
@@ -16,6 +16,8 @@ import type {
|
|
|
16
16
|
WorkflowDefinitionDryrunInput,
|
|
17
17
|
WorkflowDefinitionDryrunOutput,
|
|
18
18
|
WorkflowDefinitionEnableInput,
|
|
19
|
+
WorkflowDefinitionEstimateInput,
|
|
20
|
+
WorkflowDefinitionEstimateOutput,
|
|
19
21
|
WorkflowDefinitionExportInput,
|
|
20
22
|
WorkflowDefinitionExportOutput,
|
|
21
23
|
WorkflowDefinitionGetInput,
|
|
@@ -50,6 +52,9 @@ import type {
|
|
|
50
52
|
WorkflowRunStatsInput,
|
|
51
53
|
WorkflowRunStatsOutput,
|
|
52
54
|
WorkflowRunTestInput,
|
|
55
|
+
WorkflowTemplateApplyInput,
|
|
56
|
+
WorkflowTemplateListInput,
|
|
57
|
+
WorkflowTemplateListOutput,
|
|
53
58
|
WorkflowVersionGetInput,
|
|
54
59
|
WorkflowVersionGetOutput,
|
|
55
60
|
WorkflowVersionListInput,
|
|
@@ -113,6 +118,11 @@ export const workflowDefinitionEnableMutationOptions = (sdk: GeneratedClient) =>
|
|
|
113
118
|
mutationFn: (input: WorkflowDefinitionEnableInput) => sdk['workflow']['definition']['enable'](input),
|
|
114
119
|
});
|
|
115
120
|
|
|
121
|
+
export const workflowDefinitionEstimateQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionEstimateInput) => ({
|
|
122
|
+
queryKey: ['workflow', 'definition', 'estimate', input] as const,
|
|
123
|
+
queryFn: () => sdk['workflow']['definition']['estimate'](input),
|
|
124
|
+
});
|
|
125
|
+
|
|
116
126
|
export const workflowDefinitionExportQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionExportInput) => ({
|
|
117
127
|
queryKey: ['workflow', 'definition', 'export', input] as const,
|
|
118
128
|
queryFn: () => sdk['workflow']['definition']['export'](input),
|
|
@@ -223,6 +233,16 @@ export const workflowRunTestMutationOptions = (sdk: GeneratedClient) => ({
|
|
|
223
233
|
mutationFn: (input: WorkflowRunTestInput) => sdk['workflow']['run']['test'](input),
|
|
224
234
|
});
|
|
225
235
|
|
|
236
|
+
export const workflowTemplateApplyMutationOptions = (sdk: GeneratedClient) => ({
|
|
237
|
+
mutationKey: ['workflow', 'template', 'apply'],
|
|
238
|
+
mutationFn: (input: WorkflowTemplateApplyInput) => sdk['workflow']['template']['apply'](input),
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
export const workflowTemplateListQueryOptions = (sdk: GeneratedClient, input: WorkflowTemplateListInput) => ({
|
|
242
|
+
queryKey: ['workflow', 'template', 'list', input] as const,
|
|
243
|
+
queryFn: () => sdk['workflow']['template']['list'](input),
|
|
244
|
+
});
|
|
245
|
+
|
|
226
246
|
export const workflowVersionGetQueryOptions = (sdk: GeneratedClient, input: WorkflowVersionGetInput) => ({
|
|
227
247
|
queryKey: ['workflow', 'version', 'get', input] as const,
|
|
228
248
|
queryFn: () => sdk['workflow']['version']['get'](input),
|