@domino-sdk/relay 1.55.0 → 1.59.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 +85 -0
- package/dist/{accounts-DRPENuZe.d.ts → accounts-CVonEkdb.d.ts} +18 -7
- package/dist/{attempt-captures-CxxO7DeD.d.ts → attempt-captures-DBj-rxak.d.ts} +1 -1
- package/dist/authoring.d.ts +306 -72
- package/dist/authoring.js +264 -9
- package/dist/{automatic-outcomes-DxW_v5Wc.d.ts → automatic-outcomes-FS9okvBP.d.ts} +1 -1
- package/dist/avatar.d.ts +1 -2
- package/dist/browser.d.ts +8 -9
- package/dist/browser.js +10 -10
- package/dist/{capability-error-DSd8EMQC.d.ts → capability-error-DDJl0LY-.d.ts} +0 -6
- package/dist/{chunk-IZRITLVV.js → chunk-2LKGAL63.js} +2 -2
- package/dist/{chunk-GL43VQ5D.js → chunk-577DG2IT.js} +38 -8
- package/dist/{chunk-UY6KMLQG.js → chunk-6U5WWH3W.js} +141 -100
- package/dist/{chunk-YCOKTQ4E.js → chunk-AWWCEP7F.js} +1403 -882
- package/dist/{chunk-56DBFNR2.js → chunk-EQF4ID47.js} +1 -1
- package/dist/{chunk-YEVD4A5X.js → chunk-IBROKMFV.js} +2 -2
- package/dist/{chunk-XALIFNMD.js → chunk-KBCTII6C.js} +1 -1
- package/dist/{chunk-WHG5WE43.js → chunk-KYUQEZZA.js} +1 -1
- package/dist/{chunk-WUEQOKJH.js → chunk-LDLOB2UZ.js} +4 -4
- package/dist/{chunk-IUF7DW76.js → chunk-M2JQPDUX.js} +39 -9
- package/dist/{chunk-MLIXJPKL.js → chunk-MHPKEVEW.js} +1 -0
- package/dist/{chunk-TLK2MD4S.js → chunk-R4S6BFOH.js} +1 -1
- package/dist/{chunk-VFBQVY4X.js → chunk-TZJT5CRF.js} +1 -1
- package/dist/{chunk-C7QZ4UBB.js → chunk-UEMLYPKJ.js} +21 -5
- package/dist/{chunk-F6HECAXA.js → chunk-W42KMMH5.js} +140 -101
- package/dist/{chunk-WHMXXHPX.js → chunk-XGXDINGM.js} +16 -3
- package/dist/{chunk-SABMNPF2.js → chunk-YMWRLAAP.js} +1 -1
- package/dist/{chunk-YE3XYB2F.js → chunk-YRSU2X2P.js} +2 -2
- package/dist/{client-C4zUZKpj.d.ts → client-3b9HjSzZ.d.ts} +191 -117
- package/dist/{deployments-B32QS1CI.d.ts → deployments-BydFVj4Q.d.ts} +798 -235
- package/dist/{groups-O6onGPmC.d.ts → groups-CFuTfFqG.d.ts} +15 -9
- package/dist/index.d.ts +9 -10
- package/dist/index.js +9 -9
- package/dist/{integrations-C6_uUh-s.d.ts → integrations-DrbKQSTD.d.ts} +42 -22
- package/dist/internal.d.ts +10 -10
- package/dist/internal.js +9 -9
- package/dist/{offers-BMDNcvwB.d.ts → offers-DAfe1O3_.d.ts} +211 -2
- package/dist/{pages-BFloMpyQ.d.ts → pages-ChDVLrgR.d.ts} +95 -10
- package/dist/portal-proxy.js +4 -4
- package/dist/react/index.d.ts +149 -72
- package/dist/react/index.js +65 -10
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/BG43KQ2T.js +1 -0
- package/dist/runtime/chunks/EWU4OKSY.js +62 -0
- package/dist/runtime/manifest.json +5 -5
- package/dist/runtime/schema.js +1 -1
- package/dist/runtime/zod.js +1 -1
- package/dist/{schema-C4m9RhCR.d.ts → schema-BA0nRRlt.d.ts} +184 -35
- package/dist/schema.d.ts +1265 -697
- package/dist/schema.js +96 -12
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +1644 -1105
- package/dist/{submission-input-BbdawqVy.d.ts → submission-input-DxQ6RnKo.d.ts} +2 -2
- package/dist/{telegram-browser-CwaxROAZ.d.ts → telegram-browser-o3OIxGrJ.d.ts} +3 -3
- package/dist/testing.d.ts +89 -9
- package/dist/testing.js +215 -10
- package/dist/{transport-CZJOW5Sr.d.ts → transport-D_Eqf78J.d.ts} +8592 -4384
- package/dist/wallet-B06zvDXp.d.ts +972 -0
- package/dist/{x-1czZFVUW.d.ts → x-C28SNifw.d.ts} +2 -2
- package/package.json +2 -2
- package/dist/profiles-BoOK03cR.d.ts +0 -299
- package/dist/runtime/chunks/IDOMZWRY.js +0 -40
- package/dist/runtime/chunks/WKATKZXE.js +0 -1
- package/dist/util.d-w9f9t3ua.d.ts +0 -5
- package/dist/wallet-Ac7OFpOr.d.ts +0 -228
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { y as ResourceHandle } from './schema-BA0nRRlt.js';
|
|
3
|
+
import { l as AuthoringIdentity } from './groups-CFuTfFqG.js';
|
|
4
4
|
|
|
5
5
|
declare const badgePropertiesSchema: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
@@ -124,6 +124,28 @@ declare const offerDefinitionSchema: z.ZodObject<{
|
|
|
124
124
|
limit: z.ZodDefault<z.ZodObject<{
|
|
125
125
|
perMember: z.ZodNumber;
|
|
126
126
|
}, z.core.$strict>>;
|
|
127
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
128
|
+
kind: z.ZodLiteral<"completion">;
|
|
129
|
+
quest: z.ZodString;
|
|
130
|
+
scope: z.ZodLiteral<"ever">;
|
|
131
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
132
|
+
kind: z.ZodLiteral<"completion">;
|
|
133
|
+
quest: z.ZodString;
|
|
134
|
+
scope: z.ZodLiteral<"period">;
|
|
135
|
+
period: z.ZodEnum<{
|
|
136
|
+
day: "day";
|
|
137
|
+
week: "week";
|
|
138
|
+
month: "month";
|
|
139
|
+
}>;
|
|
140
|
+
}, z.core.$strict>], "scope">, z.ZodObject<{
|
|
141
|
+
kind: z.ZodLiteral<"balance">;
|
|
142
|
+
balance: z.ZodString;
|
|
143
|
+
minimum: z.ZodNumber;
|
|
144
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
145
|
+
kind: z.ZodLiteral<"group">;
|
|
146
|
+
group: z.ZodString;
|
|
147
|
+
title: z.ZodString;
|
|
148
|
+
}, z.core.$strict>], "kind">>>;
|
|
127
149
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
128
150
|
}, z.core.$strict>;
|
|
129
151
|
type OfferDefinition = z.infer<typeof offerDefinitionSchema>;
|
|
@@ -153,6 +175,28 @@ declare const offerAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
153
175
|
}, z.core.$strict>;
|
|
154
176
|
tier: z.ZodString;
|
|
155
177
|
}, z.core.$strict>;
|
|
178
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
|
+
kind: z.ZodLiteral<"completion">;
|
|
180
|
+
quest: z.ZodString;
|
|
181
|
+
scope: z.ZodLiteral<"ever">;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
kind: z.ZodLiteral<"completion">;
|
|
184
|
+
quest: z.ZodString;
|
|
185
|
+
scope: z.ZodLiteral<"period">;
|
|
186
|
+
period: z.ZodEnum<{
|
|
187
|
+
day: "day";
|
|
188
|
+
week: "week";
|
|
189
|
+
month: "month";
|
|
190
|
+
}>;
|
|
191
|
+
}, z.core.$strict>], "scope">, z.ZodObject<{
|
|
192
|
+
kind: z.ZodLiteral<"balance">;
|
|
193
|
+
balance: z.ZodString;
|
|
194
|
+
minimum: z.ZodNumber;
|
|
195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
196
|
+
kind: z.ZodLiteral<"group">;
|
|
197
|
+
group: z.ZodString;
|
|
198
|
+
title: z.ZodString;
|
|
199
|
+
}, z.core.$strict>], "kind">>>;
|
|
156
200
|
price: z.ZodObject<{
|
|
157
201
|
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
158
202
|
balance: z.ZodString;
|
|
@@ -160,6 +204,7 @@ declare const offerAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
160
204
|
}, z.core.$strict>;
|
|
161
205
|
stock: z.ZodNumber;
|
|
162
206
|
title: z.ZodOptional<z.ZodString>;
|
|
207
|
+
enabled: z.ZodOptional<z.ZodLiteral<true>>;
|
|
163
208
|
key: z.ZodString;
|
|
164
209
|
}, z.core.$strict>, z.ZodTransform<{
|
|
165
210
|
title: string;
|
|
@@ -196,6 +241,24 @@ declare const offerAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
196
241
|
};
|
|
197
242
|
stock: number;
|
|
198
243
|
key: string;
|
|
244
|
+
requires?: ({
|
|
245
|
+
kind: "completion";
|
|
246
|
+
quest: string;
|
|
247
|
+
scope: "ever";
|
|
248
|
+
} | {
|
|
249
|
+
kind: "completion";
|
|
250
|
+
quest: string;
|
|
251
|
+
scope: "period";
|
|
252
|
+
period: "day" | "week" | "month";
|
|
253
|
+
} | {
|
|
254
|
+
kind: "balance";
|
|
255
|
+
balance: string;
|
|
256
|
+
minimum: number;
|
|
257
|
+
} | {
|
|
258
|
+
kind: "group";
|
|
259
|
+
group: string;
|
|
260
|
+
title: string;
|
|
261
|
+
})[] | undefined;
|
|
199
262
|
}, {
|
|
200
263
|
limit: {
|
|
201
264
|
perMember: number;
|
|
@@ -229,7 +292,26 @@ declare const offerAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
229
292
|
};
|
|
230
293
|
stock: number;
|
|
231
294
|
key: string;
|
|
295
|
+
requires?: ({
|
|
296
|
+
kind: "completion";
|
|
297
|
+
quest: string;
|
|
298
|
+
scope: "ever";
|
|
299
|
+
} | {
|
|
300
|
+
kind: "completion";
|
|
301
|
+
quest: string;
|
|
302
|
+
scope: "period";
|
|
303
|
+
period: "day" | "week" | "month";
|
|
304
|
+
} | {
|
|
305
|
+
kind: "balance";
|
|
306
|
+
balance: string;
|
|
307
|
+
minimum: number;
|
|
308
|
+
} | {
|
|
309
|
+
kind: "group";
|
|
310
|
+
group: string;
|
|
311
|
+
title: string;
|
|
312
|
+
})[] | undefined;
|
|
232
313
|
title?: string | undefined;
|
|
314
|
+
enabled?: true | undefined;
|
|
233
315
|
}>>;
|
|
234
316
|
type OfferAuthoring = z.input<typeof offerAuthoringSchema>;
|
|
235
317
|
declare const offerArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
@@ -258,6 +340,28 @@ declare const offerArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
258
340
|
}, z.core.$strict>;
|
|
259
341
|
tier: z.ZodString;
|
|
260
342
|
}, z.core.$strict>;
|
|
343
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
344
|
+
kind: z.ZodLiteral<"completion">;
|
|
345
|
+
quest: z.ZodString;
|
|
346
|
+
scope: z.ZodLiteral<"ever">;
|
|
347
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
348
|
+
kind: z.ZodLiteral<"completion">;
|
|
349
|
+
quest: z.ZodString;
|
|
350
|
+
scope: z.ZodLiteral<"period">;
|
|
351
|
+
period: z.ZodEnum<{
|
|
352
|
+
day: "day";
|
|
353
|
+
week: "week";
|
|
354
|
+
month: "month";
|
|
355
|
+
}>;
|
|
356
|
+
}, z.core.$strict>], "scope">, z.ZodObject<{
|
|
357
|
+
kind: z.ZodLiteral<"balance">;
|
|
358
|
+
balance: z.ZodString;
|
|
359
|
+
minimum: z.ZodNumber;
|
|
360
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
361
|
+
kind: z.ZodLiteral<"group">;
|
|
362
|
+
group: z.ZodString;
|
|
363
|
+
title: z.ZodString;
|
|
364
|
+
}, z.core.$strict>], "kind">>>;
|
|
261
365
|
price: z.ZodObject<{
|
|
262
366
|
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
263
367
|
balance: z.ZodString;
|
|
@@ -265,6 +369,7 @@ declare const offerArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
265
369
|
}, z.core.$strict>;
|
|
266
370
|
stock: z.ZodNumber;
|
|
267
371
|
title: z.ZodOptional<z.ZodString>;
|
|
372
|
+
enabled: z.ZodOptional<z.ZodLiteral<true>>;
|
|
268
373
|
key: z.ZodString;
|
|
269
374
|
}, z.core.$strict>, z.ZodTransform<{
|
|
270
375
|
title: string;
|
|
@@ -301,6 +406,24 @@ declare const offerArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
301
406
|
};
|
|
302
407
|
stock: number;
|
|
303
408
|
key: string;
|
|
409
|
+
requires?: ({
|
|
410
|
+
kind: "completion";
|
|
411
|
+
quest: string;
|
|
412
|
+
scope: "ever";
|
|
413
|
+
} | {
|
|
414
|
+
kind: "completion";
|
|
415
|
+
quest: string;
|
|
416
|
+
scope: "period";
|
|
417
|
+
period: "day" | "week" | "month";
|
|
418
|
+
} | {
|
|
419
|
+
kind: "balance";
|
|
420
|
+
balance: string;
|
|
421
|
+
minimum: number;
|
|
422
|
+
} | {
|
|
423
|
+
kind: "group";
|
|
424
|
+
group: string;
|
|
425
|
+
title: string;
|
|
426
|
+
})[] | undefined;
|
|
304
427
|
}, {
|
|
305
428
|
limit: {
|
|
306
429
|
perMember: number;
|
|
@@ -334,7 +457,26 @@ declare const offerArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
334
457
|
};
|
|
335
458
|
stock: number;
|
|
336
459
|
key: string;
|
|
460
|
+
requires?: ({
|
|
461
|
+
kind: "completion";
|
|
462
|
+
quest: string;
|
|
463
|
+
scope: "ever";
|
|
464
|
+
} | {
|
|
465
|
+
kind: "completion";
|
|
466
|
+
quest: string;
|
|
467
|
+
scope: "period";
|
|
468
|
+
period: "day" | "week" | "month";
|
|
469
|
+
} | {
|
|
470
|
+
kind: "balance";
|
|
471
|
+
balance: string;
|
|
472
|
+
minimum: number;
|
|
473
|
+
} | {
|
|
474
|
+
kind: "group";
|
|
475
|
+
group: string;
|
|
476
|
+
title: string;
|
|
477
|
+
})[] | undefined;
|
|
337
478
|
title?: string | undefined;
|
|
479
|
+
enabled?: true | undefined;
|
|
338
480
|
}>>, z.ZodObject<{
|
|
339
481
|
code: z.ZodString;
|
|
340
482
|
}, z.core.$strict>]>;
|
|
@@ -383,6 +525,28 @@ declare const offerSchema: z.ZodObject<{
|
|
|
383
525
|
limit: z.ZodDefault<z.ZodObject<{
|
|
384
526
|
perMember: z.ZodNumber;
|
|
385
527
|
}, z.core.$strict>>;
|
|
528
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
529
|
+
kind: z.ZodLiteral<"completion">;
|
|
530
|
+
quest: z.ZodString;
|
|
531
|
+
scope: z.ZodLiteral<"ever">;
|
|
532
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
533
|
+
kind: z.ZodLiteral<"completion">;
|
|
534
|
+
quest: z.ZodString;
|
|
535
|
+
scope: z.ZodLiteral<"period">;
|
|
536
|
+
period: z.ZodEnum<{
|
|
537
|
+
day: "day";
|
|
538
|
+
week: "week";
|
|
539
|
+
month: "month";
|
|
540
|
+
}>;
|
|
541
|
+
}, z.core.$strict>], "scope">, z.ZodObject<{
|
|
542
|
+
kind: z.ZodLiteral<"balance">;
|
|
543
|
+
balance: z.ZodString;
|
|
544
|
+
minimum: z.ZodNumber;
|
|
545
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
546
|
+
kind: z.ZodLiteral<"group">;
|
|
547
|
+
group: z.ZodString;
|
|
548
|
+
title: z.ZodString;
|
|
549
|
+
}, z.core.$strict>], "kind">>>;
|
|
386
550
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
387
551
|
revision: z.ZodNumber;
|
|
388
552
|
available: z.ZodNumber;
|
|
@@ -397,6 +561,33 @@ declare const offerSchema: z.ZodObject<{
|
|
|
397
561
|
}, z.core.$strict>, z.ZodObject<{
|
|
398
562
|
kind: z.ZodLiteral<"paused">;
|
|
399
563
|
}, z.core.$strict>], "kind">;
|
|
564
|
+
missing: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
565
|
+
kind: z.ZodLiteral<"completion">;
|
|
566
|
+
quest: z.ZodString;
|
|
567
|
+
title: z.ZodString;
|
|
568
|
+
scope: z.ZodLiteral<"ever">;
|
|
569
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
570
|
+
kind: z.ZodLiteral<"completion">;
|
|
571
|
+
quest: z.ZodString;
|
|
572
|
+
title: z.ZodString;
|
|
573
|
+
scope: z.ZodLiteral<"period">;
|
|
574
|
+
period: z.ZodEnum<{
|
|
575
|
+
day: "day";
|
|
576
|
+
week: "week";
|
|
577
|
+
month: "month";
|
|
578
|
+
}>;
|
|
579
|
+
resetsAt: z.ZodNumber;
|
|
580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
581
|
+
kind: z.ZodLiteral<"balance">;
|
|
582
|
+
balance: z.ZodString;
|
|
583
|
+
title: z.ZodString;
|
|
584
|
+
minimum: z.ZodNumber;
|
|
585
|
+
current: z.ZodNumber;
|
|
586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
587
|
+
kind: z.ZodLiteral<"group">;
|
|
588
|
+
group: z.ZodString;
|
|
589
|
+
title: z.ZodString;
|
|
590
|
+
}, z.core.$strip>]>>>;
|
|
400
591
|
}, z.core.$strict>;
|
|
401
592
|
/** @compat output */
|
|
402
593
|
type Offer = z.infer<typeof offerSchema>;
|
|
@@ -618,6 +809,24 @@ declare function defineOffer(input: OfferAuthoring & AuthoringIdentity): {
|
|
|
618
809
|
};
|
|
619
810
|
stock: number;
|
|
620
811
|
key: string;
|
|
812
|
+
requires?: ({
|
|
813
|
+
kind: "completion";
|
|
814
|
+
quest: string;
|
|
815
|
+
scope: "ever";
|
|
816
|
+
} | {
|
|
817
|
+
kind: "completion";
|
|
818
|
+
quest: string;
|
|
819
|
+
scope: "period";
|
|
820
|
+
period: "day" | "week" | "month";
|
|
821
|
+
} | {
|
|
822
|
+
kind: "balance";
|
|
823
|
+
balance: string;
|
|
824
|
+
minimum: number;
|
|
825
|
+
} | {
|
|
826
|
+
kind: "group";
|
|
827
|
+
group: string;
|
|
828
|
+
title: string;
|
|
829
|
+
})[] | undefined;
|
|
621
830
|
} & ResourceHandle<"offer">;
|
|
622
831
|
|
|
623
832
|
export { offerSchema as A, type Badge as B, redeemOfferSchema as C, redemptionCancellationSchema as D, redemptionPageSchema as E, redemptionQuerySchema as F, redemptionSchema as G, type ManagedBadge as M, type Offer as O, type RedeemOfferInput as R, type MemberBadge as a, type MemberBadges as b, type OfferDefinition as c, type OfferPrice as d, type Redemption as e, badgeDeclarationSchema as f, defineOffer as g, type OfferAuthoring as h, type RedemptionPage as i, type RedemptionQuery as j, badgeArtifactSchema as k, badgeMutationResultSchema as l, badgeMutationSchema as m, badgePropertiesSchema as n, badgeSchema as o, createBadgeSchema as p, managedBadgeSchema as q, memberBadgeSchema as r, memberBadgesSchema as s, offerArtifactSchema as t, offerAuthoringSchema as u, offerAvailabilitySchema as v, offerControlSchema as w, offerDefinitionSchema as x, offerLimitSchema as y, offerPriceSchema as z };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { a as AttemptStatus,
|
|
2
|
+
import { a as AttemptStatus, cu as questDescriptionSchema, o as TrackerSkipCode } from './schema-BA0nRRlt.js';
|
|
3
|
+
import { af as SolanaIdlSource } from './wallet-B06zvDXp.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* The delivery actions this SDK knows. `RewardDelivery.action` is an open string: Relay can add
|
|
@@ -199,6 +200,32 @@ declare const rewardDeliveryQuerySchema: z.ZodObject<{
|
|
|
199
200
|
}, z.core.$strict>;
|
|
200
201
|
type RewardDeliveryQuery = z.input<typeof rewardDeliveryQuerySchema>;
|
|
201
202
|
type RewardDelivery = z.infer<typeof rewardDeliverySchema>;
|
|
203
|
+
/**
|
|
204
|
+
* A Discord role the project's reward deliveries grant, with every delivery of it counted, however
|
|
205
|
+
* old. `quests` names the quests whose completions requested it.
|
|
206
|
+
*/
|
|
207
|
+
declare const discordRoleRewardSchema: z.ZodObject<{
|
|
208
|
+
roleId: z.ZodString;
|
|
209
|
+
quests: z.ZodArray<z.ZodString>;
|
|
210
|
+
deliveries: z.ZodObject<{
|
|
211
|
+
pending: z.ZodNumber;
|
|
212
|
+
delivered: z.ZodNumber;
|
|
213
|
+
failed: z.ZodNumber;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
/** Every Discord role the project's reward deliveries grant, in this environment, by role ID. */
|
|
217
|
+
declare const discordRoleRewardsSchema: z.ZodObject<{
|
|
218
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
219
|
+
roleId: z.ZodString;
|
|
220
|
+
quests: z.ZodArray<z.ZodString>;
|
|
221
|
+
deliveries: z.ZodObject<{
|
|
222
|
+
pending: z.ZodNumber;
|
|
223
|
+
delivered: z.ZodNumber;
|
|
224
|
+
failed: z.ZodNumber;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
type DiscordRoleReward = z.infer<typeof discordRoleRewardSchema>;
|
|
202
229
|
|
|
203
230
|
declare const interactionSchema: z.ZodEnum<{
|
|
204
231
|
url: "url";
|
|
@@ -2086,6 +2113,11 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
2086
2113
|
}, z.core.$strict>], "kind">>>;
|
|
2087
2114
|
}, z.core.$strict>>;
|
|
2088
2115
|
}, z.core.$strict>>;
|
|
2116
|
+
solanaIdls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2117
|
+
program: z.ZodString;
|
|
2118
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
2119
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
2120
|
+
}, z.core.$strict>>>;
|
|
2089
2121
|
}, z.core.$strict>>>;
|
|
2090
2122
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
2091
2123
|
url: "url";
|
|
@@ -5569,6 +5601,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
5569
5601
|
}, z.core.$strict>], "kind">>>;
|
|
5570
5602
|
}, z.core.$strict>>;
|
|
5571
5603
|
}, z.core.$strict>>;
|
|
5604
|
+
solanaIdls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5605
|
+
program: z.ZodString;
|
|
5606
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
5607
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
5608
|
+
}, z.core.$strict>>>;
|
|
5572
5609
|
}, z.core.$strict>>;
|
|
5573
5610
|
affectedCollections: z.ZodArray<z.ZodObject<{
|
|
5574
5611
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -5620,6 +5657,62 @@ declare function responseListSchema<T>(schema: z.ZodType<T>): ResponseSchema<{
|
|
|
5620
5657
|
unsupportedCount: number;
|
|
5621
5658
|
}>;
|
|
5622
5659
|
|
|
5660
|
+
/** The creator-account providers this SDK knows. A later Relay may list others. */
|
|
5661
|
+
declare const knownCreatorAccountProviders: readonly ["youtube", "tiktok"];
|
|
5662
|
+
/** A creator-account provider: one of `knownCreatorAccountProviders`, or one a later Relay adds. */
|
|
5663
|
+
type CreatorAccountProvider = (typeof knownCreatorAccountProviders)[number] | (string & {});
|
|
5664
|
+
declare const creatorAccountProviderSchema: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
|
|
5665
|
+
/**
|
|
5666
|
+
* A member's account on one creator platform, as `AccountConnection` describes sign-in accounts.
|
|
5667
|
+
* `subject` is the platform's stable account ID (a YouTube channel ID, `UC…`, or a TikTok
|
|
5668
|
+
* `open_id`); `profile` is the
|
|
5669
|
+
* public name, handle and picture the platform reported when the member linked it. `reconnect`
|
|
5670
|
+
* means Relay can no longer read the account and the member must link it again.
|
|
5671
|
+
*
|
|
5672
|
+
* @compat output
|
|
5673
|
+
*/
|
|
5674
|
+
declare const creatorAccountSchema: z.ZodObject<{
|
|
5675
|
+
provider: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
|
|
5676
|
+
configured: z.ZodBoolean;
|
|
5677
|
+
status: z.ZodEnum<{
|
|
5678
|
+
disconnected: "disconnected";
|
|
5679
|
+
connected: "connected";
|
|
5680
|
+
reconnect: "reconnect";
|
|
5681
|
+
}>;
|
|
5682
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
5683
|
+
revision: z.ZodNumber;
|
|
5684
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
5685
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5686
|
+
username: z.ZodOptional<z.ZodString>;
|
|
5687
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
5688
|
+
}, z.core.$strip>>;
|
|
5689
|
+
}, z.core.$strip>;
|
|
5690
|
+
type CreatorAccount = z.infer<typeof creatorAccountSchema>;
|
|
5691
|
+
/**
|
|
5692
|
+
* The member's creator accounts: one per provider the platform configured.
|
|
5693
|
+
*
|
|
5694
|
+
* @compat output
|
|
5695
|
+
*/
|
|
5696
|
+
declare const creatorAccountsSchema: z.ZodObject<{
|
|
5697
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
5698
|
+
provider: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
|
|
5699
|
+
configured: z.ZodBoolean;
|
|
5700
|
+
status: z.ZodEnum<{
|
|
5701
|
+
disconnected: "disconnected";
|
|
5702
|
+
connected: "connected";
|
|
5703
|
+
reconnect: "reconnect";
|
|
5704
|
+
}>;
|
|
5705
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
5706
|
+
revision: z.ZodNumber;
|
|
5707
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
5708
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5709
|
+
username: z.ZodOptional<z.ZodString>;
|
|
5710
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
5711
|
+
}, z.core.$strip>>;
|
|
5712
|
+
}, z.core.$strip>>;
|
|
5713
|
+
}, z.core.$strip>;
|
|
5714
|
+
type CreatorAccounts = z.infer<typeof creatorAccountsSchema>;
|
|
5715
|
+
|
|
5623
5716
|
declare const contentQualificationDecisionSchema: z.ZodObject<{
|
|
5624
5717
|
kind: z.ZodEnum<{
|
|
5625
5718
|
accept: "accept";
|
|
@@ -5634,13 +5727,11 @@ declare const contentQualificationDecisionSchema: z.ZodObject<{
|
|
|
5634
5727
|
declare const contentQualificationQuerySchema: z.ZodObject<{
|
|
5635
5728
|
quest: z.ZodString;
|
|
5636
5729
|
member: z.ZodOptional<z.ZodString>;
|
|
5637
|
-
/** A content item's record ID in the quest's tracker. */
|
|
5638
5730
|
content: z.ZodOptional<z.ZodString>;
|
|
5639
5731
|
cursor: z.ZodOptional<z.ZodString>;
|
|
5640
5732
|
}, z.core.$strict>;
|
|
5641
5733
|
declare const contentQualificationSchema: z.ZodObject<{
|
|
5642
5734
|
quest: z.ZodString;
|
|
5643
|
-
/** The content item's record ID in the quest's tracker. */
|
|
5644
5735
|
content: z.ZodString;
|
|
5645
5736
|
member: z.ZodString;
|
|
5646
5737
|
release: z.ZodString;
|
|
@@ -5673,7 +5764,6 @@ declare const contentQualificationSchema: z.ZodObject<{
|
|
|
5673
5764
|
declare const contentQualificationPageSchema: z.ZodObject<{
|
|
5674
5765
|
items: z.ZodArray<z.ZodObject<{
|
|
5675
5766
|
quest: z.ZodString;
|
|
5676
|
-
/** The content item's record ID in the quest's tracker. */
|
|
5677
5767
|
content: z.ZodString;
|
|
5678
5768
|
member: z.ZodString;
|
|
5679
5769
|
release: z.ZodString;
|
|
@@ -5720,7 +5810,6 @@ type ContentPerformancePolicy = z.infer<typeof contentPerformancePolicySchema>;
|
|
|
5720
5810
|
/** `relay.quests.enroll()`: the signed-in member enrolls in a quest that requires enrollment. */
|
|
5721
5811
|
declare const questEnrollmentInputSchema: z.ZodObject<{
|
|
5722
5812
|
actionId: z.ZodString;
|
|
5723
|
-
/** Quest key or ID. */
|
|
5724
5813
|
quest: z.ZodString;
|
|
5725
5814
|
}, z.core.$strict>;
|
|
5726
5815
|
type QuestEnrollmentInput = z.input<typeof questEnrollmentInputSchema>;
|
|
@@ -5748,9 +5837,7 @@ type QuestEnrollment = z.infer<typeof questEnrollmentSchema>;
|
|
|
5748
5837
|
*/
|
|
5749
5838
|
declare const questClaimInputSchema: z.ZodObject<{
|
|
5750
5839
|
actionId: z.ZodString;
|
|
5751
|
-
/** Quest key or ID. */
|
|
5752
5840
|
quest: z.ZodString;
|
|
5753
|
-
/** The outcome's tracker, as `QuestOutcome.tracker` names it. */
|
|
5754
5841
|
tracker: z.ZodString;
|
|
5755
5842
|
record: z.ZodString;
|
|
5756
5843
|
observedAt: z.ZodNumber;
|
|
@@ -5793,13 +5880,11 @@ declare const questOutcomeSchema: z.ZodObject<{
|
|
|
5793
5880
|
type QuestOutcome = z.infer<typeof questOutcomeSchema>;
|
|
5794
5881
|
/** `relay.quests.outcomes()`: newest first, optionally one quest, state or code. */
|
|
5795
5882
|
declare const questOutcomeQuerySchema: z.ZodObject<{
|
|
5796
|
-
/** Quest key or ID. */
|
|
5797
5883
|
quest: z.ZodOptional<z.ZodString>;
|
|
5798
5884
|
state: z.ZodOptional<z.ZodEnum<{
|
|
5799
5885
|
admitted: "admitted";
|
|
5800
5886
|
skipped: "skipped";
|
|
5801
5887
|
}>>;
|
|
5802
|
-
/** Only skips with this code, such as `historical`. */
|
|
5803
5888
|
code: z.ZodOptional<z.ZodString>;
|
|
5804
5889
|
cursor: z.ZodOptional<z.ZodString>;
|
|
5805
5890
|
}, z.core.$strict>;
|
|
@@ -5863,4 +5948,4 @@ declare const managementStateQuerySchema: z.ZodObject<{
|
|
|
5863
5948
|
}, z.core.$strict>;
|
|
5864
5949
|
type ManagementStateQuery = z.input<typeof managementStateQuerySchema>;
|
|
5865
5950
|
|
|
5866
|
-
export {
|
|
5951
|
+
export { managementStateQuerySchema as $, allocatedQuestSchema as A, catalogDeploymentPreviewSchema as B, type CreatorAccount as C, type DiscordRoleReward as D, catalogDeploymentSchema as E, collectionSlotDeclarationSchema as F, collectionSlotSchema as G, collectionViewSchema as H, contentMetricSchema as I, contentMetricsSchema as J, contentPerformancePolicySchema as K, contentQualificationDecisionSchema as L, type ManagementStateQuery as M, contentQualificationPageSchema as N, contentQualificationSchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, creatorAccountProviderSchema as S, creatorAccountSchema as T, type UnsupportedResponse as U, creatorAccountsSchema as V, discordRoleRewardSchema as W, discordRoleRewardsSchema as X, interactionSchema as Y, knownCreatorAccountProviders as Z, knownRewardDeliverySchema as _, type CreatorAccountProvider as a, memberEnrollmentInputSchema as a0, pageCursorSchema as a1, pageQuerySchema as a2, publishQuestDraftSchema as a3, questCatalogSchema as a4, questClaimInputSchema as a5, questCollectionSchema as a6, questDraftChangesSchema as a7, questDraftSchema as a8, questEnrollmentInputSchema as a9, questEnrollmentSchema as aa, questInstanceSchema as ab, questInteraction as ac, questOutcomePageSchema as ad, questOutcomeQuerySchema as ae, questOutcomeSchema as af, questPublicationPreviewSchema as ag, questRewardViewSchema as ah, questTypeVersionSchema as ai, questViewSchema as aj, responseListSchema as ak, responseSchema as al, responseShape as am, rewardDeliveriesSchema as an, rewardDeliveryQuerySchema as ao, rewardDeliverySchema as ap, roleReconciliationSchema as aq, saveQuestDraftSchema as ar, type CreatorAccounts as b, type PageQuery as c, type QuestEnrollment as d, type QuestEnrollmentInput as e, type QuestInteraction as f, type QuestOutcome as g, type QuestOutcomePage as h, type QuestOutcomeQuery as i, QuestOutcomeState as j, type QuestRewardView as k, type QuestView as l, type ResponseSchema as m, type RewardDeliveryQuery as n, RewardDeliveryAction as o, paginate as p, questExperienceSchema as q, contentQualificationQuerySchema as r, type ContentMetric as s, type ContentPerformancePolicy as t, type MemberEnrollmentInput as u, type QuestCatalog as v, type QuestDraft as w, type QuestInstance as x, type RewardDelivery as y, allocateQuestSchema as z };
|
package/dist/portal-proxy.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isParticipantRoute
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MHPKEVEW.js";
|
|
4
4
|
import {
|
|
5
5
|
clientIdentity
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TZJT5CRF.js";
|
|
7
7
|
import {
|
|
8
8
|
exchangeResultSchema,
|
|
9
9
|
participantPrincipalSchema,
|
|
10
10
|
sessionMember
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-EQF4ID47.js";
|
|
12
|
+
import "./chunk-AWWCEP7F.js";
|
|
13
13
|
|
|
14
14
|
// src/portal-proxy.ts
|
|
15
15
|
import * as z from "zod";
|