@domino-sdk/relay 1.7.0 → 1.10.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/dist/action-9Xl0StBg.d.ts +33 -0
- package/dist/{activity-Br6vyYze.d.ts → activity-C0O3g7VJ.d.ts} +9 -9
- package/dist/authoring.d.ts +12 -12
- package/dist/authoring.js +3 -3
- package/dist/{automatic-outcomes-C1Q9LrDb.d.ts → automatic-outcomes-kPIDv6X_.d.ts} +1 -1
- package/dist/avatar.d.ts +2 -2
- package/dist/browser.d.ts +9 -8
- package/dist/browser.js +8 -6
- package/dist/{capability-error-Bv996M-h.d.ts → capability-error-ty3SqD_b.d.ts} +1 -1
- package/dist/{chunk-KGJSKGKI.js → chunk-23JUD56J.js} +1119 -910
- package/dist/{chunk-ZOUEEK5L.js → chunk-7BRHUUVB.js} +83 -26
- package/dist/{chunk-C25TDFHN.js → chunk-BKLGWPPD.js} +48 -37
- package/dist/{chunk-6ON4RMEN.js → chunk-BUXNTVER.js} +1 -1
- package/dist/{chunk-BFZHJA2B.js → chunk-GEPSEVQO.js} +2 -2
- package/dist/chunk-GFAFH7XR.js +98 -0
- package/dist/{chunk-6RBF3UDA.js → chunk-GPS546KR.js} +232 -7
- package/dist/{chunk-5ECM6AWV.js → chunk-MMWTHVXW.js} +3 -3
- package/dist/chunk-N2HXMTVA.js +13 -0
- package/dist/{chunk-23QJ7WH4.js → chunk-QL77V77D.js} +1 -1
- package/dist/{chunk-GMPPLZKH.js → chunk-UIR6NSYZ.js} +243 -228
- package/dist/{chunk-JW4G3SY5.js → chunk-WRBPLXVP.js} +60 -47
- package/dist/{client-pfml_XAa.d.ts → client-Yq11HA_f.d.ts} +64 -43
- package/dist/{groups-BpWEqaPn.d.ts → groups-BK8ts2yK.d.ts} +94 -6
- package/dist/{images-BaKYd0fl.d.ts → images-aw6W7vFZ.d.ts} +2 -2
- package/dist/index.d.ts +10 -9
- package/dist/index.js +10 -5
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +5 -5
- package/dist/{offers-CYtal8jO.d.ts → offers-C2FANzrG.d.ts} +3 -3
- package/dist/{pages-CixTNnF4.d.ts → pages-D00JDZB-.d.ts} +70 -39
- package/dist/portal-proxy.js +8 -2
- package/dist/react/index.d.ts +203 -19
- package/dist/react/index.js +256 -113
- package/dist/{referral-reward-kinds-ClxAuCGx.d.ts → referral-reward-kinds-M3f0PdiR.d.ts} +2 -2
- package/dist/{schema-CQydLqw4.d.ts → schema-DEM8y8Fm.d.ts} +16 -16
- package/dist/schema.d.ts +11239 -13
- package/dist/schema.js +38 -6
- package/dist/server/index.d.ts +43693 -52
- package/dist/server/index.js +465 -53
- package/dist/{sign-in-options-CtXUFV7E.d.ts → sign-in-options-Coim0G1u.d.ts} +3 -3
- package/dist/{submission-input-CLefHTrj.d.ts → submission-input-BbBJTVlT.d.ts} +3 -3
- package/dist/util.d-w9f9t3ua.d.ts +5 -0
- package/dist/{wallet-YssWxGg8.d.ts → wallet-CDyo-U4n.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/{profiles-D2aFcOxu.d.ts → profiles-BHMVj0kM.d.ts} +5 -5
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { R as RequestError } from './request-error-D_dUPLwo.js';
|
|
2
|
+
|
|
3
|
+
/** SDK input convenience; the wire request always carries a key. */
|
|
4
|
+
type OptionalActionId<T> = T extends {
|
|
5
|
+
actionId: string;
|
|
6
|
+
} ? Omit<T, "actionId"> & {
|
|
7
|
+
actionId?: string;
|
|
8
|
+
} : never;
|
|
9
|
+
/** One logical write. Keep this object until its outcome is definite. */
|
|
10
|
+
type RelayAction<T> = {
|
|
11
|
+
/** The pending write's key, also available on its uncertain error as `operationId`. */
|
|
12
|
+
readonly actionId: string | undefined;
|
|
13
|
+
readonly busy: boolean;
|
|
14
|
+
readonly error: RequestError | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Starts a write with a generated key. While an uncertain write is pending, replays its saved
|
|
17
|
+
* callback instead of accepting a different write. Concurrent calls share one request.
|
|
18
|
+
* Put refreshes and other follow-up work outside the callback.
|
|
19
|
+
*/
|
|
20
|
+
run(task: (actionId: string) => Promise<T>): Promise<T>;
|
|
21
|
+
/** Replays the exact pending callback and key, only when the error's recovery is `replay`. */
|
|
22
|
+
retry(): Promise<T>;
|
|
23
|
+
/** Acknowledge an authoritative, definite outcome after reconciliation. Refuses while busy. */
|
|
24
|
+
settle(): boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Owns a mutation key across uncertain answers. A definite success or refusal ends the action;
|
|
28
|
+
* the next `run` gets a new key. `reconcile` failures stay pending and cannot be replayed.
|
|
29
|
+
* In-memory only: persist the key yourself if recovery must survive a reload or process restart.
|
|
30
|
+
*/
|
|
31
|
+
declare function createRelayAction<T = unknown>(): RelayAction<T>;
|
|
32
|
+
|
|
33
|
+
export { type OptionalActionId as O, type RelayAction as R, createRelayAction as c };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { ac as OpenIdentityKind, a7 as TrackerDataSchema } from './schema-DEM8y8Fm.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The canonical name of a named IANA timezone, or null for an unknown name or a fixed offset.
|
|
@@ -85,11 +85,11 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
85
85
|
key: z.ZodString;
|
|
86
86
|
}, z.core.$strict>>>;
|
|
87
87
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
88
|
+
url: "url";
|
|
88
89
|
text: "text";
|
|
89
90
|
staff: "staff";
|
|
90
91
|
claim: "claim";
|
|
91
92
|
automatic: "automatic";
|
|
92
|
-
url: "url";
|
|
93
93
|
quiz: "quiz";
|
|
94
94
|
photo: "photo";
|
|
95
95
|
}>>>;
|
|
@@ -452,11 +452,11 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
452
452
|
key: z.ZodString;
|
|
453
453
|
}, z.core.$strict>>>;
|
|
454
454
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
455
|
+
url: "url";
|
|
455
456
|
text: "text";
|
|
456
457
|
staff: "staff";
|
|
457
458
|
claim: "claim";
|
|
458
459
|
automatic: "automatic";
|
|
459
|
-
url: "url";
|
|
460
460
|
quiz: "quiz";
|
|
461
461
|
photo: "photo";
|
|
462
462
|
}>>>;
|
|
@@ -1755,11 +1755,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
1755
1755
|
quests: z.ZodArray<z.ZodString>;
|
|
1756
1756
|
}, z.core.$strict>>;
|
|
1757
1757
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1758
|
+
url: "url";
|
|
1758
1759
|
text: "text";
|
|
1759
1760
|
staff: "staff";
|
|
1760
1761
|
claim: "claim";
|
|
1761
1762
|
automatic: "automatic";
|
|
1762
|
-
url: "url";
|
|
1763
1763
|
quiz: "quiz";
|
|
1764
1764
|
photo: "photo";
|
|
1765
1765
|
}>>;
|
|
@@ -3126,11 +3126,11 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
3126
3126
|
quests: z.ZodArray<z.ZodString>;
|
|
3127
3127
|
}, z.core.$strict>>;
|
|
3128
3128
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
3129
|
+
url: "url";
|
|
3129
3130
|
text: "text";
|
|
3130
3131
|
staff: "staff";
|
|
3131
3132
|
claim: "claim";
|
|
3132
3133
|
automatic: "automatic";
|
|
3133
|
-
url: "url";
|
|
3134
3134
|
quiz: "quiz";
|
|
3135
3135
|
photo: "photo";
|
|
3136
3136
|
}>>;
|
|
@@ -4500,11 +4500,11 @@ declare const deploymentRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4500
4500
|
quests: z.ZodArray<z.ZodString>;
|
|
4501
4501
|
}, z.core.$strict>>;
|
|
4502
4502
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
4503
|
+
url: "url";
|
|
4503
4504
|
text: "text";
|
|
4504
4505
|
staff: "staff";
|
|
4505
4506
|
claim: "claim";
|
|
4506
4507
|
automatic: "automatic";
|
|
4507
|
-
url: "url";
|
|
4508
4508
|
quiz: "quiz";
|
|
4509
4509
|
photo: "photo";
|
|
4510
4510
|
}>>;
|
|
@@ -5875,11 +5875,11 @@ declare const deploymentRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5875
5875
|
quests: z.ZodArray<z.ZodString>;
|
|
5876
5876
|
}, z.core.$strict>>;
|
|
5877
5877
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
5878
|
+
url: "url";
|
|
5878
5879
|
text: "text";
|
|
5879
5880
|
staff: "staff";
|
|
5880
5881
|
claim: "claim";
|
|
5881
5882
|
automatic: "automatic";
|
|
5882
|
-
url: "url";
|
|
5883
5883
|
quiz: "quiz";
|
|
5884
5884
|
photo: "photo";
|
|
5885
5885
|
}>>;
|
|
@@ -7252,11 +7252,11 @@ declare const deploymentRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7252
7252
|
quests: z.ZodArray<z.ZodString>;
|
|
7253
7253
|
}, z.core.$strict>>;
|
|
7254
7254
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
7255
|
+
url: "url";
|
|
7255
7256
|
text: "text";
|
|
7256
7257
|
staff: "staff";
|
|
7257
7258
|
claim: "claim";
|
|
7258
7259
|
automatic: "automatic";
|
|
7259
|
-
url: "url";
|
|
7260
7260
|
quiz: "quiz";
|
|
7261
7261
|
photo: "photo";
|
|
7262
7262
|
}>>;
|
|
@@ -8632,11 +8632,11 @@ declare const deploymentRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8632
8632
|
quests: z.ZodArray<z.ZodString>;
|
|
8633
8633
|
}, z.core.$strict>>;
|
|
8634
8634
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
8635
|
+
url: "url";
|
|
8635
8636
|
text: "text";
|
|
8636
8637
|
staff: "staff";
|
|
8637
8638
|
claim: "claim";
|
|
8638
8639
|
automatic: "automatic";
|
|
8639
|
-
url: "url";
|
|
8640
8640
|
quiz: "quiz";
|
|
8641
8641
|
photo: "photo";
|
|
8642
8642
|
}>>;
|
package/dist/authoring.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { x as xContentBodySchema, I as IdentityKind, o as customSourceSchema, W as WithRecordData, p as WithContent, q as WithAccountRoles, r as QuestHandle, L as LedgerReference, G as GroupHandle, n as ResourceHandle, u as TrackerSource, v as trackerDefinitionSchema, y as Tracker, z as TrackerData, B as SourceRoles, C as LedgerHandle, D as xSearchSourceSchema, X as XTweet, F as XContentMetric, H as TrackerTriggerPolicy, J as Where, N as MemberIdentity, O as TrackerTriggerContext, U as TrackerReader, V as TextReviewInput, Y as TextResult, P as PhotoResult, Z as Decision, _ as rewardSchema, $ as TrackerTriggerMode, a0 as RoleOf, a1 as WhereSetting, a2 as ContentBody, a3 as ContentMetricName, a4 as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a5 as TieredRewardDefinition } from './schema-DEM8y8Fm.js';
|
|
2
|
+
export { a6 as LedgerSetting, a7 as TrackerDataSchema, a8 as TrackerPage, a9 as TrackerReadQuery, aa as trackerDataSchema, ab as trackerTriggerContextSchema } from './schema-DEM8y8Fm.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export { z } from 'zod';
|
|
5
|
-
import { E as EngagementBudget,
|
|
6
|
-
export {
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
5
|
+
import { E as EngagementBudget, r as leaderboardDefinitionSchema, q as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-BK8ts2yK.js';
|
|
6
|
+
export { u as defineCampaign, v as defineGroup } from './groups-BK8ts2yK.js';
|
|
7
|
+
import { d as discordMessagesSourceSchema, D as DiscordMessageData, e as DiscordMessageTextData, f as discordReactionsSourceSchema, g as DiscordReactionData, h as DiscordReader, P as Prerequisite, T as TextEvidence, U as UrlEvidence, b as TextOptions, c as UrlOptions } from './submission-input-BbBJTVlT.js';
|
|
8
|
+
export { i as balanceAtLeast, j as completed, k as inGroup } from './submission-input-BbBJTVlT.js';
|
|
9
9
|
import { Q as QuizContent, a as StreakPolicy } from './streaks-CWyq8Px5.js';
|
|
10
|
-
import {
|
|
11
|
-
export {
|
|
12
|
-
import {
|
|
13
|
-
export {
|
|
14
|
-
import {
|
|
15
|
-
export {
|
|
10
|
+
import { R as ResourceSource, S as Setting, I as IntegrationModule, X as XReader, B as Budget, a as IntegerSettings } from './capability-error-ty3SqD_b.js';
|
|
11
|
+
export { C as CapabilityError, b as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-ty3SqD_b.js';
|
|
12
|
+
import { I as ImageReader } from './images-aw6W7vFZ.js';
|
|
13
|
+
export { d as defineOffer } from './offers-C2FANzrG.js';
|
|
14
|
+
import { h as WalletReader } from './wallet-CDyo-U4n.js';
|
|
15
|
+
export { i as CosmosDenom, a as CosmosNetwork, E as EvmChainId, j as WalletBalance, k as WalletBalanceQuery, l as cosmosDenomSchema, m as cosmosNetworkSchema, n as isEvmChainId } from './wallet-CDyo-U4n.js';
|
|
16
16
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
17
17
|
|
|
18
18
|
declare function defineLedger(input: z.input<typeof pointLedgerDeclarationSchema>): {
|
package/dist/authoring.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
sourceDataSchema,
|
|
11
11
|
sourceRoles,
|
|
12
12
|
validateQuestShape
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QL77V77D.js";
|
|
14
14
|
import {
|
|
15
15
|
cosmosDenomSchema,
|
|
16
16
|
cosmosNetworkSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
leaderboardAuthoringSchema,
|
|
23
23
|
pointLedgerDeclarationSchema,
|
|
24
24
|
referralAuthoringSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UIR6NSYZ.js";
|
|
26
26
|
import "./chunk-NPGENI7K.js";
|
|
27
27
|
import {
|
|
28
28
|
authoringKey,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
whereSchemaIssue,
|
|
77
77
|
whereSettings,
|
|
78
78
|
xSearchSourceSchema
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-23JUD56J.js";
|
|
80
80
|
|
|
81
81
|
// src/builders.ts
|
|
82
82
|
import { z } from "zod";
|
package/dist/avatar.d.ts
CHANGED
package/dist/browser.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, w as walletStandardSolanaSigner } from './sign-in-options-
|
|
3
|
-
import './groups-
|
|
1
|
+
import { n as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-Yq11HA_f.js';
|
|
2
|
+
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, w as walletStandardSolanaSigner } from './sign-in-options-Coim0G1u.js';
|
|
3
|
+
import './groups-BK8ts2yK.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './schema-
|
|
6
|
-
import './pages-
|
|
7
|
-
import './submission-input-
|
|
5
|
+
import './schema-DEM8y8Fm.js';
|
|
6
|
+
import './pages-D00JDZB-.js';
|
|
7
|
+
import './submission-input-BbBJTVlT.js';
|
|
8
8
|
import './request-error-D_dUPLwo.js';
|
|
9
9
|
import './participant-activity-DkL3nY5a.js';
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
10
|
+
import './action-9Xl0StBg.js';
|
|
11
|
+
import './profiles-BHMVj0kM.js';
|
|
12
|
+
import './wallet-CDyo-U4n.js';
|
|
12
13
|
|
|
13
14
|
/** Browser client with durable submission recovery; safe to construct during SSR. */
|
|
14
15
|
declare function createBrowserRelayClient(options: RelayClientOptions): RelayClient;
|
package/dist/browser.js
CHANGED
|
@@ -11,14 +11,16 @@ import {
|
|
|
11
11
|
signInOptions,
|
|
12
12
|
solanaSigner,
|
|
13
13
|
walletStandardSolanaSigner
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-GEPSEVQO.js";
|
|
15
|
+
import "./chunk-7BRHUUVB.js";
|
|
16
|
+
import "./chunk-GFAFH7XR.js";
|
|
17
|
+
import "./chunk-BKLGWPPD.js";
|
|
18
|
+
import "./chunk-UIR6NSYZ.js";
|
|
18
19
|
import "./chunk-6QJ3LADK.js";
|
|
19
20
|
import "./chunk-NPGENI7K.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-N2HXMTVA.js";
|
|
22
|
+
import "./chunk-BUXNTVER.js";
|
|
23
|
+
import "./chunk-23JUD56J.js";
|
|
22
24
|
export {
|
|
23
25
|
browserSubmissionStore,
|
|
24
26
|
cosmosChainList,
|
|
@@ -457,4 +457,4 @@ declare class CapabilityError extends Error {
|
|
|
457
457
|
static from(failure: CapabilityFailure): CapabilityError;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
|
-
export {
|
|
460
|
+
export { settingsFieldsSchema as A, type Budget as B, CapabilityError as C, settingsValuesSchema as D, type EvaluatorIntegrationProvider as E, xConnectionSchema as F, xIdSchema as G, xPostSchema as H, type IntegrationModule as I, xProfileSchema as J, type KnownCapabilityErrorCode as K, xRequestSchema as L, type ProjectIntegration as P, type ResourceSource as R, type Setting as S, type XReader as X, type IntegerSettings as a, type CapabilityErrorCode as b, capabilityErrorCodes as c, type CapabilityFailure as d, type IntegrationProvider as e, type ResourceOption as f, type SettingField as g, type SettingsValues as h, type XConnection as i, type XPost as j, type XProfile as k, budgetSchema as l, capabilityFailureSchema as m, compatibleSettingKinds as n, completionKeySchema as o, completionPolicySchema as p, discordServerSchema as q, evaluatorIntegrationProviderSchema as r, integrationProviderSchema as s, missingResourceSettings as t, parseSettings as u, projectIntegrationSchema as v, resourceOptionsSchema as w, resourceRequestSchema as x, resourceSourceSchema as y, settingFieldSchema as z };
|