@w6w/sdk 0.5.0 → 0.9.8
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 +185 -32
- package/dist/mod.d.ts +10 -4
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js +3 -0
- package/dist/mod.js.map +1 -1
- package/dist/src/client.d.ts +37 -5
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +40 -5
- package/dist/src/client.js.map +1 -1
- package/dist/src/config.d.ts +83 -6
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +41 -5
- package/dist/src/config.js.map +1 -1
- package/dist/src/connections.d.ts +3 -2
- package/dist/src/connections.d.ts.map +1 -1
- package/dist/src/connections.js +7 -2
- package/dist/src/connections.js.map +1 -1
- package/dist/src/console/aliases.d.ts +137 -0
- package/dist/src/console/aliases.d.ts.map +1 -0
- package/dist/src/console/aliases.js +113 -0
- package/dist/src/console/aliases.js.map +1 -0
- package/dist/src/console/api-calls.d.ts +4 -3
- package/dist/src/console/api-calls.d.ts.map +1 -1
- package/dist/src/console/api-calls.js +4 -3
- package/dist/src/console/api-calls.js.map +1 -1
- package/dist/src/console/apps.d.ts +181 -8
- package/dist/src/console/apps.d.ts.map +1 -1
- package/dist/src/console/apps.js +67 -12
- package/dist/src/console/apps.js.map +1 -1
- package/dist/src/console/auth.d.ts +245 -7
- package/dist/src/console/auth.d.ts.map +1 -1
- package/dist/src/console/auth.js +177 -8
- package/dist/src/console/auth.js.map +1 -1
- package/dist/src/console/commerce.d.ts +428 -0
- package/dist/src/console/commerce.d.ts.map +1 -0
- package/dist/src/console/commerce.js +220 -0
- package/dist/src/console/commerce.js.map +1 -0
- package/dist/src/console/dashboard.d.ts +8 -0
- package/dist/src/console/dashboard.d.ts.map +1 -1
- package/dist/src/console/dashboard.js.map +1 -1
- package/dist/src/console/endpoints.d.ts +79 -6
- package/dist/src/console/endpoints.d.ts.map +1 -1
- package/dist/src/console/endpoints.js.map +1 -1
- package/dist/src/console/functions.d.ts +35 -4
- package/dist/src/console/functions.d.ts.map +1 -1
- package/dist/src/console/functions.js +13 -0
- package/dist/src/console/functions.js.map +1 -1
- package/dist/src/console/mod.d.ts +32 -7
- package/dist/src/console/mod.d.ts.map +1 -1
- package/dist/src/console/mod.js +26 -1
- package/dist/src/console/mod.js.map +1 -1
- package/dist/src/console/otp.d.ts +127 -0
- package/dist/src/console/otp.d.ts.map +1 -0
- package/dist/src/console/otp.js +118 -0
- package/dist/src/console/otp.js.map +1 -0
- package/dist/src/console/passkeys.d.ts +246 -0
- package/dist/src/console/passkeys.d.ts.map +1 -0
- package/dist/src/console/passkeys.js +192 -0
- package/dist/src/console/passkeys.js.map +1 -0
- package/dist/src/console/reliability.d.ts +101 -6
- package/dist/src/console/reliability.d.ts.map +1 -1
- package/dist/src/console/reliability.js +16 -5
- package/dist/src/console/reliability.js.map +1 -1
- package/dist/src/console/step-tests.d.ts +7 -1
- package/dist/src/console/step-tests.d.ts.map +1 -1
- package/dist/src/console/step-tests.js +1 -1
- package/dist/src/console/step-tests.js.map +1 -1
- package/dist/src/console/subscriptions.d.ts +38 -16
- package/dist/src/console/subscriptions.d.ts.map +1 -1
- package/dist/src/console/subscriptions.js +7 -13
- package/dist/src/console/subscriptions.js.map +1 -1
- package/dist/src/console/tenant-login-flags.d.ts +106 -0
- package/dist/src/console/tenant-login-flags.d.ts.map +1 -0
- package/dist/src/console/tenant-login-flags.js +113 -0
- package/dist/src/console/tenant-login-flags.js.map +1 -0
- package/dist/src/console/tenant-oauth-apps.d.ts +75 -14
- package/dist/src/console/tenant-oauth-apps.d.ts.map +1 -1
- package/dist/src/console/tenant-oauth-apps.js +37 -11
- package/dist/src/console/tenant-oauth-apps.js.map +1 -1
- package/dist/src/console/tokens.d.ts +2 -0
- package/dist/src/console/tokens.d.ts.map +1 -1
- package/dist/src/console/tokens.js.map +1 -1
- package/dist/src/console/workflows.d.ts +14 -0
- package/dist/src/console/workflows.d.ts.map +1 -1
- package/dist/src/console/workflows.js +13 -0
- package/dist/src/console/workflows.js.map +1 -1
- package/dist/src/documents.d.ts +9 -5
- package/dist/src/documents.d.ts.map +1 -1
- package/dist/src/documents.js +6 -3
- package/dist/src/documents.js.map +1 -1
- package/dist/src/endpoints.d.ts +75 -0
- package/dist/src/endpoints.d.ts.map +1 -0
- package/dist/src/endpoints.js +47 -0
- package/dist/src/endpoints.js.map +1 -0
- package/dist/src/functions.d.ts +236 -0
- package/dist/src/functions.d.ts.map +1 -0
- package/dist/src/functions.js +201 -0
- package/dist/src/functions.js.map +1 -0
- package/dist/src/http.d.ts +58 -10
- package/dist/src/http.d.ts.map +1 -1
- package/dist/src/http.js +82 -11
- package/dist/src/http.js.map +1 -1
- package/dist/src/me.d.ts +3 -2
- package/dist/src/me.d.ts.map +1 -1
- package/dist/src/me.js +7 -2
- package/dist/src/me.js.map +1 -1
- package/dist/src/run.d.ts +19 -5
- package/dist/src/run.d.ts.map +1 -1
- package/dist/src/run.js +14 -4
- package/dist/src/run.js.map +1 -1
- package/dist/src/server/mod.d.ts +100 -0
- package/dist/src/server/mod.d.ts.map +1 -0
- package/dist/src/server/mod.js +121 -0
- package/dist/src/server/mod.js.map +1 -0
- package/dist/src/team.d.ts +204 -0
- package/dist/src/team.d.ts.map +1 -0
- package/dist/src/team.js +161 -0
- package/dist/src/team.js.map +1 -0
- package/dist/src/types.d.ts +143 -10
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +27 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/vars.d.ts +5 -3
- package/dist/src/vars.d.ts.map +1 -1
- package/dist/src/vars.js +14 -4
- package/dist/src/vars.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/workflows.d.ts +261 -9
- package/dist/src/workflows.d.ts.map +1 -1
- package/dist/src/workflows.js +246 -7
- package/dist/src/workflows.js.map +1 -1
- package/package.json +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d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1B,2EAA2E;QAC3E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,gEAAgE;QAChE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,+CAA+C;QAC/C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,wFAAwF;QACxF,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,CAAC,CAAC;CACJ;AAED;;;;;;;GAOG;AACH,qBAAa,YAAY;;IAGvB;;OAEG;gBACS,IAAI,EAAE,aAAa;IAI/B;;;;;;;;OAQG;IACG,KAAK,CAAC,MAAM,GAAE,oBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC;CAQxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../src/console/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../src/console/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAqDH;;;;;;;GAOG;AACH,MAAM,OAAO,YAAY;IACd,KAAK,CAAgB;IAE9B;;OAEG;IACH,YAAY,IAAmB;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,KAAK,CAAC,SAA+B,EAAE;QAC3C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAiB;YACnD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;SACnE,CAAC,CAAC;QACH,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -53,7 +53,7 @@ export interface EndpointsHost {
|
|
|
53
53
|
request<T>(options: RequestOptions): Promise<HttpResponse<T>>;
|
|
54
54
|
}
|
|
55
55
|
/** What an Endpoint dispatches to, when the target is a Function or Workflow. */
|
|
56
|
-
export type
|
|
56
|
+
export type CallableRef = {
|
|
57
57
|
kind: "function";
|
|
58
58
|
function: string;
|
|
59
59
|
} | {
|
|
@@ -70,8 +70,72 @@ export interface ActionTarget {
|
|
|
70
70
|
};
|
|
71
71
|
with?: Record<string, unknown>;
|
|
72
72
|
}
|
|
73
|
-
/**
|
|
74
|
-
|
|
73
|
+
/**
|
|
74
|
+
* The alias-only fourth arm: dispatch to another Endpoint by id.
|
|
75
|
+
* LEGAL FOR AN ALIAS'S `target` ONLY. `POST /endpoints` refuses it
|
|
76
|
+
* (api/admin/endpoints.ts's validateDefinition) and that refusal is the sole
|
|
77
|
+
* bound on Endpoint→Endpoint recursion; a regression test pins it (D-14).
|
|
78
|
+
*/
|
|
79
|
+
export interface EndpointRefTarget {
|
|
80
|
+
kind: "endpoint";
|
|
81
|
+
endpoint: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The full discriminated union of what an Endpoint may dispatch to. Shared by
|
|
85
|
+
* `EndpointDef.target` and `AliasDef.target` — but the `endpoint` arm is
|
|
86
|
+
* legal only for the latter: an Endpoint's own target can never be another
|
|
87
|
+
* Endpoint (see {@linkcode EndpointRefTarget}).
|
|
88
|
+
*/
|
|
89
|
+
export type EndpointTarget = CallableRef | ActionTarget | EndpointRefTarget;
|
|
90
|
+
/**
|
|
91
|
+
* Attempt policy for a Function/Endpoint call. Absent ⇒ one attempt. Mirrors
|
|
92
|
+
* `@w6w/workflow-types`' `RetryPolicy` (the workflow step's own retry shape)
|
|
93
|
+
* field-for-field.
|
|
94
|
+
*/
|
|
95
|
+
export interface RetryPolicy {
|
|
96
|
+
/** Total attempts including the first. `1` means no retry. */
|
|
97
|
+
maxAttempts: number;
|
|
98
|
+
/** How the delay grows between attempts. Defaults to `"fixed"`. */
|
|
99
|
+
backoff?: "fixed" | "exponential";
|
|
100
|
+
/** Base delay in ms (the first retry waits this long). Defaults to 0. */
|
|
101
|
+
delayMs?: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* What an {@linkcode ErrorReroute} may dispatch to: a Function, a Workflow, or
|
|
105
|
+
* an app Action directly.
|
|
106
|
+
*
|
|
107
|
+
* Deliberately NOT {@linkcode EndpointTarget} — that union has a fourth arm
|
|
108
|
+
* (`{kind:"endpoint"}`), and an Endpoint is an inbound surface. Rerouting a
|
|
109
|
+
* failure into one would re-enter through the front door and re-run that
|
|
110
|
+
* Endpoint's own auth, rate limit and error policy, including its own reroute.
|
|
111
|
+
*/
|
|
112
|
+
export type ErrorHandlerTarget = CallableRef | ActionTarget;
|
|
113
|
+
/**
|
|
114
|
+
* Where a failed Function/Endpoint invocation — or a failed workflow RUN — is
|
|
115
|
+
* re-dispatched. A Function and an Endpoint have no graph, so this can never
|
|
116
|
+
* be an `Edge.when: "error"`.
|
|
117
|
+
*
|
|
118
|
+
* ⚠️ Widened 2026-08-21: the target is {@linkcode ErrorHandlerTarget}, not
|
|
119
|
+
* {@linkcode CallableRef}. It was Function-or-Workflow only, which left the most
|
|
120
|
+
* obvious handler there is (post to Slack, send me an email) expressible only
|
|
121
|
+
* by first wrapping the action in a Function. The `CallableRef` arms stay first
|
|
122
|
+
* in the union, so every reroute stored before the widening keeps its type.
|
|
123
|
+
*/
|
|
124
|
+
export interface ErrorReroute {
|
|
125
|
+
/** Invoked once, after `retry` is exhausted. Its output becomes the call's output. */
|
|
126
|
+
target: ErrorHandlerTarget;
|
|
127
|
+
/** Maps `{ inputs, error }` onto the reroute target's own inputs. Omitted ⇒ the
|
|
128
|
+
* original `inputs` are passed through unchanged. */
|
|
129
|
+
with?: Record<string, unknown>;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* What a failed Function/Endpoint invocation does once `retry` and `reroute`
|
|
133
|
+
* are exhausted. Deliberately NARROWER than a workflow step's `OnError`:
|
|
134
|
+
* `continue-record` has no meaning without a run's `stepErrors` state.
|
|
135
|
+
* - `fail` (default, and the meaning of absent) — the error propagates, as today.
|
|
136
|
+
* - `continue` — the invocation resolves with a `null` output instead of throwing.
|
|
137
|
+
*/
|
|
138
|
+
export type CallableOnError = "fail" | "continue";
|
|
75
139
|
/** The inbound auth mode an Endpoint's public exposure enforces. */
|
|
76
140
|
export type EndpointAuthMode = "platform" | "none" | "basic" | "header" | "jwt";
|
|
77
141
|
/**
|
|
@@ -115,9 +179,12 @@ export interface EndpointInput {
|
|
|
115
179
|
}
|
|
116
180
|
/**
|
|
117
181
|
* An Endpoint definition — a named, stable callable entry point that
|
|
118
|
-
* dispatches to
|
|
119
|
-
*
|
|
120
|
-
*
|
|
182
|
+
* dispatches to a target (`rfcs/endpoint.md`). `target` is typed with the
|
|
183
|
+
* full {@linkcode EndpointTarget} union shared with `AliasDef.target`, but an
|
|
184
|
+
* Endpoint's own target can never be another Endpoint: the `endpoint` arm
|
|
185
|
+
* ({@linkcode EndpointRefTarget}) is legal only for an alias's `target`, and
|
|
186
|
+
* `POST /endpoints` refuses it here. Callers bind to the Endpoint id; the
|
|
187
|
+
* target beneath it can change without breaking them.
|
|
121
188
|
*
|
|
122
189
|
* `key` is **immutable after first save** — it is a public URL segment. A
|
|
123
190
|
* save that changes `key` on an already-stored Endpoint answers `409
|
|
@@ -133,6 +200,12 @@ export interface EndpointDef {
|
|
|
133
200
|
target: EndpointTarget;
|
|
134
201
|
input?: EndpointInput[];
|
|
135
202
|
exposure?: Exposure;
|
|
203
|
+
/** Attempt policy for this call. Absent ⇒ one attempt. */
|
|
204
|
+
retry?: RetryPolicy;
|
|
205
|
+
/** Applied only after `retry` and `reroute` are exhausted. Absent ⇒ `"fail"`. */
|
|
206
|
+
onError?: CallableOnError;
|
|
207
|
+
/** Failure re-dispatch. Absent ⇒ none. */
|
|
208
|
+
reroute?: ErrorReroute;
|
|
136
209
|
}
|
|
137
210
|
/**
|
|
138
211
|
* One row of `list`'s result — an Endpoint's summary, not its full
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/console/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAQ,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAG1E;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,2BAA2B;IAC3B,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/D;AAED,iFAAiF;AACjF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/console/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAQ,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAG1E;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,2BAA2B;IAC3B,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/D;AAED,iFAAiF;AACjF,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3C,8EAA8E;AAC9E,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC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AAE,YAAY;YAClB,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;QACH,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,KAA8B;QACrD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAuB;YACzD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAA,cAAc,EAAE,SAAS;YACnC,IAAI,EAAE,EAAE,KAAK,EAAE;SAChB,CAAC,CAAC;QACH,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -25,6 +25,15 @@
|
|
|
25
25
|
* no invoke method lives here, and none should be added later without
|
|
26
26
|
* re-litigating this reasoning.
|
|
27
27
|
*
|
|
28
|
+
* **The base namespace now carries this lifecycle too.** At contract `0.5.0`
|
|
29
|
+
* `functions` left `endpoints.json`'s `outOfScope` and
|
|
30
|
+
* `client.functions.list`/`get`/`create`/`update`/`delete` landed in all three
|
|
31
|
+
* lanes (`../functions.ts`). These three stay for studio's sake and differ in
|
|
32
|
+
* shape, deliberately: `get` here splices `valid` INTO the definition (what
|
|
33
|
+
* studio's editor binds to), while the base `get` keeps it a sibling so a
|
|
34
|
+
* read-modify-write round trip cannot carry it back into a save. New callers,
|
|
35
|
+
* and every partner, want `client.functions.*`.
|
|
36
|
+
*
|
|
28
37
|
* Three methods relocate from the studio's `// Functions` comment block
|
|
29
38
|
* (`packages/studio/src/api/client.ts:255-268`): `listFunctions`→`list`,
|
|
30
39
|
* `getFunction`→`get`, `saveFunction`→`upsert`.
|
|
@@ -37,6 +46,7 @@
|
|
|
37
46
|
* @module
|
|
38
47
|
*/
|
|
39
48
|
import { type HttpResponse, type RequestOptions } from "../http.ts";
|
|
49
|
+
import type { CallableOnError, CallableRef, ErrorReroute, RetryPolicy } from "./endpoints.ts";
|
|
40
50
|
/**
|
|
41
51
|
* The slice of `W6WClient` this namespace needs: the transport, and nothing
|
|
42
52
|
* else. Structural rather than a concrete client type, so the namespace stays
|
|
@@ -62,8 +72,10 @@ export interface FunctionOutputField {
|
|
|
62
72
|
type: "string" | "number" | "boolean" | "object" | "array" | string;
|
|
63
73
|
label?: string;
|
|
64
74
|
}
|
|
65
|
-
/**
|
|
66
|
-
|
|
75
|
+
/** The app-Action arm — the historical shape. `kind` is ABSENT on every Function
|
|
76
|
+
* stored before this union existed, and absent MEANS "action". */
|
|
77
|
+
export interface FunctionActionImpl {
|
|
78
|
+
kind?: "action";
|
|
67
79
|
uses: {
|
|
68
80
|
app: string;
|
|
69
81
|
action: string;
|
|
@@ -72,10 +84,23 @@ export interface FunctionImpl {
|
|
|
72
84
|
with?: Record<string, unknown>;
|
|
73
85
|
outputMap?: Record<string, unknown>;
|
|
74
86
|
}
|
|
87
|
+
/** The Function / Workflow arms — {@linkcode CallableRef} reused verbatim, carrying the
|
|
88
|
+
* same two adapter maps the action arm has. */
|
|
89
|
+
export type FunctionCallableImpl = CallableRef & {
|
|
90
|
+
with?: Record<string, unknown>;
|
|
91
|
+
outputMap?: Record<string, unknown>;
|
|
92
|
+
};
|
|
93
|
+
/** What a Function is bound to: one app Action, another Function, or a Workflow,
|
|
94
|
+
* plus the mapping around it (D-8). */
|
|
95
|
+
export type FunctionImpl = FunctionActionImpl | FunctionCallableImpl;
|
|
96
|
+
/** The ONE discriminator every consumer branches on — never re-derive it. */
|
|
97
|
+
export declare function isCallableImpl(impl: FunctionImpl): impl is FunctionCallableImpl;
|
|
75
98
|
/**
|
|
76
99
|
* A Function definition — a canonical, vendor-stable interface bound to one
|
|
77
|
-
* swappable app Action (
|
|
78
|
-
*
|
|
100
|
+
* swappable implementation: an app Action, or (D-8) another Function or a
|
|
101
|
+
* Workflow via {@linkcode FunctionCallableImpl} (`rfcs/function.md`). Callers
|
|
102
|
+
* bind to `inputs`/`output`; a vendor swap rewrites only `impl`, so no caller
|
|
103
|
+
* breaks.
|
|
79
104
|
*
|
|
80
105
|
* `valid` is **server-computed**, spliced in by {@linkcode FunctionsApi.get}
|
|
81
106
|
* — see that method's doc. It is never sent by a caller on `upsert`.
|
|
@@ -89,6 +114,12 @@ export interface FunctionDef {
|
|
|
89
114
|
inputs: FunctionInput[];
|
|
90
115
|
output?: FunctionOutputField[];
|
|
91
116
|
impl: FunctionImpl;
|
|
117
|
+
/** Attempt policy for this call. Absent ⇒ one attempt. */
|
|
118
|
+
retry?: RetryPolicy;
|
|
119
|
+
/** Applied only after `retry` and `reroute` are exhausted. Absent ⇒ `"fail"`. */
|
|
120
|
+
onError?: CallableOnError;
|
|
121
|
+
/** Failure re-dispatch. Absent ⇒ none. */
|
|
122
|
+
reroute?: ErrorReroute;
|
|
92
123
|
/** Server-computed, spliced in by `console.functions.get` — see above. Read-only. */
|
|
93
124
|
valid: boolean;
|
|
94
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/console/functions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/console/functions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAQ,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE9F;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,2BAA2B;IAC3B,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/D;AAED,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,C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,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC/B,IAAI,EAAE,YAAY,CAAC;IACnB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,iFAAiF;IACjF,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,0CAA0C;IAC1C,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,qFAAqF;IACrF,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,kFAAkF;AAClF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,qBAAa,YAAY;;IAGvB;;OAEG;gBACS,IAAI,EAAE,aAAa;IAI/B;;;;;;;;OAQG;IACG,IAAI,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAKxC;;;;;;;;;;;;;;;;;OAiBG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAQ3C;;;;;;;;;;OAUG;IACG,MAAM,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAQ5E"}
|
|
@@ -25,6 +25,15 @@
|
|
|
25
25
|
* no invoke method lives here, and none should be added later without
|
|
26
26
|
* re-litigating this reasoning.
|
|
27
27
|
*
|
|
28
|
+
* **The base namespace now carries this lifecycle too.** At contract `0.5.0`
|
|
29
|
+
* `functions` left `endpoints.json`'s `outOfScope` and
|
|
30
|
+
* `client.functions.list`/`get`/`create`/`update`/`delete` landed in all three
|
|
31
|
+
* lanes (`../functions.ts`). These three stay for studio's sake and differ in
|
|
32
|
+
* shape, deliberately: `get` here splices `valid` INTO the definition (what
|
|
33
|
+
* studio's editor binds to), while the base `get` keeps it a sibling so a
|
|
34
|
+
* read-modify-write round trip cannot carry it back into a save. New callers,
|
|
35
|
+
* and every partner, want `client.functions.*`.
|
|
36
|
+
*
|
|
28
37
|
* Three methods relocate from the studio's `// Functions` comment block
|
|
29
38
|
* (`packages/studio/src/api/client.ts:255-268`): `listFunctions`→`list`,
|
|
30
39
|
* `getFunction`→`get`, `saveFunction`→`upsert`.
|
|
@@ -38,6 +47,10 @@
|
|
|
38
47
|
*/
|
|
39
48
|
import { path } from "../http.js";
|
|
40
49
|
import { unwrap } from "../types.js";
|
|
50
|
+
/** The ONE discriminator every consumer branches on — never re-derive it. */
|
|
51
|
+
export function isCallableImpl(impl) {
|
|
52
|
+
return impl.kind === "function" || impl.kind === "workflow";
|
|
53
|
+
}
|
|
41
54
|
/**
|
|
42
55
|
* The `console.functions` namespace on a `W6WClient`.
|
|
43
56
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/console/functions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/console/functions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAqB,IAAI,EAAuB,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAmDrC,6EAA6E;AAC7E,MAAM,UAAU,cAAc,CAAC,IAAkB;IAC/C,OAAO,IAAI,CAAC,IAAI,KAAK,UAAU,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC;AAC9D,CAAC;AAyCD;;;;;;;;;GASG;AACH,MAAM,OAAO,YAAY;IACd,KAAK,CAAgB;IAE9B;;OAEG;IACH,YAAY,IAAmB;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAU,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;QACrF,OAAO,MAAM,CAAoB,GAAG,EAAE,WAAW,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAA4C;YAC9E,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI,CAAA,cAAc,EAAE,EAAE;SAC7B,CAAC,CAAC;QACH,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACzD,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,MAAM,CAAC,UAAuB;QAClC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAU;YAC5C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;QACH,OAAO,MAAM,CAA8B,GAAG,EAAE,UAAU,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -18,35 +18,44 @@
|
|
|
18
18
|
* @module
|
|
19
19
|
*/
|
|
20
20
|
import type { HttpResponse, RequestOptions } from "../http.ts";
|
|
21
|
+
import { AliasesApi } from "./aliases.ts";
|
|
21
22
|
import { ApiCallsApi } from "./api-calls.ts";
|
|
22
23
|
import { AppsApi } from "./apps.ts";
|
|
23
24
|
import { AuthApi } from "./auth.ts";
|
|
25
|
+
import { CommerceApi } from "./commerce.ts";
|
|
24
26
|
import { ConnectionsApi } from "./connections.ts";
|
|
25
27
|
import { DashboardApi } from "./dashboard.ts";
|
|
26
28
|
import { EndpointsApi } from "./endpoints.ts";
|
|
27
29
|
import { FunctionsApi } from "./functions.ts";
|
|
30
|
+
import { OtpApi } from "./otp.ts";
|
|
31
|
+
import { PasskeysApi } from "./passkeys.ts";
|
|
28
32
|
import { ReliabilityApi } from "./reliability.ts";
|
|
29
33
|
import { ProjectsApi } from "./projects.ts";
|
|
30
34
|
import { SavedTestsApi } from "./saved-tests.ts";
|
|
31
35
|
import { SchedulesApi } from "./schedules.ts";
|
|
32
36
|
import { StepTestsApi } from "./step-tests.ts";
|
|
33
37
|
import { SubscriptionsApi } from "./subscriptions.ts";
|
|
38
|
+
import { TenantLoginFlagsApi } from "./tenant-login-flags.ts";
|
|
34
39
|
import { TenantOAuthAppsApi } from "./tenant-oauth-apps.ts";
|
|
35
40
|
import { TokensApi } from "./tokens.ts";
|
|
36
41
|
import { VaultApi } from "./vault.ts";
|
|
37
42
|
import { WorkflowsApi } from "./workflows.ts";
|
|
38
43
|
export { AuthApi } from "./auth.ts";
|
|
39
|
-
export type { AccountWire, AuthHost, ConsoleMe, CreateAccountResponse, LoginResponse, SignupInput, SignupResponse, SignupUser, SlugAvailabilityResponse, User, } from "./auth.ts";
|
|
44
|
+
export type { AccountWire, AuthHost, ConfirmContactChangeInput, ConsoleMe, CreateAccountResponse, LoginResponse, ProfileContact, ProfileLoginMethod, ProfilePendingChange, RefreshResponse, RequestContactChangeInput, SetPasswordInput, SignupInput, SignupResponse, SignupUser, SlugAvailabilityResponse, UpdateProfileInput, User, UserProfile, } from "./auth.ts";
|
|
45
|
+
export { PasskeysApi } from "./passkeys.ts";
|
|
46
|
+
export type { AuthenticationVerifyInput, Passkey, PasskeyAuthenticationVerifyResponse, PasskeyCeremonyOptions, PasskeysHost, PasskeyUser, RegistrationVerifyInput, } from "./passkeys.ts";
|
|
40
47
|
export { DashboardApi } from "./dashboard.ts";
|
|
41
48
|
export type { DashboardHost, DashboardStats, DashboardStatsParams } from "./dashboard.ts";
|
|
49
|
+
export { CommerceApi } from "./commerce.ts";
|
|
50
|
+
export type { AccountAllowance, AccountAllowanceCredits, AccountAllowanceLimits, AllowanceValue, BillingInterval, ChangeSubscriptionInput, CheckoutInput, CheckoutInterval, CheckoutResult, CommerceHost, CommerceSubscription, ConfirmCheckoutInput, ContactSalesInput, ContactSalesResult, Invoice, MonitorLimit, Plan, PlanCapabilities, PlanLimits, PlanPrice, PlanPricePoint, PlanQuotas, Quota, RetentionLimit, SelfHostLicence, SubscriptionChangePreview, SubscriptionChangeResult, SupportLevel, } from "./commerce.ts";
|
|
42
51
|
export { ReliabilityApi } from "./reliability.ts";
|
|
43
|
-
export type { ReliabilityErrorMix, ReliabilityHost, ReliabilityService, ReliabilityServices, ReliabilityState, ReliabilityUptimeDay, ReliabilityVendorStatus, } from "./reliability.ts";
|
|
52
|
+
export type { ReliabilityComponentReport, ReliabilityErrorMix, ReliabilityHost, ReliabilityService, ReliabilityServices, ReliabilityState, ReliabilityTimelineEntry, ReliabilityUptimeDay, ReliabilityVendorStatus, } from "./reliability.ts";
|
|
44
53
|
export { ProjectsApi } from "./projects.ts";
|
|
45
54
|
export type { Project, ProjectsHost } from "./projects.ts";
|
|
46
55
|
export { SchedulesApi } from "./schedules.ts";
|
|
47
56
|
export type { Schedule, SchedulesHost, ScheduleUpsertInput } from "./schedules.ts";
|
|
48
57
|
export { AppsApi } from "./apps.ts";
|
|
49
|
-
export type { ActionDef, ActionParam, ApiCallRecord, AppDetail, AppHealthStatus, AppsHost, AppSummary, AuthDef, AuthField, CredentialPosture, HealthCheckMeta, HealthKind, HealthQuota, HealthReport, HealthResult, HealthScope, HealthSeverity, HealthState, ImportResponse, InvokeOptions, InvokeStartState, OAuthConfigSummary, PackEntryPreview, PackPreviewInfo, PreviewSourceResponse, RefreshAppResponse, TriggerDef, UpsertOAuthConfigInput, } from "./apps.ts";
|
|
58
|
+
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";
|
|
50
59
|
export { ConnectionsApi } from "./connections.ts";
|
|
51
60
|
export type { ConnectionsHost, ConnectionTestResult } from "./connections.ts";
|
|
52
61
|
export { WorkflowsApi } from "./workflows.ts";
|
|
@@ -59,16 +68,22 @@ export { VaultApi } from "./vault.ts";
|
|
|
59
68
|
export type { SecretValue, VaultHost, VaultSecretSummary } from "./vault.ts";
|
|
60
69
|
export { TokensApi } from "./tokens.ts";
|
|
61
70
|
export type { ApiToken, ApiTokenStatus, CreateTokenResponse, TokensHost } from "./tokens.ts";
|
|
62
|
-
export { FunctionsApi } from "./functions.ts";
|
|
63
|
-
export type { FunctionDef, FunctionImpl, FunctionInput, FunctionOutputField, FunctionsHost, FunctionSummary, } from "./functions.ts";
|
|
71
|
+
export { FunctionsApi, isCallableImpl } from "./functions.ts";
|
|
72
|
+
export type { FunctionActionImpl, FunctionCallableImpl, FunctionDef, FunctionImpl, FunctionInput, FunctionOutputField, FunctionsHost, FunctionSummary, } from "./functions.ts";
|
|
64
73
|
export { EndpointsApi, SECRET_MASK } from "./endpoints.ts";
|
|
65
|
-
export type { ActionTarget,
|
|
74
|
+
export type { ActionTarget, CallableOnError, CallableRef, EndpointAuthMode, EndpointDef, EndpointInput, EndpointInvokeResult, EndpointRefTarget, EndpointSecurity, EndpointsHost, EndpointSummary, EndpointTarget, ErrorHandlerTarget, ErrorReroute, Exposure, RetryPolicy, } from "./endpoints.ts";
|
|
75
|
+
export { AliasesApi } from "./aliases.ts";
|
|
76
|
+
export type { AliasDef, AliasesHost, AliasSummary } from "./aliases.ts";
|
|
66
77
|
export { SubscriptionsApi } from "./subscriptions.ts";
|
|
67
78
|
export type { Subscription, SubscriptionCreateInput, SubscriptionsHost, TriggerEventStatus, TriggerEventSummary, } from "./subscriptions.ts";
|
|
68
79
|
export { ApiCallsApi } from "./api-calls.ts";
|
|
69
80
|
export type { ApiCallsFilter, ApiCallsHost } from "./api-calls.ts";
|
|
70
81
|
export { TenantOAuthAppsApi } from "./tenant-oauth-apps.ts";
|
|
71
|
-
export type { SetTenantOAuthAppInput, TenantOAuthAppsHost, TenantOAuthAppsResponse, TenantOAuthAppSummary, } from "./tenant-oauth-apps.ts";
|
|
82
|
+
export type { ListTenantOAuthCandidatesOptions, SetTenantOAuthAppInput, TenantOAuthAppsHost, TenantOAuthAppsResponse, TenantOAuthAppSummary, TenantOAuthCandidate, TenantOAuthCandidatesPage, } from "./tenant-oauth-apps.ts";
|
|
83
|
+
export { OtpApi } from "./otp.ts";
|
|
84
|
+
export type { LoginProviders, OtpHost, OtpVerifyResponse } from "./otp.ts";
|
|
85
|
+
export { TenantLoginFlagsApi } from "./tenant-login-flags.ts";
|
|
86
|
+
export type { SetTenantLoginFlagsInput, TenantLoginFlags, TenantLoginFlagsHost, } from "./tenant-login-flags.ts";
|
|
72
87
|
/**
|
|
73
88
|
* The slice of `W6WClient` the console namespace group needs: the transport,
|
|
74
89
|
* and nothing else. Structural rather than a concrete client type, so
|
|
@@ -95,6 +110,8 @@ export declare class ConsoleApi {
|
|
|
95
110
|
readonly auth: AuthApi;
|
|
96
111
|
/** `console.dashboard.*`. */
|
|
97
112
|
readonly dashboard: DashboardApi;
|
|
113
|
+
/** `console.commerce.*`. */
|
|
114
|
+
readonly commerce: CommerceApi;
|
|
98
115
|
/** `console.projects.*`. */
|
|
99
116
|
readonly projects: ProjectsApi;
|
|
100
117
|
/** `console.schedules.*`. */
|
|
@@ -117,12 +134,20 @@ export declare class ConsoleApi {
|
|
|
117
134
|
readonly functions: FunctionsApi;
|
|
118
135
|
/** `console.endpoints.*`. */
|
|
119
136
|
readonly endpoints: EndpointsApi;
|
|
137
|
+
/** `console.aliases.*`. */
|
|
138
|
+
readonly aliases: AliasesApi;
|
|
120
139
|
/** `console.subscriptions.*`. */
|
|
121
140
|
readonly subscriptions: SubscriptionsApi;
|
|
122
141
|
/** `console.apiCalls.*`. */
|
|
123
142
|
readonly apiCalls: ApiCallsApi;
|
|
124
143
|
/** `console.tenantOAuthApps.*` — the caller's OWN tenant, never a tenant of its choosing. */
|
|
125
144
|
readonly tenantOAuthApps: TenantOAuthAppsApi;
|
|
145
|
+
/** `console.passkeys.*`. */
|
|
146
|
+
readonly passkeys: PasskeysApi;
|
|
147
|
+
/** `console.otp.*` — email one-time-code sign-in, all three methods PUBLIC. */
|
|
148
|
+
readonly otp: OtpApi;
|
|
149
|
+
/** `console.tenantLoginFlags.*` — the caller's OWN tenant, never a tenant of its choosing. */
|
|
150
|
+
readonly tenantLoginFlags: TenantLoginFlagsApi;
|
|
126
151
|
/**
|
|
127
152
|
* @param host - The client this namespace group issues requests through.
|
|
128
153
|
*/
|
|
@@ -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,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAA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,CAAC;IAC7B,iCAAiC;IACjC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAC;IACzC,4BAA4B;IAC5B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,6FAA6F;IAC7F,QAAQ,CAAC,eAAe,EAAE,kBAAkB,CAAC;IAC7C,4BAA4B;IAC5B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,+EAA+E;IAC/E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,8FAA8F;IAC9F,QAAQ,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;IAE/C;;OAEG;gBACS,IAAI,EAAE,WAAW;CAwB9B"}
|
package/dist/src/console/mod.js
CHANGED
|
@@ -17,25 +17,32 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @module
|
|
19
19
|
*/
|
|
20
|
+
import { AliasesApi } from "./aliases.js";
|
|
20
21
|
import { ApiCallsApi } from "./api-calls.js";
|
|
21
22
|
import { AppsApi } from "./apps.js";
|
|
22
23
|
import { AuthApi } from "./auth.js";
|
|
24
|
+
import { CommerceApi } from "./commerce.js";
|
|
23
25
|
import { ConnectionsApi } from "./connections.js";
|
|
24
26
|
import { DashboardApi } from "./dashboard.js";
|
|
25
27
|
import { EndpointsApi } from "./endpoints.js";
|
|
26
28
|
import { FunctionsApi } from "./functions.js";
|
|
29
|
+
import { OtpApi } from "./otp.js";
|
|
30
|
+
import { PasskeysApi } from "./passkeys.js";
|
|
27
31
|
import { ReliabilityApi } from "./reliability.js";
|
|
28
32
|
import { ProjectsApi } from "./projects.js";
|
|
29
33
|
import { SavedTestsApi } from "./saved-tests.js";
|
|
30
34
|
import { SchedulesApi } from "./schedules.js";
|
|
31
35
|
import { StepTestsApi } from "./step-tests.js";
|
|
32
36
|
import { SubscriptionsApi } from "./subscriptions.js";
|
|
37
|
+
import { TenantLoginFlagsApi } from "./tenant-login-flags.js";
|
|
33
38
|
import { TenantOAuthAppsApi } from "./tenant-oauth-apps.js";
|
|
34
39
|
import { TokensApi } from "./tokens.js";
|
|
35
40
|
import { VaultApi } from "./vault.js";
|
|
36
41
|
import { WorkflowsApi } from "./workflows.js";
|
|
37
42
|
export { AuthApi } from "./auth.js";
|
|
43
|
+
export { PasskeysApi } from "./passkeys.js";
|
|
38
44
|
export { DashboardApi } from "./dashboard.js";
|
|
45
|
+
export { CommerceApi } from "./commerce.js";
|
|
39
46
|
export { ReliabilityApi } from "./reliability.js";
|
|
40
47
|
export { ProjectsApi } from "./projects.js";
|
|
41
48
|
export { SchedulesApi } from "./schedules.js";
|
|
@@ -46,11 +53,14 @@ export { SavedTestsApi } from "./saved-tests.js";
|
|
|
46
53
|
export { StepTestsApi } from "./step-tests.js";
|
|
47
54
|
export { VaultApi } from "./vault.js";
|
|
48
55
|
export { TokensApi } from "./tokens.js";
|
|
49
|
-
export { FunctionsApi } from "./functions.js";
|
|
56
|
+
export { FunctionsApi, isCallableImpl } from "./functions.js";
|
|
50
57
|
export { EndpointsApi, SECRET_MASK } from "./endpoints.js";
|
|
58
|
+
export { AliasesApi } from "./aliases.js";
|
|
51
59
|
export { SubscriptionsApi } from "./subscriptions.js";
|
|
52
60
|
export { ApiCallsApi } from "./api-calls.js";
|
|
53
61
|
export { TenantOAuthAppsApi } from "./tenant-oauth-apps.js";
|
|
62
|
+
export { OtpApi } from "./otp.js";
|
|
63
|
+
export { TenantLoginFlagsApi } from "./tenant-login-flags.js";
|
|
54
64
|
/**
|
|
55
65
|
* The `console` namespace group on a `W6WClient` — studio-internal, not part
|
|
56
66
|
* of the published partner contract.
|
|
@@ -67,6 +77,8 @@ export class ConsoleApi {
|
|
|
67
77
|
auth;
|
|
68
78
|
/** `console.dashboard.*`. */
|
|
69
79
|
dashboard;
|
|
80
|
+
/** `console.commerce.*`. */
|
|
81
|
+
commerce;
|
|
70
82
|
/** `console.projects.*`. */
|
|
71
83
|
projects;
|
|
72
84
|
/** `console.schedules.*`. */
|
|
@@ -89,12 +101,20 @@ export class ConsoleApi {
|
|
|
89
101
|
functions;
|
|
90
102
|
/** `console.endpoints.*`. */
|
|
91
103
|
endpoints;
|
|
104
|
+
/** `console.aliases.*`. */
|
|
105
|
+
aliases;
|
|
92
106
|
/** `console.subscriptions.*`. */
|
|
93
107
|
subscriptions;
|
|
94
108
|
/** `console.apiCalls.*`. */
|
|
95
109
|
apiCalls;
|
|
96
110
|
/** `console.tenantOAuthApps.*` — the caller's OWN tenant, never a tenant of its choosing. */
|
|
97
111
|
tenantOAuthApps;
|
|
112
|
+
/** `console.passkeys.*`. */
|
|
113
|
+
passkeys;
|
|
114
|
+
/** `console.otp.*` — email one-time-code sign-in, all three methods PUBLIC. */
|
|
115
|
+
otp;
|
|
116
|
+
/** `console.tenantLoginFlags.*` — the caller's OWN tenant, never a tenant of its choosing. */
|
|
117
|
+
tenantLoginFlags;
|
|
98
118
|
/**
|
|
99
119
|
* @param host - The client this namespace group issues requests through.
|
|
100
120
|
*/
|
|
@@ -102,6 +122,7 @@ export class ConsoleApi {
|
|
|
102
122
|
this.reliability = new ReliabilityApi(host);
|
|
103
123
|
this.auth = new AuthApi(host);
|
|
104
124
|
this.dashboard = new DashboardApi(host);
|
|
125
|
+
this.commerce = new CommerceApi(host);
|
|
105
126
|
this.projects = new ProjectsApi(host);
|
|
106
127
|
this.schedules = new SchedulesApi(host);
|
|
107
128
|
this.apps = new AppsApi(host);
|
|
@@ -113,9 +134,13 @@ export class ConsoleApi {
|
|
|
113
134
|
this.tokens = new TokensApi(host);
|
|
114
135
|
this.functions = new FunctionsApi(host);
|
|
115
136
|
this.endpoints = new EndpointsApi(host);
|
|
137
|
+
this.aliases = new AliasesApi(host);
|
|
116
138
|
this.subscriptions = new SubscriptionsApi(host);
|
|
117
139
|
this.apiCalls = new ApiCallsApi(host);
|
|
118
140
|
this.tenantOAuthApps = new TenantOAuthAppsApi(host);
|
|
141
|
+
this.passkeys = new PasskeysApi(host);
|
|
142
|
+
this.otp = new OtpApi(host);
|
|
143
|
+
this.tenantLoginFlags = new TenantLoginFlagsApi(host);
|
|
119
144
|
}
|
|
120
145
|
}
|
|
121
146
|
//# 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,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,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,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/console/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;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