@arbium/enterprise-agent-connect-client 0.2.0 → 0.2.1-dev.fd7a648
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/lib/index.d.ts +592 -1
- package/lib/index.js +10 -0
- package/lib/schema.d.ts +474 -0
- package/lib/steps.d.ts +2 -10
- package/lib/types.d.ts +3 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AppLive } from "./steps.js";
|
|
2
|
-
import type { Agent, CheckOutcome, Connection, Connector, EventSubscriptionInput, EventTriggerInput, Limits, SiteAccess, TeamsTriggerInput } from "./types.js";
|
|
2
|
+
import type { Agent, Body, CheckOutcome, Connection, Connector, EventSubscriptionInput, EventTriggerInput, Limits, SiteAccess, TeamsTriggerInput } from "./types.js";
|
|
3
3
|
export * from "./steps.js";
|
|
4
4
|
export type * from "./types.js";
|
|
5
5
|
/** A refusal the admin should read (4xx with an `error`): bad input, a failed connection
|
|
@@ -626,6 +626,597 @@ export declare function createClient(options: ClientOptions): {
|
|
|
626
626
|
};
|
|
627
627
|
};
|
|
628
628
|
}[]>;
|
|
629
|
+
/** The deployment's apps and the organization's own internal apps. */
|
|
630
|
+
orgConnectors: (o: string) => Promise<{
|
|
631
|
+
id: string;
|
|
632
|
+
name: string;
|
|
633
|
+
description: string;
|
|
634
|
+
logo: string;
|
|
635
|
+
identity: string;
|
|
636
|
+
signsInAs?: "agentBot";
|
|
637
|
+
provider?: string;
|
|
638
|
+
order?: number;
|
|
639
|
+
connectionKind: "guided";
|
|
640
|
+
accountKey: string;
|
|
641
|
+
scopes?: string[];
|
|
642
|
+
setup: {
|
|
643
|
+
title: string;
|
|
644
|
+
body: string;
|
|
645
|
+
link?: {
|
|
646
|
+
label: string;
|
|
647
|
+
href: string;
|
|
648
|
+
};
|
|
649
|
+
copy?: string[];
|
|
650
|
+
shell?: "bash" | "powershell";
|
|
651
|
+
permissions?: boolean;
|
|
652
|
+
certificate?: boolean;
|
|
653
|
+
click?: string[];
|
|
654
|
+
clickUnavailable?: true;
|
|
655
|
+
siteRole?: "read" | "write";
|
|
656
|
+
agentCheck?: boolean;
|
|
657
|
+
confirm?: string;
|
|
658
|
+
live?: string;
|
|
659
|
+
settings?: {
|
|
660
|
+
id: string;
|
|
661
|
+
label: string;
|
|
662
|
+
help?: string;
|
|
663
|
+
placeholder?: string;
|
|
664
|
+
pattern: string;
|
|
665
|
+
}[];
|
|
666
|
+
option?: {
|
|
667
|
+
field: string;
|
|
668
|
+
value: string;
|
|
669
|
+
};
|
|
670
|
+
capabilities?: string[];
|
|
671
|
+
}[];
|
|
672
|
+
afterConnect: {
|
|
673
|
+
title: string;
|
|
674
|
+
body: string;
|
|
675
|
+
link?: {
|
|
676
|
+
label: string;
|
|
677
|
+
href: string;
|
|
678
|
+
};
|
|
679
|
+
copy?: string[];
|
|
680
|
+
shell?: "bash" | "powershell";
|
|
681
|
+
permissions?: boolean;
|
|
682
|
+
certificate?: boolean;
|
|
683
|
+
click?: string[];
|
|
684
|
+
clickUnavailable?: true;
|
|
685
|
+
siteRole?: "read" | "write";
|
|
686
|
+
agentCheck?: boolean;
|
|
687
|
+
confirm?: string;
|
|
688
|
+
live?: string;
|
|
689
|
+
settings?: {
|
|
690
|
+
id: string;
|
|
691
|
+
label: string;
|
|
692
|
+
help?: string;
|
|
693
|
+
placeholder?: string;
|
|
694
|
+
pattern: string;
|
|
695
|
+
}[];
|
|
696
|
+
option?: {
|
|
697
|
+
field: string;
|
|
698
|
+
value: string;
|
|
699
|
+
};
|
|
700
|
+
capabilities?: string[];
|
|
701
|
+
}[];
|
|
702
|
+
fields: {
|
|
703
|
+
id: string;
|
|
704
|
+
label: string;
|
|
705
|
+
help?: string;
|
|
706
|
+
placeholder?: string;
|
|
707
|
+
secret: boolean;
|
|
708
|
+
options?: {
|
|
709
|
+
value: string;
|
|
710
|
+
label: string;
|
|
711
|
+
description: string;
|
|
712
|
+
scopes?: string[];
|
|
713
|
+
}[];
|
|
714
|
+
requires?: {
|
|
715
|
+
field: string;
|
|
716
|
+
value: string;
|
|
717
|
+
};
|
|
718
|
+
optional: boolean;
|
|
719
|
+
}[];
|
|
720
|
+
capabilities: {
|
|
721
|
+
id: string;
|
|
722
|
+
label: string;
|
|
723
|
+
description: string;
|
|
724
|
+
required: boolean;
|
|
725
|
+
destructive: boolean;
|
|
726
|
+
costs?: boolean;
|
|
727
|
+
scopes: string[];
|
|
728
|
+
roles?: string[];
|
|
729
|
+
permissions: string[];
|
|
730
|
+
fill?: {
|
|
731
|
+
[key: string]: string;
|
|
732
|
+
};
|
|
733
|
+
note?: string;
|
|
734
|
+
forbidden?: string;
|
|
735
|
+
claudeKey?: boolean;
|
|
736
|
+
tools: string[];
|
|
737
|
+
}[];
|
|
738
|
+
limits: {
|
|
739
|
+
id: string;
|
|
740
|
+
label: string;
|
|
741
|
+
help: string;
|
|
742
|
+
kind: "list" | "text" | "map";
|
|
743
|
+
required: boolean;
|
|
744
|
+
pattern?: string;
|
|
745
|
+
keys?: string;
|
|
746
|
+
}[];
|
|
747
|
+
siteAccess?: {
|
|
748
|
+
grant: {
|
|
749
|
+
title: string;
|
|
750
|
+
body: string;
|
|
751
|
+
link?: {
|
|
752
|
+
label: string;
|
|
753
|
+
href: string;
|
|
754
|
+
};
|
|
755
|
+
copy?: string[];
|
|
756
|
+
shell?: "bash" | "powershell";
|
|
757
|
+
permissions?: boolean;
|
|
758
|
+
certificate?: boolean;
|
|
759
|
+
click?: string[];
|
|
760
|
+
clickUnavailable?: true;
|
|
761
|
+
siteRole?: "read" | "write";
|
|
762
|
+
agentCheck?: boolean;
|
|
763
|
+
confirm?: string;
|
|
764
|
+
live?: string;
|
|
765
|
+
settings?: {
|
|
766
|
+
id: string;
|
|
767
|
+
label: string;
|
|
768
|
+
help?: string;
|
|
769
|
+
placeholder?: string;
|
|
770
|
+
pattern: string;
|
|
771
|
+
}[];
|
|
772
|
+
option?: {
|
|
773
|
+
field: string;
|
|
774
|
+
value: string;
|
|
775
|
+
};
|
|
776
|
+
}[];
|
|
777
|
+
request: string;
|
|
778
|
+
write: string[];
|
|
779
|
+
};
|
|
780
|
+
agentAccess?: {
|
|
781
|
+
limit: string;
|
|
782
|
+
label: string;
|
|
783
|
+
path: string & (unknown & unknown);
|
|
784
|
+
granted: string;
|
|
785
|
+
notGranted: string;
|
|
786
|
+
notFound: string;
|
|
787
|
+
probes: {
|
|
788
|
+
[key: string]: {
|
|
789
|
+
method: "GET" | "POST" | "PATCH";
|
|
790
|
+
path: string & (unknown & unknown);
|
|
791
|
+
body?: unknown;
|
|
792
|
+
allowed: number[];
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
missing?: string;
|
|
796
|
+
};
|
|
797
|
+
verify: {
|
|
798
|
+
method: "GET" | "POST";
|
|
799
|
+
path: string;
|
|
800
|
+
label: string;
|
|
801
|
+
show: string;
|
|
802
|
+
name?: string;
|
|
803
|
+
match?: {
|
|
804
|
+
[key: string]: string | number | boolean;
|
|
805
|
+
};
|
|
806
|
+
body?: {
|
|
807
|
+
[key: string]: unknown;
|
|
808
|
+
};
|
|
809
|
+
ifEmpty?: string;
|
|
810
|
+
} | {
|
|
811
|
+
label: string;
|
|
812
|
+
check: string;
|
|
813
|
+
ifEmpty?: string;
|
|
814
|
+
};
|
|
815
|
+
discover?: {
|
|
816
|
+
method: "GET" | "POST";
|
|
817
|
+
path: string;
|
|
818
|
+
label: string;
|
|
819
|
+
show: string;
|
|
820
|
+
name?: string;
|
|
821
|
+
match?: {
|
|
822
|
+
[key: string]: string | number | boolean;
|
|
823
|
+
};
|
|
824
|
+
body?: {
|
|
825
|
+
[key: string]: unknown;
|
|
826
|
+
};
|
|
827
|
+
ifEmpty?: string;
|
|
828
|
+
} | {
|
|
829
|
+
label: string;
|
|
830
|
+
check: string;
|
|
831
|
+
ifEmpty?: string;
|
|
832
|
+
};
|
|
833
|
+
revoke: string;
|
|
834
|
+
http?: {
|
|
835
|
+
baseUrl: string;
|
|
836
|
+
auth: {
|
|
837
|
+
type: "header";
|
|
838
|
+
header: string;
|
|
839
|
+
value: string;
|
|
840
|
+
prefix?: string;
|
|
841
|
+
} | {
|
|
842
|
+
type: "bearer";
|
|
843
|
+
token: string;
|
|
844
|
+
} | {
|
|
845
|
+
type: "basic";
|
|
846
|
+
username: string;
|
|
847
|
+
password: string;
|
|
848
|
+
} | {
|
|
849
|
+
type: "oauth2";
|
|
850
|
+
tokenUrl: string;
|
|
851
|
+
clientId: string;
|
|
852
|
+
clientSecret: string;
|
|
853
|
+
scope?: string;
|
|
854
|
+
} | {
|
|
855
|
+
type: "query";
|
|
856
|
+
param: string;
|
|
857
|
+
value: string;
|
|
858
|
+
};
|
|
859
|
+
headers: {
|
|
860
|
+
[key: string]: string;
|
|
861
|
+
};
|
|
862
|
+
tools: {
|
|
863
|
+
name: string;
|
|
864
|
+
description: string;
|
|
865
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
866
|
+
path: string;
|
|
867
|
+
params: {
|
|
868
|
+
[key: string]: {
|
|
869
|
+
type: "string" | "number" | "integer" | "boolean" | "array";
|
|
870
|
+
description: string;
|
|
871
|
+
in: "path" | "query" | "body";
|
|
872
|
+
name?: string;
|
|
873
|
+
required: boolean;
|
|
874
|
+
default?: (string | number | boolean) | (string | number | boolean)[];
|
|
875
|
+
enum?: (string | number | boolean)[];
|
|
876
|
+
items?: "string" | "number" | "integer" | "boolean";
|
|
877
|
+
join?: string;
|
|
878
|
+
limit?: string;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
destructive: boolean;
|
|
882
|
+
answerLimits: {
|
|
883
|
+
field: string;
|
|
884
|
+
limit: string;
|
|
885
|
+
}[];
|
|
886
|
+
result?: {
|
|
887
|
+
items?: string;
|
|
888
|
+
fields?: string[];
|
|
889
|
+
};
|
|
890
|
+
paging?: {
|
|
891
|
+
param: string;
|
|
892
|
+
body: string;
|
|
893
|
+
} | {
|
|
894
|
+
param: string;
|
|
895
|
+
header: string;
|
|
896
|
+
} | {
|
|
897
|
+
param: string;
|
|
898
|
+
link: true;
|
|
899
|
+
};
|
|
900
|
+
}[];
|
|
901
|
+
allowInsecureHttp: boolean;
|
|
902
|
+
};
|
|
903
|
+
soap?: {
|
|
904
|
+
endpoint: string;
|
|
905
|
+
version: "1.1" | "1.2";
|
|
906
|
+
namespaces: {
|
|
907
|
+
[key: string]: string;
|
|
908
|
+
};
|
|
909
|
+
auth?: {
|
|
910
|
+
type: "header";
|
|
911
|
+
header: string;
|
|
912
|
+
value: string;
|
|
913
|
+
prefix?: string;
|
|
914
|
+
} | {
|
|
915
|
+
type: "bearer";
|
|
916
|
+
token: string;
|
|
917
|
+
} | {
|
|
918
|
+
type: "basic";
|
|
919
|
+
username: string;
|
|
920
|
+
password: string;
|
|
921
|
+
};
|
|
922
|
+
wsSecurity?: {
|
|
923
|
+
username: string;
|
|
924
|
+
password: string;
|
|
925
|
+
digest: boolean;
|
|
926
|
+
};
|
|
927
|
+
verify?: {
|
|
928
|
+
tool: string;
|
|
929
|
+
args: {
|
|
930
|
+
[key: string]: string | number | boolean;
|
|
931
|
+
};
|
|
932
|
+
show: string;
|
|
933
|
+
};
|
|
934
|
+
tools: {
|
|
935
|
+
name: string;
|
|
936
|
+
description: string;
|
|
937
|
+
operation: string;
|
|
938
|
+
soapAction?: string;
|
|
939
|
+
body: string;
|
|
940
|
+
params: {
|
|
941
|
+
[key: string]: {
|
|
942
|
+
type: "string" | "number" | "integer" | "boolean";
|
|
943
|
+
description: string;
|
|
944
|
+
required: boolean;
|
|
945
|
+
limit?: string;
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
result?: string;
|
|
949
|
+
fields?: string[];
|
|
950
|
+
readOnly: boolean;
|
|
951
|
+
destructive: boolean;
|
|
952
|
+
answerLimits: {
|
|
953
|
+
field: string;
|
|
954
|
+
limit: string;
|
|
955
|
+
}[];
|
|
956
|
+
}[];
|
|
957
|
+
allowInsecureHttp: boolean;
|
|
958
|
+
};
|
|
959
|
+
odata?: {
|
|
960
|
+
serviceRoot: string;
|
|
961
|
+
version: "2" | "4";
|
|
962
|
+
auth: {
|
|
963
|
+
type: "header";
|
|
964
|
+
header: string;
|
|
965
|
+
value: string;
|
|
966
|
+
prefix?: string;
|
|
967
|
+
} | {
|
|
968
|
+
type: "bearer";
|
|
969
|
+
token: string;
|
|
970
|
+
} | {
|
|
971
|
+
type: "basic";
|
|
972
|
+
username: string;
|
|
973
|
+
password: string;
|
|
974
|
+
} | {
|
|
975
|
+
type: "oauth2";
|
|
976
|
+
tokenUrl: string;
|
|
977
|
+
clientId: string;
|
|
978
|
+
clientSecret: string;
|
|
979
|
+
scope?: string;
|
|
980
|
+
} | {
|
|
981
|
+
type: "query";
|
|
982
|
+
param: string;
|
|
983
|
+
value: string;
|
|
984
|
+
};
|
|
985
|
+
headers: {
|
|
986
|
+
[key: string]: string;
|
|
987
|
+
};
|
|
988
|
+
csrf: boolean;
|
|
989
|
+
paging: "skip" | "server";
|
|
990
|
+
tools: {
|
|
991
|
+
name: string;
|
|
992
|
+
description: string;
|
|
993
|
+
kind: "list" | "get" | "create" | "update" | "function" | "action";
|
|
994
|
+
entitySet?: string;
|
|
995
|
+
function?: string;
|
|
996
|
+
key: {
|
|
997
|
+
[key: string]: {
|
|
998
|
+
type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
|
|
999
|
+
description: string;
|
|
1000
|
+
property?: string;
|
|
1001
|
+
required?: boolean;
|
|
1002
|
+
limit?: string;
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
filters: {
|
|
1006
|
+
[key: string]: {
|
|
1007
|
+
type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
|
|
1008
|
+
description: string;
|
|
1009
|
+
property?: string;
|
|
1010
|
+
required?: boolean;
|
|
1011
|
+
limit?: string;
|
|
1012
|
+
op: "eq" | "ne" | "gt" | "ge" | "lt" | "le" | "contains" | "startswith";
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
1015
|
+
fields: {
|
|
1016
|
+
[key: string]: {
|
|
1017
|
+
type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
|
|
1018
|
+
description: string;
|
|
1019
|
+
property?: string;
|
|
1020
|
+
required?: boolean;
|
|
1021
|
+
limit?: string;
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
params: {
|
|
1025
|
+
[key: string]: {
|
|
1026
|
+
type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
|
|
1027
|
+
description: string;
|
|
1028
|
+
property?: string;
|
|
1029
|
+
required?: boolean;
|
|
1030
|
+
limit?: string;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
select: string[];
|
|
1034
|
+
orderBy?: string;
|
|
1035
|
+
top: number;
|
|
1036
|
+
destructive: boolean;
|
|
1037
|
+
answerLimits: {
|
|
1038
|
+
field: string;
|
|
1039
|
+
limit: string;
|
|
1040
|
+
}[];
|
|
1041
|
+
}[];
|
|
1042
|
+
allowInsecureHttp: boolean;
|
|
1043
|
+
};
|
|
1044
|
+
sql?: {
|
|
1045
|
+
engine: "postgres" | "sqlserver" | "mysql" | "oracle";
|
|
1046
|
+
host: string;
|
|
1047
|
+
port?: number;
|
|
1048
|
+
database: string;
|
|
1049
|
+
auth: {
|
|
1050
|
+
user: string;
|
|
1051
|
+
password: string;
|
|
1052
|
+
};
|
|
1053
|
+
tls: "verify" | "insecure" | "off";
|
|
1054
|
+
timeoutSeconds: number;
|
|
1055
|
+
maxRows: number;
|
|
1056
|
+
tools: {
|
|
1057
|
+
name: string;
|
|
1058
|
+
description: string;
|
|
1059
|
+
sql: string;
|
|
1060
|
+
params: {
|
|
1061
|
+
[key: string]: {
|
|
1062
|
+
type: "string" | "number" | "integer" | "boolean";
|
|
1063
|
+
description: string;
|
|
1064
|
+
required: boolean;
|
|
1065
|
+
limit?: string;
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1068
|
+
write: boolean;
|
|
1069
|
+
destructive: boolean;
|
|
1070
|
+
answerLimits: {
|
|
1071
|
+
column: string;
|
|
1072
|
+
limit: string;
|
|
1073
|
+
}[];
|
|
1074
|
+
}[];
|
|
1075
|
+
};
|
|
1076
|
+
events?: {
|
|
1077
|
+
types: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
label: string;
|
|
1080
|
+
}[];
|
|
1081
|
+
fields: {
|
|
1082
|
+
[key: string]: string;
|
|
1083
|
+
};
|
|
1084
|
+
limits: {
|
|
1085
|
+
[key: string]: string;
|
|
1086
|
+
};
|
|
1087
|
+
webhook?: {
|
|
1088
|
+
verify: {
|
|
1089
|
+
type: "hmac-sha256";
|
|
1090
|
+
header: string;
|
|
1091
|
+
prefix: string;
|
|
1092
|
+
} | {
|
|
1093
|
+
type: "token";
|
|
1094
|
+
header: string;
|
|
1095
|
+
} | {
|
|
1096
|
+
type: "none";
|
|
1097
|
+
};
|
|
1098
|
+
allowInsecure: boolean;
|
|
1099
|
+
type: {
|
|
1100
|
+
field: string;
|
|
1101
|
+
} | {
|
|
1102
|
+
header: string;
|
|
1103
|
+
};
|
|
1104
|
+
deliveryId?: {
|
|
1105
|
+
field: string;
|
|
1106
|
+
} | {
|
|
1107
|
+
header: string;
|
|
1108
|
+
};
|
|
1109
|
+
timestamp?: {
|
|
1110
|
+
at: {
|
|
1111
|
+
field: string;
|
|
1112
|
+
} | {
|
|
1113
|
+
header: string;
|
|
1114
|
+
};
|
|
1115
|
+
unit: "s" | "ms" | "iso";
|
|
1116
|
+
toleranceSeconds: number;
|
|
1117
|
+
};
|
|
1118
|
+
setup: {
|
|
1119
|
+
title: string;
|
|
1120
|
+
body: string;
|
|
1121
|
+
link?: {
|
|
1122
|
+
label: string;
|
|
1123
|
+
href: string;
|
|
1124
|
+
};
|
|
1125
|
+
copy?: string[];
|
|
1126
|
+
shell?: "bash" | "powershell";
|
|
1127
|
+
permissions?: boolean;
|
|
1128
|
+
certificate?: boolean;
|
|
1129
|
+
click?: string[];
|
|
1130
|
+
clickUnavailable?: true;
|
|
1131
|
+
siteRole?: "read" | "write";
|
|
1132
|
+
agentCheck?: boolean;
|
|
1133
|
+
confirm?: string;
|
|
1134
|
+
live?: string;
|
|
1135
|
+
settings?: {
|
|
1136
|
+
id: string;
|
|
1137
|
+
label: string;
|
|
1138
|
+
help?: string;
|
|
1139
|
+
placeholder?: string;
|
|
1140
|
+
pattern: string;
|
|
1141
|
+
}[];
|
|
1142
|
+
option?: {
|
|
1143
|
+
field: string;
|
|
1144
|
+
value: string;
|
|
1145
|
+
};
|
|
1146
|
+
}[];
|
|
1147
|
+
register?: {
|
|
1148
|
+
method: "GET" | "POST" | "PUT";
|
|
1149
|
+
path: string;
|
|
1150
|
+
body?: unknown;
|
|
1151
|
+
location: string;
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
self?: {
|
|
1155
|
+
request: {
|
|
1156
|
+
method: "GET" | "POST" | "PUT";
|
|
1157
|
+
path: string;
|
|
1158
|
+
body?: unknown;
|
|
1159
|
+
};
|
|
1160
|
+
id: string;
|
|
1161
|
+
fields: string[];
|
|
1162
|
+
};
|
|
1163
|
+
poll?: {
|
|
1164
|
+
request: {
|
|
1165
|
+
method: "GET" | "POST" | "PUT";
|
|
1166
|
+
path: string;
|
|
1167
|
+
body?: unknown;
|
|
1168
|
+
};
|
|
1169
|
+
filter?: string;
|
|
1170
|
+
items: string;
|
|
1171
|
+
wrap?: string;
|
|
1172
|
+
cursor: string;
|
|
1173
|
+
deliveryId: string[];
|
|
1174
|
+
types: {
|
|
1175
|
+
type: string;
|
|
1176
|
+
since?: string;
|
|
1177
|
+
}[];
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
}[]>;
|
|
1181
|
+
internalApps: (o: string) => Promise<{
|
|
1182
|
+
id: string;
|
|
1183
|
+
organizationId: string;
|
|
1184
|
+
definition: {
|
|
1185
|
+
[key: string]: unknown;
|
|
1186
|
+
};
|
|
1187
|
+
problem: string | null;
|
|
1188
|
+
createdBy: string;
|
|
1189
|
+
createdAt: string;
|
|
1190
|
+
updatedBy: string;
|
|
1191
|
+
updatedAt: string;
|
|
1192
|
+
}[]>;
|
|
1193
|
+
internalApp: (o: string, a: string) => Promise<{
|
|
1194
|
+
id: string;
|
|
1195
|
+
organizationId: string;
|
|
1196
|
+
definition: {
|
|
1197
|
+
[key: string]: unknown;
|
|
1198
|
+
};
|
|
1199
|
+
problem: string | null;
|
|
1200
|
+
createdBy: string;
|
|
1201
|
+
createdAt: string;
|
|
1202
|
+
updatedBy: string;
|
|
1203
|
+
updatedAt: string;
|
|
1204
|
+
} | null>;
|
|
1205
|
+
saveInternalApp: (o: string, a: string, definition: Record<string, unknown>, by: string) => Promise<{
|
|
1206
|
+
app: import("./schema.js").components["schemas"]["InternalApp"];
|
|
1207
|
+
connector: import("./schema.js").components["schemas"]["Connector"];
|
|
1208
|
+
created: boolean;
|
|
1209
|
+
disconnected: boolean;
|
|
1210
|
+
grantsRemoved: string[];
|
|
1211
|
+
}>;
|
|
1212
|
+
deleteInternalApp: (o: string, a: string, by: string) => Promise<void>;
|
|
1213
|
+
draftInternalApp: (body: Body<"draftInternalApp">) => Promise<{
|
|
1214
|
+
definition: {
|
|
1215
|
+
[key: string]: unknown;
|
|
1216
|
+
};
|
|
1217
|
+
notes: string[];
|
|
1218
|
+
problem: string | null;
|
|
1219
|
+
}>;
|
|
629
1220
|
providers: () => Promise<{
|
|
630
1221
|
id: string;
|
|
631
1222
|
name: string;
|
package/lib/index.js
CHANGED
|
@@ -64,6 +64,16 @@ export function createClient(options) {
|
|
|
64
64
|
},
|
|
65
65
|
branding: () => call("GET", "/branding"),
|
|
66
66
|
connectors: () => call("GET", "/connectors"),
|
|
67
|
+
/** The deployment's apps and the organization's own internal apps. */
|
|
68
|
+
orgConnectors: (o) => call("GET", `${org(o)}/connectors`),
|
|
69
|
+
internalApps: (o) => call("GET", `${org(o)}/internal-apps`),
|
|
70
|
+
internalApp: (o, a) => maybe(`${org(o)}/internal-apps/${seg(a)}`),
|
|
71
|
+
saveInternalApp: (o, a, definition, by) => call("PUT", `${org(o)}/internal-apps/${seg(a)}`, {
|
|
72
|
+
definition,
|
|
73
|
+
by,
|
|
74
|
+
}),
|
|
75
|
+
deleteInternalApp: (o, a, by) => call("DELETE", `${org(o)}/internal-apps/${seg(a)}`, { by }),
|
|
76
|
+
draftInternalApp: (body) => call("POST", "/internal-apps/draft", body),
|
|
67
77
|
providers: () => call("GET", "/providers"),
|
|
68
78
|
providerConnections: (o) => call("GET", `${org(o)}/providers`),
|
|
69
79
|
connectProvider: (o, p, body) => call("PUT", provider(o, p), body),
|
package/lib/schema.d.ts
CHANGED
|
@@ -73,6 +73,76 @@ export interface paths {
|
|
|
73
73
|
patch?: never;
|
|
74
74
|
trace?: never;
|
|
75
75
|
};
|
|
76
|
+
"/orgs/{org}/connectors": {
|
|
77
|
+
parameters: {
|
|
78
|
+
query?: never;
|
|
79
|
+
header?: never;
|
|
80
|
+
path?: never;
|
|
81
|
+
cookie?: never;
|
|
82
|
+
};
|
|
83
|
+
/** The apps the organization can use: the deployment's and its own internal apps */
|
|
84
|
+
get: operations["orgConnectors"];
|
|
85
|
+
put?: never;
|
|
86
|
+
post?: never;
|
|
87
|
+
delete?: never;
|
|
88
|
+
options?: never;
|
|
89
|
+
head?: never;
|
|
90
|
+
patch?: never;
|
|
91
|
+
trace?: never;
|
|
92
|
+
};
|
|
93
|
+
"/orgs/{org}/internal-apps": {
|
|
94
|
+
parameters: {
|
|
95
|
+
query?: never;
|
|
96
|
+
header?: never;
|
|
97
|
+
path?: never;
|
|
98
|
+
cookie?: never;
|
|
99
|
+
};
|
|
100
|
+
/** The organization's own apps, as saved */
|
|
101
|
+
get: operations["internalApps"];
|
|
102
|
+
put?: never;
|
|
103
|
+
post?: never;
|
|
104
|
+
delete?: never;
|
|
105
|
+
options?: never;
|
|
106
|
+
head?: never;
|
|
107
|
+
patch?: never;
|
|
108
|
+
trace?: never;
|
|
109
|
+
};
|
|
110
|
+
"/orgs/{org}/internal-apps/{app}": {
|
|
111
|
+
parameters: {
|
|
112
|
+
query?: never;
|
|
113
|
+
header?: never;
|
|
114
|
+
path?: never;
|
|
115
|
+
cookie?: never;
|
|
116
|
+
};
|
|
117
|
+
/** One of the organization's own apps, as saved */
|
|
118
|
+
get: operations["internalApp"];
|
|
119
|
+
/** Adds or replaces one of the organization's own apps; a replace may cut or remove its connection and agents' access */
|
|
120
|
+
put: operations["saveInternalApp"];
|
|
121
|
+
post?: never;
|
|
122
|
+
/** Removes one of the organization's own apps, its connection and every agent's access to it */
|
|
123
|
+
delete: operations["deleteInternalApp"];
|
|
124
|
+
options?: never;
|
|
125
|
+
head?: never;
|
|
126
|
+
patch?: never;
|
|
127
|
+
trace?: never;
|
|
128
|
+
};
|
|
129
|
+
"/internal-apps/draft": {
|
|
130
|
+
parameters: {
|
|
131
|
+
query?: never;
|
|
132
|
+
header?: never;
|
|
133
|
+
path?: never;
|
|
134
|
+
cookie?: never;
|
|
135
|
+
};
|
|
136
|
+
get?: never;
|
|
137
|
+
put?: never;
|
|
138
|
+
/** Drafts an internal app's definition from an OpenAPI 3.x spec (JSON) */
|
|
139
|
+
post: operations["draftInternalApp"];
|
|
140
|
+
delete?: never;
|
|
141
|
+
options?: never;
|
|
142
|
+
head?: never;
|
|
143
|
+
patch?: never;
|
|
144
|
+
trace?: never;
|
|
145
|
+
};
|
|
76
146
|
"/providers": {
|
|
77
147
|
parameters: {
|
|
78
148
|
query?: never;
|
|
@@ -1828,6 +1898,36 @@ export interface components {
|
|
|
1828
1898
|
name: string;
|
|
1829
1899
|
detail: string | null;
|
|
1830
1900
|
};
|
|
1901
|
+
InternalApp: {
|
|
1902
|
+
id: string;
|
|
1903
|
+
organizationId: string;
|
|
1904
|
+
/** @description A connector.json with an http, soap, odata or sql block, as written (docs/http-connector.md) */
|
|
1905
|
+
definition: {
|
|
1906
|
+
[key: string]: unknown;
|
|
1907
|
+
};
|
|
1908
|
+
problem: string | null;
|
|
1909
|
+
createdBy: string;
|
|
1910
|
+
/** @description ISO 8601, UTC */
|
|
1911
|
+
createdAt: string;
|
|
1912
|
+
updatedBy: string;
|
|
1913
|
+
/** @description ISO 8601, UTC */
|
|
1914
|
+
updatedAt: string;
|
|
1915
|
+
};
|
|
1916
|
+
InternalAppDraft: {
|
|
1917
|
+
/** @description A connector.json with an http, soap, odata or sql block, as written (docs/http-connector.md) */
|
|
1918
|
+
definition: {
|
|
1919
|
+
[key: string]: unknown;
|
|
1920
|
+
};
|
|
1921
|
+
notes: string[];
|
|
1922
|
+
problem: string | null;
|
|
1923
|
+
};
|
|
1924
|
+
InternalAppSaved: {
|
|
1925
|
+
app: components["schemas"]["InternalApp"];
|
|
1926
|
+
connector: components["schemas"]["Connector"];
|
|
1927
|
+
created: boolean;
|
|
1928
|
+
disconnected: boolean;
|
|
1929
|
+
grantsRemoved: string[];
|
|
1930
|
+
};
|
|
1831
1931
|
Limits: {
|
|
1832
1932
|
[key: string]: string[] | string | {
|
|
1833
1933
|
[key: string]: string;
|
|
@@ -2456,6 +2556,380 @@ export interface operations {
|
|
|
2456
2556
|
};
|
|
2457
2557
|
};
|
|
2458
2558
|
};
|
|
2559
|
+
orgConnectors: {
|
|
2560
|
+
parameters: {
|
|
2561
|
+
query?: never;
|
|
2562
|
+
header?: never;
|
|
2563
|
+
path: {
|
|
2564
|
+
org: string;
|
|
2565
|
+
};
|
|
2566
|
+
cookie?: never;
|
|
2567
|
+
};
|
|
2568
|
+
requestBody?: never;
|
|
2569
|
+
responses: {
|
|
2570
|
+
/** @description OK */
|
|
2571
|
+
200: {
|
|
2572
|
+
headers: {
|
|
2573
|
+
[name: string]: unknown;
|
|
2574
|
+
};
|
|
2575
|
+
content: {
|
|
2576
|
+
"application/json": components["schemas"]["Connector"][];
|
|
2577
|
+
};
|
|
2578
|
+
};
|
|
2579
|
+
/** @description Refused */
|
|
2580
|
+
400: {
|
|
2581
|
+
headers: {
|
|
2582
|
+
[name: string]: unknown;
|
|
2583
|
+
};
|
|
2584
|
+
content: {
|
|
2585
|
+
"application/json": components["schemas"]["Error"];
|
|
2586
|
+
};
|
|
2587
|
+
};
|
|
2588
|
+
/** @description Refused */
|
|
2589
|
+
401: {
|
|
2590
|
+
headers: {
|
|
2591
|
+
[name: string]: unknown;
|
|
2592
|
+
};
|
|
2593
|
+
content: {
|
|
2594
|
+
"application/json": components["schemas"]["Error"];
|
|
2595
|
+
};
|
|
2596
|
+
};
|
|
2597
|
+
/** @description Refused */
|
|
2598
|
+
404: {
|
|
2599
|
+
headers: {
|
|
2600
|
+
[name: string]: unknown;
|
|
2601
|
+
};
|
|
2602
|
+
content: {
|
|
2603
|
+
"application/json": components["schemas"]["Error"];
|
|
2604
|
+
};
|
|
2605
|
+
};
|
|
2606
|
+
/** @description Refused */
|
|
2607
|
+
422: {
|
|
2608
|
+
headers: {
|
|
2609
|
+
[name: string]: unknown;
|
|
2610
|
+
};
|
|
2611
|
+
content: {
|
|
2612
|
+
"application/json": components["schemas"]["Error"];
|
|
2613
|
+
};
|
|
2614
|
+
};
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2617
|
+
internalApps: {
|
|
2618
|
+
parameters: {
|
|
2619
|
+
query?: never;
|
|
2620
|
+
header?: never;
|
|
2621
|
+
path: {
|
|
2622
|
+
org: string;
|
|
2623
|
+
};
|
|
2624
|
+
cookie?: never;
|
|
2625
|
+
};
|
|
2626
|
+
requestBody?: never;
|
|
2627
|
+
responses: {
|
|
2628
|
+
/** @description OK */
|
|
2629
|
+
200: {
|
|
2630
|
+
headers: {
|
|
2631
|
+
[name: string]: unknown;
|
|
2632
|
+
};
|
|
2633
|
+
content: {
|
|
2634
|
+
"application/json": components["schemas"]["InternalApp"][];
|
|
2635
|
+
};
|
|
2636
|
+
};
|
|
2637
|
+
/** @description Refused */
|
|
2638
|
+
400: {
|
|
2639
|
+
headers: {
|
|
2640
|
+
[name: string]: unknown;
|
|
2641
|
+
};
|
|
2642
|
+
content: {
|
|
2643
|
+
"application/json": components["schemas"]["Error"];
|
|
2644
|
+
};
|
|
2645
|
+
};
|
|
2646
|
+
/** @description Refused */
|
|
2647
|
+
401: {
|
|
2648
|
+
headers: {
|
|
2649
|
+
[name: string]: unknown;
|
|
2650
|
+
};
|
|
2651
|
+
content: {
|
|
2652
|
+
"application/json": components["schemas"]["Error"];
|
|
2653
|
+
};
|
|
2654
|
+
};
|
|
2655
|
+
/** @description Refused */
|
|
2656
|
+
404: {
|
|
2657
|
+
headers: {
|
|
2658
|
+
[name: string]: unknown;
|
|
2659
|
+
};
|
|
2660
|
+
content: {
|
|
2661
|
+
"application/json": components["schemas"]["Error"];
|
|
2662
|
+
};
|
|
2663
|
+
};
|
|
2664
|
+
/** @description Refused */
|
|
2665
|
+
422: {
|
|
2666
|
+
headers: {
|
|
2667
|
+
[name: string]: unknown;
|
|
2668
|
+
};
|
|
2669
|
+
content: {
|
|
2670
|
+
"application/json": components["schemas"]["Error"];
|
|
2671
|
+
};
|
|
2672
|
+
};
|
|
2673
|
+
};
|
|
2674
|
+
};
|
|
2675
|
+
internalApp: {
|
|
2676
|
+
parameters: {
|
|
2677
|
+
query?: never;
|
|
2678
|
+
header?: never;
|
|
2679
|
+
path: {
|
|
2680
|
+
org: string;
|
|
2681
|
+
app: string;
|
|
2682
|
+
};
|
|
2683
|
+
cookie?: never;
|
|
2684
|
+
};
|
|
2685
|
+
requestBody?: never;
|
|
2686
|
+
responses: {
|
|
2687
|
+
/** @description OK */
|
|
2688
|
+
200: {
|
|
2689
|
+
headers: {
|
|
2690
|
+
[name: string]: unknown;
|
|
2691
|
+
};
|
|
2692
|
+
content: {
|
|
2693
|
+
"application/json": components["schemas"]["InternalApp"];
|
|
2694
|
+
};
|
|
2695
|
+
};
|
|
2696
|
+
/** @description Refused */
|
|
2697
|
+
400: {
|
|
2698
|
+
headers: {
|
|
2699
|
+
[name: string]: unknown;
|
|
2700
|
+
};
|
|
2701
|
+
content: {
|
|
2702
|
+
"application/json": components["schemas"]["Error"];
|
|
2703
|
+
};
|
|
2704
|
+
};
|
|
2705
|
+
/** @description Refused */
|
|
2706
|
+
401: {
|
|
2707
|
+
headers: {
|
|
2708
|
+
[name: string]: unknown;
|
|
2709
|
+
};
|
|
2710
|
+
content: {
|
|
2711
|
+
"application/json": components["schemas"]["Error"];
|
|
2712
|
+
};
|
|
2713
|
+
};
|
|
2714
|
+
/** @description Refused */
|
|
2715
|
+
404: {
|
|
2716
|
+
headers: {
|
|
2717
|
+
[name: string]: unknown;
|
|
2718
|
+
};
|
|
2719
|
+
content: {
|
|
2720
|
+
"application/json": components["schemas"]["Error"];
|
|
2721
|
+
};
|
|
2722
|
+
};
|
|
2723
|
+
/** @description Refused */
|
|
2724
|
+
422: {
|
|
2725
|
+
headers: {
|
|
2726
|
+
[name: string]: unknown;
|
|
2727
|
+
};
|
|
2728
|
+
content: {
|
|
2729
|
+
"application/json": components["schemas"]["Error"];
|
|
2730
|
+
};
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2733
|
+
};
|
|
2734
|
+
saveInternalApp: {
|
|
2735
|
+
parameters: {
|
|
2736
|
+
query?: never;
|
|
2737
|
+
header?: never;
|
|
2738
|
+
path: {
|
|
2739
|
+
org: string;
|
|
2740
|
+
app: string;
|
|
2741
|
+
};
|
|
2742
|
+
cookie?: never;
|
|
2743
|
+
};
|
|
2744
|
+
requestBody: {
|
|
2745
|
+
content: {
|
|
2746
|
+
"application/json": {
|
|
2747
|
+
/** @description A connector.json with an http, soap, odata or sql block, as written (docs/http-connector.md) */
|
|
2748
|
+
definition: {
|
|
2749
|
+
[key: string]: unknown;
|
|
2750
|
+
};
|
|
2751
|
+
by: string;
|
|
2752
|
+
};
|
|
2753
|
+
};
|
|
2754
|
+
};
|
|
2755
|
+
responses: {
|
|
2756
|
+
/** @description OK */
|
|
2757
|
+
200: {
|
|
2758
|
+
headers: {
|
|
2759
|
+
[name: string]: unknown;
|
|
2760
|
+
};
|
|
2761
|
+
content: {
|
|
2762
|
+
"application/json": components["schemas"]["InternalAppSaved"];
|
|
2763
|
+
};
|
|
2764
|
+
};
|
|
2765
|
+
/** @description Refused */
|
|
2766
|
+
400: {
|
|
2767
|
+
headers: {
|
|
2768
|
+
[name: string]: unknown;
|
|
2769
|
+
};
|
|
2770
|
+
content: {
|
|
2771
|
+
"application/json": components["schemas"]["Error"];
|
|
2772
|
+
};
|
|
2773
|
+
};
|
|
2774
|
+
/** @description Refused */
|
|
2775
|
+
401: {
|
|
2776
|
+
headers: {
|
|
2777
|
+
[name: string]: unknown;
|
|
2778
|
+
};
|
|
2779
|
+
content: {
|
|
2780
|
+
"application/json": components["schemas"]["Error"];
|
|
2781
|
+
};
|
|
2782
|
+
};
|
|
2783
|
+
/** @description Refused */
|
|
2784
|
+
404: {
|
|
2785
|
+
headers: {
|
|
2786
|
+
[name: string]: unknown;
|
|
2787
|
+
};
|
|
2788
|
+
content: {
|
|
2789
|
+
"application/json": components["schemas"]["Error"];
|
|
2790
|
+
};
|
|
2791
|
+
};
|
|
2792
|
+
/** @description Refused */
|
|
2793
|
+
422: {
|
|
2794
|
+
headers: {
|
|
2795
|
+
[name: string]: unknown;
|
|
2796
|
+
};
|
|
2797
|
+
content: {
|
|
2798
|
+
"application/json": components["schemas"]["Error"];
|
|
2799
|
+
};
|
|
2800
|
+
};
|
|
2801
|
+
};
|
|
2802
|
+
};
|
|
2803
|
+
deleteInternalApp: {
|
|
2804
|
+
parameters: {
|
|
2805
|
+
query?: never;
|
|
2806
|
+
header?: never;
|
|
2807
|
+
path: {
|
|
2808
|
+
org: string;
|
|
2809
|
+
app: string;
|
|
2810
|
+
};
|
|
2811
|
+
cookie?: never;
|
|
2812
|
+
};
|
|
2813
|
+
requestBody: {
|
|
2814
|
+
content: {
|
|
2815
|
+
"application/json": {
|
|
2816
|
+
by: string;
|
|
2817
|
+
};
|
|
2818
|
+
};
|
|
2819
|
+
};
|
|
2820
|
+
responses: {
|
|
2821
|
+
/** @description OK */
|
|
2822
|
+
204: {
|
|
2823
|
+
headers: {
|
|
2824
|
+
[name: string]: unknown;
|
|
2825
|
+
};
|
|
2826
|
+
content?: never;
|
|
2827
|
+
};
|
|
2828
|
+
/** @description Refused */
|
|
2829
|
+
400: {
|
|
2830
|
+
headers: {
|
|
2831
|
+
[name: string]: unknown;
|
|
2832
|
+
};
|
|
2833
|
+
content: {
|
|
2834
|
+
"application/json": components["schemas"]["Error"];
|
|
2835
|
+
};
|
|
2836
|
+
};
|
|
2837
|
+
/** @description Refused */
|
|
2838
|
+
401: {
|
|
2839
|
+
headers: {
|
|
2840
|
+
[name: string]: unknown;
|
|
2841
|
+
};
|
|
2842
|
+
content: {
|
|
2843
|
+
"application/json": components["schemas"]["Error"];
|
|
2844
|
+
};
|
|
2845
|
+
};
|
|
2846
|
+
/** @description Refused */
|
|
2847
|
+
404: {
|
|
2848
|
+
headers: {
|
|
2849
|
+
[name: string]: unknown;
|
|
2850
|
+
};
|
|
2851
|
+
content: {
|
|
2852
|
+
"application/json": components["schemas"]["Error"];
|
|
2853
|
+
};
|
|
2854
|
+
};
|
|
2855
|
+
/** @description Refused */
|
|
2856
|
+
422: {
|
|
2857
|
+
headers: {
|
|
2858
|
+
[name: string]: unknown;
|
|
2859
|
+
};
|
|
2860
|
+
content: {
|
|
2861
|
+
"application/json": components["schemas"]["Error"];
|
|
2862
|
+
};
|
|
2863
|
+
};
|
|
2864
|
+
};
|
|
2865
|
+
};
|
|
2866
|
+
draftInternalApp: {
|
|
2867
|
+
parameters: {
|
|
2868
|
+
query?: never;
|
|
2869
|
+
header?: never;
|
|
2870
|
+
path?: never;
|
|
2871
|
+
cookie?: never;
|
|
2872
|
+
};
|
|
2873
|
+
requestBody: {
|
|
2874
|
+
content: {
|
|
2875
|
+
"application/json": {
|
|
2876
|
+
spec: {
|
|
2877
|
+
[key: string]: unknown;
|
|
2878
|
+
};
|
|
2879
|
+
id: string;
|
|
2880
|
+
operations?: string[];
|
|
2881
|
+
tags?: string[];
|
|
2882
|
+
};
|
|
2883
|
+
};
|
|
2884
|
+
};
|
|
2885
|
+
responses: {
|
|
2886
|
+
/** @description OK */
|
|
2887
|
+
200: {
|
|
2888
|
+
headers: {
|
|
2889
|
+
[name: string]: unknown;
|
|
2890
|
+
};
|
|
2891
|
+
content: {
|
|
2892
|
+
"application/json": components["schemas"]["InternalAppDraft"];
|
|
2893
|
+
};
|
|
2894
|
+
};
|
|
2895
|
+
/** @description Refused */
|
|
2896
|
+
400: {
|
|
2897
|
+
headers: {
|
|
2898
|
+
[name: string]: unknown;
|
|
2899
|
+
};
|
|
2900
|
+
content: {
|
|
2901
|
+
"application/json": components["schemas"]["Error"];
|
|
2902
|
+
};
|
|
2903
|
+
};
|
|
2904
|
+
/** @description Refused */
|
|
2905
|
+
401: {
|
|
2906
|
+
headers: {
|
|
2907
|
+
[name: string]: unknown;
|
|
2908
|
+
};
|
|
2909
|
+
content: {
|
|
2910
|
+
"application/json": components["schemas"]["Error"];
|
|
2911
|
+
};
|
|
2912
|
+
};
|
|
2913
|
+
/** @description Refused */
|
|
2914
|
+
404: {
|
|
2915
|
+
headers: {
|
|
2916
|
+
[name: string]: unknown;
|
|
2917
|
+
};
|
|
2918
|
+
content: {
|
|
2919
|
+
"application/json": components["schemas"]["Error"];
|
|
2920
|
+
};
|
|
2921
|
+
};
|
|
2922
|
+
/** @description Refused */
|
|
2923
|
+
422: {
|
|
2924
|
+
headers: {
|
|
2925
|
+
[name: string]: unknown;
|
|
2926
|
+
};
|
|
2927
|
+
content: {
|
|
2928
|
+
"application/json": components["schemas"]["Error"];
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2931
|
+
};
|
|
2932
|
+
};
|
|
2459
2933
|
providers: {
|
|
2460
2934
|
parameters: {
|
|
2461
2935
|
query?: never;
|
package/lib/steps.d.ts
CHANGED
|
@@ -358,11 +358,7 @@ export declare function newKeySetup(ticked: Connector[], providers: Provider[]):
|
|
|
358
358
|
body?: {
|
|
359
359
|
[key: string]: unknown;
|
|
360
360
|
};
|
|
361
|
-
ifEmpty
|
|
362
|
-
/** A step whose text fills in a value saved at another step waits until it is saved: its
|
|
363
|
-
* words would show the raw {name} and its commands would not run. */
|
|
364
|
-
? /** A step whose text fills in a value saved at another step waits until it is saved: its
|
|
365
|
-
* words would show the raw {name} and its commands would not run. */: string;
|
|
361
|
+
ifEmpty?: string;
|
|
366
362
|
} | {
|
|
367
363
|
label: string;
|
|
368
364
|
check: string;
|
|
@@ -946,11 +942,7 @@ export declare function newKeySetup(ticked: Connector[], providers: Provider[]):
|
|
|
946
942
|
body?: {
|
|
947
943
|
[key: string]: unknown;
|
|
948
944
|
};
|
|
949
|
-
ifEmpty
|
|
950
|
-
/** A step whose text fills in a value saved at another step waits until it is saved: its
|
|
951
|
-
* words would show the raw {name} and its commands would not run. */
|
|
952
|
-
? /** A step whose text fills in a value saved at another step waits until it is saved: its
|
|
953
|
-
* words would show the raw {name} and its commands would not run. */: string;
|
|
945
|
+
ifEmpty?: string;
|
|
954
946
|
} | {
|
|
955
947
|
label: string;
|
|
956
948
|
check: string;
|
package/lib/types.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ export type EventTriggerInput = Body<"setEventTrigger">;
|
|
|
47
47
|
export type EventRun = S["EventRun"];
|
|
48
48
|
export type ClaudeKey = S["ClaudeKey"];
|
|
49
49
|
export type ClaudeAgent = S["ClaudeAgent"];
|
|
50
|
+
export type InternalApp = S["InternalApp"];
|
|
51
|
+
export type InternalAppSaved = S["InternalAppSaved"];
|
|
52
|
+
export type InternalAppDraft = S["InternalAppDraft"];
|
|
50
53
|
export type Step = Connector["setup"][number];
|
|
51
54
|
export type AgentStep = Provider["addAgent"][number];
|
|
52
55
|
export type Setting = NonNullable<Step["settings"]>[number];
|
package/package.json
CHANGED