@lessly/sdk-app 66.1.0 → 66.3.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 +10 -1
- package/dist/_types/gen/types.gen.d.ts +257 -0
- package/dist/_types/gen/workflow/index.d.ts +1 -1
- package/dist/_types/gen/workflow/queryOptions.gen.d.ts +21 -1
- package/dist/{chunk-ORP3C4MA.js → chunk-G3EFA6KW.js} +119 -2
- package/dist/{chunk-ORP3C4MA.js.map → chunk-G3EFA6KW.js.map} +1 -1
- package/dist/index.cjs +123 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/playground/index.cjs.map +1 -1
- package/dist/playground/index.js +1 -1
- package/dist/workflow/index.cjs +25 -0
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.js +21 -1
- package/dist/workflow/index.js.map +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +117 -0
- package/src/gen/client.gen.ts +19 -0
- package/src/gen/manifest.gen.ts +5 -0
- package/src/gen/types.gen.ts +267 -0
- package/src/gen/workflow/index.ts +1 -1
- package/src/gen/workflow/queryOptions.gen.ts +33 -0
package/src/gen/types.gen.ts
CHANGED
|
@@ -112198,6 +112198,10 @@ run_id: string
|
|
|
112198
112198
|
|
|
112199
112199
|
export interface WorkflowRunCancelOutput {
|
|
112200
112200
|
id: string
|
|
112201
|
+
/**
|
|
112202
|
+
* Started by `workflow_run_test` to watch the workflow work. It executed for real; the flag is what separates it from the Product’s own traffic.
|
|
112203
|
+
*/
|
|
112204
|
+
test: boolean
|
|
112201
112205
|
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
112202
112206
|
version: number
|
|
112203
112207
|
ended_at: (string | null)
|
|
@@ -112221,6 +112225,10 @@ run_id: string
|
|
|
112221
112225
|
export interface WorkflowRunGetOutput {
|
|
112222
112226
|
run: {
|
|
112223
112227
|
id: string
|
|
112228
|
+
/**
|
|
112229
|
+
* Started by `workflow_run_test` to watch the workflow work. It executed for real; the flag is what separates it from the Product’s own traffic.
|
|
112230
|
+
*/
|
|
112231
|
+
test: boolean
|
|
112224
112232
|
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
112225
112233
|
version: number
|
|
112226
112234
|
ended_at: (string | null)
|
|
@@ -112266,6 +112274,10 @@ payload?: unknown
|
|
|
112266
112274
|
}
|
|
112267
112275
|
|
|
112268
112276
|
export interface WorkflowRunListInput {
|
|
112277
|
+
/**
|
|
112278
|
+
* `true` for test runs only, `false` for real traffic only; omitted for both.
|
|
112279
|
+
*/
|
|
112280
|
+
test?: boolean
|
|
112269
112281
|
/**
|
|
112270
112282
|
* Page size, 1-200; defaults to 50.
|
|
112271
112283
|
*/
|
|
@@ -112281,6 +112293,10 @@ workflow_id?: string
|
|
|
112281
112293
|
export interface WorkflowRunListOutput {
|
|
112282
112294
|
items: {
|
|
112283
112295
|
id: string
|
|
112296
|
+
/**
|
|
112297
|
+
* Started by `workflow_run_test` to watch the workflow work. It executed for real; the flag is what separates it from the Product’s own traffic.
|
|
112298
|
+
*/
|
|
112299
|
+
test: boolean
|
|
112284
112300
|
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
112285
112301
|
version: number
|
|
112286
112302
|
ended_at: (string | null)
|
|
@@ -112309,6 +112325,10 @@ reexecute?: boolean
|
|
|
112309
112325
|
|
|
112310
112326
|
export interface WorkflowRunReplayOutput {
|
|
112311
112327
|
id: string
|
|
112328
|
+
/**
|
|
112329
|
+
* Started by `workflow_run_test` to watch the workflow work. It executed for real; the flag is what separates it from the Product’s own traffic.
|
|
112330
|
+
*/
|
|
112331
|
+
test: boolean
|
|
112312
112332
|
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
112313
112333
|
version: number
|
|
112314
112334
|
ended_at: (string | null)
|
|
@@ -112359,6 +112379,38 @@ event_id: string
|
|
|
112359
112379
|
deduplicated: boolean
|
|
112360
112380
|
}
|
|
112361
112381
|
|
|
112382
|
+
export interface WorkflowRunTestInput {
|
|
112383
|
+
workflow_id: string
|
|
112384
|
+
/**
|
|
112385
|
+
* What the run reads as `trigger.data`. Defaults to `{}`.
|
|
112386
|
+
*/
|
|
112387
|
+
trigger_payload?: {
|
|
112388
|
+
[k: string]: unknown
|
|
112389
|
+
}
|
|
112390
|
+
}
|
|
112391
|
+
|
|
112392
|
+
export interface WorkflowRunTestOutput {
|
|
112393
|
+
id: string
|
|
112394
|
+
/**
|
|
112395
|
+
* Started by `workflow_run_test` to watch the workflow work. It executed for real; the flag is what separates it from the Product’s own traffic.
|
|
112396
|
+
*/
|
|
112397
|
+
test: boolean
|
|
112398
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
112399
|
+
version: number
|
|
112400
|
+
ended_at: (string | null)
|
|
112401
|
+
created_at: string
|
|
112402
|
+
started_at: (string | null)
|
|
112403
|
+
/**
|
|
112404
|
+
* Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
|
|
112405
|
+
*/
|
|
112406
|
+
held_reason?: {
|
|
112407
|
+
[k: string]: unknown
|
|
112408
|
+
}
|
|
112409
|
+
workflow_id: string
|
|
112410
|
+
trigger_event_id: string
|
|
112411
|
+
replay_generation: number
|
|
112412
|
+
}
|
|
112413
|
+
|
|
112362
112414
|
export interface WorkflowVersionGetInput {
|
|
112363
112415
|
/**
|
|
112364
112416
|
* 0 is the draft.
|
|
@@ -112406,3 +112458,218 @@ published_by: (string | null)
|
|
|
112406
112458
|
}[]
|
|
112407
112459
|
next_cursor: (string | null)
|
|
112408
112460
|
}
|
|
112461
|
+
|
|
112462
|
+
export interface WorkflowWaitGetInput {
|
|
112463
|
+
wait_id: string
|
|
112464
|
+
}
|
|
112465
|
+
|
|
112466
|
+
export interface WorkflowWaitGetOutput {
|
|
112467
|
+
id: string
|
|
112468
|
+
/**
|
|
112469
|
+
* The JSON Schema an `input` answer is checked against; null for an approval.
|
|
112470
|
+
*/
|
|
112471
|
+
form?: {
|
|
112472
|
+
[k: string]: unknown
|
|
112473
|
+
}
|
|
112474
|
+
/**
|
|
112475
|
+
* `approval` or `input`.
|
|
112476
|
+
*/
|
|
112477
|
+
kind: string
|
|
112478
|
+
run_id: string
|
|
112479
|
+
status: string
|
|
112480
|
+
/**
|
|
112481
|
+
* What the node asks, as the author wrote it.
|
|
112482
|
+
*/
|
|
112483
|
+
message: (string | null)
|
|
112484
|
+
/**
|
|
112485
|
+
* `node_id`, or `node_id[i]/child_id` inside a loop.
|
|
112486
|
+
*/
|
|
112487
|
+
node_id: string
|
|
112488
|
+
/**
|
|
112489
|
+
* Who was asked, as the definition wrote it. Null when the row predates the shape.
|
|
112490
|
+
*/
|
|
112491
|
+
assignee: ({
|
|
112492
|
+
id: string
|
|
112493
|
+
kind: ("member" | "role" | "agent")
|
|
112494
|
+
} | null)
|
|
112495
|
+
deadline: (string | null)
|
|
112496
|
+
created_at: string
|
|
112497
|
+
resolved_by: (string | null)
|
|
112498
|
+
workflow_id: string
|
|
112499
|
+
workflow_name: (string | null)
|
|
112500
|
+
}
|
|
112501
|
+
|
|
112502
|
+
export interface WorkflowWaitListInput {
|
|
112503
|
+
/**
|
|
112504
|
+
* Page size, 1-200; defaults to 50.
|
|
112505
|
+
*/
|
|
112506
|
+
limit?: number
|
|
112507
|
+
/**
|
|
112508
|
+
* Opaque cursor from a previous page.
|
|
112509
|
+
*/
|
|
112510
|
+
cursor?: string
|
|
112511
|
+
/**
|
|
112512
|
+
* Defaults to `pending`.
|
|
112513
|
+
*/
|
|
112514
|
+
status?: ("pending" | "resolved" | "expired")
|
|
112515
|
+
workflow_id?: string
|
|
112516
|
+
}
|
|
112517
|
+
|
|
112518
|
+
export interface WorkflowWaitListOutput {
|
|
112519
|
+
items: {
|
|
112520
|
+
id: string
|
|
112521
|
+
/**
|
|
112522
|
+
* The JSON Schema an `input` answer is checked against; null for an approval.
|
|
112523
|
+
*/
|
|
112524
|
+
form?: {
|
|
112525
|
+
[k: string]: unknown
|
|
112526
|
+
}
|
|
112527
|
+
/**
|
|
112528
|
+
* `approval` or `input`.
|
|
112529
|
+
*/
|
|
112530
|
+
kind: string
|
|
112531
|
+
run_id: string
|
|
112532
|
+
status: string
|
|
112533
|
+
/**
|
|
112534
|
+
* What the node asks, as the author wrote it.
|
|
112535
|
+
*/
|
|
112536
|
+
message: (string | null)
|
|
112537
|
+
/**
|
|
112538
|
+
* `node_id`, or `node_id[i]/child_id` inside a loop.
|
|
112539
|
+
*/
|
|
112540
|
+
node_id: string
|
|
112541
|
+
/**
|
|
112542
|
+
* Who was asked, as the definition wrote it. Null when the row predates the shape.
|
|
112543
|
+
*/
|
|
112544
|
+
assignee: ({
|
|
112545
|
+
id: string
|
|
112546
|
+
kind: ("member" | "role" | "agent")
|
|
112547
|
+
} | null)
|
|
112548
|
+
deadline: (string | null)
|
|
112549
|
+
created_at: string
|
|
112550
|
+
resolved_by: (string | null)
|
|
112551
|
+
workflow_id: string
|
|
112552
|
+
workflow_name: (string | null)
|
|
112553
|
+
}[]
|
|
112554
|
+
next_cursor: (string | null)
|
|
112555
|
+
}
|
|
112556
|
+
|
|
112557
|
+
export interface WorkflowWaitListAllInput {
|
|
112558
|
+
/**
|
|
112559
|
+
* Page size, 1-200; defaults to 50.
|
|
112560
|
+
*/
|
|
112561
|
+
limit?: number
|
|
112562
|
+
/**
|
|
112563
|
+
* Opaque cursor from a previous page.
|
|
112564
|
+
*/
|
|
112565
|
+
cursor?: string
|
|
112566
|
+
/**
|
|
112567
|
+
* Defaults to `pending`.
|
|
112568
|
+
*/
|
|
112569
|
+
status?: ("pending" | "resolved" | "expired")
|
|
112570
|
+
workflow_id?: string
|
|
112571
|
+
}
|
|
112572
|
+
|
|
112573
|
+
export interface WorkflowWaitListAllOutput {
|
|
112574
|
+
items: {
|
|
112575
|
+
id: string
|
|
112576
|
+
/**
|
|
112577
|
+
* The JSON Schema an `input` answer is checked against; null for an approval.
|
|
112578
|
+
*/
|
|
112579
|
+
form?: {
|
|
112580
|
+
[k: string]: unknown
|
|
112581
|
+
}
|
|
112582
|
+
/**
|
|
112583
|
+
* `approval` or `input`.
|
|
112584
|
+
*/
|
|
112585
|
+
kind: string
|
|
112586
|
+
run_id: string
|
|
112587
|
+
status: string
|
|
112588
|
+
/**
|
|
112589
|
+
* What the node asks, as the author wrote it.
|
|
112590
|
+
*/
|
|
112591
|
+
message: (string | null)
|
|
112592
|
+
/**
|
|
112593
|
+
* `node_id`, or `node_id[i]/child_id` inside a loop.
|
|
112594
|
+
*/
|
|
112595
|
+
node_id: string
|
|
112596
|
+
/**
|
|
112597
|
+
* Who was asked, as the definition wrote it. Null when the row predates the shape.
|
|
112598
|
+
*/
|
|
112599
|
+
assignee: ({
|
|
112600
|
+
id: string
|
|
112601
|
+
kind: ("member" | "role" | "agent")
|
|
112602
|
+
} | null)
|
|
112603
|
+
deadline: (string | null)
|
|
112604
|
+
created_at: string
|
|
112605
|
+
resolved_by: (string | null)
|
|
112606
|
+
workflow_id: string
|
|
112607
|
+
workflow_name: (string | null)
|
|
112608
|
+
}[]
|
|
112609
|
+
next_cursor: (string | null)
|
|
112610
|
+
}
|
|
112611
|
+
|
|
112612
|
+
export interface WorkflowWaitResolveInput {
|
|
112613
|
+
comment?: string
|
|
112614
|
+
/**
|
|
112615
|
+
* Required for an `input`: the answer, checked against the node's form.
|
|
112616
|
+
*/
|
|
112617
|
+
payload?: {
|
|
112618
|
+
[k: string]: unknown
|
|
112619
|
+
}
|
|
112620
|
+
wait_id: string
|
|
112621
|
+
/**
|
|
112622
|
+
* Required for an `approval`.
|
|
112623
|
+
*/
|
|
112624
|
+
decision?: ("approve" | "reject")
|
|
112625
|
+
/**
|
|
112626
|
+
* The signed token from the notification link. Resolves on behalf of the addressee.
|
|
112627
|
+
*/
|
|
112628
|
+
link_token?: string
|
|
112629
|
+
}
|
|
112630
|
+
|
|
112631
|
+
export interface WorkflowWaitResolveOutput {
|
|
112632
|
+
wait: {
|
|
112633
|
+
id: string
|
|
112634
|
+
/**
|
|
112635
|
+
* The JSON Schema an `input` answer is checked against; null for an approval.
|
|
112636
|
+
*/
|
|
112637
|
+
form?: {
|
|
112638
|
+
[k: string]: unknown
|
|
112639
|
+
}
|
|
112640
|
+
/**
|
|
112641
|
+
* `approval` or `input`.
|
|
112642
|
+
*/
|
|
112643
|
+
kind: string
|
|
112644
|
+
run_id: string
|
|
112645
|
+
status: string
|
|
112646
|
+
/**
|
|
112647
|
+
* What the node asks, as the author wrote it.
|
|
112648
|
+
*/
|
|
112649
|
+
message: (string | null)
|
|
112650
|
+
/**
|
|
112651
|
+
* `node_id`, or `node_id[i]/child_id` inside a loop.
|
|
112652
|
+
*/
|
|
112653
|
+
node_id: string
|
|
112654
|
+
/**
|
|
112655
|
+
* Who was asked, as the definition wrote it. Null when the row predates the shape.
|
|
112656
|
+
*/
|
|
112657
|
+
assignee: ({
|
|
112658
|
+
id: string
|
|
112659
|
+
kind: ("member" | "role" | "agent")
|
|
112660
|
+
} | null)
|
|
112661
|
+
deadline: (string | null)
|
|
112662
|
+
created_at: string
|
|
112663
|
+
resolved_by: (string | null)
|
|
112664
|
+
workflow_id: string
|
|
112665
|
+
workflow_name: (string | null)
|
|
112666
|
+
}
|
|
112667
|
+
/**
|
|
112668
|
+
* How the resolution arrived; recorded on the run.
|
|
112669
|
+
*/
|
|
112670
|
+
channel: ("tool" | "link")
|
|
112671
|
+
/**
|
|
112672
|
+
* Who the run’s trace records as having answered.
|
|
112673
|
+
*/
|
|
112674
|
+
resolved_by: string
|
|
112675
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { 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, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput } from '../types.gen';
|
|
3
|
+
export type { 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, WorkflowRunTestInput, WorkflowRunTestOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput, WorkflowWaitGetInput, WorkflowWaitGetOutput, WorkflowWaitListAllInput, WorkflowWaitListAllOutput, WorkflowWaitListInput, WorkflowWaitListOutput, WorkflowWaitResolveInput, WorkflowWaitResolveOutput } from '../types.gen';
|
|
@@ -45,10 +45,18 @@ import type {
|
|
|
45
45
|
WorkflowRunReplayAllInput,
|
|
46
46
|
WorkflowRunReplayInput,
|
|
47
47
|
WorkflowRunStartInput,
|
|
48
|
+
WorkflowRunTestInput,
|
|
48
49
|
WorkflowVersionGetInput,
|
|
49
50
|
WorkflowVersionGetOutput,
|
|
50
51
|
WorkflowVersionListInput,
|
|
51
52
|
WorkflowVersionListOutput,
|
|
53
|
+
WorkflowWaitGetInput,
|
|
54
|
+
WorkflowWaitGetOutput,
|
|
55
|
+
WorkflowWaitListAllInput,
|
|
56
|
+
WorkflowWaitListAllOutput,
|
|
57
|
+
WorkflowWaitListInput,
|
|
58
|
+
WorkflowWaitListOutput,
|
|
59
|
+
WorkflowWaitResolveInput,
|
|
52
60
|
} from '../types.gen';
|
|
53
61
|
|
|
54
62
|
export const workflowCapabilityGetQueryOptions = (sdk: GeneratedClient, input: WorkflowCapabilityGetInput) => ({
|
|
@@ -196,6 +204,11 @@ export const workflowRunStartMutationOptions = (sdk: GeneratedClient) => ({
|
|
|
196
204
|
mutationFn: (input: WorkflowRunStartInput) => sdk['workflow']['run']['start'](input),
|
|
197
205
|
});
|
|
198
206
|
|
|
207
|
+
export const workflowRunTestMutationOptions = (sdk: GeneratedClient) => ({
|
|
208
|
+
mutationKey: ['workflow', 'run', 'test'],
|
|
209
|
+
mutationFn: (input: WorkflowRunTestInput) => sdk['workflow']['run']['test'](input),
|
|
210
|
+
});
|
|
211
|
+
|
|
199
212
|
export const workflowVersionGetQueryOptions = (sdk: GeneratedClient, input: WorkflowVersionGetInput) => ({
|
|
200
213
|
queryKey: ['workflow', 'version', 'get', input] as const,
|
|
201
214
|
queryFn: () => sdk['workflow']['version']['get'](input),
|
|
@@ -205,3 +218,23 @@ export const workflowVersionListQueryOptions = (sdk: GeneratedClient, input: Wor
|
|
|
205
218
|
queryKey: ['workflow', 'version', 'list', input] as const,
|
|
206
219
|
queryFn: () => sdk['workflow']['version']['list'](input),
|
|
207
220
|
});
|
|
221
|
+
|
|
222
|
+
export const workflowWaitGetQueryOptions = (sdk: GeneratedClient, input: WorkflowWaitGetInput) => ({
|
|
223
|
+
queryKey: ['workflow', 'wait', 'get', input] as const,
|
|
224
|
+
queryFn: () => sdk['workflow']['wait']['get'](input),
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
export const workflowWaitListQueryOptions = (sdk: GeneratedClient, input: WorkflowWaitListInput) => ({
|
|
228
|
+
queryKey: ['workflow', 'wait', 'list', input] as const,
|
|
229
|
+
queryFn: () => sdk['workflow']['wait']['list'](input),
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
export const workflowWaitListAllQueryOptions = (sdk: GeneratedClient, input: WorkflowWaitListAllInput) => ({
|
|
233
|
+
queryKey: ['workflow', 'wait-list', 'all', input] as const,
|
|
234
|
+
queryFn: () => sdk['workflow']['wait-list']['all'](input),
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
export const workflowWaitResolveMutationOptions = (sdk: GeneratedClient) => ({
|
|
238
|
+
mutationKey: ['workflow', 'wait', 'resolve'],
|
|
239
|
+
mutationFn: (input: WorkflowWaitResolveInput) => sdk['workflow']['wait']['resolve'](input),
|
|
240
|
+
});
|