palbase 0.51.5 → 0.52.1
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/{WVZNY6TR.js → 422S2T64.js} +2 -2
- package/dist/chunks/{YVUBAUBD.js → 4USZU37E.js} +2 -2
- package/dist/chunks/{H7CTV7YV.js → 5HCZDHQF.js} +2 -2
- package/dist/chunks/{DE3O7B5N.js → 6JJ6KEOR.js} +1 -1
- package/dist/chunks/{BOOJKO26.js → 6W7664QV.js} +1 -1
- package/dist/chunks/{D2IRW7TY.js → 77252VGA.js} +1 -1
- package/dist/chunks/{6F77DV6G.js → 7GUSEXPM.js} +2 -2
- package/dist/chunks/{BGQPEQ6U.js → 7MHWCLSE.js} +2 -2
- package/dist/chunks/{FNFBIOEM.js → AO7LGTSD.js} +1 -1
- package/dist/chunks/{EZR7WPWD.js → EMBLVXYC.js} +2 -2
- package/dist/chunks/{MPHBGWSE.js → F2C6NS5C.js} +2 -2
- package/dist/chunks/{YNLTIP7Y.js → HBUQAULV.js} +2 -2
- package/dist/chunks/{P5S36NDV.js → IZAM4TMF.js} +1 -1
- package/dist/chunks/{IRRKY4YY.js → JG2RR2QF.js} +2 -2
- package/dist/chunks/{I4OY4A2M.js → LDQJTENW.js} +2 -2
- package/dist/chunks/{5DTGVH2A.js → LUAVY2PE.js} +2 -2
- package/dist/chunks/{P2XUFCKR.js → N5XLPRZQ.js} +1 -1
- package/dist/chunks/{FATSIZRW.js → OGUWFGK3.js} +2 -2
- package/dist/chunks/{OGZMRR4U.js → QZJS2BON.js} +2 -2
- package/dist/chunks/{XGYP7KI5.js → WCGPTLSR.js} +2 -2
- package/dist/chunks/{4IO35MZM.js → XCXCQZQ5.js} +2 -2
- package/dist/chunks/{6GAV3WR7.js → YQV43TCO.js} +1 -1
- package/dist/chunks/{BFIGE5KY.js → ZQJ7HF3L.js} +2 -2
- package/dist/cli.js +124 -124
- 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/cloud/src/generated/project.d.ts +1 -1
- package/types/internal/src/modules/ai.d.ts +1 -1
- package/types/internal/src/modules/auth.d.ts +13 -1
- package/types/internal/src/modules/machines.d.ts +63 -1
- package/types/internal/src/modules/notify.d.ts +2 -2
|
@@ -1931,7 +1931,7 @@ export type DNSRecord = {
|
|
|
1931
1931
|
value: string;
|
|
1932
1932
|
};
|
|
1933
1933
|
/**
|
|
1934
|
-
* A domain of the customer's own a site
|
|
1934
|
+
* A domain of the customer's own a site, a machine or the environment itself answers at too. Its owner adds its records to its DNS: a subdomain's CNAME points it at the platform through Cloudflare; an apex's A record names the platform's address for apexes, which any DNS host takes (its certificate the edge's, from Let's Encrypt) — or, where its DNS host has one, an ALIAS, ANAME or flattened CNAME to the subdomains' target keeps it behind Cloudflare. The TXT shows it is this environment's. It answers once its certificate is issued and the TXT record is there. A domain may send its visitors to another domain of the same site or machine (redirect_to). A domain is one environment's, platform-wide, until it is deleted there.
|
|
1935
1935
|
*/
|
|
1936
1936
|
export type Domain = {
|
|
1937
1937
|
/**
|
|
@@ -1958,6 +1958,10 @@ export type Domain = {
|
|
|
1958
1958
|
* The redirect's status: 308 unless said; null with redirect_to.
|
|
1959
1959
|
*/
|
|
1960
1960
|
redirect_status: (301 | 302 | 307 | 308) | null;
|
|
1961
|
+
/**
|
|
1962
|
+
* For one of the environment's own domains (GET /domains), whether the environment signs its people in at it: its social providers sent back to it, its emails' links and its OpenID provider there — while it is active, its own address meanwhile. Absent for a site's or a machine's.
|
|
1963
|
+
*/
|
|
1964
|
+
sign_in?: boolean;
|
|
1961
1965
|
/**
|
|
1962
1966
|
* What its owner adds to its DNS.
|
|
1963
1967
|
*/
|
|
@@ -2418,6 +2422,24 @@ export type ExecRunPage = {
|
|
|
2418
2422
|
*/
|
|
2419
2423
|
next_cursor?: string;
|
|
2420
2424
|
};
|
|
2425
|
+
/**
|
|
2426
|
+
* A domain to add to the environment: a subdomain of one of yours.
|
|
2427
|
+
*/
|
|
2428
|
+
export type EnvironmentDomainCreate = {
|
|
2429
|
+
/**
|
|
2430
|
+
* The domain: auth.example.com — a subdomain, none of the platform's own.
|
|
2431
|
+
*/
|
|
2432
|
+
host: string;
|
|
2433
|
+
};
|
|
2434
|
+
/**
|
|
2435
|
+
* Whether the environment signs its people in at the domain.
|
|
2436
|
+
*/
|
|
2437
|
+
export type SignInUpdate = {
|
|
2438
|
+
/**
|
|
2439
|
+
* true: the environment signs in at this domain, and at no other of its own; false: at its own address.
|
|
2440
|
+
*/
|
|
2441
|
+
sign_in: boolean;
|
|
2442
|
+
};
|
|
2421
2443
|
/** Palbase Machines */
|
|
2422
2444
|
export declare function client(t: Transport): {
|
|
2423
2445
|
/**
|
|
@@ -3547,5 +3569,45 @@ export declare function client(t: Transport): {
|
|
|
3547
3569
|
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
3548
3570
|
signal?: AbortSignal;
|
|
3549
3571
|
}): Promise<Reply<204, undefined>>;
|
|
3572
|
+
/**
|
|
3573
|
+
* List the environment's own domains
|
|
3574
|
+
*
|
|
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).
|
|
3576
|
+
*/
|
|
3577
|
+
listEnvironmentDomains(input?: {
|
|
3578
|
+
signal?: AbortSignal;
|
|
3579
|
+
}): Promise<Reply<200, DomainList>>;
|
|
3580
|
+
/**
|
|
3581
|
+
* Add a domain to the environment
|
|
3582
|
+
*
|
|
3583
|
+
* Adds a subdomain of the customer's own — auth.example.com — the environment answers its sign-in at too, once its owner has added the records the answer names to its DNS: its social providers' callbacks, its OpenID provider (issuer, discovery, authorize) and its hosted pages. It is the environment's own, neither a site's nor a machine's; an apex is refused (invalid_host), and it redirects nowhere. Refused when another environment has it (domain_taken), when it is one of the platform's, or past the project's domains, every environment's together: twenty on Free, a hundred on Pay as you go (too_many_domains). The environment signs in at it only once it is active and set so (PATCH /domains/{host}).
|
|
3584
|
+
*/
|
|
3585
|
+
addEnvironmentDomain(input: {
|
|
3586
|
+
body: EnvironmentDomainCreate; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
3587
|
+
signal?: AbortSignal;
|
|
3588
|
+
}): Promise<Reply<201, Domain>>;
|
|
3589
|
+
/**
|
|
3590
|
+
* Delete one of the environment's own domains
|
|
3591
|
+
*
|
|
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.
|
|
3593
|
+
*/
|
|
3594
|
+
deleteEnvironmentDomain(input: {
|
|
3595
|
+
path: {
|
|
3596
|
+
host: string;
|
|
3597
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
3598
|
+
signal?: AbortSignal;
|
|
3599
|
+
}): Promise<Reply<204, undefined>>;
|
|
3600
|
+
/**
|
|
3601
|
+
* Choose where the environment signs in
|
|
3602
|
+
*
|
|
3603
|
+
* Has the environment sign its people in at one of its own domains — an active one (409 domain_not_active otherwise) — or, sign_in false, at its own address again. Choosing one takes sign-in from the domain it was at. It holds at once: a social sign-in begun after it sends its provider back to this domain's callback, which the provider must know first (its redirect URIs, Apple's return URLs), and the environment's emails and pages name it. While the domain does not answer, the environment signs in at its own address.
|
|
3604
|
+
*/
|
|
3605
|
+
setEnvironmentSignInDomain(input: {
|
|
3606
|
+
path: {
|
|
3607
|
+
host: string;
|
|
3608
|
+
};
|
|
3609
|
+
body: SignInUpdate; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
3610
|
+
signal?: AbortSignal;
|
|
3611
|
+
}): Promise<Reply<200, Domain>>;
|
|
3550
3612
|
};
|
|
3551
3613
|
export type Client = ReturnType<typeof client>;
|
|
@@ -166,7 +166,7 @@ export type EmailSend = {
|
|
|
166
166
|
reply_to?: string;
|
|
167
167
|
subject?: string;
|
|
168
168
|
/**
|
|
169
|
-
* A template's slug. Auth's (auth.*) are sent through the project's own provider: on the platform's shared sender they are auth's flows' alone (403 auth_template_reserved).
|
|
169
|
+
* A template's slug. Auth's (auth.*) are sent through the project's own provider: on the platform's shared sender they are auth's flows' alone (403 auth_template_reserved), but for an organization's invitation (auth.org_invitation), whose accept_link is a page of the project's own app (400 accept_link_not_allowed).
|
|
170
170
|
*/
|
|
171
171
|
template?: string;
|
|
172
172
|
text?: string;
|
|
@@ -2882,7 +2882,7 @@ export declare function client(t: Transport): {
|
|
|
2882
2882
|
/**
|
|
2883
2883
|
* Send an email
|
|
2884
2884
|
*
|
|
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
|
|
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.
|
|
2886
2886
|
*/
|
|
2887
2887
|
sendEmail(input: {
|
|
2888
2888
|
headers?: {
|