@nikthegeek/dreamsforlittles-shared 0.1.0 → 0.1.2
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/access.d.ts +2450 -30
- package/dist/access.js +63 -4
- package/dist/access.js.map +1 -1
- package/dist/admin.d.ts +12635 -1041
- package/dist/admin.js +554 -4
- package/dist/admin.js.map +1 -1
- package/dist/allergy-ladders.d.ts +563 -80
- package/dist/allergy-ladders.js +40 -0
- package/dist/allergy-ladders.js.map +1 -1
- package/dist/analysis.d.ts +68 -46
- package/dist/analysis.js +10 -2
- package/dist/analysis.js.map +1 -1
- package/dist/api.d.ts +12 -5
- package/dist/api.js +12 -0
- package/dist/api.js.map +1 -1
- package/dist/app-feedback.d.ts +322 -0
- package/dist/app-feedback.js +58 -0
- package/dist/app-feedback.js.map +1 -0
- package/dist/auth.d.ts +684 -0
- package/dist/auth.js +45 -4
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +47 -2
- package/dist/billing.js +56 -29
- package/dist/billing.js.map +1 -1
- package/dist/client-notices.d.ts +6114 -0
- package/dist/client-notices.js +455 -0
- package/dist/client-notices.js.map +1 -0
- package/dist/coach.d.ts +20178 -206
- package/dist/coach.js +329 -18
- package/dist/coach.js.map +1 -1
- package/dist/communication-preferences.d.ts +61 -0
- package/dist/communication-preferences.js +30 -0
- package/dist/communication-preferences.js.map +1 -0
- package/dist/enums.d.ts +6 -2
- package/dist/enums.js +27 -1
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +9 -4
- package/dist/errors.js +9 -2
- package/dist/errors.js.map +1 -1
- package/dist/family-invitations.d.ts +2289 -0
- package/dist/family-invitations.js +77 -0
- package/dist/family-invitations.js.map +1 -0
- package/dist/family-profile-artifacts.d.ts +4433 -0
- package/dist/family-profile-artifacts.js +192 -0
- package/dist/family-profile-artifacts.js.map +1 -0
- package/dist/family.d.ts +7902 -294
- package/dist/family.js +170 -5
- package/dist/family.js.map +1 -1
- package/dist/files.d.ts +17 -14
- package/dist/files.js +5 -1
- package/dist/files.js.map +1 -1
- package/dist/getting-started-guides.d.ts +117 -0
- package/dist/getting-started-guides.js +25 -0
- package/dist/getting-started-guides.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/invites.d.ts +252 -0
- package/dist/invites.js +2 -0
- package/dist/invites.js.map +1 -1
- package/dist/mobile-web-releases.d.ts +389 -0
- package/dist/mobile-web-releases.js +71 -0
- package/dist/mobile-web-releases.js.map +1 -0
- package/dist/notification-banners.d.ts +694 -0
- package/dist/notification-banners.js +132 -0
- package/dist/notification-banners.js.map +1 -0
- package/dist/product-analytics.d.ts +5984 -0
- package/dist/product-analytics.js +791 -0
- package/dist/product-analytics.js.map +1 -0
- package/dist/push-devices.d.ts +175 -0
- package/dist/push-devices.js +56 -0
- package/dist/push-devices.js.map +1 -0
- package/dist/realtime.d.ts +604 -0
- package/dist/realtime.js +152 -0
- package/dist/realtime.js.map +1 -0
- package/dist/review-prompt.d.ts +192 -0
- package/dist/review-prompt.js +72 -0
- package/dist/review-prompt.js.map +1 -0
- package/dist/support-faqs.d.ts +103 -0
- package/dist/support-faqs.js +24 -0
- package/dist/support-faqs.js.map +1 -0
- package/dist/support-tickets.d.ts +605 -0
- package/dist/support-tickets.js +100 -0
- package/dist/support-tickets.js.map +1 -0
- package/package.json +6 -1
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PLATFORM_REALTIME_SCHEMA_VERSION: 1;
|
|
3
|
+
export declare const PLATFORM_REALTIME_BROADCAST_EVENT: "platform_event";
|
|
4
|
+
export declare const PLATFORM_REALTIME_RESOURCE_CHANGED: "resource.changed";
|
|
5
|
+
export declare const PLATFORM_REALTIME_PRESENCE_TOPIC: "platform:presence:v1";
|
|
6
|
+
export declare const PLATFORM_REALTIME_PRESENCE_SCHEMA_VERSION: 1;
|
|
7
|
+
export declare const PLATFORM_REALTIME_PRESENCE_V2_TOPIC: "platform:presence:v2";
|
|
8
|
+
export declare const PLATFORM_REALTIME_PRESENCE_V2_SCHEMA_VERSION: 2;
|
|
9
|
+
export declare const platformRealtimeSurfaceSchema: z.ZodEnum<["mobile-web", "admin-web", "owner-web"]>;
|
|
10
|
+
export declare const platformRealtimePresenceCredentialSchema: z.ZodObject<{
|
|
11
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
12
|
+
presenceKey: z.ZodString;
|
|
13
|
+
presenceToken: z.ZodString;
|
|
14
|
+
expiresAt: z.ZodString;
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
expiresAt: string;
|
|
17
|
+
schemaVersion: 1;
|
|
18
|
+
presenceKey: string;
|
|
19
|
+
presenceToken: string;
|
|
20
|
+
}, {
|
|
21
|
+
expiresAt: string;
|
|
22
|
+
schemaVersion: 1;
|
|
23
|
+
presenceKey: string;
|
|
24
|
+
presenceToken: string;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const platformRealtimePresenceCredentialResponseSchema: z.ZodObject<{
|
|
27
|
+
credential: z.ZodObject<{
|
|
28
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
29
|
+
presenceKey: z.ZodString;
|
|
30
|
+
presenceToken: z.ZodString;
|
|
31
|
+
expiresAt: z.ZodString;
|
|
32
|
+
}, "strict", z.ZodTypeAny, {
|
|
33
|
+
expiresAt: string;
|
|
34
|
+
schemaVersion: 1;
|
|
35
|
+
presenceKey: string;
|
|
36
|
+
presenceToken: string;
|
|
37
|
+
}, {
|
|
38
|
+
expiresAt: string;
|
|
39
|
+
schemaVersion: 1;
|
|
40
|
+
presenceKey: string;
|
|
41
|
+
presenceToken: string;
|
|
42
|
+
}>;
|
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
credential: {
|
|
45
|
+
expiresAt: string;
|
|
46
|
+
schemaVersion: 1;
|
|
47
|
+
presenceKey: string;
|
|
48
|
+
presenceToken: string;
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
credential: {
|
|
52
|
+
expiresAt: string;
|
|
53
|
+
schemaVersion: 1;
|
|
54
|
+
presenceKey: string;
|
|
55
|
+
presenceToken: string;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
export declare const platformRealtimePresenceTrackPayloadSchema: z.ZodObject<{
|
|
59
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
60
|
+
presenceToken: z.ZodString;
|
|
61
|
+
surface: z.ZodEnum<["mobile-web", "admin-web", "owner-web"]>;
|
|
62
|
+
}, "strict", z.ZodTypeAny, {
|
|
63
|
+
surface: "mobile-web" | "admin-web" | "owner-web";
|
|
64
|
+
schemaVersion: 1;
|
|
65
|
+
presenceToken: string;
|
|
66
|
+
}, {
|
|
67
|
+
surface: "mobile-web" | "admin-web" | "owner-web";
|
|
68
|
+
schemaVersion: 1;
|
|
69
|
+
presenceToken: string;
|
|
70
|
+
}>;
|
|
71
|
+
export declare const platformRealtimePresenceResolveRequestSchema: z.ZodObject<{
|
|
72
|
+
presences: z.ZodArray<z.ZodObject<{
|
|
73
|
+
presenceKey: z.ZodString;
|
|
74
|
+
presenceToken: z.ZodString;
|
|
75
|
+
}, "strict", z.ZodTypeAny, {
|
|
76
|
+
presenceKey: string;
|
|
77
|
+
presenceToken: string;
|
|
78
|
+
}, {
|
|
79
|
+
presenceKey: string;
|
|
80
|
+
presenceToken: string;
|
|
81
|
+
}>, "many">;
|
|
82
|
+
}, "strict", z.ZodTypeAny, {
|
|
83
|
+
presences: {
|
|
84
|
+
presenceKey: string;
|
|
85
|
+
presenceToken: string;
|
|
86
|
+
}[];
|
|
87
|
+
}, {
|
|
88
|
+
presences: {
|
|
89
|
+
presenceKey: string;
|
|
90
|
+
presenceToken: string;
|
|
91
|
+
}[];
|
|
92
|
+
}>;
|
|
93
|
+
export declare const platformRealtimePresenceUserSchema: z.ZodObject<{
|
|
94
|
+
presenceKey: z.ZodString;
|
|
95
|
+
user: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
email: z.ZodString;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
|
|
100
|
+
roles: z.ZodObject<{
|
|
101
|
+
family: z.ZodBoolean;
|
|
102
|
+
coach: z.ZodBoolean;
|
|
103
|
+
superAdmin: z.ZodBoolean;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
family: boolean;
|
|
106
|
+
coach: boolean;
|
|
107
|
+
superAdmin: boolean;
|
|
108
|
+
}, {
|
|
109
|
+
family: boolean;
|
|
110
|
+
coach: boolean;
|
|
111
|
+
superAdmin: boolean;
|
|
112
|
+
}>;
|
|
113
|
+
}, "strict", z.ZodTypeAny, {
|
|
114
|
+
id: string;
|
|
115
|
+
email: string;
|
|
116
|
+
name: string;
|
|
117
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
118
|
+
roles: {
|
|
119
|
+
family: boolean;
|
|
120
|
+
coach: boolean;
|
|
121
|
+
superAdmin: boolean;
|
|
122
|
+
};
|
|
123
|
+
}, {
|
|
124
|
+
id: string;
|
|
125
|
+
email: string;
|
|
126
|
+
name: string;
|
|
127
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
128
|
+
roles: {
|
|
129
|
+
family: boolean;
|
|
130
|
+
coach: boolean;
|
|
131
|
+
superAdmin: boolean;
|
|
132
|
+
};
|
|
133
|
+
}>;
|
|
134
|
+
}, "strict", z.ZodTypeAny, {
|
|
135
|
+
presenceKey: string;
|
|
136
|
+
user: {
|
|
137
|
+
id: string;
|
|
138
|
+
email: string;
|
|
139
|
+
name: string;
|
|
140
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
141
|
+
roles: {
|
|
142
|
+
family: boolean;
|
|
143
|
+
coach: boolean;
|
|
144
|
+
superAdmin: boolean;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}, {
|
|
148
|
+
presenceKey: string;
|
|
149
|
+
user: {
|
|
150
|
+
id: string;
|
|
151
|
+
email: string;
|
|
152
|
+
name: string;
|
|
153
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
154
|
+
roles: {
|
|
155
|
+
family: boolean;
|
|
156
|
+
coach: boolean;
|
|
157
|
+
superAdmin: boolean;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}>;
|
|
161
|
+
export declare const platformRealtimePresenceResolveResponseSchema: z.ZodObject<{
|
|
162
|
+
users: z.ZodArray<z.ZodObject<{
|
|
163
|
+
presenceKey: z.ZodString;
|
|
164
|
+
user: z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
email: z.ZodString;
|
|
167
|
+
name: z.ZodString;
|
|
168
|
+
defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
|
|
169
|
+
roles: z.ZodObject<{
|
|
170
|
+
family: z.ZodBoolean;
|
|
171
|
+
coach: z.ZodBoolean;
|
|
172
|
+
superAdmin: z.ZodBoolean;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
family: boolean;
|
|
175
|
+
coach: boolean;
|
|
176
|
+
superAdmin: boolean;
|
|
177
|
+
}, {
|
|
178
|
+
family: boolean;
|
|
179
|
+
coach: boolean;
|
|
180
|
+
superAdmin: boolean;
|
|
181
|
+
}>;
|
|
182
|
+
}, "strict", z.ZodTypeAny, {
|
|
183
|
+
id: string;
|
|
184
|
+
email: string;
|
|
185
|
+
name: string;
|
|
186
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
187
|
+
roles: {
|
|
188
|
+
family: boolean;
|
|
189
|
+
coach: boolean;
|
|
190
|
+
superAdmin: boolean;
|
|
191
|
+
};
|
|
192
|
+
}, {
|
|
193
|
+
id: string;
|
|
194
|
+
email: string;
|
|
195
|
+
name: string;
|
|
196
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
197
|
+
roles: {
|
|
198
|
+
family: boolean;
|
|
199
|
+
coach: boolean;
|
|
200
|
+
superAdmin: boolean;
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
203
|
+
}, "strict", z.ZodTypeAny, {
|
|
204
|
+
presenceKey: string;
|
|
205
|
+
user: {
|
|
206
|
+
id: string;
|
|
207
|
+
email: string;
|
|
208
|
+
name: string;
|
|
209
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
210
|
+
roles: {
|
|
211
|
+
family: boolean;
|
|
212
|
+
coach: boolean;
|
|
213
|
+
superAdmin: boolean;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
}, {
|
|
217
|
+
presenceKey: string;
|
|
218
|
+
user: {
|
|
219
|
+
id: string;
|
|
220
|
+
email: string;
|
|
221
|
+
name: string;
|
|
222
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
223
|
+
roles: {
|
|
224
|
+
family: boolean;
|
|
225
|
+
coach: boolean;
|
|
226
|
+
superAdmin: boolean;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
}>, "many">;
|
|
230
|
+
}, "strict", z.ZodTypeAny, {
|
|
231
|
+
users: {
|
|
232
|
+
presenceKey: string;
|
|
233
|
+
user: {
|
|
234
|
+
id: string;
|
|
235
|
+
email: string;
|
|
236
|
+
name: string;
|
|
237
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
238
|
+
roles: {
|
|
239
|
+
family: boolean;
|
|
240
|
+
coach: boolean;
|
|
241
|
+
superAdmin: boolean;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
}[];
|
|
245
|
+
}, {
|
|
246
|
+
users: {
|
|
247
|
+
presenceKey: string;
|
|
248
|
+
user: {
|
|
249
|
+
id: string;
|
|
250
|
+
email: string;
|
|
251
|
+
name: string;
|
|
252
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
253
|
+
roles: {
|
|
254
|
+
family: boolean;
|
|
255
|
+
coach: boolean;
|
|
256
|
+
superAdmin: boolean;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
}[];
|
|
260
|
+
}>;
|
|
261
|
+
export declare const platformRealtimePresenceV2CredentialSchema: z.ZodObject<{
|
|
262
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
263
|
+
presenceKey: z.ZodString;
|
|
264
|
+
presenceToken: z.ZodString;
|
|
265
|
+
expiresAt: z.ZodString;
|
|
266
|
+
}, "strict", z.ZodTypeAny, {
|
|
267
|
+
expiresAt: string;
|
|
268
|
+
schemaVersion: 2;
|
|
269
|
+
presenceKey: string;
|
|
270
|
+
presenceToken: string;
|
|
271
|
+
}, {
|
|
272
|
+
expiresAt: string;
|
|
273
|
+
schemaVersion: 2;
|
|
274
|
+
presenceKey: string;
|
|
275
|
+
presenceToken: string;
|
|
276
|
+
}>;
|
|
277
|
+
export declare const platformRealtimePresenceV2CredentialResponseSchema: z.ZodObject<{
|
|
278
|
+
credential: z.ZodObject<{
|
|
279
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
280
|
+
presenceKey: z.ZodString;
|
|
281
|
+
presenceToken: z.ZodString;
|
|
282
|
+
expiresAt: z.ZodString;
|
|
283
|
+
}, "strict", z.ZodTypeAny, {
|
|
284
|
+
expiresAt: string;
|
|
285
|
+
schemaVersion: 2;
|
|
286
|
+
presenceKey: string;
|
|
287
|
+
presenceToken: string;
|
|
288
|
+
}, {
|
|
289
|
+
expiresAt: string;
|
|
290
|
+
schemaVersion: 2;
|
|
291
|
+
presenceKey: string;
|
|
292
|
+
presenceToken: string;
|
|
293
|
+
}>;
|
|
294
|
+
}, "strict", z.ZodTypeAny, {
|
|
295
|
+
credential: {
|
|
296
|
+
expiresAt: string;
|
|
297
|
+
schemaVersion: 2;
|
|
298
|
+
presenceKey: string;
|
|
299
|
+
presenceToken: string;
|
|
300
|
+
};
|
|
301
|
+
}, {
|
|
302
|
+
credential: {
|
|
303
|
+
expiresAt: string;
|
|
304
|
+
schemaVersion: 2;
|
|
305
|
+
presenceKey: string;
|
|
306
|
+
presenceToken: string;
|
|
307
|
+
};
|
|
308
|
+
}>;
|
|
309
|
+
export declare const platformRealtimePresenceV2TrackPayloadSchema: z.ZodObject<{
|
|
310
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
311
|
+
presenceToken: z.ZodString;
|
|
312
|
+
surface: z.ZodEnum<["mobile-web", "admin-web", "owner-web"]>;
|
|
313
|
+
}, "strict", z.ZodTypeAny, {
|
|
314
|
+
surface: "mobile-web" | "admin-web" | "owner-web";
|
|
315
|
+
schemaVersion: 2;
|
|
316
|
+
presenceToken: string;
|
|
317
|
+
}, {
|
|
318
|
+
surface: "mobile-web" | "admin-web" | "owner-web";
|
|
319
|
+
schemaVersion: 2;
|
|
320
|
+
presenceToken: string;
|
|
321
|
+
}>;
|
|
322
|
+
export declare const platformRealtimePresenceV2ResolveRequestSchema: z.ZodObject<{
|
|
323
|
+
presences: z.ZodArray<z.ZodObject<{
|
|
324
|
+
presenceKey: z.ZodString;
|
|
325
|
+
presenceToken: z.ZodString;
|
|
326
|
+
}, "strict", z.ZodTypeAny, {
|
|
327
|
+
presenceKey: string;
|
|
328
|
+
presenceToken: string;
|
|
329
|
+
}, {
|
|
330
|
+
presenceKey: string;
|
|
331
|
+
presenceToken: string;
|
|
332
|
+
}>, "many">;
|
|
333
|
+
}, "strict", z.ZodTypeAny, {
|
|
334
|
+
presences: {
|
|
335
|
+
presenceKey: string;
|
|
336
|
+
presenceToken: string;
|
|
337
|
+
}[];
|
|
338
|
+
}, {
|
|
339
|
+
presences: {
|
|
340
|
+
presenceKey: string;
|
|
341
|
+
presenceToken: string;
|
|
342
|
+
}[];
|
|
343
|
+
}>;
|
|
344
|
+
export declare const platformRealtimePresenceV2UserSchema: z.ZodObject<{
|
|
345
|
+
presenceKey: z.ZodString;
|
|
346
|
+
user: z.ZodObject<{
|
|
347
|
+
id: z.ZodString;
|
|
348
|
+
email: z.ZodString;
|
|
349
|
+
name: z.ZodString;
|
|
350
|
+
defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
|
|
351
|
+
roles: z.ZodObject<{
|
|
352
|
+
family: z.ZodBoolean;
|
|
353
|
+
coach: z.ZodBoolean;
|
|
354
|
+
superAdmin: z.ZodBoolean;
|
|
355
|
+
}, "strip", z.ZodTypeAny, {
|
|
356
|
+
family: boolean;
|
|
357
|
+
coach: boolean;
|
|
358
|
+
superAdmin: boolean;
|
|
359
|
+
}, {
|
|
360
|
+
family: boolean;
|
|
361
|
+
coach: boolean;
|
|
362
|
+
superAdmin: boolean;
|
|
363
|
+
}>;
|
|
364
|
+
}, "strict", z.ZodTypeAny, {
|
|
365
|
+
id: string;
|
|
366
|
+
email: string;
|
|
367
|
+
name: string;
|
|
368
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
369
|
+
roles: {
|
|
370
|
+
family: boolean;
|
|
371
|
+
coach: boolean;
|
|
372
|
+
superAdmin: boolean;
|
|
373
|
+
};
|
|
374
|
+
}, {
|
|
375
|
+
id: string;
|
|
376
|
+
email: string;
|
|
377
|
+
name: string;
|
|
378
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
379
|
+
roles: {
|
|
380
|
+
family: boolean;
|
|
381
|
+
coach: boolean;
|
|
382
|
+
superAdmin: boolean;
|
|
383
|
+
};
|
|
384
|
+
}>;
|
|
385
|
+
}, "strict", z.ZodTypeAny, {
|
|
386
|
+
presenceKey: string;
|
|
387
|
+
user: {
|
|
388
|
+
id: string;
|
|
389
|
+
email: string;
|
|
390
|
+
name: string;
|
|
391
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
392
|
+
roles: {
|
|
393
|
+
family: boolean;
|
|
394
|
+
coach: boolean;
|
|
395
|
+
superAdmin: boolean;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
}, {
|
|
399
|
+
presenceKey: string;
|
|
400
|
+
user: {
|
|
401
|
+
id: string;
|
|
402
|
+
email: string;
|
|
403
|
+
name: string;
|
|
404
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
405
|
+
roles: {
|
|
406
|
+
family: boolean;
|
|
407
|
+
coach: boolean;
|
|
408
|
+
superAdmin: boolean;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
}>;
|
|
412
|
+
export declare const platformRealtimePresenceV2ResolveResponseSchema: z.ZodObject<{
|
|
413
|
+
users: z.ZodArray<z.ZodObject<{
|
|
414
|
+
presenceKey: z.ZodString;
|
|
415
|
+
user: z.ZodObject<{
|
|
416
|
+
id: z.ZodString;
|
|
417
|
+
email: z.ZodString;
|
|
418
|
+
name: z.ZodString;
|
|
419
|
+
defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
|
|
420
|
+
roles: z.ZodObject<{
|
|
421
|
+
family: z.ZodBoolean;
|
|
422
|
+
coach: z.ZodBoolean;
|
|
423
|
+
superAdmin: z.ZodBoolean;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
family: boolean;
|
|
426
|
+
coach: boolean;
|
|
427
|
+
superAdmin: boolean;
|
|
428
|
+
}, {
|
|
429
|
+
family: boolean;
|
|
430
|
+
coach: boolean;
|
|
431
|
+
superAdmin: boolean;
|
|
432
|
+
}>;
|
|
433
|
+
}, "strict", z.ZodTypeAny, {
|
|
434
|
+
id: string;
|
|
435
|
+
email: string;
|
|
436
|
+
name: string;
|
|
437
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
438
|
+
roles: {
|
|
439
|
+
family: boolean;
|
|
440
|
+
coach: boolean;
|
|
441
|
+
superAdmin: boolean;
|
|
442
|
+
};
|
|
443
|
+
}, {
|
|
444
|
+
id: string;
|
|
445
|
+
email: string;
|
|
446
|
+
name: string;
|
|
447
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
448
|
+
roles: {
|
|
449
|
+
family: boolean;
|
|
450
|
+
coach: boolean;
|
|
451
|
+
superAdmin: boolean;
|
|
452
|
+
};
|
|
453
|
+
}>;
|
|
454
|
+
}, "strict", z.ZodTypeAny, {
|
|
455
|
+
presenceKey: string;
|
|
456
|
+
user: {
|
|
457
|
+
id: string;
|
|
458
|
+
email: string;
|
|
459
|
+
name: string;
|
|
460
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
461
|
+
roles: {
|
|
462
|
+
family: boolean;
|
|
463
|
+
coach: boolean;
|
|
464
|
+
superAdmin: boolean;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
}, {
|
|
468
|
+
presenceKey: string;
|
|
469
|
+
user: {
|
|
470
|
+
id: string;
|
|
471
|
+
email: string;
|
|
472
|
+
name: string;
|
|
473
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
474
|
+
roles: {
|
|
475
|
+
family: boolean;
|
|
476
|
+
coach: boolean;
|
|
477
|
+
superAdmin: boolean;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
}>, "many">;
|
|
481
|
+
}, "strict", z.ZodTypeAny, {
|
|
482
|
+
users: {
|
|
483
|
+
presenceKey: string;
|
|
484
|
+
user: {
|
|
485
|
+
id: string;
|
|
486
|
+
email: string;
|
|
487
|
+
name: string;
|
|
488
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
489
|
+
roles: {
|
|
490
|
+
family: boolean;
|
|
491
|
+
coach: boolean;
|
|
492
|
+
superAdmin: boolean;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
}[];
|
|
496
|
+
}, {
|
|
497
|
+
users: {
|
|
498
|
+
presenceKey: string;
|
|
499
|
+
user: {
|
|
500
|
+
id: string;
|
|
501
|
+
email: string;
|
|
502
|
+
name: string;
|
|
503
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
504
|
+
roles: {
|
|
505
|
+
family: boolean;
|
|
506
|
+
coach: boolean;
|
|
507
|
+
superAdmin: boolean;
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
}[];
|
|
511
|
+
}>;
|
|
512
|
+
export declare const supabaseAuthUserIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
513
|
+
export declare const platformRealtimeEventTypeSchema: z.ZodLiteral<"resource.changed">;
|
|
514
|
+
export declare const platformRealtimeResourceSchema: z.ZodObject<{
|
|
515
|
+
kind: z.ZodString;
|
|
516
|
+
id: z.ZodOptional<z.ZodString>;
|
|
517
|
+
}, "strict", z.ZodTypeAny, {
|
|
518
|
+
kind: string;
|
|
519
|
+
id?: string | undefined;
|
|
520
|
+
}, {
|
|
521
|
+
kind: string;
|
|
522
|
+
id?: string | undefined;
|
|
523
|
+
}>;
|
|
524
|
+
/**
|
|
525
|
+
* A small invalidation hint. REST remains the source of truth, so realtime
|
|
526
|
+
* events deliberately cannot carry arbitrary records or metadata.
|
|
527
|
+
*/
|
|
528
|
+
export declare const platformRealtimeEventInputSchema: z.ZodObject<{
|
|
529
|
+
type: z.ZodLiteral<"resource.changed">;
|
|
530
|
+
resource: z.ZodObject<{
|
|
531
|
+
kind: z.ZodString;
|
|
532
|
+
id: z.ZodOptional<z.ZodString>;
|
|
533
|
+
}, "strict", z.ZodTypeAny, {
|
|
534
|
+
kind: string;
|
|
535
|
+
id?: string | undefined;
|
|
536
|
+
}, {
|
|
537
|
+
kind: string;
|
|
538
|
+
id?: string | undefined;
|
|
539
|
+
}>;
|
|
540
|
+
}, "strict", z.ZodTypeAny, {
|
|
541
|
+
type: "resource.changed";
|
|
542
|
+
resource: {
|
|
543
|
+
kind: string;
|
|
544
|
+
id?: string | undefined;
|
|
545
|
+
};
|
|
546
|
+
}, {
|
|
547
|
+
type: "resource.changed";
|
|
548
|
+
resource: {
|
|
549
|
+
kind: string;
|
|
550
|
+
id?: string | undefined;
|
|
551
|
+
};
|
|
552
|
+
}>;
|
|
553
|
+
export declare const platformRealtimeEventSchema: z.ZodObject<{
|
|
554
|
+
type: z.ZodLiteral<"resource.changed">;
|
|
555
|
+
resource: z.ZodObject<{
|
|
556
|
+
kind: z.ZodString;
|
|
557
|
+
id: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, "strict", z.ZodTypeAny, {
|
|
559
|
+
kind: string;
|
|
560
|
+
id?: string | undefined;
|
|
561
|
+
}, {
|
|
562
|
+
kind: string;
|
|
563
|
+
id?: string | undefined;
|
|
564
|
+
}>;
|
|
565
|
+
} & {
|
|
566
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
567
|
+
eventId: z.ZodString;
|
|
568
|
+
occurredAt: z.ZodString;
|
|
569
|
+
}, "strict", z.ZodTypeAny, {
|
|
570
|
+
type: "resource.changed";
|
|
571
|
+
occurredAt: string;
|
|
572
|
+
schemaVersion: 1;
|
|
573
|
+
resource: {
|
|
574
|
+
kind: string;
|
|
575
|
+
id?: string | undefined;
|
|
576
|
+
};
|
|
577
|
+
eventId: string;
|
|
578
|
+
}, {
|
|
579
|
+
type: "resource.changed";
|
|
580
|
+
occurredAt: string;
|
|
581
|
+
schemaVersion: 1;
|
|
582
|
+
resource: {
|
|
583
|
+
kind: string;
|
|
584
|
+
id?: string | undefined;
|
|
585
|
+
};
|
|
586
|
+
eventId: string;
|
|
587
|
+
}>;
|
|
588
|
+
export declare const platformRealtimeUserTopic: (authUserId: string) => string;
|
|
589
|
+
export type PlatformRealtimeEventInput = z.infer<typeof platformRealtimeEventInputSchema>;
|
|
590
|
+
export type PlatformRealtimeEvent = z.infer<typeof platformRealtimeEventSchema>;
|
|
591
|
+
export type PlatformRealtimeResource = z.infer<typeof platformRealtimeResourceSchema>;
|
|
592
|
+
export type PlatformRealtimeSurface = z.infer<typeof platformRealtimeSurfaceSchema>;
|
|
593
|
+
export type PlatformRealtimePresenceCredential = z.infer<typeof platformRealtimePresenceCredentialSchema>;
|
|
594
|
+
export type PlatformRealtimePresenceCredentialResponse = z.infer<typeof platformRealtimePresenceCredentialResponseSchema>;
|
|
595
|
+
export type PlatformRealtimePresenceTrackPayload = z.infer<typeof platformRealtimePresenceTrackPayloadSchema>;
|
|
596
|
+
export type PlatformRealtimePresenceResolveRequest = z.infer<typeof platformRealtimePresenceResolveRequestSchema>;
|
|
597
|
+
export type PlatformRealtimePresenceUser = z.infer<typeof platformRealtimePresenceUserSchema>;
|
|
598
|
+
export type PlatformRealtimePresenceResolveResponse = z.infer<typeof platformRealtimePresenceResolveResponseSchema>;
|
|
599
|
+
export type PlatformRealtimePresenceV2Credential = z.infer<typeof platformRealtimePresenceV2CredentialSchema>;
|
|
600
|
+
export type PlatformRealtimePresenceV2CredentialResponse = z.infer<typeof platformRealtimePresenceV2CredentialResponseSchema>;
|
|
601
|
+
export type PlatformRealtimePresenceV2TrackPayload = z.infer<typeof platformRealtimePresenceV2TrackPayloadSchema>;
|
|
602
|
+
export type PlatformRealtimePresenceV2ResolveRequest = z.infer<typeof platformRealtimePresenceV2ResolveRequestSchema>;
|
|
603
|
+
export type PlatformRealtimePresenceV2User = z.infer<typeof platformRealtimePresenceV2UserSchema>;
|
|
604
|
+
export type PlatformRealtimePresenceV2ResolveResponse = z.infer<typeof platformRealtimePresenceV2ResolveResponseSchema>;
|