@w6w/sdk 0.6.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 +166 -16
- package/dist/mod.d.ts +7 -5
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js +1 -0
- package/dist/mod.js.map +1 -1
- package/dist/src/client.d.ts +11 -2
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +12 -2
- 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 +40 -4
- 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/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 +43 -3
- package/dist/src/console/auth.d.ts.map +1 -1
- package/dist/src/console/auth.js +23 -4
- 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 +57 -2
- 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 +22 -7
- package/dist/src/console/mod.d.ts.map +1 -1
- package/dist/src/console/mod.js +16 -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/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/functions.d.ts +149 -1
- package/dist/src/functions.d.ts.map +1 -1
- package/dist/src/functions.js +145 -0
- package/dist/src/functions.js.map +1 -1
- 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 +11 -2
- package/dist/src/run.d.ts.map +1 -1
- package/dist/src/run.js +11 -2
- 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
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `client.console.commerce.*` — the checked-in plan catalog, and the caller's
|
|
3
|
+
* own resolved subscription.
|
|
4
|
+
*
|
|
5
|
+
* **Studio-internal, not the published partner contract.** This namespace
|
|
6
|
+
* lives under the `console` subpath export (`@w6w/sdk/console`), excluded from
|
|
7
|
+
* `endpoints.json` and from the root barrel (`mod.ts`) — see `docs/console.md`
|
|
8
|
+
* and this task's contract. `@w6w/sdk`'s instance-state mechanism pin still
|
|
9
|
+
* applies here exactly as it does to every other namespace
|
|
10
|
+
* (`docs/implementation.md` §MECHANISM PIN — instance state, never globals):
|
|
11
|
+
* this class holds no state of its own beyond the injected host, so two
|
|
12
|
+
* clients in one process never share a credential.
|
|
13
|
+
*
|
|
14
|
+
* **The public/guarded split is per METHOD, not per file, exactly like
|
|
15
|
+
* `console.auth`.** `plans()` is registered above the auth guard
|
|
16
|
+
* (`packages/server/packages/api/commerce/plans-route.ts`'s own doc comment:
|
|
17
|
+
* "PUBLIC: registered above the auth guard by `commerce/edge.ts`") and reads
|
|
18
|
+
* nothing from the request, so it passes `requireAuth: false` and the
|
|
19
|
+
* transport never even attempts to attach a bearer. `subscription()` derives
|
|
20
|
+
* the account from the JWT (`subscription-route.ts`'s own doc comment:
|
|
21
|
+
* "GUARDED") and uses the default, unconditional `requireAuth`.
|
|
22
|
+
*
|
|
23
|
+
* **Both responses carry an envelope key — unlike `console.dashboard`.** The
|
|
24
|
+
* server answers `c.json({ plans: … })` (`plans-route.ts`) and
|
|
25
|
+
* `c.json({ subscription: { plan, status, canUpgrade } })`
|
|
26
|
+
* (`subscription-route.ts`), so both methods here call this package's
|
|
27
|
+
* `unwrap()` helper rather than returning `res.body` verbatim.
|
|
28
|
+
*
|
|
29
|
+
* **`allowance()` (W-12) is the caller's own EFFECTIVE allowance, credits and
|
|
30
|
+
* current-month usage** — `GET /commerce/allowance`, AUTHENTICATED like
|
|
31
|
+
* `subscription()`, unwrapped from the `allowance` envelope. `credits.balance`
|
|
32
|
+
* is SIGNED and never clamped: negative means over by that many executions.
|
|
33
|
+
* Egress-pinned: never `reason`, `setBy`, `grantedBy`, `grants`, `override` or
|
|
34
|
+
* a `/stripe/i` key at any depth — those are operator/control-internal, not
|
|
35
|
+
* account-facing. Any non-200 (including a 424 `control_unavailable` or an old
|
|
36
|
+
* control's 404 `text/plain`) is treated as "unavailable" by callers.
|
|
37
|
+
*
|
|
38
|
+
* @module
|
|
39
|
+
*/
|
|
40
|
+
import { unwrap } from "../types.js";
|
|
41
|
+
/**
|
|
42
|
+
* The `console.commerce` namespace on a `W6WClient`.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const plans = await client.console.commerce.plans();
|
|
47
|
+
* const { canUpgrade } = await client.console.commerce.subscription();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export class CommerceApi {
|
|
51
|
+
#host;
|
|
52
|
+
/**
|
|
53
|
+
* @param host - The client this namespace issues requests through.
|
|
54
|
+
*/
|
|
55
|
+
constructor(host) {
|
|
56
|
+
this.#host = host;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Fetch the checked-in plan catalog.
|
|
60
|
+
*
|
|
61
|
+
* PUBLIC — sends no bearer, even on a client that already holds one
|
|
62
|
+
* (`requireAuth: false`): the route reads nothing from the request and its
|
|
63
|
+
* output is byte-identical for every caller.
|
|
64
|
+
*
|
|
65
|
+
* @returns The catalog, unwrapped from the `plans` envelope.
|
|
66
|
+
* @throws {ApiError} On any non-2xx.
|
|
67
|
+
*/
|
|
68
|
+
async plans() {
|
|
69
|
+
const res = await this.#host.request({
|
|
70
|
+
method: "GET",
|
|
71
|
+
path: "/commerce/plans",
|
|
72
|
+
requireAuth: false,
|
|
73
|
+
});
|
|
74
|
+
return unwrap(res, "plans");
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Fetch the caller's own resolved subscription.
|
|
78
|
+
*
|
|
79
|
+
* AUTHENTICATED — the default `requireAuth` applies: the account is
|
|
80
|
+
* derived server-side from the principal.
|
|
81
|
+
*
|
|
82
|
+
* @returns The subscription, unwrapped from the `subscription` envelope.
|
|
83
|
+
* @throws {ApiError} On any non-2xx, e.g. `409` when the resolved plan key
|
|
84
|
+
* is not in the catalog or is ambiguous.
|
|
85
|
+
*/
|
|
86
|
+
async subscription() {
|
|
87
|
+
const res = await this.#host.request({
|
|
88
|
+
method: "GET",
|
|
89
|
+
path: "/commerce/subscription",
|
|
90
|
+
});
|
|
91
|
+
return unwrap(res, "subscription");
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Fetch the caller's own invoice history, newest first.
|
|
95
|
+
*
|
|
96
|
+
* AUTHENTICATED — the default `requireAuth` applies: the account is
|
|
97
|
+
* derived server-side from the principal.
|
|
98
|
+
*
|
|
99
|
+
* @returns The invoices, unwrapped from the `invoices` envelope.
|
|
100
|
+
* @throws {ApiError} On any non-2xx.
|
|
101
|
+
*/
|
|
102
|
+
async invoices() {
|
|
103
|
+
const res = await this.#host.request({
|
|
104
|
+
method: "GET",
|
|
105
|
+
path: "/commerce/invoices",
|
|
106
|
+
});
|
|
107
|
+
return unwrap(res, "invoices");
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Open a live Stripe Checkout Session for a billable plan/interval.
|
|
111
|
+
* AUTHENTICATED — the account is resolved server-side from the bearer.
|
|
112
|
+
*
|
|
113
|
+
* @returns The hosted payment page URL. Redirect the browser to it
|
|
114
|
+
* (`window.location.href = url`); do not fetch it.
|
|
115
|
+
* @throws {ApiError} `409 plan_not_billable` for a `contact-sales`/`none`
|
|
116
|
+
* plan or an interval the plan doesn't offer; `409 price_not_synced` if
|
|
117
|
+
* the catalog says billable but Stripe has no matching active price yet;
|
|
118
|
+
* `409 plan_not_self_serve` if the account's CURRENT plan is a top-tier
|
|
119
|
+
* plan — an upgrade off it goes through sales, not self-serve checkout.
|
|
120
|
+
*/
|
|
121
|
+
async checkout(input) {
|
|
122
|
+
const res = await this.#host.request({
|
|
123
|
+
method: "POST",
|
|
124
|
+
path: "/commerce/checkout",
|
|
125
|
+
body: input,
|
|
126
|
+
});
|
|
127
|
+
return unwrap(res, "checkout");
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Confirm a Checkout Session on return from Stripe (the
|
|
131
|
+
* `checkout_session_id` query param `checkout()`'s success URL carries
|
|
132
|
+
* back). Verified against Stripe itself, never trusted from the URL alone
|
|
133
|
+
* — see the server's `CheckoutService` for what this deliberately does not
|
|
134
|
+
* cover (no webhook yet: a session completed after the tab closed is
|
|
135
|
+
* invisible to it).
|
|
136
|
+
*
|
|
137
|
+
* @returns The confirmed subscription.
|
|
138
|
+
* @throws {ApiError} `404 checkout_session_not_found`; `403
|
|
139
|
+
* checkout_session_mismatch` if the session belongs to a different
|
|
140
|
+
* account; `409 checkout_not_paid` if payment hasn't completed yet.
|
|
141
|
+
*/
|
|
142
|
+
async confirmCheckout(input) {
|
|
143
|
+
const res = await this.#host.request({
|
|
144
|
+
method: "POST",
|
|
145
|
+
path: "/commerce/checkout/confirm",
|
|
146
|
+
body: { sessionId: input.sessionId },
|
|
147
|
+
});
|
|
148
|
+
return unwrap(res, "subscription");
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Submit an Enterprise "contact sales" lead. AUTHENTICATED — captured
|
|
152
|
+
* durably server-side regardless of whether outbound mail is configured
|
|
153
|
+
* (see the server's `ContactSalesService`).
|
|
154
|
+
*/
|
|
155
|
+
async contactSales(input) {
|
|
156
|
+
const res = await this.#host.request({
|
|
157
|
+
method: "POST",
|
|
158
|
+
path: "/commerce/contact-sales",
|
|
159
|
+
body: input,
|
|
160
|
+
});
|
|
161
|
+
return unwrap(res, "lead");
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Preview what moving the CALLER'S OWN existing subscription to a
|
|
165
|
+
* different plan/interval would charge or credit TODAY, without applying
|
|
166
|
+
* anything. AUTHENTICATED.
|
|
167
|
+
*
|
|
168
|
+
* @throws {ApiError} `409 no_active_subscription` if the account has no
|
|
169
|
+
* active Stripe subscription to change — use {@link checkout} instead;
|
|
170
|
+
* `409 plan_not_self_serve` if the account's CURRENT plan is a top-tier
|
|
171
|
+
* plan — an upgrade off it goes through sales, not self-serve checkout.
|
|
172
|
+
*/
|
|
173
|
+
async previewSubscriptionChange(input) {
|
|
174
|
+
const res = await this.#host.request({
|
|
175
|
+
method: "POST",
|
|
176
|
+
path: "/commerce/subscription/preview",
|
|
177
|
+
body: input,
|
|
178
|
+
});
|
|
179
|
+
return unwrap(res, "preview");
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Apply the change {@link previewSubscriptionChange} previewed — moves the
|
|
183
|
+
* caller's existing Stripe subscription to the new plan/interval with
|
|
184
|
+
* proration, and charges/credits the net difference immediately.
|
|
185
|
+
* AUTHENTICATED.
|
|
186
|
+
*
|
|
187
|
+
* @throws {ApiError} `409 no_active_subscription` if the account has no
|
|
188
|
+
* active Stripe subscription to change — use {@link checkout} instead;
|
|
189
|
+
* `409 plan_not_self_serve` if the account's CURRENT plan is a top-tier
|
|
190
|
+
* plan — an upgrade off it goes through sales, not self-serve checkout.
|
|
191
|
+
*/
|
|
192
|
+
async changeSubscription(input) {
|
|
193
|
+
const res = await this.#host.request({
|
|
194
|
+
method: "POST",
|
|
195
|
+
path: "/commerce/subscription/change",
|
|
196
|
+
body: input,
|
|
197
|
+
});
|
|
198
|
+
return res.body;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Fetch the caller's own effective allowance, credits and current-month
|
|
202
|
+
* usage (W-12).
|
|
203
|
+
*
|
|
204
|
+
* AUTHENTICATED — the default `requireAuth` applies: the account is
|
|
205
|
+
* derived server-side from the principal.
|
|
206
|
+
*
|
|
207
|
+
* @returns The allowance, unwrapped from the `allowance` envelope.
|
|
208
|
+
* @throws {ApiError} On any non-2xx, including `424 control_unavailable`
|
|
209
|
+
* when the host cannot reach control — callers should treat ANY non-200
|
|
210
|
+
* here as "unavailable", not just this one code.
|
|
211
|
+
*/
|
|
212
|
+
async allowance() {
|
|
213
|
+
const res = await this.#host.request({
|
|
214
|
+
method: "GET",
|
|
215
|
+
path: "/commerce/allowance",
|
|
216
|
+
});
|
|
217
|
+
return unwrap(res, "allowance");
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
//# sourceMappingURL=commerce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commerce.js","sourceRoot":"","sources":["../../../src/console/commerce.ts"],"names":[],"mappings":"AAAA;;;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;OAWG;IACH,KAAK,CAAC,SAAS;QACb,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAkC;YACpE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,qBAAqB;SAC5B,CAAC,CAAC;QACH,OAAO,MAAM,CAAmB,GAAG,EAAE,WAAW,CAAC,CAAC;IACpD,CAAC;CACF"}
|
|
@@ -72,6 +72,14 @@ export interface DashboardStats {
|
|
|
72
72
|
summary: string | null;
|
|
73
73
|
occurredAt: string;
|
|
74
74
|
workflowId: string | null;
|
|
75
|
+
/** The Function's `fn_…` id; non-null only for `kind: "function"` rows. */
|
|
76
|
+
functionId: string | null;
|
|
77
|
+
/** Wall-clock duration in milliseconds; `null` when unknown. */
|
|
78
|
+
durationMs: number | null;
|
|
79
|
+
/** The owning project id; `null` when none. */
|
|
80
|
+
project: string | null;
|
|
81
|
+
/** The step's id within its workflow; non-null only on `kind: "workflow_step"` rows. */
|
|
82
|
+
stepId: string | null;
|
|
75
83
|
}>;
|
|
76
84
|
}
|
|
77
85
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../src/console/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE/D;;;;;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,oGAAoG;AACpG,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,M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"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
|
} | {
|
|
@@ -86,7 +86,56 @@ export interface EndpointRefTarget {
|
|
|
86
86
|
* legal only for the latter: an Endpoint's own target can never be another
|
|
87
87
|
* Endpoint (see {@linkcode EndpointRefTarget}).
|
|
88
88
|
*/
|
|
89
|
-
export type EndpointTarget =
|
|
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";
|
|
90
139
|
/** The inbound auth mode an Endpoint's public exposure enforces. */
|
|
91
140
|
export type EndpointAuthMode = "platform" | "none" | "basic" | "header" | "jwt";
|
|
92
141
|
/**
|
|
@@ -151,6 +200,12 @@ export interface EndpointDef {
|
|
|
151
200
|
target: EndpointTarget;
|
|
152
201
|
input?: EndpointInput[];
|
|
153
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;
|
|
154
209
|
}
|
|
155
210
|
/**
|
|
156
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;;;;;G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AACH,qBAAa,YAAY;;IAGvB;;OAEG;gBACS,IAAI,EAAE,aAAa;IAI/B;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAKxC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,GAAG,CACP,EAAE,EAAE,MAAM,GACT,OAAO,CAAC;QAAE,QAAQ,EAAE,WAAW,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAUjF;;;;;;;;;;;;;;;;;;OAkBG;IACG,MAAM,CACV,UAAU,EAAE,WAAW,GACtB,OAAO,CACR;QAAE,QAAQ,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,CACtF;IAWD;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAQxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../src/console/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAqB,IAAI,EAAuB,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../src/console/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAqB,IAAI,EAAuB,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,M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ACnC,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,CAAC;IACd,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,uDAAuD;AACvD,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ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AC,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"}
|
|
@@ -22,10 +22,12 @@ import { AliasesApi } from "./aliases.ts";
|
|
|
22
22
|
import { ApiCallsApi } from "./api-calls.ts";
|
|
23
23
|
import { AppsApi } from "./apps.ts";
|
|
24
24
|
import { AuthApi } from "./auth.ts";
|
|
25
|
+
import { CommerceApi } from "./commerce.ts";
|
|
25
26
|
import { ConnectionsApi } from "./connections.ts";
|
|
26
27
|
import { DashboardApi } from "./dashboard.ts";
|
|
27
28
|
import { EndpointsApi } from "./endpoints.ts";
|
|
28
29
|
import { FunctionsApi } from "./functions.ts";
|
|
30
|
+
import { OtpApi } from "./otp.ts";
|
|
29
31
|
import { PasskeysApi } from "./passkeys.ts";
|
|
30
32
|
import { ReliabilityApi } from "./reliability.ts";
|
|
31
33
|
import { ProjectsApi } from "./projects.ts";
|
|
@@ -33,24 +35,27 @@ import { SavedTestsApi } from "./saved-tests.ts";
|
|
|
33
35
|
import { SchedulesApi } from "./schedules.ts";
|
|
34
36
|
import { StepTestsApi } from "./step-tests.ts";
|
|
35
37
|
import { SubscriptionsApi } from "./subscriptions.ts";
|
|
38
|
+
import { TenantLoginFlagsApi } from "./tenant-login-flags.ts";
|
|
36
39
|
import { TenantOAuthAppsApi } from "./tenant-oauth-apps.ts";
|
|
37
40
|
import { TokensApi } from "./tokens.ts";
|
|
38
41
|
import { VaultApi } from "./vault.ts";
|
|
39
42
|
import { WorkflowsApi } from "./workflows.ts";
|
|
40
43
|
export { AuthApi } from "./auth.ts";
|
|
41
|
-
export type { AccountWire, AuthHost, ConfirmContactChangeInput, ConsoleMe, CreateAccountResponse, LoginResponse, ProfileContact, ProfileLoginMethod, ProfilePendingChange, RequestContactChangeInput, SetPasswordInput, SignupInput, SignupResponse, SignupUser, SlugAvailabilityResponse, UpdateProfileInput, User, UserProfile, } 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";
|
|
42
45
|
export { PasskeysApi } from "./passkeys.ts";
|
|
43
46
|
export type { AuthenticationVerifyInput, Passkey, PasskeyAuthenticationVerifyResponse, PasskeyCeremonyOptions, PasskeysHost, PasskeyUser, RegistrationVerifyInput, } from "./passkeys.ts";
|
|
44
47
|
export { DashboardApi } from "./dashboard.ts";
|
|
45
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";
|
|
46
51
|
export { ReliabilityApi } from "./reliability.ts";
|
|
47
|
-
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";
|
|
48
53
|
export { ProjectsApi } from "./projects.ts";
|
|
49
54
|
export type { Project, ProjectsHost } from "./projects.ts";
|
|
50
55
|
export { SchedulesApi } from "./schedules.ts";
|
|
51
56
|
export type { Schedule, SchedulesHost, ScheduleUpsertInput } from "./schedules.ts";
|
|
52
57
|
export { AppsApi } from "./apps.ts";
|
|
53
|
-
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";
|
|
54
59
|
export { ConnectionsApi } from "./connections.ts";
|
|
55
60
|
export type { ConnectionsHost, ConnectionTestResult } from "./connections.ts";
|
|
56
61
|
export { WorkflowsApi } from "./workflows.ts";
|
|
@@ -63,10 +68,10 @@ export { VaultApi } from "./vault.ts";
|
|
|
63
68
|
export type { SecretValue, VaultHost, VaultSecretSummary } from "./vault.ts";
|
|
64
69
|
export { TokensApi } from "./tokens.ts";
|
|
65
70
|
export type { ApiToken, ApiTokenStatus, CreateTokenResponse, TokensHost } from "./tokens.ts";
|
|
66
|
-
export { FunctionsApi } from "./functions.ts";
|
|
67
|
-
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";
|
|
68
73
|
export { EndpointsApi, SECRET_MASK } from "./endpoints.ts";
|
|
69
|
-
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";
|
|
70
75
|
export { AliasesApi } from "./aliases.ts";
|
|
71
76
|
export type { AliasDef, AliasesHost, AliasSummary } from "./aliases.ts";
|
|
72
77
|
export { SubscriptionsApi } from "./subscriptions.ts";
|
|
@@ -74,7 +79,11 @@ export type { Subscription, SubscriptionCreateInput, SubscriptionsHost, TriggerE
|
|
|
74
79
|
export { ApiCallsApi } from "./api-calls.ts";
|
|
75
80
|
export type { ApiCallsFilter, ApiCallsHost } from "./api-calls.ts";
|
|
76
81
|
export { TenantOAuthAppsApi } from "./tenant-oauth-apps.ts";
|
|
77
|
-
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";
|
|
78
87
|
/**
|
|
79
88
|
* The slice of `W6WClient` the console namespace group needs: the transport,
|
|
80
89
|
* and nothing else. Structural rather than a concrete client type, so
|
|
@@ -101,6 +110,8 @@ export declare class ConsoleApi {
|
|
|
101
110
|
readonly auth: AuthApi;
|
|
102
111
|
/** `console.dashboard.*`. */
|
|
103
112
|
readonly dashboard: DashboardApi;
|
|
113
|
+
/** `console.commerce.*`. */
|
|
114
|
+
readonly commerce: CommerceApi;
|
|
104
115
|
/** `console.projects.*`. */
|
|
105
116
|
readonly projects: ProjectsApi;
|
|
106
117
|
/** `console.schedules.*`. */
|
|
@@ -133,6 +144,10 @@ export declare class ConsoleApi {
|
|
|
133
144
|
readonly tenantOAuthApps: TenantOAuthAppsApi;
|
|
134
145
|
/** `console.passkeys.*`. */
|
|
135
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;
|
|
136
151
|
/**
|
|
137
152
|
* @param host - The client this namespace group issues requests through.
|
|
138
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,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,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,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,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,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