@lessly/sdk-app 64.0.0 → 64.2.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 +12 -1
- package/dist/_types/gen/types.gen.d.ts +250 -13
- package/dist/_types/gen/workflow/index.d.ts +1 -1
- package/dist/_types/gen/workflow/queryOptions.gen.d.ts +21 -1
- package/dist/{chunk-PRFCIXWX.js → chunk-6MZMAF4Y.js} +83 -2
- package/dist/{chunk-PRFCIXWX.js.map → chunk-6MZMAF4Y.js.map} +1 -1
- package/dist/index.cjs +86 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- 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 +81 -0
- package/src/gen/client.gen.ts +21 -0
- package/src/gen/manifest.gen.ts +5 -0
- package/src/gen/types.gen.ts +261 -13
- package/src/gen/workflow/index.ts +1 -1
- package/src/gen/workflow/queryOptions.gen.ts +33 -0
package/src/gen/types.gen.ts
CHANGED
|
@@ -111122,6 +111122,22 @@ effective: string[]
|
|
|
111122
111122
|
*/
|
|
111123
111123
|
needs_sponsor: string[]
|
|
111124
111124
|
} | null)
|
|
111125
|
+
/**
|
|
111126
|
+
* What the dependency check found; null when nothing is unknown.
|
|
111127
|
+
*/
|
|
111128
|
+
health: ({
|
|
111129
|
+
unknown: {
|
|
111130
|
+
kind: ("trigger" | "action")
|
|
111131
|
+
name: string
|
|
111132
|
+
reason: ("missing" | "schema_changed")
|
|
111133
|
+
node_id?: string
|
|
111134
|
+
toolkit: string
|
|
111135
|
+
}[]
|
|
111136
|
+
/**
|
|
111137
|
+
* What a recovery restores.
|
|
111138
|
+
*/
|
|
111139
|
+
previous_status?: ("draft" | "enabled" | "disabled")
|
|
111140
|
+
} | null)
|
|
111125
111141
|
/**
|
|
111126
111142
|
* Validation of the draft as it stands right now.
|
|
111127
111143
|
*/
|
|
@@ -111140,10 +111156,25 @@ node_id?: string
|
|
|
111140
111156
|
expected?: string
|
|
111141
111157
|
severity: ("error" | "warning")
|
|
111142
111158
|
}[]
|
|
111159
|
+
/**
|
|
111160
|
+
* The last 20 health entries, newest first; `workflow_health_list` pages the rest.
|
|
111161
|
+
*/
|
|
111162
|
+
timeline: {
|
|
111163
|
+
at: string
|
|
111164
|
+
fix?: unknown
|
|
111165
|
+
/**
|
|
111166
|
+
* `broken`, `recovered`, `grants_pending`, `grant_revoked`, `sponsor_gone`, `grants_ok` and whatever the dispatcher and the executor record beside them.
|
|
111167
|
+
*/
|
|
111168
|
+
kind: string
|
|
111169
|
+
detail?: unknown
|
|
111170
|
+
}[]
|
|
111143
111171
|
workflow: {
|
|
111144
111172
|
id: string
|
|
111145
111173
|
name: string
|
|
111146
|
-
|
|
111174
|
+
/**
|
|
111175
|
+
* `broken` is the dependency check's, not an operator's: a capability is gone.
|
|
111176
|
+
*/
|
|
111177
|
+
status: ("draft" | "enabled" | "disabled" | "broken")
|
|
111147
111178
|
/**
|
|
111148
111179
|
* What is stopping an otherwise published workflow; null when nothing is.
|
|
111149
111180
|
*/
|
|
@@ -111189,7 +111220,10 @@ workflow_id: string
|
|
|
111189
111220
|
export interface WorkflowDefinitionDisableOutput {
|
|
111190
111221
|
id: string
|
|
111191
111222
|
name: string
|
|
111192
|
-
|
|
111223
|
+
/**
|
|
111224
|
+
* `broken` is the dependency check's, not an operator's: a capability is gone.
|
|
111225
|
+
*/
|
|
111226
|
+
status: ("draft" | "enabled" | "disabled" | "broken")
|
|
111193
111227
|
/**
|
|
111194
111228
|
* What is stopping an otherwise published workflow; null when nothing is.
|
|
111195
111229
|
*/
|
|
@@ -111258,7 +111292,10 @@ workflow_id: string
|
|
|
111258
111292
|
export interface WorkflowDefinitionEnableOutput {
|
|
111259
111293
|
id: string
|
|
111260
111294
|
name: string
|
|
111261
|
-
|
|
111295
|
+
/**
|
|
111296
|
+
* `broken` is the dependency check's, not an operator's: a capability is gone.
|
|
111297
|
+
*/
|
|
111298
|
+
status: ("draft" | "enabled" | "disabled" | "broken")
|
|
111262
111299
|
/**
|
|
111263
111300
|
* What is stopping an otherwise published workflow; null when nothing is.
|
|
111264
111301
|
*/
|
|
@@ -111339,6 +111376,22 @@ effective: string[]
|
|
|
111339
111376
|
*/
|
|
111340
111377
|
needs_sponsor: string[]
|
|
111341
111378
|
} | null)
|
|
111379
|
+
/**
|
|
111380
|
+
* What the dependency check found; null when nothing is unknown.
|
|
111381
|
+
*/
|
|
111382
|
+
health: ({
|
|
111383
|
+
unknown: {
|
|
111384
|
+
kind: ("trigger" | "action")
|
|
111385
|
+
name: string
|
|
111386
|
+
reason: ("missing" | "schema_changed")
|
|
111387
|
+
node_id?: string
|
|
111388
|
+
toolkit: string
|
|
111389
|
+
}[]
|
|
111390
|
+
/**
|
|
111391
|
+
* What a recovery restores.
|
|
111392
|
+
*/
|
|
111393
|
+
previous_status?: ("draft" | "enabled" | "disabled")
|
|
111394
|
+
} | null)
|
|
111342
111395
|
/**
|
|
111343
111396
|
* Validation of the draft as it stands right now.
|
|
111344
111397
|
*/
|
|
@@ -111357,10 +111410,25 @@ node_id?: string
|
|
|
111357
111410
|
expected?: string
|
|
111358
111411
|
severity: ("error" | "warning")
|
|
111359
111412
|
}[]
|
|
111413
|
+
/**
|
|
111414
|
+
* The last 20 health entries, newest first; `workflow_health_list` pages the rest.
|
|
111415
|
+
*/
|
|
111416
|
+
timeline: {
|
|
111417
|
+
at: string
|
|
111418
|
+
fix?: unknown
|
|
111419
|
+
/**
|
|
111420
|
+
* `broken`, `recovered`, `grants_pending`, `grant_revoked`, `sponsor_gone`, `grants_ok` and whatever the dispatcher and the executor record beside them.
|
|
111421
|
+
*/
|
|
111422
|
+
kind: string
|
|
111423
|
+
detail?: unknown
|
|
111424
|
+
}[]
|
|
111360
111425
|
workflow: {
|
|
111361
111426
|
id: string
|
|
111362
111427
|
name: string
|
|
111363
|
-
|
|
111428
|
+
/**
|
|
111429
|
+
* `broken` is the dependency check's, not an operator's: a capability is gone.
|
|
111430
|
+
*/
|
|
111431
|
+
status: ("draft" | "enabled" | "disabled" | "broken")
|
|
111364
111432
|
/**
|
|
111365
111433
|
* What is stopping an otherwise published workflow; null when nothing is.
|
|
111366
111434
|
*/
|
|
@@ -111447,6 +111515,22 @@ effective: string[]
|
|
|
111447
111515
|
*/
|
|
111448
111516
|
needs_sponsor: string[]
|
|
111449
111517
|
} | null)
|
|
111518
|
+
/**
|
|
111519
|
+
* What the dependency check found; null when nothing is unknown.
|
|
111520
|
+
*/
|
|
111521
|
+
health: ({
|
|
111522
|
+
unknown: {
|
|
111523
|
+
kind: ("trigger" | "action")
|
|
111524
|
+
name: string
|
|
111525
|
+
reason: ("missing" | "schema_changed")
|
|
111526
|
+
node_id?: string
|
|
111527
|
+
toolkit: string
|
|
111528
|
+
}[]
|
|
111529
|
+
/**
|
|
111530
|
+
* What a recovery restores.
|
|
111531
|
+
*/
|
|
111532
|
+
previous_status?: ("draft" | "enabled" | "disabled")
|
|
111533
|
+
} | null)
|
|
111450
111534
|
/**
|
|
111451
111535
|
* Validation of the draft as it stands right now.
|
|
111452
111536
|
*/
|
|
@@ -111465,10 +111549,25 @@ node_id?: string
|
|
|
111465
111549
|
expected?: string
|
|
111466
111550
|
severity: ("error" | "warning")
|
|
111467
111551
|
}[]
|
|
111552
|
+
/**
|
|
111553
|
+
* The last 20 health entries, newest first; `workflow_health_list` pages the rest.
|
|
111554
|
+
*/
|
|
111555
|
+
timeline: {
|
|
111556
|
+
at: string
|
|
111557
|
+
fix?: unknown
|
|
111558
|
+
/**
|
|
111559
|
+
* `broken`, `recovered`, `grants_pending`, `grant_revoked`, `sponsor_gone`, `grants_ok` and whatever the dispatcher and the executor record beside them.
|
|
111560
|
+
*/
|
|
111561
|
+
kind: string
|
|
111562
|
+
detail?: unknown
|
|
111563
|
+
}[]
|
|
111468
111564
|
workflow: {
|
|
111469
111565
|
id: string
|
|
111470
111566
|
name: string
|
|
111471
|
-
|
|
111567
|
+
/**
|
|
111568
|
+
* `broken` is the dependency check's, not an operator's: a capability is gone.
|
|
111569
|
+
*/
|
|
111570
|
+
status: ("draft" | "enabled" | "disabled" | "broken")
|
|
111472
111571
|
/**
|
|
111473
111572
|
* What is stopping an otherwise published workflow; null when nothing is.
|
|
111474
111573
|
*/
|
|
@@ -111516,14 +111615,17 @@ limit?: number
|
|
|
111516
111615
|
* Opaque cursor from a previous page.
|
|
111517
111616
|
*/
|
|
111518
111617
|
cursor?: string
|
|
111519
|
-
status?: ("draft" | "enabled" | "disabled")
|
|
111618
|
+
status?: ("draft" | "enabled" | "disabled" | "broken")
|
|
111520
111619
|
}
|
|
111521
111620
|
|
|
111522
111621
|
export interface WorkflowDefinitionListOutput {
|
|
111523
111622
|
items: {
|
|
111524
111623
|
id: string
|
|
111525
111624
|
name: string
|
|
111526
|
-
|
|
111625
|
+
/**
|
|
111626
|
+
* `broken` is the dependency check's, not an operator's: a capability is gone.
|
|
111627
|
+
*/
|
|
111628
|
+
status: ("draft" | "enabled" | "disabled" | "broken")
|
|
111527
111629
|
/**
|
|
111528
111630
|
* What is stopping an otherwise published workflow; null when nothing is.
|
|
111529
111631
|
*/
|
|
@@ -111653,6 +111755,22 @@ effective: string[]
|
|
|
111653
111755
|
*/
|
|
111654
111756
|
needs_sponsor: string[]
|
|
111655
111757
|
} | null)
|
|
111758
|
+
/**
|
|
111759
|
+
* What the dependency check found; null when nothing is unknown.
|
|
111760
|
+
*/
|
|
111761
|
+
health: ({
|
|
111762
|
+
unknown: {
|
|
111763
|
+
kind: ("trigger" | "action")
|
|
111764
|
+
name: string
|
|
111765
|
+
reason: ("missing" | "schema_changed")
|
|
111766
|
+
node_id?: string
|
|
111767
|
+
toolkit: string
|
|
111768
|
+
}[]
|
|
111769
|
+
/**
|
|
111770
|
+
* What a recovery restores.
|
|
111771
|
+
*/
|
|
111772
|
+
previous_status?: ("draft" | "enabled" | "disabled")
|
|
111773
|
+
} | null)
|
|
111656
111774
|
/**
|
|
111657
111775
|
* Validation of the draft as it stands right now.
|
|
111658
111776
|
*/
|
|
@@ -111671,10 +111789,25 @@ node_id?: string
|
|
|
111671
111789
|
expected?: string
|
|
111672
111790
|
severity: ("error" | "warning")
|
|
111673
111791
|
}[]
|
|
111792
|
+
/**
|
|
111793
|
+
* The last 20 health entries, newest first; `workflow_health_list` pages the rest.
|
|
111794
|
+
*/
|
|
111795
|
+
timeline: {
|
|
111796
|
+
at: string
|
|
111797
|
+
fix?: unknown
|
|
111798
|
+
/**
|
|
111799
|
+
* `broken`, `recovered`, `grants_pending`, `grant_revoked`, `sponsor_gone`, `grants_ok` and whatever the dispatcher and the executor record beside them.
|
|
111800
|
+
*/
|
|
111801
|
+
kind: string
|
|
111802
|
+
detail?: unknown
|
|
111803
|
+
}[]
|
|
111674
111804
|
workflow: {
|
|
111675
111805
|
id: string
|
|
111676
111806
|
name: string
|
|
111677
|
-
|
|
111807
|
+
/**
|
|
111808
|
+
* `broken` is the dependency check's, not an operator's: a capability is gone.
|
|
111809
|
+
*/
|
|
111810
|
+
status: ("draft" | "enabled" | "disabled" | "broken")
|
|
111678
111811
|
/**
|
|
111679
111812
|
* What is stopping an otherwise published workflow; null when nothing is.
|
|
111680
111813
|
*/
|
|
@@ -111745,6 +111878,31 @@ severity: ("error" | "warning")
|
|
|
111745
111878
|
}[]
|
|
111746
111879
|
}
|
|
111747
111880
|
|
|
111881
|
+
export interface WorkflowDependencyListInput {
|
|
111882
|
+
/**
|
|
111883
|
+
* The toolkit id a dependency names, e.g. `mail`.
|
|
111884
|
+
*/
|
|
111885
|
+
toolkit: string
|
|
111886
|
+
}
|
|
111887
|
+
|
|
111888
|
+
export interface WorkflowDependencyListOutput {
|
|
111889
|
+
toolkit: string
|
|
111890
|
+
workflows: {
|
|
111891
|
+
name: string
|
|
111892
|
+
/**
|
|
111893
|
+
* The node ids calling one of the toolkit’s tools.
|
|
111894
|
+
*/
|
|
111895
|
+
nodes: string[]
|
|
111896
|
+
status: string
|
|
111897
|
+
/**
|
|
111898
|
+
* The published versions that depend on the toolkit.
|
|
111899
|
+
*/
|
|
111900
|
+
versions: number[]
|
|
111901
|
+
product_id: string
|
|
111902
|
+
workflow_id: string
|
|
111903
|
+
}[]
|
|
111904
|
+
}
|
|
111905
|
+
|
|
111748
111906
|
export interface WorkflowGrantListInput {
|
|
111749
111907
|
workflow_id: string
|
|
111750
111908
|
}
|
|
@@ -111781,6 +111939,35 @@ approve_with: string
|
|
|
111781
111939
|
needs_sponsor: string[]
|
|
111782
111940
|
}
|
|
111783
111941
|
|
|
111942
|
+
export interface WorkflowHealthListInput {
|
|
111943
|
+
/**
|
|
111944
|
+
* Page size, 1-200; defaults to 50.
|
|
111945
|
+
*/
|
|
111946
|
+
limit?: number
|
|
111947
|
+
/**
|
|
111948
|
+
* Opaque cursor from a previous page.
|
|
111949
|
+
*/
|
|
111950
|
+
cursor?: string
|
|
111951
|
+
workflow_id: string
|
|
111952
|
+
}
|
|
111953
|
+
|
|
111954
|
+
export interface WorkflowHealthListOutput {
|
|
111955
|
+
/**
|
|
111956
|
+
* Newest first.
|
|
111957
|
+
*/
|
|
111958
|
+
events: {
|
|
111959
|
+
at: string
|
|
111960
|
+
fix?: unknown
|
|
111961
|
+
/**
|
|
111962
|
+
* `broken`, `recovered`, `grants_pending`, `grant_revoked`, `sponsor_gone`, `grants_ok` and whatever the dispatcher and the executor record beside them.
|
|
111963
|
+
*/
|
|
111964
|
+
kind: string
|
|
111965
|
+
detail?: unknown
|
|
111966
|
+
}[]
|
|
111967
|
+
next_cursor: (string | null)
|
|
111968
|
+
workflow_id: string
|
|
111969
|
+
}
|
|
111970
|
+
|
|
111784
111971
|
export interface WorkflowHealthPingInput {
|
|
111785
111972
|
|
|
111786
111973
|
}
|
|
@@ -111791,13 +111978,54 @@ toolkit: string
|
|
|
111791
111978
|
productId: string
|
|
111792
111979
|
}
|
|
111793
111980
|
|
|
111981
|
+
export interface WorkflowKillswitchGetInput {
|
|
111982
|
+
|
|
111983
|
+
}
|
|
111984
|
+
|
|
111985
|
+
export interface WorkflowKillswitchGetOutput {
|
|
111986
|
+
at: (string | null)
|
|
111987
|
+
/**
|
|
111988
|
+
* The identity that last flipped the switch.
|
|
111989
|
+
*/
|
|
111990
|
+
by: (string | null)
|
|
111991
|
+
on: boolean
|
|
111992
|
+
/**
|
|
111993
|
+
* True when the platform holds it on for every Product (WORKFLOW_KILLSWITCH=1).
|
|
111994
|
+
*/
|
|
111995
|
+
forced: boolean
|
|
111996
|
+
}
|
|
111997
|
+
|
|
111998
|
+
export interface WorkflowKillswitchSetInput {
|
|
111999
|
+
/**
|
|
112000
|
+
* True stops this Product's workflows; false lets them run again.
|
|
112001
|
+
*/
|
|
112002
|
+
on: boolean
|
|
112003
|
+
}
|
|
112004
|
+
|
|
112005
|
+
export interface WorkflowKillswitchSetOutput {
|
|
112006
|
+
at: (string | null)
|
|
112007
|
+
/**
|
|
112008
|
+
* The identity that last flipped the switch.
|
|
112009
|
+
*/
|
|
112010
|
+
by: (string | null)
|
|
112011
|
+
on: boolean
|
|
112012
|
+
/**
|
|
112013
|
+
* True when the platform holds it on for every Product (WORKFLOW_KILLSWITCH=1).
|
|
112014
|
+
*/
|
|
112015
|
+
forced: boolean
|
|
112016
|
+
/**
|
|
112017
|
+
* Runs this call moved to `held`: everything that was running, waiting or queued.
|
|
112018
|
+
*/
|
|
112019
|
+
stopped_runs: number
|
|
112020
|
+
}
|
|
112021
|
+
|
|
111794
112022
|
export interface WorkflowRunCancelInput {
|
|
111795
112023
|
run_id: string
|
|
111796
112024
|
}
|
|
111797
112025
|
|
|
111798
112026
|
export interface WorkflowRunCancelOutput {
|
|
111799
112027
|
id: string
|
|
111800
|
-
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
|
|
112028
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
111801
112029
|
version: number
|
|
111802
112030
|
ended_at: (string | null)
|
|
111803
112031
|
created_at: string
|
|
@@ -111820,7 +112048,7 @@ run_id: string
|
|
|
111820
112048
|
export interface WorkflowRunGetOutput {
|
|
111821
112049
|
run: {
|
|
111822
112050
|
id: string
|
|
111823
|
-
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
|
|
112051
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
111824
112052
|
version: number
|
|
111825
112053
|
ended_at: (string | null)
|
|
111826
112054
|
created_at: string
|
|
@@ -111873,14 +112101,14 @@ limit?: number
|
|
|
111873
112101
|
* Opaque cursor from a previous page.
|
|
111874
112102
|
*/
|
|
111875
112103
|
cursor?: string
|
|
111876
|
-
status?: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
|
|
112104
|
+
status?: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
111877
112105
|
workflow_id?: string
|
|
111878
112106
|
}
|
|
111879
112107
|
|
|
111880
112108
|
export interface WorkflowRunListOutput {
|
|
111881
112109
|
items: {
|
|
111882
112110
|
id: string
|
|
111883
|
-
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
|
|
112111
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
111884
112112
|
version: number
|
|
111885
112113
|
ended_at: (string | null)
|
|
111886
112114
|
created_at: string
|
|
@@ -111908,7 +112136,7 @@ reexecute?: boolean
|
|
|
111908
112136
|
|
|
111909
112137
|
export interface WorkflowRunReplayOutput {
|
|
111910
112138
|
id: string
|
|
111911
|
-
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled")
|
|
112139
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling")
|
|
111912
112140
|
version: number
|
|
111913
112141
|
ended_at: (string | null)
|
|
111914
112142
|
created_at: string
|
|
@@ -111924,6 +112152,26 @@ trigger_event_id: string
|
|
|
111924
112152
|
replay_generation: number
|
|
111925
112153
|
}
|
|
111926
112154
|
|
|
112155
|
+
export interface WorkflowRunReplayAllInput {
|
|
112156
|
+
/**
|
|
112157
|
+
* How many runs to restart, oldest first; 1-200, defaults to 200.
|
|
112158
|
+
*/
|
|
112159
|
+
limit?: number
|
|
112160
|
+
/**
|
|
112161
|
+
* Which stopped runs to restart. `held` is what a kill-switch or a missing grant left behind.
|
|
112162
|
+
*/
|
|
112163
|
+
status: ("held" | "failed")
|
|
112164
|
+
workflow_id: string
|
|
112165
|
+
}
|
|
112166
|
+
|
|
112167
|
+
export interface WorkflowRunReplayAllOutput {
|
|
112168
|
+
refused: {
|
|
112169
|
+
reason: string
|
|
112170
|
+
run_id: string
|
|
112171
|
+
}[]
|
|
112172
|
+
replayed: string[]
|
|
112173
|
+
}
|
|
112174
|
+
|
|
111927
112175
|
export interface WorkflowRunStartInput {
|
|
111928
112176
|
input?: {
|
|
111929
112177
|
[k: string]: unknown
|
|
@@ -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, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, 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, 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';
|
|
@@ -25,15 +25,23 @@ import type {
|
|
|
25
25
|
WorkflowDefinitionUpdateInput,
|
|
26
26
|
WorkflowDefinitionValidateInput,
|
|
27
27
|
WorkflowDefinitionValidateOutput,
|
|
28
|
+
WorkflowDependencyListInput,
|
|
29
|
+
WorkflowDependencyListOutput,
|
|
28
30
|
WorkflowGrantListInput,
|
|
29
31
|
WorkflowGrantListOutput,
|
|
32
|
+
WorkflowHealthListInput,
|
|
33
|
+
WorkflowHealthListOutput,
|
|
30
34
|
WorkflowHealthPingInput,
|
|
31
35
|
WorkflowHealthPingOutput,
|
|
36
|
+
WorkflowKillswitchGetInput,
|
|
37
|
+
WorkflowKillswitchGetOutput,
|
|
38
|
+
WorkflowKillswitchSetInput,
|
|
32
39
|
WorkflowRunCancelInput,
|
|
33
40
|
WorkflowRunGetInput,
|
|
34
41
|
WorkflowRunGetOutput,
|
|
35
42
|
WorkflowRunListInput,
|
|
36
43
|
WorkflowRunListOutput,
|
|
44
|
+
WorkflowRunReplayAllInput,
|
|
37
45
|
WorkflowRunReplayInput,
|
|
38
46
|
WorkflowRunStartInput,
|
|
39
47
|
WorkflowVersionGetInput,
|
|
@@ -122,16 +130,36 @@ export const workflowDefinitionValidateQueryOptions = (sdk: GeneratedClient, inp
|
|
|
122
130
|
queryFn: () => sdk['workflow']['definition']['validate'](input),
|
|
123
131
|
});
|
|
124
132
|
|
|
133
|
+
export const workflowDependencyListQueryOptions = (sdk: GeneratedClient, input: WorkflowDependencyListInput) => ({
|
|
134
|
+
queryKey: ['workflow', 'dependency', 'list', input] as const,
|
|
135
|
+
queryFn: () => sdk['workflow']['dependency']['list'](input),
|
|
136
|
+
});
|
|
137
|
+
|
|
125
138
|
export const workflowGrantListQueryOptions = (sdk: GeneratedClient, input: WorkflowGrantListInput) => ({
|
|
126
139
|
queryKey: ['workflow', 'grant', 'list', input] as const,
|
|
127
140
|
queryFn: () => sdk['workflow']['grant']['list'](input),
|
|
128
141
|
});
|
|
129
142
|
|
|
143
|
+
export const workflowHealthListQueryOptions = (sdk: GeneratedClient, input: WorkflowHealthListInput) => ({
|
|
144
|
+
queryKey: ['workflow', 'health', 'list', input] as const,
|
|
145
|
+
queryFn: () => sdk['workflow']['health']['list'](input),
|
|
146
|
+
});
|
|
147
|
+
|
|
130
148
|
export const workflowHealthPingQueryOptions = (sdk: GeneratedClient, input: WorkflowHealthPingInput) => ({
|
|
131
149
|
queryKey: ['workflow', 'health', 'ping', input] as const,
|
|
132
150
|
queryFn: () => sdk['workflow']['health']['ping'](input),
|
|
133
151
|
});
|
|
134
152
|
|
|
153
|
+
export const workflowKillswitchGetQueryOptions = (sdk: GeneratedClient, input: WorkflowKillswitchGetInput) => ({
|
|
154
|
+
queryKey: ['workflow', 'killswitch', 'get', input] as const,
|
|
155
|
+
queryFn: () => sdk['workflow']['killswitch']['get'](input),
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
export const workflowKillswitchSetMutationOptions = (sdk: GeneratedClient) => ({
|
|
159
|
+
mutationKey: ['workflow', 'killswitch', 'set'],
|
|
160
|
+
mutationFn: (input: WorkflowKillswitchSetInput) => sdk['workflow']['killswitch']['set'](input),
|
|
161
|
+
});
|
|
162
|
+
|
|
135
163
|
export const workflowRunCancelMutationOptions = (sdk: GeneratedClient) => ({
|
|
136
164
|
mutationKey: ['workflow', 'run', 'cancel'],
|
|
137
165
|
mutationFn: (input: WorkflowRunCancelInput) => sdk['workflow']['run']['cancel'](input),
|
|
@@ -152,6 +180,11 @@ export const workflowRunReplayMutationOptions = (sdk: GeneratedClient) => ({
|
|
|
152
180
|
mutationFn: (input: WorkflowRunReplayInput) => sdk['workflow']['run']['replay'](input),
|
|
153
181
|
});
|
|
154
182
|
|
|
183
|
+
export const workflowRunReplayAllMutationOptions = (sdk: GeneratedClient) => ({
|
|
184
|
+
mutationKey: ['workflow', 'run-replay', 'all'],
|
|
185
|
+
mutationFn: (input: WorkflowRunReplayAllInput) => sdk['workflow']['run-replay']['all'](input),
|
|
186
|
+
});
|
|
187
|
+
|
|
155
188
|
export const workflowRunStartMutationOptions = (sdk: GeneratedClient) => ({
|
|
156
189
|
mutationKey: ['workflow', 'run', 'start'],
|
|
157
190
|
mutationFn: (input: WorkflowRunStartInput) => sdk['workflow']['run']['start'](input),
|