@domino-sdk/relay 1.53.1 → 1.55.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 +1848 -0
- package/dist/analytics-URV-mxjH.d.ts +482 -0
- package/dist/{attempt-captures-QC4kTA44.d.ts → attempt-captures-CxxO7DeD.d.ts} +1 -1
- package/dist/authoring.d.ts +233 -78
- package/dist/authoring.js +112 -14
- package/dist/{automatic-outcomes-CVyZHxir.d.ts → automatic-outcomes-DxW_v5Wc.d.ts} +5 -2
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +8 -7
- package/dist/browser.js +14 -10
- package/dist/{capability-error-FQGGb5xS.d.ts → capability-error-DSd8EMQC.d.ts} +76 -2
- package/dist/{chunk-53JMTUWG.js → chunk-56DBFNR2.js} +1 -1
- package/dist/chunk-C7QZ4UBB.js +937 -0
- package/dist/chunk-F6HECAXA.js +661 -0
- package/dist/{chunk-VKHSC5MD.js → chunk-GL43VQ5D.js} +16 -16
- package/dist/{chunk-GTQJSDBS.js → chunk-IUF7DW76.js} +27 -16
- package/dist/{chunk-YBR4BUFK.js → chunk-IZRITLVV.js} +2 -2
- package/dist/chunk-KDR2VAJP.js +34 -0
- package/dist/{chunk-S2PMKZSX.js → chunk-SABMNPF2.js} +21 -2
- package/dist/{chunk-XFAYQFRO.js → chunk-TLK2MD4S.js} +1 -1
- package/dist/{chunk-ZJ3FVZRP.js → chunk-UY6KMLQG.js} +10 -3
- package/dist/{chunk-JYJAS4E3.js → chunk-VFBQVY4X.js} +1 -1
- package/dist/{chunk-YVC3B72P.js → chunk-WHG5WE43.js} +1 -1
- package/dist/chunk-WHMXXHPX.js +344 -0
- package/dist/{chunk-MP2ZF5U6.js → chunk-WUEQOKJH.js} +4 -4
- package/dist/{chunk-7BNCLWAO.js → chunk-XALIFNMD.js} +1 -1
- package/dist/{chunk-IELNFM3V.js → chunk-YCOKTQ4E.js} +96 -7
- package/dist/{chunk-LPHXTZDA.js → chunk-YE3XYB2F.js} +2 -2
- package/dist/{chunk-K6TVMNU4.js → chunk-YEVD4A5X.js} +1 -1
- package/dist/{client-CzNtl8UO.d.ts → client-C4zUZKpj.d.ts} +35 -7
- package/dist/{deployments-ovtqtAcx.d.ts → deployments-B32QS1CI.d.ts} +1060 -233
- package/dist/{groups-B5R1RCsl.d.ts → groups-O6onGPmC.d.ts} +131 -137
- package/dist/host-environment-FN4zg3hw.d.ts +30 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/integrations-C6_uUh-s.d.ts +584 -0
- package/dist/internal.d.ts +12 -10
- package/dist/internal.js +14 -8
- package/dist/{offers-CH1RZekg.d.ts → offers-BMDNcvwB.d.ts} +2 -2
- package/dist/{pages-BTlOg8sl.d.ts → pages-BFloMpyQ.d.ts} +25 -1
- package/dist/portal-proxy.d.ts +11 -1
- package/dist/portal-proxy.js +26 -5
- package/dist/{profiles-Cdv4BSd_.d.ts → profiles-BoOK03cR.d.ts} +2 -0
- package/dist/react/index.d.ts +488 -13
- package/dist/react/index.js +51 -15
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/WKATKZXE.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/{schema-BJ9bOgpN.d.ts → schema-C4m9RhCR.d.ts} +166 -6
- package/dist/schema.d.ts +392 -334
- package/dist/schema.js +84 -40
- package/dist/server/index.d.ts +11 -10
- package/dist/server/index.js +1604 -838
- package/dist/{submission-input-BNah53go.d.ts → submission-input-BbdawqVy.d.ts} +2 -2
- package/dist/{telegram-browser-C36j_6v-.d.ts → telegram-browser-CwaxROAZ.d.ts} +1 -1
- package/dist/testing.d.ts +85 -12
- package/dist/testing.js +322 -37
- package/dist/{transport-DuB_fiA2.d.ts → transport-CZJOW5Sr.d.ts} +8018 -3150
- package/dist/vite.d.ts +54 -1
- package/dist/vite.js +35 -0
- package/dist/{x-BfQcsDp0.d.ts → x-1czZFVUW.d.ts} +1 -1
- package/package.json +3 -2
- package/dist/chunk-2NUD237O.js +0 -102
- package/dist/chunk-CCE2JWES.js +0 -1083
- package/dist/integrations-CllF-kWg.d.ts +0 -314
- package/dist/runtime/chunks/AVRVSLHX.js +0 -1
|
@@ -1,140 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare const pointLedgerPropertiesSchema: z.ZodObject<{
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
description: z.ZodDefault<z.ZodString>;
|
|
7
|
-
}, z.core.$strict>;
|
|
8
|
-
declare const createPointLedgerSchema: z.ZodObject<{
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
description: z.ZodDefault<z.ZodString>;
|
|
11
|
-
actionId: z.ZodString;
|
|
12
|
-
key: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strict>;
|
|
14
|
-
declare const pointLedgerSchema: z.ZodObject<{
|
|
15
|
-
name: z.ZodString;
|
|
16
|
-
description: z.ZodDefault<z.ZodString>;
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
}, z.core.$strict>;
|
|
19
|
-
/** A point ledger as operators manage it. Archived ledgers stay readable but cannot be selected for new rewards. */
|
|
20
|
-
declare const managedPointLedgerSchema: z.ZodObject<{
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
description: z.ZodDefault<z.ZodString>;
|
|
23
|
-
id: z.ZodString;
|
|
24
|
-
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
}, z.core.$strict>;
|
|
26
|
-
declare const pointLedgerDeclarationSchema: z.ZodObject<{
|
|
27
|
-
name: z.ZodString;
|
|
28
|
-
description: z.ZodDefault<z.ZodString>;
|
|
29
|
-
key: z.ZodString;
|
|
30
|
-
}, z.core.$strict>;
|
|
31
|
-
declare const pointLedgerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
32
|
-
name: z.ZodString;
|
|
33
|
-
description: z.ZodDefault<z.ZodString>;
|
|
34
|
-
key: z.ZodString;
|
|
35
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
-
code: z.ZodString;
|
|
37
|
-
}, z.core.$strict>]>;
|
|
38
|
-
/**
|
|
39
|
-
* What an app needs to recognize and name a ledger it finds in a read. `key` is
|
|
40
|
-
* the authoring key, null for ledgers created in Console without one.
|
|
41
|
-
* Reads return ledger IDs; match them against `key` rather than comparing
|
|
42
|
-
* an ID with an authoring key.
|
|
43
|
-
*/
|
|
44
|
-
declare const pointLedgerReferenceSchema: z.ZodObject<{
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
key: z.ZodNullable<z.ZodString>;
|
|
47
|
-
name: z.ZodString;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
/**
|
|
50
|
-
* The signed-in member's balance in one ledger (`relay.me.balances()`). `balance` is the current
|
|
51
|
-
* balance, every entry counted; `available` leaves out points that reservations hold, so it is what
|
|
52
|
-
* the member can spend now.
|
|
53
|
-
*/
|
|
54
|
-
declare const pointBalanceSchema: z.ZodObject<{
|
|
55
|
-
ledger: z.ZodObject<{
|
|
56
|
-
id: z.ZodString;
|
|
57
|
-
key: z.ZodNullable<z.ZodString>;
|
|
58
|
-
name: z.ZodString;
|
|
59
|
-
}, z.core.$strip>;
|
|
60
|
-
balance: z.ZodNumber;
|
|
61
|
-
available: z.ZodNumber;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
/** `relay.me.balances()`: the member's balance in each of the project's ledgers. */
|
|
64
|
-
declare const pointBalancesSchema: z.ZodObject<{
|
|
65
|
-
items: z.ZodArray<z.ZodObject<{
|
|
66
|
-
ledger: z.ZodObject<{
|
|
67
|
-
id: z.ZodString;
|
|
68
|
-
key: z.ZodNullable<z.ZodString>;
|
|
69
|
-
name: z.ZodString;
|
|
70
|
-
}, z.core.$strip>;
|
|
71
|
-
balance: z.ZodNumber;
|
|
72
|
-
available: z.ZodNumber;
|
|
73
|
-
}, z.core.$strip>>;
|
|
74
|
-
}, z.core.$strip>;
|
|
75
|
-
/** @compat open */
|
|
76
|
-
type KnownPointEntryKind = (typeof PointEntryKind)[keyof typeof PointEntryKind];
|
|
77
|
-
/**
|
|
78
|
-
* The point entry kinds this SDK knows. `PointEntry.kind` is an open string: Relay can add kinds,
|
|
79
|
-
* and an entry keeps a kind this SDK does not list. Show such an entry by its `amount` alone.
|
|
80
|
-
* Referral payouts are adjustments (`adjust` with `quest: null`).
|
|
81
|
-
*/
|
|
82
|
-
declare const PointEntryKind: {
|
|
83
|
-
/** Points a quest completion, an engagement settlement or an operator awarded. */
|
|
84
|
-
readonly Award: "award";
|
|
85
|
-
/** Points the member spent. */
|
|
86
|
-
readonly Spend: "spend";
|
|
87
|
-
/** A correction in either direction, by an operator or a referral payout. */
|
|
88
|
-
readonly Adjust: "adjust";
|
|
89
|
-
/** Undoes part or all of an award or a positive adjustment (`reverses`). */
|
|
90
|
-
readonly Reverse: "reverse";
|
|
91
|
-
};
|
|
92
|
-
/** A known kind, or one a newer Relay sends. */
|
|
93
|
-
type PointEntryKind = KnownPointEntryKind | (string & {});
|
|
94
|
-
/**
|
|
95
|
-
* One entry in the signed-in member's own point history (`relay.me.pointHistory()`): what changed
|
|
96
|
-
* their balance and when, without the operator's reason or actor. `amount` is signed: spending and
|
|
97
|
-
* reversals are negative. `quest` is the quest that paid it (through a completion or an engagement
|
|
98
|
-
* settlement), if any; `reverses` is the entry a reversal undoes.
|
|
99
|
-
*/
|
|
100
|
-
declare const pointEntrySchema: z.ZodObject<{
|
|
101
|
-
id: z.ZodString;
|
|
102
|
-
amount: z.ZodNumber;
|
|
103
|
-
kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
|
|
104
|
-
at: z.ZodNumber;
|
|
105
|
-
quest: z.ZodNullable<z.ZodString>;
|
|
106
|
-
reverses: z.ZodNullable<z.ZodString>;
|
|
107
|
-
imported: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
/** `relay.me.pointHistory()`: one ledger, by key or ID. */
|
|
110
|
-
declare const pointHistoryQuerySchema: z.ZodObject<{
|
|
111
|
-
ledger: z.ZodString;
|
|
112
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
113
|
-
}, z.core.$strict>;
|
|
114
|
-
/**
|
|
115
|
-
* One page of the signed-in member's point history, the most recently recorded entry first. That
|
|
116
|
-
* is not always `at` order: a backdated entry or a reversal records now with an earlier `at`.
|
|
117
|
-
*/
|
|
118
|
-
declare const pointHistoryPageSchema: z.ZodObject<{
|
|
119
|
-
items: z.ZodArray<z.ZodObject<{
|
|
120
|
-
id: z.ZodString;
|
|
121
|
-
amount: z.ZodNumber;
|
|
122
|
-
kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
|
|
123
|
-
at: z.ZodNumber;
|
|
124
|
-
quest: z.ZodNullable<z.ZodString>;
|
|
125
|
-
reverses: z.ZodNullable<z.ZodString>;
|
|
126
|
-
imported: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
}, z.core.$strip>>;
|
|
128
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
129
|
-
}, z.core.$strip>;
|
|
130
|
-
type PointLedger = z.infer<typeof pointLedgerSchema>;
|
|
131
|
-
type ManagedPointLedger = z.infer<typeof managedPointLedgerSchema>;
|
|
132
|
-
type PointLedgerReference = z.infer<typeof pointLedgerReferenceSchema>;
|
|
133
|
-
type PointBalance = z.infer<typeof pointBalanceSchema>;
|
|
134
|
-
type PointBalances = z.infer<typeof pointBalancesSchema>;
|
|
135
|
-
type PointEntry = z.infer<typeof pointEntrySchema>;
|
|
136
|
-
type PointHistoryQuery = z.input<typeof pointHistoryQuerySchema>;
|
|
137
|
-
type PointHistoryPage = z.infer<typeof pointHistoryPageSchema>;
|
|
2
|
+
import { g as PointEntryKind, C as ResourceHandle, G as GroupHandle } from './schema-C4m9RhCR.js';
|
|
138
3
|
|
|
139
4
|
type AuthoringIdentity = {
|
|
140
5
|
key: string;
|
|
@@ -678,6 +543,32 @@ declare const leaderboardPrizeSchema: z.ZodObject<{
|
|
|
678
543
|
tier: z.ZodString;
|
|
679
544
|
}, z.core.$strict>]>>;
|
|
680
545
|
}, z.core.$strict>;
|
|
546
|
+
/** An amount in a unit's smallest denomination, as a decimal string: `"1000000"` is 1 USDC. */
|
|
547
|
+
declare const baseUnitsSchema: z.ZodString;
|
|
548
|
+
/**
|
|
549
|
+
* What a pool prize is counted in: `"points"`, paid into a point ledger on approval, or a token or
|
|
550
|
+
* currency Relay only records, with the number of decimals its base units carry.
|
|
551
|
+
*/
|
|
552
|
+
declare const leaderboardPoolUnitSchema: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
553
|
+
code: z.ZodString;
|
|
554
|
+
decimals: z.ZodNumber;
|
|
555
|
+
}, z.core.$strict>]>;
|
|
556
|
+
type LeaderboardPoolUnit = z.infer<typeof leaderboardPoolUnitSchema>;
|
|
557
|
+
/**
|
|
558
|
+
* A pool prize: a fixed amount split over the frozen eligible members in proportion to their
|
|
559
|
+
* scores. Each pool share rounds down, and the base units left over go one each to the largest
|
|
560
|
+
* remainders, earlier positions first, so the shares sum exactly to the pool.
|
|
561
|
+
*/
|
|
562
|
+
declare const leaderboardPoolSchema: z.ZodObject<{
|
|
563
|
+
amount: z.ZodString;
|
|
564
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
565
|
+
code: z.ZodString;
|
|
566
|
+
decimals: z.ZodNumber;
|
|
567
|
+
}, z.core.$strict>]>;
|
|
568
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
569
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
570
|
+
}, z.core.$strict>;
|
|
571
|
+
type LeaderboardPool = z.infer<typeof leaderboardPoolSchema>;
|
|
681
572
|
declare const leaderboardSettlementPolicySchema: z.ZodObject<{
|
|
682
573
|
at: z.ZodLiteral<"window-end">;
|
|
683
574
|
ties: z.ZodEnum<{
|
|
@@ -713,6 +604,15 @@ declare const leaderboardSettlementPolicySchema: z.ZodObject<{
|
|
|
713
604
|
tier: z.ZodString;
|
|
714
605
|
}, z.core.$strict>]>>;
|
|
715
606
|
}, z.core.$strict>>;
|
|
607
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
608
|
+
amount: z.ZodString;
|
|
609
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
610
|
+
code: z.ZodString;
|
|
611
|
+
decimals: z.ZodNumber;
|
|
612
|
+
}, z.core.$strict>]>;
|
|
613
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
614
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
}, z.core.$strict>>;
|
|
716
616
|
}, z.core.$strict>;
|
|
717
617
|
type LeaderboardSettlementPolicy = z.infer<typeof leaderboardSettlementPolicySchema>;
|
|
718
618
|
declare const leaderboardDefinitionSchema: z.ZodObject<{
|
|
@@ -803,6 +703,15 @@ declare const leaderboardDefinitionSchema: z.ZodObject<{
|
|
|
803
703
|
tier: z.ZodString;
|
|
804
704
|
}, z.core.$strict>]>>;
|
|
805
705
|
}, z.core.$strict>>;
|
|
706
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
707
|
+
amount: z.ZodString;
|
|
708
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
709
|
+
code: z.ZodString;
|
|
710
|
+
decimals: z.ZodNumber;
|
|
711
|
+
}, z.core.$strict>]>;
|
|
712
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
713
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
714
|
+
}, z.core.$strict>>;
|
|
806
715
|
}, z.core.$strict>>;
|
|
807
716
|
}, z.core.$strict>;
|
|
808
717
|
/** Known leaderboard data is read separately from its strict authoring definition. */
|
|
@@ -894,6 +803,15 @@ declare const leaderboardDefinitionResponseSchema: z.ZodObject<{
|
|
|
894
803
|
tier: z.ZodString;
|
|
895
804
|
}, z.core.$strict>]>>;
|
|
896
805
|
}, z.core.$strict>>;
|
|
806
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
807
|
+
amount: z.ZodString;
|
|
808
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
809
|
+
code: z.ZodString;
|
|
810
|
+
decimals: z.ZodNumber;
|
|
811
|
+
}, z.core.$strict>]>;
|
|
812
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
813
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
814
|
+
}, z.core.$strict>>;
|
|
897
815
|
}, z.core.$strict>>;
|
|
898
816
|
}, z.core.$strict>;
|
|
899
817
|
type LeaderboardDefinition = z.infer<typeof leaderboardDefinitionSchema>;
|
|
@@ -940,6 +858,15 @@ declare const leaderboardAuthoringSchema: z.ZodObject<{
|
|
|
940
858
|
tier: z.ZodString;
|
|
941
859
|
}, z.core.$strict>]>>;
|
|
942
860
|
}, z.core.$strict>>;
|
|
861
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
862
|
+
amount: z.ZodString;
|
|
863
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
864
|
+
code: z.ZodString;
|
|
865
|
+
decimals: z.ZodNumber;
|
|
866
|
+
}, z.core.$strict>]>;
|
|
867
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
868
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
869
|
+
}, z.core.$strict>>;
|
|
943
870
|
}, z.core.$strict>>;
|
|
944
871
|
score: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
945
872
|
kind: z.ZodLiteral<"balance">;
|
|
@@ -1029,6 +956,15 @@ declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1029
956
|
tier: z.ZodString;
|
|
1030
957
|
}, z.core.$strict>]>>;
|
|
1031
958
|
}, z.core.$strict>>;
|
|
959
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
960
|
+
amount: z.ZodString;
|
|
961
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
962
|
+
code: z.ZodString;
|
|
963
|
+
decimals: z.ZodNumber;
|
|
964
|
+
}, z.core.$strict>]>;
|
|
965
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
966
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
967
|
+
}, z.core.$strict>>;
|
|
1032
968
|
}, z.core.$strict>>;
|
|
1033
969
|
score: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1034
970
|
kind: z.ZodLiteral<"balance">;
|
|
@@ -1168,6 +1104,15 @@ declare const publishedLeaderboardSchema: z.ZodObject<{
|
|
|
1168
1104
|
tier: z.ZodString;
|
|
1169
1105
|
}, z.core.$strict>]>>;
|
|
1170
1106
|
}, z.core.$strict>>;
|
|
1107
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
1108
|
+
amount: z.ZodString;
|
|
1109
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
1110
|
+
code: z.ZodString;
|
|
1111
|
+
decimals: z.ZodNumber;
|
|
1112
|
+
}, z.core.$strict>]>;
|
|
1113
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
1114
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1115
|
+
}, z.core.$strict>>;
|
|
1171
1116
|
}, z.core.$strict>>;
|
|
1172
1117
|
}, z.core.$strict>;
|
|
1173
1118
|
publishedAt: z.ZodNumber;
|
|
@@ -1446,6 +1391,15 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1446
1391
|
tier: z.ZodString;
|
|
1447
1392
|
}, z.core.$strict>]>>;
|
|
1448
1393
|
}, z.core.$strict>>;
|
|
1394
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
1395
|
+
amount: z.ZodString;
|
|
1396
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
1397
|
+
code: z.ZodString;
|
|
1398
|
+
decimals: z.ZodNumber;
|
|
1399
|
+
}, z.core.$strict>]>;
|
|
1400
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
1401
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1402
|
+
}, z.core.$strict>>;
|
|
1449
1403
|
}, z.core.$strict>>;
|
|
1450
1404
|
}, z.core.$strict>;
|
|
1451
1405
|
publishedAt: z.ZodNumber;
|
|
@@ -1859,6 +1813,29 @@ declare const leaderboardSettlementRowSchema: z.ZodObject<{
|
|
|
1859
1813
|
prizes: z.ZodArray<z.ZodNumber>;
|
|
1860
1814
|
completion: z.ZodNullable<z.ZodString>;
|
|
1861
1815
|
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
1816
|
+
share: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
}, z.core.$strip>;
|
|
1818
|
+
/**
|
|
1819
|
+
* The pool a settlement froze, with what it allocated. `unallocated` is the part no member
|
|
1820
|
+
* received: all of it when no eligible member scored above the pool's minimum.
|
|
1821
|
+
*/
|
|
1822
|
+
declare const leaderboardSettlementPoolSchema: z.ZodObject<{
|
|
1823
|
+
allocated: z.ZodString;
|
|
1824
|
+
unallocated: z.ZodString;
|
|
1825
|
+
amount: z.ZodString;
|
|
1826
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
1827
|
+
code: z.ZodString;
|
|
1828
|
+
decimals: z.ZodNumber;
|
|
1829
|
+
}, z.core.$strict>]>;
|
|
1830
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
1831
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1832
|
+
}, z.core.$strip>;
|
|
1833
|
+
type LeaderboardSettlementPool = z.infer<typeof leaderboardSettlementPoolSchema>;
|
|
1834
|
+
/** Content a settlement froze at its last good measurement, because the closing one never came. */
|
|
1835
|
+
declare const leaderboardSettlementUnmeasuredSchema: z.ZodObject<{
|
|
1836
|
+
content: z.ZodString;
|
|
1837
|
+
member: z.ZodString;
|
|
1838
|
+
observedAt: z.ZodNullable<z.ZodNumber>;
|
|
1862
1839
|
}, z.core.$strip>;
|
|
1863
1840
|
declare const leaderboardSettlementSchema: z.ZodObject<{
|
|
1864
1841
|
id: z.ZodString;
|
|
@@ -1913,6 +1890,22 @@ declare const leaderboardSettlementSchema: z.ZodObject<{
|
|
|
1913
1890
|
}, z.core.$strict>]>>;
|
|
1914
1891
|
}, z.core.$strict>>;
|
|
1915
1892
|
excluded: z.ZodArray<z.ZodString>;
|
|
1893
|
+
unmeasured: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1894
|
+
content: z.ZodString;
|
|
1895
|
+
member: z.ZodString;
|
|
1896
|
+
observedAt: z.ZodNullable<z.ZodNumber>;
|
|
1897
|
+
}, z.core.$strip>>>;
|
|
1898
|
+
pool: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1899
|
+
allocated: z.ZodString;
|
|
1900
|
+
unallocated: z.ZodString;
|
|
1901
|
+
amount: z.ZodString;
|
|
1902
|
+
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
1903
|
+
code: z.ZodString;
|
|
1904
|
+
decimals: z.ZodNumber;
|
|
1905
|
+
}, z.core.$strict>]>;
|
|
1906
|
+
ledger: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1908
|
+
}, z.core.$strip>>>;
|
|
1916
1909
|
rows: z.ZodArray<z.ZodObject<{
|
|
1917
1910
|
member: z.ZodString;
|
|
1918
1911
|
score: z.ZodNumber;
|
|
@@ -1922,6 +1915,7 @@ declare const leaderboardSettlementSchema: z.ZodObject<{
|
|
|
1922
1915
|
prizes: z.ZodArray<z.ZodNumber>;
|
|
1923
1916
|
completion: z.ZodNullable<z.ZodString>;
|
|
1924
1917
|
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
1918
|
+
share: z.ZodOptional<z.ZodString>;
|
|
1925
1919
|
}, z.core.$strip>>;
|
|
1926
1920
|
}, z.core.$strip>;
|
|
1927
1921
|
type LeaderboardSettlement = z.infer<typeof leaderboardSettlementSchema>;
|
|
@@ -2821,4 +2815,4 @@ declare const groupMemberPageSchema: z.ZodObject<{
|
|
|
2821
2815
|
/** @compat output */
|
|
2822
2816
|
type GroupMemberPage = z.infer<typeof groupMemberPageSchema>;
|
|
2823
2817
|
|
|
2824
|
-
export {
|
|
2818
|
+
export { engagementChangePreviewSchema as $, type AvailabilityWindow as A, type LeaderboardSettlement as B, type CampaignDefinition as C, type LeaderboardSettlementPolicy as D, type EngagementBudget as E, type LeaderboardSettlementPool as F, type GroupMember as G, type LeaderboardSettlementSummary as H, type ManagedGroup as I, type ManagedPointHistoryPage as J, addGroupMemberSchema as K, type LeaderboardDefinition as L, type MemberCampaignEnrollmentInput as M, availabilityWindowSchema as N, baseUnitsSchema as O, type ProjectGroup as P, campaignDefinitionSchema as Q, type ReferralDefinition as R, campaignEnrollmentInputSchema as S, campaignEnrollmentSchema as T, campaignViewSchema as U, campaignWithdrawalInputSchema as V, createGroupSchema as W, engagementArtifactSchema as X, engagementBoundaryPageSchema as Y, engagementBudgetSchema as Z, engagementChangePreviewInputSchema as _, type CampaignEnrollment as a, referralRewardResolutionSchema as a$, engagementChangeSchema as a0, engagementDefinitionSchema as a1, engagementDeploymentEntrySchema as a2, engagementPageSchema as a3, engagementPublishSchema as a4, engagementRuleSchema as a5, engagementRuleVersionPageSchema as a6, engagementScoreInputSchema as a7, engagementScoreSchema as a8, engagementSettlementSchema as a9, leaderboardSettlementPoolSchema as aA, leaderboardSettlementRowSchema as aB, leaderboardSettlementSchema as aC, leaderboardSettlementStatusSchema as aD, leaderboardSettlementSummarySchema as aE, leaderboardSettlementUnmeasuredSchema as aF, leaderboardWindowSchema as aG, managedGroupSchema as aH, managedPointHistoryPageSchema as aI, memberCampaignEnrollmentInputSchema as aJ, memberCampaignWithdrawalInputSchema as aK, pointsAccountSchema as aL, pointsEntrySchema as aM, pointsMutationSchema as aN, pointsResultSchema as aO, projectGroupKey as aP, projectGroupSchema as aQ, publishedLeaderboardSchema as aR, publishedReferralSchema as aS, referralAccountSchema as aT, referralArtifactSchema as aU, referralControlSchema as aV, referralDefinitionSchema as aW, referralHistorySchema as aX, referralManagementSchema as aY, referralQualificationSchema as aZ, referralRelationshipSchema as a_, engagementVersionPageSchema as aa, engagementVersionQuerySchema as ab, groupMemberPageSchema as ac, groupMemberSchema as ad, groupPageQuerySchema as ae, groupPageSchema as af, leaderboardArtifactSchema as ag, leaderboardAuthoringSchema as ah, leaderboardDefinitionResponseSchema as ai, leaderboardExclusionGroupBindingSchema as aj, leaderboardExclusionGroupSchema as ak, leaderboardExclusionSchema as al, leaderboardGroupSchema as am, leaderboardHistoryPageSchema as an, leaderboardHistoryQuerySchema as ao, leaderboardPageSchema as ap, leaderboardPlacementSchema as aq, leaderboardPoolSchema as ar, leaderboardPoolUnitSchema as as, leaderboardPreviewSchema as at, leaderboardPrizeRewardSchema as au, leaderboardPrizeSchema as av, leaderboardQuerySchema as aw, leaderboardRowSchema as ax, leaderboardSettlementApprovalSchema as ay, leaderboardSettlementPolicySchema as az, type CampaignEnrollmentInput as b, referralSummarySchema as b0, referralSuspensionSchema as b1, removeGroupMemberSchema as b2, updateGroupSchema as b3, type CampaignView as c, type CampaignWithdrawalInput as d, type LeaderboardHistoryPage as e, type LeaderboardHistoryQuery as f, type LeaderboardPage as g, type LeaderboardPlacement as h, type LeaderboardQuery as i, type MemberCampaignWithdrawalInput as j, type ProjectGroupReference as k, leaderboardDefinitionSchema as l, type AuthoringIdentity as m, defineCampaign as n, defineGroup as o, referralAcceptSchema as p, engagementPageQuerySchema as q, referralAuthoringSchema as r, type EngagementDefinition as s, type EngagementRuleVersionPage as t, type GroupMemberPage as u, type GroupPage as v, type GroupPageQuery as w, type LeaderboardExclusionGroup as x, type LeaderboardPool as y, type LeaderboardPoolUnit as z };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Answered by Relay's gateway on every hosted app host, never by the app. */
|
|
4
|
+
declare const hostEnvironmentPath = "/__domino/environment";
|
|
5
|
+
/** What `hostEnvironmentPath` answers. */
|
|
6
|
+
declare const hostEnvironmentSchema: z.ZodObject<{
|
|
7
|
+
environment: z.ZodEnum<{
|
|
8
|
+
test: "test";
|
|
9
|
+
live: "live";
|
|
10
|
+
}>;
|
|
11
|
+
kind: z.ZodEnum<{
|
|
12
|
+
live: "live";
|
|
13
|
+
preview: "preview";
|
|
14
|
+
staging: "staging";
|
|
15
|
+
}>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
/**
|
|
18
|
+
* Where a hosted app is running: `test` data on its staging host or a development preview, or
|
|
19
|
+
* `live` on its live host or a custom domain.
|
|
20
|
+
*/
|
|
21
|
+
type HostEnvironment = z.infer<typeof hostEnvironmentSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* Where this page is hosted, from the gateway of the host that served it. Resolves to null when the
|
|
24
|
+
* host does not answer (local development, a host outside Domino), so the caller chooses the
|
|
25
|
+
* fallback, and to null outside a browser page. Asks once per page; every call shares the answer.
|
|
26
|
+
* Hostname patterns are not a supported signal.
|
|
27
|
+
*/
|
|
28
|
+
declare function getHostEnvironment(): Promise<HostEnvironment | null>;
|
|
29
|
+
|
|
30
|
+
export { type HostEnvironment as H, hostEnvironmentSchema as a, getHostEnvironment as g, hostEnvironmentPath as h };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-
|
|
1
|
+
export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-BMDNcvwB.js';
|
|
2
2
|
export { R as RelayAction, a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, d as RequestRecovery, e as createRelayAction, i as isRequestError } from './action-DBzILFx9.js';
|
|
3
|
-
export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-
|
|
4
|
-
export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView,
|
|
3
|
+
export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-C4zUZKpj.js';
|
|
4
|
+
export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownPointEntryKind, d as KnownTrackerSkipCode, M as MemberProgress, P as PointBalance, e as PointBalances, f as PointEntry, g as PointEntryKind, h as PointHistoryPage, i as PointHistoryQuery, j as PointLedgerReference, Q as QuestBudgetView, k as QuestPresentation, l as QuestProfile, m as QuizEvidence, R as Reward, S as SubmissionEvidence, n as SubmitInput, T as TieredRewardReference, o as TrackerSkipCode } from './schema-C4m9RhCR.js';
|
|
5
5
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
6
|
-
export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './pages-
|
|
6
|
+
export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './pages-BFloMpyQ.js';
|
|
7
7
|
export { A as AccountConnection, a as AuthProvider, T as TelegramAccountConnection, b as TelegramSignInMethods } from './accounts-DRPENuZe.js';
|
|
8
8
|
export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-iciCEs_8.js';
|
|
9
|
-
export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput,
|
|
10
|
-
export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-
|
|
11
|
-
export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-
|
|
12
|
-
export { A as AvatarProvider, O as OwnProfile, P as ProfileAvatar, a as ProfileCompletion, b as ProfileCompletionPage, c as ProfileCompletionQuery, d as ProfileReferral, e as ProfileSummary, f as ProfileUpdate, g as ProfileVisibility } from './profiles-
|
|
9
|
+
export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, L as LeaderboardDefinition, e as LeaderboardHistoryPage, f as LeaderboardHistoryQuery, g as LeaderboardPage, h as LeaderboardPlacement, i as LeaderboardQuery, M as MemberCampaignEnrollmentInput, j as MemberCampaignWithdrawalInput, P as ProjectGroup, k as ProjectGroupReference, R as ReferralDefinition } from './groups-O6onGPmC.js';
|
|
10
|
+
export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-DxW_v5Wc.js';
|
|
11
|
+
export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-BbdawqVy.js';
|
|
12
|
+
export { A as AvatarProvider, O as OwnProfile, P as ProfileAvatar, a as ProfileCompletion, b as ProfileCompletionPage, c as ProfileCompletionQuery, d as ProfileReferral, e as ProfileSummary, f as ProfileUpdate, g as ProfileVisibility } from './profiles-BoOK03cR.js';
|
|
13
13
|
export { Q as QuizContent, S as StreakProgress } from './streaks-0YuipsUQ.js';
|
|
14
14
|
export { C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, W as WalletAddressInput, b as WalletChain, c as WalletMessageChallenge, d as WalletSignInNetwork, e as WalletSignature, f as WalletSigner, g as WalletUnlinkInput } from './wallet-Ac7OFpOr.js';
|
|
15
15
|
export { P as ParticipantDelivery } from './participant-rewards-BcWkBRn_.js';
|
package/dist/index.js
CHANGED
|
@@ -5,22 +5,22 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
QuestUpdatedError,
|
|
7
7
|
createRelayClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GL43VQ5D.js";
|
|
9
9
|
import {
|
|
10
10
|
createRelayAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WHG5WE43.js";
|
|
12
12
|
import {
|
|
13
13
|
QuestOutcomeState
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UY6KMLQG.js";
|
|
15
|
+
import "./chunk-C7QZ4UBB.js";
|
|
15
16
|
import {
|
|
16
17
|
PointEntryKind
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-JYJAS4E3.js";
|
|
18
|
+
} from "./chunk-WHMXXHPX.js";
|
|
19
|
+
import "./chunk-TLK2MD4S.js";
|
|
20
|
+
import "./chunk-VFBQVY4X.js";
|
|
21
21
|
import {
|
|
22
22
|
sessionMember
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-56DBFNR2.js";
|
|
24
24
|
import {
|
|
25
25
|
AttemptStatus,
|
|
26
26
|
RelayError,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
isRelayError,
|
|
30
30
|
isRequestError,
|
|
31
31
|
paginate
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-YCOKTQ4E.js";
|
|
33
33
|
export {
|
|
34
34
|
AttemptStatus,
|
|
35
35
|
PointEntryKind,
|