@w6w/embed 0.2.26 → 0.2.27
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/{CreateFunctionModal-DScxp_LN.js → CreateFunctionModal-B3LpcuI9.js} +2 -2
- package/dist/{CreateFunctionModal-DScxp_LN.js.map → CreateFunctionModal-B3LpcuI9.js.map} +1 -1
- package/dist/DocumentFormModal-DieWYFi4.js +175 -0
- package/dist/DocumentFormModal-DieWYFi4.js.map +1 -0
- package/dist/{ImportSpecModal-VdYN1QeZ.js → ImportSpecModal-xwTzj4KB.js} +2 -2
- package/dist/{ImportSpecModal-VdYN1QeZ.js.map → ImportSpecModal-xwTzj4KB.js.map} +1 -1
- package/dist/ModelRoutesManager-DtByS4mE.js +422 -0
- package/dist/ModelRoutesManager-DtByS4mE.js.map +1 -0
- package/dist/{WorkflowEditor-CGKoeSG7.js → WorkflowEditor-CvWkVmFn.js} +2 -2
- package/dist/{WorkflowEditor-CGKoeSG7.js.map → WorkflowEditor-CvWkVmFn.js.map} +1 -1
- package/dist/ai-keys-D676ly41.js +53 -0
- package/dist/ai-keys-D676ly41.js.map +1 -0
- package/dist/credentials-4Nf2GfMc.js +212 -0
- package/dist/credentials-4Nf2GfMc.js.map +1 -0
- package/dist/{editor-tools-Brw0cv2F.js → editor-tools-CVYTsVFN.js} +326 -326
- package/dist/editor-tools-CVYTsVFN.js.map +1 -0
- package/dist/editor.mjs +1 -1
- package/dist/editors.mjs +7 -7
- package/dist/{endpoints-DSRo1Lc5.js → endpoints-DArAqoLT.js} +15 -15
- package/dist/endpoints-DArAqoLT.js.map +1 -0
- package/dist/forms/ModelRoutesManager.d.ts +8 -0
- package/dist/forms.mjs +128 -133
- package/dist/forms.mjs.map +1 -1
- package/dist/index.mjs +16 -16
- package/dist/lib/callable-descriptors.d.ts +1 -1
- package/dist/lib/document-upload.d.ts +8 -0
- package/dist/lists/MyAiKeys.d.ts +5 -0
- package/dist/lists/TagChips.d.ts +4 -0
- package/dist/lists.d.ts +2 -0
- package/dist/lists.mjs +1589 -1166
- package/dist/lists.mjs.map +1 -1
- package/dist/models-CI0vLJ6o.js +346 -0
- package/dist/models-CI0vLJ6o.js.map +1 -0
- package/dist/rail.mjs +1 -1
- package/dist/repos/ai-keys.d.ts +14 -0
- package/dist/repos/credentials.d.ts +14 -14
- package/dist/repos/index.d.ts +1 -0
- package/dist/repos/models.d.ts +53 -4
- package/dist/repos.mjs +177 -162
- package/dist/repos.mjs.map +1 -1
- package/dist/{spec-import-SWOonsNr.js → spec-import-0B6oUewa.js} +5 -5
- package/dist/{spec-import-SWOonsNr.js.map → spec-import-0B6oUewa.js.map} +1 -1
- package/package.json +5 -5
- package/src/styles.css +23 -0
- package/dist/DocumentFormModal-Br4s8wmi.js +0 -89
- package/dist/DocumentFormModal-Br4s8wmi.js.map +0 -1
- package/dist/ModelRoutesManager-Bv6qefnq.js +0 -345
- package/dist/ModelRoutesManager-Bv6qefnq.js.map +0 -1
- package/dist/credentials-CMR_wEvx.js +0 -196
- package/dist/credentials-CMR_wEvx.js.map +0 -1
- package/dist/editor-tools-Brw0cv2F.js.map +0 -1
- package/dist/endpoints-DSRo1Lc5.js.map +0 -1
- package/dist/models-CK1KHd39.js +0 -311
- package/dist/models-CK1KHd39.js.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useQuery as a, useQueryClient as i, useMutation as r } from "@tanstack/react-query";
|
|
2
|
+
import { u as s } from "./client-context-CX61Bgw-.js";
|
|
3
|
+
const c = ["me-capabilities"], u = ["ai-key-defaults"];
|
|
4
|
+
async function o(e) {
|
|
5
|
+
var n;
|
|
6
|
+
const t = await e.me();
|
|
7
|
+
return ((n = t == null ? void 0 : t.capabilities) == null ? void 0 : n.userScopedCredentials) === !0;
|
|
8
|
+
}
|
|
9
|
+
function d() {
|
|
10
|
+
const e = s();
|
|
11
|
+
return a({
|
|
12
|
+
queryKey: c,
|
|
13
|
+
queryFn: () => o(e),
|
|
14
|
+
retry: !1
|
|
15
|
+
}).data === !0;
|
|
16
|
+
}
|
|
17
|
+
function l(e) {
|
|
18
|
+
return e.console.aiKeys.defaults();
|
|
19
|
+
}
|
|
20
|
+
function K(e = !0) {
|
|
21
|
+
const t = s();
|
|
22
|
+
return a({
|
|
23
|
+
queryKey: u,
|
|
24
|
+
queryFn: () => l(t),
|
|
25
|
+
enabled: e,
|
|
26
|
+
retry: !1
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function p() {
|
|
30
|
+
const e = s(), t = i();
|
|
31
|
+
return r({
|
|
32
|
+
mutationFn: (n) => e.console.aiKeys.setDefault(n.providerAppId, n.connectionId),
|
|
33
|
+
onSuccess: () => t.invalidateQueries({ queryKey: u })
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function m() {
|
|
37
|
+
const e = s(), t = i();
|
|
38
|
+
return r({
|
|
39
|
+
mutationFn: (n) => e.console.aiKeys.clearDefault(n),
|
|
40
|
+
onSuccess: () => t.invalidateQueries({ queryKey: u })
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
u as a,
|
|
45
|
+
K as b,
|
|
46
|
+
m as c,
|
|
47
|
+
p as d,
|
|
48
|
+
o as f,
|
|
49
|
+
l,
|
|
50
|
+
c as m,
|
|
51
|
+
d as u
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=ai-keys-D676ly41.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-keys-D676ly41.js","sources":["../src/repos/ai-keys.ts"],"sourcesContent":["/**\n * The personal-AI-key repo: whether this deployment lets a caller own \"Only me\" credentials, and\n * the caller's per-provider defaults, over `client.me()` and `client.console.aiKeys.*`.\n *\n * `useUserScopedCredentialsEnabled` is the one capability seam (Studio's route editor reads it\n * too). It is `true` ONLY for the boolean `true`: loading, an error, an older server and any other\n * value (a string, `1`) all hide the user options. Its key is `[\"me-capabilities\"]`, never `[\"me\"]`\n * (Studio's own `[\"me\"]` holds a different shape). The embed cache is already identity-scoped\n * (`W6WEmbedProvider` builds a new QueryClient per identity), so no subject sits in these keys.\n */\nimport { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport type { W6WClient } from \"@w6w/sdk\";\nimport type { AiKeyDefault } from \"@w6w/sdk/console\";\nimport { useEmbedClient } from \"../draft/client-context.ts\";\n\nexport type { AiKeyDefault } from \"@w6w/sdk/console\";\n\nexport const meCapabilitiesKey = [\"me-capabilities\"] as const;\nexport const aiKeyDefaultsKey = [\"ai-key-defaults\"] as const;\n\nexport async function fetchUserScopedCredentialsEnabled(client: W6WClient): Promise<boolean> {\n const me = await client.me();\n return me?.capabilities?.userScopedCredentials === true;\n}\n\nexport function useUserScopedCredentialsEnabled(): boolean {\n const client = useEmbedClient();\n const q = useQuery({\n queryKey: meCapabilitiesKey,\n queryFn: () => fetchUserScopedCredentialsEnabled(client),\n retry: false,\n });\n return q.data === true;\n}\n\nexport function listAiKeyDefaults(client: W6WClient): Promise<AiKeyDefault[]> {\n return client.console.aiKeys.defaults();\n}\n\nexport function useAiKeyDefaultsQuery(enabled = true) {\n const client = useEmbedClient();\n return useQuery({\n queryKey: aiKeyDefaultsKey,\n queryFn: () => listAiKeyDefaults(client),\n enabled,\n retry: false,\n });\n}\n\nexport function useSetAiKeyDefaultMutation() {\n const client = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (args: { providerAppId: string; connectionId: string }) =>\n client.console.aiKeys.setDefault(args.providerAppId, args.connectionId),\n onSuccess: () => qc.invalidateQueries({ queryKey: aiKeyDefaultsKey }),\n });\n}\n\nexport function useClearAiKeyDefaultMutation() {\n const client = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (providerAppId: string) => client.console.aiKeys.clearDefault(providerAppId),\n onSuccess: () => qc.invalidateQueries({ queryKey: aiKeyDefaultsKey }),\n });\n}\n"],"names":["meCapabilitiesKey","aiKeyDefaultsKey","fetchUserScopedCredentialsEnabled","client","me","_a","useUserScopedCredentialsEnabled","useEmbedClient","useQuery","listAiKeyDefaults","useAiKeyDefaultsQuery","enabled","useSetAiKeyDefaultMutation","qc","useQueryClient","useMutation","args","useClearAiKeyDefaultMutation","providerAppId"],"mappings":";;AAiBO,MAAMA,IAAoB,CAAC,iBAAiB,GACtCC,IAAmB,CAAC,iBAAiB;AAElD,eAAsBC,EAAkCC,GAAqC;;AAC3F,QAAMC,IAAK,MAAMD,EAAO,GAAA;AACxB,WAAOE,IAAAD,KAAA,gBAAAA,EAAI,iBAAJ,gBAAAC,EAAkB,2BAA0B;AACrD;AAEO,SAASC,IAA2C;AACzD,QAAMH,IAASI,EAAA;AAMf,SALUC,EAAS;AAAA,IACjB,UAAUR;AAAA,IACV,SAAS,MAAME,EAAkCC,CAAM;AAAA,IACvD,OAAO;AAAA,EAAA,CACR,EACQ,SAAS;AACpB;AAEO,SAASM,EAAkBN,GAA4C;AAC5E,SAAOA,EAAO,QAAQ,OAAO,SAAA;AAC/B;AAEO,SAASO,EAAsBC,IAAU,IAAM;AACpD,QAAMR,IAASI,EAAA;AACf,SAAOC,EAAS;AAAA,IACd,UAAUP;AAAA,IACV,SAAS,MAAMQ,EAAkBN,CAAM;AAAA,IACvC,SAAAQ;AAAA,IACA,OAAO;AAAA,EAAA,CACR;AACH;AAEO,SAASC,IAA6B;AAC3C,QAAMT,IAASI,EAAA,GACTM,IAAKC,EAAA;AACX,SAAOC,EAAY;AAAA,IACjB,YAAY,CAACC,MACXb,EAAO,QAAQ,OAAO,WAAWa,EAAK,eAAeA,EAAK,YAAY;AAAA,IACxE,WAAW,MAAMH,EAAG,kBAAkB,EAAE,UAAUZ,GAAkB;AAAA,EAAA,CACrE;AACH;AAEO,SAASgB,IAA+B;AAC7C,QAAMd,IAASI,EAAA,GACTM,IAAKC,EAAA;AACX,SAAOC,EAAY;AAAA,IACjB,YAAY,CAACG,MAA0Bf,EAAO,QAAQ,OAAO,aAAae,CAAa;AAAA,IACvF,WAAW,MAAML,EAAG,kBAAkB,EAAE,UAAUZ,GAAkB;AAAA,EAAA,CACrE;AACH;"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { useQueryClient as u, useMutation as o, useQuery as l } from "@tanstack/react-query";
|
|
2
|
+
import { u as s } from "./client-context-CX61Bgw-.js";
|
|
3
|
+
import { c as w } from "./connections-CzsCyIxY.js";
|
|
4
|
+
const c = ["credentials"], d = (e) => ["credential", e], T = ["credential-types"], K = (e) => ["credential-dependents", e];
|
|
5
|
+
function y(e, t) {
|
|
6
|
+
e.invalidateQueries({ queryKey: c }), e.invalidateQueries({ queryKey: d(t) }), e.invalidateQueries({ queryKey: w }), e.invalidateQueries({ queryKey: ["connection"] }), e.invalidateQueries({ queryKey: ["app-connections"] });
|
|
7
|
+
}
|
|
8
|
+
const D = (e) => e === "user" ? "Only me" : "This account";
|
|
9
|
+
function C(e, t) {
|
|
10
|
+
return e.console.credentials.list(t);
|
|
11
|
+
}
|
|
12
|
+
function k(e) {
|
|
13
|
+
return e.console.credentials.types();
|
|
14
|
+
}
|
|
15
|
+
function p(e, t) {
|
|
16
|
+
return e.console.credentials.get(t);
|
|
17
|
+
}
|
|
18
|
+
function h(e, t) {
|
|
19
|
+
return e.console.credentials.create(t);
|
|
20
|
+
}
|
|
21
|
+
function b(e, t, n) {
|
|
22
|
+
return e.console.credentials.update(t, n);
|
|
23
|
+
}
|
|
24
|
+
function m(e, t, n) {
|
|
25
|
+
return e.console.credentials.rotate(t, n);
|
|
26
|
+
}
|
|
27
|
+
function _(e, t, n) {
|
|
28
|
+
return n === "disabled" ? e.console.credentials.disable(t) : e.console.credentials.enable(t);
|
|
29
|
+
}
|
|
30
|
+
function q(e, t) {
|
|
31
|
+
return e.console.credentials.test(t);
|
|
32
|
+
}
|
|
33
|
+
function v(e, t) {
|
|
34
|
+
return e.console.credentials.dependents(t);
|
|
35
|
+
}
|
|
36
|
+
async function Q(e, t) {
|
|
37
|
+
var n, r;
|
|
38
|
+
try {
|
|
39
|
+
return await e.console.credentials.delete(t), { ok: !0 };
|
|
40
|
+
} catch (a) {
|
|
41
|
+
const i = a;
|
|
42
|
+
if ((i == null ? void 0 : i.status) === 409 && i.code === "credential_in_use")
|
|
43
|
+
return {
|
|
44
|
+
ok: !1,
|
|
45
|
+
dependents: { connections: ((r = (n = (i.raw ?? {}).error) == null ? void 0 : n.dependents) == null ? void 0 : r.connections) ?? [] }
|
|
46
|
+
};
|
|
47
|
+
throw a;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const f = {
|
|
51
|
+
user_context_required: "Personal keys need you to be signed in as yourself.",
|
|
52
|
+
credential_scope_mismatch: "That credential and connection have different owners. Use one that is shared with the account, or one that only you can use, for both.",
|
|
53
|
+
user_scope_unsupported: "Only AI provider apps can have keys that only you can use.",
|
|
54
|
+
user_scope_not_enabled: "Keys that only you can use are not turned on for this account.",
|
|
55
|
+
ai_credential_policy_denied: "Your account's AI key policy does not allow this kind of key.",
|
|
56
|
+
personal_key_required: "This needs a personal key of yours. Add one under My AI keys.",
|
|
57
|
+
personal_key_unavailable: "Your personal key for this provider is not available. Check that it is enabled in My AI keys."
|
|
58
|
+
};
|
|
59
|
+
function S(e) {
|
|
60
|
+
const t = e == null ? void 0 : e.code;
|
|
61
|
+
return typeof t == "string" && Object.hasOwn(f, t) ? f[t] : void 0;
|
|
62
|
+
}
|
|
63
|
+
function O(e, t) {
|
|
64
|
+
const n = e ?? {}, r = t === "create" ? "create" : "rotate", a = S(e);
|
|
65
|
+
return a || (n.status === 401 || n.status === 403 ? `You are not allowed to ${r} this credential.` : n.status === 409 ? "A credential with that name already exists." : n.status === 400 || n.status === 422 ? "The server rejected those values. Check them and try again." : n.status === 0 ? `Could not reach the server to ${r} the credential.` : `Could not ${r} the credential.`);
|
|
66
|
+
}
|
|
67
|
+
function x(e) {
|
|
68
|
+
const t = s();
|
|
69
|
+
return l({
|
|
70
|
+
queryKey: e ? [...c, e] : c,
|
|
71
|
+
queryFn: () => C(t, e)
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function R() {
|
|
75
|
+
const e = s();
|
|
76
|
+
return l({
|
|
77
|
+
queryKey: T,
|
|
78
|
+
queryFn: () => k(e),
|
|
79
|
+
staleTime: Number.POSITIVE_INFINITY,
|
|
80
|
+
retry: !1
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function N(e) {
|
|
84
|
+
const t = s();
|
|
85
|
+
return l({ queryKey: d(e), queryFn: () => p(t, e) });
|
|
86
|
+
}
|
|
87
|
+
function j(e, t = !0) {
|
|
88
|
+
const n = s();
|
|
89
|
+
return l({
|
|
90
|
+
queryKey: K(e),
|
|
91
|
+
queryFn: () => v(n, e),
|
|
92
|
+
enabled: t,
|
|
93
|
+
retry: !1
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function Y() {
|
|
97
|
+
const e = s(), t = u();
|
|
98
|
+
return o({
|
|
99
|
+
mutationFn: (n) => h(e, n),
|
|
100
|
+
// The variables carry the typed secret: do not keep a settled mutation (or its variables) in
|
|
101
|
+
// the cache once the form has reset it.
|
|
102
|
+
gcTime: 0,
|
|
103
|
+
onSuccess: () => t.invalidateQueries({ queryKey: c })
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function P(e) {
|
|
107
|
+
const t = s(), n = u();
|
|
108
|
+
return o({
|
|
109
|
+
mutationFn: (r) => b(t, e, r),
|
|
110
|
+
onSuccess: () => {
|
|
111
|
+
n.invalidateQueries({ queryKey: c }), n.invalidateQueries({ queryKey: d(e) });
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function U(e) {
|
|
116
|
+
const t = s(), n = u();
|
|
117
|
+
return o({
|
|
118
|
+
mutationFn: (r) => m(t, e, r),
|
|
119
|
+
gcTime: 0,
|
|
120
|
+
// the variables carry the typed secret
|
|
121
|
+
onSuccess: () => y(n, e)
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function W(e) {
|
|
125
|
+
const t = s(), n = u();
|
|
126
|
+
return o({
|
|
127
|
+
mutationFn: (r) => _(t, e, r),
|
|
128
|
+
onSuccess: () => y(n, e)
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function $(e) {
|
|
132
|
+
const t = s();
|
|
133
|
+
return o({
|
|
134
|
+
mutationFn: () => q(t, e)
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function H() {
|
|
138
|
+
const e = s(), t = u();
|
|
139
|
+
return o({
|
|
140
|
+
mutationFn: (n) => Q(e, n),
|
|
141
|
+
onSuccess: (n, r) => {
|
|
142
|
+
n.ok && y(t, r);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
const g = [
|
|
147
|
+
"listCredentials",
|
|
148
|
+
"createCredential",
|
|
149
|
+
"getCredential",
|
|
150
|
+
"rotateCredential",
|
|
151
|
+
"setCredentialStatus",
|
|
152
|
+
"testCredential",
|
|
153
|
+
"credentialDependents",
|
|
154
|
+
"deleteCredential"
|
|
155
|
+
];
|
|
156
|
+
function M(e) {
|
|
157
|
+
return {
|
|
158
|
+
listCredentials: (t) => C(e, t),
|
|
159
|
+
createCredential: (t) => h(e, t),
|
|
160
|
+
getCredential: (t) => p(e, t),
|
|
161
|
+
rotateCredential: (t, n) => m(e, t, n),
|
|
162
|
+
setCredentialStatus: (t, n) => _(e, t, n),
|
|
163
|
+
testCredential: (t) => q(e, t),
|
|
164
|
+
credentialDependents: (t) => v(e, t),
|
|
165
|
+
deleteCredential: async (t) => {
|
|
166
|
+
try {
|
|
167
|
+
await e.console.credentials.delete(t);
|
|
168
|
+
} catch (n) {
|
|
169
|
+
throw n && typeof n == "object" && "raw" in n && (n.body = n.raw), n;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function L(e, t) {
|
|
175
|
+
const n = M(t), r = e;
|
|
176
|
+
for (const a of g)
|
|
177
|
+
typeof r[a] != "function" && (r[a] = n[a]);
|
|
178
|
+
return e;
|
|
179
|
+
}
|
|
180
|
+
export {
|
|
181
|
+
W as A,
|
|
182
|
+
$ as B,
|
|
183
|
+
P as C,
|
|
184
|
+
L as D,
|
|
185
|
+
D as a,
|
|
186
|
+
K as b,
|
|
187
|
+
h as c,
|
|
188
|
+
d,
|
|
189
|
+
T as e,
|
|
190
|
+
M as f,
|
|
191
|
+
O as g,
|
|
192
|
+
c as h,
|
|
193
|
+
Q as i,
|
|
194
|
+
p as j,
|
|
195
|
+
v as k,
|
|
196
|
+
y as l,
|
|
197
|
+
k as m,
|
|
198
|
+
C as n,
|
|
199
|
+
S as o,
|
|
200
|
+
Y as p,
|
|
201
|
+
j as q,
|
|
202
|
+
m as r,
|
|
203
|
+
_ as s,
|
|
204
|
+
q as t,
|
|
205
|
+
b as u,
|
|
206
|
+
N as v,
|
|
207
|
+
R as w,
|
|
208
|
+
x,
|
|
209
|
+
H as y,
|
|
210
|
+
U as z
|
|
211
|
+
};
|
|
212
|
+
//# sourceMappingURL=credentials-4Nf2GfMc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials-4Nf2GfMc.js","sources":["../src/repos/credentials.ts"],"sourcesContent":["/**\n * The stored-credentials repo — list, single, create, rename, rotate, enable/disable, test,\n * dependents and delete, over `client.console.credentials.*`. Mirrors `connections.ts`.\n *\n * `invalidateAfterCredentialWrite` is the one place that knows a credential write can change what\n * a connection shows (its status, its untested flag), so it also stales every cached connection.\n * `credentialUiMethods` / `withCredentialMethods` are how both hosts (`W6WEmbedProvider` and\n * Studio's facade) supply the eight optional `W6WApi` credential methods from one implementation.\n */\nimport { type QueryClient, useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport type { W6WClient } from \"@w6w/sdk\";\nimport type {\n CredentialDependents,\n CredentialListFilter,\n CredentialSummary,\n CredentialTestResult,\n CredentialTypeDescriptor,\n} from \"@w6w/sdk/console\";\nimport { useEmbedClient } from \"../draft/client-context.ts\";\nimport { connectionsKey } from \"./connections.ts\";\n\nexport type {\n CredentialDependents,\n CredentialListFilter,\n CredentialSummary,\n CredentialTestResult,\n CredentialTypeDescriptor,\n CredentialTypeField,\n} from \"@w6w/sdk/console\";\n\n// ── keys ──────────────────────────────────────────────────────────────\n\nexport const credentialsKey = [\"credentials\"] as const;\nexport const credentialKey = (id: string) => [\"credential\", id] as const;\nexport const credentialTypesKey = [\"credential-types\"] as const;\nexport const credentialDependentsKey = (id: string) => [\"credential-dependents\", id] as const;\n\n/**\n * A credential write (rotate, enable/disable, delete) changes what every connection on it\n * reports, so the credential keys AND every cached connection (single and per-app) go stale.\n */\nexport function invalidateAfterCredentialWrite(qc: QueryClient, id: string): void {\n qc.invalidateQueries({ queryKey: credentialsKey });\n qc.invalidateQueries({ queryKey: credentialKey(id) });\n qc.invalidateQueries({ queryKey: connectionsKey });\n qc.invalidateQueries({ queryKey: [\"connection\"] });\n qc.invalidateQueries({ queryKey: [\"app-connections\"] });\n}\n\n/** Ownership text (R-C11). An absent scope is an older server, so the account's. */\nexport const accessScopeLabel = (scope: \"account\" | \"user\" | undefined): string =>\n scope === \"user\" ? \"Only me\" : \"This account\";\n\n// ── fetchers ──────────────────────────────────────────────────────────\n\nexport function listCredentials(\n client: W6WClient,\n filter?: CredentialListFilter,\n): Promise<CredentialSummary[]> {\n return client.console.credentials.list(filter);\n}\n\n/** The credential types the server can store and the fields each collects, in server order. */\nexport function listCredentialTypes(client: W6WClient): Promise<CredentialTypeDescriptor[]> {\n return client.console.credentials.types();\n}\n\nexport function getCredential(client: W6WClient, id: string): Promise<CredentialSummary> {\n return client.console.credentials.get(id);\n}\n\n/** `accessScope` is present only for \"Only me\"; an account credential is the omitted-key body. */\nexport type CredentialCreateBody = {\n name: string;\n contract: string;\n source: Record<string, unknown>;\n accessScope?: \"user\";\n};\n\nexport function createCredential(\n client: W6WClient,\n body: CredentialCreateBody,\n): Promise<CredentialSummary> {\n return client.console.credentials.create(body);\n}\n\n/** Rename. */\nexport function updateCredential(\n client: W6WClient,\n id: string,\n body: { name: string },\n): Promise<CredentialSummary> {\n return client.console.credentials.update(id, body);\n}\n\nexport function rotateCredential(\n client: W6WClient,\n id: string,\n body: { source: Record<string, unknown> },\n): Promise<CredentialSummary> {\n return client.console.credentials.rotate(id, body);\n}\n\nexport function setCredentialStatus(\n client: W6WClient,\n id: string,\n status: \"active\" | \"disabled\",\n): Promise<CredentialSummary> {\n return status === \"disabled\"\n ? client.console.credentials.disable(id)\n : client.console.credentials.enable(id);\n}\n\nexport function testCredential(client: W6WClient, id: string): Promise<CredentialTestResult> {\n return client.console.credentials.test(id);\n}\n\nexport function getCredentialDependents(\n client: W6WClient,\n id: string,\n): Promise<CredentialDependents> {\n return client.console.credentials.dependents(id);\n}\n\nexport type DeleteCredentialResult = { ok: true } | { ok: false; dependents: CredentialDependents };\n\n/**\n * Delete. A 409 `credential_in_use` is data — `{ ok: false, dependents }` — not a thrown error;\n * every other failure rejects. There is no `force`: a credential in use is never deleted.\n * Wire (RECONCILE R-11): `{ error: { code, message, dependents: { connections } } }`.\n */\nexport async function deleteCredential(\n client: W6WClient,\n id: string,\n): Promise<DeleteCredentialResult> {\n try {\n await client.console.credentials.delete(id);\n return { ok: true };\n } catch (e) {\n const err = e as { status?: unknown; code?: unknown; raw?: unknown };\n if (err?.status === 409 && err.code === \"credential_in_use\") {\n const raw = (err.raw ?? {}) as {\n error?: { dependents?: Partial<CredentialDependents> };\n };\n return {\n ok: false,\n dependents: { connections: raw.error?.dependents?.connections ?? [] },\n };\n }\n throw e;\n }\n}\n\n/** The seven ownership / personal-key refusal codes (S4), each with its own fixed sentence. */\nconst OWNERSHIP_ERROR_TEXT: Record<string, string> = {\n user_context_required: \"Personal keys need you to be signed in as yourself.\",\n credential_scope_mismatch:\n \"That credential and connection have different owners. Use one that is shared with the account, or one that only you can use, for both.\",\n user_scope_unsupported: \"Only AI provider apps can have keys that only you can use.\",\n user_scope_not_enabled: \"Keys that only you can use are not turned on for this account.\",\n ai_credential_policy_denied: \"Your account's AI key policy does not allow this kind of key.\",\n personal_key_required: \"This needs a personal key of yours. Add one under My AI keys.\",\n personal_key_unavailable:\n \"Your personal key for this provider is not available. Check that it is enabled in My AI keys.\",\n};\n\n/** The fixed sentence for one of the seven ownership codes, or `undefined` for any other error. */\nexport function ownershipErrorText(e: unknown): string | undefined {\n const code = (e as { code?: unknown } | null | undefined)?.code;\n return typeof code === \"string\" && Object.hasOwn(OWNERSHIP_ERROR_TEXT, code)\n ? OWNERSHIP_ERROR_TEXT[code]\n : undefined;\n}\n\n/**\n * Fixed, secret-free text for a failed credential write, chosen by the server's error code first\n * (the seven ownership codes), then by status. The server's own message is never shown: a value\n * the user typed could be echoed in it.\n */\nexport function credentialWriteErrorText(e: unknown, verb: \"create\" | \"rotate\"): string {\n const err = (e ?? {}) as { status?: unknown; code?: unknown };\n const what = verb === \"create\" ? \"create\" : \"rotate\";\n const owned = ownershipErrorText(e);\n if (owned) return owned;\n if (err.status === 401 || err.status === 403)\n return `You are not allowed to ${what} this credential.`;\n if (err.status === 409) return \"A credential with that name already exists.\";\n if (err.status === 400 || err.status === 422)\n return \"The server rejected those values. Check them and try again.\";\n if (err.status === 0) return `Could not reach the server to ${what} the credential.`;\n return `Could not ${what} the credential.`;\n}\n\n// ── hooks ─────────────────────────────────────────────────────────────\n\nexport function useCredentialsQuery(filter?: CredentialListFilter) {\n const client = useEmbedClient();\n return useQuery({\n queryKey: filter ? [...credentialsKey, filter] : credentialsKey,\n queryFn: () => listCredentials(client, filter),\n });\n}\n\n/**\n * The descriptors that drive the create form, the list's type label and the rotate fields. They\n * change only with a server release, so they are cached for the session; a failure is not retried\n * (the callers degrade to the contract id / the JSON rotate box).\n */\nexport function useCredentialTypesQuery() {\n const client = useEmbedClient();\n return useQuery({\n queryKey: credentialTypesKey,\n queryFn: () => listCredentialTypes(client),\n staleTime: Number.POSITIVE_INFINITY,\n retry: false,\n });\n}\n\nexport function useCredentialQuery(id: string) {\n const client = useEmbedClient();\n return useQuery({ queryKey: credentialKey(id), queryFn: () => getCredential(client, id) });\n}\n\nexport function useCredentialDependentsQuery(id: string, enabled = true) {\n const client = useEmbedClient();\n return useQuery({\n queryKey: credentialDependentsKey(id),\n queryFn: () => getCredentialDependents(client, id),\n enabled,\n retry: false,\n });\n}\n\nexport function useCreateCredentialMutation() {\n const client = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (body: CredentialCreateBody) => createCredential(client, body),\n // The variables carry the typed secret: do not keep a settled mutation (or its variables) in\n // the cache once the form has reset it.\n gcTime: 0,\n onSuccess: () => qc.invalidateQueries({ queryKey: credentialsKey }),\n });\n}\n\n/** Rename touches only the credential keys: no connection's state changes. */\nexport function useUpdateCredentialMutation(id: string) {\n const client = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (body: { name: string }) => updateCredential(client, id, body),\n onSuccess: () => {\n qc.invalidateQueries({ queryKey: credentialsKey });\n qc.invalidateQueries({ queryKey: credentialKey(id) });\n },\n });\n}\n\nexport function useRotateCredentialMutation(id: string) {\n const client = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (body: { source: Record<string, unknown> }) => rotateCredential(client, id, body),\n gcTime: 0, // the variables carry the typed secret\n onSuccess: () => invalidateAfterCredentialWrite(qc, id),\n });\n}\n\nexport function useSetCredentialStatusMutation(id: string) {\n const client = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (status: \"active\" | \"disabled\") => setCredentialStatus(client, id, status),\n onSuccess: () => invalidateAfterCredentialWrite(qc, id),\n });\n}\n\nexport function useTestCredentialMutation(id: string) {\n const client = useEmbedClient();\n return useMutation({\n mutationFn: (): Promise<CredentialTestResult> => testCredential(client, id),\n });\n}\n\nexport function useDeleteCredentialMutation() {\n const client = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (id: string) => deleteCredential(client, id),\n onSuccess: (r, id) => {\n if (r.ok) invalidateAfterCredentialWrite(qc, id);\n },\n });\n}\n\n// ── W6WApi bridge ─────────────────────────────────────────────────────\n\ntype CredentialMethodName =\n | \"listCredentials\"\n | \"createCredential\"\n | \"getCredential\"\n | \"rotateCredential\"\n | \"setCredentialStatus\"\n | \"testCredential\"\n | \"credentialDependents\"\n | \"deleteCredential\";\n\nconst CREDENTIAL_METHODS: readonly CredentialMethodName[] = [\n \"listCredentials\",\n \"createCredential\",\n \"getCredential\",\n \"rotateCredential\",\n \"setCredentialStatus\",\n \"testCredential\",\n \"credentialDependents\",\n \"deleteCredential\",\n];\n\n/**\n * The eight optional `W6WApi` credential methods over `client` (this module may not import\n * `@w6w/ui`, so the signatures are checked where they are spread into a `W6WApi`: Studio's\n * facade, and `W6WEmbedProvider`'s bridge). `deleteCredential` rejects on a\n * 409 with the response body attached as `.body` (as `withApiErrorBody` does in the react adapter).\n */\nexport function credentialUiMethods(client: W6WClient) {\n return {\n listCredentials: (filter?: CredentialListFilter) => listCredentials(client, filter),\n createCredential: (body: CredentialCreateBody) => createCredential(client, body),\n getCredential: (id: string) => getCredential(client, id),\n rotateCredential: (id: string, body: { source: Record<string, unknown> }) =>\n rotateCredential(client, id, body),\n setCredentialStatus: (id: string, status: \"active\" | \"disabled\") =>\n setCredentialStatus(client, id, status),\n testCredential: (id: string) => testCredential(client, id),\n credentialDependents: (id: string) => getCredentialDependents(client, id),\n deleteCredential: async (id: string) => {\n try {\n await client.console.credentials.delete(id);\n } catch (e) {\n if (e && typeof e === \"object\" && \"raw\" in e) {\n (e as { body?: unknown }).body = (e as { raw?: unknown }).raw;\n }\n throw e;\n }\n },\n };\n}\n\n/** Fills ONLY the credential methods that are not functions on `adapter`; keeps the rest. */\nexport function withCredentialMethods<T extends object>(adapter: T, client: W6WClient): T {\n const ours = credentialUiMethods(client);\n const target = adapter as Record<string, unknown>;\n for (const name of CREDENTIAL_METHODS) {\n if (typeof target[name] !== \"function\") target[name] = ours[name];\n }\n return adapter;\n}\n"],"names":["credentialsKey","credentialKey","id","credentialTypesKey","credentialDependentsKey","invalidateAfterCredentialWrite","qc","connectionsKey","accessScopeLabel","scope","listCredentials","client","filter","listCredentialTypes","getCredential","createCredential","body","updateCredential","rotateCredential","setCredentialStatus","status","testCredential","getCredentialDependents","deleteCredential","e","err","_b","_a","OWNERSHIP_ERROR_TEXT","ownershipErrorText","code","credentialWriteErrorText","verb","what","owned","useCredentialsQuery","useEmbedClient","useQuery","useCredentialTypesQuery","useCredentialQuery","useCredentialDependentsQuery","enabled","useCreateCredentialMutation","useQueryClient","useMutation","useUpdateCredentialMutation","useRotateCredentialMutation","useSetCredentialStatusMutation","useTestCredentialMutation","useDeleteCredentialMutation","r","CREDENTIAL_METHODS","credentialUiMethods","withCredentialMethods","adapter","ours","target","name"],"mappings":";;;AAgCO,MAAMA,IAAiB,CAAC,aAAa,GAC/BC,IAAgB,CAACC,MAAe,CAAC,cAAcA,CAAE,GACjDC,IAAqB,CAAC,kBAAkB,GACxCC,IAA0B,CAACF,MAAe,CAAC,yBAAyBA,CAAE;AAM5E,SAASG,EAA+BC,GAAiBJ,GAAkB;AAChF,EAAAI,EAAG,kBAAkB,EAAE,UAAUN,EAAA,CAAgB,GACjDM,EAAG,kBAAkB,EAAE,UAAUL,EAAcC,CAAE,GAAG,GACpDI,EAAG,kBAAkB,EAAE,UAAUC,EAAA,CAAgB,GACjDD,EAAG,kBAAkB,EAAE,UAAU,CAAC,YAAY,GAAG,GACjDA,EAAG,kBAAkB,EAAE,UAAU,CAAC,iBAAiB,GAAG;AACxD;AAGO,MAAME,IAAmB,CAACC,MAC/BA,MAAU,SAAS,YAAY;AAI1B,SAASC,EACdC,GACAC,GAC8B;AAC9B,SAAOD,EAAO,QAAQ,YAAY,KAAKC,CAAM;AAC/C;AAGO,SAASC,EAAoBF,GAAwD;AAC1F,SAAOA,EAAO,QAAQ,YAAY,MAAA;AACpC;AAEO,SAASG,EAAcH,GAAmBT,GAAwC;AACvF,SAAOS,EAAO,QAAQ,YAAY,IAAIT,CAAE;AAC1C;AAUO,SAAS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