@domino-sdk/relay 1.0.0-next.13 → 1.0.0-next.15
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/README.md +1 -1
- package/dist/authoring.d.ts +58 -44
- package/dist/authoring.js +58 -45
- package/dist/browser.d.ts +111 -151
- package/dist/browser.js +6 -6
- package/dist/{catalog-C85V1NgW.d.ts → catalog-CVXUHxiO.d.ts} +12 -99
- package/dist/{chunk-M64XHC42.js → chunk-76F4LSFP.js} +2 -2
- package/dist/{chunk-II7DRZSL.js → chunk-CYD6QMHU.js} +1 -1
- package/dist/{chunk-KS33GOUL.js → chunk-EJWDAF7I.js} +4 -4
- package/dist/chunk-FJ6O44NE.js +51 -0
- package/dist/{chunk-WQ24ILGO.js → chunk-G3YSBMJH.js} +7 -3
- package/dist/{chunk-MNQI35OG.js → chunk-HWRBLM7E.js} +3 -3
- package/dist/{chunk-CRNQP7NV.js → chunk-J4OYDYJE.js} +693 -676
- package/dist/{chunk-OA2KMQVZ.js → chunk-J52HD4AA.js} +11 -1
- package/dist/{chunk-EZWNGI5B.js → chunk-RCBJBFLC.js} +4 -4
- package/dist/{chunk-FXYJ4OMX.js → chunk-WMTROSYF.js} +1 -1
- package/dist/{client-Bf9PNUIi.d.ts → client-dfXT6hhq.d.ts} +7 -47
- package/dist/{deployments-CNCP0JnD.d.ts → deployments-C9wkQ06n.d.ts} +109 -125
- package/dist/{images-BG4pdO4y.d.ts → images-CRxHUuG5.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/{integrations-EjQzIApL.d.ts → integrations-C1vB6Ry6.d.ts} +93 -1
- package/dist/internal.d.ts +13 -4
- package/dist/internal.js +10 -4
- package/dist/portal-proxy.js +2 -2
- package/dist/react/index.d.ts +441 -655
- package/dist/react/index.js +1190 -810
- package/dist/{schema-BF_TQsmT.d.ts → schema-C4F2K9cm.d.ts} +9 -74
- package/dist/schema.d.ts +6 -7
- package/dist/schema.js +18 -16
- package/dist/server/index.d.ts +125 -233
- package/dist/server/index.js +16 -22
- package/dist/{trackers-W7nRdRr7.d.ts → trackers-7lxSWp2g.d.ts} +56 -14
- package/package.json +4 -2
- package/dist/observations-CQ6IcNuQ.d.ts +0 -90
package/dist/server/index.js
CHANGED
|
@@ -3,15 +3,16 @@ import {
|
|
|
3
3
|
deploymentResultSchema,
|
|
4
4
|
projectDeploymentSchema,
|
|
5
5
|
publishDeploymentSchema
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-EJWDAF7I.js";
|
|
7
7
|
import {
|
|
8
8
|
identityIntegrationInputSchema,
|
|
9
9
|
identityIntegrationSchema,
|
|
10
10
|
identityIntegrationSecretSchema
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-HWRBLM7E.js";
|
|
12
12
|
import {
|
|
13
13
|
imageAssetArtifactSchema
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-CYD6QMHU.js";
|
|
15
|
+
import "../chunk-FJ6O44NE.js";
|
|
15
16
|
import "../chunk-6A2V4L3T.js";
|
|
16
17
|
import {
|
|
17
18
|
allocateQuestSchema,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
rewardDeliveriesSchema,
|
|
31
32
|
rewardDeliverySchema,
|
|
32
33
|
saveQuestDraftSchema
|
|
33
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-76F4LSFP.js";
|
|
34
35
|
import {
|
|
35
36
|
RequestError,
|
|
36
37
|
engagementBoundaryPageSchema,
|
|
@@ -69,8 +70,8 @@ import {
|
|
|
69
70
|
walletConnectionSchema,
|
|
70
71
|
walletSignInNetworksSchema,
|
|
71
72
|
walletUnlinkInputSchema
|
|
72
|
-
} from "../chunk-
|
|
73
|
-
import "../chunk-
|
|
73
|
+
} from "../chunk-J52HD4AA.js";
|
|
74
|
+
import "../chunk-WMTROSYF.js";
|
|
74
75
|
import {
|
|
75
76
|
attemptSchema,
|
|
76
77
|
authProviderSchema,
|
|
@@ -91,8 +92,6 @@ import {
|
|
|
91
92
|
entitlementSchema,
|
|
92
93
|
identifier,
|
|
93
94
|
memberProgressSchema,
|
|
94
|
-
observationInputSchema,
|
|
95
|
-
observationReceiptSchema,
|
|
96
95
|
pickupAvailabilitySchema,
|
|
97
96
|
pickupCatalogSchema,
|
|
98
97
|
projectCalendarInputSchema,
|
|
@@ -118,7 +117,7 @@ import {
|
|
|
118
117
|
trackerQuerySchema,
|
|
119
118
|
trackerStatusSchema,
|
|
120
119
|
trackerSummarySchema
|
|
121
|
-
} from "../chunk-
|
|
120
|
+
} from "../chunk-J4OYDYJE.js";
|
|
122
121
|
|
|
123
122
|
// src/server/index.ts
|
|
124
123
|
import { z as z5 } from "zod";
|
|
@@ -573,13 +572,16 @@ var permissionSchema = z5.enum([
|
|
|
573
572
|
"inventory",
|
|
574
573
|
"access",
|
|
575
574
|
"points",
|
|
576
|
-
"observe",
|
|
577
575
|
/**
|
|
578
576
|
* Custom tracker ingestion only (`trackers.ingest`), such as for an indexer's key. Editors and
|
|
579
|
-
* hosted-app keys hold it.
|
|
580
|
-
* keep ingesting.
|
|
577
|
+
* hosted-app keys hold it.
|
|
581
578
|
*/
|
|
582
|
-
"ingest"
|
|
579
|
+
"ingest",
|
|
580
|
+
/**
|
|
581
|
+
* Enrolling members from a server (`content.enroll`), which vouches for their consent. Editors
|
|
582
|
+
* hold it; hosted-app keys do not.
|
|
583
|
+
*/
|
|
584
|
+
"enroll"
|
|
583
585
|
]);
|
|
584
586
|
var permissionListSchema = z5.array(z5.string()).transform(
|
|
585
587
|
(values) => values.filter(
|
|
@@ -587,7 +589,7 @@ var permissionListSchema = z5.array(z5.string()).transform(
|
|
|
587
589
|
)
|
|
588
590
|
);
|
|
589
591
|
var rolePermissions = {
|
|
590
|
-
editor: ["read", "publish", "inventory", "points", "
|
|
592
|
+
editor: ["read", "publish", "inventory", "points", "ingest", "enroll"],
|
|
591
593
|
reviewer: ["read", "review"],
|
|
592
594
|
staff: ["read", "confirm", "handover"]
|
|
593
595
|
};
|
|
@@ -1257,14 +1259,6 @@ function createManagementClient(options) {
|
|
|
1257
1259
|
call
|
|
1258
1260
|
)
|
|
1259
1261
|
},
|
|
1260
|
-
observations: {
|
|
1261
|
-
submit: (input, call) => post(
|
|
1262
|
-
"/observations",
|
|
1263
|
-
observationReceiptSchema,
|
|
1264
|
-
observationInputSchema.parse(input),
|
|
1265
|
-
call
|
|
1266
|
-
)
|
|
1267
|
-
},
|
|
1268
1262
|
pointLedgers: {
|
|
1269
1263
|
list: (call) => get("/point-ledgers", z5.array(pointLedgerSchema), call),
|
|
1270
1264
|
save: (input, call) => post(
|
|
@@ -12,8 +12,11 @@ declare const trackerTriggerModeSchema: z.ZodEnum<{
|
|
|
12
12
|
"data-changed": "data-changed";
|
|
13
13
|
}>;
|
|
14
14
|
type TrackerTriggerMode = z.infer<typeof trackerTriggerModeSchema>;
|
|
15
|
-
/**
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Custom trackers fire on every new sample; X and Discord trackers on each record they collect,
|
|
17
|
+
* since a post, message or reaction is one event.
|
|
18
|
+
*/
|
|
19
|
+
declare function defaultTriggerMode(source: string): TrackerTriggerMode;
|
|
17
20
|
/** A bound in a tracker trigger filter: a number, or the quest's integer setting of that name. */
|
|
18
21
|
declare const trackerBoundSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
19
22
|
setting: z.ZodString;
|
|
@@ -158,10 +161,11 @@ type WhereSetting<W> = W extends readonly (infer C)[] ? WhereSetting<C> : W exte
|
|
|
158
161
|
declare const trackerTriggerPolicySchema: z.ZodObject<{
|
|
159
162
|
/** The tracker's authoring key; publication binds it to the tracker's stable ID. */
|
|
160
163
|
tracker: z.ZodString;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
/**
|
|
165
|
+
* The tracker's source kind, one of `trackerSourceKinds` today. An open string, so readers of
|
|
166
|
+
* releases keep parsing them when a later Relay adds a managed source.
|
|
167
|
+
*/
|
|
168
|
+
source: z.ZodString;
|
|
165
169
|
/** Which observations fire; absent means the source's default (`defaultTriggerMode`). */
|
|
166
170
|
on: z.ZodOptional<z.ZodEnum<{
|
|
167
171
|
"new-record": "new-record";
|
|
@@ -204,8 +208,8 @@ declare const trackerTriggerPolicySchema: z.ZodObject<{
|
|
|
204
208
|
}, z.core.$strict>]>>;
|
|
205
209
|
}, z.core.$strict>]>>]>>;
|
|
206
210
|
/**
|
|
207
|
-
* The record account the quest pays: `author`, `inReplyTo` for an X post,
|
|
208
|
-
* a custom record. Relay attributes it through verified links; evaluators cannot redirect it.
|
|
211
|
+
* The record account the quest pays: `author`, `inReplyTo` for an X post, `messageAuthor` for a
|
|
212
|
+
* Discord reaction, or a named account of a custom record. Relay attributes it through verified links; evaluators cannot redirect it.
|
|
209
213
|
* Releases published before account roles store `"replied-to"` for `inReplyTo`.
|
|
210
214
|
*/
|
|
211
215
|
beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
|
|
@@ -320,7 +324,7 @@ declare const trackerTriggerContextSchema: z.ZodObject<{
|
|
|
320
324
|
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
321
325
|
removed: z.ZodBoolean;
|
|
322
326
|
}, z.core.$strict>;
|
|
323
|
-
/** The captured X post of this observation; null for
|
|
327
|
+
/** The captured X post of this observation; null for other trackers. */
|
|
324
328
|
x: z.ZodNullable<z.ZodObject<{
|
|
325
329
|
evidence: z.ZodObject<{
|
|
326
330
|
contentRevision: z.ZodString;
|
|
@@ -487,7 +491,7 @@ declare function trackerDataPathTypes(schema: TrackerDataSchema, path: string):
|
|
|
487
491
|
/**
|
|
488
492
|
* Wraps a reader so `records(handle)` returns only records whose data matches the handle's data
|
|
489
493
|
* schema, the one the quest's types come from, and counts the rest in `excluded`. Reads by key
|
|
490
|
-
* string and of
|
|
494
|
+
* string and of managed trackers (X and Discord), whose records Relay writes, pass through.
|
|
491
495
|
*/
|
|
492
496
|
declare function schemaCheckedReader(reader: TrackerReader): TrackerReader;
|
|
493
497
|
/**
|
|
@@ -667,12 +671,20 @@ declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
667
671
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
668
672
|
authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
|
|
669
673
|
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
674
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
675
|
+
kind: z.ZodLiteral<"discord-messages">;
|
|
676
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
678
|
+
kind: z.ZodLiteral<"discord-reactions">;
|
|
670
679
|
}, z.core.$strict>], "kind">;
|
|
671
680
|
type TrackerSource = z.infer<typeof trackerSourceSchema>;
|
|
681
|
+
/** Every kind of tracker source: X search, your own records, and the two Discord streams. */
|
|
682
|
+
declare const trackerSourceKinds: readonly ["x-search", "custom", "discord-messages", "discord-reactions"];
|
|
683
|
+
type TrackerSourceKind = (typeof trackerSourceKinds)[number];
|
|
672
684
|
/**
|
|
673
|
-
* The identity kinds a source's record accounts are: `x` for an X tracker, a
|
|
674
|
-
* `identities` (`["wallet"]` for one stored with `authors: "wallet"`), or
|
|
675
|
-
* source's authors are opaque IDs.
|
|
685
|
+
* The identity kinds a source's record accounts are: `x` for an X tracker, `discord` for a Discord
|
|
686
|
+
* one, a custom source's `identities` (`["wallet"]` for one stored with `authors: "wallet"`), or
|
|
687
|
+
* undefined when a custom source's authors are opaque IDs.
|
|
676
688
|
*/
|
|
677
689
|
declare function sourceIdentities(source: TrackerSource): IdentityKind[] | undefined;
|
|
678
690
|
/**
|
|
@@ -707,6 +719,11 @@ declare const trackerDefinitionSchema: z.ZodObject<{
|
|
|
707
719
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
708
720
|
authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
|
|
709
721
|
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
722
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
723
|
+
kind: z.ZodLiteral<"discord-messages">;
|
|
724
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
725
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
726
|
+
kind: z.ZodLiteral<"discord-reactions">;
|
|
710
727
|
}, z.core.$strict>], "kind">;
|
|
711
728
|
window: z.ZodObject<{
|
|
712
729
|
start: z.ZodNumber;
|
|
@@ -733,6 +750,11 @@ declare const trackerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
733
750
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
734
751
|
authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
|
|
735
752
|
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
753
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
754
|
+
kind: z.ZodLiteral<"discord-messages">;
|
|
755
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
756
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
757
|
+
kind: z.ZodLiteral<"discord-reactions">;
|
|
736
758
|
}, z.core.$strict>], "kind">;
|
|
737
759
|
window: z.ZodObject<{
|
|
738
760
|
start: z.ZodNumber;
|
|
@@ -770,6 +792,11 @@ declare const publishedTrackerSchema: z.ZodObject<{
|
|
|
770
792
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
771
793
|
authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
|
|
772
794
|
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
795
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
796
|
+
kind: z.ZodLiteral<"discord-messages">;
|
|
797
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
798
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
799
|
+
kind: z.ZodLiteral<"discord-reactions">;
|
|
773
800
|
}, z.core.$strict>], "kind">;
|
|
774
801
|
window: z.ZodObject<{
|
|
775
802
|
start: z.ZodNumber;
|
|
@@ -803,6 +830,11 @@ declare const trackerStatusSchema: z.ZodObject<{
|
|
|
803
830
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
804
831
|
authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
|
|
805
832
|
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
833
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
834
|
+
kind: z.ZodLiteral<"discord-messages">;
|
|
835
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
836
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
837
|
+
kind: z.ZodLiteral<"discord-reactions">;
|
|
806
838
|
}, z.core.$strict>], "kind">;
|
|
807
839
|
window: z.ZodObject<{
|
|
808
840
|
start: z.ZodNumber;
|
|
@@ -1164,6 +1196,11 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
1164
1196
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1165
1197
|
authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
|
|
1166
1198
|
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
1199
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1200
|
+
kind: z.ZodLiteral<"discord-messages">;
|
|
1201
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
1202
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1203
|
+
kind: z.ZodLiteral<"discord-reactions">;
|
|
1167
1204
|
}, z.core.$strict>], "kind">;
|
|
1168
1205
|
window: z.ZodObject<{
|
|
1169
1206
|
start: z.ZodNumber;
|
|
@@ -1228,6 +1265,11 @@ declare const trackerSummarySchema: z.ZodObject<{
|
|
|
1228
1265
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1229
1266
|
authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
|
|
1230
1267
|
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
1268
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1269
|
+
kind: z.ZodLiteral<"discord-messages">;
|
|
1270
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
1271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1272
|
+
kind: z.ZodLiteral<"discord-reactions">;
|
|
1231
1273
|
}, z.core.$strict>], "kind">;
|
|
1232
1274
|
window: z.ZodObject<{
|
|
1233
1275
|
start: z.ZodNumber;
|
|
@@ -1330,4 +1372,4 @@ type TrackerReader = {
|
|
|
1330
1372
|
}, query?: TrackerQuery): Promise<z.infer<typeof trackerSummarySchema>>;
|
|
1331
1373
|
};
|
|
1332
1374
|
|
|
1333
|
-
export {
|
|
1375
|
+
export { trackerDataMaxBranches as $, type AccountRole as A, type Bound as B, type Condition as C, type DataLeaves as D, type TypedTrackerRecord as E, type WhereSetting as F, type WithRecordData as G, accountRoleSchema as H, type IdentityKind as I, beneficiaryRole as J, customSourceSchema as K, defaultTriggerMode as L, identityKindSchema as M, publishedTrackerSchema as N, sourceIdentities as O, trackerAccountSchema as P, trackerArtifactSchema as Q, trackerAttributionSchema as R, trackerBoundSchema as S, type Tracker as T, trackerConditionSchema as U, trackerContentQuerySchema as V, type Where as W, type XTweet as X, trackerContentReadSchema as Y, trackerContentSchema as Z, trackerControlSchema as _, type TrackerAccount as a, trackerDataMaxEntries as a0, trackerDataSchemaSchema as a1, trackerDefinitionSchema as a2, trackerEvidenceSchema as a3, trackerIngestResultSchema as a4, trackerIngestSchema as a5, trackerOutcomePageSchema as a6, trackerOutcomeQuerySchema as a7, trackerOutcomeRetrySchema as a8, trackerOutcomeSchema as a9, schemaCheckedReader as aA, trackerDataBatchSteps as aB, trackerDataIssue as aC, trackerDataIssues as aD, trackerDataPathTypes as aE, trackerDataRecordSteps as aF, whereSchemaIssue as aG, trackerPageSchema as aa, trackerPreviewInputSchema as ab, trackerPreviewLimits as ac, trackerPreviewSchema as ad, trackerQuerySchema as ae, trackerRecordInputSchema as af, trackerRecordSchema as ag, trackerSkipCodes as ah, trackerSourceKinds as ai, trackerSourceSchema as aj, trackerStatusSchema as ak, trackerSummarySchema as al, trackerTriggerContextSchema as am, trackerTriggerModeSchema as an, trackerTriggerPolicySchema as ao, trackerTriggerRecordSchema as ap, trackerWhereSchema as aq, triggerMode as ar, whereConditions as as, whereSettings as at, xAccountRoles as au, xContentBodySchema as av, xSearchSourceSchema as aw, xTweetSchema as ax, trackerDataSchema as ay, type TrackerDataBudget 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 TrackerSourceKind as u, type TrackerStatus as v, type TrackerTriggerContext as w, type TrackerTriggerMode as x, type TrackerTriggerPolicy as y, type TrackerWhere 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.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -68,8 +68,10 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/react": "19.3.0",
|
|
71
|
+
"esbuild": "0.25.12",
|
|
72
|
+
"jsdom": "30.0.1",
|
|
71
73
|
"react": "19.3.0",
|
|
72
|
-
"
|
|
74
|
+
"react-dom": "19.3.0"
|
|
73
75
|
},
|
|
74
76
|
"license": "UNLICENSED",
|
|
75
77
|
"repository": {
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const observationInputSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
source: z.ZodString;
|
|
6
|
-
type: z.ZodString;
|
|
7
|
-
member: z.ZodString;
|
|
8
|
-
actor: z.ZodOptional<z.ZodObject<{
|
|
9
|
-
provider: z.ZodString;
|
|
10
|
-
subject: z.ZodString;
|
|
11
|
-
}, z.core.$strict>>;
|
|
12
|
-
occurredAt: z.ZodNumber;
|
|
13
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
14
|
-
}, z.core.$strict>;
|
|
15
|
-
declare const observationSchema: z.ZodObject<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
source: z.ZodString;
|
|
18
|
-
type: z.ZodString;
|
|
19
|
-
member: z.ZodString;
|
|
20
|
-
actor: z.ZodOptional<z.ZodObject<{
|
|
21
|
-
provider: z.ZodString;
|
|
22
|
-
subject: z.ZodString;
|
|
23
|
-
}, z.core.$strict>>;
|
|
24
|
-
occurredAt: z.ZodNumber;
|
|
25
|
-
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
26
|
-
receivedAt: z.ZodNumber;
|
|
27
|
-
}, z.core.$strict>;
|
|
28
|
-
type Observation = z.infer<typeof observationSchema>;
|
|
29
|
-
declare const observationTriggerSchema: z.ZodObject<{
|
|
30
|
-
source: z.ZodString;
|
|
31
|
-
type: z.ZodString;
|
|
32
|
-
}, z.core.$strict>;
|
|
33
|
-
declare const completionPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
34
|
-
kind: z.ZodLiteral<"streak">;
|
|
35
|
-
days: z.ZodNumber;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
kind: z.ZodLiteral<"once">;
|
|
38
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
-
kind: z.ZodLiteral<"keyed">;
|
|
40
|
-
}, z.core.$strict>], "kind">;
|
|
41
|
-
declare const completionKeySchema: z.ZodString;
|
|
42
|
-
declare const budgetSchema: z.ZodObject<{
|
|
43
|
-
id: z.ZodString;
|
|
44
|
-
scope: z.ZodEnum<{
|
|
45
|
-
member: "member";
|
|
46
|
-
project: "project";
|
|
47
|
-
}>;
|
|
48
|
-
period: z.ZodEnum<{
|
|
49
|
-
lifetime: "lifetime";
|
|
50
|
-
day: "day";
|
|
51
|
-
week: "week";
|
|
52
|
-
month: "month";
|
|
53
|
-
}>;
|
|
54
|
-
limit: z.ZodNumber;
|
|
55
|
-
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
56
|
-
balance: z.ZodString;
|
|
57
|
-
}, z.core.$strict>]>;
|
|
58
|
-
}, z.core.$strict>;
|
|
59
|
-
type Budget = z.infer<typeof budgetSchema>;
|
|
60
|
-
declare const observationReceiptSchema: z.ZodObject<{
|
|
61
|
-
id: z.ZodString;
|
|
62
|
-
source: z.ZodString;
|
|
63
|
-
attempts: z.ZodArray<z.ZodString>;
|
|
64
|
-
receivedAt: z.ZodNumber;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
declare const discordReactionSchema: z.ZodObject<{
|
|
67
|
-
guildId: z.ZodString;
|
|
68
|
-
channelId: z.ZodString;
|
|
69
|
-
messageId: z.ZodString;
|
|
70
|
-
userId: z.ZodString;
|
|
71
|
-
messageAuthorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
actorRoles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
73
|
-
emoji: z.ZodObject<{
|
|
74
|
-
id: z.ZodNullable<z.ZodString>;
|
|
75
|
-
name: z.ZodString;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
messagePublishedAt: z.ZodNumber;
|
|
78
|
-
}, z.core.$strict>;
|
|
79
|
-
declare const discordMessageSchema: z.ZodObject<{
|
|
80
|
-
guildId: z.ZodString;
|
|
81
|
-
channelId: z.ZodString;
|
|
82
|
-
messageId: z.ZodString;
|
|
83
|
-
userId: z.ZodString;
|
|
84
|
-
content: z.ZodNullable<z.ZodString>;
|
|
85
|
-
replyTo: z.ZodNullable<z.ZodString>;
|
|
86
|
-
publishedAt: z.ZodNumber;
|
|
87
|
-
}, z.core.$strict>;
|
|
88
|
-
type DiscordMessage = z.infer<typeof discordMessageSchema>;
|
|
89
|
-
|
|
90
|
-
export { type Budget as B, type DiscordMessage as D, type Observation as O, completionPolicySchema as a, budgetSchema as b, completionKeySchema as c, discordMessageSchema as d, discordReactionSchema as e, observationReceiptSchema as f, observationSchema as g, observationTriggerSchema as h, observationInputSchema as o };
|