palbase 0.62.0 → 0.63.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/{S3YODXG5.js → 5KIV2VHK.js} +2 -2
- package/dist/chunks/{DCWPUWZE.js → 5TXSFJYI.js} +2 -2
- package/dist/chunks/{LUVYYNMK.js → 7YRDXDVI.js} +2 -2
- package/dist/chunks/BP35TQMR.js +2 -0
- package/dist/chunks/{HXKBPLL2.js → BVR7H5RY.js} +1 -1
- package/dist/chunks/{WJXZYXL6.js → COXA3LDU.js} +2 -2
- package/dist/chunks/{P3QFV5EA.js → EJ7YD4YY.js} +1 -1
- package/dist/chunks/{SCUAN3L3.js → G4UNJNUL.js} +1 -1
- package/dist/chunks/{PQ627JVJ.js → IX4TWJ7J.js} +2 -2
- package/dist/chunks/{EEGVWOER.js → IXFSQYJA.js} +2 -2
- package/dist/chunks/{USL5YRDX.js → KGP3V3IA.js} +2 -2
- package/dist/chunks/{ECVNYWWT.js → LGGBVI33.js} +2 -2
- package/dist/chunks/{3KEWWFIC.js → RFRPB2IR.js} +1 -1
- package/dist/chunks/{ZVDYTR3S.js → SWB2U22R.js} +2 -2
- package/dist/chunks/{7J3HTVFX.js → T74PPGHJ.js} +2 -2
- package/dist/chunks/{WBKZLJ66.js → UDS4W77D.js} +1 -1
- package/dist/chunks/{PYL5JMWN.js → VHTT6VB5.js} +2 -2
- package/dist/chunks/{WEMTQPSH.js → WUQWOSEI.js} +2 -2
- package/dist/chunks/{IPAVEV75.js → WXOQLEUW.js} +2 -2
- package/dist/chunks/{M6KUVE4B.js → XHTUT6AV.js} +2 -2
- package/dist/chunks/{LXAR6WWQ.js → XPKA7LAF.js} +2 -2
- package/dist/chunks/{KUSZFTJK.js → YWG7F44Q.js} +1 -1
- package/dist/chunks/{LDLYOQAV.js → ZG2LQB5B.js} +1 -1
- package/dist/cli.js +7 -7
- 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/studio.d.ts +67 -8
- package/types/internal/src/modules/ai.d.ts +1 -1
- package/types/internal/src/modules/analytics.d.ts +7 -7
- package/types/internal/src/modules/auth.d.ts +41 -30
- package/types/internal/src/modules/notify.d.ts +1 -1
- package/types/internal/src/modules/purchases.d.ts +19 -7
- package/types/internal/src/modules/stores.d.ts +3 -3
- package/types/web/src/screen/resolve.d.ts +2 -1
- package/dist/chunks/ZWSYEBRO.js +0 -2
|
@@ -519,7 +519,7 @@ export declare function client(t: Transport): {
|
|
|
519
519
|
}): Promise<Reply<200, {
|
|
520
520
|
apps: ({
|
|
521
521
|
id: string;
|
|
522
|
-
platform: "ios" | "android" | "web";
|
|
522
|
+
platform: "ios" | "macos" | "android" | "web";
|
|
523
523
|
name: string;
|
|
524
524
|
slug: string;
|
|
525
525
|
team_id: string | null;
|
|
@@ -538,6 +538,13 @@ export declare function client(t: Transport): {
|
|
|
538
538
|
app_clip?: string;
|
|
539
539
|
watch?: string;
|
|
540
540
|
};
|
|
541
|
+
macos?: {
|
|
542
|
+
team_id: string;
|
|
543
|
+
app_id_prefix?: string;
|
|
544
|
+
bundle: string;
|
|
545
|
+
app_clip?: string;
|
|
546
|
+
watch?: string;
|
|
547
|
+
};
|
|
541
548
|
android?: {
|
|
542
549
|
package: string;
|
|
543
550
|
fingerprints: ({
|
|
@@ -566,7 +573,7 @@ export declare function client(t: Transport): {
|
|
|
566
573
|
"Idempotency-Key"?: string;
|
|
567
574
|
};
|
|
568
575
|
body: {
|
|
569
|
-
platform: "ios" | "android" | "web";
|
|
576
|
+
platform: "ios" | "macos" | "android" | "web";
|
|
570
577
|
name: string;
|
|
571
578
|
slug?: string;
|
|
572
579
|
team_id?: string;
|
|
@@ -575,7 +582,7 @@ export declare function client(t: Transport): {
|
|
|
575
582
|
signal?: AbortSignal;
|
|
576
583
|
}): Promise<Reply<200, {
|
|
577
584
|
id: string;
|
|
578
|
-
platform: "ios" | "android" | "web";
|
|
585
|
+
platform: "ios" | "macos" | "android" | "web";
|
|
579
586
|
name: string;
|
|
580
587
|
slug: string;
|
|
581
588
|
team_id: string | null;
|
|
@@ -594,6 +601,13 @@ export declare function client(t: Transport): {
|
|
|
594
601
|
app_clip?: string;
|
|
595
602
|
watch?: string;
|
|
596
603
|
};
|
|
604
|
+
macos?: {
|
|
605
|
+
team_id: string;
|
|
606
|
+
app_id_prefix?: string;
|
|
607
|
+
bundle: string;
|
|
608
|
+
app_clip?: string;
|
|
609
|
+
watch?: string;
|
|
610
|
+
};
|
|
597
611
|
android?: {
|
|
598
612
|
package: string;
|
|
599
613
|
fingerprints: ({
|
|
@@ -621,7 +635,7 @@ export declare function client(t: Transport): {
|
|
|
621
635
|
signal?: AbortSignal;
|
|
622
636
|
}): Promise<Reply<200, {
|
|
623
637
|
id: string;
|
|
624
|
-
platform: "ios" | "android" | "web";
|
|
638
|
+
platform: "ios" | "macos" | "android" | "web";
|
|
625
639
|
name: string;
|
|
626
640
|
slug: string;
|
|
627
641
|
team_id: string | null;
|
|
@@ -640,6 +654,13 @@ export declare function client(t: Transport): {
|
|
|
640
654
|
app_clip?: string;
|
|
641
655
|
watch?: string;
|
|
642
656
|
};
|
|
657
|
+
macos?: {
|
|
658
|
+
team_id: string;
|
|
659
|
+
app_id_prefix?: string;
|
|
660
|
+
bundle: string;
|
|
661
|
+
app_clip?: string;
|
|
662
|
+
watch?: string;
|
|
663
|
+
};
|
|
643
664
|
android?: {
|
|
644
665
|
package: string;
|
|
645
666
|
fingerprints: ({
|
|
@@ -670,7 +691,7 @@ export declare function client(t: Transport): {
|
|
|
670
691
|
signal?: AbortSignal;
|
|
671
692
|
}): Promise<Reply<200, {
|
|
672
693
|
id: string;
|
|
673
|
-
platform: "ios" | "android" | "web";
|
|
694
|
+
platform: "ios" | "macos" | "android" | "web";
|
|
674
695
|
name: string;
|
|
675
696
|
slug: string;
|
|
676
697
|
team_id: string | null;
|
|
@@ -689,6 +710,13 @@ export declare function client(t: Transport): {
|
|
|
689
710
|
app_clip?: string;
|
|
690
711
|
watch?: string;
|
|
691
712
|
};
|
|
713
|
+
macos?: {
|
|
714
|
+
team_id: string;
|
|
715
|
+
app_id_prefix?: string;
|
|
716
|
+
bundle: string;
|
|
717
|
+
app_clip?: string;
|
|
718
|
+
watch?: string;
|
|
719
|
+
};
|
|
692
720
|
android?: {
|
|
693
721
|
package: string;
|
|
694
722
|
fingerprints: ({
|
|
@@ -724,7 +752,7 @@ export declare function client(t: Transport): {
|
|
|
724
752
|
signal?: AbortSignal;
|
|
725
753
|
}): Promise<Reply<200, {
|
|
726
754
|
id: string;
|
|
727
|
-
platform: "ios" | "android" | "web";
|
|
755
|
+
platform: "ios" | "macos" | "android" | "web";
|
|
728
756
|
name: string;
|
|
729
757
|
slug: string;
|
|
730
758
|
team_id: string | null;
|
|
@@ -743,6 +771,13 @@ export declare function client(t: Transport): {
|
|
|
743
771
|
app_clip?: string;
|
|
744
772
|
watch?: string;
|
|
745
773
|
};
|
|
774
|
+
macos?: {
|
|
775
|
+
team_id: string;
|
|
776
|
+
app_id_prefix?: string;
|
|
777
|
+
bundle: string;
|
|
778
|
+
app_clip?: string;
|
|
779
|
+
watch?: string;
|
|
780
|
+
};
|
|
746
781
|
android?: {
|
|
747
782
|
package: string;
|
|
748
783
|
fingerprints: ({
|
|
@@ -773,7 +808,7 @@ export declare function client(t: Transport): {
|
|
|
773
808
|
signal?: AbortSignal;
|
|
774
809
|
}): Promise<Reply<200, {
|
|
775
810
|
id: string;
|
|
776
|
-
platform: "ios" | "android" | "web";
|
|
811
|
+
platform: "ios" | "macos" | "android" | "web";
|
|
777
812
|
name: string;
|
|
778
813
|
slug: string;
|
|
779
814
|
team_id: string | null;
|
|
@@ -792,6 +827,13 @@ export declare function client(t: Transport): {
|
|
|
792
827
|
app_clip?: string;
|
|
793
828
|
watch?: string;
|
|
794
829
|
};
|
|
830
|
+
macos?: {
|
|
831
|
+
team_id: string;
|
|
832
|
+
app_id_prefix?: string;
|
|
833
|
+
bundle: string;
|
|
834
|
+
app_clip?: string;
|
|
835
|
+
watch?: string;
|
|
836
|
+
};
|
|
795
837
|
android?: {
|
|
796
838
|
package: string;
|
|
797
839
|
fingerprints: ({
|
|
@@ -825,6 +867,9 @@ export declare function client(t: Transport): {
|
|
|
825
867
|
app_clip?: string;
|
|
826
868
|
watch?: string;
|
|
827
869
|
};
|
|
870
|
+
macos?: {
|
|
871
|
+
bundle: string;
|
|
872
|
+
};
|
|
828
873
|
android?: {
|
|
829
874
|
package: string;
|
|
830
875
|
fingerprints?: ({
|
|
@@ -850,6 +895,13 @@ export declare function client(t: Transport): {
|
|
|
850
895
|
app_clip?: string;
|
|
851
896
|
watch?: string;
|
|
852
897
|
};
|
|
898
|
+
macos?: {
|
|
899
|
+
team_id: string;
|
|
900
|
+
app_id_prefix?: string;
|
|
901
|
+
bundle: string;
|
|
902
|
+
app_clip?: string;
|
|
903
|
+
watch?: string;
|
|
904
|
+
};
|
|
853
905
|
android?: {
|
|
854
906
|
package: string;
|
|
855
907
|
fingerprints: ({
|
|
@@ -900,7 +952,7 @@ export declare function client(t: Transport): {
|
|
|
900
952
|
id: string;
|
|
901
953
|
name: string;
|
|
902
954
|
slug: string;
|
|
903
|
-
platform: "ios" | "android" | "web";
|
|
955
|
+
platform: "ios" | "macos" | "android" | "web";
|
|
904
956
|
ios?: {
|
|
905
957
|
team_id: string;
|
|
906
958
|
app_id_prefix?: string;
|
|
@@ -908,6 +960,13 @@ export declare function client(t: Transport): {
|
|
|
908
960
|
app_clip?: string;
|
|
909
961
|
watch?: string;
|
|
910
962
|
};
|
|
963
|
+
macos?: {
|
|
964
|
+
team_id: string;
|
|
965
|
+
app_id_prefix?: string;
|
|
966
|
+
bundle: string;
|
|
967
|
+
app_clip?: string;
|
|
968
|
+
watch?: string;
|
|
969
|
+
};
|
|
911
970
|
android?: {
|
|
912
971
|
package: string;
|
|
913
972
|
fingerprints: ({
|
|
@@ -931,7 +931,7 @@ export type Goal = {
|
|
|
931
931
|
*/
|
|
932
932
|
status: string;
|
|
933
933
|
/**
|
|
934
|
-
* Why it last left active, as a stable code (empty while active): paused_by_person, paused_by_client, turn_stopped, turns_failed, no_progress, judge_unreadable, check_unreadable, needs_person,
|
|
934
|
+
* Why it last left active, as a stable code (empty while active): paused_by_person, paused_by_client, turn_stopped, turns_failed, no_progress, judge_unreadable, check_unreadable, needs_person, not_admitted, budget_spent, turns_used, time_used, achieved.
|
|
935
935
|
*/
|
|
936
936
|
stop_code: string;
|
|
937
937
|
/**
|
|
@@ -218,7 +218,7 @@ export type AudienceWithin = {
|
|
|
218
218
|
};
|
|
219
219
|
export type AliasRequest = {
|
|
220
220
|
/**
|
|
221
|
-
* One id.
|
|
221
|
+
* One id. An app (the publishable key) names its signed-in user's id and its own anonymous ids (anon_…, as the SDKs make them) only: any other id is someone else's and is refused (400 distinct_id_not_yours); the project's server names whom it means.
|
|
222
222
|
*/
|
|
223
223
|
from: string;
|
|
224
224
|
/**
|
|
@@ -230,7 +230,7 @@ export type AliasRequest = {
|
|
|
230
230
|
*/
|
|
231
231
|
timestamp?: number;
|
|
232
232
|
/**
|
|
233
|
-
* The other: the event is under it.
|
|
233
|
+
* The other: the event is under it. An app (the publishable key) names its signed-in user's id and its own anonymous ids (anon_…, as the SDKs make them) only: any other id is someone else's and is refused (400 distinct_id_not_yours); the project's server names whom it means.
|
|
234
234
|
*/
|
|
235
235
|
to: string;
|
|
236
236
|
};
|
|
@@ -298,7 +298,7 @@ export type CaptureRequest = {
|
|
|
298
298
|
*/
|
|
299
299
|
app_version?: string;
|
|
300
300
|
/**
|
|
301
|
-
* Who did it (256 characters at most). With a user's token, the user's id instead; with user_id, the user's id. Required unless user_id names the user.
|
|
301
|
+
* Who did it (256 characters at most). With a user's token, the user's id instead; with user_id, the user's id. Required unless user_id names the user. An app (the publishable key) names its signed-in user's id and its own anonymous ids (anon_…, as the SDKs make them) only: any other id is someone else's and is refused (400 distinct_id_not_yours); the project's server names whom it means.
|
|
302
302
|
*/
|
|
303
303
|
distinct_id?: string;
|
|
304
304
|
/**
|
|
@@ -634,11 +634,11 @@ export type FunnelStep = {
|
|
|
634
634
|
};
|
|
635
635
|
export type IdentifyRequest = {
|
|
636
636
|
/**
|
|
637
|
-
* The anonymous id they had.
|
|
637
|
+
* The anonymous id they had. An app (the publishable key) names its signed-in user's id and its own anonymous ids (anon_…, as the SDKs make them) only: any other id is someone else's and is refused (400 distinct_id_not_yours); the project's server names whom it means.
|
|
638
638
|
*/
|
|
639
639
|
anonymous_id?: string;
|
|
640
640
|
/**
|
|
641
|
-
* The user's id.
|
|
641
|
+
* The user's id: with a user's token, theirs whatever this says. An app (the publishable key) names its signed-in user's id and its own anonymous ids (anon_…, as the SDKs make them) only: any other id is someone else's and is refused (400 distinct_id_not_yours); the project's server names whom it means.
|
|
642
642
|
*/
|
|
643
643
|
distinct_id: string;
|
|
644
644
|
/**
|
|
@@ -729,7 +729,7 @@ export type PeopleRequest = {
|
|
|
729
729
|
[key: string]: unknown;
|
|
730
730
|
};
|
|
731
731
|
/**
|
|
732
|
-
* Whose properties: the anonymous id with no one signed in; the person the server means.
|
|
732
|
+
* Whose properties: the anonymous id with no one signed in; the person the server means. An app (the publishable key) names its signed-in user's id and its own anonymous ids (anon_…, as the SDKs make them) only: any other id is someone else's and is refused (400 distinct_id_not_yours); the project's server names whom it means.
|
|
733
733
|
*/
|
|
734
734
|
distinct_id?: string;
|
|
735
735
|
/**
|
|
@@ -1327,7 +1327,7 @@ export type TraceRequest = {
|
|
|
1327
1327
|
[key: string]: unknown;
|
|
1328
1328
|
};
|
|
1329
1329
|
/**
|
|
1330
|
-
* Whose (the signed-in user's when absent).
|
|
1330
|
+
* Whose (the signed-in user's when absent). An app (the publishable key) names its signed-in user's id and its own anonymous ids (anon_…, as the SDKs make them) only: any other id is someone else's and is refused (400 distinct_id_not_yours); the project's server names whom it means.
|
|
1331
1331
|
*/
|
|
1332
1332
|
distinct_id?: string;
|
|
1333
1333
|
/**
|
|
@@ -5162,8 +5162,7 @@ export declare function client(t: Transport): {
|
|
|
5162
5162
|
* Enroll email OTP
|
|
5163
5163
|
*
|
|
5164
5164
|
* Enroll email OTP as a second factor for the authenticated user.
|
|
5165
|
-
* The user's email must already be verified.
|
|
5166
|
-
*
|
|
5165
|
+
* The user's email must already be verified. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5167
5166
|
*/
|
|
5168
5167
|
mfaEmailEnroll(input?: {
|
|
5169
5168
|
signal?: AbortSignal;
|
|
@@ -5186,8 +5185,7 @@ export declare function client(t: Transport): {
|
|
|
5186
5185
|
* returns the secret, otpauth URL, QR code (base64 PNG), and a
|
|
5187
5186
|
* one-time set of recovery codes (only on the user's first MFA
|
|
5188
5187
|
* enrollment). `type=email` marks email OTP as enrolled and
|
|
5189
|
-
* returns `{status: enrolled}` — email must already be verified.
|
|
5190
|
-
*
|
|
5188
|
+
* returns `{status: enrolled}` — email must already be verified. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5191
5189
|
*/
|
|
5192
5190
|
mfaEnroll(input: {
|
|
5193
5191
|
body: MFAEnrollRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -5239,8 +5237,7 @@ export declare function client(t: Transport): {
|
|
|
5239
5237
|
*
|
|
5240
5238
|
* Regenerate recovery codes — invalidates all previously issued
|
|
5241
5239
|
* codes and returns a fresh batch. The new codes are returned only
|
|
5242
|
-
* in this response and cannot be retrieved later.
|
|
5243
|
-
*
|
|
5240
|
+
* in this response and cannot be retrieved later. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5244
5241
|
*/
|
|
5245
5242
|
mfaRegenerateRecoveryCodes(input?: {
|
|
5246
5243
|
signal?: AbortSignal;
|
|
@@ -5265,8 +5262,7 @@ export declare function client(t: Transport): {
|
|
|
5265
5262
|
* format and may be subject to country allow/deny lists. NIST
|
|
5266
5263
|
* SP 800-63B treats SMS OTP as a "restricted authenticator" — a
|
|
5267
5264
|
* warning string is included in the response for surfacing to the
|
|
5268
|
-
* user.
|
|
5269
|
-
*
|
|
5265
|
+
* user. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5270
5266
|
*/
|
|
5271
5267
|
mfaSmsEnroll(input: {
|
|
5272
5268
|
body: MFASMSEnrollRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -5276,8 +5272,7 @@ export declare function client(t: Transport): {
|
|
|
5276
5272
|
* Verify SMS enrollment
|
|
5277
5273
|
*
|
|
5278
5274
|
* Verify a pending SMS enrollment by submitting the OTP code
|
|
5279
|
-
* received via SMS.
|
|
5280
|
-
*
|
|
5275
|
+
* received via SMS. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5281
5276
|
*/
|
|
5282
5277
|
mfaSmsVerifyEnrollment(input: {
|
|
5283
5278
|
body: MFASMSVerifyRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -5288,8 +5283,7 @@ export declare function client(t: Transport): {
|
|
|
5288
5283
|
*
|
|
5289
5284
|
* Verify a pending TOTP enrollment by submitting the first code
|
|
5290
5285
|
* from the authenticator app. On success the enrollment is marked
|
|
5291
|
-
* verified and may be used as a second factor on future logins.
|
|
5292
|
-
*
|
|
5286
|
+
* verified and may be used as a second factor on future logins. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5293
5287
|
*/
|
|
5294
5288
|
mfaVerifyEnrollment(input: {
|
|
5295
5289
|
body: MFAVerifyEnrollmentRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -5395,7 +5389,7 @@ export declare function client(t: Transport): {
|
|
|
5395
5389
|
/**
|
|
5396
5390
|
* Begin a social sign-in
|
|
5397
5391
|
*
|
|
5398
|
-
* Starts a sign-in with a provider: answers the provider URL to open (browser) or the parameters for the native SDK. With a session, the identity is linked to the signed-in user instead. A guest's session links at any age, and the guest becomes an account with the provider under the same id. It takes the provider's address only when the provider hosts it (then confirmed); when another account holds that address, completing answers 409 `email_exists` and nothing changes. A session opened as a guest that has since become an account is asked for a sign-in, as any credential change asks.
|
|
5392
|
+
* Starts a sign-in with a provider: answers the provider URL to open (browser) or the parameters for the native SDK. With a session, the identity is linked to the signed-in user instead. A guest's session links at any age, and the guest becomes an account with the provider under the same id. It takes the provider's address only when the provider hosts it (then confirmed); when another account holds that address, completing answers 409 `email_exists` and nothing changes. A session opened as a guest that has since become an account is asked for a sign-in, as any credential change asks. Linking a provider to the signed-in account is refused the same way while its email address is not confirmed (403 email_unconfirmed).
|
|
5399
5393
|
*/
|
|
5400
5394
|
socialBegin(input: {
|
|
5401
5395
|
body: SocialBeginRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -5568,7 +5562,7 @@ export declare function client(t: Transport): {
|
|
|
5568
5562
|
/**
|
|
5569
5563
|
* Add a first password to the signed-in account
|
|
5570
5564
|
*
|
|
5571
|
-
* Gives an account that has no password (social, passkey or phone sign-in) its first one. The user must have signed in within the last 5 minutes (403 `reauthentication_required` otherwise). An account that already has a password gets 409 `password_already_set` and should use `POST /auth/password/change`. The password is checked against the project's policy and known breaches; 503 means a check or the server's hashing capacity is momentarily unavailable and the same request can be retried (see `Retry-After`). A guest gets 409 `anonymous_user`: it takes a password with an address, by `POST /auth/anonymous/convert`.
|
|
5565
|
+
* Gives an account that has no password (social, passkey or phone sign-in) its first one. The user must have signed in within the last 5 minutes (403 `reauthentication_required` otherwise). An account that already has a password gets 409 `password_already_set` and should use `POST /auth/password/change`. The password is checked against the project's policy and known breaches; 503 means a check or the server's hashing capacity is momentarily unavailable and the same request can be retried (see `Retry-After`). A guest gets 409 `anonymous_user`: it takes a password with an address, by `POST /auth/anonymous/convert`. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5572
5566
|
*/
|
|
5573
5567
|
setPassword(input: {
|
|
5574
5568
|
body: PasswordSetRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -5612,8 +5606,7 @@ export declare function client(t: Transport): {
|
|
|
5612
5606
|
*
|
|
5613
5607
|
* Add a trusted recovery contact. A verification email is sent to
|
|
5614
5608
|
* the contact; they must confirm before being used for recovery
|
|
5615
|
-
* approvals. Maximum 5 contacts per user.
|
|
5616
|
-
*
|
|
5609
|
+
* approvals. Maximum 5 contacts per user. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5617
5610
|
*/
|
|
5618
5611
|
addRecoveryContact(input: {
|
|
5619
5612
|
body: AddContactRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -5804,10 +5797,13 @@ export declare function client(t: Transport): {
|
|
|
5804
5797
|
/**
|
|
5805
5798
|
* Exchange custom token for session
|
|
5806
5799
|
*
|
|
5807
|
-
* Trades a server-minted custom
|
|
5808
|
-
* token) for a regular session — access + refresh tokens.
|
|
5809
|
-
*
|
|
5810
|
-
*
|
|
5800
|
+
* Trades a server-minted custom token (Firebase-style backend-issued
|
|
5801
|
+
* token) for a regular session — access + refresh tokens. Only a token
|
|
5802
|
+
* minted by `/admin/token/custom`, within its TTL, is taken, and once:
|
|
5803
|
+
* it alone carries the custom token's audience and no session. Any other
|
|
5804
|
+
* token the project signs — a session's access token, signed out or not,
|
|
5805
|
+
* an impersonation's — is refused with 401 `invalid_token`, as is a custom
|
|
5806
|
+
* token presented again (401 `token_used`).
|
|
5811
5807
|
*
|
|
5812
5808
|
*/
|
|
5813
5809
|
exchangeCustomToken(input: {
|
|
@@ -5910,8 +5906,7 @@ export declare function client(t: Transport): {
|
|
|
5910
5906
|
*
|
|
5911
5907
|
* Register the current device as trusted. Returns a long-lived
|
|
5912
5908
|
* token the SDK stores to skip MFA on future logins. The plain
|
|
5913
|
-
* token is shown once.
|
|
5914
|
-
*
|
|
5909
|
+
* token is shown once. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
5915
5910
|
*/
|
|
5916
5911
|
registerTrustedDevice(input: {
|
|
5917
5912
|
body: RegisterTrustedDeviceRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -6055,8 +6050,7 @@ export declare function client(t: Transport): {
|
|
|
6055
6050
|
*
|
|
6056
6051
|
* Start registering a recovery passkey for the authenticated user.
|
|
6057
6052
|
* Recovery credentials can only be used via
|
|
6058
|
-
* `/auth/webauthn/recovery/*`, never for normal login.
|
|
6059
|
-
*
|
|
6053
|
+
* `/auth/webauthn/recovery/*`, never for normal login. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
6060
6054
|
*/
|
|
6061
6055
|
webauthnRecoveryRegisterBegin(input?: {
|
|
6062
6056
|
body?: WebAuthnRegisterRecoveryRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -6066,8 +6060,7 @@ export declare function client(t: Transport): {
|
|
|
6066
6060
|
* Complete recovery passkey registration
|
|
6067
6061
|
*
|
|
6068
6062
|
* Complete registration of a recovery passkey for the
|
|
6069
|
-
* authenticated user.
|
|
6070
|
-
*
|
|
6063
|
+
* authenticated user. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
6071
6064
|
*/
|
|
6072
6065
|
webauthnRecoveryRegisterFinish(input: {
|
|
6073
6066
|
body: WebAuthnAttestationResponse; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -6081,8 +6074,7 @@ export declare function client(t: Transport): {
|
|
|
6081
6074
|
* and/or `is_recovery` to mark the credential as a recovery
|
|
6082
6075
|
* passkey.
|
|
6083
6076
|
*
|
|
6084
|
-
* A guest becomes an account with the passkey it adds (`is_anonymous` false from the next refresh); it must send `user_name`, having no address to label the passkey with, and is not asked for a recent sign-in.
|
|
6085
|
-
*
|
|
6077
|
+
* A guest becomes an account with the passkey it adds (`is_anonymous` false from the next refresh); it must send `user_name`, having no address to label the passkey with, and is not asked for a recent sign-in. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
6086
6078
|
*/
|
|
6087
6079
|
webauthnRegisterBegin(input?: {
|
|
6088
6080
|
body?: WebAuthnRegisterBeginRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -6094,8 +6086,7 @@ export declare function client(t: Transport): {
|
|
|
6094
6086
|
* Complete registration of an additional WebAuthn credential for
|
|
6095
6087
|
* the authenticated user.
|
|
6096
6088
|
*
|
|
6097
|
-
* A guest's account is converted with it (`user.converted`), under the same id.
|
|
6098
|
-
*
|
|
6089
|
+
* A guest's account is converted with it (`user.converted`), under the same id. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.
|
|
6099
6090
|
*/
|
|
6100
6091
|
webauthnRegisterFinish(input: {
|
|
6101
6092
|
body: WebAuthnAttestationResponse; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -6406,5 +6397,25 @@ export declare function client(t: Transport): {
|
|
|
6406
6397
|
body: HostedAcceptInvitationForm; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
6407
6398
|
signal?: AbortSignal;
|
|
6408
6399
|
}): Promise<Reply<200, Response>>;
|
|
6400
|
+
/**
|
|
6401
|
+
* Show the not-me page
|
|
6402
|
+
*
|
|
6403
|
+
* A sign-up confirmation's "this was not me" link: a page that offers to delete the account opened with the reader's address while that address is unconfirmed. Opening it changes nothing.
|
|
6404
|
+
*/
|
|
6405
|
+
hostedNotMePage(input?: {
|
|
6406
|
+
query?: {
|
|
6407
|
+
token?: string;
|
|
6408
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
6409
|
+
signal?: AbortSignal;
|
|
6410
|
+
}): Promise<Reply<200, Response>>;
|
|
6411
|
+
/**
|
|
6412
|
+
* Delete an unconfirmed account from the not-me page
|
|
6413
|
+
*
|
|
6414
|
+
* The page's form: deletes the account the token names, with everything that belongs to it, while its address is unconfirmed (an account deletion, user.deleted). Once the address is confirmed it deletes nothing (409). Accepted only from the page itself (Origin).
|
|
6415
|
+
*/
|
|
6416
|
+
hostedNotMeSubmit(input: {
|
|
6417
|
+
body: HostedVerifyEmailForm; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
6418
|
+
signal?: AbortSignal;
|
|
6419
|
+
}): Promise<Reply<200, Response>>;
|
|
6409
6420
|
};
|
|
6410
6421
|
export type Client = ReturnType<typeof client>;
|
|
@@ -647,7 +647,7 @@ export type Channel = {
|
|
|
647
647
|
};
|
|
648
648
|
review?: AppReview;
|
|
649
649
|
/**
|
|
650
|
-
* Stripe's tax code for the product (the web's alone).
|
|
650
|
+
* Stripe's tax code for the product (the web's alone): what Stripe taxes it as, txcd_ and eight digits (txcd_10103000: SaaS for personal use; another is a problem, invalid_tax_code, and is not sent). Written on the product at Stripe; Managed Payments (settings' web_tax) needs one on every web product. Leaving it out later leaves Stripe's as it is.
|
|
651
651
|
*/
|
|
652
652
|
tax_code?: string;
|
|
653
653
|
/**
|
|
@@ -2563,7 +2563,7 @@ export type PaywallCondition = {
|
|
|
2563
2563
|
/**
|
|
2564
2564
|
* Platform.
|
|
2565
2565
|
*/
|
|
2566
|
-
platform?: ("ios" | "android" | "web")[];
|
|
2566
|
+
platform?: ("ios" | "android" | "web" | "macos")[];
|
|
2567
2567
|
/**
|
|
2568
2568
|
* Selected package.
|
|
2569
2569
|
*/
|
|
@@ -4164,7 +4164,7 @@ export type PreviewContext = {
|
|
|
4164
4164
|
*/
|
|
4165
4165
|
locale?: string;
|
|
4166
4166
|
/**
|
|
4167
|
-
* ios, android or
|
|
4167
|
+
* ios, android, web or macos (X-Platform).
|
|
4168
4168
|
*/
|
|
4169
4169
|
platform?: string;
|
|
4170
4170
|
/**
|
|
@@ -4535,7 +4535,7 @@ export type Revenue = {
|
|
|
4535
4535
|
/**
|
|
4536
4536
|
* One thing a rule asks of a viewer. `field` is what it reads, `op` how:
|
|
4537
4537
|
* - `country` (`in`, `not_in`; `values` ISO 3166-1 alpha-2, alpha-3 read as alpha-2): the store's country the app sends (X-Palbase-Storefront), else the country of the request's address.
|
|
4538
|
-
* - `platform` (`in`, `not_in`; `values` ios, android, web): X-Platform, else `?channel=`.
|
|
4538
|
+
* - `platform` (`in`, `not_in`; `values` ios, android, web, macos): X-Platform, else `?channel=`.
|
|
4539
4539
|
* - `app` (`in`, `not_in`; `values` registered apps' ids): X-Palbase-App.
|
|
4540
4540
|
* - `app_version` (`eq`, `neq`, `gt`, `gte`, `lt`, `lte`; `value` a version string): X-Palbase-Client-Version, compared as Semantic Versioning orders versions (2.1 is 2.1.0; a pre-release before its release).
|
|
4541
4541
|
* - `sdk_version` (the same operators; `sdk` the SDK's name, `value` a version): X-Palbase-SDK — a viewer on another SDK does not meet it.
|
|
@@ -4766,6 +4766,10 @@ export type Settings = {
|
|
|
4766
4766
|
* For how many days after the link a purchase owes the App Store its fee (7 unless set), 1 to 90: a subscription's renewals past them owe none.
|
|
4767
4767
|
*/
|
|
4768
4768
|
app_store_link_attribution_days: number;
|
|
4769
|
+
/**
|
|
4770
|
+
* How the web's (Stripe Checkout's) sales are taxed: none (none unless set) — Checkout works out no tax — or managed — Stripe Managed Payments: Stripe is the merchant of record, works out, collects and files the tax, invoices the buyer and takes their refunds and disputes. The Stripe account turns Managed Payments on first (Dashboard › Settings › Managed Payments), and every web product needs an eligible tax code (the catalog's web channel's tax_code).
|
|
4771
|
+
*/
|
|
4772
|
+
web_tax: "none" | "managed";
|
|
4769
4773
|
};
|
|
4770
4774
|
/**
|
|
4771
4775
|
* A change of the settings: the fields given change, the others stay.
|
|
@@ -4815,6 +4819,10 @@ export type SettingsUpdate = {
|
|
|
4815
4819
|
* For how many days after the link a purchase owes the App Store its fee (7 unless set), 1 to 90: a subscription's renewals past them owe none.
|
|
4816
4820
|
*/
|
|
4817
4821
|
app_store_link_attribution_days?: number;
|
|
4822
|
+
/**
|
|
4823
|
+
* How the web's (Stripe Checkout's) sales are taxed: none (none unless set) — Checkout works out no tax — or managed — Stripe Managed Payments: Stripe is the merchant of record, works out, collects and files the tax, invoices the buyer and takes their refunds and disputes. The Stripe account turns Managed Payments on first (Dashboard › Settings › Managed Payments), and every web product needs an eligible tax code (the catalog's web channel's tax_code).
|
|
4824
|
+
*/
|
|
4825
|
+
web_tax?: "none" | "managed";
|
|
4818
4826
|
};
|
|
4819
4827
|
/**
|
|
4820
4828
|
* What a commit, an extension or a reversal takes; a release takes nothing.
|
|
@@ -5091,6 +5099,10 @@ export type StripeProduct = {
|
|
|
5091
5099
|
* Its name.
|
|
5092
5100
|
*/
|
|
5093
5101
|
name: string;
|
|
5102
|
+
/**
|
|
5103
|
+
* What Stripe taxes it as (txcd_…); absent when none.
|
|
5104
|
+
*/
|
|
5105
|
+
tax_code?: string;
|
|
5094
5106
|
};
|
|
5095
5107
|
/**
|
|
5096
5108
|
* purchases.subscription.changed: a customer's subscription started, renewed, stopped renewing (canceled) or renews again (uncanceled), could not be charged (billing_issue) or was again (recovered), ended (expired), or moved to another product (product_changed).
|
|
@@ -5289,9 +5301,9 @@ export type ChartValue = {
|
|
|
5289
5301
|
*/
|
|
5290
5302
|
export type CheckoutSource = {
|
|
5291
5303
|
/**
|
|
5292
|
-
* The app's platform.
|
|
5304
|
+
* The app's platform: a Mac app's is macos. A web purchase counts in the charts as made on it.
|
|
5293
5305
|
*/
|
|
5294
|
-
platform: "ios" | "android" | "web";
|
|
5306
|
+
platform: "ios" | "android" | "web" | "macos";
|
|
5295
5307
|
/**
|
|
5296
5308
|
* The store's storefront the app runs in, ISO 3166-1 alpha-3 (StoreKit's Storefront.countryCode: USA).
|
|
5297
5309
|
*/
|
|
@@ -7382,7 +7394,7 @@ export declare function client(t: Transport): {
|
|
|
7382
7394
|
headers?: {
|
|
7383
7395
|
"X-Palbase-Paywall-Schema"?: number; /** The installation's id, as the SDK keeps it: who the paywall is shown to before anyone signs in. A signed-in user (a guest included) is who it is shown to, the installation aside. */
|
|
7384
7396
|
"X-Palbase-Installation"?: string; /** The ETag of the answer the app holds (a header over 1 KiB is not read). */
|
|
7385
|
-
"If-None-Match"?: string; /** The app's platform: ios, android or
|
|
7397
|
+
"If-None-Match"?: string; /** The app's platform: ios, android, web or macos (a placement's platform rules read it; `?channel=` when absent). */
|
|
7386
7398
|
"X-Platform"?: string; /** The app's version, as its users see it (CFBundleShortVersionString, versionName): app_version rules read it. */
|
|
7387
7399
|
"X-Palbase-Client-Version"?: string; /** The registered app's id: app rules read it. */
|
|
7388
7400
|
"X-Palbase-App"?: string; /** The SDK's name and version, name/version (palbase-swift/1.4.0): sdk_version rules read it. */
|
|
@@ -2581,7 +2581,7 @@ export type AppleSessionChangedEvent = {
|
|
|
2581
2581
|
team: AppleTeam;
|
|
2582
2582
|
};
|
|
2583
2583
|
/**
|
|
2584
|
-
* stores.apple.session.expired: Apple ended the project's Apple ID session (
|
|
2584
|
+
* stores.apple.session.expired: Apple ended the project's Apple ID session (Apple ends one some time after its sign-in, and at once when its password changes). What needs it answers 409 `apple_id_expired` until someone signs in again.
|
|
2585
2585
|
*/
|
|
2586
2586
|
export type AppleSessionExpiredEvent = {
|
|
2587
2587
|
/**
|
|
@@ -3599,7 +3599,7 @@ export interface Events {
|
|
|
3599
3599
|
*/
|
|
3600
3600
|
"stores.apple.session.changed": AppleSessionChangedEvent;
|
|
3601
3601
|
/**
|
|
3602
|
-
* stores.apple.session.expired: Apple ended the project's Apple ID session (
|
|
3602
|
+
* stores.apple.session.expired: Apple ended the project's Apple ID session (Apple ends one some time after its sign-in, and at once when its password changes). What needs it answers 409 `apple_id_expired` until someone signs in again.
|
|
3603
3603
|
*/
|
|
3604
3604
|
"stores.apple.session.expired": AppleSessionExpiredEvent;
|
|
3605
3605
|
/**
|
|
@@ -4405,7 +4405,7 @@ export declare function client(t: Transport): {
|
|
|
4405
4405
|
/**
|
|
4406
4406
|
* Check the Apple ID session
|
|
4407
4407
|
*
|
|
4408
|
-
* Asks Apple whose the session is now (its team, its roles) — the module does every
|
|
4408
|
+
* Asks Apple whose the session is now (its team, its roles) — the module does every 30 minutes a session is not used. A session Apple ended is marked `expired` and told (`stores.apple.session.expired`); sign in again to go on.
|
|
4409
4409
|
*/
|
|
4410
4410
|
checkAppleSession(input?: {
|
|
4411
4411
|
headers?: {
|
|
@@ -3,7 +3,8 @@ export type PaywallDefinition = purchases.PaywallDefinition;
|
|
|
3
3
|
export type MessageDefinition = notify.MessageDefinition;
|
|
4
4
|
/** What a screen is for: a paywall sells the catalog's packages; a message is shown in the app, or as a card of its inbox. */
|
|
5
5
|
export type ScreenKind = 'paywall' | 'message';
|
|
6
|
-
|
|
6
|
+
/** Where a screen is drawn: a Mac app's is macos. */
|
|
7
|
+
export type Platform = 'ios' | 'android' | 'web' | 'macos';
|
|
7
8
|
export type Appearance = 'light' | 'dark';
|
|
8
9
|
/** What the store gave a package, as the variables of its texts: `{{price}}` … */
|
|
9
10
|
export interface PackageValues {
|