@w6w/sdk 0.9.15 → 0.9.23
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/README.md +21 -16
- package/dist/mod.d.ts +12 -1
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js +7 -1
- package/dist/mod.js.map +1 -1
- package/dist/src/agents.d.ts +33 -0
- package/dist/src/agents.d.ts.map +1 -0
- package/dist/src/agents.js +73 -0
- package/dist/src/agents.js.map +1 -0
- package/dist/src/assets.d.ts +56 -0
- package/dist/src/assets.d.ts.map +1 -0
- package/dist/src/assets.js +143 -0
- package/dist/src/assets.js.map +1 -0
- package/dist/src/client.d.ts +24 -3
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +32 -3
- package/dist/src/client.js.map +1 -1
- package/dist/src/config.d.ts +14 -8
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +15 -9
- package/dist/src/config.js.map +1 -1
- package/dist/src/connections.d.ts +8 -3
- package/dist/src/connections.d.ts.map +1 -1
- package/dist/src/connections.js +6 -2
- package/dist/src/connections.js.map +1 -1
- package/dist/src/console/apps.d.ts +13 -0
- package/dist/src/console/apps.d.ts.map +1 -1
- package/dist/src/console/apps.js +3 -0
- package/dist/src/console/apps.js.map +1 -1
- package/dist/src/console/connections.d.ts +71 -11
- package/dist/src/console/connections.d.ts.map +1 -1
- package/dist/src/console/connections.js +27 -6
- package/dist/src/console/connections.js.map +1 -1
- package/dist/src/console/credentials.d.ts +183 -0
- package/dist/src/console/credentials.d.ts.map +1 -0
- package/dist/src/console/credentials.js +186 -0
- package/dist/src/console/credentials.js.map +1 -0
- package/dist/src/console/mod.d.ts +17 -2
- package/dist/src/console/mod.d.ts.map +1 -1
- package/dist/src/console/mod.js +15 -0
- package/dist/src/console/mod.js.map +1 -1
- package/dist/src/console/models.d.ts +208 -0
- package/dist/src/console/models.d.ts.map +1 -0
- package/dist/src/console/models.js +186 -0
- package/dist/src/console/models.js.map +1 -0
- package/dist/src/console/storage.d.ts +221 -0
- package/dist/src/console/storage.d.ts.map +1 -0
- package/dist/src/console/storage.js +198 -0
- package/dist/src/console/storage.js.map +1 -0
- package/dist/src/console/tokens.d.ts +53 -3
- package/dist/src/console/tokens.d.ts.map +1 -1
- package/dist/src/console/tokens.js +35 -4
- package/dist/src/console/tokens.js.map +1 -1
- package/dist/src/console/vault.d.ts +2 -2
- package/dist/src/console/vault.d.ts.map +1 -1
- package/dist/src/console/vault.js +1 -1
- package/dist/src/context.d.ts +68 -0
- package/dist/src/context.d.ts.map +1 -0
- package/dist/src/context.js +195 -0
- package/dist/src/context.js.map +1 -0
- package/dist/src/errors.d.ts +2 -2
- package/dist/src/errors.js +2 -2
- package/dist/src/http.d.ts +19 -1
- package/dist/src/http.d.ts.map +1 -1
- package/dist/src/http.js +21 -3
- package/dist/src/http.js.map +1 -1
- package/dist/src/models.d.ts +141 -0
- package/dist/src/models.d.ts.map +1 -0
- package/dist/src/models.js +128 -0
- package/dist/src/models.js.map +1 -0
- package/dist/src/server/mod.d.ts +11 -10
- package/dist/src/server/mod.d.ts.map +1 -1
- package/dist/src/server/mod.js +11 -9
- package/dist/src/server/mod.js.map +1 -1
- package/dist/src/skills.d.ts +29 -0
- package/dist/src/skills.d.ts.map +1 -0
- package/dist/src/skills.js +55 -0
- package/dist/src/skills.js.map +1 -0
- package/dist/src/types.d.ts +415 -8
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/vars.d.ts +2 -2
- package/dist/src/vars.d.ts.map +1 -1
- package/dist/src/vars.js +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/workflows.d.ts +6 -6
- package/dist/src/workflows.d.ts.map +1 -1
- package/dist/src/workflows.js +7 -5
- package/dist/src/workflows.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `client.console.credentials.*` — the stored-credential resource: list, get,
|
|
3
|
+
* create, rename, rotate, disable, enable, test, dependents, delete.
|
|
4
|
+
*
|
|
5
|
+
* **Console-only, not the published partner contract.** Like every other
|
|
6
|
+
* connection write op, this namespace lives under the `console` subpath
|
|
7
|
+
* export (`@w6w/sdk/console`), excluded from `endpoints.json`'s
|
|
8
|
+
* `operations[]` and from the root barrel (D-E2; `docs/parity.md`). The
|
|
9
|
+
* types below are hand-typed from the wire: the SDK never imports
|
|
10
|
+
* `@w6w/types`.
|
|
11
|
+
*
|
|
12
|
+
* **Secret discipline.** `source` (on {@linkcode CredentialsApi.create} and
|
|
13
|
+
* {@linkcode CredentialsApi.rotate}) is an opaque secret payload — forwarded
|
|
14
|
+
* verbatim, never inspected, logged, transformed or echoed. No response type
|
|
15
|
+
* here carries a source payload, ciphertext or token: {@linkcode
|
|
16
|
+
* CredentialSummary} is a projection (`display` holds non-secret labels
|
|
17
|
+
* only), so there is no field a caller could read a secret back from.
|
|
18
|
+
*
|
|
19
|
+
* Methods take no `project` parameter: credentials are scoped by
|
|
20
|
+
* tenant/account from the credential alone, so {@linkcode CredentialsHost}
|
|
21
|
+
* needs only the transport, mirroring `ConnectionsHost`.
|
|
22
|
+
*
|
|
23
|
+
* @module
|
|
24
|
+
*/
|
|
25
|
+
import { type HttpResponse, type RequestOptions } from "../http.ts";
|
|
26
|
+
/**
|
|
27
|
+
* The slice of `W6WClient` this namespace needs: the transport, and nothing
|
|
28
|
+
* else — mirrors `ConnectionsHost`.
|
|
29
|
+
*/
|
|
30
|
+
export interface CredentialsHost {
|
|
31
|
+
/** Perform one request. */
|
|
32
|
+
request<T>(options: RequestOptions): Promise<HttpResponse<T>>;
|
|
33
|
+
}
|
|
34
|
+
/** Lifecycle status of a stored credential. */
|
|
35
|
+
export type CredentialStatus = "active" | "disabled" | "revoked";
|
|
36
|
+
/** The closed set of credential failure codes a test (or a use) can report. */
|
|
37
|
+
export type CredentialErrorCode = "credential_disabled" | "credential_missing" | "credential_revoked" | "delegation_rejected" | "provider_unsupported" | "scope_not_approved" | "auth_not_found" | "jit_unavailable_in_background" | "credential_invalid";
|
|
38
|
+
/**
|
|
39
|
+
* A stored credential, as the server projects it. Never carries a source
|
|
40
|
+
* payload, ciphertext or token.
|
|
41
|
+
*/
|
|
42
|
+
export interface CredentialSummary {
|
|
43
|
+
/** Server-issued id. */
|
|
44
|
+
id: string;
|
|
45
|
+
/** Human-chosen label. */
|
|
46
|
+
name: string;
|
|
47
|
+
/** The credential contract, e.g. a provider-backed or `api_key` contract. */
|
|
48
|
+
contract: string;
|
|
49
|
+
/** Lifecycle status. */
|
|
50
|
+
status: CredentialStatus;
|
|
51
|
+
/** Bumped on every rotation. */
|
|
52
|
+
revision: number;
|
|
53
|
+
/** Non-secret display labels. */
|
|
54
|
+
display: Record<string, string>;
|
|
55
|
+
/** `true` when the credential is private to its creator. */
|
|
56
|
+
private: boolean;
|
|
57
|
+
/** How many connections currently use this credential. */
|
|
58
|
+
connectionCount: number;
|
|
59
|
+
/** ISO-8601 timestamp. */
|
|
60
|
+
createdAt: string;
|
|
61
|
+
/** ISO-8601 timestamp. */
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* `test`'s result — the whole response body, no envelope key. `ok: false` is
|
|
66
|
+
* still a 200 and resolves; `code` names the failure when there is one.
|
|
67
|
+
*/
|
|
68
|
+
export interface CredentialTestResult {
|
|
69
|
+
ok: boolean;
|
|
70
|
+
code?: CredentialErrorCode;
|
|
71
|
+
message?: string;
|
|
72
|
+
}
|
|
73
|
+
/** `GET /credentials/:id/dependents` payload (the `dependents` key). */
|
|
74
|
+
export interface CredentialDependents {
|
|
75
|
+
connections: {
|
|
76
|
+
id: string;
|
|
77
|
+
appId: string;
|
|
78
|
+
authKey: string;
|
|
79
|
+
displayName: string;
|
|
80
|
+
}[];
|
|
81
|
+
}
|
|
82
|
+
/** Optional filters for {@linkcode CredentialsApi.list}; only defined keys are sent. */
|
|
83
|
+
export interface CredentialListFilter {
|
|
84
|
+
contract?: string;
|
|
85
|
+
appId?: string;
|
|
86
|
+
authKey?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The `console.credentials` namespace on a `W6WClient`.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const cred = await client.console.credentials.create({
|
|
94
|
+
* name: "Ops mailbox",
|
|
95
|
+
* contract: "api_key",
|
|
96
|
+
* source: { key: "sk_live_…" },
|
|
97
|
+
* });
|
|
98
|
+
* await client.console.credentials.rotate(cred.id, { source: { key: "sk_new_…" } });
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export declare class CredentialsApi {
|
|
102
|
+
#private;
|
|
103
|
+
/**
|
|
104
|
+
* @param host - The client this namespace issues requests through.
|
|
105
|
+
*/
|
|
106
|
+
constructor(host: CredentialsHost);
|
|
107
|
+
/**
|
|
108
|
+
* List credentials, optionally filtered.
|
|
109
|
+
*
|
|
110
|
+
* @param filter - Sends only the keys that are defined; none ⇒ no query string.
|
|
111
|
+
* @returns The credentials, unwrapped from the `credentials` envelope.
|
|
112
|
+
*/
|
|
113
|
+
list(filter?: CredentialListFilter): Promise<CredentialSummary[]>;
|
|
114
|
+
/**
|
|
115
|
+
* Fetch one credential.
|
|
116
|
+
*
|
|
117
|
+
* @throws {ApiError} `404 unknown_credential` (also for a foreign id).
|
|
118
|
+
*/
|
|
119
|
+
get(id: string): Promise<CredentialSummary>;
|
|
120
|
+
/**
|
|
121
|
+
* Create a credential. `source` is opaque — see the module header.
|
|
122
|
+
*
|
|
123
|
+
* @throws {ApiError} `400 invalid_contract` (a `legacy:*` contract);
|
|
124
|
+
* `400 provider_unsupported`.
|
|
125
|
+
*/
|
|
126
|
+
create(body: {
|
|
127
|
+
name: string;
|
|
128
|
+
contract: string;
|
|
129
|
+
source: Record<string, unknown>;
|
|
130
|
+
}): Promise<CredentialSummary>;
|
|
131
|
+
/**
|
|
132
|
+
* Rename a credential.
|
|
133
|
+
*
|
|
134
|
+
* The response envelope is `{credential}` (pinned by the project's
|
|
135
|
+
* RECONCILE R-11; I-5 left it unspecified).
|
|
136
|
+
*
|
|
137
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
138
|
+
*/
|
|
139
|
+
update(id: string, body: {
|
|
140
|
+
name: string;
|
|
141
|
+
}): Promise<CredentialSummary>;
|
|
142
|
+
/**
|
|
143
|
+
* Replace a credential's secret. `source` is opaque — see the module header.
|
|
144
|
+
*
|
|
145
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
146
|
+
*/
|
|
147
|
+
rotate(id: string, body: {
|
|
148
|
+
source: Record<string, unknown>;
|
|
149
|
+
}): Promise<CredentialSummary>;
|
|
150
|
+
/**
|
|
151
|
+
* Disable a credential (reversible with {@linkcode enable}).
|
|
152
|
+
*
|
|
153
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
154
|
+
*/
|
|
155
|
+
disable(id: string): Promise<CredentialSummary>;
|
|
156
|
+
/**
|
|
157
|
+
* Re-enable a disabled credential.
|
|
158
|
+
*
|
|
159
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
160
|
+
*/
|
|
161
|
+
enable(id: string): Promise<CredentialSummary>;
|
|
162
|
+
/**
|
|
163
|
+
* Probe a credential. **No envelope key — the whole body IS the result.**
|
|
164
|
+
* A failed probe (`ok: false`) is still a 200 and resolves; only a genuine
|
|
165
|
+
* non-2xx (e.g. `404 unknown_credential`) raises `ApiError`.
|
|
166
|
+
*/
|
|
167
|
+
test(id: string): Promise<CredentialTestResult>;
|
|
168
|
+
/**
|
|
169
|
+
* Which connections use this credential? Unwraps `{dependents}`.
|
|
170
|
+
*
|
|
171
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
172
|
+
*/
|
|
173
|
+
dependents(id: string): Promise<CredentialDependents>;
|
|
174
|
+
/**
|
|
175
|
+
* Delete a credential. Returns nothing. There is **no force option** (D-B5):
|
|
176
|
+
* a credential in use is refused, never cascaded.
|
|
177
|
+
*
|
|
178
|
+
* @throws {ApiError} `404 unknown_credential`; `409 credential_in_use` — the
|
|
179
|
+
* dependents are at `raw.error.dependents.connections`.
|
|
180
|
+
*/
|
|
181
|
+
delete(id: string): Promise<void>;
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/console/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAQ,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAG1E;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/D;AAED,+CAA+C;AAC/C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAEjE,+EAA+E;AAC/E,MAAM,MAAM,mBAAmB,GAC3B,qBAAqB,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,sBAAsB,GACtB,oBAAoB,GACpB,gBAAgB,GAChB,+BAA+B,GAC/B,oBAAoB,CAAC;AAEzB;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB;IACxB,MAAM,EAAE,gBAAgB,CAAC;IACzB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,4DAA4D;IAC5D,OAAO,EAAE,OAAO,CA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,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAS5E;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAS/F;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAQrD;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAQpD;;;;OAIG;IACG,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAQrD;;;;OAIG;IACG,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAQ3D;;;;;;OAMG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAMxC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `client.console.credentials.*` — the stored-credential resource: list, get,
|
|
3
|
+
* create, rename, rotate, disable, enable, test, dependents, delete.
|
|
4
|
+
*
|
|
5
|
+
* **Console-only, not the published partner contract.** Like every other
|
|
6
|
+
* connection write op, this namespace lives under the `console` subpath
|
|
7
|
+
* export (`@w6w/sdk/console`), excluded from `endpoints.json`'s
|
|
8
|
+
* `operations[]` and from the root barrel (D-E2; `docs/parity.md`). The
|
|
9
|
+
* types below are hand-typed from the wire: the SDK never imports
|
|
10
|
+
* `@w6w/types`.
|
|
11
|
+
*
|
|
12
|
+
* **Secret discipline.** `source` (on {@linkcode CredentialsApi.create} and
|
|
13
|
+
* {@linkcode CredentialsApi.rotate}) is an opaque secret payload — forwarded
|
|
14
|
+
* verbatim, never inspected, logged, transformed or echoed. No response type
|
|
15
|
+
* here carries a source payload, ciphertext or token: {@linkcode
|
|
16
|
+
* CredentialSummary} is a projection (`display` holds non-secret labels
|
|
17
|
+
* only), so there is no field a caller could read a secret back from.
|
|
18
|
+
*
|
|
19
|
+
* Methods take no `project` parameter: credentials are scoped by
|
|
20
|
+
* tenant/account from the credential alone, so {@linkcode CredentialsHost}
|
|
21
|
+
* needs only the transport, mirroring `ConnectionsHost`.
|
|
22
|
+
*
|
|
23
|
+
* @module
|
|
24
|
+
*/
|
|
25
|
+
import { path } from "../http.js";
|
|
26
|
+
import { unwrap } from "../types.js";
|
|
27
|
+
/**
|
|
28
|
+
* The `console.credentials` namespace on a `W6WClient`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const cred = await client.console.credentials.create({
|
|
33
|
+
* name: "Ops mailbox",
|
|
34
|
+
* contract: "api_key",
|
|
35
|
+
* source: { key: "sk_live_…" },
|
|
36
|
+
* });
|
|
37
|
+
* await client.console.credentials.rotate(cred.id, { source: { key: "sk_new_…" } });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export class CredentialsApi {
|
|
41
|
+
#host;
|
|
42
|
+
/**
|
|
43
|
+
* @param host - The client this namespace issues requests through.
|
|
44
|
+
*/
|
|
45
|
+
constructor(host) {
|
|
46
|
+
this.#host = host;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* List credentials, optionally filtered.
|
|
50
|
+
*
|
|
51
|
+
* @param filter - Sends only the keys that are defined; none ⇒ no query string.
|
|
52
|
+
* @returns The credentials, unwrapped from the `credentials` envelope.
|
|
53
|
+
*/
|
|
54
|
+
async list(filter) {
|
|
55
|
+
const query = {};
|
|
56
|
+
if (filter?.contract !== undefined)
|
|
57
|
+
query.contract = filter.contract;
|
|
58
|
+
if (filter?.appId !== undefined)
|
|
59
|
+
query.appId = filter.appId;
|
|
60
|
+
if (filter?.authKey !== undefined)
|
|
61
|
+
query.authKey = filter.authKey;
|
|
62
|
+
const res = await this.#host.request({
|
|
63
|
+
method: "GET",
|
|
64
|
+
path: "/credentials",
|
|
65
|
+
query,
|
|
66
|
+
});
|
|
67
|
+
return unwrap(res, "credentials");
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Fetch one credential.
|
|
71
|
+
*
|
|
72
|
+
* @throws {ApiError} `404 unknown_credential` (also for a foreign id).
|
|
73
|
+
*/
|
|
74
|
+
async get(id) {
|
|
75
|
+
const res = await this.#host.request({
|
|
76
|
+
method: "GET",
|
|
77
|
+
path: path `/credentials/${id}`,
|
|
78
|
+
});
|
|
79
|
+
return unwrap(res, "credential");
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Create a credential. `source` is opaque — see the module header.
|
|
83
|
+
*
|
|
84
|
+
* @throws {ApiError} `400 invalid_contract` (a `legacy:*` contract);
|
|
85
|
+
* `400 provider_unsupported`.
|
|
86
|
+
*/
|
|
87
|
+
async create(body) {
|
|
88
|
+
const res = await this.#host.request({
|
|
89
|
+
method: "POST",
|
|
90
|
+
path: "/credentials",
|
|
91
|
+
body,
|
|
92
|
+
});
|
|
93
|
+
return unwrap(res, "credential");
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Rename a credential.
|
|
97
|
+
*
|
|
98
|
+
* The response envelope is `{credential}` (pinned by the project's
|
|
99
|
+
* RECONCILE R-11; I-5 left it unspecified).
|
|
100
|
+
*
|
|
101
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
102
|
+
*/
|
|
103
|
+
async update(id, body) {
|
|
104
|
+
const res = await this.#host.request({
|
|
105
|
+
method: "PATCH",
|
|
106
|
+
path: path `/credentials/${id}`,
|
|
107
|
+
body,
|
|
108
|
+
});
|
|
109
|
+
return unwrap(res, "credential");
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Replace a credential's secret. `source` is opaque — see the module header.
|
|
113
|
+
*
|
|
114
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
115
|
+
*/
|
|
116
|
+
async rotate(id, body) {
|
|
117
|
+
const res = await this.#host.request({
|
|
118
|
+
method: "POST",
|
|
119
|
+
path: path `/credentials/${id}/rotate`,
|
|
120
|
+
body,
|
|
121
|
+
});
|
|
122
|
+
return unwrap(res, "credential");
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Disable a credential (reversible with {@linkcode enable}).
|
|
126
|
+
*
|
|
127
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
128
|
+
*/
|
|
129
|
+
async disable(id) {
|
|
130
|
+
const res = await this.#host.request({
|
|
131
|
+
method: "POST",
|
|
132
|
+
path: path `/credentials/${id}/disable`,
|
|
133
|
+
});
|
|
134
|
+
return unwrap(res, "credential");
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Re-enable a disabled credential.
|
|
138
|
+
*
|
|
139
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
140
|
+
*/
|
|
141
|
+
async enable(id) {
|
|
142
|
+
const res = await this.#host.request({
|
|
143
|
+
method: "POST",
|
|
144
|
+
path: path `/credentials/${id}/enable`,
|
|
145
|
+
});
|
|
146
|
+
return unwrap(res, "credential");
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Probe a credential. **No envelope key — the whole body IS the result.**
|
|
150
|
+
* A failed probe (`ok: false`) is still a 200 and resolves; only a genuine
|
|
151
|
+
* non-2xx (e.g. `404 unknown_credential`) raises `ApiError`.
|
|
152
|
+
*/
|
|
153
|
+
async test(id) {
|
|
154
|
+
const res = await this.#host.request({
|
|
155
|
+
method: "POST",
|
|
156
|
+
path: path `/credentials/${id}/test`,
|
|
157
|
+
});
|
|
158
|
+
return res.body;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Which connections use this credential? Unwraps `{dependents}`.
|
|
162
|
+
*
|
|
163
|
+
* @throws {ApiError} `404 unknown_credential`.
|
|
164
|
+
*/
|
|
165
|
+
async dependents(id) {
|
|
166
|
+
const res = await this.#host.request({
|
|
167
|
+
method: "GET",
|
|
168
|
+
path: path `/credentials/${id}/dependents`,
|
|
169
|
+
});
|
|
170
|
+
return unwrap(res, "dependents");
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Delete a credential. Returns nothing. There is **no force option** (D-B5):
|
|
174
|
+
* a credential in use is refused, never cascaded.
|
|
175
|
+
*
|
|
176
|
+
* @throws {ApiError} `404 unknown_credential`; `409 credential_in_use` — the
|
|
177
|
+
* dependents are at `raw.error.dependents.connections`.
|
|
178
|
+
*/
|
|
179
|
+
async delete(id) {
|
|
180
|
+
await this.#host.request({
|
|
181
|
+
method: "DELETE",
|
|
182
|
+
path: path `/credentials/${id}`,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/console/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAqB,IAAI,EAAuB,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AA2ErC;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,cAAc;IAChB,KAAK,CAAkB;IAEhC;;OAEG;IACH,YAAY,IAAqB;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CAAC,MAA6B;QACtC,MAAM,KAAK,GAA2B,EAAE,CAAC;QACzC,IAAI,MAAM,EAAE,QAAQ,KAAK,SAAS;YAAE,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QACrE,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS;YAAE,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC5D,IAAI,MAAM,EAAE,OAAO,KAAK,SAAS;YAAE,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,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AK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAU;YAChC,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,IAAI,CAAA,gBAAgB,EAAE,EAAE;SAC/B,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -24,9 +24,11 @@ import { AppsApi } from "./apps.ts";
|
|
|
24
24
|
import { AuthApi } from "./auth.ts";
|
|
25
25
|
import { CommerceApi } from "./commerce.ts";
|
|
26
26
|
import { ConnectionsApi } from "./connections.ts";
|
|
27
|
+
import { CredentialsApi } from "./credentials.ts";
|
|
27
28
|
import { DashboardApi } from "./dashboard.ts";
|
|
28
29
|
import { EndpointsApi } from "./endpoints.ts";
|
|
29
30
|
import { FunctionsApi } from "./functions.ts";
|
|
31
|
+
import { ModelsConsoleApi } from "./models.ts";
|
|
30
32
|
import { OtpApi } from "./otp.ts";
|
|
31
33
|
import { PasskeysApi } from "./passkeys.ts";
|
|
32
34
|
import { ReliabilityApi } from "./reliability.ts";
|
|
@@ -34,6 +36,7 @@ import { ProjectsApi } from "./projects.ts";
|
|
|
34
36
|
import { SavedTestsApi } from "./saved-tests.ts";
|
|
35
37
|
import { SchedulesApi } from "./schedules.ts";
|
|
36
38
|
import { StepTestsApi } from "./step-tests.ts";
|
|
39
|
+
import { StorageConsoleApi } from "./storage.ts";
|
|
37
40
|
import { SubscriptionsApi } from "./subscriptions.ts";
|
|
38
41
|
import { TenantLoginFlagsApi } from "./tenant-login-flags.ts";
|
|
39
42
|
import { TenantOAuthAppsApi } from "./tenant-oauth-apps.ts";
|
|
@@ -57,7 +60,9 @@ export type { Schedule, SchedulesHost, ScheduleUpsertInput } from "./schedules.t
|
|
|
57
60
|
export { AppsApi } from "./apps.ts";
|
|
58
61
|
export type { ActionDef, ActionParam, ApiCallRecord, AppDetail, AppHealthStatus, AppsHost, AppsPage, AppSummary, AuthDef, AuthField, CredentialPosture, HealthCheckMeta, HealthKind, HealthQuota, HealthReport, HealthResult, HealthScope, HealthSeverity, HealthState, ImportResponse, InvokeOptions, InvokeStartState, ListAppsOptions, ListAppsSort, OAuth2AuthConfig, OAuth2ClientSetup, OAuthConfigSummary, PackEntryPreview, PackPreviewInfo, PreviewSourceResponse, RefreshAppResponse, StepMeta, TriggerDef, UpsertOAuthConfigInput, } from "./apps.ts";
|
|
59
62
|
export { ConnectionsApi } from "./connections.ts";
|
|
60
|
-
export type { ConnectionsHost, ConnectionTestResult } from "./connections.ts";
|
|
63
|
+
export type { ConnectionBinding, ConnectionCreateInput, ConnectionDependentCallable, ConnectionDependents, ConnectionDependentSubscription, ConnectionsHost, ConnectionTestResult, } from "./connections.ts";
|
|
64
|
+
export { CredentialsApi } from "./credentials.ts";
|
|
65
|
+
export type { CredentialDependents, CredentialErrorCode, CredentialListFilter, CredentialsHost, CredentialStatus, CredentialSummary, CredentialTestResult, } from "./credentials.ts";
|
|
61
66
|
export { WorkflowsApi } from "./workflows.ts";
|
|
62
67
|
export type { RunState, RunSummary, WorkflowsHost } from "./workflows.ts";
|
|
63
68
|
export { SavedTestsApi } from "./saved-tests.ts";
|
|
@@ -67,13 +72,17 @@ export type { StepTest, StepTestRun, StepTestsHost } from "./step-tests.ts";
|
|
|
67
72
|
export { VaultApi } from "./vault.ts";
|
|
68
73
|
export type { SecretValue, VaultHost, VaultSecretSummary } from "./vault.ts";
|
|
69
74
|
export { TokensApi } from "./tokens.ts";
|
|
70
|
-
export type { ApiToken, ApiTokenStatus, CreateTokenResponse, TokensHost } from "./tokens.ts";
|
|
75
|
+
export type { ApiToken, ApiTokenStatus, CreateTokenOptions, CreateTokenResponse, TokenScopes, TokensHost, } from "./tokens.ts";
|
|
71
76
|
export { FunctionsApi, isCallableImpl } from "./functions.ts";
|
|
72
77
|
export type { FunctionActionImpl, FunctionCallableImpl, FunctionDef, FunctionImpl, FunctionInput, FunctionOutputField, FunctionRead, FunctionsHost, FunctionSummary, FunctionUpsertOptions, } from "./functions.ts";
|
|
73
78
|
export { EndpointsApi, SECRET_MASK } from "./endpoints.ts";
|
|
74
79
|
export type { ActionTarget, CallableOnError, CallableRef, EndpointAuthMode, EndpointDef, EndpointInput, EndpointInvokeResult, EndpointRefTarget, EndpointSecurity, EndpointsHost, EndpointSummary, EndpointTarget, ErrorHandlerTarget, ErrorReroute, Exposure, RetryPolicy, } from "./endpoints.ts";
|
|
75
80
|
export { AliasesApi } from "./aliases.ts";
|
|
76
81
|
export type { AliasDef, AliasesHost, AliasSummary } from "./aliases.ts";
|
|
82
|
+
export { ModelsConsoleApi } from "./models.ts";
|
|
83
|
+
export type { ModelBudget, ModelBudgetInput, ModelBudgetLimits, ModelBudgetPatch, ModelBudgetUsage, ModelDiscoveryResult, ModelFallback, ModelPatch, ModelProvider, ModelRate, ModelRouteInput, ModelRoutePatch, ModelsConsoleHost, ModelsConsoleOptions, } from "./models.ts";
|
|
84
|
+
export { AgentSettingsApi, StorageBindingsApi, StorageConsoleApi } from "./storage.ts";
|
|
85
|
+
export type { AgentLimits, AgentSettings, AgentSettingsPatch, AgentSettingsValues, CreateStorageBindingInput, ListStorageBindingsOptions, StorageBinding, StorageBindingHealth, StorageBindingRevisionRef, StorageConsoleHost, StorageConsoleOptions, StorageMigration, } from "./storage.ts";
|
|
77
86
|
export { SubscriptionsApi } from "./subscriptions.ts";
|
|
78
87
|
export type { Subscription, SubscriptionCreateInput, SubscriptionsHost, TriggerEventStatus, TriggerEventSummary, } from "./subscriptions.ts";
|
|
79
88
|
export { ApiCallsApi } from "./api-calls.ts";
|
|
@@ -120,6 +129,8 @@ export declare class ConsoleApi {
|
|
|
120
129
|
readonly apps: AppsApi;
|
|
121
130
|
/** `console.connections.*`. */
|
|
122
131
|
readonly connections: ConnectionsApi;
|
|
132
|
+
/** `console.credentials.*`. */
|
|
133
|
+
readonly credentials: CredentialsApi;
|
|
123
134
|
/** `console.workflows.*`. */
|
|
124
135
|
readonly workflows: WorkflowsApi;
|
|
125
136
|
/** `console.savedTests.*`. */
|
|
@@ -136,6 +147,8 @@ export declare class ConsoleApi {
|
|
|
136
147
|
readonly endpoints: EndpointsApi;
|
|
137
148
|
/** `console.aliases.*`. */
|
|
138
149
|
readonly aliases: AliasesApi;
|
|
150
|
+
/** `console.models.*` — catalog edits, rates, discovery, budgets, route writes. */
|
|
151
|
+
readonly models: ModelsConsoleApi;
|
|
139
152
|
/** `console.subscriptions.*`. */
|
|
140
153
|
readonly subscriptions: SubscriptionsApi;
|
|
141
154
|
/** `console.apiCalls.*`. */
|
|
@@ -148,6 +161,8 @@ export declare class ConsoleApi {
|
|
|
148
161
|
readonly otp: OtpApi;
|
|
149
162
|
/** `console.tenantLoginFlags.*` — the caller's OWN tenant, never a tenant of its choosing. */
|
|
150
163
|
readonly tenantLoginFlags: TenantLoginFlagsApi;
|
|
164
|
+
/** `console.storage.*` — the account's storage bindings and agent-limit settings. */
|
|
165
|
+
readonly storage: StorageConsoleApi;
|
|
151
166
|
/**
|
|
152
167
|
* @param host - The client this namespace group issues requests through.
|
|
153
168
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/console/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;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th.js";
|
|
24
24
|
import { CommerceApi } from "./commerce.js";
|
|
25
25
|
import { ConnectionsApi } from "./connections.js";
|
|
26
|
+
import { CredentialsApi } from "./credentials.js";
|
|
26
27
|
import { DashboardApi } from "./dashboard.js";
|
|
27
28
|
import { EndpointsApi } from "./endpoints.js";
|
|
28
29
|
import { FunctionsApi } from "./functions.js";
|
|
30
|
+
import { ModelsConsoleApi } from "./models.js";
|
|
29
31
|
import { OtpApi } from "./otp.js";
|
|
30
32
|
import { PasskeysApi } from "./passkeys.js";
|
|
31
33
|
import { ReliabilityApi } from "./reliability.js";
|
|
@@ -33,6 +35,7 @@ import { ProjectsApi } from "./projects.js";
|
|
|
33
35
|
import { SavedTestsApi } from "./saved-tests.js";
|
|
34
36
|
import { SchedulesApi } from "./schedules.js";
|
|
35
37
|
import { StepTestsApi } from "./step-tests.js";
|
|
38
|
+
import { StorageConsoleApi } from "./storage.js";
|
|
36
39
|
import { SubscriptionsApi } from "./subscriptions.js";
|
|
37
40
|
import { TenantLoginFlagsApi } from "./tenant-login-flags.js";
|
|
38
41
|
import { TenantOAuthAppsApi } from "./tenant-oauth-apps.js";
|
|
@@ -48,6 +51,7 @@ export { ProjectsApi } from "./projects.js";
|
|
|
48
51
|
export { SchedulesApi } from "./schedules.js";
|
|
49
52
|
export { AppsApi } from "./apps.js";
|
|
50
53
|
export { ConnectionsApi } from "./connections.js";
|
|
54
|
+
export { CredentialsApi } from "./credentials.js";
|
|
51
55
|
export { WorkflowsApi } from "./workflows.js";
|
|
52
56
|
export { SavedTestsApi } from "./saved-tests.js";
|
|
53
57
|
export { StepTestsApi } from "./step-tests.js";
|
|
@@ -56,6 +60,8 @@ export { TokensApi } from "./tokens.js";
|
|
|
56
60
|
export { FunctionsApi, isCallableImpl } from "./functions.js";
|
|
57
61
|
export { EndpointsApi, SECRET_MASK } from "./endpoints.js";
|
|
58
62
|
export { AliasesApi } from "./aliases.js";
|
|
63
|
+
export { ModelsConsoleApi } from "./models.js";
|
|
64
|
+
export { AgentSettingsApi, StorageBindingsApi, StorageConsoleApi } from "./storage.js";
|
|
59
65
|
export { SubscriptionsApi } from "./subscriptions.js";
|
|
60
66
|
export { ApiCallsApi } from "./api-calls.js";
|
|
61
67
|
export { TenantOAuthAppsApi } from "./tenant-oauth-apps.js";
|
|
@@ -87,6 +93,8 @@ export class ConsoleApi {
|
|
|
87
93
|
apps;
|
|
88
94
|
/** `console.connections.*`. */
|
|
89
95
|
connections;
|
|
96
|
+
/** `console.credentials.*`. */
|
|
97
|
+
credentials;
|
|
90
98
|
/** `console.workflows.*`. */
|
|
91
99
|
workflows;
|
|
92
100
|
/** `console.savedTests.*`. */
|
|
@@ -103,6 +111,8 @@ export class ConsoleApi {
|
|
|
103
111
|
endpoints;
|
|
104
112
|
/** `console.aliases.*`. */
|
|
105
113
|
aliases;
|
|
114
|
+
/** `console.models.*` — catalog edits, rates, discovery, budgets, route writes. */
|
|
115
|
+
models;
|
|
106
116
|
/** `console.subscriptions.*`. */
|
|
107
117
|
subscriptions;
|
|
108
118
|
/** `console.apiCalls.*`. */
|
|
@@ -115,6 +125,8 @@ export class ConsoleApi {
|
|
|
115
125
|
otp;
|
|
116
126
|
/** `console.tenantLoginFlags.*` — the caller's OWN tenant, never a tenant of its choosing. */
|
|
117
127
|
tenantLoginFlags;
|
|
128
|
+
/** `console.storage.*` — the account's storage bindings and agent-limit settings. */
|
|
129
|
+
storage;
|
|
118
130
|
/**
|
|
119
131
|
* @param host - The client this namespace group issues requests through.
|
|
120
132
|
*/
|
|
@@ -127,6 +139,7 @@ export class ConsoleApi {
|
|
|
127
139
|
this.schedules = new SchedulesApi(host);
|
|
128
140
|
this.apps = new AppsApi(host);
|
|
129
141
|
this.connections = new ConnectionsApi(host);
|
|
142
|
+
this.credentials = new CredentialsApi(host);
|
|
130
143
|
this.workflows = new WorkflowsApi(host);
|
|
131
144
|
this.savedTests = new SavedTestsApi(host);
|
|
132
145
|
this.stepTests = new StepTestsApi(host);
|
|
@@ -135,12 +148,14 @@ export class ConsoleApi {
|
|
|
135
148
|
this.functions = new FunctionsApi(host);
|
|
136
149
|
this.endpoints = new EndpointsApi(host);
|
|
137
150
|
this.aliases = new AliasesApi(host);
|
|
151
|
+
this.models = new ModelsConsoleApi(host);
|
|
138
152
|
this.subscriptions = new SubscriptionsApi(host);
|
|
139
153
|
this.apiCalls = new ApiCallsApi(host);
|
|
140
154
|
this.tenantOAuthApps = new TenantOAuthAppsApi(host);
|
|
141
155
|
this.passkeys = new PasskeysApi(host);
|
|
142
156
|
this.otp = new OtpApi(host);
|
|
143
157
|
this.tenantLoginFlags = new TenantLoginFlagsApi(host);
|
|
158
|
+
this.storage = new StorageConsoleApi(host);
|
|
144
159
|
}
|
|
145
160
|
}
|
|
146
161
|
//# sourceMappingURL=mod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/console/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO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