palbase 0.52.2 → 0.52.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{LIAYIEXX.js → 2JWR4TOH.js} +2 -2
- package/dist/chunks/{QBPW2ZV2.js → 2YNLJAG5.js} +1 -1
- package/dist/chunks/{CS7VS2I4.js → 4NILQCHQ.js} +1 -1
- package/dist/chunks/{FZYSYMLN.js → 6CQFSNLY.js} +2 -2
- package/dist/chunks/{2TJ6G7EB.js → 7GD3L3PE.js} +2 -2
- package/dist/chunks/{SNAGLIWD.js → C64DV7YH.js} +2 -2
- package/dist/chunks/{6KUEOXTD.js → DXBUBVLA.js} +3 -3
- package/dist/chunks/{HJ32UYIZ.js → HI5LYPKI.js} +2 -2
- package/dist/chunks/{UZHDAEGV.js → IAOUEMQZ.js} +2 -2
- package/dist/chunks/{CNNM6TEU.js → IRNNGVIR.js} +1 -1
- package/dist/chunks/{7MZR43VA.js → KYM3FOIG.js} +2 -2
- package/dist/chunks/{XW72Z3PD.js → NWSACFNU.js} +1 -1
- package/dist/chunks/{CAFJGSSL.js → OVBMWRJE.js} +1 -1
- package/dist/chunks/{LRBCJG6J.js → OX35EL23.js} +2 -2
- package/dist/chunks/{7KWRJAD3.js → P7KXATI4.js} +2 -2
- package/dist/chunks/{QZNTAOHQ.js → PKKXILGV.js} +1 -1
- package/dist/chunks/{GPO2P47C.js → RFO74P2O.js} +1 -1
- package/dist/chunks/{UYSZUJJJ.js → SER5LGIQ.js} +2 -2
- package/dist/chunks/SXRHHF3J.js +2 -0
- package/dist/chunks/{3ECCMPHK.js → T3VXSKEG.js} +2 -2
- package/dist/chunks/{USFK3JYL.js → WSPAP2CG.js} +2 -2
- package/dist/chunks/{F3RZ5XX3.js → WZHBF3BR.js} +2 -2
- package/dist/chunks/{R5DJKZ7O.js → Y5QCPCHW.js} +2 -2
- package/dist/cli.js +117 -117
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
- package/types/internal/src/modules/auth.d.ts +93 -15
- package/types/internal/src/modules/events.d.ts +2 -2
- package/types/internal/src/modules/machines.d.ts +17 -3
- package/types/internal/src/modules/notify.d.ts +34 -2
- package/types/web/src/auth.d.ts +2 -2
- package/dist/chunks/WBQBWQEG.js +0 -2
|
@@ -670,10 +670,10 @@ export type AdminUserExportUser = {
|
|
|
670
670
|
updated_at: string;
|
|
671
671
|
};
|
|
672
672
|
/**
|
|
673
|
-
* A user the call did not write. invalid_* names the field to fix; *_exists names what the project already has (the user, or one of its identities, passkeys or sessions, belongs to another); too_many: the user brings more than a person has (at most 10 recovery codes, 32 identities, 32 passkeys, 16 second factors, 100 sessions); internal_error is ours — send the user again.
|
|
673
|
+
* A user the call did not write. invalid_* names the field to fix; *_exists names what the project already has (the user, or one of its identities, passkeys or sessions, belongs to another); too_many: the user brings more than a person has (at most 10 recovery codes, 32 identities, 32 passkeys, 16 second factors, 100 sessions); passkey_address_moved and passkey_address_unavailable: where the environment's passkeys are saved moved, or could not be decided, while the user was written — send the user again; internal_error is ours — send the user again.
|
|
674
674
|
*/
|
|
675
675
|
export type AdminUserImportError = {
|
|
676
|
-
error: "invalid_id" | "invalid_email" | "invalid_phone" | "invalid_locale" | "invalid_metadata" | "invalid_password_hash" | "invalid_identity" | "invalid_passkey" | "invalid_mfa_factor" | "invalid_recovery_code" | "invalid_session" | "identifier_required" | "user_exists" | "email_exists" | "phone_exists" | "identity_exists" | "passkey_exists" | "session_exists" | "too_many" | "conflict" | "internal_error";
|
|
676
|
+
error: "invalid_id" | "invalid_email" | "invalid_phone" | "invalid_locale" | "invalid_metadata" | "invalid_password_hash" | "invalid_identity" | "invalid_passkey" | "invalid_mfa_factor" | "invalid_recovery_code" | "invalid_session" | "identifier_required" | "user_exists" | "email_exists" | "phone_exists" | "identity_exists" | "passkey_exists" | "passkey_address_moved" | "passkey_address_unavailable" | "session_exists" | "too_many" | "conflict" | "internal_error";
|
|
677
677
|
/**
|
|
678
678
|
* The user's id as sent.
|
|
679
679
|
*/
|
|
@@ -2201,6 +2201,9 @@ export type MFARemoveRequest = {
|
|
|
2201
2201
|
current_password: string;
|
|
2202
2202
|
};
|
|
2203
2203
|
export type MFARequiredResponse = {
|
|
2204
|
+
/**
|
|
2205
|
+
* The account's second factors that answer the challenge: `totp`, `sms` and `email` at `/auth/mfa/*` with the `mfa_token`. `webauthn` is the account's passkey, which is not answered there: sign in with it instead (`POST /auth/webauthn/login/begin`, with the request's `auth_request_id` for an OpenID request), which reaches aal2 alone.
|
|
2206
|
+
*/
|
|
2204
2207
|
factors: ("totp" | "sms" | "email" | "webauthn")[];
|
|
2205
2208
|
mfa_required: true;
|
|
2206
2209
|
/**
|
|
@@ -2248,14 +2251,29 @@ export type MFAVerifyEnrollmentRequest = {
|
|
|
2248
2251
|
code: string;
|
|
2249
2252
|
};
|
|
2250
2253
|
export type MagicLinkRequest = {
|
|
2254
|
+
/**
|
|
2255
|
+
* The pending /oauth/authorize request the sign-in is for: one that is not waiting is refused with 400 `auth_request_invalid` before an email is sent. The email's link then opens at the provider (`GET /oauth/authorize/email`), and a six-digit code goes beside it: in the browser that opened the request the link leads to the sign-in page with `auth_request_id` and `email_token`; on another device it tells the person to type the code in the tab they started in (`POST /auth/magic-link/verify` with `auth_request_id` and `code`). `redirect_to` does not apply.
|
|
2256
|
+
*/
|
|
2257
|
+
auth_request_id?: string;
|
|
2251
2258
|
email: string;
|
|
2252
2259
|
/**
|
|
2253
2260
|
* Where the sign-in link lands instead of the project's site URL: an address the auth settings' redirect_urls allow, or one of the project's web apps' redirects (apps:env:set --redirect); any other is refused (invalid_redirect).
|
|
2254
2261
|
*/
|
|
2255
2262
|
redirect_to?: string;
|
|
2256
2263
|
};
|
|
2264
|
+
/**
|
|
2265
|
+
* The link's `token`; or, for a sign-in for an OpenID authorization request, its `auth_request_id` with the link's token (`email_token` on the sign-in page) or the six-digit `code` the email carries. Either completes the request at `urn:nist:800-63:aal1` (amr `email`) and the answer names the callback (`oidc_callback_url`); a request that needs aal2 asks the account's second factor next (`mfa_required`, the request in its `mfa_token`).
|
|
2266
|
+
*/
|
|
2257
2267
|
export type MagicLinkVerifyRequest = {
|
|
2258
|
-
|
|
2268
|
+
/**
|
|
2269
|
+
* The pending /oauth/authorize request the sign-in completes. A link sent for another request is refused (400 `auth_request_invalid`).
|
|
2270
|
+
*/
|
|
2271
|
+
auth_request_id?: string;
|
|
2272
|
+
/**
|
|
2273
|
+
* The six-digit code the email carries, typed in the tab that opened the request. A wrong one is 400 `invalid_code`. After five wrong codes the email's code no longer works (400 `code_max_attempts`); after twenty tried for the address in a day, no code does until the day is over (400 `code_limit_reached`). Either way the email's link still signs in from the browser that opened the request.
|
|
2274
|
+
*/
|
|
2275
|
+
code?: string;
|
|
2276
|
+
token?: string;
|
|
2259
2277
|
};
|
|
2260
2278
|
/**
|
|
2261
2279
|
* The signed-in user's own profile: which credentials the account holds and its language preference.
|
|
@@ -2494,6 +2512,10 @@ export type PasswordSetRequest = {
|
|
|
2494
2512
|
new_password: string;
|
|
2495
2513
|
};
|
|
2496
2514
|
export type PhoneOTPRequest = {
|
|
2515
|
+
/**
|
|
2516
|
+
* The pending /oauth/authorize request the code is for: one that is not waiting is refused with 400 `auth_request_invalid` before a text is sent. Name it again on `POST /auth/otp/verify`.
|
|
2517
|
+
*/
|
|
2518
|
+
auth_request_id?: string;
|
|
2497
2519
|
/**
|
|
2498
2520
|
* Delivery channel. Only `sms` is supported.
|
|
2499
2521
|
*/
|
|
@@ -2518,6 +2540,10 @@ export type PhoneOTPSession = {
|
|
|
2518
2540
|
* Access-token lifetime in seconds.
|
|
2519
2541
|
*/
|
|
2520
2542
|
expires_in: number;
|
|
2543
|
+
/**
|
|
2544
|
+
* Present when the sign-in completed an OAuth authorization request (`auth_request_id`): where the browser continues.
|
|
2545
|
+
*/
|
|
2546
|
+
oidc_callback_url?: string;
|
|
2521
2547
|
refresh_token: string;
|
|
2522
2548
|
token_type: "Bearer";
|
|
2523
2549
|
user: PhoneOTPUser;
|
|
@@ -2543,6 +2569,10 @@ export type PhoneOTPUser = {
|
|
|
2543
2569
|
roles: string[];
|
|
2544
2570
|
};
|
|
2545
2571
|
export type PhoneOTPVerifyRequest = {
|
|
2572
|
+
/**
|
|
2573
|
+
* The pending /oauth/authorize request the sign-in completes: at `urn:nist:800-63:aal1` (amr `sms`), and the answer names the callback (`oidc_callback_url`). A request that needs aal2 asks the account's authenticator app (or passkey) next — a second text adds nothing — and the challenge completes it; an account with neither, or a number with no account yet, is refused with 400 `auth_request_invalid`.
|
|
2574
|
+
*/
|
|
2575
|
+
auth_request_id?: string;
|
|
2546
2576
|
/**
|
|
2547
2577
|
* The same number the code was sent to (same format rules as `POST /auth/otp`).
|
|
2548
2578
|
*/
|
|
@@ -2903,6 +2933,10 @@ export type SigningKeyRotateResult = {
|
|
|
2903
2933
|
new_kid: string;
|
|
2904
2934
|
};
|
|
2905
2935
|
export type SignupRequest = {
|
|
2936
|
+
/**
|
|
2937
|
+
* The pending /oauth/authorize request the new account signs in for. A request that is not waiting, or that needs a second factor (aal2 and up: a new account has none yet), is refused with 400 `auth_request_invalid` before the account is opened. A sign-up that signs the person in at once completes it (`urn:nist:800-63:aal1`, amr `pwd`) and the answer names the callback (`oidc_callback_url`); one with the address to confirm first answers no session, and the password sign-in after the confirmation completes it.
|
|
2938
|
+
*/
|
|
2939
|
+
auth_request_id?: string;
|
|
2906
2940
|
email: string;
|
|
2907
2941
|
/**
|
|
2908
2942
|
* The visitor id the Fingerprint agent produced on this device; scored by the risk engine when the project has connected Fingerprint.
|
|
@@ -2933,6 +2967,18 @@ export type SignupResult = {
|
|
|
2933
2967
|
* Access-token lifetime in seconds
|
|
2934
2968
|
*/
|
|
2935
2969
|
expires_in?: number;
|
|
2970
|
+
/**
|
|
2971
|
+
* Present when the sign-up named an OAuth authorization request (`auth_request_id`) and could not complete it — it expired, or another sign-in completed it, meanwhile: the account is open and signed in, and the person starts again from the app.
|
|
2972
|
+
*/
|
|
2973
|
+
auth_request_error?: "auth_request_invalid";
|
|
2974
|
+
/**
|
|
2975
|
+
* Present, true, when the sign-up named an OAuth authorization request (`auth_request_id`), as a provider's sign-in says it.
|
|
2976
|
+
*/
|
|
2977
|
+
is_new_user?: boolean;
|
|
2978
|
+
/**
|
|
2979
|
+
* Present when the sign-up completed an OAuth authorization request (`auth_request_id`): where the browser continues.
|
|
2980
|
+
*/
|
|
2981
|
+
oidc_callback_url?: string;
|
|
2936
2982
|
/**
|
|
2937
2983
|
* Opaque single-use refresh token (256-bit, base64url)
|
|
2938
2984
|
*/
|
|
@@ -3795,6 +3841,10 @@ export type WebAuthnCredentialRequestOptions = {
|
|
|
3795
3841
|
* Optional scoping for `/auth/webauthn/login/begin`. An empty body triggers a discoverable (passkey) login.
|
|
3796
3842
|
*/
|
|
3797
3843
|
export type WebAuthnLoginBeginRequest = {
|
|
3844
|
+
/**
|
|
3845
|
+
* Links the passkey login to a pending /oauth/authorize request: bound to the ceremony here, completed when it finishes, whose answer then names the callback (`oidc_callback_url`). A request that is not waiting is refused with 400 `auth_request_invalid` before the person is asked for a passkey. A passkey completes it at `urn:nist:800-63:aal2`: amr `swk` for one that syncs, `hwk` for one bound to its device (a flag the authenticator reports, so it raises no level).
|
|
3846
|
+
*/
|
|
3847
|
+
auth_request_id?: string;
|
|
3798
3848
|
email?: string;
|
|
3799
3849
|
user_id?: string;
|
|
3800
3850
|
};
|
|
@@ -5045,10 +5095,13 @@ export declare function client(t: Transport): {
|
|
|
5045
5095
|
*
|
|
5046
5096
|
* Always returns 200 (enumeration prevention). When the email
|
|
5047
5097
|
* belongs to an account the server emails a single-use signed link
|
|
5048
|
-
* / OTP. Subject to per-IP rate limiting.
|
|
5049
|
-
*
|
|
5098
|
+
* / OTP. Subject to per-IP rate limiting. Asks a proof of work first (403 `pow_required`, which the SDKs solve), its difficulty rising when the project's attempts surge: a bot that posts it in a loop pays seconds a request.
|
|
5050
5099
|
*/
|
|
5051
5100
|
magicLinkRequest(input: {
|
|
5101
|
+
headers?: {
|
|
5102
|
+
"X-PoW-Challenge-ID"?: string; /** The nonce that solves it. */
|
|
5103
|
+
"X-PoW-Nonce"?: string;
|
|
5104
|
+
};
|
|
5052
5105
|
body: MagicLinkRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
5053
5106
|
signal?: AbortSignal;
|
|
5054
5107
|
}): Promise<Reply<200, SuccessResponse>>;
|
|
@@ -5064,7 +5117,7 @@ export declare function client(t: Transport): {
|
|
|
5064
5117
|
magicLinkVerify(input: {
|
|
5065
5118
|
body: MagicLinkVerifyRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
5066
5119
|
signal?: AbortSignal;
|
|
5067
|
-
}): Promise<Reply<200,
|
|
5120
|
+
}): Promise<Reply<200, LoginResponse>>;
|
|
5068
5121
|
/**
|
|
5069
5122
|
* Read the signed-in user's profile
|
|
5070
5123
|
*
|
|
@@ -5489,10 +5542,13 @@ export declare function client(t: Transport): {
|
|
|
5489
5542
|
*
|
|
5490
5543
|
* Always returns 200 (enumeration prevention). The plain-text
|
|
5491
5544
|
* request never reveals whether the email is registered. Subject to
|
|
5492
|
-
* rate limiting (3 per 15 min per account).
|
|
5493
|
-
*
|
|
5545
|
+
* rate limiting (3 per 15 min per account). Asks a proof of work first (403 `pow_required`, which the SDKs solve), its difficulty rising when the project's attempts surge: a bot that posts it in a loop pays seconds a request.
|
|
5494
5546
|
*/
|
|
5495
5547
|
passwordResetRequest(input: {
|
|
5548
|
+
headers?: {
|
|
5549
|
+
"X-PoW-Challenge-ID"?: string; /** The nonce that solves it. */
|
|
5550
|
+
"X-PoW-Nonce"?: string;
|
|
5551
|
+
};
|
|
5496
5552
|
body: PasswordResetRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
5497
5553
|
signal?: AbortSignal;
|
|
5498
5554
|
}): Promise<Reply<200, SuccessResponse>>;
|
|
@@ -5603,10 +5659,13 @@ export declare function client(t: Transport): {
|
|
|
5603
5659
|
* Initiate trusted-contact recovery
|
|
5604
5660
|
*
|
|
5605
5661
|
* Start a trusted-contact account recovery for the named user.
|
|
5606
|
-
* Sends approval tokens to each verified contact.
|
|
5607
|
-
*
|
|
5662
|
+
* Sends approval tokens to each verified contact. Asks a proof of work first (403 `pow_required`, which the SDKs solve), its difficulty rising when the project's attempts surge: a bot that posts it in a loop pays seconds a request.
|
|
5608
5663
|
*/
|
|
5609
5664
|
initiateRecovery(input: {
|
|
5665
|
+
headers?: {
|
|
5666
|
+
"X-PoW-Challenge-ID"?: string; /** The nonce that solves it. */
|
|
5667
|
+
"X-PoW-Nonce"?: string;
|
|
5668
|
+
};
|
|
5610
5669
|
body: InitiateRecoveryRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
5611
5670
|
signal?: AbortSignal;
|
|
5612
5671
|
}): Promise<Reply<200, RecoveryStatus> | Reply<202, RecoveryInitiated>>;
|
|
@@ -5627,10 +5686,13 @@ export declare function client(t: Transport): {
|
|
|
5627
5686
|
* Always returns 200 with an empty body (enumeration prevention). When the email is
|
|
5628
5687
|
* bound to an unverified account the server queues a fresh
|
|
5629
5688
|
* verification email; otherwise the response is identical but no
|
|
5630
|
-
* email is sent. The code or link reaches the address by e-mail only.
|
|
5631
|
-
*
|
|
5689
|
+
* email is sent. The code or link reaches the address by e-mail only. Asks a proof of work first (403 `pow_required`, which the SDKs solve), its difficulty rising when the project's attempts surge: a bot that posts it in a loop pays seconds a request.
|
|
5632
5690
|
*/
|
|
5633
5691
|
resendVerification(input: {
|
|
5692
|
+
headers?: {
|
|
5693
|
+
"X-PoW-Challenge-ID"?: string; /** The nonce that solves it. */
|
|
5694
|
+
"X-PoW-Nonce"?: string;
|
|
5695
|
+
};
|
|
5634
5696
|
body: ResendVerificationRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
5635
5697
|
signal?: AbortSignal;
|
|
5636
5698
|
}): Promise<Reply<200, ResendResult>>;
|
|
@@ -5692,11 +5754,12 @@ export declare function client(t: Transport): {
|
|
|
5692
5754
|
*
|
|
5693
5755
|
* Raise the session ACR (authentication context reference) by
|
|
5694
5756
|
* re-verifying with an authenticator app's code (TOTP, aal2), a code texted
|
|
5695
|
-
* to the user's SMS factor (aal2), or a passkey (WebAuthn: aal2,
|
|
5696
|
-
*
|
|
5757
|
+
* to the user's SMS factor (aal2), or a passkey (WebAuthn: aal2, a device-bound key
|
|
5758
|
+
* as well — the flag is the authenticator's own word). The new access token's amr names the method (otp,
|
|
5697
5759
|
* sms, swk, hwk) and its auth_time is now; tokens refreshed from the session
|
|
5698
5760
|
* keep both. Required before sensitive operations. Subject to rate limiting
|
|
5699
|
-
* (5 per 5 min per account).
|
|
5761
|
+
* (5 per 5 min per account). A text's code is refused to a session below aal2
|
|
5762
|
+
* whose only factor is the phone (400 `same_factor`): a second text adds nothing.
|
|
5700
5763
|
*
|
|
5701
5764
|
*/
|
|
5702
5765
|
stepUp(input: {
|
|
@@ -5731,6 +5794,8 @@ export declare function client(t: Transport): {
|
|
|
5731
5794
|
* Text the signed-in user's SMS factor a code for a step-up; `POST /auth/step-up`
|
|
5732
5795
|
* with method `sms` checks it. The project's SMS second-factor policy and its
|
|
5733
5796
|
* per-phone rate limit apply; a test fixture's fixed code is never texted.
|
|
5797
|
+
* A session below aal2 whose only factor is the phone (a phone code's sign-in) is
|
|
5798
|
+
* refused before anything is texted (400 `same_factor`): a second text adds nothing.
|
|
5734
5799
|
*
|
|
5735
5800
|
*/
|
|
5736
5801
|
stepUpSmsSend(input?: {
|
|
@@ -6112,6 +6177,19 @@ export declare function client(t: Transport): {
|
|
|
6112
6177
|
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
6113
6178
|
signal?: AbortSignal;
|
|
6114
6179
|
}): Promise<Reply<303, undefined>>;
|
|
6180
|
+
/**
|
|
6181
|
+
* Magic link for an authorization request
|
|
6182
|
+
*
|
|
6183
|
+
* Where the link of a magic-link email sent for an authorization request opens (`POST /auth/magic-link` with `auth_request_id`). In the browser that opened the request it goes on to the project's sign-in page with `auth_request_id` and `email_token`, and the page completes the request (`POST /auth/magic-link/verify`). In any other browser it tells the person to go back to the tab they started in and type the code the email carries; nothing is spent.
|
|
6184
|
+
*
|
|
6185
|
+
*/
|
|
6186
|
+
oauthAuthorizeEmailLink(input: {
|
|
6187
|
+
query: {
|
|
6188
|
+
id: string;
|
|
6189
|
+
token: string;
|
|
6190
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
6191
|
+
signal?: AbortSignal;
|
|
6192
|
+
}): Promise<Reply<200, Response> | Reply<303, undefined>>;
|
|
6115
6193
|
/**
|
|
6116
6194
|
* RFC 8628 Device Authorization Request
|
|
6117
6195
|
*
|
|
@@ -16,11 +16,11 @@ export interface PlatformEvents extends AiEvents, AnalyticsEvents, AuthEvents, C
|
|
|
16
16
|
/** A platform event's type: one a module's contract declares. */
|
|
17
17
|
export type EventType = keyof PlatformEvents;
|
|
18
18
|
/** Every platform event's type, as the contracts declare them. */
|
|
19
|
-
export declare const EVENT_TYPES: readonly ["ai.goal.updated", "ai.response.completed", "ai.response.failed", "ai.response.started", "ai.voice.closed", "ai.voice.delegated", "ai.voice.started", "ai.workspace.conflict", "ai.workspace.published", "ai.workspace.pushed", "audience.entered", "audience.exited", "calls.call.ended", "calls.call.started", "calls.participant.joined", "calls.participant.left", "consent.changed", "device.revoked", "file.deleted", "file.moved", "file.uploaded", "flag.changed", "flag.override_changed", "journey.converted", "journey.ended", "journey.entered", "journey.event", "journey.step", "messaging.conversation.created", "messaging.conversation.deleted", "messaging.conversation.read", "messaging.message.created", "messaging.report.created", "notification.action", "notification.bounced", "notification.complained", "notification.delivered", "notification.dismissed", "notification.expired", "notification.failed", "notification.not_shown", "notification.opened", "notification.push_failing", "notification.read", "notification.received", "notification.rejected", "notification.sent", "notification.unconfirmed", "notification.undelivered", "notification.uninstalled", "purchases.catalog.applied", "purchases.catalog.changed", "purchases.coupon.redeemed", "purchases.credits.depleted", "purchases.credits.low", "purchases.customer.changed", "purchases.customer.erased", "purchases.customer.merged", "purchases.entitlement.changed", "purchases.offer.redeemed", "purchases.ownership.transferred", "purchases.paywall.published", "purchases.purchase.completed", "purchases.quota.exhausted", "purchases.quota.threshold", "purchases.refund.changed", "purchases.store.changed", "purchases.subscription.changed", "session.ended", "stores.action.changed", "stores.app.changed", "stores.apple.changed", "stores.apple.key.made", "stores.apple.key.revoked", "stores.apple.session.changed", "stores.apple.session.ended", "stores.apple.session.expired", "stores.beta_review.changed", "stores.build.changed", "stores.delivery.changed", "stores.delivery.requested", "stores.feedback.received", "stores.google.changed", "stores.group.changed", "stores.package.changed", "stores.play_release.changed", "stores.product.changed", "stores.review.message", "stores.version.changed", "stores.version.reviewed", "stores.vitals.changed", "stores.webhook.changed", "user.converted", "user.deleted", "user.locale_changed", "user.password_changed", "user.permissions_changed"];
|
|
19
|
+
export declare const EVENT_TYPES: readonly ["ai.goal.updated", "ai.response.completed", "ai.response.failed", "ai.response.started", "ai.voice.closed", "ai.voice.delegated", "ai.voice.started", "ai.workspace.conflict", "ai.workspace.published", "ai.workspace.pushed", "audience.entered", "audience.exited", "calls.call.ended", "calls.call.started", "calls.participant.joined", "calls.participant.left", "consent.changed", "device.revoked", "file.deleted", "file.moved", "file.uploaded", "flag.changed", "flag.override_changed", "journey.converted", "journey.ended", "journey.entered", "journey.event", "journey.step", "messaging.conversation.created", "messaging.conversation.deleted", "messaging.conversation.read", "messaging.message.created", "messaging.report.created", "notification.action", "notification.bounced", "notification.complained", "notification.delivered", "notification.dismissed", "notification.expired", "notification.failed", "notification.not_shown", "notification.opened", "notification.push_failing", "notification.read", "notification.received", "notification.rejected", "notification.sent", "notification.shared_paused", "notification.unconfirmed", "notification.undelivered", "notification.uninstalled", "purchases.catalog.applied", "purchases.catalog.changed", "purchases.coupon.redeemed", "purchases.credits.depleted", "purchases.credits.low", "purchases.customer.changed", "purchases.customer.erased", "purchases.customer.merged", "purchases.entitlement.changed", "purchases.offer.redeemed", "purchases.ownership.transferred", "purchases.paywall.published", "purchases.purchase.completed", "purchases.quota.exhausted", "purchases.quota.threshold", "purchases.refund.changed", "purchases.store.changed", "purchases.subscription.changed", "session.ended", "stores.action.changed", "stores.app.changed", "stores.apple.changed", "stores.apple.key.made", "stores.apple.key.revoked", "stores.apple.session.changed", "stores.apple.session.ended", "stores.apple.session.expired", "stores.beta_review.changed", "stores.build.changed", "stores.delivery.changed", "stores.delivery.requested", "stores.feedback.received", "stores.google.changed", "stores.group.changed", "stores.package.changed", "stores.play_release.changed", "stores.product.changed", "stores.review.message", "stores.version.changed", "stores.version.reviewed", "stores.vitals.changed", "stores.webhook.changed", "user.converted", "user.deleted", "user.locale_changed", "user.password_changed", "user.permissions_changed"];
|
|
20
20
|
/**
|
|
21
21
|
* A platform event as delivered: one member per type the contracts declare,
|
|
22
22
|
* its data that type's payload, so a switch on its type narrows it. An
|
|
23
23
|
* event of a type none of them declares (one a newer platform sends) is no
|
|
24
24
|
* member: at run time it reaches the switch's default, which takes it.
|
|
25
25
|
*/
|
|
26
|
-
export type PalbaseEvent = WebhookEvent<PlatformEvents["ai.goal.updated"], "ai.goal.updated"> | WebhookEvent<PlatformEvents["ai.response.completed"], "ai.response.completed"> | WebhookEvent<PlatformEvents["ai.response.failed"], "ai.response.failed"> | WebhookEvent<PlatformEvents["ai.response.started"], "ai.response.started"> | WebhookEvent<PlatformEvents["ai.voice.closed"], "ai.voice.closed"> | WebhookEvent<PlatformEvents["ai.voice.delegated"], "ai.voice.delegated"> | WebhookEvent<PlatformEvents["ai.voice.started"], "ai.voice.started"> | WebhookEvent<PlatformEvents["ai.workspace.conflict"], "ai.workspace.conflict"> | WebhookEvent<PlatformEvents["ai.workspace.published"], "ai.workspace.published"> | WebhookEvent<PlatformEvents["ai.workspace.pushed"], "ai.workspace.pushed"> | WebhookEvent<PlatformEvents["audience.entered"], "audience.entered"> | WebhookEvent<PlatformEvents["audience.exited"], "audience.exited"> | WebhookEvent<PlatformEvents["calls.call.ended"], "calls.call.ended"> | WebhookEvent<PlatformEvents["calls.call.started"], "calls.call.started"> | WebhookEvent<PlatformEvents["calls.participant.joined"], "calls.participant.joined"> | WebhookEvent<PlatformEvents["calls.participant.left"], "calls.participant.left"> | WebhookEvent<PlatformEvents["consent.changed"], "consent.changed"> | WebhookEvent<PlatformEvents["device.revoked"], "device.revoked"> | WebhookEvent<PlatformEvents["file.deleted"], "file.deleted"> | WebhookEvent<PlatformEvents["file.moved"], "file.moved"> | WebhookEvent<PlatformEvents["file.uploaded"], "file.uploaded"> | WebhookEvent<PlatformEvents["flag.changed"], "flag.changed"> | WebhookEvent<PlatformEvents["flag.override_changed"], "flag.override_changed"> | WebhookEvent<PlatformEvents["journey.converted"], "journey.converted"> | WebhookEvent<PlatformEvents["journey.ended"], "journey.ended"> | WebhookEvent<PlatformEvents["journey.entered"], "journey.entered"> | WebhookEvent<PlatformEvents["journey.event"], "journey.event"> | WebhookEvent<PlatformEvents["journey.step"], "journey.step"> | WebhookEvent<PlatformEvents["messaging.conversation.created"], "messaging.conversation.created"> | WebhookEvent<PlatformEvents["messaging.conversation.deleted"], "messaging.conversation.deleted"> | WebhookEvent<PlatformEvents["messaging.conversation.read"], "messaging.conversation.read"> | WebhookEvent<PlatformEvents["messaging.message.created"], "messaging.message.created"> | WebhookEvent<PlatformEvents["messaging.report.created"], "messaging.report.created"> | WebhookEvent<PlatformEvents["notification.action"], "notification.action"> | WebhookEvent<PlatformEvents["notification.bounced"], "notification.bounced"> | WebhookEvent<PlatformEvents["notification.complained"], "notification.complained"> | WebhookEvent<PlatformEvents["notification.delivered"], "notification.delivered"> | WebhookEvent<PlatformEvents["notification.dismissed"], "notification.dismissed"> | WebhookEvent<PlatformEvents["notification.expired"], "notification.expired"> | WebhookEvent<PlatformEvents["notification.failed"], "notification.failed"> | WebhookEvent<PlatformEvents["notification.not_shown"], "notification.not_shown"> | WebhookEvent<PlatformEvents["notification.opened"], "notification.opened"> | WebhookEvent<PlatformEvents["notification.push_failing"], "notification.push_failing"> | WebhookEvent<PlatformEvents["notification.read"], "notification.read"> | WebhookEvent<PlatformEvents["notification.received"], "notification.received"> | WebhookEvent<PlatformEvents["notification.rejected"], "notification.rejected"> | WebhookEvent<PlatformEvents["notification.sent"], "notification.sent"> | WebhookEvent<PlatformEvents["notification.unconfirmed"], "notification.unconfirmed"> | WebhookEvent<PlatformEvents["notification.undelivered"], "notification.undelivered"> | WebhookEvent<PlatformEvents["notification.uninstalled"], "notification.uninstalled"> | WebhookEvent<PlatformEvents["purchases.catalog.applied"], "purchases.catalog.applied"> | WebhookEvent<PlatformEvents["purchases.catalog.changed"], "purchases.catalog.changed"> | WebhookEvent<PlatformEvents["purchases.coupon.redeemed"], "purchases.coupon.redeemed"> | WebhookEvent<PlatformEvents["purchases.credits.depleted"], "purchases.credits.depleted"> | WebhookEvent<PlatformEvents["purchases.credits.low"], "purchases.credits.low"> | WebhookEvent<PlatformEvents["purchases.customer.changed"], "purchases.customer.changed"> | WebhookEvent<PlatformEvents["purchases.customer.erased"], "purchases.customer.erased"> | WebhookEvent<PlatformEvents["purchases.customer.merged"], "purchases.customer.merged"> | WebhookEvent<PlatformEvents["purchases.entitlement.changed"], "purchases.entitlement.changed"> | WebhookEvent<PlatformEvents["purchases.offer.redeemed"], "purchases.offer.redeemed"> | WebhookEvent<PlatformEvents["purchases.ownership.transferred"], "purchases.ownership.transferred"> | WebhookEvent<PlatformEvents["purchases.paywall.published"], "purchases.paywall.published"> | WebhookEvent<PlatformEvents["purchases.purchase.completed"], "purchases.purchase.completed"> | WebhookEvent<PlatformEvents["purchases.quota.exhausted"], "purchases.quota.exhausted"> | WebhookEvent<PlatformEvents["purchases.quota.threshold"], "purchases.quota.threshold"> | WebhookEvent<PlatformEvents["purchases.refund.changed"], "purchases.refund.changed"> | WebhookEvent<PlatformEvents["purchases.store.changed"], "purchases.store.changed"> | WebhookEvent<PlatformEvents["purchases.subscription.changed"], "purchases.subscription.changed"> | WebhookEvent<PlatformEvents["session.ended"], "session.ended"> | WebhookEvent<PlatformEvents["stores.action.changed"], "stores.action.changed"> | WebhookEvent<PlatformEvents["stores.app.changed"], "stores.app.changed"> | WebhookEvent<PlatformEvents["stores.apple.changed"], "stores.apple.changed"> | WebhookEvent<PlatformEvents["stores.apple.key.made"], "stores.apple.key.made"> | WebhookEvent<PlatformEvents["stores.apple.key.revoked"], "stores.apple.key.revoked"> | WebhookEvent<PlatformEvents["stores.apple.session.changed"], "stores.apple.session.changed"> | WebhookEvent<PlatformEvents["stores.apple.session.ended"], "stores.apple.session.ended"> | WebhookEvent<PlatformEvents["stores.apple.session.expired"], "stores.apple.session.expired"> | WebhookEvent<PlatformEvents["stores.beta_review.changed"], "stores.beta_review.changed"> | WebhookEvent<PlatformEvents["stores.build.changed"], "stores.build.changed"> | WebhookEvent<PlatformEvents["stores.delivery.changed"], "stores.delivery.changed"> | WebhookEvent<PlatformEvents["stores.delivery.requested"], "stores.delivery.requested"> | WebhookEvent<PlatformEvents["stores.feedback.received"], "stores.feedback.received"> | WebhookEvent<PlatformEvents["stores.google.changed"], "stores.google.changed"> | WebhookEvent<PlatformEvents["stores.group.changed"], "stores.group.changed"> | WebhookEvent<PlatformEvents["stores.package.changed"], "stores.package.changed"> | WebhookEvent<PlatformEvents["stores.play_release.changed"], "stores.play_release.changed"> | WebhookEvent<PlatformEvents["stores.product.changed"], "stores.product.changed"> | WebhookEvent<PlatformEvents["stores.review.message"], "stores.review.message"> | WebhookEvent<PlatformEvents["stores.version.changed"], "stores.version.changed"> | WebhookEvent<PlatformEvents["stores.version.reviewed"], "stores.version.reviewed"> | WebhookEvent<PlatformEvents["stores.vitals.changed"], "stores.vitals.changed"> | WebhookEvent<PlatformEvents["stores.webhook.changed"], "stores.webhook.changed"> | WebhookEvent<PlatformEvents["user.converted"], "user.converted"> | WebhookEvent<PlatformEvents["user.deleted"], "user.deleted"> | WebhookEvent<PlatformEvents["user.locale_changed"], "user.locale_changed"> | WebhookEvent<PlatformEvents["user.password_changed"], "user.password_changed"> | WebhookEvent<PlatformEvents["user.permissions_changed"], "user.permissions_changed">;
|
|
26
|
+
export type PalbaseEvent = WebhookEvent<PlatformEvents["ai.goal.updated"], "ai.goal.updated"> | WebhookEvent<PlatformEvents["ai.response.completed"], "ai.response.completed"> | WebhookEvent<PlatformEvents["ai.response.failed"], "ai.response.failed"> | WebhookEvent<PlatformEvents["ai.response.started"], "ai.response.started"> | WebhookEvent<PlatformEvents["ai.voice.closed"], "ai.voice.closed"> | WebhookEvent<PlatformEvents["ai.voice.delegated"], "ai.voice.delegated"> | WebhookEvent<PlatformEvents["ai.voice.started"], "ai.voice.started"> | WebhookEvent<PlatformEvents["ai.workspace.conflict"], "ai.workspace.conflict"> | WebhookEvent<PlatformEvents["ai.workspace.published"], "ai.workspace.published"> | WebhookEvent<PlatformEvents["ai.workspace.pushed"], "ai.workspace.pushed"> | WebhookEvent<PlatformEvents["audience.entered"], "audience.entered"> | WebhookEvent<PlatformEvents["audience.exited"], "audience.exited"> | WebhookEvent<PlatformEvents["calls.call.ended"], "calls.call.ended"> | WebhookEvent<PlatformEvents["calls.call.started"], "calls.call.started"> | WebhookEvent<PlatformEvents["calls.participant.joined"], "calls.participant.joined"> | WebhookEvent<PlatformEvents["calls.participant.left"], "calls.participant.left"> | WebhookEvent<PlatformEvents["consent.changed"], "consent.changed"> | WebhookEvent<PlatformEvents["device.revoked"], "device.revoked"> | WebhookEvent<PlatformEvents["file.deleted"], "file.deleted"> | WebhookEvent<PlatformEvents["file.moved"], "file.moved"> | WebhookEvent<PlatformEvents["file.uploaded"], "file.uploaded"> | WebhookEvent<PlatformEvents["flag.changed"], "flag.changed"> | WebhookEvent<PlatformEvents["flag.override_changed"], "flag.override_changed"> | WebhookEvent<PlatformEvents["journey.converted"], "journey.converted"> | WebhookEvent<PlatformEvents["journey.ended"], "journey.ended"> | WebhookEvent<PlatformEvents["journey.entered"], "journey.entered"> | WebhookEvent<PlatformEvents["journey.event"], "journey.event"> | WebhookEvent<PlatformEvents["journey.step"], "journey.step"> | WebhookEvent<PlatformEvents["messaging.conversation.created"], "messaging.conversation.created"> | WebhookEvent<PlatformEvents["messaging.conversation.deleted"], "messaging.conversation.deleted"> | WebhookEvent<PlatformEvents["messaging.conversation.read"], "messaging.conversation.read"> | WebhookEvent<PlatformEvents["messaging.message.created"], "messaging.message.created"> | WebhookEvent<PlatformEvents["messaging.report.created"], "messaging.report.created"> | WebhookEvent<PlatformEvents["notification.action"], "notification.action"> | WebhookEvent<PlatformEvents["notification.bounced"], "notification.bounced"> | WebhookEvent<PlatformEvents["notification.complained"], "notification.complained"> | WebhookEvent<PlatformEvents["notification.delivered"], "notification.delivered"> | WebhookEvent<PlatformEvents["notification.dismissed"], "notification.dismissed"> | WebhookEvent<PlatformEvents["notification.expired"], "notification.expired"> | WebhookEvent<PlatformEvents["notification.failed"], "notification.failed"> | WebhookEvent<PlatformEvents["notification.not_shown"], "notification.not_shown"> | WebhookEvent<PlatformEvents["notification.opened"], "notification.opened"> | WebhookEvent<PlatformEvents["notification.push_failing"], "notification.push_failing"> | WebhookEvent<PlatformEvents["notification.read"], "notification.read"> | WebhookEvent<PlatformEvents["notification.received"], "notification.received"> | WebhookEvent<PlatformEvents["notification.rejected"], "notification.rejected"> | WebhookEvent<PlatformEvents["notification.sent"], "notification.sent"> | WebhookEvent<PlatformEvents["notification.shared_paused"], "notification.shared_paused"> | WebhookEvent<PlatformEvents["notification.unconfirmed"], "notification.unconfirmed"> | WebhookEvent<PlatformEvents["notification.undelivered"], "notification.undelivered"> | WebhookEvent<PlatformEvents["notification.uninstalled"], "notification.uninstalled"> | WebhookEvent<PlatformEvents["purchases.catalog.applied"], "purchases.catalog.applied"> | WebhookEvent<PlatformEvents["purchases.catalog.changed"], "purchases.catalog.changed"> | WebhookEvent<PlatformEvents["purchases.coupon.redeemed"], "purchases.coupon.redeemed"> | WebhookEvent<PlatformEvents["purchases.credits.depleted"], "purchases.credits.depleted"> | WebhookEvent<PlatformEvents["purchases.credits.low"], "purchases.credits.low"> | WebhookEvent<PlatformEvents["purchases.customer.changed"], "purchases.customer.changed"> | WebhookEvent<PlatformEvents["purchases.customer.erased"], "purchases.customer.erased"> | WebhookEvent<PlatformEvents["purchases.customer.merged"], "purchases.customer.merged"> | WebhookEvent<PlatformEvents["purchases.entitlement.changed"], "purchases.entitlement.changed"> | WebhookEvent<PlatformEvents["purchases.offer.redeemed"], "purchases.offer.redeemed"> | WebhookEvent<PlatformEvents["purchases.ownership.transferred"], "purchases.ownership.transferred"> | WebhookEvent<PlatformEvents["purchases.paywall.published"], "purchases.paywall.published"> | WebhookEvent<PlatformEvents["purchases.purchase.completed"], "purchases.purchase.completed"> | WebhookEvent<PlatformEvents["purchases.quota.exhausted"], "purchases.quota.exhausted"> | WebhookEvent<PlatformEvents["purchases.quota.threshold"], "purchases.quota.threshold"> | WebhookEvent<PlatformEvents["purchases.refund.changed"], "purchases.refund.changed"> | WebhookEvent<PlatformEvents["purchases.store.changed"], "purchases.store.changed"> | WebhookEvent<PlatformEvents["purchases.subscription.changed"], "purchases.subscription.changed"> | WebhookEvent<PlatformEvents["session.ended"], "session.ended"> | WebhookEvent<PlatformEvents["stores.action.changed"], "stores.action.changed"> | WebhookEvent<PlatformEvents["stores.app.changed"], "stores.app.changed"> | WebhookEvent<PlatformEvents["stores.apple.changed"], "stores.apple.changed"> | WebhookEvent<PlatformEvents["stores.apple.key.made"], "stores.apple.key.made"> | WebhookEvent<PlatformEvents["stores.apple.key.revoked"], "stores.apple.key.revoked"> | WebhookEvent<PlatformEvents["stores.apple.session.changed"], "stores.apple.session.changed"> | WebhookEvent<PlatformEvents["stores.apple.session.ended"], "stores.apple.session.ended"> | WebhookEvent<PlatformEvents["stores.apple.session.expired"], "stores.apple.session.expired"> | WebhookEvent<PlatformEvents["stores.beta_review.changed"], "stores.beta_review.changed"> | WebhookEvent<PlatformEvents["stores.build.changed"], "stores.build.changed"> | WebhookEvent<PlatformEvents["stores.delivery.changed"], "stores.delivery.changed"> | WebhookEvent<PlatformEvents["stores.delivery.requested"], "stores.delivery.requested"> | WebhookEvent<PlatformEvents["stores.feedback.received"], "stores.feedback.received"> | WebhookEvent<PlatformEvents["stores.google.changed"], "stores.google.changed"> | WebhookEvent<PlatformEvents["stores.group.changed"], "stores.group.changed"> | WebhookEvent<PlatformEvents["stores.package.changed"], "stores.package.changed"> | WebhookEvent<PlatformEvents["stores.play_release.changed"], "stores.play_release.changed"> | WebhookEvent<PlatformEvents["stores.product.changed"], "stores.product.changed"> | WebhookEvent<PlatformEvents["stores.review.message"], "stores.review.message"> | WebhookEvent<PlatformEvents["stores.version.changed"], "stores.version.changed"> | WebhookEvent<PlatformEvents["stores.version.reviewed"], "stores.version.reviewed"> | WebhookEvent<PlatformEvents["stores.vitals.changed"], "stores.vitals.changed"> | WebhookEvent<PlatformEvents["stores.webhook.changed"], "stores.webhook.changed"> | WebhookEvent<PlatformEvents["user.converted"], "user.converted"> | WebhookEvent<PlatformEvents["user.deleted"], "user.deleted"> | WebhookEvent<PlatformEvents["user.locale_changed"], "user.locale_changed"> | WebhookEvent<PlatformEvents["user.password_changed"], "user.password_changed"> | WebhookEvent<PlatformEvents["user.permissions_changed"], "user.permissions_changed">;
|
|
@@ -1975,10 +1975,24 @@ export type Domain = {
|
|
|
1975
1975
|
created_at: string;
|
|
1976
1976
|
};
|
|
1977
1977
|
/**
|
|
1978
|
-
* A site's or a machine's domains, by host.
|
|
1978
|
+
* A site's or a machine's domains, by host — or an environment's own, with where its passkeys are bound.
|
|
1979
1979
|
*/
|
|
1980
1980
|
export type DomainList = {
|
|
1981
1981
|
domains: Domain[];
|
|
1982
|
+
passkeys?: PasskeyAddress;
|
|
1983
|
+
};
|
|
1984
|
+
/**
|
|
1985
|
+
* Where an environment's passkeys are bound: their relying party, the name a person's passkey sheet shows. While it has none it is the domain the environment signs in at (while that domain answers), or its own address; the first passkey saved fixes it there for good, wherever the environment signs in later. Absent from the list when auth could not be asked.
|
|
1986
|
+
*/
|
|
1987
|
+
export type PasskeyAddress = {
|
|
1988
|
+
/**
|
|
1989
|
+
* The address: one of the environment's own domains, or its own address (<ref>.palbase.studio).
|
|
1990
|
+
*/
|
|
1991
|
+
host: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* How many passkeys and security keys are saved there. While 0, host follows the domain the environment signs in at.
|
|
1994
|
+
*/
|
|
1995
|
+
saved: number;
|
|
1982
1996
|
};
|
|
1983
1997
|
/**
|
|
1984
1998
|
* A domain to add — sending its visitors to another of the same site's or machine's when redirect_to names one.
|
|
@@ -3572,7 +3586,7 @@ export declare function client(t: Transport): {
|
|
|
3572
3586
|
/**
|
|
3573
3587
|
* List the environment's own domains
|
|
3574
3588
|
*
|
|
3575
|
-
* Lists the domains the environment itself answers at besides its own address — the hosts it signs its people in at: each one's state, the records its owner adds to its DNS, what stands in its way, and whether the environment signs in there (sign_in).
|
|
3589
|
+
* Lists the domains the environment itself answers at besides its own address — the hosts it signs its people in at: each one's state, the records its owner adds to its DNS, what stands in its way, and whether the environment signs in there (sign_in) — and where its passkeys are bound (passkeys).
|
|
3576
3590
|
*/
|
|
3577
3591
|
listEnvironmentDomains(input?: {
|
|
3578
3592
|
signal?: AbortSignal;
|
|
@@ -3589,7 +3603,7 @@ export declare function client(t: Transport): {
|
|
|
3589
3603
|
/**
|
|
3590
3604
|
* Delete one of the environment's own domains
|
|
3591
3605
|
*
|
|
3592
|
-
* Takes a domain away: it answers no more at once, and another environment may add it. The one the environment signs in at is kept (409 domain_signs_in): move sign-in first.
|
|
3606
|
+
* Takes a domain away: it answers no more at once, and another environment may add it. The one the environment signs in at is kept (409 domain_signs_in): move sign-in first. The one its passkeys are bound to is kept while it has any (409 domain_holds_passkeys, saying how many): they sign in only there.
|
|
3593
3607
|
*/
|
|
3594
3608
|
deleteEnvironmentDomain(input: {
|
|
3595
3609
|
path: {
|
|
@@ -1920,6 +1920,9 @@ export type NotifyMessage = {
|
|
|
1920
1920
|
*/
|
|
1921
1921
|
parent_id?: string;
|
|
1922
1922
|
priority: "high" | "normal";
|
|
1923
|
+
/**
|
|
1924
|
+
* The provider it went through: the project's own, or one of the platform's shared sender's accounts — cloudflare, or acs, the backup that takes what Cloudflare could not send (shared before 10.11.2026).
|
|
1925
|
+
*/
|
|
1923
1926
|
provider?: string;
|
|
1924
1927
|
provider_message_id?: string;
|
|
1925
1928
|
/**
|
|
@@ -2024,7 +2027,7 @@ export type NotifySettings = {
|
|
|
2024
2027
|
inbox?: InboxSettings;
|
|
2025
2028
|
marketing_cap?: MarketingCap;
|
|
2026
2029
|
/**
|
|
2027
|
-
* Refuse an email whose recipient's domain takes no mail (no MX record, a null one, or no address), before it is queued. Off unless set.
|
|
2030
|
+
* Refuse an email through the project's own provider whose recipient's domain takes no mail (no MX record, a null one, or no address), before it is queued. Off unless set; the platform's shared sender always refuses one.
|
|
2028
2031
|
*/
|
|
2029
2032
|
mx_check?: boolean;
|
|
2030
2033
|
quiet_hours?: QuietHours;
|
|
@@ -2418,6 +2421,31 @@ export type SendGridEvent = {
|
|
|
2418
2421
|
* SendGrid's Event Webhook call: an array of events.
|
|
2419
2422
|
*/
|
|
2420
2423
|
export type SendGridEvents = SendGridEvent[];
|
|
2424
|
+
/**
|
|
2425
|
+
* notification.shared_paused: a project's email through the platform's shared sender stopped for a day.
|
|
2426
|
+
*/
|
|
2427
|
+
export type SharedPausedEvent = {
|
|
2428
|
+
/**
|
|
2429
|
+
* The project whose shared sending stopped: the platform's own copy names the customer's.
|
|
2430
|
+
*/
|
|
2431
|
+
project_id: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* email.
|
|
2434
|
+
*/
|
|
2435
|
+
channel: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* Its shared emails that bounced for good since the later of a day before and its last pause's end.
|
|
2438
|
+
*/
|
|
2439
|
+
bounced: number;
|
|
2440
|
+
/**
|
|
2441
|
+
* Its shared emails sent in the same time.
|
|
2442
|
+
*/
|
|
2443
|
+
sent: number;
|
|
2444
|
+
/**
|
|
2445
|
+
* When it sends through the shared sender again.
|
|
2446
|
+
*/
|
|
2447
|
+
until: string;
|
|
2448
|
+
};
|
|
2421
2449
|
export type TestInboxList = {
|
|
2422
2450
|
messages: TestInboxMessage[];
|
|
2423
2451
|
};
|
|
@@ -2807,6 +2835,10 @@ export interface Events {
|
|
|
2807
2835
|
* notification.sent: a message left: its provider took it (a topic push: its followers were reached).
|
|
2808
2836
|
*/
|
|
2809
2837
|
"notification.sent": NotificationEvent;
|
|
2838
|
+
/**
|
|
2839
|
+
* notification.shared_paused: the project's email through the platform's shared sender stopped for a day — at least 10 of its shared emails, and at least a tenth of them, bounced for good since the later of a day before and its last pause's end: such mail gets the shared sender's accounts suspended for every project. Its sends through the shared sender are refused (429 shared_sender_paused) until then, its own provider's are not; when the day is over it sends again, and stops again if its mail goes on bouncing. Told to the project and to the platform's own (whose Studio mails the organization's owners).
|
|
2840
|
+
*/
|
|
2841
|
+
"notification.shared_paused": SharedPausedEvent;
|
|
2810
2842
|
/**
|
|
2811
2843
|
* notification.unconfirmed: no report of a push came from the device by the time it expired: the phone may have been off, or its report lost.
|
|
2812
2844
|
*/
|
|
@@ -2882,7 +2914,7 @@ export declare function client(t: Transport): {
|
|
|
2882
2914
|
/**
|
|
2883
2915
|
* Send an email
|
|
2884
2916
|
*
|
|
2885
|
-
* Queues an email through the project's own provider: a template with its variables — the platform's, as the project overrode them, or one it made — or a message composed whole. The platform's shared sender, which a project with no email provider of its own has, sends none of them for the project's key: auth's templates (auth.*) leave it from auth's own flows alone — a sign-up's confirmation, a password reset, a sign-in link — with auth's link, to the address the flow is for, and a key's send of one is refused with 403 `auth_template_reserved`, but for an organization's invitation (auth.org_invitation, variables inviter_name, org_name, accept_link, expires_at): any project's key sends it through the shared sender, in the platform's words and counted against its shared limits, when its accept_link is a page of the project's own app — on its auth site_url's address, or matching its redirect allow-list — and is refused with 400 `accept_link_not_allowed` otherwise (503 `auth_unavailable`, nothing sent, when auth could not be asked); its inviter_name and org_name are names and its expires_at a time — one line each, with no link or web address — or it is refused with 400 `invalid_invitation`. Anything else is refused with 403 `own_provider_required`. Palbase's own project, Studio's, sends its notices and its organizations' invitations to Studio's developers through the shared sender with its key.
|
|
2917
|
+
* Queues an email through the project's own provider: a template with its variables — the platform's, as the project overrode them, or one it made — or a message composed whole. The platform's shared sender, which a project with no email provider of its own has, sends none of them for the project's key: auth's templates (auth.*) leave it from auth's own flows alone — a sign-up's confirmation, a password reset, a sign-in link — with auth's link, to the address the flow is for, and a key's send of one is refused with 403 `auth_template_reserved`, but for an organization's invitation (auth.org_invitation, variables inviter_name, org_name, accept_link, expires_at): any project's key sends it through the shared sender, in the platform's words and counted against its shared limits, when its accept_link is a page of the project's own app — on its auth site_url's address, or matching its redirect allow-list — and is refused with 400 `accept_link_not_allowed` otherwise (503 `auth_unavailable`, nothing sent, when auth could not be asked); its inviter_name and org_name are names and its expires_at a time — one line each, with no link or web address — or it is refused with 400 `invalid_invitation`. Anything else is refused with 403 `own_provider_required`. Through the shared sender a project sends 10 emails a minute and 100 an hour on Free, 60 and 1,000 when it pays — its month is its quota's — (429 `send_limit_reached`, until the window's end); an address takes 5 shared emails an hour and 20 a day, every project's together (429 `recipient_limit_reached`; auth's own flows' are skipped, skip_reason `recipient_limit`); a recipient whose domain takes no mail is refused before anything is queued (400 `invalid_email_domain`); an address that bounced for good or reported a shared email as spam is sent nothing again (skipped, skip_reason `suppressed`); and a project at least 10 of whose shared emails, and a tenth of them, bounced for good in a day stops sending through it for the day (429 `shared_sender_paused`, notification.shared_paused, getDeliverability). Palbase's own project, Studio's, sends its notices and its organizations' invitations to Studio's developers through the shared sender with its key.
|
|
2886
2918
|
*/
|
|
2887
2919
|
sendEmail(input: {
|
|
2888
2920
|
headers?: {
|
package/types/web/src/auth.d.ts
CHANGED
|
@@ -104,8 +104,8 @@ export declare class Auth {
|
|
|
104
104
|
send: (email: string, options?: {
|
|
105
105
|
redirectTo?: string;
|
|
106
106
|
}) => Promise<void>;
|
|
107
|
-
/** The token from the link the email carried. */
|
|
108
|
-
verify: (token: string) => Promise<
|
|
107
|
+
/** The token from the link the email carried. A second factor, when the account has one, comes back as mfaRequired — as a password sign-in's does. */
|
|
108
|
+
verify: (token: string) => Promise<SignInResult>;
|
|
109
109
|
};
|
|
110
110
|
readonly phone: {
|
|
111
111
|
sendCode: (phone: string) => Promise<authModule.PhoneOTPRequestResult>;
|