@tai42/studio-sdk 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/useApi.d.ts +24 -4
- package/dist/hooks/useApi.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/hooks/useApi.d.ts
CHANGED
|
@@ -892,6 +892,26 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
892
892
|
next_page: number | null;
|
|
893
893
|
order: "asc" | "desc";
|
|
894
894
|
}>;
|
|
895
|
+
readonly getWebEntryGate: (identity: string, signal?: AbortSignal) => Promise<{
|
|
896
|
+
enabled: boolean;
|
|
897
|
+
codes: {
|
|
898
|
+
created_at: string;
|
|
899
|
+
label: string | null;
|
|
900
|
+
code_id: string;
|
|
901
|
+
expires_at: string | null;
|
|
902
|
+
}[];
|
|
903
|
+
}>;
|
|
904
|
+
readonly setWebEntryGate: (identity: string, enabled: boolean) => Promise<{
|
|
905
|
+
enabled: boolean;
|
|
906
|
+
}>;
|
|
907
|
+
readonly mintWebEntryCode: (identity: string, body: import("@tai42/api-client").WebEntryCodeMintBody) => Promise<{
|
|
908
|
+
code: string;
|
|
909
|
+
code_id: string;
|
|
910
|
+
expires_at: string | null;
|
|
911
|
+
}>;
|
|
912
|
+
readonly revokeWebEntryCode: (identity: string, codeId: string) => Promise<{
|
|
913
|
+
status: "revoked";
|
|
914
|
+
}>;
|
|
895
915
|
readonly listNotifications: (signal?: AbortSignal) => Promise<{
|
|
896
916
|
notifications: {
|
|
897
917
|
message: string;
|
|
@@ -962,20 +982,20 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
962
982
|
}>;
|
|
963
983
|
readonly createTriggerLink: (body: import("@tai42/api-client").TriggerLinkCreateBody) => Promise<{
|
|
964
984
|
name: string;
|
|
985
|
+
expires_at: string | null;
|
|
965
986
|
token: string;
|
|
966
987
|
topic: string;
|
|
967
988
|
trigger_path: string;
|
|
968
|
-
expires_at: string | null;
|
|
969
989
|
}>;
|
|
970
990
|
readonly listTriggerLinks: (signal?: AbortSignal) => Promise<{
|
|
971
991
|
items: {
|
|
972
992
|
name: string;
|
|
973
993
|
created_at: string;
|
|
974
994
|
execution_key: string;
|
|
995
|
+
expires_at: string | null;
|
|
975
996
|
topic: string;
|
|
976
997
|
tool_kwargs: Record<string, unknown> | null;
|
|
977
998
|
trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
|
|
978
|
-
expires_at: string | null;
|
|
979
999
|
created_by: string | null;
|
|
980
1000
|
token_hash_prefix: string;
|
|
981
1001
|
}[];
|
|
@@ -1128,12 +1148,12 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1128
1148
|
updated: boolean;
|
|
1129
1149
|
}>;
|
|
1130
1150
|
readonly revokeApiKey: (userId: string) => Promise<{
|
|
1131
|
-
user_id: string;
|
|
1132
1151
|
revoked: boolean;
|
|
1152
|
+
user_id: string;
|
|
1133
1153
|
}>;
|
|
1134
1154
|
readonly createClaimLink: (body: import("@tai42/api-client").ClaimLinkBody) => Promise<{
|
|
1135
|
-
token: string;
|
|
1136
1155
|
expires_at: string;
|
|
1156
|
+
token: string;
|
|
1137
1157
|
claim_path: string;
|
|
1138
1158
|
}>;
|
|
1139
1159
|
readonly getMe: (signal?: AbortSignal) => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../src/hooks/useApi.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,eAAO,MAAM,WAAW;;+
|
|
1
|
+
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../src/hooks/useApi.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,eAAO,MAAM,WAAW;;+BAWk1W,CAAC;iDAAsF,CAAC;;;;;uCAAuM,CAAC;;;;;4EAAgO,CA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CAA0hC,CAAC;0CAA+E,CAAC;qDAA0F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAA+0D,CAAC;;;;;;;;;;;;+BAAkW,CAAC;oCAAuE,CAAC;;;;;;wCAAga,CAAC;SAXzm+D,CAAC;AAE/C,wBAAgB,MAAM,IAAI,SAAS,CAMlC;AAED,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tai42/studio-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The Studio plugin contract, shared UI components, and hooks that every feature builds on.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "tai42 <oss@tai42.ai>",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@radix-ui/react-select": "^2.3.2",
|
|
90
90
|
"@radix-ui/react-tabs": "^1.1.16",
|
|
91
91
|
"@radix-ui/react-tooltip": "^1.2.11",
|
|
92
|
-
"@tai42/api-client": "1.
|
|
92
|
+
"@tai42/api-client": "1.3.0"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
95
|
"build": "tsc -b tsconfig.build.json && node scripts/copy-assets.mjs",
|