@domino-sdk/relay 1.0.0-next.10 → 1.0.0-next.13
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 +39 -36
- package/dist/authoring.js +10 -3
- package/dist/avatar.d.ts +2 -2
- package/dist/browser.d.ts +153 -129
- package/dist/browser.js +6 -6
- package/dist/{pages-D3titw5B.d.ts → catalog-C85V1NgW.d.ts} +178 -216
- package/dist/{chunk-ZWY3R6B3.js → chunk-6A2V4L3T.js} +4 -0
- package/dist/{chunk-YYD4QUBO.js → chunk-CRNQP7NV.js} +550 -470
- package/dist/{chunk-X2F2RAR3.js → chunk-EZWNGI5B.js} +23 -4
- package/dist/{chunk-7Q4BGGT6.js → chunk-FXYJ4OMX.js} +1 -1
- package/dist/{chunk-4LBUTHD6.js → chunk-II7DRZSL.js} +1 -1
- package/dist/chunk-KS33GOUL.js +83 -0
- package/dist/{chunk-QR7ZA2BJ.js → chunk-M64XHC42.js} +48 -4
- package/dist/chunk-MNQI35OG.js +100 -0
- package/dist/{chunk-PHU5VDLR.js → chunk-OA2KMQVZ.js} +41 -26
- package/dist/{chunk-P6FK43GG.js → chunk-WQ24ILGO.js} +140 -41
- package/dist/{client-CT4-S5vc.d.ts → client-Bf9PNUIi.d.ts} +61 -80
- package/dist/deployments-CNCP0JnD.d.ts +4250 -0
- package/dist/identity-integration-CBR8l3ju.d.ts +37 -0
- package/dist/images-BG4pdO4y.d.ts +234 -0
- package/dist/index.d.ts +10 -8
- package/dist/index.js +8 -5
- package/dist/{integrations-Ba5TtqTv.d.ts → integrations-EjQzIApL.d.ts} +1 -88
- package/dist/internal.d.ts +7 -38
- package/dist/internal.js +15 -88
- package/dist/observations-CQ6IcNuQ.d.ts +90 -0
- package/dist/pages-KYK1L60W.d.ts +152 -0
- package/dist/portal-proxy.js +5 -4
- package/dist/{profiles-DDMFBRKe.d.ts → profiles-BtOXMGcC.d.ts} +1 -1
- package/dist/react/index.d.ts +150 -31
- package/dist/react/index.js +149 -11
- package/dist/{submission-input-0OOGaq8c.d.ts → referrals-KQfP4pBf.d.ts} +189 -182
- package/dist/request-error-VnTiMXc3.d.ts +52 -0
- package/dist/{schema-Di3aLSiK.d.ts → schema-BF_TQsmT.d.ts} +338 -47
- package/dist/schema.d.ts +14 -4126
- package/dist/schema.js +46 -40
- package/dist/server/index.d.ts +19445 -0
- package/dist/server/index.js +1884 -0
- package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
- package/dist/submission-input-CccwAl5Z.d.ts +83 -0
- package/dist/{images-BTgk6OmC.d.ts → trackers-W7nRdRr7.d.ts} +1 -232
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +1 -0
- package/dist/{wallet-BGOfFkG9.d.ts → wallet-BtiG0Xhr.d.ts} +1 -1
- package/package.json +5 -1
- package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
|
@@ -31,12 +31,10 @@ declare const quizContentSchema: z.ZodArray<z.ZodObject<{
|
|
|
31
31
|
}, z.core.$strict>>;
|
|
32
32
|
type QuizContent = z.infer<typeof quizContentSchema>;
|
|
33
33
|
|
|
34
|
-
declare const communityTimeZoneSchema: z.ZodString;
|
|
35
34
|
declare const streakPolicySchema: z.ZodObject<{
|
|
36
35
|
kind: z.ZodLiteral<"streak">;
|
|
37
36
|
days: z.ZodNumber;
|
|
38
|
-
|
|
39
|
-
}, z.core.$strict>;
|
|
37
|
+
}, z.core.$strip>;
|
|
40
38
|
type StreakPolicy = z.infer<typeof streakPolicySchema>;
|
|
41
39
|
declare const streakProgressSchema: z.ZodObject<{
|
|
42
40
|
goal: z.ZodNumber;
|
|
@@ -70,4 +68,4 @@ declare const streakProgressSchema: z.ZodObject<{
|
|
|
70
68
|
}, z.core.$strip>;
|
|
71
69
|
type StreakProgress = z.infer<typeof streakProgressSchema>;
|
|
72
70
|
|
|
73
|
-
export { type QuizContent as Q, type StreakProgress as S, type StreakPolicy as a, quizContentSchema as b,
|
|
71
|
+
export { type QuizContent as Q, type StreakProgress as S, type StreakPolicy as a, quizContentSchema as b, quizQuestionSchema as c, quizQuestionsSchema as d, streakProgressSchema as e, quizChoiceSchema as q, streakPolicySchema as s };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const authProviderSchema: z.ZodEnum<{
|
|
4
|
+
google: "google";
|
|
5
|
+
apple: "apple";
|
|
6
|
+
x: "x";
|
|
7
|
+
discord: "discord";
|
|
8
|
+
}>;
|
|
9
|
+
type AuthProvider = z.infer<typeof authProviderSchema>;
|
|
10
|
+
declare const accountConnectionSchema: z.ZodObject<{
|
|
11
|
+
provider: z.ZodEnum<{
|
|
12
|
+
google: "google";
|
|
13
|
+
apple: "apple";
|
|
14
|
+
x: "x";
|
|
15
|
+
discord: "discord";
|
|
16
|
+
}>;
|
|
17
|
+
configured: z.ZodBoolean;
|
|
18
|
+
status: z.ZodEnum<{
|
|
19
|
+
disconnected: "disconnected";
|
|
20
|
+
connected: "connected";
|
|
21
|
+
reconnect: "reconnect";
|
|
22
|
+
}>;
|
|
23
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
24
|
+
revision: z.ZodNumber;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
type AccountConnection = z.infer<typeof accountConnectionSchema>;
|
|
27
|
+
declare const discordMemberInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
28
|
+
declare const discordMessageInputSchema: z.ZodObject<{
|
|
29
|
+
channelId: z.ZodString;
|
|
30
|
+
messageId: z.ZodString;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
declare const discordMemberSchema: z.ZodObject<{
|
|
33
|
+
userId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
nickname: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
boostingSince: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
roles: z.ZodArray<z.ZodString>;
|
|
38
|
+
joinedAt: z.ZodNullable<z.ZodString>;
|
|
39
|
+
pending: z.ZodBoolean;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
type DiscordMember = z.infer<typeof discordMemberSchema>;
|
|
42
|
+
|
|
43
|
+
declare const textOptionsSchema: z.ZodObject<{
|
|
44
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
46
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
declare const urlOptionsSchema: z.ZodObject<{
|
|
49
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
50
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
type TextOptions = z.input<typeof textOptionsSchema>;
|
|
53
|
+
type UrlOptions = z.input<typeof urlOptionsSchema>;
|
|
54
|
+
declare const textEvidenceSchema: z.ZodObject<{
|
|
55
|
+
kind: z.ZodLiteral<"text">;
|
|
56
|
+
value: z.ZodString;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
declare const urlEvidenceSchema: z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"url">;
|
|
60
|
+
value: z.ZodString;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
declare const valueEvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"text">;
|
|
64
|
+
value: z.ZodString;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
66
|
+
kind: z.ZodLiteral<"url">;
|
|
67
|
+
value: z.ZodString;
|
|
68
|
+
}, z.core.$strict>], "kind">;
|
|
69
|
+
type TextEvidence = z.infer<typeof textEvidenceSchema>;
|
|
70
|
+
type UrlEvidence = z.infer<typeof urlEvidenceSchema>;
|
|
71
|
+
type ValueEvidence = z.infer<typeof valueEvidenceSchema>;
|
|
72
|
+
/** Validates a claim without fetching it or changing the captured value. */
|
|
73
|
+
declare function validateSubmissionValue(input: ValueEvidence, contract: {
|
|
74
|
+
input: "text";
|
|
75
|
+
constraints: z.output<typeof textOptionsSchema>;
|
|
76
|
+
} | {
|
|
77
|
+
input: "url";
|
|
78
|
+
constraints: z.output<typeof urlOptionsSchema>;
|
|
79
|
+
}): string | null;
|
|
80
|
+
/** Extract an ID only. The URL and its author name are untrusted claims. */
|
|
81
|
+
declare function xPostId(value: string): string | null;
|
|
82
|
+
|
|
83
|
+
export { type AccountConnection as A, type DiscordMember as D, type TextEvidence as T, type UrlEvidence as U, type ValueEvidence as V, type AuthProvider as a, type TextOptions as b, type UrlOptions as c, accountConnectionSchema as d, authProviderSchema as e, discordMemberInputSchema as f, discordMemberSchema as g, discordMessageInputSchema as h, textOptionsSchema as i, urlOptionsSchema as j, valueEvidenceSchema as k, textEvidenceSchema as t, urlEvidenceSchema as u, validateSubmissionValue as v, xPostId as x };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhotoResult } from './schema-Di3aLSiK.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Which record observations fire a tracker trigger. `"new-record"`: the first observation of each
|
|
@@ -1331,234 +1330,4 @@ type TrackerReader = {
|
|
|
1331
1330
|
}, query?: TrackerQuery): Promise<z.infer<typeof trackerSummarySchema>>;
|
|
1332
1331
|
};
|
|
1333
1332
|
|
|
1334
|
-
|
|
1335
|
-
* Quest code names an image; the platform fetches, decodes and pins it. No bytes or URLs cross the
|
|
1336
|
-
* sandbox boundary, so a quest cannot make the platform fetch an arbitrary address.
|
|
1337
|
-
*/
|
|
1338
|
-
declare const imageReferenceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1339
|
-
evidence: z.ZodString;
|
|
1340
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1341
|
-
x: z.ZodLiteral<"profile">;
|
|
1342
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1343
|
-
x: z.ZodLiteral<"post">;
|
|
1344
|
-
postId: z.ZodString;
|
|
1345
|
-
index: z.ZodDefault<z.ZodNumber>;
|
|
1346
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1347
|
-
asset: z.ZodString;
|
|
1348
|
-
}, z.core.$strict>]>;
|
|
1349
|
-
type ImageReference = z.input<typeof imageReferenceSchema>;
|
|
1350
|
-
declare const imageFieldSchema: z.ZodObject<{
|
|
1351
|
-
type: z.ZodEnum<{
|
|
1352
|
-
string: "string";
|
|
1353
|
-
number: "number";
|
|
1354
|
-
boolean: "boolean";
|
|
1355
|
-
}>;
|
|
1356
|
-
description: z.ZodString;
|
|
1357
|
-
}, z.core.$strict>;
|
|
1358
|
-
declare const imageFieldsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1359
|
-
type: z.ZodEnum<{
|
|
1360
|
-
string: "string";
|
|
1361
|
-
number: "number";
|
|
1362
|
-
boolean: "boolean";
|
|
1363
|
-
}>;
|
|
1364
|
-
description: z.ZodString;
|
|
1365
|
-
}, z.core.$strict>>;
|
|
1366
|
-
type ImageFields = z.input<typeof imageFieldsSchema>;
|
|
1367
|
-
declare const imageRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1368
|
-
operation: z.ZodLiteral<"inspect">;
|
|
1369
|
-
image: z.ZodUnion<readonly [z.ZodObject<{
|
|
1370
|
-
evidence: z.ZodString;
|
|
1371
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1372
|
-
x: z.ZodLiteral<"profile">;
|
|
1373
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1374
|
-
x: z.ZodLiteral<"post">;
|
|
1375
|
-
postId: z.ZodString;
|
|
1376
|
-
index: z.ZodDefault<z.ZodNumber>;
|
|
1377
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1378
|
-
asset: z.ZodString;
|
|
1379
|
-
}, z.core.$strict>]>;
|
|
1380
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1381
|
-
operation: z.ZodLiteral<"compare">;
|
|
1382
|
-
images: z.ZodTuple<[z.ZodUnion<readonly [z.ZodObject<{
|
|
1383
|
-
evidence: z.ZodString;
|
|
1384
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1385
|
-
x: z.ZodLiteral<"profile">;
|
|
1386
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1387
|
-
x: z.ZodLiteral<"post">;
|
|
1388
|
-
postId: z.ZodString;
|
|
1389
|
-
index: z.ZodDefault<z.ZodNumber>;
|
|
1390
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1391
|
-
asset: z.ZodString;
|
|
1392
|
-
}, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
1393
|
-
evidence: z.ZodString;
|
|
1394
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1395
|
-
x: z.ZodLiteral<"profile">;
|
|
1396
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1397
|
-
x: z.ZodLiteral<"post">;
|
|
1398
|
-
postId: z.ZodString;
|
|
1399
|
-
index: z.ZodDefault<z.ZodNumber>;
|
|
1400
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1401
|
-
asset: z.ZodString;
|
|
1402
|
-
}, z.core.$strict>]>], null>;
|
|
1403
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1404
|
-
operation: z.ZodLiteral<"review">;
|
|
1405
|
-
images: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1406
|
-
evidence: z.ZodString;
|
|
1407
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1408
|
-
x: z.ZodLiteral<"profile">;
|
|
1409
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1410
|
-
x: z.ZodLiteral<"post">;
|
|
1411
|
-
postId: z.ZodString;
|
|
1412
|
-
index: z.ZodDefault<z.ZodNumber>;
|
|
1413
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1414
|
-
asset: z.ZodString;
|
|
1415
|
-
}, z.core.$strict>]>>;
|
|
1416
|
-
criteria: z.ZodString;
|
|
1417
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1418
|
-
operation: z.ZodLiteral<"extract">;
|
|
1419
|
-
image: z.ZodUnion<readonly [z.ZodObject<{
|
|
1420
|
-
evidence: z.ZodString;
|
|
1421
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1422
|
-
x: z.ZodLiteral<"profile">;
|
|
1423
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1424
|
-
x: z.ZodLiteral<"post">;
|
|
1425
|
-
postId: z.ZodString;
|
|
1426
|
-
index: z.ZodDefault<z.ZodNumber>;
|
|
1427
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1428
|
-
asset: z.ZodString;
|
|
1429
|
-
}, z.core.$strict>]>;
|
|
1430
|
-
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1431
|
-
type: z.ZodEnum<{
|
|
1432
|
-
string: "string";
|
|
1433
|
-
number: "number";
|
|
1434
|
-
boolean: "boolean";
|
|
1435
|
-
}>;
|
|
1436
|
-
description: z.ZodString;
|
|
1437
|
-
}, z.core.$strict>>;
|
|
1438
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1439
|
-
operation: z.ZodLiteral<"seen">;
|
|
1440
|
-
image: z.ZodUnion<readonly [z.ZodObject<{
|
|
1441
|
-
evidence: z.ZodString;
|
|
1442
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1443
|
-
x: z.ZodLiteral<"profile">;
|
|
1444
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1445
|
-
x: z.ZodLiteral<"post">;
|
|
1446
|
-
postId: z.ZodString;
|
|
1447
|
-
index: z.ZodDefault<z.ZodNumber>;
|
|
1448
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1449
|
-
asset: z.ZodString;
|
|
1450
|
-
}, z.core.$strict>]>;
|
|
1451
|
-
maxDistance: z.ZodDefault<z.ZodNumber>;
|
|
1452
|
-
}, z.core.$strict>], "operation">;
|
|
1453
|
-
type ImageRequest = z.input<typeof imageRequestSchema>;
|
|
1454
|
-
declare const imageInspectionSchema: z.ZodObject<{
|
|
1455
|
-
width: z.ZodNumber;
|
|
1456
|
-
height: z.ZodNumber;
|
|
1457
|
-
format: z.ZodEnum<{
|
|
1458
|
-
jpeg: "jpeg";
|
|
1459
|
-
png: "png";
|
|
1460
|
-
webp: "webp";
|
|
1461
|
-
gif: "gif";
|
|
1462
|
-
avif: "avif";
|
|
1463
|
-
}>;
|
|
1464
|
-
bytes: z.ZodNumber;
|
|
1465
|
-
sha256: z.ZodString;
|
|
1466
|
-
phash: z.ZodString;
|
|
1467
|
-
dhash: z.ZodString;
|
|
1468
|
-
}, z.core.$strict>;
|
|
1469
|
-
type ImageInspection = z.infer<typeof imageInspectionSchema>;
|
|
1470
|
-
declare const imageComparisonSchema: z.ZodObject<{
|
|
1471
|
-
identical: z.ZodBoolean;
|
|
1472
|
-
phashDistance: z.ZodNumber;
|
|
1473
|
-
dhashDistance: z.ZodNumber;
|
|
1474
|
-
}, z.core.$strict>;
|
|
1475
|
-
type ImageComparison = z.infer<typeof imageComparisonSchema>;
|
|
1476
|
-
declare const imageExtractionSchema: z.ZodObject<{
|
|
1477
|
-
values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1478
|
-
reason: z.ZodString;
|
|
1479
|
-
}, z.core.$strict>;
|
|
1480
|
-
type ImageExtraction = z.infer<typeof imageExtractionSchema>;
|
|
1481
|
-
declare const imageSightingsSchema: z.ZodObject<{
|
|
1482
|
-
matches: z.ZodNumber;
|
|
1483
|
-
closestDistance: z.ZodNullable<z.ZodNumber>;
|
|
1484
|
-
firstSeenAt: z.ZodNullable<z.ZodNumber>;
|
|
1485
|
-
}, z.core.$strict>;
|
|
1486
|
-
type ImageSightings = z.infer<typeof imageSightingsSchema>;
|
|
1487
|
-
/**
|
|
1488
|
-
* One reference image in a deployment bundle: a reference, never the bytes. The CLI uploads each
|
|
1489
|
-
* file to storage before the preview; a hosted build stages it. `path` is where the bundle found
|
|
1490
|
-
* the file, relative to relay.json; the platform ignores it.
|
|
1491
|
-
*/
|
|
1492
|
-
declare const imageAssetArtifactSchema: z.ZodObject<{
|
|
1493
|
-
key: z.ZodString;
|
|
1494
|
-
sha256: z.ZodString;
|
|
1495
|
-
size: z.ZodNumber;
|
|
1496
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1497
|
-
}, z.core.$strict>;
|
|
1498
|
-
type ImageAssetArtifact = z.infer<typeof imageAssetArtifactSchema>;
|
|
1499
|
-
/** Ask for upload URLs for images the project's storage does not hold yet. */
|
|
1500
|
-
declare const imageUploadRequestSchema: z.ZodObject<{
|
|
1501
|
-
images: z.ZodArray<z.ZodObject<{
|
|
1502
|
-
sha256: z.ZodString;
|
|
1503
|
-
size: z.ZodNumber;
|
|
1504
|
-
type: z.ZodEnum<{
|
|
1505
|
-
"image/jpeg": "image/jpeg";
|
|
1506
|
-
"image/png": "image/png";
|
|
1507
|
-
"image/webp": "image/webp";
|
|
1508
|
-
}>;
|
|
1509
|
-
}, z.core.$strict>>;
|
|
1510
|
-
}, z.core.$strict>;
|
|
1511
|
-
/** `upload` is null when the image is already stored; otherwise PUT the exact bytes before it expires. */
|
|
1512
|
-
declare const imageUploadsSchema: z.ZodObject<{
|
|
1513
|
-
images: z.ZodArray<z.ZodObject<{
|
|
1514
|
-
sha256: z.ZodString;
|
|
1515
|
-
upload: z.ZodNullable<z.ZodObject<{
|
|
1516
|
-
url: z.ZodString;
|
|
1517
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1518
|
-
expiresAt: z.ZodNumber;
|
|
1519
|
-
}, z.core.$strict>>;
|
|
1520
|
-
}, z.core.$strict>>;
|
|
1521
|
-
}, z.core.$strict>;
|
|
1522
|
-
declare const publishedImageSchema: z.ZodObject<{
|
|
1523
|
-
key: z.ZodString;
|
|
1524
|
-
sha256: z.ZodString;
|
|
1525
|
-
type: z.ZodEnum<{
|
|
1526
|
-
"image/jpeg": "image/jpeg";
|
|
1527
|
-
"image/png": "image/png";
|
|
1528
|
-
"image/webp": "image/webp";
|
|
1529
|
-
}>;
|
|
1530
|
-
size: z.ZodNumber;
|
|
1531
|
-
width: z.ZodNumber;
|
|
1532
|
-
height: z.ZodNumber;
|
|
1533
|
-
}, z.core.$strict>;
|
|
1534
|
-
type PublishedImage = z.infer<typeof publishedImageSchema>;
|
|
1535
|
-
type Extracted<F extends ImageFields> = {
|
|
1536
|
-
[K in keyof F]: (F[K]["type"] extends "number" ? number : F[K]["type"] extends "boolean" ? boolean : string) | null;
|
|
1537
|
-
};
|
|
1538
|
-
/** Evaluator `ctx.images`. Each call uses one of the evaluation's eight capability calls. */
|
|
1539
|
-
interface ImageReader {
|
|
1540
|
-
inspect(image: ImageReference): Promise<ImageInspection>;
|
|
1541
|
-
compare(a: ImageReference, b: ImageReference): Promise<ImageComparison>;
|
|
1542
|
-
review(options: {
|
|
1543
|
-
images: ImageReference[];
|
|
1544
|
-
criteria: string;
|
|
1545
|
-
}): Promise<PhotoResult>;
|
|
1546
|
-
extract<const F extends ImageFields>(options: {
|
|
1547
|
-
image: ImageReference;
|
|
1548
|
-
fields: F;
|
|
1549
|
-
}): Promise<{
|
|
1550
|
-
values: Extracted<F>;
|
|
1551
|
-
reason: string;
|
|
1552
|
-
}>;
|
|
1553
|
-
/**
|
|
1554
|
-
* Records the image for this attempt, then counts other participants' recorded images within
|
|
1555
|
-
* `maxDistance`. The record is written when `seen` runs, not when the attempt is decided, so it
|
|
1556
|
-
* stays even if the attempt is rejected: concurrent submissions of one photo must see each
|
|
1557
|
-
* other. Replays reuse the captured result.
|
|
1558
|
-
*/
|
|
1559
|
-
seen(image: ImageReference, options?: {
|
|
1560
|
-
maxDistance?: number;
|
|
1561
|
-
}): Promise<ImageSightings>;
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
export { defaultTriggerMode as $, type AccountRole as A, type Bound as B, type Condition as C, type DataLeaves as D, type TrackerAttribution as E, type TrackerBound as F, type TrackerCondition as G, type TrackerContent as H, type IdentityKind as I, type TrackerContentQuery as J, type TrackerDataIssue as K, type TrackerOutcome as L, type TrackerOutcomeQuery as M, type TrackerPreview as N, type TrackerPreviewInput as O, type PublishedImage as P, type TrackerQuery as Q, type TrackerRecord as R, type TrackerSkipCode as S, type TrackerDefinition as T, type TrackerStatus as U, type TrackerWhere as V, type WithRecordData as W, type XTweet as X, type TypedTrackerRecord as Y, accountRoleSchema as Z, beneficiaryRole as _, type TrackerSource as a, identityKindSchema as a0, imageAssetArtifactSchema as a1, imageComparisonSchema as a2, imageExtractionSchema as a3, imageFieldSchema as a4, imageFieldsSchema as a5, imageInspectionSchema as a6, imageReferenceSchema as a7, imageRequestSchema as a8, imageSightingsSchema as a9, trackerPreviewLimits as aA, trackerPreviewSchema as aB, trackerQuerySchema as aC, trackerRecordInputSchema as aD, trackerRecordSchema as aE, trackerSkipCodes as aF, trackerSourceSchema as aG, trackerStatusSchema as aH, trackerSummarySchema as aI, trackerTriggerModeSchema as aJ, trackerTriggerPolicySchema as aK, trackerTriggerRecordSchema as aL, trackerWhereSchema as aM, triggerMode as aN, whereConditions as aO, whereSettings as aP, xAccountRoles as aQ, xContentBodySchema as aR, xTweetSchema as aS, type TrackerDataBudget as aT, schemaCheckedReader as aU, trackerDataBatchSteps as aV, trackerDataIssue as aW, trackerDataIssues as aX, trackerDataPathTypes as aY, trackerDataRecordSteps as aZ, whereSchemaIssue as a_, imageUploadRequestSchema as aa, imageUploadsSchema as ab, publishedImageSchema as ac, publishedTrackerSchema as ad, sourceIdentities as ae, trackerAccountSchema as af, trackerArtifactSchema as ag, trackerAttributionSchema as ah, trackerBoundSchema as ai, trackerConditionSchema as aj, trackerContentQuerySchema as ak, trackerContentReadSchema as al, trackerContentSchema as am, trackerControlSchema as an, trackerDataMaxBranches as ao, trackerDataMaxEntries as ap, trackerDataSchemaSchema as aq, trackerEvidenceSchema as ar, trackerIngestResultSchema as as, trackerIngestSchema as at, trackerOutcomePageSchema as au, trackerOutcomeQuerySchema as av, trackerOutcomeRetrySchema as aw, trackerOutcomeSchema as ax, trackerPageSchema as ay, trackerPreviewInputSchema as az, type Tracker as b, customSourceSchema as c, type TrackerData as d, type TrackerTriggerContext as e, type TrackerTriggerPolicy as f, type TrackerReader as g, type ImageReader as h, type Where as i, type TrackerTriggerMode as j, type WhereSetting as k, type TrackerDataSchema as l, type TrackerPage as m, trackerDataSchema as n, trackerTriggerContextSchema as o, type ImageAssetArtifact as p, type ImageComparison as q, type ImageExtraction as r, type ImageFields as s, trackerDefinitionSchema as t, type ImageInspection as u, type ImageReference as v, type ImageRequest as w, xSearchSourceSchema as x, type ImageSightings as y, type TrackerAccount as z };
|
|
1333
|
+
export { trackerDataMaxEntries as $, type AccountRole as A, type Bound as B, type Condition as C, type DataLeaves as D, type WhereSetting as E, type WithRecordData as F, accountRoleSchema as G, beneficiaryRole as H, type IdentityKind as I, customSourceSchema as J, defaultTriggerMode as K, identityKindSchema as L, publishedTrackerSchema as M, sourceIdentities as N, trackerAccountSchema as O, trackerArtifactSchema as P, trackerAttributionSchema as Q, trackerBoundSchema as R, trackerConditionSchema as S, type Tracker as T, trackerContentQuerySchema as U, trackerContentReadSchema as V, type Where as W, type XTweet as X, trackerContentSchema as Y, trackerControlSchema as Z, trackerDataMaxBranches as _, type TrackerAccount as a, trackerDataSchemaSchema as a0, trackerDefinitionSchema as a1, trackerEvidenceSchema as a2, trackerIngestResultSchema as a3, trackerIngestSchema as a4, trackerOutcomePageSchema as a5, trackerOutcomeQuerySchema as a6, trackerOutcomeRetrySchema as a7, trackerOutcomeSchema as a8, trackerPageSchema as a9, trackerDataIssue as aA, trackerDataIssues as aB, trackerDataPathTypes as aC, trackerDataRecordSteps as aD, whereSchemaIssue as aE, trackerPreviewInputSchema as aa, trackerPreviewLimits as ab, trackerPreviewSchema as ac, trackerQuerySchema as ad, trackerRecordInputSchema as ae, trackerRecordSchema as af, trackerSkipCodes as ag, trackerSourceSchema as ah, trackerStatusSchema as ai, trackerSummarySchema as aj, trackerTriggerContextSchema as ak, trackerTriggerModeSchema as al, trackerTriggerPolicySchema as am, trackerTriggerRecordSchema as an, trackerWhereSchema as ao, triggerMode as ap, whereConditions as aq, whereSettings as ar, xAccountRoles as as, xContentBodySchema as at, xSearchSourceSchema as au, xTweetSchema as av, trackerDataSchema as aw, type TrackerDataBudget as ax, schemaCheckedReader as ay, trackerDataBatchSteps as az, type TrackerAttribution as b, type TrackerBound as c, type TrackerCondition as d, type TrackerContent as e, type TrackerContentQuery as f, type TrackerData as g, type TrackerDataIssue as h, type TrackerDataSchema as i, type TrackerDefinition as j, type TrackerOutcome as k, type TrackerOutcomeQuery as l, type TrackerPage as m, type TrackerPreview as n, type TrackerPreviewInput as o, type TrackerQuery as p, type TrackerReader as q, type TrackerRecord as r, type TrackerSkipCode as s, type TrackerSource as t, type TrackerStatus as u, type TrackerTriggerContext as v, type TrackerTriggerMode as w, type TrackerTriggerPolicy as x, type TrackerWhere as y, type TypedTrackerRecord as z };
|
package/dist/vite.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ type ResolveContext = {
|
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Fails the build when browser code imports server-only code: the management
|
|
13
|
-
* client (`@domino-sdk/relay
|
|
13
|
+
* client (`@domino-sdk/relay/server`), the CLI, the participant proxy, or anything under
|
|
14
14
|
* the app's `server/` directory. Management credentials and app secrets live
|
|
15
15
|
* in the Worker; this keeps them from ever reaching a browser bundle.
|
|
16
16
|
*
|
package/dist/vite.js
CHANGED
|
@@ -228,4 +228,4 @@ declare const walletBalanceSchema: z.ZodObject<{
|
|
|
228
228
|
}, z.core.$strict>;
|
|
229
229
|
type WalletBalance = z.infer<typeof walletBalanceSchema>;
|
|
230
230
|
|
|
231
|
-
export {
|
|
231
|
+
export { walletChallengeInputSchema as A, walletChallengeSchema as B, type CosmosChain as C, walletConnectionSchema as D, type EvmChainId as E, walletMessageChallengeSchema as F, walletProofSchema as G, walletSignInFamilies as H, walletSignInNetwork as I, walletSignInNetworkSchema as J, walletSignInNetworksSchema as K, type LinkedWallet as L, walletSignatureSchema as M, walletUnlinkInputSchema as N, type SolanaBalance as S, type WalletAddressInput as W, type CosmosNetwork as a, type WalletChain as b, type WalletMessageChallenge as c, type WalletSignInNetwork as d, type WalletSignature as e, type WalletSigner as f, type WalletUnlinkInput as g, WALLETS_PER_CHAIN as h, type WalletBalance as i, type WalletBalanceQuery as j, type WalletConnection as k, caip10 as l, cosmosAddressSchema as m, cosmosChain as n, cosmosNetworkSchema as o, evmAddressSchema as p, evmChainIdSchema as q, isEvmChainId as r, linkedWalletSchema as s, solanaAddressSchema as t, solanaBalanceSchema as u, solanaMainnet as v, walletAddressInput as w, walletAddressInputSchema as x, walletBalanceSchema as y, walletChainSchema as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domino-sdk/relay",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
"./internal": {
|
|
43
43
|
"types": "./dist/internal.d.ts",
|
|
44
44
|
"default": "./dist/internal.js"
|
|
45
|
+
},
|
|
46
|
+
"./server": {
|
|
47
|
+
"types": "./dist/server/index.d.ts",
|
|
48
|
+
"default": "./dist/server/index.js"
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
51
|
"sideEffects": false,
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const pointLedgerPropertiesSchema: z.ZodObject<{
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
description: z.ZodDefault<z.ZodString>;
|
|
6
|
-
}, z.core.$strict>;
|
|
7
|
-
declare const createPointLedgerSchema: z.ZodObject<{
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
description: z.ZodDefault<z.ZodString>;
|
|
10
|
-
actionId: z.ZodString;
|
|
11
|
-
key: z.ZodOptional<z.ZodString>;
|
|
12
|
-
}, z.core.$strict>;
|
|
13
|
-
declare const pointLedgerSchema: z.ZodObject<{
|
|
14
|
-
name: z.ZodString;
|
|
15
|
-
description: z.ZodDefault<z.ZodString>;
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
}, z.core.$strict>;
|
|
18
|
-
declare const pointLedgerDeclarationSchema: z.ZodObject<{
|
|
19
|
-
name: z.ZodString;
|
|
20
|
-
description: z.ZodDefault<z.ZodString>;
|
|
21
|
-
key: z.ZodString;
|
|
22
|
-
}, z.core.$strict>;
|
|
23
|
-
/**
|
|
24
|
-
* What an app needs to recognize and name a ledger it finds in a read. `key` is
|
|
25
|
-
* the authoring key, null for ledgers created in Console without one.
|
|
26
|
-
* Reads return ledger IDs; match them against `key` rather than comparing
|
|
27
|
-
* an ID with an authoring key.
|
|
28
|
-
*/
|
|
29
|
-
declare const pointLedgerReferenceSchema: z.ZodObject<{
|
|
30
|
-
id: z.ZodString;
|
|
31
|
-
key: z.ZodNullable<z.ZodString>;
|
|
32
|
-
name: z.ZodString;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
type PointLedger = z.infer<typeof pointLedgerSchema>;
|
|
35
|
-
type PointLedgerReference = z.infer<typeof pointLedgerReferenceSchema>;
|
|
36
|
-
|
|
37
|
-
export { type PointLedgerReference as P, type PointLedger as a, pointLedgerPropertiesSchema as b, createPointLedgerSchema as c, pointLedgerReferenceSchema as d, pointLedgerSchema as e, pointLedgerDeclarationSchema as p };
|