@livdot-tech/contracts 1.11.26 → 1.11.27
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/auth/index.d.mts +51 -10
- package/dist/auth/index.d.ts +51 -10
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-MMROBRAM.js → chunk-4GW5RNUF.js} +2 -2
- package/dist/{chunk-MAKIYFAD.mjs.map → chunk-4GW5RNUF.js.map} +1 -1
- package/dist/{chunk-HTPPIZBE.mjs → chunk-4ZFS4BO5.mjs} +2 -2
- package/dist/{chunk-HTPPIZBE.mjs.map → chunk-4ZFS4BO5.mjs.map} +1 -1
- package/dist/{chunk-P3PKA6IF.js → chunk-7PU752O4.js} +2 -2
- package/dist/{chunk-P3PKA6IF.js.map → chunk-7PU752O4.js.map} +1 -1
- package/dist/{chunk-GC3S2VCJ.js → chunk-AMJTIN7U.js} +2 -2
- package/dist/{chunk-GC3S2VCJ.js.map → chunk-AMJTIN7U.js.map} +1 -1
- package/dist/{chunk-FRKIW4XY.mjs → chunk-CAYVR5TG.mjs} +2 -2
- package/dist/{chunk-FRKIW4XY.mjs.map → chunk-CAYVR5TG.mjs.map} +1 -1
- package/dist/{chunk-JC552E6N.js → chunk-CMQWFYU4.js} +2 -2
- package/dist/{chunk-JC552E6N.js.map → chunk-CMQWFYU4.js.map} +1 -1
- package/dist/chunk-D5MLOZC6.mjs +2 -0
- package/dist/chunk-D5MLOZC6.mjs.map +1 -0
- package/dist/chunk-ES4IKYQU.js +2 -0
- package/dist/chunk-ES4IKYQU.js.map +1 -0
- package/dist/{chunk-Z7RBWA2B.mjs → chunk-VGLL5EUR.mjs} +2 -2
- package/dist/{chunk-Z7RBWA2B.mjs.map → chunk-VGLL5EUR.mjs.map} +1 -1
- package/dist/{chunk-MAKIYFAD.mjs → chunk-XXDKKJEP.mjs} +2 -2
- package/dist/chunk-XXDKKJEP.mjs.map +1 -0
- package/dist/dispute/index.js +1 -1
- package/dist/dispute/index.mjs +1 -1
- package/dist/event/index.js +1 -1
- package/dist/event/index.mjs +1 -1
- package/dist/host/index.js +1 -1
- package/dist/host/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/notification/index.mjs +1 -1
- package/dist/payment/index.d.mts +8 -3
- package/dist/payment/index.d.ts +8 -3
- package/dist/payment/index.js +1 -1
- package/dist/payment/index.mjs +1 -1
- package/dist/user/index.js +1 -1
- package/dist/user/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-CTFMAZYM.mjs +0 -2
- package/dist/chunk-CTFMAZYM.mjs.map +0 -1
- package/dist/chunk-MMROBRAM.js.map +0 -1
- package/dist/chunk-WMEFCQGU.js +0 -2
- package/dist/chunk-WMEFCQGU.js.map +0 -1
package/dist/auth/index.d.mts
CHANGED
|
@@ -208,13 +208,6 @@ declare const OauthLinkCompleteEmailRequestSchema: z.ZodObject<{
|
|
|
208
208
|
linkHandoff: z.ZodString;
|
|
209
209
|
email: z.ZodEmail;
|
|
210
210
|
}, z.core.$strip>;
|
|
211
|
-
declare const ConfirmPasswordSchema: z.ZodObject<{
|
|
212
|
-
password: z.ZodString;
|
|
213
|
-
}, z.core.$strip>;
|
|
214
|
-
declare const ReauthTokenResponseSchema: z.ZodObject<{
|
|
215
|
-
reauthToken: z.ZodString;
|
|
216
|
-
expiresAt: z.ZodISODateTime;
|
|
217
|
-
}, z.core.$strip>;
|
|
218
211
|
|
|
219
212
|
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
220
213
|
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
@@ -237,8 +230,6 @@ type OauthLinkSendOtpResponse = z.infer<typeof OauthLinkSendOtpResponseSchema>;
|
|
|
237
230
|
type ProvidersListResponse = z.infer<typeof ProvidersListResponseSchema>;
|
|
238
231
|
type ProvidersListItem = z.infer<typeof ProvidersListItemSchema>;
|
|
239
232
|
type OauthLinkCompleteEmailRequest = z.infer<typeof OauthLinkCompleteEmailRequestSchema>;
|
|
240
|
-
type ConfirmPassword = z.infer<typeof ConfirmPasswordSchema>;
|
|
241
|
-
type ReauthTokenResponse = z.infer<typeof ReauthTokenResponseSchema>;
|
|
242
233
|
type SwitchProfileRequest = z.infer<typeof SwitchProfileRequestSchema>;
|
|
243
234
|
type SwitchProfileResponse = z.infer<typeof SwitchProfileResponseSchema>;
|
|
244
235
|
|
|
@@ -301,4 +292,54 @@ type MfaVerifyBody = z$1.infer<typeof MfaVerifyBodySchema>;
|
|
|
301
292
|
type TotpCode = z$1.infer<typeof TotpCodeSchema>;
|
|
302
293
|
type RecoveryCode = z$1.infer<typeof RecoveryCodeSchema>;
|
|
303
294
|
|
|
304
|
-
|
|
295
|
+
/**
|
|
296
|
+
* Actions that require step-up reauth (a fresh PIN confirmation) before
|
|
297
|
+
* they can be executed. Each protected endpoint on the backend declares
|
|
298
|
+
* its action via `@ReauthRequired(...)`; the FE mints an action-scoped
|
|
299
|
+
* token through `POST /auth/confirm-pin` and passes it in the
|
|
300
|
+
* `X-Reauth-Token` header.
|
|
301
|
+
*
|
|
302
|
+
* Tokens are single-use, TTL-bounded (5 min), and scoped — a token
|
|
303
|
+
* issued for `WITHDRAW` will 401 if replayed against `END_LIVE`.
|
|
304
|
+
*/
|
|
305
|
+
declare const REAUTH_ACTIONS: {
|
|
306
|
+
readonly END_LIVE: "END_LIVE";
|
|
307
|
+
readonly CANCEL_EVENT: "CANCEL_EVENT";
|
|
308
|
+
readonly WITHDRAW: "WITHDRAW";
|
|
309
|
+
readonly FUND_ESCROW: "FUND_ESCROW";
|
|
310
|
+
};
|
|
311
|
+
type ReauthAction = (typeof REAUTH_ACTIONS)[keyof typeof REAUTH_ACTIONS];
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* `POST /auth/confirm-pin` body. Regex matches the digit-string PIN
|
|
315
|
+
* format enforced when the PIN was first set (`POST /users/pin`).
|
|
316
|
+
*/
|
|
317
|
+
declare const ConfirmPinSchema: z.ZodObject<{
|
|
318
|
+
pin: z.ZodString;
|
|
319
|
+
action: z.ZodEnum<{
|
|
320
|
+
readonly END_LIVE: "END_LIVE";
|
|
321
|
+
readonly CANCEL_EVENT: "CANCEL_EVENT";
|
|
322
|
+
readonly WITHDRAW: "WITHDRAW";
|
|
323
|
+
readonly FUND_ESCROW: "FUND_ESCROW";
|
|
324
|
+
}>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
/**
|
|
327
|
+
* `POST /auth/confirm-pin` response. The `reauthToken` is presented via
|
|
328
|
+
* `X-Reauth-Token` on the subsequent destructive request; single-use,
|
|
329
|
+
* scoped to `action`.
|
|
330
|
+
*/
|
|
331
|
+
declare const ReauthTokenResponseSchema: z.ZodObject<{
|
|
332
|
+
reauthToken: z.ZodString;
|
|
333
|
+
action: z.ZodEnum<{
|
|
334
|
+
readonly END_LIVE: "END_LIVE";
|
|
335
|
+
readonly CANCEL_EVENT: "CANCEL_EVENT";
|
|
336
|
+
readonly WITHDRAW: "WITHDRAW";
|
|
337
|
+
readonly FUND_ESCROW: "FUND_ESCROW";
|
|
338
|
+
}>;
|
|
339
|
+
expiresAt: z.ZodISODateTime;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
|
|
342
|
+
type ConfirmPin = z$1.infer<typeof ConfirmPinSchema>;
|
|
343
|
+
type ReauthTokenResponse = z$1.infer<typeof ReauthTokenResponseSchema>;
|
|
344
|
+
|
|
345
|
+
export { type ChangePasswordRequest, ChangePasswordRequestSchema, type ConfirmPin, ConfirmPinSchema, type DisableMfaBody, DisableMfaBodySchema, type EnableMfaBody, EnableMfaBodySchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, IdentityProvider, LinkRequiredReasonEnum, type LinkRequiredResponse, LinkRequiredResponseSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type LogoutRequestPayload, LogoutRequestSchema, MFA_ACTIONS, type MfaAction, type MfaChallengeBody, MfaChallengeBodySchema, type MfaVerifyBody, MfaVerifyBodySchema, type OauthDirectTokenRequest, OauthDirectTokenRequestSchema, type OauthExchangeRequest, OauthExchangeRequestSchema, type OauthLinkCompleteEmailRequest, OauthLinkCompleteEmailRequestSchema, type OauthLinkCompleteRequest, OauthLinkCompleteRequestSchema, type OauthLinkSendOtpRequest, OauthLinkSendOtpRequestSchema, type OauthLinkSendOtpResponse, OauthLinkSendOtpResponseSchema, OauthResolveKind, type OauthStartQuery, OauthStartQuerySchema, type OauthStartResponse, OauthStartResponseSchema, PasswordSchema, type ProvidersListItem, ProvidersListItemSchema, type ProvidersListResponse, ProvidersListResponseSchema, REAUTH_ACTIONS, type ReauthAction, type ReauthTokenResponse, ReauthTokenResponseSchema, type RecoveryCode, RecoveryCodeSchema, type RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type SwitchProfileRequest, SwitchProfileRequestSchema, type SwitchProfileResponse, SwitchProfileResponseSchema, type TotpCode, TotpCodeSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -208,13 +208,6 @@ declare const OauthLinkCompleteEmailRequestSchema: z.ZodObject<{
|
|
|
208
208
|
linkHandoff: z.ZodString;
|
|
209
209
|
email: z.ZodEmail;
|
|
210
210
|
}, z.core.$strip>;
|
|
211
|
-
declare const ConfirmPasswordSchema: z.ZodObject<{
|
|
212
|
-
password: z.ZodString;
|
|
213
|
-
}, z.core.$strip>;
|
|
214
|
-
declare const ReauthTokenResponseSchema: z.ZodObject<{
|
|
215
|
-
reauthToken: z.ZodString;
|
|
216
|
-
expiresAt: z.ZodISODateTime;
|
|
217
|
-
}, z.core.$strip>;
|
|
218
211
|
|
|
219
212
|
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
220
213
|
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
@@ -237,8 +230,6 @@ type OauthLinkSendOtpResponse = z.infer<typeof OauthLinkSendOtpResponseSchema>;
|
|
|
237
230
|
type ProvidersListResponse = z.infer<typeof ProvidersListResponseSchema>;
|
|
238
231
|
type ProvidersListItem = z.infer<typeof ProvidersListItemSchema>;
|
|
239
232
|
type OauthLinkCompleteEmailRequest = z.infer<typeof OauthLinkCompleteEmailRequestSchema>;
|
|
240
|
-
type ConfirmPassword = z.infer<typeof ConfirmPasswordSchema>;
|
|
241
|
-
type ReauthTokenResponse = z.infer<typeof ReauthTokenResponseSchema>;
|
|
242
233
|
type SwitchProfileRequest = z.infer<typeof SwitchProfileRequestSchema>;
|
|
243
234
|
type SwitchProfileResponse = z.infer<typeof SwitchProfileResponseSchema>;
|
|
244
235
|
|
|
@@ -301,4 +292,54 @@ type MfaVerifyBody = z$1.infer<typeof MfaVerifyBodySchema>;
|
|
|
301
292
|
type TotpCode = z$1.infer<typeof TotpCodeSchema>;
|
|
302
293
|
type RecoveryCode = z$1.infer<typeof RecoveryCodeSchema>;
|
|
303
294
|
|
|
304
|
-
|
|
295
|
+
/**
|
|
296
|
+
* Actions that require step-up reauth (a fresh PIN confirmation) before
|
|
297
|
+
* they can be executed. Each protected endpoint on the backend declares
|
|
298
|
+
* its action via `@ReauthRequired(...)`; the FE mints an action-scoped
|
|
299
|
+
* token through `POST /auth/confirm-pin` and passes it in the
|
|
300
|
+
* `X-Reauth-Token` header.
|
|
301
|
+
*
|
|
302
|
+
* Tokens are single-use, TTL-bounded (5 min), and scoped — a token
|
|
303
|
+
* issued for `WITHDRAW` will 401 if replayed against `END_LIVE`.
|
|
304
|
+
*/
|
|
305
|
+
declare const REAUTH_ACTIONS: {
|
|
306
|
+
readonly END_LIVE: "END_LIVE";
|
|
307
|
+
readonly CANCEL_EVENT: "CANCEL_EVENT";
|
|
308
|
+
readonly WITHDRAW: "WITHDRAW";
|
|
309
|
+
readonly FUND_ESCROW: "FUND_ESCROW";
|
|
310
|
+
};
|
|
311
|
+
type ReauthAction = (typeof REAUTH_ACTIONS)[keyof typeof REAUTH_ACTIONS];
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* `POST /auth/confirm-pin` body. Regex matches the digit-string PIN
|
|
315
|
+
* format enforced when the PIN was first set (`POST /users/pin`).
|
|
316
|
+
*/
|
|
317
|
+
declare const ConfirmPinSchema: z.ZodObject<{
|
|
318
|
+
pin: z.ZodString;
|
|
319
|
+
action: z.ZodEnum<{
|
|
320
|
+
readonly END_LIVE: "END_LIVE";
|
|
321
|
+
readonly CANCEL_EVENT: "CANCEL_EVENT";
|
|
322
|
+
readonly WITHDRAW: "WITHDRAW";
|
|
323
|
+
readonly FUND_ESCROW: "FUND_ESCROW";
|
|
324
|
+
}>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
/**
|
|
327
|
+
* `POST /auth/confirm-pin` response. The `reauthToken` is presented via
|
|
328
|
+
* `X-Reauth-Token` on the subsequent destructive request; single-use,
|
|
329
|
+
* scoped to `action`.
|
|
330
|
+
*/
|
|
331
|
+
declare const ReauthTokenResponseSchema: z.ZodObject<{
|
|
332
|
+
reauthToken: z.ZodString;
|
|
333
|
+
action: z.ZodEnum<{
|
|
334
|
+
readonly END_LIVE: "END_LIVE";
|
|
335
|
+
readonly CANCEL_EVENT: "CANCEL_EVENT";
|
|
336
|
+
readonly WITHDRAW: "WITHDRAW";
|
|
337
|
+
readonly FUND_ESCROW: "FUND_ESCROW";
|
|
338
|
+
}>;
|
|
339
|
+
expiresAt: z.ZodISODateTime;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
|
|
342
|
+
type ConfirmPin = z$1.infer<typeof ConfirmPinSchema>;
|
|
343
|
+
type ReauthTokenResponse = z$1.infer<typeof ReauthTokenResponseSchema>;
|
|
344
|
+
|
|
345
|
+
export { type ChangePasswordRequest, ChangePasswordRequestSchema, type ConfirmPin, ConfirmPinSchema, type DisableMfaBody, DisableMfaBodySchema, type EnableMfaBody, EnableMfaBodySchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, IdentityProvider, LinkRequiredReasonEnum, type LinkRequiredResponse, LinkRequiredResponseSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type LogoutRequestPayload, LogoutRequestSchema, MFA_ACTIONS, type MfaAction, type MfaChallengeBody, MfaChallengeBodySchema, type MfaVerifyBody, MfaVerifyBodySchema, type OauthDirectTokenRequest, OauthDirectTokenRequestSchema, type OauthExchangeRequest, OauthExchangeRequestSchema, type OauthLinkCompleteEmailRequest, OauthLinkCompleteEmailRequestSchema, type OauthLinkCompleteRequest, OauthLinkCompleteRequestSchema, type OauthLinkSendOtpRequest, OauthLinkSendOtpRequestSchema, type OauthLinkSendOtpResponse, OauthLinkSendOtpResponseSchema, OauthResolveKind, type OauthStartQuery, OauthStartQuerySchema, type OauthStartResponse, OauthStartResponseSchema, PasswordSchema, type ProvidersListItem, ProvidersListItemSchema, type ProvidersListResponse, ProvidersListResponseSchema, REAUTH_ACTIONS, type ReauthAction, type ReauthTokenResponse, ReauthTokenResponseSchema, type RecoveryCode, RecoveryCodeSchema, type RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type SwitchProfileRequest, SwitchProfileRequestSchema, type SwitchProfileResponse, SwitchProfileResponseSchema, type TotpCode, TotpCodeSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
|
package/dist/auth/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkES4IKYQU_js=require('../chunk-ES4IKYQU.js');require('../chunk-CMQWFYU4.js'),require('../chunk-QZMRMFXE.js'),require('../chunk-72SD46VJ.js'),require('../chunk-4GW5RNUF.js'),require('../chunk-O3GYEMUB.js');Object.defineProperty(exports,"ChangePasswordRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.s}});Object.defineProperty(exports,"ConfirmPinSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.M}});Object.defineProperty(exports,"DisableMfaBodySchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.I}});Object.defineProperty(exports,"EnableMfaBodySchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.H}});Object.defineProperty(exports,"ForgotPasswordRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.p}});Object.defineProperty(exports,"ForgotPasswordResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.q}});Object.defineProperty(exports,"IdentityProvider",{enumerable:true,get:function(){return chunkES4IKYQU_js.a}});Object.defineProperty(exports,"LinkRequiredReasonEnum",{enumerable:true,get:function(){return chunkES4IKYQU_js.b}});Object.defineProperty(exports,"LinkRequiredResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.z}});Object.defineProperty(exports,"LoginRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.g}});Object.defineProperty(exports,"LoginResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.k}});Object.defineProperty(exports,"LogoutRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.o}});Object.defineProperty(exports,"MFA_ACTIONS",{enumerable:true,get:function(){return chunkES4IKYQU_js.E}});Object.defineProperty(exports,"MfaChallengeBodySchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.J}});Object.defineProperty(exports,"MfaVerifyBodySchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.K}});Object.defineProperty(exports,"OauthDirectTokenRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.w}});Object.defineProperty(exports,"OauthExchangeRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.v}});Object.defineProperty(exports,"OauthLinkCompleteEmailRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.D}});Object.defineProperty(exports,"OauthLinkCompleteRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.x}});Object.defineProperty(exports,"OauthLinkSendOtpRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.y}});Object.defineProperty(exports,"OauthLinkSendOtpResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.A}});Object.defineProperty(exports,"OauthResolveKind",{enumerable:true,get:function(){return chunkES4IKYQU_js.c}});Object.defineProperty(exports,"OauthStartQuerySchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.t}});Object.defineProperty(exports,"OauthStartResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.u}});Object.defineProperty(exports,"PasswordSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.d}});Object.defineProperty(exports,"ProvidersListItemSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.B}});Object.defineProperty(exports,"ProvidersListResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.C}});Object.defineProperty(exports,"REAUTH_ACTIONS",{enumerable:true,get:function(){return chunkES4IKYQU_js.L}});Object.defineProperty(exports,"ReauthTokenResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.N}});Object.defineProperty(exports,"RecoveryCodeSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.G}});Object.defineProperty(exports,"RefreshTokenRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.n}});Object.defineProperty(exports,"RegisterRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.e}});Object.defineProperty(exports,"RegisterResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.f}});Object.defineProperty(exports,"ResendOtpRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.i}});Object.defineProperty(exports,"ResetPasswordRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.r}});Object.defineProperty(exports,"SwitchProfileRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.l}});Object.defineProperty(exports,"SwitchProfileResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.m}});Object.defineProperty(exports,"TotpCodeSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.F}});Object.defineProperty(exports,"VerifyOtpRequestSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.h}});Object.defineProperty(exports,"VerifyOtpResponseSchema",{enumerable:true,get:function(){return chunkES4IKYQU_js.j}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/auth/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{s as ChangePasswordRequestSchema,
|
|
1
|
+
export{s as ChangePasswordRequestSchema,M as ConfirmPinSchema,I as DisableMfaBodySchema,H as EnableMfaBodySchema,p as ForgotPasswordRequestSchema,q as ForgotPasswordResponseSchema,a as IdentityProvider,b as LinkRequiredReasonEnum,z as LinkRequiredResponseSchema,g as LoginRequestSchema,k as LoginResponseSchema,o as LogoutRequestSchema,E as MFA_ACTIONS,J as MfaChallengeBodySchema,K as MfaVerifyBodySchema,w as OauthDirectTokenRequestSchema,v as OauthExchangeRequestSchema,D as OauthLinkCompleteEmailRequestSchema,x as OauthLinkCompleteRequestSchema,y as OauthLinkSendOtpRequestSchema,A as OauthLinkSendOtpResponseSchema,c as OauthResolveKind,t as OauthStartQuerySchema,u as OauthStartResponseSchema,d as PasswordSchema,B as ProvidersListItemSchema,C as ProvidersListResponseSchema,L as REAUTH_ACTIONS,N as ReauthTokenResponseSchema,G as RecoveryCodeSchema,n as RefreshTokenRequestSchema,e as RegisterRequestSchema,f as RegisterResponseSchema,i as ResendOtpRequestSchema,r as ResetPasswordRequestSchema,l as SwitchProfileRequestSchema,m as SwitchProfileResponseSchema,F as TotpCodeSchema,h as VerifyOtpRequestSchema,j as VerifyOtpResponseSchema}from'../chunk-D5MLOZC6.mjs';import'../chunk-VGLL5EUR.mjs';import'../chunk-5BJU6AZT.mjs';import'../chunk-IIVGG46P.mjs';import'../chunk-XXDKKJEP.mjs';import'../chunk-L4QDS3ET.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkO3GYEMUB_js=require('./chunk-O3GYEMUB.js'),zod=require('zod');var Ae={TICKET_PURCHASE:"TICKET_PURCHASE",BOOKING_ESCROW:"BOOKING_ESCROW",ESCROW_RELEASE:"ESCROW_RELEASE",PLATFORM_FEE:"PLATFORM_FEE",PRODUCER_PAYOUT:"PRODUCER_PAYOUT",HOST_PAYOUT:"HOST_PAYOUT",REFUND:"REFUND"},he={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILED:"FAILED",REVERSED:"REVERSED"},Re={PENDING:"PENDING",PROCESSING:"PROCESSING",COMPLETED:"COMPLETED",FAILED:"FAILED"},g={REQUIRES_PAYMENT:"REQUIRES_PAYMENT",PROCESSING:"PROCESSING",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",CANCELLED:"CANCELLED",REFUNDED:"REFUNDED"},b={PENDING_PAYMENT:"PENDING_PAYMENT",ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",REFUNDED:"REFUNDED"},x={REGISTERED:"REGISTERED",PUBLIC:"PUBLIC",EMAIL_MATCH:"EMAIL_MATCH",DOMAIN_MATCH:"DOMAIN_MATCH",USER_ID_MATCH:"USER_ID_MATCH",PHONE_MATCH:"PHONE_MATCH",NOT_ON_ALLOWLIST:"NOT_ON_ALLOWLIST"},T={NONE:"NONE",PENDING_PAYMENT:"PENDING_PAYMENT",ACTIVE:"ACTIVE",REFUNDED:"REFUNDED",CANCELLED:"CANCELLED"},Ie={PENDING:"PENDING",SETTLED:"SETTLED",WAIVED:"WAIVED",VOIDED:"VOIDED",REFUNDED:"REFUNDED"},E={BUY_TICKET:"BUY_TICKET",COMPLETE_PAYMENT:"COMPLETE_PAYMENT",WATCH_NOW:"WATCH_NOW",WATCH_REPLAY:"WATCH_REPLAY",REGISTER_FREE:"REGISTER_FREE",WAITLIST:"WAITLIST",UNAVAILABLE:"UNAVAILABLE",REPLAY_PROCESSING:"REPLAY_PROCESSING"},P={REQUESTED:"REQUESTED",AUTHORIZED:"AUTHORIZED",SENT:"SENT",SETTLED:"SETTLED",FAILED:"FAILED",REVERSED:"REVERSED"};var s={INCLUDED:"INCLUDED",DISABLED:"DISABLED",PAID_SEPARATELY:"PAID_SEPARATELY"},m={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",UNLISTED:"UNLISTED"},l={FREE:"FREE",PAID:"PAID",SUBSCRIPTION:"SUBSCRIPTION"},y={SELF:"SELF",HIRE:"HIRE"},D={PHONE:"PHONE",WEB:"WEB"},Te={EMAIL:"EMAIL",DOMAIN:"DOMAIN",PHONENUMBER:"PHONENUMBER",USERID:"USERID"},d={DRAFT:"DRAFT",SCHEDULED:"SCHEDULED",READY_FOR_TEST:"READY_FOR_TEST",LIVE:"LIVE",ENDED:"ENDED",REPLAY_READY:"REPLAY_READY",ARCHIVED:"ARCHIVED",CANCELLED:"CANCELLED",PAUSED:"PAUSED",FAILED:"FAILED"},r={ART:"ART",TECHNOLOGY:"TECHNOLOGY",SCIENCE:"SCIENCE",TRAVEL:"TRAVEL",HISTORY:"HISTORY",LITERATURE:"LITERATURE",COOKING:"COOKING",FITNESS:"FITNESS",PHOTOGRAPHY:"PHOTOGRAPHY",GARDENING:"GARDENING",EDUCATION:"EDUCATION",FASHION:"FASHION",MOVIES:"MOVIES",SPORTS:"SPORTS",POLITICS:"POLITICS",HEALTH:"HEALTH",GAMING:"GAMING",FINANCE:"FINANCE",NATURE:"NATURE",CONCERT:"CONCERT",FESTIVAL:"FESTIVAL",WEDDING:"WEDDING",CORPORATE:"CORPORATE",RELIGIOUS:"RELIGIOUS",BIRTHDAY:"BIRTHDAY",PARTY:"PARTY",OTHER:"OTHER"},v={PENDING_PAYMENT:"PENDING_PAYMENT",ACTIVE:"ACTIVE",CANCELLED:"CANCELLED",REFUNDED:"REFUNDED",EXPIRED:"EXPIRED"},Pe={FREE_RSVP:"FREE_RSVP",PAID_TICKET:"PAID_TICKET",INVITE:"INVITE"},f={ACTIVE:"ACTIVE",PENDING:"PENDING",NONE:"NONE"},A={UPCOMING:"UPCOMING",LIVE:"LIVE",RECOMMENDED:"RECOMMENDED"},h={UPCOMING:"UPCOMING",LIVE:"LIVE",PAST:"PAST"},De={REGISTRATION:"REGISTRATION",REPLAY_PURCHASE:"REPLAY_PURCHASE"};var O=zod.z.object({title:zod.z.string().max(120),description:zod.z.string().max(2e3),category:zod.z.enum(r),scheduledStartAt:zod.z.iso.datetime(),scheduledEndAt:zod.z.iso.datetime(),venueLocation:zod.z.string(),visibility:zod.z.enum(m),accessModel:zod.z.enum(l),ticketPrice:zod.z.number().min(0).optional(),maxTickets:zod.z.number().min(1).optional(),timezone:zod.z.string().default("Africa/Lagos"),replayAccess:zod.z.enum(s),retentionDays:zod.z.number().default(30),tags:zod.z.array(zod.z.string()).optional(),geoRestrictions:zod.z.record(zod.z.string(),zod.z.any()).optional()}),je=O.partial(),U=zod.z.object({kind:zod.z.enum(E),price:chunkO3GYEMUB_js.h.optional()}),Me=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),description:zod.z.string(),category:zod.z.enum(r),coverImageUrl:zod.z.url().optional(),venueLocation:zod.z.string(),scheduledStartAt:zod.z.iso.datetime(),scheduledEndAt:zod.z.iso.datetime(),timezone:zod.z.string(),visibility:zod.z.enum(m),accessModel:zod.z.enum(l),ticketPrice:chunkO3GYEMUB_js.h.nullable(),maxTickets:zod.z.number().optional(),eventState:zod.z.enum(d),shareableUrl:zod.z.url(),hostId:zod.z.uuid(),isFeatured:zod.z.boolean(),replayAccess:zod.z.enum(s),replayAvailableUntil:zod.z.iso.datetime().optional(),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime(),publishedAt:zod.z.iso.datetime().optional(),liveStartedAt:zod.z.iso.datetime().optional(),liveEndedAt:zod.z.iso.datetime().optional()}),i=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),timezone:zod.z.string(),coverImageUrl:zod.z.url().nullable(),category:zod.z.enum(r),scheduledStartLocal:zod.z.string(),scheduledEndLocal:zod.z.string(),scheduledStart:zod.z.iso.datetime(),scheduledEnd:zod.z.iso.datetime(),state:zod.z.enum(d),accessModel:zod.z.enum(l),ticketPrice:chunkO3GYEMUB_js.h.nullable(),isFeatured:zod.z.boolean(),hostDisplayName:zod.z.string().nullable(),viewerCount:zod.z.number().int().min(0),cta:U.optional(),durationMinutes:zod.z.number().int().nonnegative().nullable().optional(),viewer:zod.z.object({registration:zod.z.enum(f),progressPct:zod.z.number().min(0).max(100).optional(),canResume:zod.z.boolean().optional()})}),Oe=zod.z.object({continueWatching:zod.z.array(i),liveNow:zod.z.array(i),upcoming:zod.z.array(i),recommended:zod.z.array(i),featured:i.nullable()}),Ue=chunkO3GYEMUB_js.g.extend({category:zod.z.enum(r).optional(),accessModel:zod.z.enum(l).optional(),section:zod.z.enum(A).optional(),q:zod.z.string().trim().max(80).optional().transform(o=>o&&o.length>0?o:void 0)}),k=zod.z.object({mode:zod.z.literal("AGGREGATE"),featured:i.nullable(),liveNow:zod.z.array(i),upcoming:zod.z.array(i),recommended:zod.z.array(i)}),_=chunkO3GYEMUB_js.k.extend({mode:zod.z.literal("SECTION"),section:zod.z.enum(A),items:zod.z.array(i)}),ke=zod.z.discriminatedUnion("mode",[k,_]),_e=chunkO3GYEMUB_js.k.extend({items:zod.z.array(i)}),we=zod.z.object({callbackUrl:zod.z.url().optional()}),Ve=zod.z.object({registration:zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid(),status:zod.z.enum(v),expiresAt:zod.z.iso.datetime().nullable()}),paymentIntent:zod.z.object({reference:zod.z.string(),amount:chunkO3GYEMUB_js.h,checkoutUrl:zod.z.url().optional()}).nullable()}),He=zod.z.object({positionSec:zod.z.number().int().min(0).max(1440*60),durationSec:zod.z.number().int().min(1).optional()}),w=zod.z.object({playbackUrl:zod.z.url(),expiresAt:zod.z.iso.datetime(),streamStartedAt:zod.z.iso.datetime(),dvrWindowSeconds:zod.z.number().int().positive()}),V=zod.z.object({kind:zod.z.literal("LIVE"),playbackUrl:zod.z.url(),token:zod.z.string(),expiresAt:zod.z.iso.datetime(),catchup:w.optional()}),H=zod.z.object({kind:zod.z.literal("REPLAY"),playbackUrl:zod.z.url(),expiresAt:zod.z.iso.datetime()}),Ye=zod.z.discriminatedUnion("kind",[V,H]),Y=i.extend({startsInSec:zod.z.number().int().optional(),liveViewerCount:zod.z.number().int().min(0).optional(),liveStartedAt:zod.z.iso.datetime().nullable().optional(),replayAvailableUntil:zod.z.iso.datetime().nullable().optional(),replayDurationSec:zod.z.number().int().min(0).nullable().optional(),watchedPct:zod.z.number().min(0).max(100).optional(),hasWatched:zod.z.boolean().optional()}),Fe=chunkO3GYEMUB_js.k.extend({tab:zod.z.enum(h),items:zod.z.array(Y)}),Ge=chunkO3GYEMUB_js.g.extend({tab:zod.z.enum(h),q:zod.z.string().trim().max(80).optional().transform(o=>o&&o.length>0?o:void 0)}),Be=zod.z.object({sessionId:zod.z.string()}),We=zod.z.object({ok:zod.z.literal(true)}),qe=zod.z.object({durationSec:zod.z.number().int().min(0)}),N=zod.z.number({error:o=>o.input===void 0||o.input===null?"Please provide how many days the replay stays available.":"Replay retention must be a valid number of days."}).int("Replay retention must be a whole number of days.").min(1,"Replay must be available for at least 1 day.").max(365,"Replay retention cannot exceed 365 days."),F=zod.z.number({error:o=>o.input===void 0||o.input===null?"Please set a price for the paid replay.":"Replay price must be a valid number."}).positive("Replay price must be greater than 0."),C=zod.z.discriminatedUnion("access",[zod.z.object({access:zod.z.literal(s.INCLUDED),retentionDays:N}),zod.z.object({access:zod.z.literal(s.PAID_SEPARATELY),retentionDays:N,price:F}),zod.z.object({access:zod.z.literal(s.DISABLED)})],{error:o=>o.input===void 0||o.input===null||typeof o.input=="object"&&o.input.access==null?"Please choose a replay access option.":"Invalid replay access option selected."}),G=zod.z.enum(chunkO3GYEMUB_js.f),B=zod.z.enum(r),L=zod.z.enum(m),W=zod.z.enum(["LIVE_EDGE","CATCHUP"]),q=zod.z.object({step:zod.z.literal(1),title:zod.z.string().min(3).max(120),description:zod.z.string().min(20).max(1200),category:B,scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false}),durationMinutes:zod.z.number().int().min(5).max(720),coverImageUrl:zod.z.any().optional(),timezone:zod.z.string(),previewClipUrl:zod.z.any().optional(),tags:zod.z.array(zod.z.string().min(1).max(30)).max(10).optional(),location:zod.z.string().max(120).optional()}),z=zod.z.object({step:zod.z.literal(2),paid:zod.z.literal(false),visibility:L,guestEmails:zod.z.array(zod.z.email()).max(500).optional(),replay:C}),K=zod.z.object({step:zod.z.literal(2),paid:zod.z.literal(true),visibility:L,guestEmails:zod.z.array(zod.z.email()).max(500).optional(),ticketPrice:zod.z.number().positive(),ticketCurrency:G,ticketLimit:zod.z.number().int().positive().nullable(),replay:C}),Q=zod.z.object({step:zod.z.literal(3),mode:zod.z.literal(y.SELF),streamingMode:zod.z.enum(D)}),$=zod.z.object({step:zod.z.literal(3),mode:zod.z.literal(y.HIRE),crewIds:zod.z.array(zod.z.uuid()).min(1).max(5).default([]),notes:zod.z.string().max(500).optional()}),ze=zod.z.object({deviceType:zod.z.string().max(50).optional(),mode:W.default("LIVE_EDGE").optional()}),Ke=zod.z.object({streamEnabled:zod.z.boolean()}).strict(),Qe=zod.z.union([q,z,K,Q,$]),R=zod.z.string().min(3).max(8),a=zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"must be YYYY-MM-DD"),$e=zod.z.object({from:a,to:a,eventId:zod.z.uuid().optional(),currency:R.optional()}).strict(),Xe=zod.z.object({from:a,to:a,currency:R.optional(),pageNumber:zod.z.coerce.number().int().min(1).optional(),pageSize:zod.z.coerce.number().int().min(1).max(100).optional(),search:zod.z.string().trim().min(1).max(100).optional()}).strict(),Ze=zod.z.object({from:a,to:a,granularity:zod.z.enum(["daily","weekly"]),currency:R.optional()}).strict(),Je=zod.z.object({from:a,to:a,gross:chunkO3GYEMUB_js.h,refunds:chunkO3GYEMUB_js.h,net:chunkO3GYEMUB_js.h,available:chunkO3GYEMUB_js.h,pending:chunkO3GYEMUB_js.h,ticketsSold:zod.z.number().int().nonnegative(),avgTicketPrice:chunkO3GYEMUB_js.h,previousPeriodDelta:zod.z.object({percentage:zod.z.number().nullable(),direction:chunkO3GYEMUB_js.j,gross:chunkO3GYEMUB_js.h}),revenueSplit:zod.z.object({hostShare:chunkO3GYEMUB_js.h,platformFee:chunkO3GYEMUB_js.h,crewSalaries:chunkO3GYEMUB_js.h})}).strict(),X=zod.z.object({eventId:zod.z.uuid(),eventTitle:zod.z.string(),gross:chunkO3GYEMUB_js.h,refunds:chunkO3GYEMUB_js.h,net:chunkO3GYEMUB_js.h,firstActivityAt:a,lastActivityAt:a,ticketsSold:zod.z.number().int().nonnegative(),status:zod.z.enum(["COMPLETED","LIVE","SCHEDULED"])}).strict(),et=zod.z.object({items:zod.z.array(X),...chunkO3GYEMUB_js.k.shape}).strict(),Z=zod.z.object({date:a,gross:chunkO3GYEMUB_js.h,refunds:chunkO3GYEMUB_js.h,net:chunkO3GYEMUB_js.h}).strict(),tt=zod.z.object({granularity:zod.z.enum(["daily","weekly"]),points:zod.z.array(Z)}).strict(),J=zod.z.enum(["ALL","LIVE","UPCOMING","PAST"]),ee=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),timezone:zod.z.string(),description:zod.z.string().nullable(),coverImageUrl:zod.z.url().nullable(),category:zod.z.enum(r),accessModel:zod.z.enum(l),ticketPrice:chunkO3GYEMUB_js.h.nullable(),isFeatured:zod.z.boolean(),scheduledStartLocal:zod.z.string(),scheduledStart:zod.z.iso.datetime(),hostDisplayName:zod.z.string().nullable()}),nt=chunkO3GYEMUB_js.g.extend({status:J.default("ALL"),category:zod.z.enum(r).optional(),q:zod.z.string().trim().max(100).optional().transform(o=>o&&o.length>0?o:void 0)}),ot=chunkO3GYEMUB_js.k.extend({items:zod.z.array(ee)}),te=zod.z.object({kind:zod.z.literal("TRAILER"),trailerUrl:zod.z.string()}),ne=zod.z.object({kind:zod.z.literal("SLATE"),slate:zod.z.object({title:zod.z.string(),hostDisplayName:zod.z.string().nullable(),scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false})})}),oe=zod.z.discriminatedUnion("kind",[te,ne]),it=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),description:zod.z.string().nullable(),coverImageUrl:zod.z.url().nullable(),category:zod.z.enum(r),timezone:zod.z.string(),scheduledStart:zod.z.iso.datetime(),scheduledEnd:zod.z.iso.datetime(),scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false}),scheduledEndLocal:zod.z.iso.datetime({local:true,offset:false}),state:zod.z.enum(d),accessModel:zod.z.enum(l),visibility:zod.z.enum(m),ticketPrice:chunkO3GYEMUB_js.h.nullable(),replayAccess:zod.z.enum(s),replayAccessFee:chunkO3GYEMUB_js.h.nullable(),isFeatured:zod.z.boolean(),hostDisplayName:zod.z.string().nullable(),hostBio:zod.z.string().nullable(),previewClipUrl:zod.z.string().nullable(),remainingTickets:zod.z.number().int().nullable(),liveStartedAt:zod.z.iso.datetime().nullable(),liveEndedAt:zod.z.iso.datetime().nullable(),replayAvailableUntil:zod.z.iso.datetime().nullable(),ingestSubstate:zod.z.enum(["AWAITING_INGEST","STREAMING"]).nullable(),awaitingIngestContent:oe.nullable()}),at=zod.z.object({playbackUrl:zod.z.url(),token:zod.z.string(),expiresAt:zod.z.iso.datetime()}),st=zod.z.object({retentionDays:zod.z.number().int().min(1).max(90)}),rt=zod.z.object({eventId:zod.z.uuid(),liveEndedAt:zod.z.iso.datetime(),retentionDays:zod.z.number().int().min(1).max(90),replayAvailableUntil:zod.z.iso.datetime()}),ct=zod.z.object({granularity:zod.z.enum(["daily"]).optional().default("daily"),from:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"from must be YYYY-MM-DD").optional(),to:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"to must be YYYY-MM-DD").optional()}),ie=zod.z.object({date:zod.z.string(),ticketsSold:zod.z.number().int().nonnegative(),revenue:chunkO3GYEMUB_js.h}),lt=zod.z.object({eventId:zod.z.uuid(),granularity:zod.z.enum(["daily"]),from:zod.z.string(),to:zod.z.string(),points:zod.z.array(ie)}),ae=zod.z.object({from:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"from must be YYYY-MM-DD").optional(),to:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"to must be YYYY-MM-DD").optional(),eventId:zod.z.uuid().optional()}),S=zod.z.object({count:zod.z.number().int().nonnegative(),pct:zod.z.number().min(0).max(1)}),se=zod.z.object({count:zod.z.number().int().nonnegative(),percentagePrev:zod.z.number().nullable(),direction:chunkO3GYEMUB_js.j}),ut=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),currency:zod.z.string(),summary:zod.z.object({totalViewers:se,uniqueViewers:zod.z.number().int().nonnegative(),liveSpenders:zod.z.number().int().nonnegative(),casualViewers:zod.z.number().int().nonnegative(),repeatViewers:zod.z.number().int().nonnegative(),newThisPeriod:zod.z.number().int().nonnegative()}),segments:zod.z.object({newViewers:S,returningViewers:S,highValueBuyers:S,casualViewers:S}),revenuePerViewer:zod.z.object({total:zod.z.number().int().nonnegative(),averageSpend:chunkO3GYEMUB_js.h,percentagePrev:zod.z.number().nullable(),direction:chunkO3GYEMUB_js.j,bands:zod.z.object({lowSpenders:zod.z.number().int().nonnegative(),midSpenders:zod.z.number().int().nonnegative(),highSpenders:zod.z.number().int().nonnegative()})})}),mt=zod.z.object({from:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"from must be YYYY-MM-DD").optional(),to:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"to must be YYYY-MM-DD").optional(),search:zod.z.string().trim().min(1).max(120).optional(),...chunkO3GYEMUB_js.g.shape}),re=zod.z.object({eventId:zod.z.uuid(),eventTitle:zod.z.string(),viewers:zod.z.number().int().nonnegative(),peakConcurrent:zod.z.number().int().nonnegative(),replays:zod.z.number().int().nonnegative()}),pt=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),items:zod.z.array(re),...chunkO3GYEMUB_js.k.shape}),Et=zod.z.object({limit:zod.z.coerce.number().int().min(1).max(50).optional().default(10)}),ce=zod.z.object({userId:zod.z.uuid(),displayName:zod.z.string(),avatarKey:zod.z.string().nullable(),totalSpend:chunkO3GYEMUB_js.h,eventCount:zod.z.number().int().nonnegative()}),dt=zod.z.object({items:zod.z.array(ce)}),le=zod.z.object({kind:zod.z.enum(["TICKET_SOLD","REPLAY_SOLD"]),subjectType:zod.z.enum(["Event","PaymentIntent","ReplayPurchase","Booking"]),subjectId:zod.z.string(),occurredAt:zod.z.number(),payload:zod.z.record(zod.z.string(),zod.z.unknown())}),St=zod.z.object({items:zod.z.array(le),...chunkO3GYEMUB_js.k.shape}),gt=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),items:zod.z.array(zod.z.object({country:zod.z.string(),viewerCount:zod.z.number().int().nonnegative()}))}),bt=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),items:zod.z.array(zod.z.object({deviceType:zod.z.string(),viewerCount:zod.z.number().int().nonnegative()}))}),yt=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),granularity:zod.z.enum(["daily"]),points:zod.z.array(zod.z.object({date:zod.z.string(),viewers:zod.z.number().int().nonnegative()}))}),At=ae.extend({granularity:zod.z.enum(["daily"]).optional().default("daily")});var Nt=zod.z.object({eventId:zod.z.uuid(),amount:zod.z.number().min(0)}),Ct=zod.z.object({authorizationUrl:zod.z.url(),reference:zod.z.string(),accessCode:zod.z.string().optional()}),Lt=zod.z.object({reference:zod.z.string(),checkoutUrl:zod.z.url().nullable(),status:zod.z.enum(g),expiresAt:zod.z.iso.datetime()}),jt=zod.z.object({reference:zod.z.string(),status:zod.z.enum(g),eventId:zod.z.uuid(),amount:chunkO3GYEMUB_js.h,paidAt:zod.z.iso.datetime().nullable()}),Mt=zod.z.object({email:zod.z.email()}),ue=zod.z.object({intent_id:zod.z.uuid(),user_id:zod.z.uuid(),event_id:zod.z.uuid()}).loose(),me=zod.z.object({authorization_code:zod.z.string(),bin:zod.z.string().nullish(),last4:zod.z.string().nullish(),exp_month:zod.z.string().nullish(),exp_year:zod.z.string().nullish(),channel:zod.z.string().nullish(),card_type:zod.z.string().nullish(),bank:zod.z.string().nullish(),country_code:zod.z.string().nullish(),brand:zod.z.string().nullish(),reusable:zod.z.boolean().nullish(),signature:zod.z.string().nullish(),account_name:zod.z.string().nullish(),receiver_bank_account_number:zod.z.string().nullish(),receiver_bank:zod.z.string().nullish()}).loose(),pe=zod.z.object({id:zod.z.number(),first_name:zod.z.string().nullish(),last_name:zod.z.string().nullish(),email:zod.z.email(),customer_code:zod.z.string(),phone:zod.z.string().nullish(),metadata:zod.z.unknown().nullish(),risk_action:zod.z.string().nullish(),international_format_phone:zod.z.string().nullish()}).loose(),Ee=zod.z.object({type:zod.z.string().nullish(),source:zod.z.string().nullish(),entry_point:zod.z.string().nullish(),identifier:zod.z.string().nullish()}).loose(),Ot=zod.z.object({event:zod.z.string(),data:zod.z.object({id:zod.z.number(),domain:zod.z.string().optional(),status:zod.z.string(),reference:zod.z.string(),amount:zod.z.number(),message:zod.z.string().nullish(),gateway_response:zod.z.string().nullish(),paid_at:zod.z.string().nullish(),paidAt:zod.z.string().nullish(),created_at:zod.z.string().nullish(),channel:zod.z.string().nullish(),currency:zod.z.string(),ip_address:zod.z.string().nullish(),fees:zod.z.number().nullish(),fees_breakdown:zod.z.unknown().nullish(),fees_split:zod.z.unknown().nullish(),log:zod.z.unknown().nullish(),order_id:zod.z.string().nullish(),requested_amount:zod.z.number().nullish(),pos_transaction_data:zod.z.unknown().nullish(),plan:zod.z.object({}).loose().optional(),subaccount:zod.z.object({}).loose().optional(),split:zod.z.object({}).loose().optional(),metadata:ue,authorization:me.optional(),customer:pe.optional(),source:Ee.optional()}).loose()}).loose(),Ut=zod.z.object({qualified:zod.z.boolean(),reason:zod.z.enum(x)}),kt=zod.z.object({reference:zod.z.null(),subtotal:chunkO3GYEMUB_js.h,platformFee:chunkO3GYEMUB_js.h,total:chunkO3GYEMUB_js.h,strategyId:zod.z.string(),expiresInSec:zod.z.number().int().positive()}),de=zod.z.object({kind:zod.z.literal("TRAILER"),trailerUrl:zod.z.url()}),Se=zod.z.object({kind:zod.z.literal("SLATE"),slate:zod.z.object({title:zod.z.string(),hostDisplayName:zod.z.string().nullable(),scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false})})}),ge=zod.z.discriminatedUnion("kind",[de,Se]),_t=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),description:zod.z.string().nullable(),coverImageUrl:zod.z.string().nullable(),category:zod.z.string(),timezone:zod.z.string(),scheduledStart:zod.z.iso.datetime(),scheduledEnd:zod.z.iso.datetime(),scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false}),scheduledEndLocal:zod.z.iso.datetime({local:true,offset:false}),state:zod.z.string(),accessModel:zod.z.string(),visibility:zod.z.string(),ticketPrice:chunkO3GYEMUB_js.h.nullable(),replayAccess:zod.z.enum(s),replayAccessFee:chunkO3GYEMUB_js.h.nullable(),isFeatured:zod.z.boolean(),hostDisplayName:zod.z.string().nullable(),hostBio:zod.z.string().nullable(),previewClipUrl:zod.z.string().nullable(),remainingTickets:zod.z.number().int().nullable(),liveStartedAt:zod.z.iso.datetime().nullable(),liveEndedAt:zod.z.iso.datetime().nullable(),replayAvailableUntil:zod.z.iso.datetime().nullable(),ingestSubstate:zod.z.enum(["AWAITING_INGEST","STREAMING"]).nullable(),awaitingIngestContent:ge.nullable(),viewer:zod.z.object({entitlement:zod.z.enum(T),purchaseCta:zod.z.enum(E),activeIntentReference:zod.z.string().optional(),requiresAccessCheck:zod.z.boolean().optional()})}),wt=zod.z.object({url:zod.z.url(),expiresAt:zod.z.iso.datetime(),contentType:zod.z.string().min(1)}),be=zod.z.object({reference:zod.z.string(),amount:chunkO3GYEMUB_js.h,checkoutUrl:zod.z.string().optional()}),ye=zod.z.object({id:zod.z.string(),eventId:zod.z.string(),status:zod.z.enum(b),source:zod.z.enum(b),amount:chunkO3GYEMUB_js.h,paymentExpiresAt:zod.z.iso.datetime().nullable(),expiresAt:zod.z.iso.datetime().nullable(),paidAt:zod.z.iso.datetime().nullable()}),Vt=zod.z.object({replayPurchase:ye,payment:be.nullable()}),Ht=zod.z.object({bankCode:zod.z.string().trim().regex(/^\d{3,10}$/,"bankCode must be a 3\u201310 digit numeric string"),accountNumber:zod.z.string().trim().regex(/^\d{10}$/,"accountNumber must be a 10-digit NUBAN")}),Yt=zod.z.object({bankName:zod.z.string().nullable(),bankCode:zod.z.string().nullable(),accountNumberMasked:zod.z.string().nullable(),accountName:zod.z.string().nullable(),verifiedAt:zod.z.string().nullable(),updatedAt:zod.z.string().nullable()}),Ft=zod.z.object({pin:zod.z.string().trim().regex(/^\d{4,8}$/,"pin must be 4-8 digits")}),Gt=o=>zod.z.object({status:zod.z.union([zod.z.boolean(),zod.z.string()]).optional(),message:zod.z.string().optional(),data:o}),Bt=zod.z.object({status:zod.z.union([zod.z.boolean(),zod.z.string()]).optional(),message:zod.z.string().optional(),data:zod.z.unknown().optional()}),j=zod.z.union([zod.z.number(),zod.z.string()]).transform(o=>BigInt(o)),M=zod.z.string(),Wt=zod.z.object({id:zod.z.string().min(1),status:zod.z.string().min(1),amount:j.optional(),currency:M.optional(),funding:zod.z.object({account_number:zod.z.string(),account_name:zod.z.string(),bank_name:zod.z.string(),expires_at:zod.z.string().optional()}).partial().optional()}),qt=zod.z.object({id:zod.z.string().optional(),transaction_id:zod.z.string().optional(),reference:zod.z.string().optional(),status:zod.z.string().min(1)}),zt=zod.z.object({id:zod.z.string().optional(),transfer_id:zod.z.string().optional(),status:zod.z.string().min(1),requires_otp:zod.z.boolean().optional()}),Kt=zod.z.object({id:zod.z.string().optional(),refund_id:zod.z.string().optional(),flag_id:zod.z.string().optional(),status:zod.z.string().min(1)}),Qt=zod.z.object({id:zod.z.string().min(1),status:zod.z.string().min(1),amount:j.optional(),currency:M.optional(),updated_at:zod.z.string().optional()}),$t=zod.z.object({id:zod.z.string(),reference:zod.z.string(),state:zod.z.enum(P),amount:chunkO3GYEMUB_js.h,bankName:zod.z.string().nullable(),accountNumberMasked:zod.z.string(),accountName:zod.z.string(),requestedAt:zod.z.string(),settledAt:zod.z.string().nullable(),failedAt:zod.z.string().nullable(),failureReason:zod.z.string().nullable()});exports.$=je;exports.$a=Et;exports.A=Lt;exports.Aa=W;exports.B=jt;exports.Ba=ze;exports.C=Mt;exports.Ca=Ke;exports.D=Ot;exports.Da=Qe;exports.E=Ut;exports.Ea=$e;exports.F=kt;exports.Fa=Xe;exports.G=de;exports.Ga=Ze;exports.H=Se;exports.Ha=Je;exports.I=ge;exports.Ia=X;exports.J=_t;exports.Ja=et;exports.K=wt;exports.Ka=Z;exports.L=be;exports.La=tt;exports.M=ye;exports.Ma=J;exports.N=Vt;exports.Na=ee;exports.O=Ht;exports.Oa=nt;exports.P=Yt;exports.Pa=ot;exports.Q=Ft;exports.Qa=it;exports.R=Gt;exports.Ra=at;exports.S=Bt;exports.Sa=st;exports.T=j;exports.Ta=rt;exports.U=Wt;exports.Ua=ct;exports.V=qt;exports.Va=ie;exports.W=zt;exports.Wa=lt;exports.X=Kt;exports.Xa=ae;exports.Y=Qt;exports.Ya=ut;exports.Z=$t;exports.Za=mt;exports._=O;exports._a=pt;exports.a=s;exports.aa=U;exports.ab=dt;exports.b=m;exports.ba=Me;exports.bb=St;exports.c=l;exports.ca=i;exports.cb=gt;exports.d=y;exports.da=Oe;exports.db=bt;exports.e=D;exports.ea=Ue;exports.eb=yt;exports.f=Te;exports.fa=k;exports.fb=At;exports.g=d;exports.ga=_;exports.h=r;exports.ha=ke;exports.i=v;exports.ia=_e;exports.j=Pe;exports.ja=we;exports.k=f;exports.ka=Ve;exports.l=A;exports.la=He;exports.m=h;exports.ma=w;exports.n=De;exports.na=V;exports.o=Ae;exports.oa=H;exports.p=he;exports.pa=Ye;exports.q=Re;exports.qa=Y;exports.r=g;exports.ra=Fe;exports.s=b;exports.sa=Ge;exports.t=x;exports.ta=Be;exports.u=T;exports.ua=We;exports.v=Ie;exports.va=qe;exports.w=E;exports.wa=C;exports.x=P;exports.xa=G;exports.y=Nt;exports.ya=B;exports.z=Ct;exports.za=L;//# sourceMappingURL=chunk-MMROBRAM.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
'use strict';var chunkO3GYEMUB_js=require('./chunk-O3GYEMUB.js'),zod=require('zod');var Ae={TICKET_PURCHASE:"TICKET_PURCHASE",BOOKING_ESCROW:"BOOKING_ESCROW",ESCROW_RELEASE:"ESCROW_RELEASE",PLATFORM_FEE:"PLATFORM_FEE",PRODUCER_PAYOUT:"PRODUCER_PAYOUT",HOST_PAYOUT:"HOST_PAYOUT",REFUND:"REFUND"},he={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILED:"FAILED",REVERSED:"REVERSED"},Re={PENDING:"PENDING",PROCESSING:"PROCESSING",COMPLETED:"COMPLETED",FAILED:"FAILED"},b={REQUIRES_PAYMENT:"REQUIRES_PAYMENT",PROCESSING:"PROCESSING",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",CANCELLED:"CANCELLED",REFUNDED:"REFUNDED"},g={PENDING_PAYMENT:"PENDING_PAYMENT",ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",REFUNDED:"REFUNDED"},T={REGISTERED:"REGISTERED",PUBLIC:"PUBLIC",EMAIL_MATCH:"EMAIL_MATCH",DOMAIN_MATCH:"DOMAIN_MATCH",USER_ID_MATCH:"USER_ID_MATCH",PHONE_MATCH:"PHONE_MATCH",NOT_ON_ALLOWLIST:"NOT_ON_ALLOWLIST"},x={NONE:"NONE",PENDING_PAYMENT:"PENDING_PAYMENT",ACTIVE:"ACTIVE",REFUNDED:"REFUNDED",CANCELLED:"CANCELLED"},Ie={PENDING:"PENDING",SETTLED:"SETTLED",WAIVED:"WAIVED",VOIDED:"VOIDED",REFUNDED:"REFUNDED"},E={BUY_TICKET:"BUY_TICKET",COMPLETE_PAYMENT:"COMPLETE_PAYMENT",WATCH_NOW:"WATCH_NOW",WATCH_REPLAY:"WATCH_REPLAY",REGISTER_FREE:"REGISTER_FREE",WAITLIST:"WAITLIST",UNAVAILABLE:"UNAVAILABLE",REPLAY_PROCESSING:"REPLAY_PROCESSING"},P={REQUESTED:"REQUESTED",AUTHORIZED:"AUTHORIZED",SENT:"SENT",SETTLED:"SETTLED",FAILED:"FAILED",REVERSED:"REVERSED"};var s={INCLUDED:"INCLUDED",DISABLED:"DISABLED",PAID_SEPARATELY:"PAID_SEPARATELY"},m={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",UNLISTED:"UNLISTED"},l={FREE:"FREE",PAID:"PAID",SUBSCRIPTION:"SUBSCRIPTION"},y={SELF:"SELF",HIRE:"HIRE"},D={PHONE:"PHONE",WEB:"WEB"},xe={EMAIL:"EMAIL",DOMAIN:"DOMAIN",PHONENUMBER:"PHONENUMBER",USERID:"USERID"},d={DRAFT:"DRAFT",SCHEDULED:"SCHEDULED",READY_FOR_TEST:"READY_FOR_TEST",LIVE:"LIVE",ENDED:"ENDED",REPLAY_READY:"REPLAY_READY",ARCHIVED:"ARCHIVED",CANCELLED:"CANCELLED",PAUSED:"PAUSED",FAILED:"FAILED"},r={ART:"ART",TECHNOLOGY:"TECHNOLOGY",SCIENCE:"SCIENCE",TRAVEL:"TRAVEL",HISTORY:"HISTORY",LITERATURE:"LITERATURE",COOKING:"COOKING",FITNESS:"FITNESS",PHOTOGRAPHY:"PHOTOGRAPHY",GARDENING:"GARDENING",EDUCATION:"EDUCATION",FASHION:"FASHION",MOVIES:"MOVIES",SPORTS:"SPORTS",POLITICS:"POLITICS",HEALTH:"HEALTH",GAMING:"GAMING",FINANCE:"FINANCE",NATURE:"NATURE",CONCERT:"CONCERT",FESTIVAL:"FESTIVAL",WEDDING:"WEDDING",CORPORATE:"CORPORATE",RELIGIOUS:"RELIGIOUS",BIRTHDAY:"BIRTHDAY",PARTY:"PARTY",OTHER:"OTHER"},v={PENDING_PAYMENT:"PENDING_PAYMENT",ACTIVE:"ACTIVE",CANCELLED:"CANCELLED",REFUNDED:"REFUNDED",EXPIRED:"EXPIRED"},Pe={FREE_RSVP:"FREE_RSVP",PAID_TICKET:"PAID_TICKET",INVITE:"INVITE"},f={ACTIVE:"ACTIVE",PENDING:"PENDING",NONE:"NONE"},A={UPCOMING:"UPCOMING",LIVE:"LIVE",RECOMMENDED:"RECOMMENDED"},h={UPCOMING:"UPCOMING",LIVE:"LIVE",PAST:"PAST"},De={REGISTRATION:"REGISTRATION",REPLAY_PURCHASE:"REPLAY_PURCHASE"};var O=zod.z.object({title:zod.z.string().max(120),description:zod.z.string().max(2e3),category:zod.z.enum(r),scheduledStartAt:zod.z.iso.datetime(),scheduledEndAt:zod.z.iso.datetime(),venueLocation:zod.z.string(),visibility:zod.z.enum(m),accessModel:zod.z.enum(l),ticketPrice:zod.z.number().min(0).optional(),maxTickets:zod.z.number().min(1).optional(),timezone:zod.z.string().default("Africa/Lagos"),replayAccess:zod.z.enum(s),retentionDays:zod.z.number().default(30),tags:zod.z.array(zod.z.string()).optional(),geoRestrictions:zod.z.record(zod.z.string(),zod.z.any()).optional()}),je=O.partial(),U=zod.z.object({kind:zod.z.enum(E),price:chunkO3GYEMUB_js.h.optional()}),Me=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),description:zod.z.string(),category:zod.z.enum(r),coverImageUrl:zod.z.url().optional(),venueLocation:zod.z.string(),scheduledStartAt:zod.z.iso.datetime(),scheduledEndAt:zod.z.iso.datetime(),timezone:zod.z.string(),visibility:zod.z.enum(m),accessModel:zod.z.enum(l),ticketPrice:chunkO3GYEMUB_js.h.nullable(),maxTickets:zod.z.number().optional(),eventState:zod.z.enum(d),shareableUrl:zod.z.url(),hostId:zod.z.uuid(),isFeatured:zod.z.boolean(),replayAccess:zod.z.enum(s),replayAvailableUntil:zod.z.iso.datetime().optional(),createdAt:zod.z.iso.datetime(),updatedAt:zod.z.iso.datetime(),publishedAt:zod.z.iso.datetime().optional(),liveStartedAt:zod.z.iso.datetime().optional(),liveEndedAt:zod.z.iso.datetime().optional()}),i=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),timezone:zod.z.string(),coverImageUrl:zod.z.url().nullable(),category:zod.z.enum(r),scheduledStartLocal:zod.z.string(),scheduledEndLocal:zod.z.string(),scheduledStart:zod.z.iso.datetime(),scheduledEnd:zod.z.iso.datetime(),state:zod.z.enum(d),accessModel:zod.z.enum(l),ticketPrice:chunkO3GYEMUB_js.h.nullable(),isFeatured:zod.z.boolean(),hostDisplayName:zod.z.string().nullable(),viewerCount:zod.z.number().int().min(0),cta:U.optional(),durationMinutes:zod.z.number().int().nonnegative().nullable().optional(),viewer:zod.z.object({registration:zod.z.enum(f),progressPct:zod.z.number().min(0).max(100).optional(),canResume:zod.z.boolean().optional()})}),Oe=zod.z.object({continueWatching:zod.z.array(i),liveNow:zod.z.array(i),upcoming:zod.z.array(i),recommended:zod.z.array(i),featured:i.nullable()}),Ue=chunkO3GYEMUB_js.g.extend({category:zod.z.enum(r).optional(),accessModel:zod.z.enum(l).optional(),section:zod.z.enum(A).optional(),q:zod.z.string().trim().max(80).optional().transform(o=>o&&o.length>0?o:void 0)}),k=zod.z.object({mode:zod.z.literal("AGGREGATE"),featured:i.nullable(),liveNow:zod.z.array(i),upcoming:zod.z.array(i),recommended:zod.z.array(i)}),_=chunkO3GYEMUB_js.k.extend({mode:zod.z.literal("SECTION"),section:zod.z.enum(A),items:zod.z.array(i)}),ke=zod.z.discriminatedUnion("mode",[k,_]),_e=chunkO3GYEMUB_js.k.extend({items:zod.z.array(i)}),we=zod.z.object({callbackUrl:zod.z.url().optional()}),Ve=zod.z.object({registration:zod.z.object({id:zod.z.uuid(),eventId:zod.z.uuid(),status:zod.z.enum(v),expiresAt:zod.z.iso.datetime().nullable()}),paymentIntent:zod.z.object({reference:zod.z.string(),amount:chunkO3GYEMUB_js.h,checkoutUrl:zod.z.url().optional()}).nullable()}),He=zod.z.object({positionSec:zod.z.number().int().min(0).max(1440*60),durationSec:zod.z.number().int().min(1).optional()}),w=zod.z.object({playbackUrl:zod.z.url(),expiresAt:zod.z.iso.datetime(),streamStartedAt:zod.z.iso.datetime(),dvrWindowSeconds:zod.z.number().int().positive()}),V=zod.z.object({kind:zod.z.literal("LIVE"),playbackUrl:zod.z.url(),token:zod.z.string(),expiresAt:zod.z.iso.datetime(),catchup:w.optional()}),H=zod.z.object({kind:zod.z.literal("REPLAY"),playbackUrl:zod.z.url(),expiresAt:zod.z.iso.datetime()}),Ye=zod.z.discriminatedUnion("kind",[V,H]),Y=i.extend({startsInSec:zod.z.number().int().optional(),liveViewerCount:zod.z.number().int().min(0).optional(),liveStartedAt:zod.z.iso.datetime().nullable().optional(),replayAvailableUntil:zod.z.iso.datetime().nullable().optional(),replayDurationSec:zod.z.number().int().min(0).nullable().optional(),watchedPct:zod.z.number().min(0).max(100).optional(),hasWatched:zod.z.boolean().optional()}),Fe=chunkO3GYEMUB_js.k.extend({tab:zod.z.enum(h),items:zod.z.array(Y)}),Ge=chunkO3GYEMUB_js.g.extend({tab:zod.z.enum(h),q:zod.z.string().trim().max(80).optional().transform(o=>o&&o.length>0?o:void 0)}),Be=zod.z.object({sessionId:zod.z.string()}),We=zod.z.object({ok:zod.z.literal(true)}),qe=zod.z.object({durationSec:zod.z.number().int().min(0)}),N=zod.z.number({error:o=>o.input===void 0||o.input===null?"Please provide how many days the replay stays available.":"Replay retention must be a valid number of days."}).int("Replay retention must be a whole number of days.").min(1,"Replay must be available for at least 1 day.").max(365,"Replay retention cannot exceed 365 days."),F=zod.z.number({error:o=>o.input===void 0||o.input===null?"Please set a price for the paid replay.":"Replay price must be a valid number."}).positive("Replay price must be greater than 0."),C=zod.z.discriminatedUnion("access",[zod.z.object({access:zod.z.literal(s.INCLUDED),retentionDays:N}),zod.z.object({access:zod.z.literal(s.PAID_SEPARATELY),retentionDays:N,price:F}),zod.z.object({access:zod.z.literal(s.DISABLED)})],{error:o=>o.input===void 0||o.input===null||typeof o.input=="object"&&o.input.access==null?"Please choose a replay access option.":"Invalid replay access option selected."}),G=zod.z.enum(chunkO3GYEMUB_js.f),B=zod.z.enum(r),L=zod.z.enum(m),W=zod.z.enum(["LIVE_EDGE","CATCHUP"]),q=zod.z.object({step:zod.z.literal(1),title:zod.z.string().min(3).max(120),description:zod.z.string().min(20).max(1200),category:B,scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false}),durationMinutes:zod.z.number().int().min(5).max(720),coverImageUrl:zod.z.any().optional(),timezone:zod.z.string(),previewClipUrl:zod.z.any().optional(),tags:zod.z.array(zod.z.string().min(1).max(30)).max(10).optional(),location:zod.z.string().max(120).optional()}),z=zod.z.object({step:zod.z.literal(2),paid:zod.z.literal(false),visibility:L,guestEmails:zod.z.array(zod.z.email()).max(500).optional(),replay:C}),K=zod.z.object({step:zod.z.literal(2),paid:zod.z.literal(true),visibility:L,guestEmails:zod.z.array(zod.z.email()).max(500).optional(),ticketPrice:zod.z.number().positive(),ticketCurrency:G,ticketLimit:zod.z.number().int().positive().nullable(),replay:C}),Q=zod.z.object({step:zod.z.literal(3),mode:zod.z.literal(y.SELF),streamingMode:zod.z.enum(D)}),$=zod.z.object({step:zod.z.literal(3),mode:zod.z.literal(y.HIRE),crewIds:zod.z.array(zod.z.uuid()).min(1).max(5).default([]),notes:zod.z.string().max(500).optional()}),ze=zod.z.object({deviceType:zod.z.string().max(50).optional(),mode:W.default("LIVE_EDGE").optional()}),Ke=zod.z.object({streamEnabled:zod.z.boolean()}).strict(),Qe=zod.z.union([q,z,K,Q,$]),R=zod.z.string().min(3).max(8),a=zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"must be YYYY-MM-DD"),$e=zod.z.object({from:a,to:a,eventId:zod.z.uuid().optional(),currency:R.optional()}).strict(),Xe=zod.z.object({from:a,to:a,currency:R.optional(),pageNumber:zod.z.coerce.number().int().min(1).optional(),pageSize:zod.z.coerce.number().int().min(1).max(100).optional(),search:zod.z.string().trim().min(1).max(100).optional()}).strict(),Ze=zod.z.object({from:a,to:a,granularity:zod.z.enum(["daily","weekly"]),currency:R.optional()}).strict(),Je=zod.z.object({from:a,to:a,gross:chunkO3GYEMUB_js.h,refunds:chunkO3GYEMUB_js.h,net:chunkO3GYEMUB_js.h,available:chunkO3GYEMUB_js.h,pending:chunkO3GYEMUB_js.h,ticketsSold:zod.z.number().int().nonnegative(),avgTicketPrice:chunkO3GYEMUB_js.h,previousPeriodDelta:zod.z.object({percentage:zod.z.number().nullable(),direction:chunkO3GYEMUB_js.j,gross:chunkO3GYEMUB_js.h}),revenueSplit:zod.z.object({hostShare:chunkO3GYEMUB_js.h,platformFee:chunkO3GYEMUB_js.h,crewSalaries:chunkO3GYEMUB_js.h})}).strict(),X=zod.z.object({eventId:zod.z.uuid(),eventTitle:zod.z.string(),gross:chunkO3GYEMUB_js.h,refunds:chunkO3GYEMUB_js.h,net:chunkO3GYEMUB_js.h,firstActivityAt:a,lastActivityAt:a,ticketsSold:zod.z.number().int().nonnegative(),status:zod.z.enum(["COMPLETED","LIVE","SCHEDULED"])}).strict(),et=zod.z.object({items:zod.z.array(X),...chunkO3GYEMUB_js.k.shape}).strict(),Z=zod.z.object({date:a,gross:chunkO3GYEMUB_js.h,refunds:chunkO3GYEMUB_js.h,net:chunkO3GYEMUB_js.h}).strict(),tt=zod.z.object({granularity:zod.z.enum(["daily","weekly"]),points:zod.z.array(Z)}).strict(),J=zod.z.enum(["ALL","LIVE","UPCOMING","PAST"]),ee=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),timezone:zod.z.string(),description:zod.z.string().nullable(),coverImageUrl:zod.z.url().nullable(),category:zod.z.enum(r),accessModel:zod.z.enum(l),ticketPrice:chunkO3GYEMUB_js.h.nullable(),isFeatured:zod.z.boolean(),scheduledStartLocal:zod.z.string(),scheduledStart:zod.z.iso.datetime(),hostDisplayName:zod.z.string().nullable()}),nt=chunkO3GYEMUB_js.g.extend({status:J.default("ALL"),category:zod.z.enum(r).optional(),q:zod.z.string().trim().max(100).optional().transform(o=>o&&o.length>0?o:void 0)}),ot=chunkO3GYEMUB_js.k.extend({items:zod.z.array(ee)}),te=zod.z.object({kind:zod.z.literal("TRAILER"),trailerUrl:zod.z.string()}),ne=zod.z.object({kind:zod.z.literal("SLATE"),slate:zod.z.object({title:zod.z.string(),hostDisplayName:zod.z.string().nullable(),scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false})})}),oe=zod.z.discriminatedUnion("kind",[te,ne]),it=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),description:zod.z.string().nullable(),coverImageUrl:zod.z.url().nullable(),category:zod.z.enum(r),timezone:zod.z.string(),scheduledStart:zod.z.iso.datetime(),scheduledEnd:zod.z.iso.datetime(),scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false}),scheduledEndLocal:zod.z.iso.datetime({local:true,offset:false}),state:zod.z.enum(d),accessModel:zod.z.enum(l),visibility:zod.z.enum(m),ticketPrice:chunkO3GYEMUB_js.h.nullable(),replayAccess:zod.z.enum(s),replayAccessFee:chunkO3GYEMUB_js.h.nullable(),isFeatured:zod.z.boolean(),hostDisplayName:zod.z.string().nullable(),hostBio:zod.z.string().nullable(),previewClipUrl:zod.z.string().nullable(),remainingTickets:zod.z.number().int().nullable(),liveStartedAt:zod.z.iso.datetime().nullable(),liveEndedAt:zod.z.iso.datetime().nullable(),replayAvailableUntil:zod.z.iso.datetime().nullable(),ingestSubstate:zod.z.enum(["AWAITING_INGEST","STREAMING"]).nullable(),awaitingIngestContent:oe.nullable()}),at=zod.z.object({playbackUrl:zod.z.url(),token:zod.z.string(),expiresAt:zod.z.iso.datetime()}),st=zod.z.object({retentionDays:zod.z.number().int().min(1).max(90)}),rt=zod.z.object({eventId:zod.z.uuid(),liveEndedAt:zod.z.iso.datetime(),retentionDays:zod.z.number().int().min(1).max(90),replayAvailableUntil:zod.z.iso.datetime()}),ct=zod.z.object({granularity:zod.z.enum(["daily"]).optional().default("daily"),from:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"from must be YYYY-MM-DD").optional(),to:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"to must be YYYY-MM-DD").optional()}),ie=zod.z.object({date:zod.z.string(),ticketsSold:zod.z.number().int().nonnegative(),revenue:chunkO3GYEMUB_js.h}),lt=zod.z.object({eventId:zod.z.uuid(),granularity:zod.z.enum(["daily"]),from:zod.z.string(),to:zod.z.string(),points:zod.z.array(ie)}),ae=zod.z.object({from:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"from must be YYYY-MM-DD").optional(),to:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"to must be YYYY-MM-DD").optional(),eventId:zod.z.uuid().optional()}),S=zod.z.object({count:zod.z.number().int().nonnegative(),pct:zod.z.number().min(0).max(1)}),se=zod.z.object({count:zod.z.number().int().nonnegative(),percentagePrev:zod.z.number().nullable(),direction:chunkO3GYEMUB_js.j}),ut=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),currency:zod.z.string(),summary:zod.z.object({totalViewers:se,uniqueViewers:zod.z.number().int().nonnegative(),liveSpenders:zod.z.number().int().nonnegative(),casualViewers:zod.z.number().int().nonnegative(),repeatViewers:zod.z.number().int().nonnegative(),newThisPeriod:zod.z.number().int().nonnegative()}),segments:zod.z.object({newViewers:S,returningViewers:S,highValueBuyers:S,casualViewers:S}),revenuePerViewer:zod.z.object({total:zod.z.number().int().nonnegative(),averageSpend:chunkO3GYEMUB_js.h,percentagePrev:zod.z.number().nullable(),direction:chunkO3GYEMUB_js.j,bands:zod.z.object({lowSpenders:zod.z.number().int().nonnegative(),midSpenders:zod.z.number().int().nonnegative(),highSpenders:zod.z.number().int().nonnegative()})})}),mt=zod.z.object({from:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"from must be YYYY-MM-DD").optional(),to:zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/,"to must be YYYY-MM-DD").optional(),search:zod.z.string().trim().min(1).max(120).optional(),...chunkO3GYEMUB_js.g.shape}),re=zod.z.object({eventId:zod.z.uuid(),eventTitle:zod.z.string(),viewers:zod.z.number().int().nonnegative(),peakConcurrent:zod.z.number().int().nonnegative(),replays:zod.z.number().int().nonnegative()}),pt=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),items:zod.z.array(re),...chunkO3GYEMUB_js.k.shape}),Et=zod.z.object({limit:zod.z.coerce.number().int().min(1).max(50).optional().default(10)}),ce=zod.z.object({userId:zod.z.uuid(),displayName:zod.z.string(),avatarKey:zod.z.string().nullable(),totalSpend:chunkO3GYEMUB_js.h,eventCount:zod.z.number().int().nonnegative()}),dt=zod.z.object({items:zod.z.array(ce)}),le=zod.z.object({kind:zod.z.enum(["TICKET_SOLD","REPLAY_SOLD"]),subjectType:zod.z.enum(["Event","PaymentIntent","ReplayPurchase","Booking"]),subjectId:zod.z.string(),occurredAt:zod.z.number(),payload:zod.z.record(zod.z.string(),zod.z.unknown())}),St=zod.z.object({items:zod.z.array(le),...chunkO3GYEMUB_js.k.shape}),bt=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),items:zod.z.array(zod.z.object({country:zod.z.string(),viewerCount:zod.z.number().int().nonnegative()}))}),gt=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),items:zod.z.array(zod.z.object({deviceType:zod.z.string(),viewerCount:zod.z.number().int().nonnegative()}))}),yt=zod.z.object({from:zod.z.iso.datetime(),to:zod.z.iso.datetime(),granularity:zod.z.enum(["daily"]),points:zod.z.array(zod.z.object({date:zod.z.string(),viewers:zod.z.number().int().nonnegative()}))}),At=ae.extend({granularity:zod.z.enum(["daily"]).optional().default("daily")});var Nt=zod.z.object({eventId:zod.z.uuid(),amount:zod.z.number().min(0)}),Ct=zod.z.object({authorizationUrl:zod.z.url(),reference:zod.z.string(),accessCode:zod.z.string().optional()}),Lt=zod.z.object({reference:zod.z.string(),checkoutUrl:zod.z.url().nullable(),status:zod.z.enum(b),expiresAt:zod.z.iso.datetime()}),jt=zod.z.object({reference:zod.z.string(),status:zod.z.enum(b),eventId:zod.z.uuid(),amount:chunkO3GYEMUB_js.h,paidAt:zod.z.iso.datetime().nullable()}),Mt=zod.z.object({email:zod.z.email()}),ue=zod.z.object({intent_id:zod.z.uuid(),user_id:zod.z.uuid(),event_id:zod.z.uuid()}).loose(),me=zod.z.object({authorization_code:zod.z.string(),bin:zod.z.string().nullish(),last4:zod.z.string().nullish(),exp_month:zod.z.string().nullish(),exp_year:zod.z.string().nullish(),channel:zod.z.string().nullish(),card_type:zod.z.string().nullish(),bank:zod.z.string().nullish(),country_code:zod.z.string().nullish(),brand:zod.z.string().nullish(),reusable:zod.z.boolean().nullish(),signature:zod.z.string().nullish(),account_name:zod.z.string().nullish(),receiver_bank_account_number:zod.z.string().nullish(),receiver_bank:zod.z.string().nullish()}).loose(),pe=zod.z.object({id:zod.z.number(),first_name:zod.z.string().nullish(),last_name:zod.z.string().nullish(),email:zod.z.email(),customer_code:zod.z.string(),phone:zod.z.string().nullish(),metadata:zod.z.unknown().nullish(),risk_action:zod.z.string().nullish(),international_format_phone:zod.z.string().nullish()}).loose(),Ee=zod.z.object({type:zod.z.string().nullish(),source:zod.z.string().nullish(),entry_point:zod.z.string().nullish(),identifier:zod.z.string().nullish()}).loose(),Ot=zod.z.object({event:zod.z.string(),data:zod.z.object({id:zod.z.number(),domain:zod.z.string().optional(),status:zod.z.string(),reference:zod.z.string(),amount:zod.z.number(),message:zod.z.string().nullish(),gateway_response:zod.z.string().nullish(),paid_at:zod.z.string().nullish(),paidAt:zod.z.string().nullish(),created_at:zod.z.string().nullish(),channel:zod.z.string().nullish(),currency:zod.z.string(),ip_address:zod.z.string().nullish(),fees:zod.z.number().nullish(),fees_breakdown:zod.z.unknown().nullish(),fees_split:zod.z.unknown().nullish(),log:zod.z.unknown().nullish(),order_id:zod.z.string().nullish(),requested_amount:zod.z.number().nullish(),pos_transaction_data:zod.z.unknown().nullish(),plan:zod.z.object({}).loose().optional(),subaccount:zod.z.object({}).loose().optional(),split:zod.z.object({}).loose().optional(),metadata:ue,authorization:me.optional(),customer:pe.optional(),source:Ee.optional()}).loose()}).loose(),Ut=zod.z.object({qualified:zod.z.boolean(),reason:zod.z.enum(T)}),kt=zod.z.object({reference:zod.z.null(),subtotal:chunkO3GYEMUB_js.h,platformFee:chunkO3GYEMUB_js.h,total:chunkO3GYEMUB_js.h,strategyId:zod.z.string(),expiresInSec:zod.z.number().int().positive()}),de=zod.z.object({kind:zod.z.literal("TRAILER"),trailerUrl:zod.z.url()}),Se=zod.z.object({kind:zod.z.literal("SLATE"),slate:zod.z.object({title:zod.z.string(),hostDisplayName:zod.z.string().nullable(),scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false})})}),be=zod.z.discriminatedUnion("kind",[de,Se]),_t=zod.z.object({id:zod.z.uuid(),title:zod.z.string(),description:zod.z.string().nullable(),coverImageUrl:zod.z.string().nullable(),category:zod.z.string(),timezone:zod.z.string(),scheduledStart:zod.z.iso.datetime(),scheduledEnd:zod.z.iso.datetime(),scheduledStartLocal:zod.z.iso.datetime({local:true,offset:false}),scheduledEndLocal:zod.z.iso.datetime({local:true,offset:false}),state:zod.z.string(),accessModel:zod.z.string(),visibility:zod.z.string(),ticketPrice:chunkO3GYEMUB_js.h.nullable(),replayAccess:zod.z.enum(s),replayAccessFee:chunkO3GYEMUB_js.h.nullable(),isFeatured:zod.z.boolean(),hostDisplayName:zod.z.string().nullable(),hostBio:zod.z.string().nullable(),previewClipUrl:zod.z.string().nullable(),remainingTickets:zod.z.number().int().nullable(),liveStartedAt:zod.z.iso.datetime().nullable(),liveEndedAt:zod.z.iso.datetime().nullable(),replayAvailableUntil:zod.z.iso.datetime().nullable(),ingestSubstate:zod.z.enum(["AWAITING_INGEST","STREAMING"]).nullable(),awaitingIngestContent:be.nullable(),viewer:zod.z.object({entitlement:zod.z.enum(x),purchaseCta:zod.z.enum(E),activeIntentReference:zod.z.string().optional(),requiresAccessCheck:zod.z.boolean().optional()})}),wt=zod.z.object({url:zod.z.url(),expiresAt:zod.z.iso.datetime(),contentType:zod.z.string().min(1)}),ge=zod.z.object({reference:zod.z.string(),amount:chunkO3GYEMUB_js.h,checkoutUrl:zod.z.string().optional()}),ye=zod.z.object({id:zod.z.string(),eventId:zod.z.string(),status:zod.z.enum(g),source:zod.z.enum(g),amount:chunkO3GYEMUB_js.h,paymentExpiresAt:zod.z.iso.datetime().nullable(),expiresAt:zod.z.iso.datetime().nullable(),paidAt:zod.z.iso.datetime().nullable()}),Vt=zod.z.object({replayPurchase:ye,payment:ge.nullable()}),Ht=zod.z.object({bankCode:zod.z.string().trim().regex(/^\d{3,10}$/,"bankCode must be a 3\u201310 digit numeric string"),accountNumber:zod.z.string().trim().regex(/^\d{10}$/,"accountNumber must be a 10-digit NUBAN")}),Yt=zod.z.object({bankName:zod.z.string().nullable(),bankCode:zod.z.string().nullable(),accountNumberMasked:zod.z.string().nullable(),accountName:zod.z.string().nullable(),verifiedAt:zod.z.string().nullable(),updatedAt:zod.z.string().nullable()}),Ft=zod.z.object({}),Gt=o=>zod.z.object({status:zod.z.union([zod.z.boolean(),zod.z.string()]).optional(),message:zod.z.string().optional(),data:o}),Bt=zod.z.object({status:zod.z.union([zod.z.boolean(),zod.z.string()]).optional(),message:zod.z.string().optional(),data:zod.z.unknown().optional()}),j=zod.z.union([zod.z.number(),zod.z.string()]).transform(o=>BigInt(o)),M=zod.z.string(),Wt=zod.z.object({id:zod.z.string().min(1),status:zod.z.string().min(1),amount:j.optional(),currency:M.optional(),funding:zod.z.object({account_number:zod.z.string(),account_name:zod.z.string(),bank_name:zod.z.string(),expires_at:zod.z.string().optional()}).partial().optional()}),qt=zod.z.object({id:zod.z.string().optional(),transaction_id:zod.z.string().optional(),reference:zod.z.string().optional(),status:zod.z.string().min(1)}),zt=zod.z.object({id:zod.z.string().optional(),transfer_id:zod.z.string().optional(),status:zod.z.string().min(1),requires_otp:zod.z.boolean().optional()}),Kt=zod.z.object({id:zod.z.string().optional(),refund_id:zod.z.string().optional(),flag_id:zod.z.string().optional(),status:zod.z.string().min(1)}),Qt=zod.z.object({id:zod.z.string().min(1),status:zod.z.string().min(1),amount:j.optional(),currency:M.optional(),updated_at:zod.z.string().optional()}),$t=zod.z.object({id:zod.z.string(),reference:zod.z.string(),state:zod.z.enum(P),amount:chunkO3GYEMUB_js.h,bankName:zod.z.string().nullable(),accountNumberMasked:zod.z.string(),accountName:zod.z.string(),requestedAt:zod.z.string(),settledAt:zod.z.string().nullable(),failedAt:zod.z.string().nullable(),failureReason:zod.z.string().nullable()});exports.$=je;exports.$a=Et;exports.A=Lt;exports.Aa=W;exports.B=jt;exports.Ba=ze;exports.C=Mt;exports.Ca=Ke;exports.D=Ot;exports.Da=Qe;exports.E=Ut;exports.Ea=$e;exports.F=kt;exports.Fa=Xe;exports.G=de;exports.Ga=Ze;exports.H=Se;exports.Ha=Je;exports.I=be;exports.Ia=X;exports.J=_t;exports.Ja=et;exports.K=wt;exports.Ka=Z;exports.L=ge;exports.La=tt;exports.M=ye;exports.Ma=J;exports.N=Vt;exports.Na=ee;exports.O=Ht;exports.Oa=nt;exports.P=Yt;exports.Pa=ot;exports.Q=Ft;exports.Qa=it;exports.R=Gt;exports.Ra=at;exports.S=Bt;exports.Sa=st;exports.T=j;exports.Ta=rt;exports.U=Wt;exports.Ua=ct;exports.V=qt;exports.Va=ie;exports.W=zt;exports.Wa=lt;exports.X=Kt;exports.Xa=ae;exports.Y=Qt;exports.Ya=ut;exports.Z=$t;exports.Za=mt;exports._=O;exports._a=pt;exports.a=s;exports.aa=U;exports.ab=dt;exports.b=m;exports.ba=Me;exports.bb=St;exports.c=l;exports.ca=i;exports.cb=bt;exports.d=y;exports.da=Oe;exports.db=gt;exports.e=D;exports.ea=Ue;exports.eb=yt;exports.f=xe;exports.fa=k;exports.fb=At;exports.g=d;exports.ga=_;exports.h=r;exports.ha=ke;exports.i=v;exports.ia=_e;exports.j=Pe;exports.ja=we;exports.k=f;exports.ka=Ve;exports.l=A;exports.la=He;exports.m=h;exports.ma=w;exports.n=De;exports.na=V;exports.o=Ae;exports.oa=H;exports.p=he;exports.pa=Ye;exports.q=Re;exports.qa=Y;exports.r=b;exports.ra=Fe;exports.s=g;exports.sa=Ge;exports.t=T;exports.ta=Be;exports.u=x;exports.ua=We;exports.v=Ie;exports.va=qe;exports.w=E;exports.wa=C;exports.x=P;exports.xa=G;exports.y=Nt;exports.ya=B;exports.z=Ct;exports.za=L;//# sourceMappingURL=chunk-4GW5RNUF.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-4GW5RNUF.js.map
|