@domino-sdk/relay 1.1.1 → 1.2.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 +42 -42
- package/dist/{browser-Cf1opQjX.d.ts → browser-Cho1duR6.d.ts} +173 -173
- package/dist/browser.d.ts +1 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/schema.d.ts +1 -1
- package/dist/server/index.d.ts +229 -4
- package/dist/server/index.js +204 -7
- package/package.json +1 -1
- package/dist/{activity-B8k9Sa_a.d.ts → activity-o1E-Hqyt.d.ts} +198 -198
|
@@ -1051,7 +1051,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1051
1051
|
seed: string;
|
|
1052
1052
|
} | {
|
|
1053
1053
|
source: "account";
|
|
1054
|
-
provider: "
|
|
1054
|
+
provider: "x" | "discord" | "google";
|
|
1055
1055
|
url: string;
|
|
1056
1056
|
seed: string;
|
|
1057
1057
|
} | {
|
|
@@ -1075,7 +1075,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1075
1075
|
seed: string;
|
|
1076
1076
|
} | {
|
|
1077
1077
|
source: "account";
|
|
1078
|
-
provider: "
|
|
1078
|
+
provider: "x" | "discord" | "google";
|
|
1079
1079
|
url: string;
|
|
1080
1080
|
seed: string;
|
|
1081
1081
|
} | {
|
|
@@ -1099,7 +1099,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1099
1099
|
seed: string;
|
|
1100
1100
|
} | {
|
|
1101
1101
|
source: "account";
|
|
1102
|
-
provider: "
|
|
1102
|
+
provider: "x" | "discord" | "google";
|
|
1103
1103
|
url: string;
|
|
1104
1104
|
seed: string;
|
|
1105
1105
|
} | {
|
|
@@ -1131,7 +1131,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1131
1131
|
seed: string;
|
|
1132
1132
|
} | {
|
|
1133
1133
|
source: "account";
|
|
1134
|
-
provider: "
|
|
1134
|
+
provider: "x" | "discord" | "google";
|
|
1135
1135
|
url: string;
|
|
1136
1136
|
seed: string;
|
|
1137
1137
|
} | {
|
|
@@ -1139,13 +1139,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1139
1139
|
seed: string;
|
|
1140
1140
|
};
|
|
1141
1141
|
displayName: string | null;
|
|
1142
|
-
avatarChoice: "default" | "account" | "
|
|
1143
|
-
avatarProvider: "
|
|
1142
|
+
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
1143
|
+
avatarProvider: "x" | "discord" | "google" | null;
|
|
1144
1144
|
hidden: boolean;
|
|
1145
1145
|
locked: boolean;
|
|
1146
1146
|
visibility: "private" | "participants" | "public";
|
|
1147
1147
|
options: {
|
|
1148
|
-
provider: "
|
|
1148
|
+
provider: "x" | "discord" | "google";
|
|
1149
1149
|
name: string | null;
|
|
1150
1150
|
imageUrl: string | null;
|
|
1151
1151
|
}[];
|
|
@@ -1159,7 +1159,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1159
1159
|
seed: string;
|
|
1160
1160
|
} | {
|
|
1161
1161
|
source: "account";
|
|
1162
|
-
provider: "
|
|
1162
|
+
provider: "x" | "discord" | "google";
|
|
1163
1163
|
url: string;
|
|
1164
1164
|
seed: string;
|
|
1165
1165
|
} | {
|
|
@@ -1167,13 +1167,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1167
1167
|
seed: string;
|
|
1168
1168
|
};
|
|
1169
1169
|
displayName: string | null;
|
|
1170
|
-
avatarChoice: "default" | "account" | "
|
|
1171
|
-
avatarProvider: "
|
|
1170
|
+
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
1171
|
+
avatarProvider: "x" | "discord" | "google" | null;
|
|
1172
1172
|
hidden: boolean;
|
|
1173
1173
|
locked: boolean;
|
|
1174
1174
|
visibility: "private" | "participants" | "public";
|
|
1175
1175
|
options: {
|
|
1176
|
-
provider: "
|
|
1176
|
+
provider: "x" | "discord" | "google";
|
|
1177
1177
|
name: string | null;
|
|
1178
1178
|
imageUrl: string | null;
|
|
1179
1179
|
}[];
|
|
@@ -1189,7 +1189,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1189
1189
|
seed: string;
|
|
1190
1190
|
} | {
|
|
1191
1191
|
source: "account";
|
|
1192
|
-
provider: "
|
|
1192
|
+
provider: "x" | "discord" | "google";
|
|
1193
1193
|
url: string;
|
|
1194
1194
|
seed: string;
|
|
1195
1195
|
} | {
|
|
@@ -1197,13 +1197,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1197
1197
|
seed: string;
|
|
1198
1198
|
};
|
|
1199
1199
|
displayName: string | null;
|
|
1200
|
-
avatarChoice: "default" | "account" | "
|
|
1201
|
-
avatarProvider: "
|
|
1200
|
+
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
1201
|
+
avatarProvider: "x" | "discord" | "google" | null;
|
|
1202
1202
|
hidden: boolean;
|
|
1203
1203
|
locked: boolean;
|
|
1204
1204
|
visibility: "private" | "participants" | "public";
|
|
1205
1205
|
options: {
|
|
1206
|
-
provider: "
|
|
1206
|
+
provider: "x" | "discord" | "google";
|
|
1207
1207
|
name: string | null;
|
|
1208
1208
|
imageUrl: string | null;
|
|
1209
1209
|
}[];
|
|
@@ -1217,7 +1217,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1217
1217
|
seed: string;
|
|
1218
1218
|
} | {
|
|
1219
1219
|
source: "account";
|
|
1220
|
-
provider: "
|
|
1220
|
+
provider: "x" | "discord" | "google";
|
|
1221
1221
|
url: string;
|
|
1222
1222
|
seed: string;
|
|
1223
1223
|
} | {
|
|
@@ -1272,7 +1272,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1272
1272
|
} | undefined;
|
|
1273
1273
|
} | undefined;
|
|
1274
1274
|
};
|
|
1275
|
-
connections: ("
|
|
1275
|
+
connections: ("x" | "discord" | "google" | "apple")[];
|
|
1276
1276
|
trigger: {
|
|
1277
1277
|
kind: "manual";
|
|
1278
1278
|
input: "text";
|
|
@@ -1281,7 +1281,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1281
1281
|
minLength: number;
|
|
1282
1282
|
maxLength: number;
|
|
1283
1283
|
};
|
|
1284
|
-
actor?: "
|
|
1284
|
+
actor?: "member" | "staff" | undefined;
|
|
1285
1285
|
} | {
|
|
1286
1286
|
kind: "manual";
|
|
1287
1287
|
input: "url";
|
|
@@ -1289,11 +1289,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1289
1289
|
required: boolean;
|
|
1290
1290
|
allowedHosts?: string[] | undefined;
|
|
1291
1291
|
};
|
|
1292
|
-
actor?: "
|
|
1292
|
+
actor?: "member" | "staff" | undefined;
|
|
1293
1293
|
} | {
|
|
1294
1294
|
kind: "manual";
|
|
1295
|
-
input: "
|
|
1296
|
-
actor?: "
|
|
1295
|
+
input: "quiz" | "photo" | "none";
|
|
1296
|
+
actor?: "member" | "staff" | undefined;
|
|
1297
1297
|
} | {
|
|
1298
1298
|
kind: "automatic";
|
|
1299
1299
|
tracker?: {
|
|
@@ -1336,15 +1336,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1336
1336
|
path: string;
|
|
1337
1337
|
equals: string | number | boolean;
|
|
1338
1338
|
})[] | undefined;
|
|
1339
|
-
enrollment?: "
|
|
1340
|
-
since?: "
|
|
1341
|
-
historical?: "staff" | "
|
|
1339
|
+
enrollment?: "required" | "none" | undefined;
|
|
1340
|
+
since?: "enrollment" | "activation" | "window" | undefined;
|
|
1341
|
+
historical?: "staff" | "automatic" | "claim" | undefined;
|
|
1342
1342
|
content?: true | undefined;
|
|
1343
1343
|
} | undefined;
|
|
1344
1344
|
};
|
|
1345
1345
|
availability: {
|
|
1346
1346
|
kind: "available";
|
|
1347
|
-
input: "
|
|
1347
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
1348
1348
|
} | {
|
|
1349
1349
|
kind: "completed";
|
|
1350
1350
|
} | {
|
|
@@ -1374,7 +1374,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1374
1374
|
})[];
|
|
1375
1375
|
} | {
|
|
1376
1376
|
kind: "blocked";
|
|
1377
|
-
reason: "
|
|
1377
|
+
reason: "budget-exhausted" | "connection-required" | "wallet-required" | "paused" | "outside-window" | "enrollment-required";
|
|
1378
1378
|
resetsAt?: number | undefined;
|
|
1379
1379
|
} | {
|
|
1380
1380
|
kind: "staff-required";
|
|
@@ -1392,6 +1392,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1392
1392
|
};
|
|
1393
1393
|
completed: boolean;
|
|
1394
1394
|
completion: {
|
|
1395
|
+
kind: "streak";
|
|
1396
|
+
days: number;
|
|
1397
|
+
} | {
|
|
1395
1398
|
kind: "progress";
|
|
1396
1399
|
goal: {
|
|
1397
1400
|
kind: "count";
|
|
@@ -1408,9 +1411,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1408
1411
|
durationMs: number;
|
|
1409
1412
|
};
|
|
1410
1413
|
repeat: "repeat" | "once";
|
|
1411
|
-
} | {
|
|
1412
|
-
kind: "streak";
|
|
1413
|
-
days: number;
|
|
1414
1414
|
} | {
|
|
1415
1415
|
kind: "once";
|
|
1416
1416
|
} | {
|
|
@@ -1422,7 +1422,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1422
1422
|
reason: string;
|
|
1423
1423
|
} | null;
|
|
1424
1424
|
completionCount: number;
|
|
1425
|
-
visibility: "
|
|
1425
|
+
visibility: "hidden" | "visible";
|
|
1426
1426
|
missing: ({
|
|
1427
1427
|
kind: "completion";
|
|
1428
1428
|
quest: string;
|
|
@@ -1449,7 +1449,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1449
1449
|
campaign: {
|
|
1450
1450
|
key: string;
|
|
1451
1451
|
title: string;
|
|
1452
|
-
enrollment: "
|
|
1452
|
+
enrollment: "required" | "none";
|
|
1453
1453
|
enrolledAt: number | null;
|
|
1454
1454
|
withdrawnAt: number | null;
|
|
1455
1455
|
withdrawalReason: string | null;
|
|
@@ -1499,15 +1499,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
1501
|
tier: string;
|
|
1502
|
+
} | {
|
|
1503
|
+
kind: "points";
|
|
1504
|
+
balance: string;
|
|
1505
|
+
amount: number;
|
|
1502
1506
|
} | {
|
|
1503
1507
|
kind: "integration";
|
|
1504
1508
|
provider: "discord";
|
|
1505
1509
|
action: "grant-role";
|
|
1506
1510
|
roleId: string;
|
|
1507
|
-
} | {
|
|
1508
|
-
kind: "points";
|
|
1509
|
-
balance: string;
|
|
1510
|
-
amount: number;
|
|
1511
1511
|
})[] | null;
|
|
1512
1512
|
evaluationRun: number;
|
|
1513
1513
|
deferCount: number;
|
|
@@ -1522,21 +1522,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1522
1522
|
requestedReview: boolean;
|
|
1523
1523
|
createdAt: number;
|
|
1524
1524
|
input?: {
|
|
1525
|
-
kind: "text";
|
|
1526
|
-
value: string;
|
|
1527
|
-
} | {
|
|
1528
|
-
kind: "url";
|
|
1529
|
-
value: string;
|
|
1530
|
-
} | {
|
|
1531
1525
|
kind: "quiz";
|
|
1532
1526
|
answers: {
|
|
1533
1527
|
[k: string]: string;
|
|
1534
1528
|
};
|
|
1535
1529
|
release?: string | undefined;
|
|
1530
|
+
} | {
|
|
1531
|
+
kind: "text";
|
|
1532
|
+
value: string;
|
|
1533
|
+
} | {
|
|
1534
|
+
kind: "url";
|
|
1535
|
+
value: string;
|
|
1536
1536
|
} | undefined;
|
|
1537
1537
|
} | null;
|
|
1538
1538
|
release: string;
|
|
1539
|
-
interaction: "
|
|
1539
|
+
interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
|
|
1540
1540
|
lifecycle: "paused" | "active" | "archived";
|
|
1541
1541
|
rewards: ({
|
|
1542
1542
|
kind: "points";
|
|
@@ -1692,15 +1692,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1692
1692
|
};
|
|
1693
1693
|
};
|
|
1694
1694
|
tier: string;
|
|
1695
|
+
} | {
|
|
1696
|
+
kind: "points";
|
|
1697
|
+
balance: string;
|
|
1698
|
+
amount: number;
|
|
1695
1699
|
} | {
|
|
1696
1700
|
kind: "integration";
|
|
1697
1701
|
provider: "discord";
|
|
1698
1702
|
action: "grant-role";
|
|
1699
1703
|
roleId: string;
|
|
1700
|
-
} | {
|
|
1701
|
-
kind: "points";
|
|
1702
|
-
balance: string;
|
|
1703
|
-
amount: number;
|
|
1704
1704
|
})[] | null;
|
|
1705
1705
|
evaluationRun: number;
|
|
1706
1706
|
deferCount: number;
|
|
@@ -1715,17 +1715,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1715
1715
|
requestedReview: boolean;
|
|
1716
1716
|
createdAt: number;
|
|
1717
1717
|
input?: {
|
|
1718
|
-
kind: "text";
|
|
1719
|
-
value: string;
|
|
1720
|
-
} | {
|
|
1721
|
-
kind: "url";
|
|
1722
|
-
value: string;
|
|
1723
|
-
} | {
|
|
1724
1718
|
kind: "quiz";
|
|
1725
1719
|
answers: {
|
|
1726
1720
|
[k: string]: string;
|
|
1727
1721
|
};
|
|
1728
1722
|
release?: string | undefined;
|
|
1723
|
+
} | {
|
|
1724
|
+
kind: "text";
|
|
1725
|
+
value: string;
|
|
1726
|
+
} | {
|
|
1727
|
+
kind: "url";
|
|
1728
|
+
value: string;
|
|
1729
1729
|
} | undefined;
|
|
1730
1730
|
}>;
|
|
1731
1731
|
experience: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
@@ -1906,7 +1906,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1906
1906
|
} | undefined;
|
|
1907
1907
|
} | undefined;
|
|
1908
1908
|
};
|
|
1909
|
-
connections: ("
|
|
1909
|
+
connections: ("x" | "discord" | "google" | "apple")[];
|
|
1910
1910
|
trigger: {
|
|
1911
1911
|
kind: "manual";
|
|
1912
1912
|
input: "text";
|
|
@@ -1915,7 +1915,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1915
1915
|
minLength: number;
|
|
1916
1916
|
maxLength: number;
|
|
1917
1917
|
};
|
|
1918
|
-
actor?: "
|
|
1918
|
+
actor?: "member" | "staff" | undefined;
|
|
1919
1919
|
} | {
|
|
1920
1920
|
kind: "manual";
|
|
1921
1921
|
input: "url";
|
|
@@ -1923,11 +1923,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1923
1923
|
required: boolean;
|
|
1924
1924
|
allowedHosts?: string[] | undefined;
|
|
1925
1925
|
};
|
|
1926
|
-
actor?: "
|
|
1926
|
+
actor?: "member" | "staff" | undefined;
|
|
1927
1927
|
} | {
|
|
1928
1928
|
kind: "manual";
|
|
1929
|
-
input: "
|
|
1930
|
-
actor?: "
|
|
1929
|
+
input: "quiz" | "photo" | "none";
|
|
1930
|
+
actor?: "member" | "staff" | undefined;
|
|
1931
1931
|
} | {
|
|
1932
1932
|
kind: "automatic";
|
|
1933
1933
|
tracker?: {
|
|
@@ -1970,15 +1970,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1970
1970
|
path: string;
|
|
1971
1971
|
equals: string | number | boolean;
|
|
1972
1972
|
})[] | undefined;
|
|
1973
|
-
enrollment?: "
|
|
1974
|
-
since?: "
|
|
1975
|
-
historical?: "staff" | "
|
|
1973
|
+
enrollment?: "required" | "none" | undefined;
|
|
1974
|
+
since?: "enrollment" | "activation" | "window" | undefined;
|
|
1975
|
+
historical?: "staff" | "automatic" | "claim" | undefined;
|
|
1976
1976
|
content?: true | undefined;
|
|
1977
1977
|
} | undefined;
|
|
1978
1978
|
};
|
|
1979
1979
|
availability: {
|
|
1980
1980
|
kind: "available";
|
|
1981
|
-
input: "
|
|
1981
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
1982
1982
|
} | {
|
|
1983
1983
|
kind: "completed";
|
|
1984
1984
|
} | {
|
|
@@ -2008,7 +2008,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2008
2008
|
})[];
|
|
2009
2009
|
} | {
|
|
2010
2010
|
kind: "blocked";
|
|
2011
|
-
reason: "
|
|
2011
|
+
reason: "budget-exhausted" | "connection-required" | "wallet-required" | "paused" | "outside-window" | "enrollment-required";
|
|
2012
2012
|
resetsAt?: number | undefined;
|
|
2013
2013
|
} | {
|
|
2014
2014
|
kind: "staff-required";
|
|
@@ -2026,6 +2026,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2026
2026
|
};
|
|
2027
2027
|
completed: boolean;
|
|
2028
2028
|
completion: {
|
|
2029
|
+
kind: "streak";
|
|
2030
|
+
days: number;
|
|
2031
|
+
} | {
|
|
2029
2032
|
kind: "progress";
|
|
2030
2033
|
goal: {
|
|
2031
2034
|
kind: "count";
|
|
@@ -2042,9 +2045,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2042
2045
|
durationMs: number;
|
|
2043
2046
|
};
|
|
2044
2047
|
repeat: "repeat" | "once";
|
|
2045
|
-
} | {
|
|
2046
|
-
kind: "streak";
|
|
2047
|
-
days: number;
|
|
2048
2048
|
} | {
|
|
2049
2049
|
kind: "once";
|
|
2050
2050
|
} | {
|
|
@@ -2056,7 +2056,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2056
2056
|
reason: string;
|
|
2057
2057
|
} | null;
|
|
2058
2058
|
completionCount: number;
|
|
2059
|
-
visibility: "
|
|
2059
|
+
visibility: "hidden" | "visible";
|
|
2060
2060
|
missing: ({
|
|
2061
2061
|
kind: "completion";
|
|
2062
2062
|
quest: string;
|
|
@@ -2083,7 +2083,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2083
2083
|
campaign: {
|
|
2084
2084
|
key: string;
|
|
2085
2085
|
title: string;
|
|
2086
|
-
enrollment: "
|
|
2086
|
+
enrollment: "required" | "none";
|
|
2087
2087
|
enrolledAt: number | null;
|
|
2088
2088
|
withdrawnAt: number | null;
|
|
2089
2089
|
withdrawalReason: string | null;
|
|
@@ -2133,15 +2133,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2133
2133
|
};
|
|
2134
2134
|
};
|
|
2135
2135
|
tier: string;
|
|
2136
|
+
} | {
|
|
2137
|
+
kind: "points";
|
|
2138
|
+
balance: string;
|
|
2139
|
+
amount: number;
|
|
2136
2140
|
} | {
|
|
2137
2141
|
kind: "integration";
|
|
2138
2142
|
provider: "discord";
|
|
2139
2143
|
action: "grant-role";
|
|
2140
2144
|
roleId: string;
|
|
2141
|
-
} | {
|
|
2142
|
-
kind: "points";
|
|
2143
|
-
balance: string;
|
|
2144
|
-
amount: number;
|
|
2145
2145
|
})[] | null;
|
|
2146
2146
|
evaluationRun: number;
|
|
2147
2147
|
deferCount: number;
|
|
@@ -2156,21 +2156,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2156
2156
|
requestedReview: boolean;
|
|
2157
2157
|
createdAt: number;
|
|
2158
2158
|
input?: {
|
|
2159
|
-
kind: "text";
|
|
2160
|
-
value: string;
|
|
2161
|
-
} | {
|
|
2162
|
-
kind: "url";
|
|
2163
|
-
value: string;
|
|
2164
|
-
} | {
|
|
2165
2159
|
kind: "quiz";
|
|
2166
2160
|
answers: {
|
|
2167
2161
|
[k: string]: string;
|
|
2168
2162
|
};
|
|
2169
2163
|
release?: string | undefined;
|
|
2164
|
+
} | {
|
|
2165
|
+
kind: "text";
|
|
2166
|
+
value: string;
|
|
2167
|
+
} | {
|
|
2168
|
+
kind: "url";
|
|
2169
|
+
value: string;
|
|
2170
2170
|
} | undefined;
|
|
2171
2171
|
} | null;
|
|
2172
2172
|
release: string;
|
|
2173
|
-
interaction: "
|
|
2173
|
+
interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
|
|
2174
2174
|
lifecycle: "paused" | "active" | "archived";
|
|
2175
2175
|
rewards: ({
|
|
2176
2176
|
kind: "points";
|
|
@@ -2286,7 +2286,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2286
2286
|
} | undefined;
|
|
2287
2287
|
} | undefined;
|
|
2288
2288
|
};
|
|
2289
|
-
connections: ("
|
|
2289
|
+
connections: ("x" | "discord" | "google" | "apple")[];
|
|
2290
2290
|
trigger: {
|
|
2291
2291
|
kind: "manual";
|
|
2292
2292
|
input: "text";
|
|
@@ -2295,7 +2295,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2295
2295
|
minLength: number;
|
|
2296
2296
|
maxLength: number;
|
|
2297
2297
|
};
|
|
2298
|
-
actor?: "
|
|
2298
|
+
actor?: "member" | "staff" | undefined;
|
|
2299
2299
|
} | {
|
|
2300
2300
|
kind: "manual";
|
|
2301
2301
|
input: "url";
|
|
@@ -2303,11 +2303,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2303
2303
|
required: boolean;
|
|
2304
2304
|
allowedHosts?: string[] | undefined;
|
|
2305
2305
|
};
|
|
2306
|
-
actor?: "
|
|
2306
|
+
actor?: "member" | "staff" | undefined;
|
|
2307
2307
|
} | {
|
|
2308
2308
|
kind: "manual";
|
|
2309
|
-
input: "
|
|
2310
|
-
actor?: "
|
|
2309
|
+
input: "quiz" | "photo" | "none";
|
|
2310
|
+
actor?: "member" | "staff" | undefined;
|
|
2311
2311
|
} | {
|
|
2312
2312
|
kind: "automatic";
|
|
2313
2313
|
tracker?: {
|
|
@@ -2350,15 +2350,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2350
2350
|
path: string;
|
|
2351
2351
|
equals: string | number | boolean;
|
|
2352
2352
|
})[] | undefined;
|
|
2353
|
-
enrollment?: "
|
|
2354
|
-
since?: "
|
|
2355
|
-
historical?: "staff" | "
|
|
2353
|
+
enrollment?: "required" | "none" | undefined;
|
|
2354
|
+
since?: "enrollment" | "activation" | "window" | undefined;
|
|
2355
|
+
historical?: "staff" | "automatic" | "claim" | undefined;
|
|
2356
2356
|
content?: true | undefined;
|
|
2357
2357
|
} | undefined;
|
|
2358
2358
|
};
|
|
2359
2359
|
availability: {
|
|
2360
2360
|
kind: "available";
|
|
2361
|
-
input: "
|
|
2361
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
2362
2362
|
} | {
|
|
2363
2363
|
kind: "completed";
|
|
2364
2364
|
} | {
|
|
@@ -2388,7 +2388,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2388
2388
|
})[];
|
|
2389
2389
|
} | {
|
|
2390
2390
|
kind: "blocked";
|
|
2391
|
-
reason: "
|
|
2391
|
+
reason: "budget-exhausted" | "connection-required" | "wallet-required" | "paused" | "outside-window" | "enrollment-required";
|
|
2392
2392
|
resetsAt?: number | undefined;
|
|
2393
2393
|
} | {
|
|
2394
2394
|
kind: "staff-required";
|
|
@@ -2406,6 +2406,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2406
2406
|
};
|
|
2407
2407
|
completed: boolean;
|
|
2408
2408
|
completion: {
|
|
2409
|
+
kind: "streak";
|
|
2410
|
+
days: number;
|
|
2411
|
+
} | {
|
|
2409
2412
|
kind: "progress";
|
|
2410
2413
|
goal: {
|
|
2411
2414
|
kind: "count";
|
|
@@ -2422,9 +2425,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2422
2425
|
durationMs: number;
|
|
2423
2426
|
};
|
|
2424
2427
|
repeat: "repeat" | "once";
|
|
2425
|
-
} | {
|
|
2426
|
-
kind: "streak";
|
|
2427
|
-
days: number;
|
|
2428
2428
|
} | {
|
|
2429
2429
|
kind: "once";
|
|
2430
2430
|
} | {
|
|
@@ -2436,7 +2436,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2436
2436
|
reason: string;
|
|
2437
2437
|
} | null;
|
|
2438
2438
|
completionCount: number;
|
|
2439
|
-
visibility: "
|
|
2439
|
+
visibility: "hidden" | "visible";
|
|
2440
2440
|
missing: ({
|
|
2441
2441
|
kind: "completion";
|
|
2442
2442
|
quest: string;
|
|
@@ -2463,7 +2463,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2463
2463
|
campaign: {
|
|
2464
2464
|
key: string;
|
|
2465
2465
|
title: string;
|
|
2466
|
-
enrollment: "
|
|
2466
|
+
enrollment: "required" | "none";
|
|
2467
2467
|
enrolledAt: number | null;
|
|
2468
2468
|
withdrawnAt: number | null;
|
|
2469
2469
|
withdrawalReason: string | null;
|
|
@@ -2513,15 +2513,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2513
2513
|
};
|
|
2514
2514
|
};
|
|
2515
2515
|
tier: string;
|
|
2516
|
+
} | {
|
|
2517
|
+
kind: "points";
|
|
2518
|
+
balance: string;
|
|
2519
|
+
amount: number;
|
|
2516
2520
|
} | {
|
|
2517
2521
|
kind: "integration";
|
|
2518
2522
|
provider: "discord";
|
|
2519
2523
|
action: "grant-role";
|
|
2520
2524
|
roleId: string;
|
|
2521
|
-
} | {
|
|
2522
|
-
kind: "points";
|
|
2523
|
-
balance: string;
|
|
2524
|
-
amount: number;
|
|
2525
2525
|
})[] | null;
|
|
2526
2526
|
evaluationRun: number;
|
|
2527
2527
|
deferCount: number;
|
|
@@ -2536,21 +2536,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2536
2536
|
requestedReview: boolean;
|
|
2537
2537
|
createdAt: number;
|
|
2538
2538
|
input?: {
|
|
2539
|
-
kind: "text";
|
|
2540
|
-
value: string;
|
|
2541
|
-
} | {
|
|
2542
|
-
kind: "url";
|
|
2543
|
-
value: string;
|
|
2544
|
-
} | {
|
|
2545
2539
|
kind: "quiz";
|
|
2546
2540
|
answers: {
|
|
2547
2541
|
[k: string]: string;
|
|
2548
2542
|
};
|
|
2549
2543
|
release?: string | undefined;
|
|
2544
|
+
} | {
|
|
2545
|
+
kind: "text";
|
|
2546
|
+
value: string;
|
|
2547
|
+
} | {
|
|
2548
|
+
kind: "url";
|
|
2549
|
+
value: string;
|
|
2550
2550
|
} | undefined;
|
|
2551
2551
|
} | null;
|
|
2552
2552
|
release: string;
|
|
2553
|
-
interaction: "
|
|
2553
|
+
interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
|
|
2554
2554
|
lifecycle: "paused" | "active" | "archived";
|
|
2555
2555
|
rewards: ({
|
|
2556
2556
|
kind: "points";
|
|
@@ -2669,7 +2669,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2669
2669
|
} | undefined;
|
|
2670
2670
|
} | undefined;
|
|
2671
2671
|
};
|
|
2672
|
-
connections: ("
|
|
2672
|
+
connections: ("x" | "discord" | "google" | "apple")[];
|
|
2673
2673
|
trigger: {
|
|
2674
2674
|
kind: "manual";
|
|
2675
2675
|
input: "text";
|
|
@@ -2678,7 +2678,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2678
2678
|
minLength: number;
|
|
2679
2679
|
maxLength: number;
|
|
2680
2680
|
};
|
|
2681
|
-
actor?: "
|
|
2681
|
+
actor?: "member" | "staff" | undefined;
|
|
2682
2682
|
} | {
|
|
2683
2683
|
kind: "manual";
|
|
2684
2684
|
input: "url";
|
|
@@ -2686,11 +2686,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2686
2686
|
required: boolean;
|
|
2687
2687
|
allowedHosts?: string[] | undefined;
|
|
2688
2688
|
};
|
|
2689
|
-
actor?: "
|
|
2689
|
+
actor?: "member" | "staff" | undefined;
|
|
2690
2690
|
} | {
|
|
2691
2691
|
kind: "manual";
|
|
2692
|
-
input: "
|
|
2693
|
-
actor?: "
|
|
2692
|
+
input: "quiz" | "photo" | "none";
|
|
2693
|
+
actor?: "member" | "staff" | undefined;
|
|
2694
2694
|
} | {
|
|
2695
2695
|
kind: "automatic";
|
|
2696
2696
|
tracker?: {
|
|
@@ -2733,15 +2733,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2733
2733
|
path: string;
|
|
2734
2734
|
equals: string | number | boolean;
|
|
2735
2735
|
})[] | undefined;
|
|
2736
|
-
enrollment?: "
|
|
2737
|
-
since?: "
|
|
2738
|
-
historical?: "staff" | "
|
|
2736
|
+
enrollment?: "required" | "none" | undefined;
|
|
2737
|
+
since?: "enrollment" | "activation" | "window" | undefined;
|
|
2738
|
+
historical?: "staff" | "automatic" | "claim" | undefined;
|
|
2739
2739
|
content?: true | undefined;
|
|
2740
2740
|
} | undefined;
|
|
2741
2741
|
};
|
|
2742
2742
|
availability: {
|
|
2743
2743
|
kind: "available";
|
|
2744
|
-
input: "
|
|
2744
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
2745
2745
|
} | {
|
|
2746
2746
|
kind: "completed";
|
|
2747
2747
|
} | {
|
|
@@ -2771,7 +2771,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2771
2771
|
})[];
|
|
2772
2772
|
} | {
|
|
2773
2773
|
kind: "blocked";
|
|
2774
|
-
reason: "
|
|
2774
|
+
reason: "budget-exhausted" | "connection-required" | "wallet-required" | "paused" | "outside-window" | "enrollment-required";
|
|
2775
2775
|
resetsAt?: number | undefined;
|
|
2776
2776
|
} | {
|
|
2777
2777
|
kind: "staff-required";
|
|
@@ -2789,6 +2789,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2789
2789
|
};
|
|
2790
2790
|
completed: boolean;
|
|
2791
2791
|
completion: {
|
|
2792
|
+
kind: "streak";
|
|
2793
|
+
days: number;
|
|
2794
|
+
} | {
|
|
2792
2795
|
kind: "progress";
|
|
2793
2796
|
goal: {
|
|
2794
2797
|
kind: "count";
|
|
@@ -2805,9 +2808,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2805
2808
|
durationMs: number;
|
|
2806
2809
|
};
|
|
2807
2810
|
repeat: "repeat" | "once";
|
|
2808
|
-
} | {
|
|
2809
|
-
kind: "streak";
|
|
2810
|
-
days: number;
|
|
2811
2811
|
} | {
|
|
2812
2812
|
kind: "once";
|
|
2813
2813
|
} | {
|
|
@@ -2819,7 +2819,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2819
2819
|
reason: string;
|
|
2820
2820
|
} | null;
|
|
2821
2821
|
completionCount: number;
|
|
2822
|
-
visibility: "
|
|
2822
|
+
visibility: "hidden" | "visible";
|
|
2823
2823
|
missing: ({
|
|
2824
2824
|
kind: "completion";
|
|
2825
2825
|
quest: string;
|
|
@@ -2846,7 +2846,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2846
2846
|
campaign: {
|
|
2847
2847
|
key: string;
|
|
2848
2848
|
title: string;
|
|
2849
|
-
enrollment: "
|
|
2849
|
+
enrollment: "required" | "none";
|
|
2850
2850
|
enrolledAt: number | null;
|
|
2851
2851
|
withdrawnAt: number | null;
|
|
2852
2852
|
withdrawalReason: string | null;
|
|
@@ -2896,15 +2896,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2896
2896
|
};
|
|
2897
2897
|
};
|
|
2898
2898
|
tier: string;
|
|
2899
|
+
} | {
|
|
2900
|
+
kind: "points";
|
|
2901
|
+
balance: string;
|
|
2902
|
+
amount: number;
|
|
2899
2903
|
} | {
|
|
2900
2904
|
kind: "integration";
|
|
2901
2905
|
provider: "discord";
|
|
2902
2906
|
action: "grant-role";
|
|
2903
2907
|
roleId: string;
|
|
2904
|
-
} | {
|
|
2905
|
-
kind: "points";
|
|
2906
|
-
balance: string;
|
|
2907
|
-
amount: number;
|
|
2908
2908
|
})[] | null;
|
|
2909
2909
|
evaluationRun: number;
|
|
2910
2910
|
deferCount: number;
|
|
@@ -2919,21 +2919,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2919
2919
|
requestedReview: boolean;
|
|
2920
2920
|
createdAt: number;
|
|
2921
2921
|
input?: {
|
|
2922
|
-
kind: "text";
|
|
2923
|
-
value: string;
|
|
2924
|
-
} | {
|
|
2925
|
-
kind: "url";
|
|
2926
|
-
value: string;
|
|
2927
|
-
} | {
|
|
2928
2922
|
kind: "quiz";
|
|
2929
2923
|
answers: {
|
|
2930
2924
|
[k: string]: string;
|
|
2931
2925
|
};
|
|
2932
2926
|
release?: string | undefined;
|
|
2927
|
+
} | {
|
|
2928
|
+
kind: "text";
|
|
2929
|
+
value: string;
|
|
2930
|
+
} | {
|
|
2931
|
+
kind: "url";
|
|
2932
|
+
value: string;
|
|
2933
2933
|
} | undefined;
|
|
2934
2934
|
} | null;
|
|
2935
2935
|
release: string;
|
|
2936
|
-
interaction: "
|
|
2936
|
+
interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
|
|
2937
2937
|
lifecycle: "paused" | "active" | "archived";
|
|
2938
2938
|
rewards: ({
|
|
2939
2939
|
kind: "points";
|
|
@@ -3088,7 +3088,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3088
3088
|
auth: {
|
|
3089
3089
|
providers: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3090
3090
|
providers: {
|
|
3091
|
-
provider: "
|
|
3091
|
+
provider: "x" | "discord" | "google" | "apple";
|
|
3092
3092
|
configured: boolean;
|
|
3093
3093
|
}[];
|
|
3094
3094
|
email: boolean;
|
|
@@ -3170,7 +3170,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3170
3170
|
}>;
|
|
3171
3171
|
};
|
|
3172
3172
|
accounts: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3173
|
-
provider: "
|
|
3173
|
+
provider: "x" | "discord" | "google" | "apple";
|
|
3174
3174
|
configured: boolean;
|
|
3175
3175
|
status: "disconnected" | "connected" | "reconnect";
|
|
3176
3176
|
subject: string | null;
|
|
@@ -3363,7 +3363,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3363
3363
|
} | undefined;
|
|
3364
3364
|
} | undefined;
|
|
3365
3365
|
};
|
|
3366
|
-
connections: ("
|
|
3366
|
+
connections: ("x" | "discord" | "google" | "apple")[];
|
|
3367
3367
|
trigger: {
|
|
3368
3368
|
kind: "manual";
|
|
3369
3369
|
input: "text";
|
|
@@ -3372,7 +3372,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3372
3372
|
minLength: number;
|
|
3373
3373
|
maxLength: number;
|
|
3374
3374
|
};
|
|
3375
|
-
actor?: "
|
|
3375
|
+
actor?: "member" | "staff" | undefined;
|
|
3376
3376
|
} | {
|
|
3377
3377
|
kind: "manual";
|
|
3378
3378
|
input: "url";
|
|
@@ -3380,11 +3380,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3380
3380
|
required: boolean;
|
|
3381
3381
|
allowedHosts?: string[] | undefined;
|
|
3382
3382
|
};
|
|
3383
|
-
actor?: "
|
|
3383
|
+
actor?: "member" | "staff" | undefined;
|
|
3384
3384
|
} | {
|
|
3385
3385
|
kind: "manual";
|
|
3386
|
-
input: "
|
|
3387
|
-
actor?: "
|
|
3386
|
+
input: "quiz" | "photo" | "none";
|
|
3387
|
+
actor?: "member" | "staff" | undefined;
|
|
3388
3388
|
} | {
|
|
3389
3389
|
kind: "automatic";
|
|
3390
3390
|
tracker?: {
|
|
@@ -3427,15 +3427,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3427
3427
|
path: string;
|
|
3428
3428
|
equals: string | number | boolean;
|
|
3429
3429
|
})[] | undefined;
|
|
3430
|
-
enrollment?: "
|
|
3431
|
-
since?: "
|
|
3432
|
-
historical?: "staff" | "
|
|
3430
|
+
enrollment?: "required" | "none" | undefined;
|
|
3431
|
+
since?: "enrollment" | "activation" | "window" | undefined;
|
|
3432
|
+
historical?: "staff" | "automatic" | "claim" | undefined;
|
|
3433
3433
|
content?: true | undefined;
|
|
3434
3434
|
} | undefined;
|
|
3435
3435
|
};
|
|
3436
3436
|
availability: {
|
|
3437
3437
|
kind: "available";
|
|
3438
|
-
input: "
|
|
3438
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
3439
3439
|
} | {
|
|
3440
3440
|
kind: "completed";
|
|
3441
3441
|
} | {
|
|
@@ -3465,7 +3465,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3465
3465
|
})[];
|
|
3466
3466
|
} | {
|
|
3467
3467
|
kind: "blocked";
|
|
3468
|
-
reason: "
|
|
3468
|
+
reason: "budget-exhausted" | "connection-required" | "wallet-required" | "paused" | "outside-window" | "enrollment-required";
|
|
3469
3469
|
resetsAt?: number | undefined;
|
|
3470
3470
|
} | {
|
|
3471
3471
|
kind: "staff-required";
|
|
@@ -3483,6 +3483,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3483
3483
|
};
|
|
3484
3484
|
completed: boolean;
|
|
3485
3485
|
completion: {
|
|
3486
|
+
kind: "streak";
|
|
3487
|
+
days: number;
|
|
3488
|
+
} | {
|
|
3486
3489
|
kind: "progress";
|
|
3487
3490
|
goal: {
|
|
3488
3491
|
kind: "count";
|
|
@@ -3499,9 +3502,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3499
3502
|
durationMs: number;
|
|
3500
3503
|
};
|
|
3501
3504
|
repeat: "repeat" | "once";
|
|
3502
|
-
} | {
|
|
3503
|
-
kind: "streak";
|
|
3504
|
-
days: number;
|
|
3505
3505
|
} | {
|
|
3506
3506
|
kind: "once";
|
|
3507
3507
|
} | {
|
|
@@ -3513,7 +3513,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3513
3513
|
reason: string;
|
|
3514
3514
|
} | null;
|
|
3515
3515
|
completionCount: number;
|
|
3516
|
-
visibility: "
|
|
3516
|
+
visibility: "hidden" | "visible";
|
|
3517
3517
|
missing: ({
|
|
3518
3518
|
kind: "completion";
|
|
3519
3519
|
quest: string;
|
|
@@ -3540,7 +3540,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3540
3540
|
campaign: {
|
|
3541
3541
|
key: string;
|
|
3542
3542
|
title: string;
|
|
3543
|
-
enrollment: "
|
|
3543
|
+
enrollment: "required" | "none";
|
|
3544
3544
|
enrolledAt: number | null;
|
|
3545
3545
|
withdrawnAt: number | null;
|
|
3546
3546
|
withdrawalReason: string | null;
|
|
@@ -3590,15 +3590,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3590
3590
|
};
|
|
3591
3591
|
};
|
|
3592
3592
|
tier: string;
|
|
3593
|
+
} | {
|
|
3594
|
+
kind: "points";
|
|
3595
|
+
balance: string;
|
|
3596
|
+
amount: number;
|
|
3593
3597
|
} | {
|
|
3594
3598
|
kind: "integration";
|
|
3595
3599
|
provider: "discord";
|
|
3596
3600
|
action: "grant-role";
|
|
3597
3601
|
roleId: string;
|
|
3598
|
-
} | {
|
|
3599
|
-
kind: "points";
|
|
3600
|
-
balance: string;
|
|
3601
|
-
amount: number;
|
|
3602
3602
|
})[] | null;
|
|
3603
3603
|
evaluationRun: number;
|
|
3604
3604
|
deferCount: number;
|
|
@@ -3613,17 +3613,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3613
3613
|
requestedReview: boolean;
|
|
3614
3614
|
createdAt: number;
|
|
3615
3615
|
input?: {
|
|
3616
|
-
kind: "text";
|
|
3617
|
-
value: string;
|
|
3618
|
-
} | {
|
|
3619
|
-
kind: "url";
|
|
3620
|
-
value: string;
|
|
3621
|
-
} | {
|
|
3622
3616
|
kind: "quiz";
|
|
3623
3617
|
answers: {
|
|
3624
3618
|
[k: string]: string;
|
|
3625
3619
|
};
|
|
3626
3620
|
release?: string | undefined;
|
|
3621
|
+
} | {
|
|
3622
|
+
kind: "text";
|
|
3623
|
+
value: string;
|
|
3624
|
+
} | {
|
|
3625
|
+
kind: "url";
|
|
3626
|
+
value: string;
|
|
3627
3627
|
} | undefined;
|
|
3628
3628
|
} | null;
|
|
3629
3629
|
key?: string | undefined;
|
|
@@ -3890,7 +3890,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3890
3890
|
dispatchedAt?: number | null | undefined;
|
|
3891
3891
|
revokedAt?: number | null | undefined;
|
|
3892
3892
|
reconciliation?: {
|
|
3893
|
-
status: "
|
|
3893
|
+
status: "pending" | "failed" | "removed" | "preserved" | "granted";
|
|
3894
3894
|
ownership: "external" | "unclaimed" | "relay";
|
|
3895
3895
|
at: number;
|
|
3896
3896
|
reason: string | null;
|
|
@@ -3949,15 +3949,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3949
3949
|
};
|
|
3950
3950
|
};
|
|
3951
3951
|
tier: string;
|
|
3952
|
+
} | {
|
|
3953
|
+
kind: "points";
|
|
3954
|
+
balance: string;
|
|
3955
|
+
amount: number;
|
|
3952
3956
|
} | {
|
|
3953
3957
|
kind: "integration";
|
|
3954
3958
|
provider: "discord";
|
|
3955
3959
|
action: "grant-role";
|
|
3956
3960
|
roleId: string;
|
|
3957
|
-
} | {
|
|
3958
|
-
kind: "points";
|
|
3959
|
-
balance: string;
|
|
3960
|
-
amount: number;
|
|
3961
3961
|
})[] | null;
|
|
3962
3962
|
evaluationRun: number;
|
|
3963
3963
|
deferCount: number;
|
|
@@ -3972,17 +3972,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3972
3972
|
requestedReview: boolean;
|
|
3973
3973
|
createdAt: number;
|
|
3974
3974
|
input?: {
|
|
3975
|
-
kind: "text";
|
|
3976
|
-
value: string;
|
|
3977
|
-
} | {
|
|
3978
|
-
kind: "url";
|
|
3979
|
-
value: string;
|
|
3980
|
-
} | {
|
|
3981
3975
|
kind: "quiz";
|
|
3982
3976
|
answers: {
|
|
3983
3977
|
[k: string]: string;
|
|
3984
3978
|
};
|
|
3985
3979
|
release?: string | undefined;
|
|
3980
|
+
} | {
|
|
3981
|
+
kind: "text";
|
|
3982
|
+
value: string;
|
|
3983
|
+
} | {
|
|
3984
|
+
kind: "url";
|
|
3985
|
+
value: string;
|
|
3986
3986
|
} | undefined;
|
|
3987
3987
|
}>;
|
|
3988
3988
|
upload: (file: Blob, requestOptions?: RelayRequestOptions) => Promise<{
|
|
@@ -4100,14 +4100,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4100
4100
|
content: {
|
|
4101
4101
|
performance: (query: zod.input<typeof contentPerformanceQuerySchema>, requestOptions?: RelayRequestOptions) => Promise<{
|
|
4102
4102
|
current: {
|
|
4103
|
-
state: "
|
|
4103
|
+
state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "content-pending" | "content-unqualified" | "waiting";
|
|
4104
4104
|
reason: string | null;
|
|
4105
4105
|
contentAttempt: string;
|
|
4106
4106
|
attempt: string | null;
|
|
4107
4107
|
reward: {
|
|
4108
4108
|
attempt: string | null;
|
|
4109
4109
|
completion: string | null;
|
|
4110
|
-
state: "
|
|
4110
|
+
state: "awarded" | "excluded" | "unresolved";
|
|
4111
4111
|
};
|
|
4112
4112
|
};
|
|
4113
4113
|
items: {
|
|
@@ -4116,7 +4116,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4116
4116
|
observation: string;
|
|
4117
4117
|
observedAt: number;
|
|
4118
4118
|
metrics: Record<string, number>;
|
|
4119
|
-
state: "
|
|
4119
|
+
state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified";
|
|
4120
4120
|
reason: string | null;
|
|
4121
4121
|
}[];
|
|
4122
4122
|
nextCursor: string | null;
|
|
@@ -4131,12 +4131,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4131
4131
|
revision: string;
|
|
4132
4132
|
observation: string;
|
|
4133
4133
|
current: boolean;
|
|
4134
|
-
state: "
|
|
4134
|
+
state: "blocked" | "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "stale" | "unavailable";
|
|
4135
4135
|
reason: string | null;
|
|
4136
4136
|
reward: {
|
|
4137
4137
|
attempt: string | null;
|
|
4138
4138
|
completion: string | null;
|
|
4139
|
-
state: "
|
|
4139
|
+
state: "awarded" | "excluded" | "unresolved";
|
|
4140
4140
|
};
|
|
4141
4141
|
}[];
|
|
4142
4142
|
nextCursor: string | null;
|