@domino-sdk/relay 1.55.0 → 1.59.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/CHANGELOG.md +85 -0
- package/dist/{accounts-DRPENuZe.d.ts → accounts-CVonEkdb.d.ts} +18 -7
- package/dist/{attempt-captures-CxxO7DeD.d.ts → attempt-captures-DBj-rxak.d.ts} +1 -1
- package/dist/authoring.d.ts +306 -72
- package/dist/authoring.js +264 -9
- package/dist/{automatic-outcomes-DxW_v5Wc.d.ts → automatic-outcomes-FS9okvBP.d.ts} +1 -1
- package/dist/avatar.d.ts +1 -2
- package/dist/browser.d.ts +8 -9
- package/dist/browser.js +10 -10
- package/dist/{capability-error-DSd8EMQC.d.ts → capability-error-DDJl0LY-.d.ts} +0 -6
- package/dist/{chunk-IZRITLVV.js → chunk-2LKGAL63.js} +2 -2
- package/dist/{chunk-GL43VQ5D.js → chunk-577DG2IT.js} +38 -8
- package/dist/{chunk-UY6KMLQG.js → chunk-6U5WWH3W.js} +141 -100
- package/dist/{chunk-YCOKTQ4E.js → chunk-AWWCEP7F.js} +1403 -882
- package/dist/{chunk-56DBFNR2.js → chunk-EQF4ID47.js} +1 -1
- package/dist/{chunk-YEVD4A5X.js → chunk-IBROKMFV.js} +2 -2
- package/dist/{chunk-XALIFNMD.js → chunk-KBCTII6C.js} +1 -1
- package/dist/{chunk-WHG5WE43.js → chunk-KYUQEZZA.js} +1 -1
- package/dist/{chunk-WUEQOKJH.js → chunk-LDLOB2UZ.js} +4 -4
- package/dist/{chunk-IUF7DW76.js → chunk-M2JQPDUX.js} +39 -9
- package/dist/{chunk-MLIXJPKL.js → chunk-MHPKEVEW.js} +1 -0
- package/dist/{chunk-TLK2MD4S.js → chunk-R4S6BFOH.js} +1 -1
- package/dist/{chunk-VFBQVY4X.js → chunk-TZJT5CRF.js} +1 -1
- package/dist/{chunk-C7QZ4UBB.js → chunk-UEMLYPKJ.js} +21 -5
- package/dist/{chunk-F6HECAXA.js → chunk-W42KMMH5.js} +140 -101
- package/dist/{chunk-WHMXXHPX.js → chunk-XGXDINGM.js} +16 -3
- package/dist/{chunk-SABMNPF2.js → chunk-YMWRLAAP.js} +1 -1
- package/dist/{chunk-YE3XYB2F.js → chunk-YRSU2X2P.js} +2 -2
- package/dist/{client-C4zUZKpj.d.ts → client-3b9HjSzZ.d.ts} +191 -117
- package/dist/{deployments-B32QS1CI.d.ts → deployments-BydFVj4Q.d.ts} +798 -235
- package/dist/{groups-O6onGPmC.d.ts → groups-CFuTfFqG.d.ts} +15 -9
- package/dist/index.d.ts +9 -10
- package/dist/index.js +9 -9
- package/dist/{integrations-C6_uUh-s.d.ts → integrations-DrbKQSTD.d.ts} +42 -22
- package/dist/internal.d.ts +10 -10
- package/dist/internal.js +9 -9
- package/dist/{offers-BMDNcvwB.d.ts → offers-DAfe1O3_.d.ts} +211 -2
- package/dist/{pages-BFloMpyQ.d.ts → pages-ChDVLrgR.d.ts} +95 -10
- package/dist/portal-proxy.js +4 -4
- package/dist/react/index.d.ts +149 -72
- package/dist/react/index.js +65 -10
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/BG43KQ2T.js +1 -0
- package/dist/runtime/chunks/EWU4OKSY.js +62 -0
- package/dist/runtime/manifest.json +5 -5
- package/dist/runtime/schema.js +1 -1
- package/dist/runtime/zod.js +1 -1
- package/dist/{schema-C4m9RhCR.d.ts → schema-BA0nRRlt.d.ts} +184 -35
- package/dist/schema.d.ts +1265 -697
- package/dist/schema.js +96 -12
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +1644 -1105
- package/dist/{submission-input-BbdawqVy.d.ts → submission-input-DxQ6RnKo.d.ts} +2 -2
- package/dist/{telegram-browser-CwaxROAZ.d.ts → telegram-browser-o3OIxGrJ.d.ts} +3 -3
- package/dist/testing.d.ts +89 -9
- package/dist/testing.js +215 -10
- package/dist/{transport-CZJOW5Sr.d.ts → transport-D_Eqf78J.d.ts} +8592 -4384
- package/dist/wallet-B06zvDXp.d.ts +972 -0
- package/dist/{x-1czZFVUW.d.ts → x-C28SNifw.d.ts} +2 -2
- package/package.json +2 -2
- package/dist/profiles-BoOK03cR.d.ts +0 -299
- package/dist/runtime/chunks/IDOMZWRY.js +0 -40
- package/dist/runtime/chunks/WKATKZXE.js +0 -1
- package/dist/util.d-w9f9t3ua.d.ts +0 -5
- package/dist/wallet-Ac7OFpOr.d.ts +0 -228
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { m as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, o as TrackerSkipCode, i as PointHistoryQuery, g as PointEntryKind, ao as submitSchema, ap as contentPerformanceQuerySchema } from './schema-
|
|
2
|
-
import {
|
|
3
|
-
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-
|
|
1
|
+
import { m as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, o as TrackerSkipCode, i as PointHistoryQuery, g as PointEntryKind, ao as submitSchema, ap as contentPerformanceQuerySchema } from './schema-BA0nRRlt.js';
|
|
2
|
+
import { l as QuestView, m as ResponseSchema, c as PageQuery, e as QuestEnrollmentInput, Q as QuestClaimInput, i as QuestOutcomeQuery, q as questExperienceSchema, a as CreatorAccountProvider, n as RewardDeliveryQuery, o as RewardDeliveryAction, r as contentQualificationQuerySchema } from './pages-ChDVLrgR.js';
|
|
3
|
+
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-DxQ6RnKo.js';
|
|
4
4
|
import { a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, e as createRelayAction, O as OptionalActionId } from './action-DBzILFx9.js';
|
|
5
5
|
import { b as ParticipantSession, e as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-iciCEs_8.js';
|
|
6
6
|
import * as z from 'zod';
|
|
7
|
-
import { a as AuthProvider } from './accounts-
|
|
8
|
-
import { p as referralAcceptSchema, i as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, f as LeaderboardHistoryQuery, q as engagementPageQuerySchema } from './groups-
|
|
9
|
-
import {
|
|
10
|
-
import { w as walletAddressInputSchema, o as walletSignatureSchema, L as LinkedWallet, f as WalletSigner } from './wallet-Ac7OFpOr.js';
|
|
7
|
+
import { a as AuthProvider } from './accounts-CVonEkdb.js';
|
|
8
|
+
import { p as referralAcceptSchema, i as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, f as LeaderboardHistoryQuery, q as engagementPageQuerySchema } from './groups-CFuTfFqG.js';
|
|
9
|
+
import { ag as profileUpdateSchema, d as ProfileCompletionQuery, ah as walletAddressInputSchema, ai as walletSignatureSchema, L as LinkedWallet, m as WalletSigner } from './wallet-B06zvDXp.js';
|
|
11
10
|
|
|
12
11
|
/** What happened, as in every Domino client error (see `RequestError`). */
|
|
13
12
|
type RelayErrorKind = RequestErrorKind;
|
|
@@ -94,7 +93,7 @@ declare const RelayErrorCode: {
|
|
|
94
93
|
readonly Credential: "credential";
|
|
95
94
|
/** A wallet signer failed or the member refused to sign; `cause` is the wallet's own error. */
|
|
96
95
|
readonly WalletSigner: "wallet-signer";
|
|
97
|
-
/** The member has not met the quest's prerequisites; `missing` lists them. */
|
|
96
|
+
/** The member has not met the quest's or offer's prerequisites; `missing` lists them. */
|
|
98
97
|
readonly PrerequisitesIncomplete: "prerequisites-incomplete";
|
|
99
98
|
/** The quest is archived or retired: it takes no new participation. */
|
|
100
99
|
readonly QuestClosed: "quest-closed";
|
|
@@ -423,7 +422,48 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
423
422
|
} | {
|
|
424
423
|
kind: "paused";
|
|
425
424
|
};
|
|
425
|
+
missing: ({
|
|
426
|
+
kind: "completion";
|
|
427
|
+
quest: string;
|
|
428
|
+
title: string;
|
|
429
|
+
scope: "ever";
|
|
430
|
+
} | {
|
|
431
|
+
kind: "completion";
|
|
432
|
+
quest: string;
|
|
433
|
+
title: string;
|
|
434
|
+
scope: "period";
|
|
435
|
+
period: "day" | "week" | "month";
|
|
436
|
+
resetsAt: number;
|
|
437
|
+
} | {
|
|
438
|
+
kind: "balance";
|
|
439
|
+
balance: string;
|
|
440
|
+
title: string;
|
|
441
|
+
minimum: number;
|
|
442
|
+
current: number;
|
|
443
|
+
} | {
|
|
444
|
+
kind: "group";
|
|
445
|
+
group: string;
|
|
446
|
+
title: string;
|
|
447
|
+
})[];
|
|
426
448
|
key?: string | undefined;
|
|
449
|
+
requires?: ({
|
|
450
|
+
kind: "completion";
|
|
451
|
+
quest: string;
|
|
452
|
+
scope: "ever";
|
|
453
|
+
} | {
|
|
454
|
+
kind: "completion";
|
|
455
|
+
quest: string;
|
|
456
|
+
scope: "period";
|
|
457
|
+
period: "day" | "week" | "month";
|
|
458
|
+
} | {
|
|
459
|
+
kind: "balance";
|
|
460
|
+
balance: string;
|
|
461
|
+
minimum: number;
|
|
462
|
+
} | {
|
|
463
|
+
kind: "group";
|
|
464
|
+
group: string;
|
|
465
|
+
title: string;
|
|
466
|
+
})[] | undefined;
|
|
427
467
|
}[]>;
|
|
428
468
|
/** Redeems one offer. Persist `actionId` to retry after an uncertain result. */
|
|
429
469
|
redeem: (offer: string, value?: {
|
|
@@ -762,8 +802,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
762
802
|
/** The signed-in member's earned rewards, including pickup allocation and collection state. */
|
|
763
803
|
entitlements: (options?: RelayRequestOptions) => Promise<{
|
|
764
804
|
items: ({
|
|
765
|
-
|
|
766
|
-
|
|
805
|
+
status: "unsupported";
|
|
806
|
+
reportedStatus: string;
|
|
767
807
|
id: string;
|
|
768
808
|
member: string;
|
|
769
809
|
reward: {
|
|
@@ -789,9 +829,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
789
829
|
revision: number;
|
|
790
830
|
} | {
|
|
791
831
|
[x: string]: unknown;
|
|
792
|
-
status: "
|
|
793
|
-
handover: string;
|
|
794
|
-
startedAt: number;
|
|
832
|
+
status: "available";
|
|
795
833
|
id: string;
|
|
796
834
|
member: string;
|
|
797
835
|
reward: {
|
|
@@ -815,17 +853,11 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
815
853
|
earnedTier: string;
|
|
816
854
|
tier: string;
|
|
817
855
|
revision: number;
|
|
818
|
-
allocation?: {
|
|
819
|
-
[x: string]: unknown;
|
|
820
|
-
item: string;
|
|
821
|
-
label: string;
|
|
822
|
-
} | undefined;
|
|
823
856
|
} | {
|
|
824
857
|
[x: string]: unknown;
|
|
825
|
-
status: "
|
|
858
|
+
status: "handing-over";
|
|
826
859
|
handover: string;
|
|
827
860
|
startedAt: number;
|
|
828
|
-
collectedAt: number;
|
|
829
861
|
id: string;
|
|
830
862
|
member: string;
|
|
831
863
|
reward: {
|
|
@@ -854,16 +886,12 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
854
886
|
item: string;
|
|
855
887
|
label: string;
|
|
856
888
|
} | undefined;
|
|
857
|
-
recovery?: {
|
|
858
|
-
completion: string;
|
|
859
|
-
reason: string;
|
|
860
|
-
flaggedAt: number;
|
|
861
|
-
remainingTier: string | null;
|
|
862
|
-
} | undefined;
|
|
863
889
|
} | {
|
|
864
890
|
[x: string]: unknown;
|
|
865
|
-
status: "
|
|
866
|
-
|
|
891
|
+
status: "collected";
|
|
892
|
+
handover: string;
|
|
893
|
+
startedAt: number;
|
|
894
|
+
collectedAt: number;
|
|
867
895
|
id: string;
|
|
868
896
|
member: string;
|
|
869
897
|
reward: {
|
|
@@ -887,9 +915,21 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
887
915
|
earnedTier: string;
|
|
888
916
|
tier: string;
|
|
889
917
|
revision: number;
|
|
918
|
+
allocation?: {
|
|
919
|
+
[x: string]: unknown;
|
|
920
|
+
item: string;
|
|
921
|
+
label: string;
|
|
922
|
+
} | undefined;
|
|
923
|
+
recovery?: {
|
|
924
|
+
completion: string;
|
|
925
|
+
reason: string;
|
|
926
|
+
flaggedAt: number;
|
|
927
|
+
remainingTier: string | null;
|
|
928
|
+
} | undefined;
|
|
890
929
|
} | {
|
|
891
|
-
|
|
892
|
-
|
|
930
|
+
[x: string]: unknown;
|
|
931
|
+
status: "void";
|
|
932
|
+
voidedAt: number;
|
|
893
933
|
id: string;
|
|
894
934
|
member: string;
|
|
895
935
|
reward: {
|
|
@@ -918,6 +958,14 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
918
958
|
/** Point awards, current tier entitlements, and integration delivery states. */
|
|
919
959
|
deliveries: (options?: RelayRequestOptions) => Promise<{
|
|
920
960
|
items: ({
|
|
961
|
+
kind: "unknown";
|
|
962
|
+
reportedKind: string;
|
|
963
|
+
id: string;
|
|
964
|
+
status: string;
|
|
965
|
+
at: number | null;
|
|
966
|
+
quest: string | null;
|
|
967
|
+
completion: string | null;
|
|
968
|
+
} | {
|
|
921
969
|
[x: string]: z.core.util.JSONType;
|
|
922
970
|
kind: "points";
|
|
923
971
|
ledger: {
|
|
@@ -936,8 +984,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
936
984
|
[x: string]: unknown;
|
|
937
985
|
kind: "tier";
|
|
938
986
|
entitlement: {
|
|
939
|
-
|
|
940
|
-
|
|
987
|
+
status: "unsupported";
|
|
988
|
+
reportedStatus: string;
|
|
941
989
|
id: string;
|
|
942
990
|
member: string;
|
|
943
991
|
reward: {
|
|
@@ -963,9 +1011,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
963
1011
|
revision: number;
|
|
964
1012
|
} | {
|
|
965
1013
|
[x: string]: unknown;
|
|
966
|
-
status: "
|
|
967
|
-
handover: string;
|
|
968
|
-
startedAt: number;
|
|
1014
|
+
status: "available";
|
|
969
1015
|
id: string;
|
|
970
1016
|
member: string;
|
|
971
1017
|
reward: {
|
|
@@ -989,17 +1035,11 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
989
1035
|
earnedTier: string;
|
|
990
1036
|
tier: string;
|
|
991
1037
|
revision: number;
|
|
992
|
-
allocation?: {
|
|
993
|
-
[x: string]: unknown;
|
|
994
|
-
item: string;
|
|
995
|
-
label: string;
|
|
996
|
-
} | undefined;
|
|
997
1038
|
} | {
|
|
998
1039
|
[x: string]: unknown;
|
|
999
|
-
status: "
|
|
1040
|
+
status: "handing-over";
|
|
1000
1041
|
handover: string;
|
|
1001
1042
|
startedAt: number;
|
|
1002
|
-
collectedAt: number;
|
|
1003
1043
|
id: string;
|
|
1004
1044
|
member: string;
|
|
1005
1045
|
reward: {
|
|
@@ -1028,16 +1068,12 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1028
1068
|
item: string;
|
|
1029
1069
|
label: string;
|
|
1030
1070
|
} | undefined;
|
|
1031
|
-
recovery?: {
|
|
1032
|
-
completion: string;
|
|
1033
|
-
reason: string;
|
|
1034
|
-
flaggedAt: number;
|
|
1035
|
-
remainingTier: string | null;
|
|
1036
|
-
} | undefined;
|
|
1037
1071
|
} | {
|
|
1038
1072
|
[x: string]: unknown;
|
|
1039
|
-
status: "
|
|
1040
|
-
|
|
1073
|
+
status: "collected";
|
|
1074
|
+
handover: string;
|
|
1075
|
+
startedAt: number;
|
|
1076
|
+
collectedAt: number;
|
|
1041
1077
|
id: string;
|
|
1042
1078
|
member: string;
|
|
1043
1079
|
reward: {
|
|
@@ -1061,9 +1097,21 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1061
1097
|
earnedTier: string;
|
|
1062
1098
|
tier: string;
|
|
1063
1099
|
revision: number;
|
|
1100
|
+
allocation?: {
|
|
1101
|
+
[x: string]: unknown;
|
|
1102
|
+
item: string;
|
|
1103
|
+
label: string;
|
|
1104
|
+
} | undefined;
|
|
1105
|
+
recovery?: {
|
|
1106
|
+
completion: string;
|
|
1107
|
+
reason: string;
|
|
1108
|
+
flaggedAt: number;
|
|
1109
|
+
remainingTier: string | null;
|
|
1110
|
+
} | undefined;
|
|
1064
1111
|
} | {
|
|
1065
|
-
|
|
1066
|
-
|
|
1112
|
+
[x: string]: unknown;
|
|
1113
|
+
status: "void";
|
|
1114
|
+
voidedAt: number;
|
|
1067
1115
|
id: string;
|
|
1068
1116
|
member: string;
|
|
1069
1117
|
reward: {
|
|
@@ -1112,14 +1160,6 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1112
1160
|
quest: string | null;
|
|
1113
1161
|
completion: string | null;
|
|
1114
1162
|
roleId?: string | undefined;
|
|
1115
|
-
} | {
|
|
1116
|
-
kind: "unknown";
|
|
1117
|
-
reportedKind: string;
|
|
1118
|
-
id: string;
|
|
1119
|
-
status: string;
|
|
1120
|
-
at: number | null;
|
|
1121
|
-
quest: string | null;
|
|
1122
|
-
completion: string | null;
|
|
1123
1163
|
})[];
|
|
1124
1164
|
}>;
|
|
1125
1165
|
};
|
|
@@ -2048,8 +2088,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2048
2088
|
}>;
|
|
2049
2089
|
experience: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
2050
2090
|
entitlements: ({
|
|
2051
|
-
|
|
2052
|
-
|
|
2091
|
+
status: "unsupported";
|
|
2092
|
+
reportedStatus: string;
|
|
2053
2093
|
id: string;
|
|
2054
2094
|
member: string;
|
|
2055
2095
|
reward: {
|
|
@@ -2075,9 +2115,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2075
2115
|
revision: number;
|
|
2076
2116
|
} | {
|
|
2077
2117
|
[x: string]: unknown;
|
|
2078
|
-
status: "
|
|
2079
|
-
handover: string;
|
|
2080
|
-
startedAt: number;
|
|
2118
|
+
status: "available";
|
|
2081
2119
|
id: string;
|
|
2082
2120
|
member: string;
|
|
2083
2121
|
reward: {
|
|
@@ -2101,17 +2139,11 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2101
2139
|
earnedTier: string;
|
|
2102
2140
|
tier: string;
|
|
2103
2141
|
revision: number;
|
|
2104
|
-
allocation?: {
|
|
2105
|
-
[x: string]: unknown;
|
|
2106
|
-
item: string;
|
|
2107
|
-
label: string;
|
|
2108
|
-
} | undefined;
|
|
2109
2142
|
} | {
|
|
2110
2143
|
[x: string]: unknown;
|
|
2111
|
-
status: "
|
|
2144
|
+
status: "handing-over";
|
|
2112
2145
|
handover: string;
|
|
2113
2146
|
startedAt: number;
|
|
2114
|
-
collectedAt: number;
|
|
2115
2147
|
id: string;
|
|
2116
2148
|
member: string;
|
|
2117
2149
|
reward: {
|
|
@@ -2140,16 +2172,12 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2140
2172
|
item: string;
|
|
2141
2173
|
label: string;
|
|
2142
2174
|
} | undefined;
|
|
2143
|
-
recovery?: {
|
|
2144
|
-
completion: string;
|
|
2145
|
-
reason: string;
|
|
2146
|
-
flaggedAt: number;
|
|
2147
|
-
remainingTier: string | null;
|
|
2148
|
-
} | undefined;
|
|
2149
2175
|
} | {
|
|
2150
2176
|
[x: string]: unknown;
|
|
2151
|
-
status: "
|
|
2152
|
-
|
|
2177
|
+
status: "collected";
|
|
2178
|
+
handover: string;
|
|
2179
|
+
startedAt: number;
|
|
2180
|
+
collectedAt: number;
|
|
2153
2181
|
id: string;
|
|
2154
2182
|
member: string;
|
|
2155
2183
|
reward: {
|
|
@@ -2173,9 +2201,21 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2173
2201
|
earnedTier: string;
|
|
2174
2202
|
tier: string;
|
|
2175
2203
|
revision: number;
|
|
2204
|
+
allocation?: {
|
|
2205
|
+
[x: string]: unknown;
|
|
2206
|
+
item: string;
|
|
2207
|
+
label: string;
|
|
2208
|
+
} | undefined;
|
|
2209
|
+
recovery?: {
|
|
2210
|
+
completion: string;
|
|
2211
|
+
reason: string;
|
|
2212
|
+
flaggedAt: number;
|
|
2213
|
+
remainingTier: string | null;
|
|
2214
|
+
} | undefined;
|
|
2176
2215
|
} | {
|
|
2177
|
-
|
|
2178
|
-
|
|
2216
|
+
[x: string]: unknown;
|
|
2217
|
+
status: "void";
|
|
2218
|
+
voidedAt: number;
|
|
2179
2219
|
id: string;
|
|
2180
2220
|
member: string;
|
|
2181
2221
|
reward: {
|
|
@@ -3570,6 +3610,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3570
3610
|
verify: (proof: z.input<typeof walletSignatureSchema>, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3571
3611
|
id: string;
|
|
3572
3612
|
principal: {
|
|
3613
|
+
kind: string;
|
|
3614
|
+
} | {
|
|
3573
3615
|
kind: "member";
|
|
3574
3616
|
member: string;
|
|
3575
3617
|
} | {
|
|
@@ -3578,8 +3620,6 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3578
3620
|
} | {
|
|
3579
3621
|
kind: "operator";
|
|
3580
3622
|
subject: string;
|
|
3581
|
-
} | {
|
|
3582
|
-
kind: string;
|
|
3583
3623
|
};
|
|
3584
3624
|
expiresAt: number;
|
|
3585
3625
|
organization: string;
|
|
@@ -3593,6 +3633,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3593
3633
|
signIn: (signer: WalletSigner, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3594
3634
|
id: string;
|
|
3595
3635
|
principal: {
|
|
3636
|
+
kind: string;
|
|
3637
|
+
} | {
|
|
3596
3638
|
kind: "member";
|
|
3597
3639
|
member: string;
|
|
3598
3640
|
} | {
|
|
@@ -3601,8 +3643,6 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3601
3643
|
} | {
|
|
3602
3644
|
kind: "operator";
|
|
3603
3645
|
subject: string;
|
|
3604
|
-
} | {
|
|
3605
|
-
kind: string;
|
|
3606
3646
|
};
|
|
3607
3647
|
expiresAt: number;
|
|
3608
3648
|
organization: string;
|
|
@@ -3645,6 +3685,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3645
3685
|
signIn: (initData: string, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3646
3686
|
id: string;
|
|
3647
3687
|
principal: {
|
|
3688
|
+
kind: string;
|
|
3689
|
+
} | {
|
|
3648
3690
|
kind: "member";
|
|
3649
3691
|
member: string;
|
|
3650
3692
|
} | {
|
|
@@ -3653,8 +3695,6 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3653
3695
|
} | {
|
|
3654
3696
|
kind: "operator";
|
|
3655
3697
|
subject: string;
|
|
3656
|
-
} | {
|
|
3657
|
-
kind: string;
|
|
3658
3698
|
};
|
|
3659
3699
|
expiresAt: number;
|
|
3660
3700
|
organization: string;
|
|
@@ -3667,6 +3707,40 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3667
3707
|
}>;
|
|
3668
3708
|
};
|
|
3669
3709
|
};
|
|
3710
|
+
/**
|
|
3711
|
+
* The member's creator accounts: the platform accounts they publish from, such as a YouTube
|
|
3712
|
+
* channel, which managed tracker sources read. A creator account is linked only to a
|
|
3713
|
+
* signed-in member, never used to sign in, and linking another one on the same platform
|
|
3714
|
+
* replaces it.
|
|
3715
|
+
*/
|
|
3716
|
+
creatorAccounts: {
|
|
3717
|
+
/** One entry per creator-account provider the platform configured. */
|
|
3718
|
+
list: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3719
|
+
accounts: {
|
|
3720
|
+
provider: CreatorAccountProvider;
|
|
3721
|
+
configured: boolean;
|
|
3722
|
+
status: "disconnected" | "connected" | "reconnect";
|
|
3723
|
+
subject: string | null;
|
|
3724
|
+
revision: number;
|
|
3725
|
+
profile: {
|
|
3726
|
+
name?: string | undefined;
|
|
3727
|
+
username?: string | undefined;
|
|
3728
|
+
imageUrl?: string | undefined;
|
|
3729
|
+
} | null;
|
|
3730
|
+
}[];
|
|
3731
|
+
}>;
|
|
3732
|
+
/**
|
|
3733
|
+
* Leaves for the provider's consent screen to link an account to the signed-in member.
|
|
3734
|
+
* Answers the URL to open; the browser comes back to the app linked.
|
|
3735
|
+
*/
|
|
3736
|
+
connect: (provider: CreatorAccountProvider, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3737
|
+
url: string;
|
|
3738
|
+
}>;
|
|
3739
|
+
/** Unlinks the member's account on `provider`. Records it authored stay. */
|
|
3740
|
+
disconnect: (provider: CreatorAccountProvider, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3741
|
+
ok: boolean;
|
|
3742
|
+
}>;
|
|
3743
|
+
};
|
|
3670
3744
|
/** The member's connected sign-in accounts, one per provider. */
|
|
3671
3745
|
accounts: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3672
3746
|
provider: "discord" | "google" | "apple" | "x";
|
|
@@ -3681,6 +3755,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3681
3755
|
session: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3682
3756
|
id: string;
|
|
3683
3757
|
principal: {
|
|
3758
|
+
kind: string;
|
|
3759
|
+
} | {
|
|
3684
3760
|
kind: "member";
|
|
3685
3761
|
member: string;
|
|
3686
3762
|
} | {
|
|
@@ -3689,8 +3765,6 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3689
3765
|
} | {
|
|
3690
3766
|
kind: "operator";
|
|
3691
3767
|
subject: string;
|
|
3692
|
-
} | {
|
|
3693
|
-
kind: string;
|
|
3694
3768
|
};
|
|
3695
3769
|
expiresAt: number;
|
|
3696
3770
|
organization: string;
|
|
@@ -3743,6 +3817,11 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3743
3817
|
}, options?: RelayRequestOptions) => Promise<{
|
|
3744
3818
|
member: string;
|
|
3745
3819
|
items: ({
|
|
3820
|
+
kind: "unknown";
|
|
3821
|
+
reportedKind: string;
|
|
3822
|
+
id: string;
|
|
3823
|
+
at: number;
|
|
3824
|
+
} | {
|
|
3746
3825
|
kind: "attempt.accepted";
|
|
3747
3826
|
quest: string;
|
|
3748
3827
|
attempt: string;
|
|
@@ -3797,11 +3876,6 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3797
3876
|
program: string;
|
|
3798
3877
|
id: string;
|
|
3799
3878
|
at: number;
|
|
3800
|
-
} | {
|
|
3801
|
-
kind: "unknown";
|
|
3802
|
-
reportedKind: string;
|
|
3803
|
-
id: string;
|
|
3804
|
-
at: number;
|
|
3805
3879
|
})[];
|
|
3806
3880
|
nextCursor: string;
|
|
3807
3881
|
}>;
|
|
@@ -4254,8 +4328,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4254
4328
|
nextAvailableAt?: number | undefined;
|
|
4255
4329
|
}[];
|
|
4256
4330
|
entitlements: ({
|
|
4257
|
-
|
|
4258
|
-
|
|
4331
|
+
status: "unsupported";
|
|
4332
|
+
reportedStatus: string;
|
|
4259
4333
|
id: string;
|
|
4260
4334
|
member: string;
|
|
4261
4335
|
reward: {
|
|
@@ -4281,9 +4355,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4281
4355
|
revision: number;
|
|
4282
4356
|
} | {
|
|
4283
4357
|
[x: string]: unknown;
|
|
4284
|
-
status: "
|
|
4285
|
-
handover: string;
|
|
4286
|
-
startedAt: number;
|
|
4358
|
+
status: "available";
|
|
4287
4359
|
id: string;
|
|
4288
4360
|
member: string;
|
|
4289
4361
|
reward: {
|
|
@@ -4307,17 +4379,11 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4307
4379
|
earnedTier: string;
|
|
4308
4380
|
tier: string;
|
|
4309
4381
|
revision: number;
|
|
4310
|
-
allocation?: {
|
|
4311
|
-
[x: string]: unknown;
|
|
4312
|
-
item: string;
|
|
4313
|
-
label: string;
|
|
4314
|
-
} | undefined;
|
|
4315
4382
|
} | {
|
|
4316
4383
|
[x: string]: unknown;
|
|
4317
|
-
status: "
|
|
4384
|
+
status: "handing-over";
|
|
4318
4385
|
handover: string;
|
|
4319
4386
|
startedAt: number;
|
|
4320
|
-
collectedAt: number;
|
|
4321
4387
|
id: string;
|
|
4322
4388
|
member: string;
|
|
4323
4389
|
reward: {
|
|
@@ -4346,16 +4412,12 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4346
4412
|
item: string;
|
|
4347
4413
|
label: string;
|
|
4348
4414
|
} | undefined;
|
|
4349
|
-
recovery?: {
|
|
4350
|
-
completion: string;
|
|
4351
|
-
reason: string;
|
|
4352
|
-
flaggedAt: number;
|
|
4353
|
-
remainingTier: string | null;
|
|
4354
|
-
} | undefined;
|
|
4355
4415
|
} | {
|
|
4356
4416
|
[x: string]: unknown;
|
|
4357
|
-
status: "
|
|
4358
|
-
|
|
4417
|
+
status: "collected";
|
|
4418
|
+
handover: string;
|
|
4419
|
+
startedAt: number;
|
|
4420
|
+
collectedAt: number;
|
|
4359
4421
|
id: string;
|
|
4360
4422
|
member: string;
|
|
4361
4423
|
reward: {
|
|
@@ -4379,9 +4441,21 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4379
4441
|
earnedTier: string;
|
|
4380
4442
|
tier: string;
|
|
4381
4443
|
revision: number;
|
|
4444
|
+
allocation?: {
|
|
4445
|
+
[x: string]: unknown;
|
|
4446
|
+
item: string;
|
|
4447
|
+
label: string;
|
|
4448
|
+
} | undefined;
|
|
4449
|
+
recovery?: {
|
|
4450
|
+
completion: string;
|
|
4451
|
+
reason: string;
|
|
4452
|
+
flaggedAt: number;
|
|
4453
|
+
remainingTier: string | null;
|
|
4454
|
+
} | undefined;
|
|
4382
4455
|
} | {
|
|
4383
|
-
|
|
4384
|
-
|
|
4456
|
+
[x: string]: unknown;
|
|
4457
|
+
status: "void";
|
|
4458
|
+
voidedAt: number;
|
|
4385
4459
|
id: string;
|
|
4386
4460
|
member: string;
|
|
4387
4461
|
reward: {
|