@domino-sdk/relay 0.3.0 → 0.4.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.
@@ -1,195 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const solanaAddressSchema: z.ZodString;
4
- declare const walletConnectionSchema: z.ZodObject<{
5
- chain: z.ZodLiteral<"solana">;
6
- address: z.ZodString;
7
- verifiedAt: z.ZodNumber;
8
- revision: z.ZodNumber;
9
- }, z.core.$strict>;
10
- type WalletConnection = z.infer<typeof walletConnectionSchema>;
11
- declare const walletChallengeInputSchema: z.ZodObject<{
12
- chain: z.ZodLiteral<"solana">;
13
- address: z.ZodString;
14
- }, z.core.$strict>;
15
- declare const walletChallengeSchema: z.ZodObject<{
16
- chain: z.ZodLiteral<"solana">;
17
- address: z.ZodString;
18
- id: z.ZodString;
19
- message: z.ZodString;
20
- expiresAt: z.ZodNumber;
21
- }, z.core.$strict>;
22
- declare const walletProofSchema: z.ZodObject<{
23
- challenge: z.ZodString;
24
- signature: z.ZodString;
25
- }, z.core.$strict>;
26
- declare const solanaBalanceSchema: z.ZodObject<{
27
- address: z.ZodString;
28
- network: z.ZodLiteral<"mainnet-beta">;
29
- lamports: z.ZodString;
30
- slot: z.ZodNumber;
31
- observedAt: z.ZodNumber;
32
- }, z.core.$strict>;
33
- type SolanaBalance = z.infer<typeof solanaBalanceSchema>;
34
-
35
- declare const quizChoiceSchema: z.ZodObject<{
36
- id: z.ZodString;
37
- label: z.ZodString;
38
- }, z.core.$strict>;
39
- declare const quizQuestionSchema: z.ZodObject<{
40
- id: z.ZodString;
41
- prompt: z.ZodString;
42
- choices: z.ZodArray<z.ZodObject<{
43
- id: z.ZodString;
44
- label: z.ZodString;
45
- }, z.core.$strict>>;
46
- }, z.core.$strict>;
47
- declare const quizQuestionsSchema: z.ZodArray<z.ZodObject<{
48
- id: z.ZodString;
49
- prompt: z.ZodString;
50
- choices: z.ZodArray<z.ZodObject<{
51
- id: z.ZodString;
52
- label: z.ZodString;
53
- }, z.core.$strict>>;
54
- }, z.core.$strict>>;
55
- declare const quizContentSchema: z.ZodArray<z.ZodObject<{
56
- id: z.ZodString;
57
- prompt: z.ZodString;
58
- choices: z.ZodArray<z.ZodObject<{
59
- id: z.ZodString;
60
- label: z.ZodString;
61
- }, z.core.$strict>>;
62
- correct: z.ZodString;
63
- }, z.core.$strict>>;
64
- type QuizContent = z.infer<typeof quizContentSchema>;
65
-
66
- declare const settingFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
- kind: z.ZodLiteral<"quiz">;
68
- default: z.ZodArray<z.ZodObject<{
69
- id: z.ZodString;
70
- prompt: z.ZodString;
71
- choices: z.ZodArray<z.ZodObject<{
72
- id: z.ZodString;
73
- label: z.ZodString;
74
- }, z.core.$strict>>;
75
- correct: z.ZodString;
76
- }, z.core.$strict>>;
77
- label: z.ZodString;
78
- description: z.ZodOptional<z.ZodString>;
79
- }, z.core.$strict>, z.ZodObject<{
80
- kind: z.ZodLiteral<"text">;
81
- default: z.ZodString;
82
- minLength: z.ZodNumber;
83
- maxLength: z.ZodNumber;
84
- multiline: z.ZodBoolean;
85
- label: z.ZodString;
86
- description: z.ZodOptional<z.ZodString>;
87
- }, z.core.$strict>, z.ZodObject<{
88
- kind: z.ZodLiteral<"integer">;
89
- default: z.ZodNumber;
90
- min: z.ZodNumber;
91
- max: z.ZodNumber;
92
- label: z.ZodString;
93
- description: z.ZodOptional<z.ZodString>;
94
- }, z.core.$strict>, z.ZodObject<{
95
- kind: z.ZodLiteral<"boolean">;
96
- default: z.ZodBoolean;
97
- label: z.ZodString;
98
- description: z.ZodOptional<z.ZodString>;
99
- }, z.core.$strict>, z.ZodObject<{
100
- kind: z.ZodLiteral<"choice">;
101
- default: z.ZodString;
102
- options: z.ZodArray<z.ZodString>;
103
- label: z.ZodString;
104
- description: z.ZodOptional<z.ZodString>;
105
- }, z.core.$strict>], "kind">;
106
- type SettingField = z.infer<typeof settingFieldSchema>;
107
- declare const settingsFieldsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
108
- kind: z.ZodLiteral<"quiz">;
109
- default: z.ZodArray<z.ZodObject<{
110
- id: z.ZodString;
111
- prompt: z.ZodString;
112
- choices: z.ZodArray<z.ZodObject<{
113
- id: z.ZodString;
114
- label: z.ZodString;
115
- }, z.core.$strict>>;
116
- correct: z.ZodString;
117
- }, z.core.$strict>>;
118
- label: z.ZodString;
119
- description: z.ZodOptional<z.ZodString>;
120
- }, z.core.$strict>, z.ZodObject<{
121
- kind: z.ZodLiteral<"text">;
122
- default: z.ZodString;
123
- minLength: z.ZodNumber;
124
- maxLength: z.ZodNumber;
125
- multiline: z.ZodBoolean;
126
- label: z.ZodString;
127
- description: z.ZodOptional<z.ZodString>;
128
- }, z.core.$strict>, z.ZodObject<{
129
- kind: z.ZodLiteral<"integer">;
130
- default: z.ZodNumber;
131
- min: z.ZodNumber;
132
- max: z.ZodNumber;
133
- label: z.ZodString;
134
- description: z.ZodOptional<z.ZodString>;
135
- }, z.core.$strict>, z.ZodObject<{
136
- kind: z.ZodLiteral<"boolean">;
137
- default: z.ZodBoolean;
138
- label: z.ZodString;
139
- description: z.ZodOptional<z.ZodString>;
140
- }, z.core.$strict>, z.ZodObject<{
141
- kind: z.ZodLiteral<"choice">;
142
- default: z.ZodString;
143
- options: z.ZodArray<z.ZodString>;
144
- label: z.ZodString;
145
- description: z.ZodOptional<z.ZodString>;
146
- }, z.core.$strict>], "kind">>;
147
- declare const settingsValuesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
148
- id: z.ZodString;
149
- prompt: z.ZodString;
150
- choices: z.ZodArray<z.ZodObject<{
151
- id: z.ZodString;
152
- label: z.ZodString;
153
- }, z.core.$strict>>;
154
- correct: z.ZodString;
155
- }, z.core.$strict>>]>>;
156
- type SettingsValues = z.infer<typeof settingsValuesSchema>;
157
- type Label = {
158
- label: string;
159
- description?: string;
160
- };
161
- declare const settings: {
162
- quiz(options: Label & {
163
- default: QuizContent;
164
- }): z.ZodDefault<z.ZodArray<z.ZodObject<{
165
- id: z.ZodString;
166
- prompt: z.ZodString;
167
- choices: z.ZodArray<z.ZodObject<{
168
- id: z.ZodString;
169
- label: z.ZodString;
170
- }, z.core.$strict>>;
171
- correct: z.ZodString;
172
- }, z.core.$strict>>>;
173
- text(options: Label & {
174
- default: string;
175
- minLength?: number;
176
- maxLength?: number;
177
- multiline?: boolean;
178
- }): z.ZodDefault<z.ZodString>;
179
- integer(options: Label & {
180
- default: number;
181
- min: number;
182
- max: number;
183
- }): z.ZodDefault<z.ZodNumber>;
184
- boolean(options: Label & {
185
- default: boolean;
186
- }): z.ZodDefault<z.ZodBoolean>;
187
- choice<const T extends readonly [string, ...string[]]>(options: Label & {
188
- options: T;
189
- default: T[number];
190
- }): z.ZodDefault<z.ZodEnum<{ [k_1 in T[number]]: k_1; } extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never>>;
191
- object<T extends Record<string, z.ZodType>>(shape: T): z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strict>;
192
- };
193
- declare function parseSettings(fields: Record<string, SettingField>, input: unknown): SettingsValues;
194
-
195
- export { type QuizContent as Q, type SolanaBalance as S, type WalletConnection as W, walletProofSchema as a, type SettingField as b, type SettingsValues as c, quizContentSchema as d, quizQuestionSchema as e, quizQuestionsSchema as f, settingFieldSchema as g, settingsFieldsSchema as h, settingsValuesSchema as i, solanaAddressSchema as j, solanaBalanceSchema as k, walletChallengeSchema as l, walletConnectionSchema as m, parseSettings as p, quizChoiceSchema as q, settings as s, walletChallengeInputSchema as w };