@domino-sdk/relay 1.0.0-next.3 → 1.0.0-next.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/authoring.d.ts +2 -2
- package/dist/authoring.js +2 -8
- package/dist/browser.d.ts +186 -186
- package/dist/index.d.ts +400 -400
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +12 -4
- package/dist/{submission-input-jVvTh4Ed.d.ts → submission-input-CZDukyb3.d.ts} +7 -1
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a8 as CosmosChain, a9 as CosmosNetwork, R as WalletSigner, a5 as WalletSignInNetwork, Z as AuthProvider, M as referralAcceptSchema, N as LeaderboardQuery, P as WalletAddressInput, Q as walletSignatureSchema, L as LinkedWallet, V as walletChallengeInputSchema, Y as walletProofSchema, _ as WalletSignature, $ as engagementPageQuerySchema, a0 as contentQualificationQuerySchema, a1 as contentAdmissionQuerySchema, a2 as contentEnrollmentInputSchema, a3 as contentReleaseInputSchema } from './submission-input-
|
|
1
|
+
import { a8 as CosmosChain, a9 as CosmosNetwork, R as WalletSigner, a5 as WalletSignInNetwork, Z as AuthProvider, M as referralAcceptSchema, N as LeaderboardQuery, P as WalletAddressInput, Q as walletSignatureSchema, L as LinkedWallet, V as walletChallengeInputSchema, Y as walletProofSchema, _ as WalletSignature, $ as engagementPageQuerySchema, a0 as contentQualificationQuerySchema, a1 as contentAdmissionQuerySchema, a2 as contentEnrollmentInputSchema, a3 as contentReleaseInputSchema } from './submission-input-CZDukyb3.js';
|
|
2
2
|
import { SubmitInput, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
|
|
3
3
|
import { createRelayClient, SubmissionStore, ProfileUpdate, ProfileCompletionQuery, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission } from './index.js';
|
|
4
4
|
import * as zod from 'zod';
|
|
@@ -515,7 +515,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
515
515
|
seed: string;
|
|
516
516
|
} | {
|
|
517
517
|
source: "account";
|
|
518
|
-
provider: "
|
|
518
|
+
provider: "discord" | "google" | "x";
|
|
519
519
|
url: string;
|
|
520
520
|
seed: string;
|
|
521
521
|
} | {
|
|
@@ -539,7 +539,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
539
539
|
seed: string;
|
|
540
540
|
} | {
|
|
541
541
|
source: "account";
|
|
542
|
-
provider: "
|
|
542
|
+
provider: "discord" | "google" | "x";
|
|
543
543
|
url: string;
|
|
544
544
|
seed: string;
|
|
545
545
|
} | {
|
|
@@ -563,7 +563,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
563
563
|
seed: string;
|
|
564
564
|
} | {
|
|
565
565
|
source: "account";
|
|
566
|
-
provider: "
|
|
566
|
+
provider: "discord" | "google" | "x";
|
|
567
567
|
url: string;
|
|
568
568
|
seed: string;
|
|
569
569
|
} | {
|
|
@@ -595,7 +595,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
595
595
|
seed: string;
|
|
596
596
|
} | {
|
|
597
597
|
source: "account";
|
|
598
|
-
provider: "
|
|
598
|
+
provider: "discord" | "google" | "x";
|
|
599
599
|
url: string;
|
|
600
600
|
seed: string;
|
|
601
601
|
} | {
|
|
@@ -603,13 +603,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
603
603
|
seed: string;
|
|
604
604
|
};
|
|
605
605
|
displayName: string | null;
|
|
606
|
-
avatarChoice: "default" | "account" | "
|
|
607
|
-
avatarProvider: "
|
|
606
|
+
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
607
|
+
avatarProvider: "discord" | "google" | "x" | null;
|
|
608
608
|
hidden: boolean;
|
|
609
609
|
locked: boolean;
|
|
610
|
-
visibility: "
|
|
610
|
+
visibility: "participants" | "public" | "private";
|
|
611
611
|
options: {
|
|
612
|
-
provider: "
|
|
612
|
+
provider: "discord" | "google" | "x";
|
|
613
613
|
name: string | null;
|
|
614
614
|
imageUrl: string | null;
|
|
615
615
|
}[];
|
|
@@ -625,7 +625,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
625
625
|
seed: string;
|
|
626
626
|
} | {
|
|
627
627
|
source: "account";
|
|
628
|
-
provider: "
|
|
628
|
+
provider: "discord" | "google" | "x";
|
|
629
629
|
url: string;
|
|
630
630
|
seed: string;
|
|
631
631
|
} | {
|
|
@@ -633,13 +633,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
633
633
|
seed: string;
|
|
634
634
|
};
|
|
635
635
|
displayName: string | null;
|
|
636
|
-
avatarChoice: "default" | "account" | "
|
|
637
|
-
avatarProvider: "
|
|
636
|
+
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
637
|
+
avatarProvider: "discord" | "google" | "x" | null;
|
|
638
638
|
hidden: boolean;
|
|
639
639
|
locked: boolean;
|
|
640
|
-
visibility: "
|
|
640
|
+
visibility: "participants" | "public" | "private";
|
|
641
641
|
options: {
|
|
642
|
-
provider: "
|
|
642
|
+
provider: "discord" | "google" | "x";
|
|
643
643
|
name: string | null;
|
|
644
644
|
imageUrl: string | null;
|
|
645
645
|
}[];
|
|
@@ -656,7 +656,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
656
656
|
seed: string;
|
|
657
657
|
} | {
|
|
658
658
|
source: "account";
|
|
659
|
-
provider: "
|
|
659
|
+
provider: "discord" | "google" | "x";
|
|
660
660
|
url: string;
|
|
661
661
|
seed: string;
|
|
662
662
|
} | {
|
|
@@ -664,13 +664,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
664
664
|
seed: string;
|
|
665
665
|
};
|
|
666
666
|
displayName: string | null;
|
|
667
|
-
avatarChoice: "default" | "account" | "
|
|
668
|
-
avatarProvider: "
|
|
667
|
+
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
668
|
+
avatarProvider: "discord" | "google" | "x" | null;
|
|
669
669
|
hidden: boolean;
|
|
670
670
|
locked: boolean;
|
|
671
|
-
visibility: "
|
|
671
|
+
visibility: "participants" | "public" | "private";
|
|
672
672
|
options: {
|
|
673
|
-
provider: "
|
|
673
|
+
provider: "discord" | "google" | "x";
|
|
674
674
|
name: string | null;
|
|
675
675
|
imageUrl: string | null;
|
|
676
676
|
}[];
|
|
@@ -684,7 +684,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
684
684
|
seed: string;
|
|
685
685
|
} | {
|
|
686
686
|
source: "account";
|
|
687
|
-
provider: "
|
|
687
|
+
provider: "discord" | "google" | "x";
|
|
688
688
|
url: string;
|
|
689
689
|
seed: string;
|
|
690
690
|
} | {
|
|
@@ -739,7 +739,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
739
739
|
} | undefined;
|
|
740
740
|
} | undefined;
|
|
741
741
|
};
|
|
742
|
-
connections: ("
|
|
742
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
743
743
|
trigger: {
|
|
744
744
|
kind: "automatic";
|
|
745
745
|
observation?: {
|
|
@@ -752,7 +752,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
752
752
|
start: number;
|
|
753
753
|
end?: number | undefined;
|
|
754
754
|
};
|
|
755
|
-
enrollment: "
|
|
755
|
+
enrollment: "required" | "none";
|
|
756
756
|
posts: "after-enrollment" | "since-start";
|
|
757
757
|
historical: "staff" | "automatic" | "claim";
|
|
758
758
|
} | undefined;
|
|
@@ -799,12 +799,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
799
799
|
actor?: "member" | "staff" | undefined;
|
|
800
800
|
} | {
|
|
801
801
|
kind: "manual";
|
|
802
|
-
input: "
|
|
802
|
+
input: "quiz" | "photo" | "none";
|
|
803
803
|
actor?: "member" | "staff" | undefined;
|
|
804
804
|
};
|
|
805
805
|
availability: {
|
|
806
806
|
kind: "available";
|
|
807
|
-
input: "
|
|
807
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
808
808
|
} | {
|
|
809
809
|
kind: "completed";
|
|
810
810
|
} | {
|
|
@@ -853,7 +853,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
853
853
|
quest: string;
|
|
854
854
|
member: string;
|
|
855
855
|
evidence: string | null;
|
|
856
|
-
status: "
|
|
856
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
857
857
|
reason: string | null;
|
|
858
858
|
retries: number;
|
|
859
859
|
generation: number;
|
|
@@ -887,22 +887,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
887
887
|
})[] | null;
|
|
888
888
|
createdAt: number;
|
|
889
889
|
input?: {
|
|
890
|
-
kind: "text";
|
|
891
|
-
value: string;
|
|
892
|
-
} | {
|
|
893
|
-
kind: "url";
|
|
894
|
-
value: string;
|
|
895
|
-
} | {
|
|
896
890
|
kind: "quiz";
|
|
897
891
|
answers: {
|
|
898
892
|
[k: string]: string;
|
|
899
893
|
};
|
|
900
894
|
release?: string | undefined;
|
|
895
|
+
} | {
|
|
896
|
+
kind: "text";
|
|
897
|
+
value: string;
|
|
898
|
+
} | {
|
|
899
|
+
kind: "url";
|
|
900
|
+
value: string;
|
|
901
901
|
} | undefined;
|
|
902
902
|
} | null;
|
|
903
903
|
release: string;
|
|
904
|
-
interaction: "staff" | "
|
|
905
|
-
lifecycle: "
|
|
904
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
905
|
+
lifecycle: "active" | "paused" | "archived";
|
|
906
906
|
rewards: ({
|
|
907
907
|
kind: "points";
|
|
908
908
|
label: string;
|
|
@@ -963,7 +963,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
963
963
|
quest: string;
|
|
964
964
|
member: string;
|
|
965
965
|
evidence: string | null;
|
|
966
|
-
status: "
|
|
966
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
967
967
|
reason: string | null;
|
|
968
968
|
retries: number;
|
|
969
969
|
generation: number;
|
|
@@ -997,17 +997,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
997
997
|
})[] | null;
|
|
998
998
|
createdAt: number;
|
|
999
999
|
input?: {
|
|
1000
|
-
kind: "text";
|
|
1001
|
-
value: string;
|
|
1002
|
-
} | {
|
|
1003
|
-
kind: "url";
|
|
1004
|
-
value: string;
|
|
1005
|
-
} | {
|
|
1006
1000
|
kind: "quiz";
|
|
1007
1001
|
answers: {
|
|
1008
1002
|
[k: string]: string;
|
|
1009
1003
|
};
|
|
1010
1004
|
release?: string | undefined;
|
|
1005
|
+
} | {
|
|
1006
|
+
kind: "text";
|
|
1007
|
+
value: string;
|
|
1008
|
+
} | {
|
|
1009
|
+
kind: "url";
|
|
1010
|
+
value: string;
|
|
1011
1011
|
} | undefined;
|
|
1012
1012
|
}>;
|
|
1013
1013
|
experience: () => Promise<{
|
|
@@ -1035,7 +1035,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1035
1035
|
} | undefined;
|
|
1036
1036
|
} | undefined;
|
|
1037
1037
|
};
|
|
1038
|
-
connections: ("
|
|
1038
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1039
1039
|
trigger: {
|
|
1040
1040
|
kind: "automatic";
|
|
1041
1041
|
observation?: {
|
|
@@ -1048,7 +1048,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1048
1048
|
start: number;
|
|
1049
1049
|
end?: number | undefined;
|
|
1050
1050
|
};
|
|
1051
|
-
enrollment: "
|
|
1051
|
+
enrollment: "required" | "none";
|
|
1052
1052
|
posts: "after-enrollment" | "since-start";
|
|
1053
1053
|
historical: "staff" | "automatic" | "claim";
|
|
1054
1054
|
} | undefined;
|
|
@@ -1095,12 +1095,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1095
1095
|
actor?: "member" | "staff" | undefined;
|
|
1096
1096
|
} | {
|
|
1097
1097
|
kind: "manual";
|
|
1098
|
-
input: "
|
|
1098
|
+
input: "quiz" | "photo" | "none";
|
|
1099
1099
|
actor?: "member" | "staff" | undefined;
|
|
1100
1100
|
};
|
|
1101
1101
|
availability: {
|
|
1102
1102
|
kind: "available";
|
|
1103
|
-
input: "
|
|
1103
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
1104
1104
|
} | {
|
|
1105
1105
|
kind: "completed";
|
|
1106
1106
|
} | {
|
|
@@ -1149,7 +1149,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1149
1149
|
quest: string;
|
|
1150
1150
|
member: string;
|
|
1151
1151
|
evidence: string | null;
|
|
1152
|
-
status: "
|
|
1152
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1153
1153
|
reason: string | null;
|
|
1154
1154
|
retries: number;
|
|
1155
1155
|
generation: number;
|
|
@@ -1183,22 +1183,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1183
1183
|
})[] | null;
|
|
1184
1184
|
createdAt: number;
|
|
1185
1185
|
input?: {
|
|
1186
|
-
kind: "text";
|
|
1187
|
-
value: string;
|
|
1188
|
-
} | {
|
|
1189
|
-
kind: "url";
|
|
1190
|
-
value: string;
|
|
1191
|
-
} | {
|
|
1192
1186
|
kind: "quiz";
|
|
1193
1187
|
answers: {
|
|
1194
1188
|
[k: string]: string;
|
|
1195
1189
|
};
|
|
1196
1190
|
release?: string | undefined;
|
|
1191
|
+
} | {
|
|
1192
|
+
kind: "text";
|
|
1193
|
+
value: string;
|
|
1194
|
+
} | {
|
|
1195
|
+
kind: "url";
|
|
1196
|
+
value: string;
|
|
1197
1197
|
} | undefined;
|
|
1198
1198
|
} | null;
|
|
1199
1199
|
release: string;
|
|
1200
|
-
interaction: "staff" | "
|
|
1201
|
-
lifecycle: "
|
|
1200
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
1201
|
+
lifecycle: "active" | "paused" | "archived";
|
|
1202
1202
|
rewards: ({
|
|
1203
1203
|
kind: "points";
|
|
1204
1204
|
label: string;
|
|
@@ -1279,7 +1279,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1279
1279
|
} | undefined;
|
|
1280
1280
|
} | undefined;
|
|
1281
1281
|
};
|
|
1282
|
-
connections: ("
|
|
1282
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1283
1283
|
trigger: {
|
|
1284
1284
|
kind: "automatic";
|
|
1285
1285
|
observation?: {
|
|
@@ -1292,7 +1292,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1292
1292
|
start: number;
|
|
1293
1293
|
end?: number | undefined;
|
|
1294
1294
|
};
|
|
1295
|
-
enrollment: "
|
|
1295
|
+
enrollment: "required" | "none";
|
|
1296
1296
|
posts: "after-enrollment" | "since-start";
|
|
1297
1297
|
historical: "staff" | "automatic" | "claim";
|
|
1298
1298
|
} | undefined;
|
|
@@ -1339,12 +1339,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1339
1339
|
actor?: "member" | "staff" | undefined;
|
|
1340
1340
|
} | {
|
|
1341
1341
|
kind: "manual";
|
|
1342
|
-
input: "
|
|
1342
|
+
input: "quiz" | "photo" | "none";
|
|
1343
1343
|
actor?: "member" | "staff" | undefined;
|
|
1344
1344
|
};
|
|
1345
1345
|
availability: {
|
|
1346
1346
|
kind: "available";
|
|
1347
|
-
input: "
|
|
1347
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
1348
1348
|
} | {
|
|
1349
1349
|
kind: "completed";
|
|
1350
1350
|
} | {
|
|
@@ -1393,7 +1393,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1393
1393
|
quest: string;
|
|
1394
1394
|
member: string;
|
|
1395
1395
|
evidence: string | null;
|
|
1396
|
-
status: "
|
|
1396
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1397
1397
|
reason: string | null;
|
|
1398
1398
|
retries: number;
|
|
1399
1399
|
generation: number;
|
|
@@ -1427,22 +1427,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1427
1427
|
})[] | null;
|
|
1428
1428
|
createdAt: number;
|
|
1429
1429
|
input?: {
|
|
1430
|
-
kind: "text";
|
|
1431
|
-
value: string;
|
|
1432
|
-
} | {
|
|
1433
|
-
kind: "url";
|
|
1434
|
-
value: string;
|
|
1435
|
-
} | {
|
|
1436
1430
|
kind: "quiz";
|
|
1437
1431
|
answers: {
|
|
1438
1432
|
[k: string]: string;
|
|
1439
1433
|
};
|
|
1440
1434
|
release?: string | undefined;
|
|
1435
|
+
} | {
|
|
1436
|
+
kind: "text";
|
|
1437
|
+
value: string;
|
|
1438
|
+
} | {
|
|
1439
|
+
kind: "url";
|
|
1440
|
+
value: string;
|
|
1441
1441
|
} | undefined;
|
|
1442
1442
|
} | null;
|
|
1443
1443
|
release: string;
|
|
1444
|
-
interaction: "staff" | "
|
|
1445
|
-
lifecycle: "
|
|
1444
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
1445
|
+
lifecycle: "active" | "paused" | "archived";
|
|
1446
1446
|
rewards: ({
|
|
1447
1447
|
kind: "points";
|
|
1448
1448
|
label: string;
|
|
@@ -1526,7 +1526,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1526
1526
|
} | undefined;
|
|
1527
1527
|
} | undefined;
|
|
1528
1528
|
};
|
|
1529
|
-
connections: ("
|
|
1529
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1530
1530
|
trigger: {
|
|
1531
1531
|
kind: "automatic";
|
|
1532
1532
|
observation?: {
|
|
@@ -1539,7 +1539,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1539
1539
|
start: number;
|
|
1540
1540
|
end?: number | undefined;
|
|
1541
1541
|
};
|
|
1542
|
-
enrollment: "
|
|
1542
|
+
enrollment: "required" | "none";
|
|
1543
1543
|
posts: "after-enrollment" | "since-start";
|
|
1544
1544
|
historical: "staff" | "automatic" | "claim";
|
|
1545
1545
|
} | undefined;
|
|
@@ -1586,12 +1586,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1586
1586
|
actor?: "member" | "staff" | undefined;
|
|
1587
1587
|
} | {
|
|
1588
1588
|
kind: "manual";
|
|
1589
|
-
input: "
|
|
1589
|
+
input: "quiz" | "photo" | "none";
|
|
1590
1590
|
actor?: "member" | "staff" | undefined;
|
|
1591
1591
|
};
|
|
1592
1592
|
availability: {
|
|
1593
1593
|
kind: "available";
|
|
1594
|
-
input: "
|
|
1594
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
1595
1595
|
} | {
|
|
1596
1596
|
kind: "completed";
|
|
1597
1597
|
} | {
|
|
@@ -1640,7 +1640,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1640
1640
|
quest: string;
|
|
1641
1641
|
member: string;
|
|
1642
1642
|
evidence: string | null;
|
|
1643
|
-
status: "
|
|
1643
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1644
1644
|
reason: string | null;
|
|
1645
1645
|
retries: number;
|
|
1646
1646
|
generation: number;
|
|
@@ -1674,22 +1674,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1674
1674
|
})[] | null;
|
|
1675
1675
|
createdAt: number;
|
|
1676
1676
|
input?: {
|
|
1677
|
-
kind: "text";
|
|
1678
|
-
value: string;
|
|
1679
|
-
} | {
|
|
1680
|
-
kind: "url";
|
|
1681
|
-
value: string;
|
|
1682
|
-
} | {
|
|
1683
1677
|
kind: "quiz";
|
|
1684
1678
|
answers: {
|
|
1685
1679
|
[k: string]: string;
|
|
1686
1680
|
};
|
|
1687
1681
|
release?: string | undefined;
|
|
1682
|
+
} | {
|
|
1683
|
+
kind: "text";
|
|
1684
|
+
value: string;
|
|
1685
|
+
} | {
|
|
1686
|
+
kind: "url";
|
|
1687
|
+
value: string;
|
|
1688
1688
|
} | undefined;
|
|
1689
1689
|
} | null;
|
|
1690
1690
|
release: string;
|
|
1691
|
-
interaction: "staff" | "
|
|
1692
|
-
lifecycle: "
|
|
1691
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
1692
|
+
lifecycle: "active" | "paused" | "archived";
|
|
1693
1693
|
rewards: ({
|
|
1694
1694
|
kind: "points";
|
|
1695
1695
|
label: string;
|
|
@@ -1814,7 +1814,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1814
1814
|
auth: {
|
|
1815
1815
|
providers: () => Promise<{
|
|
1816
1816
|
providers: {
|
|
1817
|
-
provider: "
|
|
1817
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
1818
1818
|
configured: boolean;
|
|
1819
1819
|
}[];
|
|
1820
1820
|
email: boolean;
|
|
@@ -1890,7 +1890,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1890
1890
|
}>;
|
|
1891
1891
|
};
|
|
1892
1892
|
accounts: () => Promise<{
|
|
1893
|
-
provider: "
|
|
1893
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
1894
1894
|
configured: boolean;
|
|
1895
1895
|
status: "disconnected" | "connected" | "reconnect";
|
|
1896
1896
|
subject: string | null;
|
|
@@ -1991,7 +1991,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1991
1991
|
quest: string;
|
|
1992
1992
|
member: string;
|
|
1993
1993
|
evidence: string | null;
|
|
1994
|
-
status: "
|
|
1994
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1995
1995
|
reason: string | null;
|
|
1996
1996
|
retries: number;
|
|
1997
1997
|
generation: number;
|
|
@@ -2025,17 +2025,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2025
2025
|
})[] | null;
|
|
2026
2026
|
createdAt: number;
|
|
2027
2027
|
input?: {
|
|
2028
|
-
kind: "text";
|
|
2029
|
-
value: string;
|
|
2030
|
-
} | {
|
|
2031
|
-
kind: "url";
|
|
2032
|
-
value: string;
|
|
2033
|
-
} | {
|
|
2034
2028
|
kind: "quiz";
|
|
2035
2029
|
answers: {
|
|
2036
2030
|
[k: string]: string;
|
|
2037
2031
|
};
|
|
2038
2032
|
release?: string | undefined;
|
|
2033
|
+
} | {
|
|
2034
|
+
kind: "text";
|
|
2035
|
+
value: string;
|
|
2036
|
+
} | {
|
|
2037
|
+
kind: "url";
|
|
2038
|
+
value: string;
|
|
2039
2039
|
} | undefined;
|
|
2040
2040
|
}>;
|
|
2041
2041
|
progress: () => Promise<{
|
|
@@ -2063,7 +2063,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2063
2063
|
} | undefined;
|
|
2064
2064
|
} | undefined;
|
|
2065
2065
|
};
|
|
2066
|
-
connections: ("
|
|
2066
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
2067
2067
|
trigger: {
|
|
2068
2068
|
kind: "automatic";
|
|
2069
2069
|
observation?: {
|
|
@@ -2076,7 +2076,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2076
2076
|
start: number;
|
|
2077
2077
|
end?: number | undefined;
|
|
2078
2078
|
};
|
|
2079
|
-
enrollment: "
|
|
2079
|
+
enrollment: "required" | "none";
|
|
2080
2080
|
posts: "after-enrollment" | "since-start";
|
|
2081
2081
|
historical: "staff" | "automatic" | "claim";
|
|
2082
2082
|
} | undefined;
|
|
@@ -2123,12 +2123,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2123
2123
|
actor?: "member" | "staff" | undefined;
|
|
2124
2124
|
} | {
|
|
2125
2125
|
kind: "manual";
|
|
2126
|
-
input: "
|
|
2126
|
+
input: "quiz" | "photo" | "none";
|
|
2127
2127
|
actor?: "member" | "staff" | undefined;
|
|
2128
2128
|
};
|
|
2129
2129
|
availability: {
|
|
2130
2130
|
kind: "available";
|
|
2131
|
-
input: "
|
|
2131
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
2132
2132
|
} | {
|
|
2133
2133
|
kind: "completed";
|
|
2134
2134
|
} | {
|
|
@@ -2177,7 +2177,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2177
2177
|
quest: string;
|
|
2178
2178
|
member: string;
|
|
2179
2179
|
evidence: string | null;
|
|
2180
|
-
status: "
|
|
2180
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
2181
2181
|
reason: string | null;
|
|
2182
2182
|
retries: number;
|
|
2183
2183
|
generation: number;
|
|
@@ -2211,17 +2211,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2211
2211
|
})[] | null;
|
|
2212
2212
|
createdAt: number;
|
|
2213
2213
|
input?: {
|
|
2214
|
-
kind: "text";
|
|
2215
|
-
value: string;
|
|
2216
|
-
} | {
|
|
2217
|
-
kind: "url";
|
|
2218
|
-
value: string;
|
|
2219
|
-
} | {
|
|
2220
2214
|
kind: "quiz";
|
|
2221
2215
|
answers: {
|
|
2222
2216
|
[k: string]: string;
|
|
2223
2217
|
};
|
|
2224
2218
|
release?: string | undefined;
|
|
2219
|
+
} | {
|
|
2220
|
+
kind: "text";
|
|
2221
|
+
value: string;
|
|
2222
|
+
} | {
|
|
2223
|
+
kind: "url";
|
|
2224
|
+
value: string;
|
|
2225
2225
|
} | undefined;
|
|
2226
2226
|
} | null;
|
|
2227
2227
|
key?: string | undefined;
|
|
@@ -2344,7 +2344,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2344
2344
|
provider: "discord";
|
|
2345
2345
|
action: "grant-role";
|
|
2346
2346
|
roleId: string;
|
|
2347
|
-
status: "
|
|
2347
|
+
status: "failed" | "pending" | "delivered";
|
|
2348
2348
|
attempts: number;
|
|
2349
2349
|
nextAt: number;
|
|
2350
2350
|
lastError: string | null;
|
|
@@ -2360,7 +2360,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2360
2360
|
quest: string;
|
|
2361
2361
|
member: string;
|
|
2362
2362
|
evidence: string | null;
|
|
2363
|
-
status: "
|
|
2363
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
2364
2364
|
reason: string | null;
|
|
2365
2365
|
retries: number;
|
|
2366
2366
|
generation: number;
|
|
@@ -2394,17 +2394,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2394
2394
|
})[] | null;
|
|
2395
2395
|
createdAt: number;
|
|
2396
2396
|
input?: {
|
|
2397
|
-
kind: "text";
|
|
2398
|
-
value: string;
|
|
2399
|
-
} | {
|
|
2400
|
-
kind: "url";
|
|
2401
|
-
value: string;
|
|
2402
|
-
} | {
|
|
2403
2397
|
kind: "quiz";
|
|
2404
2398
|
answers: {
|
|
2405
2399
|
[k: string]: string;
|
|
2406
2400
|
};
|
|
2407
2401
|
release?: string | undefined;
|
|
2402
|
+
} | {
|
|
2403
|
+
kind: "text";
|
|
2404
|
+
value: string;
|
|
2405
|
+
} | {
|
|
2406
|
+
kind: "url";
|
|
2407
|
+
value: string;
|
|
2408
2408
|
} | undefined;
|
|
2409
2409
|
}>;
|
|
2410
2410
|
upload: (file: File) => Promise<{
|
|
@@ -2463,12 +2463,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2463
2463
|
kind: "resource";
|
|
2464
2464
|
default: string;
|
|
2465
2465
|
source: {
|
|
2466
|
+
provider: "domino";
|
|
2467
|
+
resource: "point-ledger";
|
|
2468
|
+
} | {
|
|
2466
2469
|
provider: "discord";
|
|
2467
2470
|
resource: "channel";
|
|
2468
2471
|
types: ("text" | "announcement")[];
|
|
2469
|
-
} | {
|
|
2470
|
-
provider: "domino";
|
|
2471
|
-
resource: "point-ledger";
|
|
2472
2472
|
} | {
|
|
2473
2473
|
provider: "discord";
|
|
2474
2474
|
resource: "role";
|
|
@@ -2565,7 +2565,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2565
2565
|
start: number;
|
|
2566
2566
|
end?: number | undefined;
|
|
2567
2567
|
};
|
|
2568
|
-
enrollment: "
|
|
2568
|
+
enrollment: "required" | "none";
|
|
2569
2569
|
posts: "after-enrollment" | "since-start";
|
|
2570
2570
|
historical: "staff" | "automatic" | "claim";
|
|
2571
2571
|
} | undefined;
|
|
@@ -2612,7 +2612,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2612
2612
|
actor?: "member" | "staff" | undefined;
|
|
2613
2613
|
} | {
|
|
2614
2614
|
kind: "manual";
|
|
2615
|
-
input: "
|
|
2615
|
+
input: "quiz" | "photo" | "none";
|
|
2616
2616
|
actor?: "member" | "staff" | undefined;
|
|
2617
2617
|
};
|
|
2618
2618
|
requires: {
|
|
@@ -2631,7 +2631,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2631
2631
|
budgets: {
|
|
2632
2632
|
id: string;
|
|
2633
2633
|
scope: "project" | "member";
|
|
2634
|
-
period: "day" | "
|
|
2634
|
+
period: "day" | "week" | "lifetime";
|
|
2635
2635
|
limit: number;
|
|
2636
2636
|
cost: number | {
|
|
2637
2637
|
balance: string;
|
|
@@ -2687,12 +2687,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2687
2687
|
kind: "resource";
|
|
2688
2688
|
default: string;
|
|
2689
2689
|
source: {
|
|
2690
|
+
provider: "domino";
|
|
2691
|
+
resource: "point-ledger";
|
|
2692
|
+
} | {
|
|
2690
2693
|
provider: "discord";
|
|
2691
2694
|
resource: "channel";
|
|
2692
2695
|
types: ("text" | "announcement")[];
|
|
2693
|
-
} | {
|
|
2694
|
-
provider: "domino";
|
|
2695
|
-
resource: "point-ledger";
|
|
2696
2696
|
} | {
|
|
2697
2697
|
provider: "discord";
|
|
2698
2698
|
resource: "role";
|
|
@@ -2789,7 +2789,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2789
2789
|
start: number;
|
|
2790
2790
|
end?: number | undefined;
|
|
2791
2791
|
};
|
|
2792
|
-
enrollment: "
|
|
2792
|
+
enrollment: "required" | "none";
|
|
2793
2793
|
posts: "after-enrollment" | "since-start";
|
|
2794
2794
|
historical: "staff" | "automatic" | "claim";
|
|
2795
2795
|
} | undefined;
|
|
@@ -2836,7 +2836,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2836
2836
|
actor?: "member" | "staff" | undefined;
|
|
2837
2837
|
} | {
|
|
2838
2838
|
kind: "manual";
|
|
2839
|
-
input: "
|
|
2839
|
+
input: "quiz" | "photo" | "none";
|
|
2840
2840
|
actor?: "member" | "staff" | undefined;
|
|
2841
2841
|
};
|
|
2842
2842
|
requires: {
|
|
@@ -2855,7 +2855,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2855
2855
|
budgets: {
|
|
2856
2856
|
id: string;
|
|
2857
2857
|
scope: "project" | "member";
|
|
2858
|
-
period: "day" | "
|
|
2858
|
+
period: "day" | "week" | "lifetime";
|
|
2859
2859
|
limit: number;
|
|
2860
2860
|
cost: number | {
|
|
2861
2861
|
balance: string;
|
|
@@ -2910,12 +2910,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2910
2910
|
kind: "resource";
|
|
2911
2911
|
default: string;
|
|
2912
2912
|
source: {
|
|
2913
|
+
provider: "domino";
|
|
2914
|
+
resource: "point-ledger";
|
|
2915
|
+
} | {
|
|
2913
2916
|
provider: "discord";
|
|
2914
2917
|
resource: "channel";
|
|
2915
2918
|
types: ("text" | "announcement")[];
|
|
2916
|
-
} | {
|
|
2917
|
-
provider: "domino";
|
|
2918
|
-
resource: "point-ledger";
|
|
2919
2919
|
} | {
|
|
2920
2920
|
provider: "discord";
|
|
2921
2921
|
resource: "role";
|
|
@@ -3012,7 +3012,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3012
3012
|
start: number;
|
|
3013
3013
|
end?: number | undefined;
|
|
3014
3014
|
};
|
|
3015
|
-
enrollment: "
|
|
3015
|
+
enrollment: "required" | "none";
|
|
3016
3016
|
posts: "after-enrollment" | "since-start";
|
|
3017
3017
|
historical: "staff" | "automatic" | "claim";
|
|
3018
3018
|
} | undefined;
|
|
@@ -3059,7 +3059,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3059
3059
|
actor?: "member" | "staff" | undefined;
|
|
3060
3060
|
} | {
|
|
3061
3061
|
kind: "manual";
|
|
3062
|
-
input: "
|
|
3062
|
+
input: "quiz" | "photo" | "none";
|
|
3063
3063
|
actor?: "member" | "staff" | undefined;
|
|
3064
3064
|
};
|
|
3065
3065
|
requires: {
|
|
@@ -3078,7 +3078,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3078
3078
|
budgets: {
|
|
3079
3079
|
id: string;
|
|
3080
3080
|
scope: "project" | "member";
|
|
3081
|
-
period: "day" | "
|
|
3081
|
+
period: "day" | "week" | "lifetime";
|
|
3082
3082
|
limit: number;
|
|
3083
3083
|
cost: number | {
|
|
3084
3084
|
balance: string;
|
|
@@ -3089,7 +3089,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3089
3089
|
id: string;
|
|
3090
3090
|
createdAt: number;
|
|
3091
3091
|
legacy: boolean;
|
|
3092
|
-
lifecycle: "
|
|
3092
|
+
lifecycle: "active" | "paused" | "archived";
|
|
3093
3093
|
performance?: {
|
|
3094
3094
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3095
3095
|
maxAgeMs: number;
|
|
@@ -3212,7 +3212,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3212
3212
|
quest: string;
|
|
3213
3213
|
member: string;
|
|
3214
3214
|
evidence: string | null;
|
|
3215
|
-
status: "
|
|
3215
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
3216
3216
|
reason: string | null;
|
|
3217
3217
|
retries: number;
|
|
3218
3218
|
generation: number;
|
|
@@ -3246,17 +3246,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3246
3246
|
})[] | null;
|
|
3247
3247
|
createdAt: number;
|
|
3248
3248
|
input?: {
|
|
3249
|
-
kind: "text";
|
|
3250
|
-
value: string;
|
|
3251
|
-
} | {
|
|
3252
|
-
kind: "url";
|
|
3253
|
-
value: string;
|
|
3254
|
-
} | {
|
|
3255
3249
|
kind: "quiz";
|
|
3256
3250
|
answers: {
|
|
3257
3251
|
[k: string]: string;
|
|
3258
3252
|
};
|
|
3259
3253
|
release?: string | undefined;
|
|
3254
|
+
} | {
|
|
3255
|
+
kind: "text";
|
|
3256
|
+
value: string;
|
|
3257
|
+
} | {
|
|
3258
|
+
kind: "url";
|
|
3259
|
+
value: string;
|
|
3260
3260
|
} | undefined;
|
|
3261
3261
|
}[];
|
|
3262
3262
|
balances: {
|
|
@@ -3314,12 +3314,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3314
3314
|
kind: "resource";
|
|
3315
3315
|
default: string;
|
|
3316
3316
|
source: {
|
|
3317
|
+
provider: "domino";
|
|
3318
|
+
resource: "point-ledger";
|
|
3319
|
+
} | {
|
|
3317
3320
|
provider: "discord";
|
|
3318
3321
|
resource: "channel";
|
|
3319
3322
|
types: ("text" | "announcement")[];
|
|
3320
|
-
} | {
|
|
3321
|
-
provider: "domino";
|
|
3322
|
-
resource: "point-ledger";
|
|
3323
3323
|
} | {
|
|
3324
3324
|
provider: "discord";
|
|
3325
3325
|
resource: "role";
|
|
@@ -3416,7 +3416,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3416
3416
|
start: number;
|
|
3417
3417
|
end?: number | undefined;
|
|
3418
3418
|
};
|
|
3419
|
-
enrollment: "
|
|
3419
|
+
enrollment: "required" | "none";
|
|
3420
3420
|
posts: "after-enrollment" | "since-start";
|
|
3421
3421
|
historical: "staff" | "automatic" | "claim";
|
|
3422
3422
|
} | undefined;
|
|
@@ -3463,7 +3463,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3463
3463
|
actor?: "member" | "staff" | undefined;
|
|
3464
3464
|
} | {
|
|
3465
3465
|
kind: "manual";
|
|
3466
|
-
input: "
|
|
3466
|
+
input: "quiz" | "photo" | "none";
|
|
3467
3467
|
actor?: "member" | "staff" | undefined;
|
|
3468
3468
|
};
|
|
3469
3469
|
requires: {
|
|
@@ -3482,7 +3482,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3482
3482
|
budgets: {
|
|
3483
3483
|
id: string;
|
|
3484
3484
|
scope: "project" | "member";
|
|
3485
|
-
period: "day" | "
|
|
3485
|
+
period: "day" | "week" | "lifetime";
|
|
3486
3486
|
limit: number;
|
|
3487
3487
|
cost: number | {
|
|
3488
3488
|
balance: string;
|
|
@@ -3493,7 +3493,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3493
3493
|
id: string;
|
|
3494
3494
|
createdAt: number;
|
|
3495
3495
|
legacy: boolean;
|
|
3496
|
-
lifecycle: "
|
|
3496
|
+
lifecycle: "active" | "paused" | "archived";
|
|
3497
3497
|
performance?: {
|
|
3498
3498
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3499
3499
|
maxAgeMs: number;
|
|
@@ -3566,12 +3566,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3566
3566
|
kind: "resource";
|
|
3567
3567
|
default: string;
|
|
3568
3568
|
source: {
|
|
3569
|
+
provider: "domino";
|
|
3570
|
+
resource: "point-ledger";
|
|
3571
|
+
} | {
|
|
3569
3572
|
provider: "discord";
|
|
3570
3573
|
resource: "channel";
|
|
3571
3574
|
types: ("text" | "announcement")[];
|
|
3572
|
-
} | {
|
|
3573
|
-
provider: "domino";
|
|
3574
|
-
resource: "point-ledger";
|
|
3575
3575
|
} | {
|
|
3576
3576
|
provider: "discord";
|
|
3577
3577
|
resource: "role";
|
|
@@ -3668,7 +3668,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3668
3668
|
start: number;
|
|
3669
3669
|
end?: number | undefined;
|
|
3670
3670
|
};
|
|
3671
|
-
enrollment: "
|
|
3671
|
+
enrollment: "required" | "none";
|
|
3672
3672
|
posts: "after-enrollment" | "since-start";
|
|
3673
3673
|
historical: "staff" | "automatic" | "claim";
|
|
3674
3674
|
} | undefined;
|
|
@@ -3715,7 +3715,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3715
3715
|
actor?: "member" | "staff" | undefined;
|
|
3716
3716
|
} | {
|
|
3717
3717
|
kind: "manual";
|
|
3718
|
-
input: "
|
|
3718
|
+
input: "quiz" | "photo" | "none";
|
|
3719
3719
|
actor?: "member" | "staff" | undefined;
|
|
3720
3720
|
};
|
|
3721
3721
|
requires: {
|
|
@@ -3734,7 +3734,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3734
3734
|
budgets: {
|
|
3735
3735
|
id: string;
|
|
3736
3736
|
scope: "project" | "member";
|
|
3737
|
-
period: "day" | "
|
|
3737
|
+
period: "day" | "week" | "lifetime";
|
|
3738
3738
|
limit: number;
|
|
3739
3739
|
cost: number | {
|
|
3740
3740
|
balance: string;
|
|
@@ -3745,7 +3745,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3745
3745
|
id: string;
|
|
3746
3746
|
createdAt: number;
|
|
3747
3747
|
legacy: boolean;
|
|
3748
|
-
lifecycle: "
|
|
3748
|
+
lifecycle: "active" | "paused" | "archived";
|
|
3749
3749
|
performance?: {
|
|
3750
3750
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3751
3751
|
maxAgeMs: number;
|
|
@@ -3804,7 +3804,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3804
3804
|
} | undefined;
|
|
3805
3805
|
} | undefined;
|
|
3806
3806
|
};
|
|
3807
|
-
connections: ("
|
|
3807
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
3808
3808
|
trigger: {
|
|
3809
3809
|
kind: "automatic";
|
|
3810
3810
|
observation?: {
|
|
@@ -3817,7 +3817,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3817
3817
|
start: number;
|
|
3818
3818
|
end?: number | undefined;
|
|
3819
3819
|
};
|
|
3820
|
-
enrollment: "
|
|
3820
|
+
enrollment: "required" | "none";
|
|
3821
3821
|
posts: "after-enrollment" | "since-start";
|
|
3822
3822
|
historical: "staff" | "automatic" | "claim";
|
|
3823
3823
|
} | undefined;
|
|
@@ -3864,12 +3864,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3864
3864
|
actor?: "member" | "staff" | undefined;
|
|
3865
3865
|
} | {
|
|
3866
3866
|
kind: "manual";
|
|
3867
|
-
input: "
|
|
3867
|
+
input: "quiz" | "photo" | "none";
|
|
3868
3868
|
actor?: "member" | "staff" | undefined;
|
|
3869
3869
|
};
|
|
3870
3870
|
availability: {
|
|
3871
3871
|
kind: "available";
|
|
3872
|
-
input: "
|
|
3872
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
3873
3873
|
} | {
|
|
3874
3874
|
kind: "completed";
|
|
3875
3875
|
} | {
|
|
@@ -3918,7 +3918,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3918
3918
|
quest: string;
|
|
3919
3919
|
member: string;
|
|
3920
3920
|
evidence: string | null;
|
|
3921
|
-
status: "
|
|
3921
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
3922
3922
|
reason: string | null;
|
|
3923
3923
|
retries: number;
|
|
3924
3924
|
generation: number;
|
|
@@ -3952,17 +3952,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3952
3952
|
})[] | null;
|
|
3953
3953
|
createdAt: number;
|
|
3954
3954
|
input?: {
|
|
3955
|
-
kind: "text";
|
|
3956
|
-
value: string;
|
|
3957
|
-
} | {
|
|
3958
|
-
kind: "url";
|
|
3959
|
-
value: string;
|
|
3960
|
-
} | {
|
|
3961
3955
|
kind: "quiz";
|
|
3962
3956
|
answers: {
|
|
3963
3957
|
[k: string]: string;
|
|
3964
3958
|
};
|
|
3965
3959
|
release?: string | undefined;
|
|
3960
|
+
} | {
|
|
3961
|
+
kind: "text";
|
|
3962
|
+
value: string;
|
|
3963
|
+
} | {
|
|
3964
|
+
kind: "url";
|
|
3965
|
+
value: string;
|
|
3966
3966
|
} | undefined;
|
|
3967
3967
|
} | null;
|
|
3968
3968
|
key?: string | undefined;
|
|
@@ -4344,14 +4344,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4344
4344
|
content: {
|
|
4345
4345
|
performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
|
|
4346
4346
|
current: {
|
|
4347
|
-
state: "
|
|
4347
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "content-pending" | "content-unqualified" | "waiting" | "unqualified" | "superseded";
|
|
4348
4348
|
reason: string | null;
|
|
4349
4349
|
contentAttempt: string;
|
|
4350
4350
|
attempt: string | null;
|
|
4351
4351
|
reward: {
|
|
4352
4352
|
attempt: string | null;
|
|
4353
4353
|
completion: string | null;
|
|
4354
|
-
state: "
|
|
4354
|
+
state: "awarded" | "excluded" | "unresolved";
|
|
4355
4355
|
};
|
|
4356
4356
|
};
|
|
4357
4357
|
items: {
|
|
@@ -4360,7 +4360,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4360
4360
|
observation: string;
|
|
4361
4361
|
observedAt: number;
|
|
4362
4362
|
metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
4363
|
-
state: "
|
|
4363
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded";
|
|
4364
4364
|
reason: string | null;
|
|
4365
4365
|
}[];
|
|
4366
4366
|
next: number | null;
|
|
@@ -4375,12 +4375,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4375
4375
|
revision: string;
|
|
4376
4376
|
observation: string;
|
|
4377
4377
|
current: boolean;
|
|
4378
|
-
state: "
|
|
4378
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded" | "stale" | "blocked" | "unavailable";
|
|
4379
4379
|
reason: string | null;
|
|
4380
4380
|
reward: {
|
|
4381
4381
|
attempt: string | null;
|
|
4382
4382
|
completion: string | null;
|
|
4383
|
-
state: "
|
|
4383
|
+
state: "awarded" | "excluded" | "unresolved";
|
|
4384
4384
|
};
|
|
4385
4385
|
}[];
|
|
4386
4386
|
next: number | null;
|
|
@@ -4390,7 +4390,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4390
4390
|
quest: string;
|
|
4391
4391
|
content: string;
|
|
4392
4392
|
release: string;
|
|
4393
|
-
state: "
|
|
4393
|
+
state: "pending" | "excluded" | "admitted";
|
|
4394
4394
|
reason: string | null;
|
|
4395
4395
|
attempt: string | null;
|
|
4396
4396
|
}[];
|
|
@@ -4405,7 +4405,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4405
4405
|
quest: string;
|
|
4406
4406
|
content: string;
|
|
4407
4407
|
release: string;
|
|
4408
|
-
state: "
|
|
4408
|
+
state: "pending" | "excluded" | "admitted";
|
|
4409
4409
|
reason: string | null;
|
|
4410
4410
|
attempt: string | null;
|
|
4411
4411
|
}>;
|
|
@@ -4416,7 +4416,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4416
4416
|
quest: string;
|
|
4417
4417
|
member: string;
|
|
4418
4418
|
evidence: string | null;
|
|
4419
|
-
status: "
|
|
4419
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
4420
4420
|
reason: string | null;
|
|
4421
4421
|
retries: number;
|
|
4422
4422
|
generation: number;
|
|
@@ -4450,17 +4450,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4450
4450
|
})[] | null;
|
|
4451
4451
|
createdAt: number;
|
|
4452
4452
|
input?: {
|
|
4453
|
-
kind: "text";
|
|
4454
|
-
value: string;
|
|
4455
|
-
} | {
|
|
4456
|
-
kind: "url";
|
|
4457
|
-
value: string;
|
|
4458
|
-
} | {
|
|
4459
4453
|
kind: "quiz";
|
|
4460
4454
|
answers: {
|
|
4461
4455
|
[k: string]: string;
|
|
4462
4456
|
};
|
|
4463
4457
|
release?: string | undefined;
|
|
4458
|
+
} | {
|
|
4459
|
+
kind: "text";
|
|
4460
|
+
value: string;
|
|
4461
|
+
} | {
|
|
4462
|
+
kind: "url";
|
|
4463
|
+
value: string;
|
|
4464
4464
|
} | undefined;
|
|
4465
4465
|
}>;
|
|
4466
4466
|
retry: (id: string) => Promise<{
|
|
@@ -4469,7 +4469,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4469
4469
|
quest: string;
|
|
4470
4470
|
member: string;
|
|
4471
4471
|
evidence: string | null;
|
|
4472
|
-
status: "
|
|
4472
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
4473
4473
|
reason: string | null;
|
|
4474
4474
|
retries: number;
|
|
4475
4475
|
generation: number;
|
|
@@ -4503,17 +4503,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4503
4503
|
})[] | null;
|
|
4504
4504
|
createdAt: number;
|
|
4505
4505
|
input?: {
|
|
4506
|
-
kind: "text";
|
|
4507
|
-
value: string;
|
|
4508
|
-
} | {
|
|
4509
|
-
kind: "url";
|
|
4510
|
-
value: string;
|
|
4511
|
-
} | {
|
|
4512
4506
|
kind: "quiz";
|
|
4513
4507
|
answers: {
|
|
4514
4508
|
[k: string]: string;
|
|
4515
4509
|
};
|
|
4516
4510
|
release?: string | undefined;
|
|
4511
|
+
} | {
|
|
4512
|
+
kind: "text";
|
|
4513
|
+
value: string;
|
|
4514
|
+
} | {
|
|
4515
|
+
kind: "url";
|
|
4516
|
+
value: string;
|
|
4517
4517
|
} | undefined;
|
|
4518
4518
|
}>;
|
|
4519
4519
|
decide: (id: string, input: {
|
|
@@ -4527,7 +4527,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4527
4527
|
quest: string;
|
|
4528
4528
|
member: string;
|
|
4529
4529
|
evidence: string | null;
|
|
4530
|
-
status: "
|
|
4530
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
4531
4531
|
reason: string | null;
|
|
4532
4532
|
retries: number;
|
|
4533
4533
|
generation: number;
|
|
@@ -4561,17 +4561,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4561
4561
|
})[] | null;
|
|
4562
4562
|
createdAt: number;
|
|
4563
4563
|
input?: {
|
|
4564
|
-
kind: "text";
|
|
4565
|
-
value: string;
|
|
4566
|
-
} | {
|
|
4567
|
-
kind: "url";
|
|
4568
|
-
value: string;
|
|
4569
|
-
} | {
|
|
4570
4564
|
kind: "quiz";
|
|
4571
4565
|
answers: {
|
|
4572
4566
|
[k: string]: string;
|
|
4573
4567
|
};
|
|
4574
4568
|
release?: string | undefined;
|
|
4569
|
+
} | {
|
|
4570
|
+
kind: "text";
|
|
4571
|
+
value: string;
|
|
4572
|
+
} | {
|
|
4573
|
+
kind: "url";
|
|
4574
|
+
value: string;
|
|
4575
4575
|
} | undefined;
|
|
4576
4576
|
}>;
|
|
4577
4577
|
};
|