@lessly/sdk-app 63.8.1 → 64.1.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 +11 -1
- package/dist/_types/gen/types.gen.d.ts +418 -8
- package/dist/_types/gen/workflow/index.d.ts +1 -1
- package/dist/_types/gen/workflow/queryOptions.gen.d.ts +17 -1
- package/dist/{chunk-NC3E6KPQ.js → chunk-E5DOALAH.js} +62 -2
- package/dist/{chunk-NC3E6KPQ.js.map → chunk-E5DOALAH.js.map} +1 -1
- package/dist/index.cjs +64 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -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 +20 -0
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.js +17 -1
- package/dist/workflow/index.js.map +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +60 -0
- package/src/gen/client.gen.ts +18 -0
- package/src/gen/manifest.gen.ts +4 -0
- package/src/gen/types.gen.ts +427 -8
- package/src/gen/workflow/index.ts +1 -1
- package/src/gen/workflow/queryOptions.gen.ts +26 -0
|
@@ -117405,7 +117405,6 @@ export interface WorkflowCapabilityGetOutput {
|
|
|
117405
117405
|
output_schema?: ({
|
|
117406
117406
|
[k: string]: unknown;
|
|
117407
117407
|
} | null);
|
|
117408
|
-
executable_in_phase?: boolean;
|
|
117409
117408
|
}
|
|
117410
117409
|
export interface WorkflowCapabilityListInput {
|
|
117411
117410
|
/**
|
|
@@ -117458,7 +117457,6 @@ export interface WorkflowCapabilityListOutput {
|
|
|
117458
117457
|
output_schema?: ({
|
|
117459
117458
|
[k: string]: unknown;
|
|
117460
117459
|
} | null);
|
|
117461
|
-
executable_in_phase?: boolean;
|
|
117462
117460
|
}[];
|
|
117463
117461
|
next_cursor: (string | null);
|
|
117464
117462
|
/**
|
|
@@ -117532,6 +117530,35 @@ export interface WorkflowDefinitionCreateOutput {
|
|
|
117532
117530
|
draft: ({
|
|
117533
117531
|
[k: string]: unknown;
|
|
117534
117532
|
} | null);
|
|
117533
|
+
/**
|
|
117534
|
+
* The workflow principal's grants; null when Governance could not be reached.
|
|
117535
|
+
*/
|
|
117536
|
+
grants: ({
|
|
117537
|
+
grants: {
|
|
117538
|
+
/**
|
|
117539
|
+
* "approved" is the only status a call gets through on.
|
|
117540
|
+
*/
|
|
117541
|
+
status: ("pending" | "approved" | "revoked" | "needs_sponsor");
|
|
117542
|
+
tool_key: string;
|
|
117543
|
+
approved_at: (string | null);
|
|
117544
|
+
/**
|
|
117545
|
+
* The member who vouches for the grant.
|
|
117546
|
+
*/
|
|
117547
|
+
sponsor_member_id: (string | null);
|
|
117548
|
+
}[];
|
|
117549
|
+
/**
|
|
117550
|
+
* Tool keys asked for and waiting on a human.
|
|
117551
|
+
*/
|
|
117552
|
+
pending: string[];
|
|
117553
|
+
/**
|
|
117554
|
+
* Tool keys the workflow may call right now.
|
|
117555
|
+
*/
|
|
117556
|
+
effective: string[];
|
|
117557
|
+
/**
|
|
117558
|
+
* Tool keys that were approved and lost their sponsor.
|
|
117559
|
+
*/
|
|
117560
|
+
needs_sponsor: string[];
|
|
117561
|
+
} | null);
|
|
117535
117562
|
/**
|
|
117536
117563
|
* Validation of the draft as it stands right now.
|
|
117537
117564
|
*/
|
|
@@ -117554,11 +117581,42 @@ export interface WorkflowDefinitionCreateOutput {
|
|
|
117554
117581
|
id: string;
|
|
117555
117582
|
name: string;
|
|
117556
117583
|
status: ("draft" | "enabled" | "disabled");
|
|
117584
|
+
/**
|
|
117585
|
+
* What is stopping an otherwise published workflow; null when nothing is.
|
|
117586
|
+
*/
|
|
117587
|
+
attention: ({
|
|
117588
|
+
code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning");
|
|
117589
|
+
detail: {
|
|
117590
|
+
/**
|
|
117591
|
+
* Set instead when Governance could not be asked.
|
|
117592
|
+
*/
|
|
117593
|
+
error?: string;
|
|
117594
|
+
/**
|
|
117595
|
+
* The tools still waiting on a sponsor.
|
|
117596
|
+
*/
|
|
117597
|
+
tools?: string[];
|
|
117598
|
+
};
|
|
117599
|
+
} | null);
|
|
117557
117600
|
created_at: string;
|
|
117558
117601
|
updated_at: string;
|
|
117559
117602
|
description: (string | null);
|
|
117560
117603
|
live_version: (number | null);
|
|
117561
117604
|
};
|
|
117605
|
+
/**
|
|
117606
|
+
* What the live version was validated against, with the hashes it saw.
|
|
117607
|
+
*/
|
|
117608
|
+
dependencies: {
|
|
117609
|
+
kind: ("trigger" | "action");
|
|
117610
|
+
/**
|
|
117611
|
+
* The event name of the trigger, or the tool name of the action.
|
|
117612
|
+
*/
|
|
117613
|
+
name: string;
|
|
117614
|
+
toolkit: string;
|
|
117615
|
+
/**
|
|
117616
|
+
* The hash the capability had at publish; a drift means broken.
|
|
117617
|
+
*/
|
|
117618
|
+
schema_hash: string;
|
|
117619
|
+
}[];
|
|
117562
117620
|
}
|
|
117563
117621
|
export interface WorkflowDefinitionDisableInput {
|
|
117564
117622
|
workflow_id: string;
|
|
@@ -117567,6 +117625,22 @@ export interface WorkflowDefinitionDisableOutput {
|
|
|
117567
117625
|
id: string;
|
|
117568
117626
|
name: string;
|
|
117569
117627
|
status: ("draft" | "enabled" | "disabled");
|
|
117628
|
+
/**
|
|
117629
|
+
* What is stopping an otherwise published workflow; null when nothing is.
|
|
117630
|
+
*/
|
|
117631
|
+
attention: ({
|
|
117632
|
+
code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning");
|
|
117633
|
+
detail: {
|
|
117634
|
+
/**
|
|
117635
|
+
* Set instead when Governance could not be asked.
|
|
117636
|
+
*/
|
|
117637
|
+
error?: string;
|
|
117638
|
+
/**
|
|
117639
|
+
* The tools still waiting on a sponsor.
|
|
117640
|
+
*/
|
|
117641
|
+
tools?: string[];
|
|
117642
|
+
};
|
|
117643
|
+
} | null);
|
|
117570
117644
|
created_at: string;
|
|
117571
117645
|
updated_at: string;
|
|
117572
117646
|
description: (string | null);
|
|
@@ -117616,6 +117690,22 @@ export interface WorkflowDefinitionEnableOutput {
|
|
|
117616
117690
|
id: string;
|
|
117617
117691
|
name: string;
|
|
117618
117692
|
status: ("draft" | "enabled" | "disabled");
|
|
117693
|
+
/**
|
|
117694
|
+
* What is stopping an otherwise published workflow; null when nothing is.
|
|
117695
|
+
*/
|
|
117696
|
+
attention: ({
|
|
117697
|
+
code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning");
|
|
117698
|
+
detail: {
|
|
117699
|
+
/**
|
|
117700
|
+
* Set instead when Governance could not be asked.
|
|
117701
|
+
*/
|
|
117702
|
+
error?: string;
|
|
117703
|
+
/**
|
|
117704
|
+
* The tools still waiting on a sponsor.
|
|
117705
|
+
*/
|
|
117706
|
+
tools?: string[];
|
|
117707
|
+
};
|
|
117708
|
+
} | null);
|
|
117619
117709
|
created_at: string;
|
|
117620
117710
|
updated_at: string;
|
|
117621
117711
|
description: (string | null);
|
|
@@ -117647,6 +117737,35 @@ export interface WorkflowDefinitionGetOutput {
|
|
|
117647
117737
|
draft: ({
|
|
117648
117738
|
[k: string]: unknown;
|
|
117649
117739
|
} | null);
|
|
117740
|
+
/**
|
|
117741
|
+
* The workflow principal's grants; null when Governance could not be reached.
|
|
117742
|
+
*/
|
|
117743
|
+
grants: ({
|
|
117744
|
+
grants: {
|
|
117745
|
+
/**
|
|
117746
|
+
* "approved" is the only status a call gets through on.
|
|
117747
|
+
*/
|
|
117748
|
+
status: ("pending" | "approved" | "revoked" | "needs_sponsor");
|
|
117749
|
+
tool_key: string;
|
|
117750
|
+
approved_at: (string | null);
|
|
117751
|
+
/**
|
|
117752
|
+
* The member who vouches for the grant.
|
|
117753
|
+
*/
|
|
117754
|
+
sponsor_member_id: (string | null);
|
|
117755
|
+
}[];
|
|
117756
|
+
/**
|
|
117757
|
+
* Tool keys asked for and waiting on a human.
|
|
117758
|
+
*/
|
|
117759
|
+
pending: string[];
|
|
117760
|
+
/**
|
|
117761
|
+
* Tool keys the workflow may call right now.
|
|
117762
|
+
*/
|
|
117763
|
+
effective: string[];
|
|
117764
|
+
/**
|
|
117765
|
+
* Tool keys that were approved and lost their sponsor.
|
|
117766
|
+
*/
|
|
117767
|
+
needs_sponsor: string[];
|
|
117768
|
+
} | null);
|
|
117650
117769
|
/**
|
|
117651
117770
|
* Validation of the draft as it stands right now.
|
|
117652
117771
|
*/
|
|
@@ -117669,11 +117788,42 @@ export interface WorkflowDefinitionGetOutput {
|
|
|
117669
117788
|
id: string;
|
|
117670
117789
|
name: string;
|
|
117671
117790
|
status: ("draft" | "enabled" | "disabled");
|
|
117791
|
+
/**
|
|
117792
|
+
* What is stopping an otherwise published workflow; null when nothing is.
|
|
117793
|
+
*/
|
|
117794
|
+
attention: ({
|
|
117795
|
+
code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning");
|
|
117796
|
+
detail: {
|
|
117797
|
+
/**
|
|
117798
|
+
* Set instead when Governance could not be asked.
|
|
117799
|
+
*/
|
|
117800
|
+
error?: string;
|
|
117801
|
+
/**
|
|
117802
|
+
* The tools still waiting on a sponsor.
|
|
117803
|
+
*/
|
|
117804
|
+
tools?: string[];
|
|
117805
|
+
};
|
|
117806
|
+
} | null);
|
|
117672
117807
|
created_at: string;
|
|
117673
117808
|
updated_at: string;
|
|
117674
117809
|
description: (string | null);
|
|
117675
117810
|
live_version: (number | null);
|
|
117676
117811
|
};
|
|
117812
|
+
/**
|
|
117813
|
+
* What the live version was validated against, with the hashes it saw.
|
|
117814
|
+
*/
|
|
117815
|
+
dependencies: {
|
|
117816
|
+
kind: ("trigger" | "action");
|
|
117817
|
+
/**
|
|
117818
|
+
* The event name of the trigger, or the tool name of the action.
|
|
117819
|
+
*/
|
|
117820
|
+
name: string;
|
|
117821
|
+
toolkit: string;
|
|
117822
|
+
/**
|
|
117823
|
+
* The hash the capability had at publish; a drift means broken.
|
|
117824
|
+
*/
|
|
117825
|
+
schema_hash: string;
|
|
117826
|
+
}[];
|
|
117677
117827
|
}
|
|
117678
117828
|
export interface WorkflowDefinitionImportInput {
|
|
117679
117829
|
name: string;
|
|
@@ -117693,6 +117843,35 @@ export interface WorkflowDefinitionImportOutput {
|
|
|
117693
117843
|
draft: ({
|
|
117694
117844
|
[k: string]: unknown;
|
|
117695
117845
|
} | null);
|
|
117846
|
+
/**
|
|
117847
|
+
* The workflow principal's grants; null when Governance could not be reached.
|
|
117848
|
+
*/
|
|
117849
|
+
grants: ({
|
|
117850
|
+
grants: {
|
|
117851
|
+
/**
|
|
117852
|
+
* "approved" is the only status a call gets through on.
|
|
117853
|
+
*/
|
|
117854
|
+
status: ("pending" | "approved" | "revoked" | "needs_sponsor");
|
|
117855
|
+
tool_key: string;
|
|
117856
|
+
approved_at: (string | null);
|
|
117857
|
+
/**
|
|
117858
|
+
* The member who vouches for the grant.
|
|
117859
|
+
*/
|
|
117860
|
+
sponsor_member_id: (string | null);
|
|
117861
|
+
}[];
|
|
117862
|
+
/**
|
|
117863
|
+
* Tool keys asked for and waiting on a human.
|
|
117864
|
+
*/
|
|
117865
|
+
pending: string[];
|
|
117866
|
+
/**
|
|
117867
|
+
* Tool keys the workflow may call right now.
|
|
117868
|
+
*/
|
|
117869
|
+
effective: string[];
|
|
117870
|
+
/**
|
|
117871
|
+
* Tool keys that were approved and lost their sponsor.
|
|
117872
|
+
*/
|
|
117873
|
+
needs_sponsor: string[];
|
|
117874
|
+
} | null);
|
|
117696
117875
|
/**
|
|
117697
117876
|
* Validation of the draft as it stands right now.
|
|
117698
117877
|
*/
|
|
@@ -117715,11 +117894,42 @@ export interface WorkflowDefinitionImportOutput {
|
|
|
117715
117894
|
id: string;
|
|
117716
117895
|
name: string;
|
|
117717
117896
|
status: ("draft" | "enabled" | "disabled");
|
|
117897
|
+
/**
|
|
117898
|
+
* What is stopping an otherwise published workflow; null when nothing is.
|
|
117899
|
+
*/
|
|
117900
|
+
attention: ({
|
|
117901
|
+
code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning");
|
|
117902
|
+
detail: {
|
|
117903
|
+
/**
|
|
117904
|
+
* Set instead when Governance could not be asked.
|
|
117905
|
+
*/
|
|
117906
|
+
error?: string;
|
|
117907
|
+
/**
|
|
117908
|
+
* The tools still waiting on a sponsor.
|
|
117909
|
+
*/
|
|
117910
|
+
tools?: string[];
|
|
117911
|
+
};
|
|
117912
|
+
} | null);
|
|
117718
117913
|
created_at: string;
|
|
117719
117914
|
updated_at: string;
|
|
117720
117915
|
description: (string | null);
|
|
117721
117916
|
live_version: (number | null);
|
|
117722
117917
|
};
|
|
117918
|
+
/**
|
|
117919
|
+
* What the live version was validated against, with the hashes it saw.
|
|
117920
|
+
*/
|
|
117921
|
+
dependencies: {
|
|
117922
|
+
kind: ("trigger" | "action");
|
|
117923
|
+
/**
|
|
117924
|
+
* The event name of the trigger, or the tool name of the action.
|
|
117925
|
+
*/
|
|
117926
|
+
name: string;
|
|
117927
|
+
toolkit: string;
|
|
117928
|
+
/**
|
|
117929
|
+
* The hash the capability had at publish; a drift means broken.
|
|
117930
|
+
*/
|
|
117931
|
+
schema_hash: string;
|
|
117932
|
+
}[];
|
|
117723
117933
|
}
|
|
117724
117934
|
export interface WorkflowDefinitionListInput {
|
|
117725
117935
|
/**
|
|
@@ -117737,6 +117947,22 @@ export interface WorkflowDefinitionListOutput {
|
|
|
117737
117947
|
id: string;
|
|
117738
117948
|
name: string;
|
|
117739
117949
|
status: ("draft" | "enabled" | "disabled");
|
|
117950
|
+
/**
|
|
117951
|
+
* What is stopping an otherwise published workflow; null when nothing is.
|
|
117952
|
+
*/
|
|
117953
|
+
attention: ({
|
|
117954
|
+
code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning");
|
|
117955
|
+
detail: {
|
|
117956
|
+
/**
|
|
117957
|
+
* Set instead when Governance could not be asked.
|
|
117958
|
+
*/
|
|
117959
|
+
error?: string;
|
|
117960
|
+
/**
|
|
117961
|
+
* The tools still waiting on a sponsor.
|
|
117962
|
+
*/
|
|
117963
|
+
tools?: string[];
|
|
117964
|
+
};
|
|
117965
|
+
} | null);
|
|
117740
117966
|
created_at: string;
|
|
117741
117967
|
updated_at: string;
|
|
117742
117968
|
description: (string | null);
|
|
@@ -117752,12 +117978,48 @@ export interface WorkflowDefinitionPublishInput {
|
|
|
117752
117978
|
workflow_id: string;
|
|
117753
117979
|
}
|
|
117754
117980
|
export interface WorkflowDefinitionPublishOutput {
|
|
117981
|
+
/**
|
|
117982
|
+
* What Governance holds for this workflow after the request; null when the request did not reach it. A publish never approves anything — a human sponsors it in Workspace.
|
|
117983
|
+
*/
|
|
117984
|
+
grants: ({
|
|
117985
|
+
grants: {
|
|
117986
|
+
/**
|
|
117987
|
+
* "approved" is the only status a call gets through on.
|
|
117988
|
+
*/
|
|
117989
|
+
status: ("pending" | "approved" | "revoked" | "needs_sponsor");
|
|
117990
|
+
tool_key: string;
|
|
117991
|
+
approved_at: (string | null);
|
|
117992
|
+
/**
|
|
117993
|
+
* The member who vouches for the grant.
|
|
117994
|
+
*/
|
|
117995
|
+
sponsor_member_id: (string | null);
|
|
117996
|
+
}[];
|
|
117997
|
+
/**
|
|
117998
|
+
* Tool keys asked for and waiting on a human.
|
|
117999
|
+
*/
|
|
118000
|
+
pending: string[];
|
|
118001
|
+
/**
|
|
118002
|
+
* Tool keys the workflow may call right now.
|
|
118003
|
+
*/
|
|
118004
|
+
effective: string[];
|
|
118005
|
+
/**
|
|
118006
|
+
* Tool keys that were approved and lost their sponsor.
|
|
118007
|
+
*/
|
|
118008
|
+
needs_sponsor: string[];
|
|
118009
|
+
} | null);
|
|
117755
118010
|
status: string;
|
|
117756
118011
|
version: number;
|
|
117757
118012
|
workflow_id: string;
|
|
117758
118013
|
dependencies: {
|
|
117759
|
-
key: string;
|
|
117760
118014
|
kind: ("trigger" | "action");
|
|
118015
|
+
/**
|
|
118016
|
+
* The event name of the trigger, or the tool name of the action.
|
|
118017
|
+
*/
|
|
118018
|
+
name: string;
|
|
118019
|
+
toolkit: string;
|
|
118020
|
+
/**
|
|
118021
|
+
* The hash the capability had at publish; a drift means broken.
|
|
118022
|
+
*/
|
|
117761
118023
|
schema_hash: string;
|
|
117762
118024
|
}[];
|
|
117763
118025
|
}
|
|
@@ -117781,6 +118043,35 @@ export interface WorkflowDefinitionUpdateOutput {
|
|
|
117781
118043
|
draft: ({
|
|
117782
118044
|
[k: string]: unknown;
|
|
117783
118045
|
} | null);
|
|
118046
|
+
/**
|
|
118047
|
+
* The workflow principal's grants; null when Governance could not be reached.
|
|
118048
|
+
*/
|
|
118049
|
+
grants: ({
|
|
118050
|
+
grants: {
|
|
118051
|
+
/**
|
|
118052
|
+
* "approved" is the only status a call gets through on.
|
|
118053
|
+
*/
|
|
118054
|
+
status: ("pending" | "approved" | "revoked" | "needs_sponsor");
|
|
118055
|
+
tool_key: string;
|
|
118056
|
+
approved_at: (string | null);
|
|
118057
|
+
/**
|
|
118058
|
+
* The member who vouches for the grant.
|
|
118059
|
+
*/
|
|
118060
|
+
sponsor_member_id: (string | null);
|
|
118061
|
+
}[];
|
|
118062
|
+
/**
|
|
118063
|
+
* Tool keys asked for and waiting on a human.
|
|
118064
|
+
*/
|
|
118065
|
+
pending: string[];
|
|
118066
|
+
/**
|
|
118067
|
+
* Tool keys the workflow may call right now.
|
|
118068
|
+
*/
|
|
118069
|
+
effective: string[];
|
|
118070
|
+
/**
|
|
118071
|
+
* Tool keys that were approved and lost their sponsor.
|
|
118072
|
+
*/
|
|
118073
|
+
needs_sponsor: string[];
|
|
118074
|
+
} | null);
|
|
117784
118075
|
/**
|
|
117785
118076
|
* Validation of the draft as it stands right now.
|
|
117786
118077
|
*/
|
|
@@ -117803,11 +118094,42 @@ export interface WorkflowDefinitionUpdateOutput {
|
|
|
117803
118094
|
id: string;
|
|
117804
118095
|
name: string;
|
|
117805
118096
|
status: ("draft" | "enabled" | "disabled");
|
|
118097
|
+
/**
|
|
118098
|
+
* What is stopping an otherwise published workflow; null when nothing is.
|
|
118099
|
+
*/
|
|
118100
|
+
attention: ({
|
|
118101
|
+
code: ("grants_pending" | "sponsor_gone" | "grant_revoked" | "rate_limited" | "auto_disable_warning");
|
|
118102
|
+
detail: {
|
|
118103
|
+
/**
|
|
118104
|
+
* Set instead when Governance could not be asked.
|
|
118105
|
+
*/
|
|
118106
|
+
error?: string;
|
|
118107
|
+
/**
|
|
118108
|
+
* The tools still waiting on a sponsor.
|
|
118109
|
+
*/
|
|
118110
|
+
tools?: string[];
|
|
118111
|
+
};
|
|
118112
|
+
} | null);
|
|
117806
118113
|
created_at: string;
|
|
117807
118114
|
updated_at: string;
|
|
117808
118115
|
description: (string | null);
|
|
117809
118116
|
live_version: (number | null);
|
|
117810
118117
|
};
|
|
118118
|
+
/**
|
|
118119
|
+
* What the live version was validated against, with the hashes it saw.
|
|
118120
|
+
*/
|
|
118121
|
+
dependencies: {
|
|
118122
|
+
kind: ("trigger" | "action");
|
|
118123
|
+
/**
|
|
118124
|
+
* The event name of the trigger, or the tool name of the action.
|
|
118125
|
+
*/
|
|
118126
|
+
name: string;
|
|
118127
|
+
toolkit: string;
|
|
118128
|
+
/**
|
|
118129
|
+
* The hash the capability had at publish; a drift means broken.
|
|
118130
|
+
*/
|
|
118131
|
+
schema_hash: string;
|
|
118132
|
+
}[];
|
|
117811
118133
|
}
|
|
117812
118134
|
export interface WorkflowDefinitionValidateInput {
|
|
117813
118135
|
/**
|
|
@@ -117839,6 +118161,40 @@ export interface WorkflowDefinitionValidateOutput {
|
|
|
117839
118161
|
severity: ("error" | "warning");
|
|
117840
118162
|
}[];
|
|
117841
118163
|
}
|
|
118164
|
+
export interface WorkflowGrantListInput {
|
|
118165
|
+
workflow_id: string;
|
|
118166
|
+
}
|
|
118167
|
+
export interface WorkflowGrantListOutput {
|
|
118168
|
+
grants: {
|
|
118169
|
+
/**
|
|
118170
|
+
* "approved" is the only status a call gets through on.
|
|
118171
|
+
*/
|
|
118172
|
+
status: ("pending" | "approved" | "revoked" | "needs_sponsor");
|
|
118173
|
+
tool_key: string;
|
|
118174
|
+
approved_at: (string | null);
|
|
118175
|
+
/**
|
|
118176
|
+
* The member who vouches for the grant.
|
|
118177
|
+
*/
|
|
118178
|
+
sponsor_member_id: (string | null);
|
|
118179
|
+
}[];
|
|
118180
|
+
/**
|
|
118181
|
+
* Tool keys asked for and waiting on a human.
|
|
118182
|
+
*/
|
|
118183
|
+
pending: string[];
|
|
118184
|
+
/**
|
|
118185
|
+
* Tool keys the workflow may call right now.
|
|
118186
|
+
*/
|
|
118187
|
+
effective: string[];
|
|
118188
|
+
workflow_id: string;
|
|
118189
|
+
/**
|
|
118190
|
+
* Where a pending grant is approved, and by whom.
|
|
118191
|
+
*/
|
|
118192
|
+
approve_with: string;
|
|
118193
|
+
/**
|
|
118194
|
+
* Tool keys that were approved and lost their sponsor.
|
|
118195
|
+
*/
|
|
118196
|
+
needs_sponsor: string[];
|
|
118197
|
+
}
|
|
117842
118198
|
export interface WorkflowHealthPingInput {
|
|
117843
118199
|
}
|
|
117844
118200
|
export interface WorkflowHealthPingOutput {
|
|
@@ -117846,12 +118202,48 @@ export interface WorkflowHealthPingOutput {
|
|
|
117846
118202
|
toolkit: string;
|
|
117847
118203
|
productId: string;
|
|
117848
118204
|
}
|
|
118205
|
+
export interface WorkflowKillswitchGetInput {
|
|
118206
|
+
}
|
|
118207
|
+
export interface WorkflowKillswitchGetOutput {
|
|
118208
|
+
at: (string | null);
|
|
118209
|
+
/**
|
|
118210
|
+
* The identity that last flipped the switch.
|
|
118211
|
+
*/
|
|
118212
|
+
by: (string | null);
|
|
118213
|
+
on: boolean;
|
|
118214
|
+
/**
|
|
118215
|
+
* True when the platform holds it on for every Product (WORKFLOW_KILLSWITCH=1).
|
|
118216
|
+
*/
|
|
118217
|
+
forced: boolean;
|
|
118218
|
+
}
|
|
118219
|
+
export interface WorkflowKillswitchSetInput {
|
|
118220
|
+
/**
|
|
118221
|
+
* True stops this Product's workflows; false lets them run again.
|
|
118222
|
+
*/
|
|
118223
|
+
on: boolean;
|
|
118224
|
+
}
|
|
118225
|
+
export interface WorkflowKillswitchSetOutput {
|
|
118226
|
+
at: (string | null);
|
|
118227
|
+
/**
|
|
118228
|
+
* The identity that last flipped the switch.
|
|
118229
|
+
*/
|
|
118230
|
+
by: (string | null);
|
|
118231
|
+
on: boolean;
|
|
118232
|
+
/**
|
|
118233
|
+
* True when the platform holds it on for every Product (WORKFLOW_KILLSWITCH=1).
|
|
118234
|
+
*/
|
|
118235
|
+
forced: boolean;
|
|
118236
|
+
/**
|
|
118237
|
+
* Runs this call moved to `held`: everything that was running, waiting or queued.
|
|
118238
|
+
*/
|
|
118239
|
+
stopped_runs: number;
|
|
118240
|
+
}
|
|
117849
118241
|
export interface WorkflowRunCancelInput {
|
|
117850
118242
|
run_id: string;
|
|
117851
118243
|
}
|
|
117852
118244
|
export interface WorkflowRunCancelOutput {
|
|
117853
118245
|
id: string;
|
|
117854
|
-
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
|
|
118246
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling");
|
|
117855
118247
|
version: number;
|
|
117856
118248
|
ended_at: (string | null);
|
|
117857
118249
|
created_at: string;
|
|
@@ -117872,7 +118264,7 @@ export interface WorkflowRunGetInput {
|
|
|
117872
118264
|
export interface WorkflowRunGetOutput {
|
|
117873
118265
|
run: {
|
|
117874
118266
|
id: string;
|
|
117875
|
-
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
|
|
118267
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling");
|
|
117876
118268
|
version: number;
|
|
117877
118269
|
ended_at: (string | null);
|
|
117878
118270
|
created_at: string;
|
|
@@ -117924,13 +118316,13 @@ export interface WorkflowRunListInput {
|
|
|
117924
118316
|
* Opaque cursor from a previous page.
|
|
117925
118317
|
*/
|
|
117926
118318
|
cursor?: string;
|
|
117927
|
-
status?: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
|
|
118319
|
+
status?: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling");
|
|
117928
118320
|
workflow_id?: string;
|
|
117929
118321
|
}
|
|
117930
118322
|
export interface WorkflowRunListOutput {
|
|
117931
118323
|
items: {
|
|
117932
118324
|
id: string;
|
|
117933
|
-
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
|
|
118325
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling");
|
|
117934
118326
|
version: number;
|
|
117935
118327
|
ended_at: (string | null);
|
|
117936
118328
|
created_at: string;
|
|
@@ -117956,7 +118348,7 @@ export interface WorkflowRunReplayInput {
|
|
|
117956
118348
|
}
|
|
117957
118349
|
export interface WorkflowRunReplayOutput {
|
|
117958
118350
|
id: string;
|
|
117959
|
-
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
|
|
118351
|
+
status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled" | "paused_ceiling");
|
|
117960
118352
|
version: number;
|
|
117961
118353
|
ended_at: (string | null);
|
|
117962
118354
|
created_at: string;
|
|
@@ -117971,6 +118363,24 @@ export interface WorkflowRunReplayOutput {
|
|
|
117971
118363
|
trigger_event_id: string;
|
|
117972
118364
|
replay_generation: number;
|
|
117973
118365
|
}
|
|
118366
|
+
export interface WorkflowRunReplayAllInput {
|
|
118367
|
+
/**
|
|
118368
|
+
* How many runs to restart, oldest first; 1-200, defaults to 200.
|
|
118369
|
+
*/
|
|
118370
|
+
limit?: number;
|
|
118371
|
+
/**
|
|
118372
|
+
* Which stopped runs to restart. `held` is what a kill-switch or a missing grant left behind.
|
|
118373
|
+
*/
|
|
118374
|
+
status: ("held" | "failed");
|
|
118375
|
+
workflow_id: string;
|
|
118376
|
+
}
|
|
118377
|
+
export interface WorkflowRunReplayAllOutput {
|
|
118378
|
+
refused: {
|
|
118379
|
+
reason: string;
|
|
118380
|
+
run_id: string;
|
|
118381
|
+
}[];
|
|
118382
|
+
replayed: string[];
|
|
118383
|
+
}
|
|
117974
118384
|
export interface WorkflowRunStartInput {
|
|
117975
118385
|
input?: {
|
|
117976
118386
|
[k: string]: unknown;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './queryOptions.gen.js';
|
|
2
|
-
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, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput } from '../types.gen.js';
|
|
2
|
+
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, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowKillswitchSetOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayAllOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput } from '../types.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GeneratedClient } from '../client.gen.js';
|
|
2
|
-
import type { WorkflowCapabilityGetInput, WorkflowCapabilityGetOutput, WorkflowCapabilityListInput, WorkflowCapabilityListOutput, WorkflowConfigDeleteInput, WorkflowConfigListInput, WorkflowConfigListOutput, WorkflowConfigSetInput, WorkflowDefinitionCreateInput, WorkflowDefinitionDisableInput, WorkflowDefinitionDryrunInput, WorkflowDefinitionDryrunOutput, WorkflowDefinitionEnableInput, WorkflowDefinitionExportInput, WorkflowDefinitionExportOutput, WorkflowDefinitionGetInput, WorkflowDefinitionGetOutput, WorkflowDefinitionImportInput, WorkflowDefinitionListInput, WorkflowDefinitionListOutput, WorkflowDefinitionPublishInput, WorkflowDefinitionUpdateInput, WorkflowDefinitionValidateInput, WorkflowDefinitionValidateOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowRunCancelInput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayInput, WorkflowRunStartInput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput } from '../types.gen.js';
|
|
2
|
+
import type { WorkflowCapabilityGetInput, WorkflowCapabilityGetOutput, WorkflowCapabilityListInput, WorkflowCapabilityListOutput, WorkflowConfigDeleteInput, WorkflowConfigListInput, WorkflowConfigListOutput, WorkflowConfigSetInput, WorkflowDefinitionCreateInput, WorkflowDefinitionDisableInput, WorkflowDefinitionDryrunInput, WorkflowDefinitionDryrunOutput, WorkflowDefinitionEnableInput, WorkflowDefinitionExportInput, WorkflowDefinitionExportOutput, WorkflowDefinitionGetInput, WorkflowDefinitionGetOutput, WorkflowDefinitionImportInput, WorkflowDefinitionListInput, WorkflowDefinitionListOutput, WorkflowDefinitionPublishInput, WorkflowDefinitionUpdateInput, WorkflowDefinitionValidateInput, WorkflowDefinitionValidateOutput, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowRunCancelInput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayInput, WorkflowRunStartInput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput } from '../types.gen.js';
|
|
3
3
|
export declare const workflowCapabilityGetQueryOptions: (sdk: GeneratedClient, input: WorkflowCapabilityGetInput) => {
|
|
4
4
|
queryKey: readonly ["workflow", "capability", "get", WorkflowCapabilityGetInput];
|
|
5
5
|
queryFn: () => Promise<WorkflowCapabilityGetOutput>;
|
|
@@ -64,10 +64,22 @@ export declare const workflowDefinitionValidateQueryOptions: (sdk: GeneratedClie
|
|
|
64
64
|
queryKey: readonly ["workflow", "definition", "validate", WorkflowDefinitionValidateInput];
|
|
65
65
|
queryFn: () => Promise<WorkflowDefinitionValidateOutput>;
|
|
66
66
|
};
|
|
67
|
+
export declare const workflowGrantListQueryOptions: (sdk: GeneratedClient, input: WorkflowGrantListInput) => {
|
|
68
|
+
queryKey: readonly ["workflow", "grant", "list", WorkflowGrantListInput];
|
|
69
|
+
queryFn: () => Promise<WorkflowGrantListOutput>;
|
|
70
|
+
};
|
|
67
71
|
export declare const workflowHealthPingQueryOptions: (sdk: GeneratedClient, input: WorkflowHealthPingInput) => {
|
|
68
72
|
queryKey: readonly ["workflow", "health", "ping", WorkflowHealthPingInput];
|
|
69
73
|
queryFn: () => Promise<WorkflowHealthPingOutput>;
|
|
70
74
|
};
|
|
75
|
+
export declare const workflowKillswitchGetQueryOptions: (sdk: GeneratedClient, input: WorkflowKillswitchGetInput) => {
|
|
76
|
+
queryKey: readonly ["workflow", "killswitch", "get", WorkflowKillswitchGetInput];
|
|
77
|
+
queryFn: () => Promise<WorkflowKillswitchGetOutput>;
|
|
78
|
+
};
|
|
79
|
+
export declare const workflowKillswitchSetMutationOptions: (sdk: GeneratedClient) => {
|
|
80
|
+
mutationKey: string[];
|
|
81
|
+
mutationFn: (input: WorkflowKillswitchSetInput) => Promise<import(".").WorkflowKillswitchSetOutput>;
|
|
82
|
+
};
|
|
71
83
|
export declare const workflowRunCancelMutationOptions: (sdk: GeneratedClient) => {
|
|
72
84
|
mutationKey: string[];
|
|
73
85
|
mutationFn: (input: WorkflowRunCancelInput) => Promise<import(".").WorkflowRunCancelOutput>;
|
|
@@ -84,6 +96,10 @@ export declare const workflowRunReplayMutationOptions: (sdk: GeneratedClient) =>
|
|
|
84
96
|
mutationKey: string[];
|
|
85
97
|
mutationFn: (input: WorkflowRunReplayInput) => Promise<import(".").WorkflowRunReplayOutput>;
|
|
86
98
|
};
|
|
99
|
+
export declare const workflowRunReplayAllMutationOptions: (sdk: GeneratedClient) => {
|
|
100
|
+
mutationKey: string[];
|
|
101
|
+
mutationFn: (input: WorkflowRunReplayAllInput) => Promise<import(".").WorkflowRunReplayAllOutput>;
|
|
102
|
+
};
|
|
87
103
|
export declare const workflowRunStartMutationOptions: (sdk: GeneratedClient) => {
|
|
88
104
|
mutationKey: string[];
|
|
89
105
|
mutationFn: (input: WorkflowRunStartInput) => Promise<import(".").WorkflowRunStartOutput>;
|