@domino-sdk/relay 0.29.0 → 0.30.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/authoring.d.ts +2 -2
- package/dist/authoring.js +5 -2
- package/dist/browser.d.ts +186 -186
- package/dist/browser.js +5 -5
- package/dist/{chunk-5LLU7UUV.js → chunk-CB7RKKDX.js} +165 -739
- package/dist/{chunk-LAKQCIHX.js → chunk-CWIJDQDT.js} +165 -30
- package/dist/{chunk-YKS6P4IP.js → chunk-HINZLW46.js} +1 -1
- package/dist/chunk-TYYGYDYX.js +42 -0
- package/dist/{chunk-MVCKCDNR.js → chunk-UMKGCDBX.js} +2 -2
- package/dist/index.d.ts +396 -396
- package/dist/index.js +36 -36
- package/dist/portal-proxy.js +5 -5
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +5 -5
- package/dist/{submission-input-C0cOmO4Q.d.ts → submission-input-B6f27BHm.d.ts} +16 -1206
- package/package.json +1 -1
- package/dist/chunk-MRKFRCCI.js +0 -168
package/dist/browser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a7 as CosmosChain, a8 as CosmosNetwork, Q as WalletSigner, a4 as WalletSignInNetwork, Y as AuthProvider, K as referralAcceptSchema, M as LeaderboardQuery, N as WalletAddressInput, P as walletSignatureSchema, L as LinkedWallet, R as walletChallengeInputSchema, V as walletProofSchema, Z as WalletSignature, _ as engagementPageQuerySchema, $ as contentQualificationQuerySchema, a0 as contentAdmissionQuerySchema, a1 as contentEnrollmentInputSchema, a2 as contentReleaseInputSchema } from './submission-input-B6f27BHm.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;
|
|
@@ -780,12 +780,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
780
780
|
actor?: "member" | "staff" | undefined;
|
|
781
781
|
} | {
|
|
782
782
|
kind: "manual";
|
|
783
|
-
input: "
|
|
783
|
+
input: "quiz" | "photo" | "none";
|
|
784
784
|
actor?: "member" | "staff" | undefined;
|
|
785
785
|
};
|
|
786
786
|
availability: {
|
|
787
787
|
kind: "available";
|
|
788
|
-
input: "
|
|
788
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
789
789
|
} | {
|
|
790
790
|
kind: "completed";
|
|
791
791
|
} | {
|
|
@@ -834,7 +834,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
834
834
|
quest: string;
|
|
835
835
|
member: string;
|
|
836
836
|
evidence: string | null;
|
|
837
|
-
status: "
|
|
837
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
838
838
|
reason: string | null;
|
|
839
839
|
retries: number;
|
|
840
840
|
generation: number;
|
|
@@ -868,22 +868,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
868
868
|
})[] | null;
|
|
869
869
|
createdAt: number;
|
|
870
870
|
input?: {
|
|
871
|
-
kind: "text";
|
|
872
|
-
value: string;
|
|
873
|
-
} | {
|
|
874
|
-
kind: "url";
|
|
875
|
-
value: string;
|
|
876
|
-
} | {
|
|
877
871
|
kind: "quiz";
|
|
878
872
|
answers: {
|
|
879
873
|
[k: string]: string;
|
|
880
874
|
};
|
|
881
875
|
release?: string | undefined;
|
|
876
|
+
} | {
|
|
877
|
+
kind: "text";
|
|
878
|
+
value: string;
|
|
879
|
+
} | {
|
|
880
|
+
kind: "url";
|
|
881
|
+
value: string;
|
|
882
882
|
} | undefined;
|
|
883
883
|
} | null;
|
|
884
884
|
release: string;
|
|
885
|
-
interaction: "staff" | "
|
|
886
|
-
lifecycle: "
|
|
885
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
886
|
+
lifecycle: "active" | "paused" | "archived";
|
|
887
887
|
rewards: ({
|
|
888
888
|
kind: "points";
|
|
889
889
|
label: string;
|
|
@@ -944,7 +944,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
944
944
|
quest: string;
|
|
945
945
|
member: string;
|
|
946
946
|
evidence: string | null;
|
|
947
|
-
status: "
|
|
947
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
948
948
|
reason: string | null;
|
|
949
949
|
retries: number;
|
|
950
950
|
generation: number;
|
|
@@ -978,17 +978,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
978
978
|
})[] | null;
|
|
979
979
|
createdAt: number;
|
|
980
980
|
input?: {
|
|
981
|
-
kind: "text";
|
|
982
|
-
value: string;
|
|
983
|
-
} | {
|
|
984
|
-
kind: "url";
|
|
985
|
-
value: string;
|
|
986
|
-
} | {
|
|
987
981
|
kind: "quiz";
|
|
988
982
|
answers: {
|
|
989
983
|
[k: string]: string;
|
|
990
984
|
};
|
|
991
985
|
release?: string | undefined;
|
|
986
|
+
} | {
|
|
987
|
+
kind: "text";
|
|
988
|
+
value: string;
|
|
989
|
+
} | {
|
|
990
|
+
kind: "url";
|
|
991
|
+
value: string;
|
|
992
992
|
} | undefined;
|
|
993
993
|
}>;
|
|
994
994
|
experience: () => Promise<{
|
|
@@ -1016,7 +1016,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1016
1016
|
} | undefined;
|
|
1017
1017
|
} | undefined;
|
|
1018
1018
|
};
|
|
1019
|
-
connections: ("
|
|
1019
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1020
1020
|
trigger: {
|
|
1021
1021
|
kind: "automatic";
|
|
1022
1022
|
observation?: {
|
|
@@ -1029,7 +1029,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1029
1029
|
start: number;
|
|
1030
1030
|
end?: number | undefined;
|
|
1031
1031
|
};
|
|
1032
|
-
enrollment: "
|
|
1032
|
+
enrollment: "required" | "none";
|
|
1033
1033
|
posts: "after-enrollment" | "since-start";
|
|
1034
1034
|
historical: "staff" | "automatic" | "claim";
|
|
1035
1035
|
} | undefined;
|
|
@@ -1057,12 +1057,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1057
1057
|
actor?: "member" | "staff" | undefined;
|
|
1058
1058
|
} | {
|
|
1059
1059
|
kind: "manual";
|
|
1060
|
-
input: "
|
|
1060
|
+
input: "quiz" | "photo" | "none";
|
|
1061
1061
|
actor?: "member" | "staff" | undefined;
|
|
1062
1062
|
};
|
|
1063
1063
|
availability: {
|
|
1064
1064
|
kind: "available";
|
|
1065
|
-
input: "
|
|
1065
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
1066
1066
|
} | {
|
|
1067
1067
|
kind: "completed";
|
|
1068
1068
|
} | {
|
|
@@ -1111,7 +1111,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1111
1111
|
quest: string;
|
|
1112
1112
|
member: string;
|
|
1113
1113
|
evidence: string | null;
|
|
1114
|
-
status: "
|
|
1114
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1115
1115
|
reason: string | null;
|
|
1116
1116
|
retries: number;
|
|
1117
1117
|
generation: number;
|
|
@@ -1145,22 +1145,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1145
1145
|
})[] | null;
|
|
1146
1146
|
createdAt: number;
|
|
1147
1147
|
input?: {
|
|
1148
|
-
kind: "text";
|
|
1149
|
-
value: string;
|
|
1150
|
-
} | {
|
|
1151
|
-
kind: "url";
|
|
1152
|
-
value: string;
|
|
1153
|
-
} | {
|
|
1154
1148
|
kind: "quiz";
|
|
1155
1149
|
answers: {
|
|
1156
1150
|
[k: string]: string;
|
|
1157
1151
|
};
|
|
1158
1152
|
release?: string | undefined;
|
|
1153
|
+
} | {
|
|
1154
|
+
kind: "text";
|
|
1155
|
+
value: string;
|
|
1156
|
+
} | {
|
|
1157
|
+
kind: "url";
|
|
1158
|
+
value: string;
|
|
1159
1159
|
} | undefined;
|
|
1160
1160
|
} | null;
|
|
1161
1161
|
release: string;
|
|
1162
|
-
interaction: "staff" | "
|
|
1163
|
-
lifecycle: "
|
|
1162
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
1163
|
+
lifecycle: "active" | "paused" | "archived";
|
|
1164
1164
|
rewards: ({
|
|
1165
1165
|
kind: "points";
|
|
1166
1166
|
label: string;
|
|
@@ -1241,7 +1241,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1241
1241
|
} | undefined;
|
|
1242
1242
|
} | undefined;
|
|
1243
1243
|
};
|
|
1244
|
-
connections: ("
|
|
1244
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1245
1245
|
trigger: {
|
|
1246
1246
|
kind: "automatic";
|
|
1247
1247
|
observation?: {
|
|
@@ -1254,7 +1254,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1254
1254
|
start: number;
|
|
1255
1255
|
end?: number | undefined;
|
|
1256
1256
|
};
|
|
1257
|
-
enrollment: "
|
|
1257
|
+
enrollment: "required" | "none";
|
|
1258
1258
|
posts: "after-enrollment" | "since-start";
|
|
1259
1259
|
historical: "staff" | "automatic" | "claim";
|
|
1260
1260
|
} | undefined;
|
|
@@ -1282,12 +1282,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1282
1282
|
actor?: "member" | "staff" | undefined;
|
|
1283
1283
|
} | {
|
|
1284
1284
|
kind: "manual";
|
|
1285
|
-
input: "
|
|
1285
|
+
input: "quiz" | "photo" | "none";
|
|
1286
1286
|
actor?: "member" | "staff" | undefined;
|
|
1287
1287
|
};
|
|
1288
1288
|
availability: {
|
|
1289
1289
|
kind: "available";
|
|
1290
|
-
input: "
|
|
1290
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
1291
1291
|
} | {
|
|
1292
1292
|
kind: "completed";
|
|
1293
1293
|
} | {
|
|
@@ -1336,7 +1336,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1336
1336
|
quest: string;
|
|
1337
1337
|
member: string;
|
|
1338
1338
|
evidence: string | null;
|
|
1339
|
-
status: "
|
|
1339
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1340
1340
|
reason: string | null;
|
|
1341
1341
|
retries: number;
|
|
1342
1342
|
generation: number;
|
|
@@ -1370,22 +1370,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1370
1370
|
})[] | null;
|
|
1371
1371
|
createdAt: number;
|
|
1372
1372
|
input?: {
|
|
1373
|
-
kind: "text";
|
|
1374
|
-
value: string;
|
|
1375
|
-
} | {
|
|
1376
|
-
kind: "url";
|
|
1377
|
-
value: string;
|
|
1378
|
-
} | {
|
|
1379
1373
|
kind: "quiz";
|
|
1380
1374
|
answers: {
|
|
1381
1375
|
[k: string]: string;
|
|
1382
1376
|
};
|
|
1383
1377
|
release?: string | undefined;
|
|
1378
|
+
} | {
|
|
1379
|
+
kind: "text";
|
|
1380
|
+
value: string;
|
|
1381
|
+
} | {
|
|
1382
|
+
kind: "url";
|
|
1383
|
+
value: string;
|
|
1384
1384
|
} | undefined;
|
|
1385
1385
|
} | null;
|
|
1386
1386
|
release: string;
|
|
1387
|
-
interaction: "staff" | "
|
|
1388
|
-
lifecycle: "
|
|
1387
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
1388
|
+
lifecycle: "active" | "paused" | "archived";
|
|
1389
1389
|
rewards: ({
|
|
1390
1390
|
kind: "points";
|
|
1391
1391
|
label: string;
|
|
@@ -1469,7 +1469,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1469
1469
|
} | undefined;
|
|
1470
1470
|
} | undefined;
|
|
1471
1471
|
};
|
|
1472
|
-
connections: ("
|
|
1472
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1473
1473
|
trigger: {
|
|
1474
1474
|
kind: "automatic";
|
|
1475
1475
|
observation?: {
|
|
@@ -1482,7 +1482,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1482
1482
|
start: number;
|
|
1483
1483
|
end?: number | undefined;
|
|
1484
1484
|
};
|
|
1485
|
-
enrollment: "
|
|
1485
|
+
enrollment: "required" | "none";
|
|
1486
1486
|
posts: "after-enrollment" | "since-start";
|
|
1487
1487
|
historical: "staff" | "automatic" | "claim";
|
|
1488
1488
|
} | undefined;
|
|
@@ -1510,12 +1510,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1510
1510
|
actor?: "member" | "staff" | undefined;
|
|
1511
1511
|
} | {
|
|
1512
1512
|
kind: "manual";
|
|
1513
|
-
input: "
|
|
1513
|
+
input: "quiz" | "photo" | "none";
|
|
1514
1514
|
actor?: "member" | "staff" | undefined;
|
|
1515
1515
|
};
|
|
1516
1516
|
availability: {
|
|
1517
1517
|
kind: "available";
|
|
1518
|
-
input: "
|
|
1518
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
1519
1519
|
} | {
|
|
1520
1520
|
kind: "completed";
|
|
1521
1521
|
} | {
|
|
@@ -1564,7 +1564,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1564
1564
|
quest: string;
|
|
1565
1565
|
member: string;
|
|
1566
1566
|
evidence: string | null;
|
|
1567
|
-
status: "
|
|
1567
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1568
1568
|
reason: string | null;
|
|
1569
1569
|
retries: number;
|
|
1570
1570
|
generation: number;
|
|
@@ -1598,22 +1598,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1598
1598
|
})[] | null;
|
|
1599
1599
|
createdAt: number;
|
|
1600
1600
|
input?: {
|
|
1601
|
-
kind: "text";
|
|
1602
|
-
value: string;
|
|
1603
|
-
} | {
|
|
1604
|
-
kind: "url";
|
|
1605
|
-
value: string;
|
|
1606
|
-
} | {
|
|
1607
1601
|
kind: "quiz";
|
|
1608
1602
|
answers: {
|
|
1609
1603
|
[k: string]: string;
|
|
1610
1604
|
};
|
|
1611
1605
|
release?: string | undefined;
|
|
1606
|
+
} | {
|
|
1607
|
+
kind: "text";
|
|
1608
|
+
value: string;
|
|
1609
|
+
} | {
|
|
1610
|
+
kind: "url";
|
|
1611
|
+
value: string;
|
|
1612
1612
|
} | undefined;
|
|
1613
1613
|
} | null;
|
|
1614
1614
|
release: string;
|
|
1615
|
-
interaction: "staff" | "
|
|
1616
|
-
lifecycle: "
|
|
1615
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
1616
|
+
lifecycle: "active" | "paused" | "archived";
|
|
1617
1617
|
rewards: ({
|
|
1618
1618
|
kind: "points";
|
|
1619
1619
|
label: string;
|
|
@@ -1738,7 +1738,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1738
1738
|
auth: {
|
|
1739
1739
|
providers: () => Promise<{
|
|
1740
1740
|
providers: {
|
|
1741
|
-
provider: "
|
|
1741
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
1742
1742
|
configured: boolean;
|
|
1743
1743
|
}[];
|
|
1744
1744
|
email: boolean;
|
|
@@ -1814,7 +1814,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1814
1814
|
}>;
|
|
1815
1815
|
};
|
|
1816
1816
|
accounts: () => Promise<{
|
|
1817
|
-
provider: "
|
|
1817
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
1818
1818
|
configured: boolean;
|
|
1819
1819
|
status: "disconnected" | "connected" | "reconnect";
|
|
1820
1820
|
subject: string | null;
|
|
@@ -1915,7 +1915,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1915
1915
|
quest: string;
|
|
1916
1916
|
member: string;
|
|
1917
1917
|
evidence: string | null;
|
|
1918
|
-
status: "
|
|
1918
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1919
1919
|
reason: string | null;
|
|
1920
1920
|
retries: number;
|
|
1921
1921
|
generation: number;
|
|
@@ -1949,17 +1949,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1949
1949
|
})[] | null;
|
|
1950
1950
|
createdAt: number;
|
|
1951
1951
|
input?: {
|
|
1952
|
-
kind: "text";
|
|
1953
|
-
value: string;
|
|
1954
|
-
} | {
|
|
1955
|
-
kind: "url";
|
|
1956
|
-
value: string;
|
|
1957
|
-
} | {
|
|
1958
1952
|
kind: "quiz";
|
|
1959
1953
|
answers: {
|
|
1960
1954
|
[k: string]: string;
|
|
1961
1955
|
};
|
|
1962
1956
|
release?: string | undefined;
|
|
1957
|
+
} | {
|
|
1958
|
+
kind: "text";
|
|
1959
|
+
value: string;
|
|
1960
|
+
} | {
|
|
1961
|
+
kind: "url";
|
|
1962
|
+
value: string;
|
|
1963
1963
|
} | undefined;
|
|
1964
1964
|
}>;
|
|
1965
1965
|
progress: () => Promise<{
|
|
@@ -1987,7 +1987,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1987
1987
|
} | undefined;
|
|
1988
1988
|
} | undefined;
|
|
1989
1989
|
};
|
|
1990
|
-
connections: ("
|
|
1990
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1991
1991
|
trigger: {
|
|
1992
1992
|
kind: "automatic";
|
|
1993
1993
|
observation?: {
|
|
@@ -2000,7 +2000,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2000
2000
|
start: number;
|
|
2001
2001
|
end?: number | undefined;
|
|
2002
2002
|
};
|
|
2003
|
-
enrollment: "
|
|
2003
|
+
enrollment: "required" | "none";
|
|
2004
2004
|
posts: "after-enrollment" | "since-start";
|
|
2005
2005
|
historical: "staff" | "automatic" | "claim";
|
|
2006
2006
|
} | undefined;
|
|
@@ -2028,12 +2028,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2028
2028
|
actor?: "member" | "staff" | undefined;
|
|
2029
2029
|
} | {
|
|
2030
2030
|
kind: "manual";
|
|
2031
|
-
input: "
|
|
2031
|
+
input: "quiz" | "photo" | "none";
|
|
2032
2032
|
actor?: "member" | "staff" | undefined;
|
|
2033
2033
|
};
|
|
2034
2034
|
availability: {
|
|
2035
2035
|
kind: "available";
|
|
2036
|
-
input: "
|
|
2036
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
2037
2037
|
} | {
|
|
2038
2038
|
kind: "completed";
|
|
2039
2039
|
} | {
|
|
@@ -2082,7 +2082,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2082
2082
|
quest: string;
|
|
2083
2083
|
member: string;
|
|
2084
2084
|
evidence: string | null;
|
|
2085
|
-
status: "
|
|
2085
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
2086
2086
|
reason: string | null;
|
|
2087
2087
|
retries: number;
|
|
2088
2088
|
generation: number;
|
|
@@ -2116,17 +2116,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2116
2116
|
})[] | null;
|
|
2117
2117
|
createdAt: number;
|
|
2118
2118
|
input?: {
|
|
2119
|
-
kind: "text";
|
|
2120
|
-
value: string;
|
|
2121
|
-
} | {
|
|
2122
|
-
kind: "url";
|
|
2123
|
-
value: string;
|
|
2124
|
-
} | {
|
|
2125
2119
|
kind: "quiz";
|
|
2126
2120
|
answers: {
|
|
2127
2121
|
[k: string]: string;
|
|
2128
2122
|
};
|
|
2129
2123
|
release?: string | undefined;
|
|
2124
|
+
} | {
|
|
2125
|
+
kind: "text";
|
|
2126
|
+
value: string;
|
|
2127
|
+
} | {
|
|
2128
|
+
kind: "url";
|
|
2129
|
+
value: string;
|
|
2130
2130
|
} | undefined;
|
|
2131
2131
|
} | null;
|
|
2132
2132
|
key?: string | undefined;
|
|
@@ -2249,7 +2249,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2249
2249
|
provider: "discord";
|
|
2250
2250
|
action: "grant-role";
|
|
2251
2251
|
roleId: string;
|
|
2252
|
-
status: "
|
|
2252
|
+
status: "failed" | "pending" | "delivered";
|
|
2253
2253
|
attempts: number;
|
|
2254
2254
|
nextAt: number;
|
|
2255
2255
|
lastError: string | null;
|
|
@@ -2265,7 +2265,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2265
2265
|
quest: string;
|
|
2266
2266
|
member: string;
|
|
2267
2267
|
evidence: string | null;
|
|
2268
|
-
status: "
|
|
2268
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
2269
2269
|
reason: string | null;
|
|
2270
2270
|
retries: number;
|
|
2271
2271
|
generation: number;
|
|
@@ -2299,17 +2299,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2299
2299
|
})[] | null;
|
|
2300
2300
|
createdAt: number;
|
|
2301
2301
|
input?: {
|
|
2302
|
-
kind: "text";
|
|
2303
|
-
value: string;
|
|
2304
|
-
} | {
|
|
2305
|
-
kind: "url";
|
|
2306
|
-
value: string;
|
|
2307
|
-
} | {
|
|
2308
2302
|
kind: "quiz";
|
|
2309
2303
|
answers: {
|
|
2310
2304
|
[k: string]: string;
|
|
2311
2305
|
};
|
|
2312
2306
|
release?: string | undefined;
|
|
2307
|
+
} | {
|
|
2308
|
+
kind: "text";
|
|
2309
|
+
value: string;
|
|
2310
|
+
} | {
|
|
2311
|
+
kind: "url";
|
|
2312
|
+
value: string;
|
|
2313
2313
|
} | undefined;
|
|
2314
2314
|
}>;
|
|
2315
2315
|
upload: (file: File) => Promise<{
|
|
@@ -2368,12 +2368,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2368
2368
|
kind: "resource";
|
|
2369
2369
|
default: string;
|
|
2370
2370
|
source: {
|
|
2371
|
+
provider: "domino";
|
|
2372
|
+
resource: "point-ledger";
|
|
2373
|
+
} | {
|
|
2371
2374
|
provider: "discord";
|
|
2372
2375
|
resource: "channel";
|
|
2373
2376
|
types: ("text" | "announcement")[];
|
|
2374
|
-
} | {
|
|
2375
|
-
provider: "domino";
|
|
2376
|
-
resource: "point-ledger";
|
|
2377
2377
|
} | {
|
|
2378
2378
|
provider: "discord";
|
|
2379
2379
|
resource: "role";
|
|
@@ -2470,7 +2470,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2470
2470
|
start: number;
|
|
2471
2471
|
end?: number | undefined;
|
|
2472
2472
|
};
|
|
2473
|
-
enrollment: "
|
|
2473
|
+
enrollment: "required" | "none";
|
|
2474
2474
|
posts: "after-enrollment" | "since-start";
|
|
2475
2475
|
historical: "staff" | "automatic" | "claim";
|
|
2476
2476
|
} | undefined;
|
|
@@ -2498,7 +2498,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2498
2498
|
actor?: "member" | "staff" | undefined;
|
|
2499
2499
|
} | {
|
|
2500
2500
|
kind: "manual";
|
|
2501
|
-
input: "
|
|
2501
|
+
input: "quiz" | "photo" | "none";
|
|
2502
2502
|
actor?: "member" | "staff" | undefined;
|
|
2503
2503
|
};
|
|
2504
2504
|
requires: {
|
|
@@ -2518,7 +2518,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2518
2518
|
budgets: {
|
|
2519
2519
|
id: string;
|
|
2520
2520
|
scope: "project" | "member";
|
|
2521
|
-
period: "day" | "
|
|
2521
|
+
period: "day" | "week" | "lifetime";
|
|
2522
2522
|
limit: number;
|
|
2523
2523
|
cost: number | {
|
|
2524
2524
|
balance: string;
|
|
@@ -2574,12 +2574,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2574
2574
|
kind: "resource";
|
|
2575
2575
|
default: string;
|
|
2576
2576
|
source: {
|
|
2577
|
+
provider: "domino";
|
|
2578
|
+
resource: "point-ledger";
|
|
2579
|
+
} | {
|
|
2577
2580
|
provider: "discord";
|
|
2578
2581
|
resource: "channel";
|
|
2579
2582
|
types: ("text" | "announcement")[];
|
|
2580
|
-
} | {
|
|
2581
|
-
provider: "domino";
|
|
2582
|
-
resource: "point-ledger";
|
|
2583
2583
|
} | {
|
|
2584
2584
|
provider: "discord";
|
|
2585
2585
|
resource: "role";
|
|
@@ -2676,7 +2676,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2676
2676
|
start: number;
|
|
2677
2677
|
end?: number | undefined;
|
|
2678
2678
|
};
|
|
2679
|
-
enrollment: "
|
|
2679
|
+
enrollment: "required" | "none";
|
|
2680
2680
|
posts: "after-enrollment" | "since-start";
|
|
2681
2681
|
historical: "staff" | "automatic" | "claim";
|
|
2682
2682
|
} | undefined;
|
|
@@ -2704,7 +2704,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2704
2704
|
actor?: "member" | "staff" | undefined;
|
|
2705
2705
|
} | {
|
|
2706
2706
|
kind: "manual";
|
|
2707
|
-
input: "
|
|
2707
|
+
input: "quiz" | "photo" | "none";
|
|
2708
2708
|
actor?: "member" | "staff" | undefined;
|
|
2709
2709
|
};
|
|
2710
2710
|
requires: {
|
|
@@ -2724,7 +2724,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2724
2724
|
budgets: {
|
|
2725
2725
|
id: string;
|
|
2726
2726
|
scope: "project" | "member";
|
|
2727
|
-
period: "day" | "
|
|
2727
|
+
period: "day" | "week" | "lifetime";
|
|
2728
2728
|
limit: number;
|
|
2729
2729
|
cost: number | {
|
|
2730
2730
|
balance: string;
|
|
@@ -2779,12 +2779,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2779
2779
|
kind: "resource";
|
|
2780
2780
|
default: string;
|
|
2781
2781
|
source: {
|
|
2782
|
+
provider: "domino";
|
|
2783
|
+
resource: "point-ledger";
|
|
2784
|
+
} | {
|
|
2782
2785
|
provider: "discord";
|
|
2783
2786
|
resource: "channel";
|
|
2784
2787
|
types: ("text" | "announcement")[];
|
|
2785
|
-
} | {
|
|
2786
|
-
provider: "domino";
|
|
2787
|
-
resource: "point-ledger";
|
|
2788
2788
|
} | {
|
|
2789
2789
|
provider: "discord";
|
|
2790
2790
|
resource: "role";
|
|
@@ -2881,7 +2881,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2881
2881
|
start: number;
|
|
2882
2882
|
end?: number | undefined;
|
|
2883
2883
|
};
|
|
2884
|
-
enrollment: "
|
|
2884
|
+
enrollment: "required" | "none";
|
|
2885
2885
|
posts: "after-enrollment" | "since-start";
|
|
2886
2886
|
historical: "staff" | "automatic" | "claim";
|
|
2887
2887
|
} | undefined;
|
|
@@ -2909,7 +2909,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2909
2909
|
actor?: "member" | "staff" | undefined;
|
|
2910
2910
|
} | {
|
|
2911
2911
|
kind: "manual";
|
|
2912
|
-
input: "
|
|
2912
|
+
input: "quiz" | "photo" | "none";
|
|
2913
2913
|
actor?: "member" | "staff" | undefined;
|
|
2914
2914
|
};
|
|
2915
2915
|
requires: {
|
|
@@ -2929,7 +2929,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2929
2929
|
budgets: {
|
|
2930
2930
|
id: string;
|
|
2931
2931
|
scope: "project" | "member";
|
|
2932
|
-
period: "day" | "
|
|
2932
|
+
period: "day" | "week" | "lifetime";
|
|
2933
2933
|
limit: number;
|
|
2934
2934
|
cost: number | {
|
|
2935
2935
|
balance: string;
|
|
@@ -2940,7 +2940,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2940
2940
|
id: string;
|
|
2941
2941
|
createdAt: number;
|
|
2942
2942
|
legacy: boolean;
|
|
2943
|
-
lifecycle: "
|
|
2943
|
+
lifecycle: "active" | "paused" | "archived";
|
|
2944
2944
|
performance?: {
|
|
2945
2945
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2946
2946
|
maxAgeMs: number;
|
|
@@ -3063,7 +3063,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3063
3063
|
quest: string;
|
|
3064
3064
|
member: string;
|
|
3065
3065
|
evidence: string | null;
|
|
3066
|
-
status: "
|
|
3066
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
3067
3067
|
reason: string | null;
|
|
3068
3068
|
retries: number;
|
|
3069
3069
|
generation: number;
|
|
@@ -3097,17 +3097,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3097
3097
|
})[] | null;
|
|
3098
3098
|
createdAt: number;
|
|
3099
3099
|
input?: {
|
|
3100
|
-
kind: "text";
|
|
3101
|
-
value: string;
|
|
3102
|
-
} | {
|
|
3103
|
-
kind: "url";
|
|
3104
|
-
value: string;
|
|
3105
|
-
} | {
|
|
3106
3100
|
kind: "quiz";
|
|
3107
3101
|
answers: {
|
|
3108
3102
|
[k: string]: string;
|
|
3109
3103
|
};
|
|
3110
3104
|
release?: string | undefined;
|
|
3105
|
+
} | {
|
|
3106
|
+
kind: "text";
|
|
3107
|
+
value: string;
|
|
3108
|
+
} | {
|
|
3109
|
+
kind: "url";
|
|
3110
|
+
value: string;
|
|
3111
3111
|
} | undefined;
|
|
3112
3112
|
}[];
|
|
3113
3113
|
balances: {
|
|
@@ -3165,12 +3165,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3165
3165
|
kind: "resource";
|
|
3166
3166
|
default: string;
|
|
3167
3167
|
source: {
|
|
3168
|
+
provider: "domino";
|
|
3169
|
+
resource: "point-ledger";
|
|
3170
|
+
} | {
|
|
3168
3171
|
provider: "discord";
|
|
3169
3172
|
resource: "channel";
|
|
3170
3173
|
types: ("text" | "announcement")[];
|
|
3171
|
-
} | {
|
|
3172
|
-
provider: "domino";
|
|
3173
|
-
resource: "point-ledger";
|
|
3174
3174
|
} | {
|
|
3175
3175
|
provider: "discord";
|
|
3176
3176
|
resource: "role";
|
|
@@ -3267,7 +3267,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3267
3267
|
start: number;
|
|
3268
3268
|
end?: number | undefined;
|
|
3269
3269
|
};
|
|
3270
|
-
enrollment: "
|
|
3270
|
+
enrollment: "required" | "none";
|
|
3271
3271
|
posts: "after-enrollment" | "since-start";
|
|
3272
3272
|
historical: "staff" | "automatic" | "claim";
|
|
3273
3273
|
} | undefined;
|
|
@@ -3295,7 +3295,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3295
3295
|
actor?: "member" | "staff" | undefined;
|
|
3296
3296
|
} | {
|
|
3297
3297
|
kind: "manual";
|
|
3298
|
-
input: "
|
|
3298
|
+
input: "quiz" | "photo" | "none";
|
|
3299
3299
|
actor?: "member" | "staff" | undefined;
|
|
3300
3300
|
};
|
|
3301
3301
|
requires: {
|
|
@@ -3315,7 +3315,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3315
3315
|
budgets: {
|
|
3316
3316
|
id: string;
|
|
3317
3317
|
scope: "project" | "member";
|
|
3318
|
-
period: "day" | "
|
|
3318
|
+
period: "day" | "week" | "lifetime";
|
|
3319
3319
|
limit: number;
|
|
3320
3320
|
cost: number | {
|
|
3321
3321
|
balance: string;
|
|
@@ -3326,7 +3326,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3326
3326
|
id: string;
|
|
3327
3327
|
createdAt: number;
|
|
3328
3328
|
legacy: boolean;
|
|
3329
|
-
lifecycle: "
|
|
3329
|
+
lifecycle: "active" | "paused" | "archived";
|
|
3330
3330
|
performance?: {
|
|
3331
3331
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3332
3332
|
maxAgeMs: number;
|
|
@@ -3399,12 +3399,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3399
3399
|
kind: "resource";
|
|
3400
3400
|
default: string;
|
|
3401
3401
|
source: {
|
|
3402
|
+
provider: "domino";
|
|
3403
|
+
resource: "point-ledger";
|
|
3404
|
+
} | {
|
|
3402
3405
|
provider: "discord";
|
|
3403
3406
|
resource: "channel";
|
|
3404
3407
|
types: ("text" | "announcement")[];
|
|
3405
|
-
} | {
|
|
3406
|
-
provider: "domino";
|
|
3407
|
-
resource: "point-ledger";
|
|
3408
3408
|
} | {
|
|
3409
3409
|
provider: "discord";
|
|
3410
3410
|
resource: "role";
|
|
@@ -3501,7 +3501,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3501
3501
|
start: number;
|
|
3502
3502
|
end?: number | undefined;
|
|
3503
3503
|
};
|
|
3504
|
-
enrollment: "
|
|
3504
|
+
enrollment: "required" | "none";
|
|
3505
3505
|
posts: "after-enrollment" | "since-start";
|
|
3506
3506
|
historical: "staff" | "automatic" | "claim";
|
|
3507
3507
|
} | undefined;
|
|
@@ -3529,7 +3529,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3529
3529
|
actor?: "member" | "staff" | undefined;
|
|
3530
3530
|
} | {
|
|
3531
3531
|
kind: "manual";
|
|
3532
|
-
input: "
|
|
3532
|
+
input: "quiz" | "photo" | "none";
|
|
3533
3533
|
actor?: "member" | "staff" | undefined;
|
|
3534
3534
|
};
|
|
3535
3535
|
requires: {
|
|
@@ -3549,7 +3549,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3549
3549
|
budgets: {
|
|
3550
3550
|
id: string;
|
|
3551
3551
|
scope: "project" | "member";
|
|
3552
|
-
period: "day" | "
|
|
3552
|
+
period: "day" | "week" | "lifetime";
|
|
3553
3553
|
limit: number;
|
|
3554
3554
|
cost: number | {
|
|
3555
3555
|
balance: string;
|
|
@@ -3560,7 +3560,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3560
3560
|
id: string;
|
|
3561
3561
|
createdAt: number;
|
|
3562
3562
|
legacy: boolean;
|
|
3563
|
-
lifecycle: "
|
|
3563
|
+
lifecycle: "active" | "paused" | "archived";
|
|
3564
3564
|
performance?: {
|
|
3565
3565
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3566
3566
|
maxAgeMs: number;
|
|
@@ -3619,7 +3619,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3619
3619
|
} | undefined;
|
|
3620
3620
|
} | undefined;
|
|
3621
3621
|
};
|
|
3622
|
-
connections: ("
|
|
3622
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
3623
3623
|
trigger: {
|
|
3624
3624
|
kind: "automatic";
|
|
3625
3625
|
observation?: {
|
|
@@ -3632,7 +3632,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3632
3632
|
start: number;
|
|
3633
3633
|
end?: number | undefined;
|
|
3634
3634
|
};
|
|
3635
|
-
enrollment: "
|
|
3635
|
+
enrollment: "required" | "none";
|
|
3636
3636
|
posts: "after-enrollment" | "since-start";
|
|
3637
3637
|
historical: "staff" | "automatic" | "claim";
|
|
3638
3638
|
} | undefined;
|
|
@@ -3660,12 +3660,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3660
3660
|
actor?: "member" | "staff" | undefined;
|
|
3661
3661
|
} | {
|
|
3662
3662
|
kind: "manual";
|
|
3663
|
-
input: "
|
|
3663
|
+
input: "quiz" | "photo" | "none";
|
|
3664
3664
|
actor?: "member" | "staff" | undefined;
|
|
3665
3665
|
};
|
|
3666
3666
|
availability: {
|
|
3667
3667
|
kind: "available";
|
|
3668
|
-
input: "
|
|
3668
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
3669
3669
|
} | {
|
|
3670
3670
|
kind: "completed";
|
|
3671
3671
|
} | {
|
|
@@ -3714,7 +3714,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3714
3714
|
quest: string;
|
|
3715
3715
|
member: string;
|
|
3716
3716
|
evidence: string | null;
|
|
3717
|
-
status: "
|
|
3717
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
3718
3718
|
reason: string | null;
|
|
3719
3719
|
retries: number;
|
|
3720
3720
|
generation: number;
|
|
@@ -3748,17 +3748,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3748
3748
|
})[] | null;
|
|
3749
3749
|
createdAt: number;
|
|
3750
3750
|
input?: {
|
|
3751
|
-
kind: "text";
|
|
3752
|
-
value: string;
|
|
3753
|
-
} | {
|
|
3754
|
-
kind: "url";
|
|
3755
|
-
value: string;
|
|
3756
|
-
} | {
|
|
3757
3751
|
kind: "quiz";
|
|
3758
3752
|
answers: {
|
|
3759
3753
|
[k: string]: string;
|
|
3760
3754
|
};
|
|
3761
3755
|
release?: string | undefined;
|
|
3756
|
+
} | {
|
|
3757
|
+
kind: "text";
|
|
3758
|
+
value: string;
|
|
3759
|
+
} | {
|
|
3760
|
+
kind: "url";
|
|
3761
|
+
value: string;
|
|
3762
3762
|
} | undefined;
|
|
3763
3763
|
} | null;
|
|
3764
3764
|
key?: string | undefined;
|
|
@@ -4140,14 +4140,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4140
4140
|
content: {
|
|
4141
4141
|
performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
|
|
4142
4142
|
current: {
|
|
4143
|
-
state: "
|
|
4143
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "content-pending" | "content-unqualified" | "waiting" | "unqualified" | "superseded";
|
|
4144
4144
|
reason: string | null;
|
|
4145
4145
|
contentAttempt: string;
|
|
4146
4146
|
attempt: string | null;
|
|
4147
4147
|
reward: {
|
|
4148
4148
|
attempt: string | null;
|
|
4149
4149
|
completion: string | null;
|
|
4150
|
-
state: "
|
|
4150
|
+
state: "awarded" | "excluded" | "unresolved";
|
|
4151
4151
|
};
|
|
4152
4152
|
};
|
|
4153
4153
|
items: {
|
|
@@ -4156,7 +4156,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4156
4156
|
observation: string;
|
|
4157
4157
|
observedAt: number;
|
|
4158
4158
|
metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
4159
|
-
state: "
|
|
4159
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded";
|
|
4160
4160
|
reason: string | null;
|
|
4161
4161
|
}[];
|
|
4162
4162
|
next: number | null;
|
|
@@ -4171,12 +4171,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4171
4171
|
revision: string;
|
|
4172
4172
|
observation: string;
|
|
4173
4173
|
current: boolean;
|
|
4174
|
-
state: "
|
|
4174
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded" | "stale" | "blocked" | "unavailable";
|
|
4175
4175
|
reason: string | null;
|
|
4176
4176
|
reward: {
|
|
4177
4177
|
attempt: string | null;
|
|
4178
4178
|
completion: string | null;
|
|
4179
|
-
state: "
|
|
4179
|
+
state: "awarded" | "excluded" | "unresolved";
|
|
4180
4180
|
};
|
|
4181
4181
|
}[];
|
|
4182
4182
|
next: number | null;
|
|
@@ -4186,7 +4186,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4186
4186
|
quest: string;
|
|
4187
4187
|
content: string;
|
|
4188
4188
|
release: string;
|
|
4189
|
-
state: "
|
|
4189
|
+
state: "pending" | "excluded" | "admitted";
|
|
4190
4190
|
reason: string | null;
|
|
4191
4191
|
attempt: string | null;
|
|
4192
4192
|
}[];
|
|
@@ -4201,7 +4201,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4201
4201
|
quest: string;
|
|
4202
4202
|
content: string;
|
|
4203
4203
|
release: string;
|
|
4204
|
-
state: "
|
|
4204
|
+
state: "pending" | "excluded" | "admitted";
|
|
4205
4205
|
reason: string | null;
|
|
4206
4206
|
attempt: string | null;
|
|
4207
4207
|
}>;
|
|
@@ -4212,7 +4212,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4212
4212
|
quest: string;
|
|
4213
4213
|
member: string;
|
|
4214
4214
|
evidence: string | null;
|
|
4215
|
-
status: "
|
|
4215
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
4216
4216
|
reason: string | null;
|
|
4217
4217
|
retries: number;
|
|
4218
4218
|
generation: number;
|
|
@@ -4246,17 +4246,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4246
4246
|
})[] | null;
|
|
4247
4247
|
createdAt: number;
|
|
4248
4248
|
input?: {
|
|
4249
|
-
kind: "text";
|
|
4250
|
-
value: string;
|
|
4251
|
-
} | {
|
|
4252
|
-
kind: "url";
|
|
4253
|
-
value: string;
|
|
4254
|
-
} | {
|
|
4255
4249
|
kind: "quiz";
|
|
4256
4250
|
answers: {
|
|
4257
4251
|
[k: string]: string;
|
|
4258
4252
|
};
|
|
4259
4253
|
release?: string | undefined;
|
|
4254
|
+
} | {
|
|
4255
|
+
kind: "text";
|
|
4256
|
+
value: string;
|
|
4257
|
+
} | {
|
|
4258
|
+
kind: "url";
|
|
4259
|
+
value: string;
|
|
4260
4260
|
} | undefined;
|
|
4261
4261
|
}>;
|
|
4262
4262
|
retry: (id: string) => Promise<{
|
|
@@ -4265,7 +4265,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4265
4265
|
quest: string;
|
|
4266
4266
|
member: string;
|
|
4267
4267
|
evidence: string | null;
|
|
4268
|
-
status: "
|
|
4268
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
4269
4269
|
reason: string | null;
|
|
4270
4270
|
retries: number;
|
|
4271
4271
|
generation: number;
|
|
@@ -4299,17 +4299,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4299
4299
|
})[] | null;
|
|
4300
4300
|
createdAt: number;
|
|
4301
4301
|
input?: {
|
|
4302
|
-
kind: "text";
|
|
4303
|
-
value: string;
|
|
4304
|
-
} | {
|
|
4305
|
-
kind: "url";
|
|
4306
|
-
value: string;
|
|
4307
|
-
} | {
|
|
4308
4302
|
kind: "quiz";
|
|
4309
4303
|
answers: {
|
|
4310
4304
|
[k: string]: string;
|
|
4311
4305
|
};
|
|
4312
4306
|
release?: string | undefined;
|
|
4307
|
+
} | {
|
|
4308
|
+
kind: "text";
|
|
4309
|
+
value: string;
|
|
4310
|
+
} | {
|
|
4311
|
+
kind: "url";
|
|
4312
|
+
value: string;
|
|
4313
4313
|
} | undefined;
|
|
4314
4314
|
}>;
|
|
4315
4315
|
decide: (id: string, input: {
|
|
@@ -4323,7 +4323,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4323
4323
|
quest: string;
|
|
4324
4324
|
member: string;
|
|
4325
4325
|
evidence: string | null;
|
|
4326
|
-
status: "
|
|
4326
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
4327
4327
|
reason: string | null;
|
|
4328
4328
|
retries: number;
|
|
4329
4329
|
generation: number;
|
|
@@ -4357,17 +4357,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4357
4357
|
})[] | null;
|
|
4358
4358
|
createdAt: number;
|
|
4359
4359
|
input?: {
|
|
4360
|
-
kind: "text";
|
|
4361
|
-
value: string;
|
|
4362
|
-
} | {
|
|
4363
|
-
kind: "url";
|
|
4364
|
-
value: string;
|
|
4365
|
-
} | {
|
|
4366
4360
|
kind: "quiz";
|
|
4367
4361
|
answers: {
|
|
4368
4362
|
[k: string]: string;
|
|
4369
4363
|
};
|
|
4370
4364
|
release?: string | undefined;
|
|
4365
|
+
} | {
|
|
4366
|
+
kind: "text";
|
|
4367
|
+
value: string;
|
|
4368
|
+
} | {
|
|
4369
|
+
kind: "url";
|
|
4370
|
+
value: string;
|
|
4371
4371
|
} | undefined;
|
|
4372
4372
|
}>;
|
|
4373
4373
|
};
|