palbase 0.23.2 → 0.25.0
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/{FN6YSHEH.js → 2MYJV4YR.js} +2 -2
- package/dist/chunks/{2243L7FH.js → 4GJ2ZPTN.js} +2 -2
- package/dist/chunks/{Z6GSSELT.js → 4YCXKEZV.js} +1 -1
- package/dist/chunks/{465GAZ3I.js → 5BIBYYM4.js} +1 -1
- package/dist/chunks/{LEL23GGZ.js → B773R25P.js} +2 -2
- package/dist/chunks/{LPIIPAL7.js → C7SBJV6T.js} +1 -1
- package/dist/chunks/{XZF67QTC.js → DUMTTL2J.js} +2 -2
- package/dist/chunks/{GJLB5E6X.js → EVUBM4NK.js} +2 -2
- package/dist/chunks/{P7I67ZXV.js → GFYILAJU.js} +2 -2
- package/dist/chunks/{3B2LXO7V.js → HFKZ7GWV.js} +2 -2
- package/dist/chunks/{4UCTKDVC.js → J3KELWNZ.js} +1 -1
- package/dist/chunks/{RKVNNZKK.js → MQK4YZM7.js} +1 -1
- package/dist/chunks/{6FQTH7CU.js → NANJIH3L.js} +2 -2
- package/dist/chunks/{32K2WSMI.js → NLPK3G5Q.js} +2 -2
- package/dist/chunks/{5BNDQNJE.js → OFLYZJK7.js} +1 -1
- package/dist/chunks/{CHQC4TAI.js → Q45P37LH.js} +1 -1
- package/dist/chunks/{RLYVZSYC.js → S4GD7FCI.js} +2 -2
- package/dist/chunks/{DBHBPJXF.js → UN5JMFWV.js} +2 -2
- package/dist/chunks/{RIU2G5NL.js → VF4FX3QH.js} +2 -2
- package/dist/chunks/{UGWQ7AK7.js → WS7DI7CS.js} +2 -2
- package/dist/chunks/{LI5A2ZUO.js → Y5PIIC4Y.js} +2 -2
- package/dist/chunks/YAVAXQGR.js +2 -0
- package/dist/chunks/{E6O2BDH6.js → Z347DQJS.js} +2 -2
- package/dist/cli.js +138 -138
- 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/ai/src/chats.d.ts +2 -1
- package/types/cloud/src/generated/project.d.ts +3 -3
- package/types/internal/src/modules/auth.d.ts +84 -13
- package/types/internal/src/modules/machines.d.ts +616 -0
- package/types/internal/src/modules/notify.d.ts +68 -1
- package/types/internal/src/modules/storage.d.ts +4 -4
- package/types/internal/src/modules/stores.d.ts +4 -0
- package/dist/chunks/THGKKTVR.js +0 -2
|
@@ -19,7 +19,7 @@ export type ChannelReadiness = {
|
|
|
19
19
|
*/
|
|
20
20
|
reports: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* The project's own providers in failover order, or shared
|
|
22
|
+
* The project's own providers in failover order, or shared: the platform's sender (email), or Palbase's Twilio Verify (verify), its codes billed at Twilio's price.
|
|
23
23
|
*/
|
|
24
24
|
via: string[];
|
|
25
25
|
};
|
|
@@ -2418,6 +2418,59 @@ export type SendGridEvent = {
|
|
|
2418
2418
|
* SendGrid's Event Webhook call: an array of events.
|
|
2419
2419
|
*/
|
|
2420
2420
|
export type SendGridEvents = SendGridEvent[];
|
|
2421
|
+
export type TestInboxList = {
|
|
2422
|
+
messages: TestInboxMessage[];
|
|
2423
|
+
};
|
|
2424
|
+
/**
|
|
2425
|
+
* A test user's kept message: what it said, to whom, and the code and link it carried.
|
|
2426
|
+
*/
|
|
2427
|
+
export type TestInboxMessage = {
|
|
2428
|
+
channel: "email" | "sms";
|
|
2429
|
+
/**
|
|
2430
|
+
* The code it carried: its template's (code, otp_code), else the first number of 4 to 10 digits in its subject or text.
|
|
2431
|
+
*/
|
|
2432
|
+
code?: string;
|
|
2433
|
+
created_at: string;
|
|
2434
|
+
/**
|
|
2435
|
+
* Whether it was also sent: a test user's real address is mailed; a generated one and a phone are not.
|
|
2436
|
+
*/
|
|
2437
|
+
delivered: boolean;
|
|
2438
|
+
/**
|
|
2439
|
+
* An email's HTML.
|
|
2440
|
+
*/
|
|
2441
|
+
html?: string;
|
|
2442
|
+
/**
|
|
2443
|
+
* The message's id, as its delivery report (GET /notify/messages/{id}) has it.
|
|
2444
|
+
*/
|
|
2445
|
+
id: string;
|
|
2446
|
+
/**
|
|
2447
|
+
* The link it carried: its template's (magic_link, reset_link, verify_link, …), else the first in it.
|
|
2448
|
+
*/
|
|
2449
|
+
link?: string;
|
|
2450
|
+
/**
|
|
2451
|
+
* Every link in it, in order.
|
|
2452
|
+
*/
|
|
2453
|
+
links: string[];
|
|
2454
|
+
/**
|
|
2455
|
+
* An email's subject.
|
|
2456
|
+
*/
|
|
2457
|
+
subject?: string;
|
|
2458
|
+
template?: string;
|
|
2459
|
+
/**
|
|
2460
|
+
* An email's text, or a text message's body.
|
|
2461
|
+
*/
|
|
2462
|
+
text: string;
|
|
2463
|
+
/**
|
|
2464
|
+
* The address or number it went to.
|
|
2465
|
+
*/
|
|
2466
|
+
to: string;
|
|
2467
|
+
/**
|
|
2468
|
+
* What its template was rendered with.
|
|
2469
|
+
*/
|
|
2470
|
+
variables?: {
|
|
2471
|
+
[key: string]: unknown;
|
|
2472
|
+
};
|
|
2473
|
+
};
|
|
2421
2474
|
/**
|
|
2422
2475
|
* A text accepted for sending, and what its body takes on the wire — or skipped: its user turned its category off by SMS (nothing queued or counted, no message_id), or a send rule skipped it (its message in the log with skip_reason; the number's per-minute and per-day texts are not spent).
|
|
2423
2476
|
*/
|
|
@@ -3389,6 +3442,20 @@ export declare function client(t: Transport): {
|
|
|
3389
3442
|
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
3390
3443
|
signal?: AbortSignal;
|
|
3391
3444
|
}): Promise<Reply<204, undefined>>;
|
|
3445
|
+
/**
|
|
3446
|
+
* List a test user's messages
|
|
3447
|
+
*
|
|
3448
|
+
* A test user's kept messages, the 50 newest first: every email and text the project sent it in the last 7 days — auth's sign-in links and codes, its resets and verifications, and the project's own sends — with what each said, and its code and link picked out. A test user's phone is texted nothing and its generated address (…@test.invalid) is mailed nothing: the kept copy is the message; a real address of a test user is mailed as well (delivered). A user who is not a test user is refused, 403 not_a_test_user: no one else's mail is kept.
|
|
3449
|
+
*/
|
|
3450
|
+
listTestUserMessages(input: {
|
|
3451
|
+
path: {
|
|
3452
|
+
user_id: string;
|
|
3453
|
+
};
|
|
3454
|
+
query?: {
|
|
3455
|
+
channel?: "email" | "sms";
|
|
3456
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
3457
|
+
signal?: AbortSignal;
|
|
3458
|
+
}): Promise<Reply<200, TestInboxList>>;
|
|
3392
3459
|
/**
|
|
3393
3460
|
* List topics
|
|
3394
3461
|
*
|
|
@@ -600,7 +600,7 @@ export declare function client(t: Transport): {
|
|
|
600
600
|
"If-None-Match"?: string;
|
|
601
601
|
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
602
602
|
signal?: AbortSignal;
|
|
603
|
-
}): Promise<Reply<200, Response> | Reply<206, Response> | Reply<304, undefined>>;
|
|
603
|
+
}): Promise<Reply<200, Response> | Reply<206, Response> | Reply<302, undefined> | Reply<304, undefined>>;
|
|
604
604
|
/**
|
|
605
605
|
* Read a public object's headers
|
|
606
606
|
*
|
|
@@ -618,7 +618,7 @@ export declare function client(t: Transport): {
|
|
|
618
618
|
"If-None-Match"?: string;
|
|
619
619
|
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
620
620
|
signal?: AbortSignal;
|
|
621
|
-
}): Promise<Reply<200, undefined> | Reply<304, undefined>>;
|
|
621
|
+
}): Promise<Reply<200, undefined> | Reply<302, undefined> | Reply<304, undefined>>;
|
|
622
622
|
/**
|
|
623
623
|
* Read through a signed URL
|
|
624
624
|
*
|
|
@@ -641,7 +641,7 @@ export declare function client(t: Transport): {
|
|
|
641
641
|
"If-None-Match"?: string;
|
|
642
642
|
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
643
643
|
signal?: AbortSignal;
|
|
644
|
-
}): Promise<Reply<200, Response> | Reply<206, Response> | Reply<304, undefined>>;
|
|
644
|
+
}): Promise<Reply<200, Response> | Reply<206, Response> | Reply<302, undefined> | Reply<304, undefined>>;
|
|
645
645
|
/**
|
|
646
646
|
* Write through a signed URL
|
|
647
647
|
*
|
|
@@ -691,7 +691,7 @@ export declare function client(t: Transport): {
|
|
|
691
691
|
"If-None-Match"?: string;
|
|
692
692
|
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
693
693
|
signal?: AbortSignal;
|
|
694
|
-
}): Promise<Reply<200, undefined> | Reply<304, undefined>>;
|
|
694
|
+
}): Promise<Reply<200, undefined> | Reply<302, undefined> | Reply<304, undefined>>;
|
|
695
695
|
/**
|
|
696
696
|
* Read the storage stats
|
|
697
697
|
*
|
|
@@ -2523,6 +2523,10 @@ export type AppleSession = {
|
|
|
2523
2523
|
* Who asked for the sign-in link: a developer's id, or the key's.
|
|
2524
2524
|
*/
|
|
2525
2525
|
connected_by?: string;
|
|
2526
|
+
/**
|
|
2527
|
+
* The team's ID at the Developer Portal: the App ID prefix its apps are signed with, once Apple said it.
|
|
2528
|
+
*/
|
|
2529
|
+
developer_team_id?: string;
|
|
2526
2530
|
/**
|
|
2527
2531
|
* When Apple's end of it was found.
|
|
2528
2532
|
*/
|