@domino-sdk/relay 1.74.0 → 1.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/dist/authoring.d.ts +6 -6
- package/dist/authoring.js +4 -4
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +8 -8
- package/dist/{capability-error-Bn6cCqof.d.ts → capability-error-D56xxE2i.d.ts} +1 -1
- package/dist/{chunk-CW7FJ5PX.js → chunk-3KHVIUKK.js} +1 -1
- package/dist/{chunk-2LURSPDM.js → chunk-4WODSE6Y.js} +2 -2
- package/dist/{chunk-F66GGNKD.js → chunk-4YKOSNYI.js} +1 -1
- package/dist/{chunk-ELHMJODS.js → chunk-7B7MDHJ6.js} +1 -1
- package/dist/{chunk-6TDHRGBM.js → chunk-7QHROIML.js} +3 -0
- package/dist/{chunk-DNOLNMCW.js → chunk-E4ZQCG44.js} +9 -8
- package/dist/{chunk-SVZ3QWHT.js → chunk-FBS65R66.js} +2 -2
- package/dist/{chunk-KP55TMCC.js → chunk-HEQ7HLXG.js} +1 -1
- package/dist/{chunk-TGQNNMCY.js → chunk-IMX45NSW.js} +6 -6
- package/dist/{chunk-RALBAKKX.js → chunk-K3PEQXDV.js} +1 -1
- package/dist/{chunk-JZT2NLSG.js → chunk-LFFGW7GB.js} +449 -392
- package/dist/{chunk-NI6XRGEL.js → chunk-SPLXHFVX.js} +2 -2
- package/dist/{chunk-KGZ7SRKJ.js → chunk-TAZ5AEYF.js} +1 -1
- package/dist/{chunk-HCOLMJFX.js → chunk-X5REDFGV.js} +4 -3
- package/dist/{chunk-T4PTFCSB.js → chunk-XEXB3WZE.js} +1 -1
- package/dist/{chunk-724CKAC7.js → chunk-YB5BSKVU.js} +3 -3
- package/dist/{chunk-7I7P5UVC.js → chunk-ZXFRHGZC.js} +422 -291
- package/dist/{client-B2aVGf38.d.ts → client-336yROej.d.ts} +2 -2
- package/dist/{identity-integration-C03rUYc0.d.ts → identity-integration-B1f5oOdc.d.ts} +1169 -3
- package/dist/{transport-D77Rbf4D.d.ts → index-BM0DdDYy.d.ts} +614 -1274
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/internal.d.ts +46 -22
- package/dist/internal.js +24 -17
- package/dist/{limits-p-Mg0oSi.d.ts → limits-DICxln-i.d.ts} +6 -0
- package/dist/portal-proxy.d.ts +8 -1
- package/dist/portal-proxy.js +125 -50
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +8 -8
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/H6GH644T.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +4 -4
- package/dist/schema.js +7 -7
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +136 -29
- package/dist/{sign-in-providers-BG22ZZkl.d.ts → sign-in-providers-BMtk_NWY.d.ts} +1 -1
- package/dist/solana.d.ts +3 -3
- package/dist/solana.js +8 -8
- package/dist/{station-check-in-a1deSjbm.d.ts → station-check-in-vcDKQOet.d.ts} +2 -2
- package/dist/{submission-input-DBDLkTF8.d.ts → submission-input-D_NiBR0W.d.ts} +6 -1
- package/dist/telegram.d.ts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +15 -5
- package/package.json +2 -1
- package/dist/runtime/chunks/NYEWMPJH.js +0 -1
package/dist/server/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_MANAGEMENT_TIMEOUT,
|
|
3
|
+
EntitlementSourceKind,
|
|
3
4
|
ManagedAccountStatus,
|
|
4
5
|
ManagementError,
|
|
5
6
|
ManagementErrorCode,
|
|
@@ -73,7 +74,8 @@ import {
|
|
|
73
74
|
domainEndpoints,
|
|
74
75
|
engagementEndpoints,
|
|
75
76
|
entitlementEndpoints,
|
|
76
|
-
|
|
77
|
+
entitlementProvenanceSchema,
|
|
78
|
+
entitlementSourceSchema,
|
|
77
79
|
evidenceRedactionResultSchema,
|
|
78
80
|
evidenceRedactionSchema,
|
|
79
81
|
evidenceRetentionResultSchema,
|
|
@@ -122,6 +124,7 @@ import {
|
|
|
122
124
|
knownConnectionSyncStatuses,
|
|
123
125
|
knownPluginSlots,
|
|
124
126
|
leaderboardEndpoints,
|
|
127
|
+
leaderboardMemberStandingSchema,
|
|
125
128
|
leaderboardSettlementExportSchema,
|
|
126
129
|
leaderboardSettlementMeasurementRetrySchema,
|
|
127
130
|
leaderboardSettlementRejectionSchema,
|
|
@@ -148,6 +151,7 @@ import {
|
|
|
148
151
|
managedOfferSchema,
|
|
149
152
|
managedQuestEnrollmentPageSchema,
|
|
150
153
|
managedQuestEnrollmentSchema,
|
|
154
|
+
managedReferralHistorySchema,
|
|
151
155
|
managedReleasePageSchema,
|
|
152
156
|
managedReleaseQuerySchema,
|
|
153
157
|
managedResourceListSchema,
|
|
@@ -207,7 +211,6 @@ import {
|
|
|
207
211
|
participantEndpoints,
|
|
208
212
|
participantSignInInputSchema,
|
|
209
213
|
participantSignInSchema,
|
|
210
|
-
permissionSchema,
|
|
211
214
|
personSchema,
|
|
212
215
|
pluginEndpoints,
|
|
213
216
|
pluginPageSchema,
|
|
@@ -223,10 +226,7 @@ import {
|
|
|
223
226
|
projectGrantSchema,
|
|
224
227
|
projectInputSchema,
|
|
225
228
|
projectMetricsSchema,
|
|
226
|
-
projectPermissionSchema,
|
|
227
229
|
projectPlanSchema,
|
|
228
|
-
projectRolePermissions,
|
|
229
|
-
projectRoleSchema,
|
|
230
230
|
projectSchema,
|
|
231
231
|
projectSetupSchema,
|
|
232
232
|
projectTransferInputSchema,
|
|
@@ -264,8 +264,6 @@ import {
|
|
|
264
264
|
resourceLifecyclePaths,
|
|
265
265
|
resourceLifecycleResultSchema,
|
|
266
266
|
rewardDeliveryEndpoints,
|
|
267
|
-
rolePermissions,
|
|
268
|
-
roleSchema,
|
|
269
267
|
scheduleEndpoints,
|
|
270
268
|
secretEndpoints,
|
|
271
269
|
sequenceCursorSchema,
|
|
@@ -341,13 +339,13 @@ import {
|
|
|
341
339
|
walletIdentitySelectorSchema,
|
|
342
340
|
walletSignatureValid,
|
|
343
341
|
webhookEndpoints
|
|
344
|
-
} from "../chunk-
|
|
342
|
+
} from "../chunk-LFFGW7GB.js";
|
|
345
343
|
import {
|
|
346
344
|
attemptCaptureSchema,
|
|
347
345
|
capturedFactSchema,
|
|
348
346
|
parseImageExtraction,
|
|
349
347
|
parseImageResult
|
|
350
|
-
} from "../chunk-
|
|
348
|
+
} from "../chunk-FBS65R66.js";
|
|
351
349
|
import {
|
|
352
350
|
PayoutSourceKind,
|
|
353
351
|
RestoredDeliveryOutcome,
|
|
@@ -387,12 +385,12 @@ import {
|
|
|
387
385
|
webhookStatePageSchema,
|
|
388
386
|
webhookStateQuerySchema,
|
|
389
387
|
webhookUpdateSchema
|
|
390
|
-
} from "../chunk-
|
|
388
|
+
} from "../chunk-4WODSE6Y.js";
|
|
391
389
|
import {
|
|
392
390
|
sourceDataSchema,
|
|
393
391
|
sourceRoles,
|
|
394
392
|
validateQuestShape
|
|
395
|
-
} from "../chunk-
|
|
393
|
+
} from "../chunk-7B7MDHJ6.js";
|
|
396
394
|
import {
|
|
397
395
|
APP_KV_LIMIT,
|
|
398
396
|
APP_MIGRATION_FILE_BYTES,
|
|
@@ -407,6 +405,8 @@ import {
|
|
|
407
405
|
APP_STORAGE_CELL_CHARACTERS,
|
|
408
406
|
APP_STORAGE_PREVIEW_CHARACTERS,
|
|
409
407
|
APP_STORAGE_ROW_LIMIT,
|
|
408
|
+
AppSecretCredentialKind,
|
|
409
|
+
AppSecretCredentialStatus,
|
|
410
410
|
MemberImportRefusalCode,
|
|
411
411
|
MemberImportState,
|
|
412
412
|
accountVouchedBySchema,
|
|
@@ -418,11 +418,13 @@ import {
|
|
|
418
418
|
appSchedulePathSchema,
|
|
419
419
|
appScheduleResultSchema,
|
|
420
420
|
appScheduleRunSchema,
|
|
421
|
+
appScheduleRunsQuerySchema,
|
|
421
422
|
appScheduleRunsSchema,
|
|
422
423
|
appScheduleSchema,
|
|
423
424
|
appScheduleStateInputSchema,
|
|
424
425
|
appScheduleStateSchema,
|
|
425
426
|
appSchedulesSchema,
|
|
427
|
+
appSecretCredentialSchema,
|
|
426
428
|
appSecretDeclarationSchema,
|
|
427
429
|
appSecretDeclarationsSchema,
|
|
428
430
|
appSecretInputSchema,
|
|
@@ -442,6 +444,7 @@ import {
|
|
|
442
444
|
appStorageSqlClearResultSchema,
|
|
443
445
|
appStorageSqlClearSchema,
|
|
444
446
|
appStorageTablesSchema,
|
|
447
|
+
appStorageValueBytesSchema,
|
|
445
448
|
appStorageValueSchema,
|
|
446
449
|
assetPathSchema,
|
|
447
450
|
boundedBodyText,
|
|
@@ -463,6 +466,7 @@ import {
|
|
|
463
466
|
deviceApproveSchema,
|
|
464
467
|
deviceRedeemSchema,
|
|
465
468
|
deviceStartSchema,
|
|
469
|
+
environmentSchema,
|
|
466
470
|
hostedAppSchema,
|
|
467
471
|
hostedAppSecretsSchema,
|
|
468
472
|
hostedBuildSchema,
|
|
@@ -503,8 +507,14 @@ import {
|
|
|
503
507
|
participantExchangeAccountResultSchema,
|
|
504
508
|
participantExchangeResultSchema,
|
|
505
509
|
participantExchangeSchema,
|
|
510
|
+
permissionSchema,
|
|
511
|
+
projectPermissionSchema,
|
|
512
|
+
projectRolePermissions,
|
|
513
|
+
projectRoleSchema,
|
|
506
514
|
repositoryCreateSchema,
|
|
507
515
|
repositorySchema,
|
|
516
|
+
rolePermissions,
|
|
517
|
+
roleSchema,
|
|
508
518
|
scheduleResult,
|
|
509
519
|
scheduledInvocationSchema,
|
|
510
520
|
stageRequestSchema,
|
|
@@ -528,7 +538,7 @@ import {
|
|
|
528
538
|
starterTemplates,
|
|
529
539
|
starters,
|
|
530
540
|
verifyScheduledRequest
|
|
531
|
-
} from "../chunk-
|
|
541
|
+
} from "../chunk-ZXFRHGZC.js";
|
|
532
542
|
import {
|
|
533
543
|
isIntegrationParticipantPath,
|
|
534
544
|
isParticipantRoute,
|
|
@@ -560,11 +570,11 @@ import {
|
|
|
560
570
|
publishDeploymentSchema,
|
|
561
571
|
rejectDeploymentSchema,
|
|
562
572
|
submitDeploymentSchema
|
|
563
|
-
} from "../chunk-
|
|
573
|
+
} from "../chunk-IMX45NSW.js";
|
|
564
574
|
import {
|
|
565
575
|
xUserLookupInputSchema,
|
|
566
576
|
xUserSchema
|
|
567
|
-
} from "../chunk-
|
|
577
|
+
} from "../chunk-K3PEQXDV.js";
|
|
568
578
|
import {
|
|
569
579
|
analyticsBreakdowns,
|
|
570
580
|
analyticsCatalog,
|
|
@@ -578,15 +588,15 @@ import {
|
|
|
578
588
|
analyticsQuerySchema,
|
|
579
589
|
analyticsRanges,
|
|
580
590
|
analyticsReadSchema
|
|
581
|
-
} from "../chunk-
|
|
591
|
+
} from "../chunk-XEXB3WZE.js";
|
|
582
592
|
import "../chunk-MWMCQLCG.js";
|
|
583
593
|
import {
|
|
584
594
|
withActionId
|
|
585
595
|
} from "../chunk-E73HZCG2.js";
|
|
586
596
|
import {
|
|
587
597
|
withQuery
|
|
588
|
-
} from "../chunk-
|
|
589
|
-
import "../chunk-
|
|
598
|
+
} from "../chunk-4YKOSNYI.js";
|
|
599
|
+
import "../chunk-X5REDFGV.js";
|
|
590
600
|
import {
|
|
591
601
|
collectionBeginSchema,
|
|
592
602
|
collectionPreviewSchema,
|
|
@@ -600,7 +610,7 @@ import {
|
|
|
600
610
|
rewardDeliveriesSchema,
|
|
601
611
|
rewardDeliveryQuerySchema,
|
|
602
612
|
rewardDeliverySchema
|
|
603
|
-
} from "../chunk-
|
|
613
|
+
} from "../chunk-HEQ7HLXG.js";
|
|
604
614
|
import {
|
|
605
615
|
allocateQuestSchema,
|
|
606
616
|
allocatedQuestSchema,
|
|
@@ -611,7 +621,7 @@ import {
|
|
|
611
621
|
questDraftSchema,
|
|
612
622
|
questPublicationPreviewSchema,
|
|
613
623
|
saveQuestDraftSchema
|
|
614
|
-
} from "../chunk-
|
|
624
|
+
} from "../chunk-3KHVIUKK.js";
|
|
615
625
|
import {
|
|
616
626
|
engagementBoundaryPageSchema,
|
|
617
627
|
engagementChangePreviewInputSchema,
|
|
@@ -637,7 +647,7 @@ import {
|
|
|
637
647
|
referralQualificationSchema,
|
|
638
648
|
referralRewardResolutionSchema,
|
|
639
649
|
referralSuspensionSchema
|
|
640
|
-
} from "../chunk-
|
|
650
|
+
} from "../chunk-TAZ5AEYF.js";
|
|
641
651
|
import {
|
|
642
652
|
CompletionSourceKind,
|
|
643
653
|
acceptAnywaySchema,
|
|
@@ -683,6 +693,7 @@ import {
|
|
|
683
693
|
leaderboardExclusionGroupSchema,
|
|
684
694
|
leaderboardExclusionSchema,
|
|
685
695
|
leaderboardGroupSchema,
|
|
696
|
+
leaderboardHistoryPageSchema,
|
|
686
697
|
leaderboardPageSchema,
|
|
687
698
|
leaderboardQuerySchema,
|
|
688
699
|
leaderboardSettlementApprovalSchema,
|
|
@@ -765,13 +776,13 @@ import {
|
|
|
765
776
|
updateGroupSchema,
|
|
766
777
|
walletTransactionsSchema,
|
|
767
778
|
whereSchemaIssue
|
|
768
|
-
} from "../chunk-
|
|
779
|
+
} from "../chunk-7QHROIML.js";
|
|
769
780
|
import {
|
|
770
781
|
issueText
|
|
771
782
|
} from "../chunk-2M5FM7FW.js";
|
|
772
783
|
|
|
773
784
|
// src/server/index.ts
|
|
774
|
-
import * as
|
|
785
|
+
import * as z10 from "zod";
|
|
775
786
|
|
|
776
787
|
// src/server/client/http.ts
|
|
777
788
|
import * as z2 from "zod";
|
|
@@ -1304,6 +1315,31 @@ function leaderboards(http) {
|
|
|
1304
1315
|
call
|
|
1305
1316
|
);
|
|
1306
1317
|
},
|
|
1318
|
+
/**
|
|
1319
|
+
* One member's rank and score on `board` now, as a profile's placement ranks them, or why they
|
|
1320
|
+
* are unranked (`status`): banned, excluded, outside the board's group, or no counted points.
|
|
1321
|
+
* A member who never joined the project is 404 `not-joined`.
|
|
1322
|
+
*/
|
|
1323
|
+
memberStanding: (board, member, call) => callEndpoint(
|
|
1324
|
+
leaderboardEndpoints.memberStanding,
|
|
1325
|
+
{ parameters: { leaderboard: board, member } },
|
|
1326
|
+
call
|
|
1327
|
+
),
|
|
1328
|
+
/**
|
|
1329
|
+
* The point entries behind one member's score on `board`, most recently recorded first: the
|
|
1330
|
+
* board's ledger filtered by its window, quests and calculation, as `me.leaderboardHistory`
|
|
1331
|
+
* pages a member's own, so every page together sums to the score `memberStanding` reports.
|
|
1332
|
+
* An excluded member, or one outside the board's group, has none; a member who never joined
|
|
1333
|
+
* the project is 404 `not-joined`. Pass `nextCursor` back as `cursor` for the next page.
|
|
1334
|
+
*/
|
|
1335
|
+
memberEntries: (board, member, options = {}, call) => callEndpoint(
|
|
1336
|
+
leaderboardEndpoints.memberEntries,
|
|
1337
|
+
{
|
|
1338
|
+
parameters: { leaderboard: board, member },
|
|
1339
|
+
query: options.cursor === void 0 ? {} : { cursor: pageCursorSchema.parse(options.cursor) }
|
|
1340
|
+
},
|
|
1341
|
+
call
|
|
1342
|
+
),
|
|
1307
1343
|
history: (board, call) => callEndpoint(
|
|
1308
1344
|
leaderboardEndpoints.history,
|
|
1309
1345
|
{ parameters: { leaderboard: board } },
|
|
@@ -1478,6 +1514,8 @@ var leaderboardsNamespace = /* @__PURE__ */ (() => managementNamespace({
|
|
|
1478
1514
|
api: (http) => leaderboards(http),
|
|
1479
1515
|
responses: {
|
|
1480
1516
|
leaderboardExclusionGroupSchema: () => leaderboardExclusionGroupSchema,
|
|
1517
|
+
leaderboardHistoryPageSchema: () => leaderboardHistoryPageSchema,
|
|
1518
|
+
leaderboardMemberStandingSchema: () => leaderboardMemberStandingSchema,
|
|
1481
1519
|
leaderboardPageSchema: () => leaderboardPageSchema,
|
|
1482
1520
|
leaderboardSettlementExportSchema: () => leaderboardSettlementExportSchema,
|
|
1483
1521
|
leaderboardSettlementReviewPageSchema: () => leaderboardSettlementReviewPageSchema,
|
|
@@ -1712,6 +1750,7 @@ function referrals(http) {
|
|
|
1712
1750
|
var referralsNamespace = /* @__PURE__ */ (() => managementNamespace({
|
|
1713
1751
|
api: (http) => referrals(http),
|
|
1714
1752
|
responses: {
|
|
1753
|
+
managedReferralHistorySchema: () => managedReferralHistorySchema,
|
|
1715
1754
|
publishedReferralSchema: () => publishedReferralSchema,
|
|
1716
1755
|
referralHistorySchema: () => referralHistorySchema,
|
|
1717
1756
|
referralManagementSchema: () => referralManagementSchema
|
|
@@ -4691,10 +4730,20 @@ function schedules({ callEndpoint }) {
|
|
|
4691
4730
|
reasoned ? call : inputOrCall
|
|
4692
4731
|
);
|
|
4693
4732
|
}
|
|
4733
|
+
function appScheduleRuns(name, queryOrCall = {}, call) {
|
|
4734
|
+
const options = call === void 0 && ("signal" in queryOrCall || "timeout" in queryOrCall);
|
|
4735
|
+
const { status, limit, cursor } = appScheduleRunsQuerySchema.parse(
|
|
4736
|
+
options ? {} : queryOrCall
|
|
4737
|
+
);
|
|
4738
|
+
return callEndpoint(
|
|
4739
|
+
scheduleEndpoints.runs,
|
|
4740
|
+
{ ...named(name), query: { status: status?.join(","), limit, cursor } },
|
|
4741
|
+
options ? queryOrCall : call
|
|
4742
|
+
);
|
|
4743
|
+
}
|
|
4694
4744
|
return {
|
|
4695
4745
|
list: (call) => callEndpoint(scheduleEndpoints.list, {}, call),
|
|
4696
|
-
|
|
4697
|
-
runs: (name, call) => callEndpoint(scheduleEndpoints.runs, named(name), call),
|
|
4746
|
+
runs: appScheduleRuns,
|
|
4698
4747
|
run: (name, call) => callEndpoint(scheduleEndpoints.run, { ...named(name), body: {} }, call),
|
|
4699
4748
|
/** Activates, pauses or archives the project's schedules, with an optional audited reason. */
|
|
4700
4749
|
setState: setAppScheduleState,
|
|
@@ -4746,14 +4795,16 @@ function storage({ callEndpoint, raw }) {
|
|
|
4746
4795
|
storageEndpoints.rows,
|
|
4747
4796
|
{
|
|
4748
4797
|
...named2(name),
|
|
4749
|
-
query: options.cursor === void 0 ? { table, offset: String(options.offset ?? 0) } : { table, cursor: pageCursorSchema.parse(options.cursor) }
|
|
4798
|
+
query: options.key !== void 0 ? { table, key: z5.string().min(1).max(4096).parse(options.key) } : options.cursor === void 0 ? { table, offset: String(options.offset ?? 0) } : { table, cursor: pageCursorSchema.parse(options.cursor) }
|
|
4750
4799
|
},
|
|
4751
4800
|
call
|
|
4752
4801
|
),
|
|
4753
4802
|
/**
|
|
4754
4803
|
* One SQL value in full, 100,000 characters at a time, where a rows page shows a preview. `row`
|
|
4755
4804
|
* is the row's position in storage order: its page's `offset` plus its index on that page.
|
|
4756
|
-
* Pass
|
|
4805
|
+
* Pass the row's `rowKeys` entry as `key` to find the row by its key instead, wherever rows
|
|
4806
|
+
* written since moved it; `row` is then only echoed. Pass a page's `nextCursor` back as
|
|
4807
|
+
* `cursor` for the next characters, and join pages only while their `revision` matches.
|
|
4757
4808
|
*/
|
|
4758
4809
|
cell: (name, table, options, call) => callEndpoint(
|
|
4759
4810
|
storageEndpoints.cell,
|
|
@@ -4763,6 +4814,7 @@ function storage({ callEndpoint, raw }) {
|
|
|
4763
4814
|
table,
|
|
4764
4815
|
row: String(z5.number().int().min(0).parse(options.row)),
|
|
4765
4816
|
column: options.column,
|
|
4817
|
+
...options.key === void 0 ? {} : { key: z5.string().min(1).max(4096).parse(options.key) },
|
|
4766
4818
|
...options.cursor === void 0 ? {} : { cursor: pageCursorSchema.parse(options.cursor) }
|
|
4767
4819
|
}
|
|
4768
4820
|
},
|
|
@@ -4780,6 +4832,23 @@ function storage({ callEndpoint, raw }) {
|
|
|
4780
4832
|
{ ...named2(name), query: { key: key2 } },
|
|
4781
4833
|
call
|
|
4782
4834
|
),
|
|
4835
|
+
/**
|
|
4836
|
+
* A KV value in full, binary or text, `limits.apps.storageValueBytes` (4 MiB) at a time as
|
|
4837
|
+
* base64. Pass a page's `nextCursor` back as `cursor` for the next bytes, and join pages only
|
|
4838
|
+
* while their `revision` matches; decode text with a streaming `TextDecoder`, since a page can
|
|
4839
|
+
* end inside a character.
|
|
4840
|
+
*/
|
|
4841
|
+
valueBytes: (name, key2, options = {}, call) => callEndpoint(
|
|
4842
|
+
storageEndpoints.bytes,
|
|
4843
|
+
{
|
|
4844
|
+
...named2(name),
|
|
4845
|
+
query: {
|
|
4846
|
+
key: key2,
|
|
4847
|
+
...options.cursor === void 0 ? {} : { cursor: pageCursorSchema.parse(options.cursor) }
|
|
4848
|
+
}
|
|
4849
|
+
},
|
|
4850
|
+
call
|
|
4851
|
+
),
|
|
4783
4852
|
clear,
|
|
4784
4853
|
/** Deletes a store no serving build declares, with all of its data. */
|
|
4785
4854
|
delete: async (kind, name, call) => {
|
|
@@ -4800,6 +4869,7 @@ var storageNamespace = /* @__PURE__ */ (() => managementNamespace({
|
|
|
4800
4869
|
appStorageRowsSchema: () => appStorageRowsSchema,
|
|
4801
4870
|
appStorageSqlClearResultSchema: () => appStorageSqlClearResultSchema,
|
|
4802
4871
|
appStorageTablesSchema: () => appStorageTablesSchema,
|
|
4872
|
+
appStorageValueBytesSchema: () => appStorageValueBytesSchema,
|
|
4803
4873
|
appStorageValueSchema: () => appStorageValueSchema
|
|
4804
4874
|
}
|
|
4805
4875
|
}))();
|
|
@@ -6584,6 +6654,31 @@ var developmentPreflightSchema = /* @__PURE__ */ (() => z8.object({
|
|
|
6584
6654
|
)
|
|
6585
6655
|
}))();
|
|
6586
6656
|
|
|
6657
|
+
// src/server/runtime-logs.ts
|
|
6658
|
+
import * as z9 from "zod";
|
|
6659
|
+
var runtimeLogEventSchema = /* @__PURE__ */ (() => z9.object({
|
|
6660
|
+
/** Epoch milliseconds of the invocation. */
|
|
6661
|
+
at: z9.number(),
|
|
6662
|
+
build: z9.string().uuid(),
|
|
6663
|
+
environment: z9.enum(["test", "live"]),
|
|
6664
|
+
trigger: z9.string(),
|
|
6665
|
+
method: z9.string().nullable(),
|
|
6666
|
+
/** The URL path only: no host, no query string. */
|
|
6667
|
+
path: z9.string().nullable(),
|
|
6668
|
+
/** The app's HTTP status; null when it threw before answering. */
|
|
6669
|
+
status: z9.number().int().nullable(),
|
|
6670
|
+
outcome: z9.string(),
|
|
6671
|
+
exceptions: z9.array(z9.object({ name: z9.string(), message: z9.string() })),
|
|
6672
|
+
logs: z9.array(z9.object({ level: z9.string(), message: z9.string() })),
|
|
6673
|
+
/** A cap cut something from this record. */
|
|
6674
|
+
truncated: z9.boolean()
|
|
6675
|
+
}))();
|
|
6676
|
+
var runtimeLogPageSchema = /* @__PURE__ */ (() => z9.object({
|
|
6677
|
+
build: z9.string().uuid().nullable(),
|
|
6678
|
+
items: z9.array(runtimeLogEventSchema),
|
|
6679
|
+
nextCursor: z9.string().nullable()
|
|
6680
|
+
}))();
|
|
6681
|
+
|
|
6587
6682
|
// src/server/index.ts
|
|
6588
6683
|
function clientFailure(error) {
|
|
6589
6684
|
if (error instanceof ManagementError) {
|
|
@@ -6592,7 +6687,7 @@ function clientFailure(error) {
|
|
|
6592
6687
|
return new ManagementError({
|
|
6593
6688
|
kind: "client",
|
|
6594
6689
|
code: ManagementErrorCode.InvalidInput,
|
|
6595
|
-
message: error instanceof
|
|
6690
|
+
message: error instanceof z10.ZodError ? `Invalid management request: ${issueText(error.issues)}` : error instanceof Error ? error.message : "Invalid management request",
|
|
6596
6691
|
cause: error
|
|
6597
6692
|
});
|
|
6598
6693
|
}
|
|
@@ -6834,8 +6929,8 @@ function managementClient(options) {
|
|
|
6834
6929
|
}
|
|
6835
6930
|
return exchange(
|
|
6836
6931
|
path,
|
|
6837
|
-
|
|
6838
|
-
status:
|
|
6932
|
+
z10.object({
|
|
6933
|
+
status: z10.number(),
|
|
6839
6934
|
operationId: identifier.optional(),
|
|
6840
6935
|
result: schema
|
|
6841
6936
|
}),
|
|
@@ -6986,8 +7081,11 @@ export {
|
|
|
6986
7081
|
APP_STORAGE_CELL_CHARACTERS,
|
|
6987
7082
|
APP_STORAGE_PREVIEW_CHARACTERS,
|
|
6988
7083
|
APP_STORAGE_ROW_LIMIT,
|
|
7084
|
+
AppSecretCredentialKind,
|
|
7085
|
+
AppSecretCredentialStatus,
|
|
6989
7086
|
CompletionSourceKind,
|
|
6990
7087
|
DEFAULT_MANAGEMENT_TIMEOUT,
|
|
7088
|
+
EntitlementSourceKind,
|
|
6991
7089
|
ManagedAccountStatus,
|
|
6992
7090
|
ManagementError,
|
|
6993
7091
|
ManagementErrorCode,
|
|
@@ -7036,11 +7134,13 @@ export {
|
|
|
7036
7134
|
appSchedulePathSchema,
|
|
7037
7135
|
appScheduleResultSchema,
|
|
7038
7136
|
appScheduleRunSchema,
|
|
7137
|
+
appScheduleRunsQuerySchema,
|
|
7039
7138
|
appScheduleRunsSchema,
|
|
7040
7139
|
appScheduleSchema,
|
|
7041
7140
|
appScheduleStateInputSchema,
|
|
7042
7141
|
appScheduleStateSchema,
|
|
7043
7142
|
appSchedulesSchema,
|
|
7143
|
+
appSecretCredentialSchema,
|
|
7044
7144
|
appSecretDeclarationSchema,
|
|
7045
7145
|
appSecretDeclarationsSchema,
|
|
7046
7146
|
appSecretInputSchema,
|
|
@@ -7060,6 +7160,7 @@ export {
|
|
|
7060
7160
|
appStorageSqlClearResultSchema,
|
|
7061
7161
|
appStorageSqlClearSchema,
|
|
7062
7162
|
appStorageTablesSchema,
|
|
7163
|
+
appStorageValueBytesSchema,
|
|
7063
7164
|
appStorageValueSchema,
|
|
7064
7165
|
assetPathSchema,
|
|
7065
7166
|
attemptCaptureSchema,
|
|
@@ -7141,7 +7242,9 @@ export {
|
|
|
7141
7242
|
deviceStartSchema,
|
|
7142
7243
|
engagementRuleVersionPageSchema,
|
|
7143
7244
|
entitlementCorrectionSchema,
|
|
7245
|
+
entitlementProvenanceSchema,
|
|
7144
7246
|
entitlementSchema,
|
|
7247
|
+
entitlementSourceSchema,
|
|
7145
7248
|
environmentSchema,
|
|
7146
7249
|
evidenceRedactionResultSchema,
|
|
7147
7250
|
evidenceRedactionSchema,
|
|
@@ -7208,6 +7311,7 @@ export {
|
|
|
7208
7311
|
knownConnectionSyncKinds,
|
|
7209
7312
|
knownConnectionSyncStatuses,
|
|
7210
7313
|
knownPluginSlots,
|
|
7314
|
+
leaderboardMemberStandingSchema,
|
|
7211
7315
|
leaderboardSettlementExportSchema,
|
|
7212
7316
|
leaderboardSettlementMeasurementRetrySchema,
|
|
7213
7317
|
leaderboardSettlementRejectionSchema,
|
|
@@ -7237,6 +7341,7 @@ export {
|
|
|
7237
7341
|
managedPointHistoryPageSchema,
|
|
7238
7342
|
managedQuestEnrollmentPageSchema,
|
|
7239
7343
|
managedQuestEnrollmentSchema,
|
|
7344
|
+
managedReferralHistorySchema,
|
|
7240
7345
|
managedReleasePageSchema,
|
|
7241
7346
|
managedReleaseQuerySchema,
|
|
7242
7347
|
managedResourceListSchema,
|
|
@@ -7387,6 +7492,8 @@ export {
|
|
|
7387
7492
|
revokedCompletionSchema,
|
|
7388
7493
|
rolePermissions,
|
|
7389
7494
|
roleSchema,
|
|
7495
|
+
runtimeLogEventSchema,
|
|
7496
|
+
runtimeLogPageSchema,
|
|
7390
7497
|
scheduleResult,
|
|
7391
7498
|
scheduledInvocationSchema,
|
|
7392
7499
|
sequenceCursorSchema2 as sequenceCursorSchema,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { J as SignInProvider } from './accounts-C9as33l1.js';
|
|
2
2
|
import * as z from 'zod';
|
|
3
|
-
import { a as TelegramSignInMethods } from './submission-input-
|
|
3
|
+
import { a as TelegramSignInMethods } from './submission-input-D_NiBR0W.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `GET /v1/auth/providers`, as `relay.auth.providers()` reads it. Exported as a schema only, for the
|
package/dist/solana.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ import 'zod';
|
|
|
6
6
|
import './reward-deliveries-zWfsgc6m.js';
|
|
7
7
|
import './tracker-data-Dwq9dWEm.js';
|
|
8
8
|
import './accounts-C9as33l1.js';
|
|
9
|
-
import './identity-integration-
|
|
10
|
-
import './action-BDFKqGlH.js';
|
|
9
|
+
import './identity-integration-B1f5oOdc.js';
|
|
11
10
|
import './request-error-C24SY7n9.js';
|
|
12
|
-
import './limits-
|
|
11
|
+
import './limits-DICxln-i.js';
|
|
13
12
|
import './automatic-outcomes-D0yMHSHL.js';
|
|
14
13
|
import './profiles-CLDKZVFx.js';
|
|
14
|
+
import './action-BDFKqGlH.js';
|
|
15
15
|
import './offers-CnMyMeQo.js';
|
|
16
16
|
import './deployments-CGV1rIZm.js';
|
|
17
17
|
import './catalog-9I6t18qP.js';
|
package/dist/solana.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
maxCompletionReceipts,
|
|
3
3
|
walletLinkedEventDataSchema
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-4WODSE6Y.js";
|
|
5
|
+
import "./chunk-IMX45NSW.js";
|
|
6
|
+
import "./chunk-K3PEQXDV.js";
|
|
7
|
+
import "./chunk-XEXB3WZE.js";
|
|
8
8
|
import "./chunk-MWMCQLCG.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-HEQ7HLXG.js";
|
|
10
|
+
import "./chunk-3KHVIUKK.js";
|
|
11
|
+
import "./chunk-TAZ5AEYF.js";
|
|
12
12
|
import {
|
|
13
13
|
paginate,
|
|
14
14
|
solanaDevnet,
|
|
15
15
|
solanaMainnet,
|
|
16
16
|
solanaMemoProgram
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7QHROIML.js";
|
|
18
18
|
import "./chunk-2M5FM7FW.js";
|
|
19
19
|
|
|
20
20
|
// src/solana.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as AuthProvider, J as SignInProvider, a as Attempt } from './accounts-C9as33l1.js';
|
|
2
|
-
import { p as createRelayClient, k as RelayRequestOptions, g as RelayError, R as RelayClient } from './client-
|
|
3
|
-
import { a as TelegramSignInMethods } from './submission-input-
|
|
2
|
+
import { p as createRelayClient, k as RelayRequestOptions, g as RelayError, R as RelayClient } from './client-336yROej.js';
|
|
3
|
+
import { a as TelegramSignInMethods } from './submission-input-D_NiBR0W.js';
|
|
4
4
|
import { b as ParticipantSession } from './participant-activity-BznrcePT.js';
|
|
5
5
|
import { e as WalletSignInNetwork, g as WalletSigner } from './wallet-CeqgtXNm.js';
|
|
6
6
|
import { C as CosmosChains } from './wallet-browser-Cucpqn3F.js';
|
|
@@ -300,6 +300,11 @@ declare const telegramMessageDataSchema: z.ZodObject<{
|
|
|
300
300
|
}, z.core.$strip>;
|
|
301
301
|
type TelegramMessageData = z.infer<typeof telegramMessageDataSchema>;
|
|
302
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Largest photo evidence upload, in bytes. The SDK's client check, Relay's evidence record and
|
|
305
|
+
* upload limit, and the evaluator's evidence read all use it.
|
|
306
|
+
*/
|
|
307
|
+
declare const photoEvidenceByteLimit: number;
|
|
303
308
|
declare const textOptionsSchema: z.ZodObject<{
|
|
304
309
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
305
310
|
minLength: z.ZodDefault<z.ZodNumber>;
|
|
@@ -340,5 +345,5 @@ declare function validateSubmissionValue(input: ValueEvidence, contract: {
|
|
|
340
345
|
/** Extract an ID only. The URL and its author name are untrusted claims. */
|
|
341
346
|
declare function xPostId(value: string): string | null;
|
|
342
347
|
|
|
343
|
-
export { telegramChatsSchema as A, telegramConnectionInputSchema as B, telegramConnectionSchema as C, telegramInitDataSchema as D, telegramMemberInputSchema as E, telegramMessageDataSchema as F, telegramMiniAppSignInSchema as G, telegramReactionDataSchema as H, telegramSignInMethodsSchema as I, textEvidenceSchema as J, textOptionsSchema as K, urlEvidenceSchema as L, urlOptionsSchema as N, validateSubmissionValue as O, valueEvidenceSchema as Q, xPostId as R, balanceAtLeast as k, completed as l, inGroup as m, balancePrerequisiteSchema as q, completionPrerequisiteSchema as r, groupPrerequisiteSchema as s, missingPrerequisiteSchema as t, prerequisiteSchema as u, telegramAccountConnectionSchema as v, telegramChatConnectionSchema as w, telegramChatIdSchema as x, telegramChatMemberSchema as y, telegramChatSchema as z };
|
|
348
|
+
export { telegramChatsSchema as A, telegramConnectionInputSchema as B, telegramConnectionSchema as C, telegramInitDataSchema as D, telegramMemberInputSchema as E, telegramMessageDataSchema as F, telegramMiniAppSignInSchema as G, telegramReactionDataSchema as H, telegramSignInMethodsSchema as I, textEvidenceSchema as J, textOptionsSchema as K, urlEvidenceSchema as L, urlOptionsSchema as N, validateSubmissionValue as O, valueEvidenceSchema as Q, xPostId as R, photoEvidenceByteLimit as S, balanceAtLeast as k, completed as l, inGroup as m, balancePrerequisiteSchema as q, completionPrerequisiteSchema as r, groupPrerequisiteSchema as s, missingPrerequisiteSchema as t, prerequisiteSchema as u, telegramAccountConnectionSchema as v, telegramChatConnectionSchema as w, telegramChatIdSchema as x, telegramChatMemberSchema as y, telegramChatSchema as z };
|
|
344
349
|
export type { MissingPrerequisite as M, Prerequisite as P, TelegramAccountConnection as T, UrlEvidence as U, ValueEvidence as V, TelegramSignInMethods as a, TextEvidence as b, TextOptions as c, UrlOptions as d, TelegramReader as e, TelegramChatMember as f, TelegramChatMemberStatus as g, TelegramConnection as h, TelegramMessageData as i, TelegramReactionData as j, TelegramChat as n, TelegramChatConnection as o, TelegramChats as p };
|
package/dist/telegram.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ import './accounts-C9as33l1.js';
|
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './tracker-data-Dwq9dWEm.js';
|
|
6
6
|
import './wallet-CeqgtXNm.js';
|
|
7
|
-
import './submission-input-
|
|
7
|
+
import './submission-input-D_NiBR0W.js';
|
|
8
8
|
import './request-error-C24SY7n9.js';
|
|
9
9
|
import './reward-deliveries-zWfsgc6m.js';
|
|
10
10
|
import './catalog-9I6t18qP.js';
|
|
11
11
|
import './action-BDFKqGlH.js';
|
|
12
|
-
import './sign-in-providers-
|
|
12
|
+
import './sign-in-providers-BMtk_NWY.js';
|
|
13
13
|
import './profiles-CLDKZVFx.js';
|
|
14
14
|
|
|
15
15
|
/**
|
package/dist/testing.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { NftCollection, SolanaSeed, WalletCallArgument, WalletEventCondition, Wa
|
|
|
6
6
|
import { linkedWalletSchema, walletBalanceSchema, walletNftsSchema, walletCallSchema, walletDelegationsSchema, walletEventsSchema, walletTransactionsSchema, walletProgramAccountSchema, walletStakeSchema, SolanaNetwork } from './schema.js';
|
|
7
7
|
import * as z from 'zod';
|
|
8
8
|
import { CapabilityFailure, memberCompletionSchema } from './schema.js';
|
|
9
|
-
export { C as CapabilityError } from './capability-error-
|
|
9
|
+
export { C as CapabilityError } from './capability-error-D56xxE2i.js';
|
|
10
10
|
import { xConnectionSchema, xProfileSchema, xPostSchema, ImageReference, imageInspectionSchema, imageComparisonSchema, imageSightingsSchema } from './schema.js';
|
|
11
|
-
export { L as Limits, l as limits } from './limits-
|
|
11
|
+
export { L as Limits, l as limits } from './limits-DICxln-i.js';
|
|
12
12
|
import { Tracker, TrackerData, ContentBody, TrackerTriggerContext, TrackerPage } from './authoring.js';
|
|
13
13
|
import { memberIdentitySchema, trackerQuerySchema, trackerPageSchema, trackerSummarySchema, TrackerContentQuery, trackerContentSchema, TrackerAttribution } from './schema.js';
|
|
14
14
|
import { TelegramReader } from './authoring.js';
|
package/dist/testing.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
capabilityRequestSchemas,
|
|
3
3
|
evaluatorReaderFactories
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SPLXHFVX.js";
|
|
5
5
|
import {
|
|
6
6
|
attemptCaptureSchema,
|
|
7
7
|
parseImageResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FBS65R66.js";
|
|
9
9
|
import {
|
|
10
10
|
isParticipantRoute
|
|
11
11
|
} from "./chunk-PYZSCFMJ.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
xConnectionSchema,
|
|
14
14
|
xPostSchema,
|
|
15
15
|
xProfileSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K3PEQXDV.js";
|
|
17
17
|
import {
|
|
18
18
|
CapabilityError
|
|
19
19
|
} from "./chunk-MWMCQLCG.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
participantActivitySchema,
|
|
23
23
|
participantSessionSchema,
|
|
24
24
|
questExperienceSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3KHVIUKK.js";
|
|
26
26
|
import {
|
|
27
27
|
badgeCatalogSchema,
|
|
28
28
|
badgeSchema,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
walletProgramAccountSchema,
|
|
70
70
|
walletStakeSchema,
|
|
71
71
|
walletTransactionsSchema
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-7QHROIML.js";
|
|
73
73
|
import {
|
|
74
74
|
RelayErrorCode
|
|
75
75
|
} from "./chunk-2M5FM7FW.js";
|
|
@@ -949,6 +949,12 @@ function kindOf(reward) {
|
|
|
949
949
|
if (reward.kind === "integration") {
|
|
950
950
|
return `integration:${reward.provider}:${reward.action}`;
|
|
951
951
|
}
|
|
952
|
+
if (reward.kind === "tier" && reward.reward.badge !== void 0) {
|
|
953
|
+
return "badge";
|
|
954
|
+
}
|
|
955
|
+
if (reward.kind === "tier" && reward.reward.group !== void 0) {
|
|
956
|
+
return "group";
|
|
957
|
+
}
|
|
952
958
|
return reward.kind;
|
|
953
959
|
}
|
|
954
960
|
function within(selected, published) {
|
|
@@ -956,6 +962,10 @@ function within(selected, published) {
|
|
|
956
962
|
return selected.amount > published.amount ? "Evaluator exceeded published reward bounds" : null;
|
|
957
963
|
}
|
|
958
964
|
if (selected.kind === "tier" && published.kind === "tier") {
|
|
965
|
+
const kind = kindOf(selected);
|
|
966
|
+
if (kind === "badge" || kind === "group") {
|
|
967
|
+
return selected.tier !== published.tier || selected.reward[kind] !== published.reward[kind] ? `Evaluator exceeded published ${kind} reward bounds` : null;
|
|
968
|
+
}
|
|
959
969
|
const rank = (reward) => reward.reward.tiers.findIndex((tier) => tier.id === reward.tier);
|
|
960
970
|
return JSON.stringify(selected.reward) !== JSON.stringify(published.reward) || rank(selected) > rank(published) ? "Evaluator exceeded published reward tier" : null;
|
|
961
971
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domino-sdk/relay",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.76.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"react-dom": "19.3.0",
|
|
101
101
|
"rollup": "4.63.3",
|
|
102
102
|
"rollup-plugin-dts": "6.5.1",
|
|
103
|
+
"tsup": "8.5.1",
|
|
103
104
|
"typescript": "6.0.2"
|
|
104
105
|
},
|
|
105
106
|
"license": "UNLICENSED",
|