@livdot-tech/contracts 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/auth/index.d.mts +225 -0
  2. package/dist/auth/index.d.ts +225 -0
  3. package/dist/auth/index.js +2 -0
  4. package/dist/auth/index.js.map +1 -0
  5. package/dist/auth/index.mjs +2 -0
  6. package/dist/auth/index.mjs.map +1 -0
  7. package/dist/booking/index.d.mts +294 -0
  8. package/dist/booking/index.d.ts +294 -0
  9. package/dist/booking/index.js +2 -0
  10. package/dist/booking/index.js.map +1 -0
  11. package/dist/booking/index.mjs +2 -0
  12. package/dist/booking/index.mjs.map +1 -0
  13. package/dist/chunk-3CP6L2MG.js +2 -0
  14. package/dist/chunk-3CP6L2MG.js.map +1 -0
  15. package/dist/chunk-4FNHHHYR.mjs +2 -0
  16. package/dist/chunk-4FNHHHYR.mjs.map +1 -0
  17. package/dist/chunk-6G6C3SHC.js +2 -0
  18. package/dist/chunk-6G6C3SHC.js.map +1 -0
  19. package/dist/chunk-6UTUVCOM.mjs +2 -0
  20. package/dist/chunk-6UTUVCOM.mjs.map +1 -0
  21. package/dist/chunk-726BT6I5.js +2 -0
  22. package/dist/chunk-726BT6I5.js.map +1 -0
  23. package/dist/chunk-CLWT3LEH.mjs +2 -0
  24. package/dist/chunk-CLWT3LEH.mjs.map +1 -0
  25. package/dist/chunk-F663RS3D.js +2 -0
  26. package/dist/chunk-F663RS3D.js.map +1 -0
  27. package/dist/chunk-FSQX27QM.mjs +2 -0
  28. package/dist/chunk-FSQX27QM.mjs.map +1 -0
  29. package/dist/chunk-I75WHCI2.js +2 -0
  30. package/dist/chunk-I75WHCI2.js.map +1 -0
  31. package/dist/chunk-JT7SH43N.js +2 -0
  32. package/dist/chunk-JT7SH43N.js.map +1 -0
  33. package/dist/chunk-MRGEHWW3.js +2 -0
  34. package/dist/chunk-MRGEHWW3.js.map +1 -0
  35. package/dist/chunk-OGZ42P7K.js +2 -0
  36. package/dist/chunk-OGZ42P7K.js.map +1 -0
  37. package/dist/chunk-PQC527QJ.mjs +2 -0
  38. package/dist/chunk-PQC527QJ.mjs.map +1 -0
  39. package/dist/chunk-Q3PSIS6S.mjs +2 -0
  40. package/dist/chunk-Q3PSIS6S.mjs.map +1 -0
  41. package/dist/chunk-Q4VUDG2H.js +2 -0
  42. package/dist/chunk-Q4VUDG2H.js.map +1 -0
  43. package/dist/chunk-QBA77JOP.mjs +2 -0
  44. package/dist/chunk-QBA77JOP.mjs.map +1 -0
  45. package/dist/chunk-SHD2H6WD.mjs +2 -0
  46. package/dist/chunk-SHD2H6WD.mjs.map +1 -0
  47. package/dist/chunk-SILY3VKG.js +2 -0
  48. package/dist/chunk-SILY3VKG.js.map +1 -0
  49. package/dist/chunk-TTDRYA7J.mjs +2 -0
  50. package/dist/chunk-TTDRYA7J.mjs.map +1 -0
  51. package/dist/chunk-WEET4HBJ.mjs +2 -0
  52. package/dist/chunk-WEET4HBJ.mjs.map +1 -0
  53. package/dist/common/index.d.mts +315 -0
  54. package/dist/common/index.d.ts +315 -0
  55. package/dist/common/index.js +2 -0
  56. package/dist/common/index.js.map +1 -0
  57. package/dist/common/index.mjs +2 -0
  58. package/dist/common/index.mjs.map +1 -0
  59. package/dist/dispute/index.d.mts +79 -0
  60. package/dist/dispute/index.d.ts +79 -0
  61. package/dist/dispute/index.js +2 -0
  62. package/dist/dispute/index.js.map +1 -0
  63. package/dist/dispute/index.mjs +2 -0
  64. package/dist/dispute/index.mjs.map +1 -0
  65. package/dist/errors/index.d.mts +67 -0
  66. package/dist/errors/index.d.ts +67 -0
  67. package/dist/errors/index.js +2 -0
  68. package/dist/errors/index.js.map +1 -0
  69. package/dist/errors/index.mjs +2 -0
  70. package/dist/errors/index.mjs.map +1 -0
  71. package/dist/event/index.d.mts +270 -0
  72. package/dist/event/index.d.ts +270 -0
  73. package/dist/event/index.js +2 -0
  74. package/dist/event/index.js.map +1 -0
  75. package/dist/event/index.mjs +2 -0
  76. package/dist/event/index.mjs.map +1 -0
  77. package/dist/index.d.mts +11 -0
  78. package/dist/index.d.ts +11 -0
  79. package/dist/index.js +2 -0
  80. package/dist/index.js.map +1 -0
  81. package/dist/index.mjs +2 -0
  82. package/dist/index.mjs.map +1 -0
  83. package/dist/notification/index.d.mts +113 -0
  84. package/dist/notification/index.d.ts +113 -0
  85. package/dist/notification/index.js +2 -0
  86. package/dist/notification/index.js.map +1 -0
  87. package/dist/notification/index.mjs +2 -0
  88. package/dist/notification/index.mjs.map +1 -0
  89. package/dist/payment/index.d.mts +119 -0
  90. package/dist/payment/index.d.ts +119 -0
  91. package/dist/payment/index.js +2 -0
  92. package/dist/payment/index.js.map +1 -0
  93. package/dist/payment/index.mjs +2 -0
  94. package/dist/payment/index.mjs.map +1 -0
  95. package/dist/streaming/index.d.mts +79 -0
  96. package/dist/streaming/index.d.ts +79 -0
  97. package/dist/streaming/index.js +2 -0
  98. package/dist/streaming/index.js.map +1 -0
  99. package/dist/streaming/index.mjs +2 -0
  100. package/dist/streaming/index.mjs.map +1 -0
  101. package/dist/user/index.d.mts +236 -0
  102. package/dist/user/index.d.ts +236 -0
  103. package/dist/user/index.js +2 -0
  104. package/dist/user/index.js.map +1 -0
  105. package/dist/user/index.mjs +2 -0
  106. package/dist/user/index.mjs.map +1 -0
  107. package/package.json +27 -5
@@ -0,0 +1,119 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const TransactionType: {
4
+ readonly TICKET_PURCHASE: "TICKET_PURCHASE";
5
+ readonly BOOKING_ESCROW: "BOOKING_ESCROW";
6
+ readonly ESCROW_RELEASE: "ESCROW_RELEASE";
7
+ readonly PLATFORM_FEE: "PLATFORM_FEE";
8
+ readonly PRODUCER_PAYOUT: "PRODUCER_PAYOUT";
9
+ readonly HOST_PAYOUT: "HOST_PAYOUT";
10
+ readonly REFUND: "REFUND";
11
+ };
12
+ type TransactionType = (typeof TransactionType)[keyof typeof TransactionType];
13
+ declare const TransactionStatus: {
14
+ readonly PENDING: "pending";
15
+ readonly SUCCESS: "success";
16
+ readonly FAILED: "failed";
17
+ readonly REVERSED: "reversed";
18
+ };
19
+ type TransactionStatus = (typeof TransactionStatus)[keyof typeof TransactionStatus];
20
+ declare const PayoutStatus: {
21
+ readonly PENDING: "pending";
22
+ readonly PROCESSING: "processing";
23
+ readonly COMPLETED: "completed";
24
+ readonly FAILED: "failed";
25
+ };
26
+ type PayoutStatus = (typeof PayoutStatus)[keyof typeof PayoutStatus];
27
+
28
+ declare const InitiatePaymentRequestSchema: z.ZodObject<{
29
+ eventId: z.ZodString;
30
+ amount: z.ZodNumber;
31
+ }, "strip", z.ZodTypeAny, {
32
+ eventId: string;
33
+ amount: number;
34
+ }, {
35
+ eventId: string;
36
+ amount: number;
37
+ }>;
38
+ declare const InitiatePaymentResponseSchema: z.ZodObject<{
39
+ authorizationUrl: z.ZodString;
40
+ reference: z.ZodString;
41
+ accessCode: z.ZodOptional<z.ZodString>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ reference: string;
44
+ authorizationUrl: string;
45
+ accessCode?: string | undefined;
46
+ }, {
47
+ reference: string;
48
+ authorizationUrl: string;
49
+ accessCode?: string | undefined;
50
+ }>;
51
+ declare const PayoutResponseSchema: z.ZodObject<{
52
+ id: z.ZodString;
53
+ userId: z.ZodString;
54
+ amount: z.ZodNumber;
55
+ currency: z.ZodString;
56
+ payoutType: z.ZodString;
57
+ eventId: z.ZodOptional<z.ZodString>;
58
+ bookingId: z.ZodOptional<z.ZodString>;
59
+ payoutStatus: z.ZodNativeEnum<{
60
+ readonly PENDING: "pending";
61
+ readonly PROCESSING: "processing";
62
+ readonly COMPLETED: "completed";
63
+ readonly FAILED: "failed";
64
+ }>;
65
+ providerReference: z.ZodOptional<z.ZodString>;
66
+ bankCode: z.ZodOptional<z.ZodString>;
67
+ accountNumber: z.ZodOptional<z.ZodString>;
68
+ accountName: z.ZodOptional<z.ZodString>;
69
+ scheduledAt: z.ZodOptional<z.ZodString>;
70
+ processedAt: z.ZodOptional<z.ZodString>;
71
+ completedAt: z.ZodOptional<z.ZodString>;
72
+ failedAt: z.ZodOptional<z.ZodString>;
73
+ failureReason: z.ZodOptional<z.ZodString>;
74
+ createdAt: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ id: string;
77
+ createdAt: string;
78
+ userId: string;
79
+ currency: string;
80
+ amount: number;
81
+ payoutType: string;
82
+ payoutStatus: "pending" | "failed" | "processing" | "completed";
83
+ eventId?: string | undefined;
84
+ completedAt?: string | undefined;
85
+ bookingId?: string | undefined;
86
+ providerReference?: string | undefined;
87
+ bankCode?: string | undefined;
88
+ accountNumber?: string | undefined;
89
+ accountName?: string | undefined;
90
+ scheduledAt?: string | undefined;
91
+ processedAt?: string | undefined;
92
+ failedAt?: string | undefined;
93
+ failureReason?: string | undefined;
94
+ }, {
95
+ id: string;
96
+ createdAt: string;
97
+ userId: string;
98
+ currency: string;
99
+ amount: number;
100
+ payoutType: string;
101
+ payoutStatus: "pending" | "failed" | "processing" | "completed";
102
+ eventId?: string | undefined;
103
+ completedAt?: string | undefined;
104
+ bookingId?: string | undefined;
105
+ providerReference?: string | undefined;
106
+ bankCode?: string | undefined;
107
+ accountNumber?: string | undefined;
108
+ accountName?: string | undefined;
109
+ scheduledAt?: string | undefined;
110
+ processedAt?: string | undefined;
111
+ failedAt?: string | undefined;
112
+ failureReason?: string | undefined;
113
+ }>;
114
+
115
+ type InitiatePaymentRequest = z.infer<typeof InitiatePaymentRequestSchema>;
116
+ type InitiatePaymentResponse = z.infer<typeof InitiatePaymentResponseSchema>;
117
+ type PayoutResponse = z.infer<typeof PayoutResponseSchema>;
118
+
119
+ export { type InitiatePaymentRequest, InitiatePaymentRequestSchema, type InitiatePaymentResponse, InitiatePaymentResponseSchema, type PayoutResponse, PayoutResponseSchema, PayoutStatus, TransactionStatus, TransactionType };
@@ -0,0 +1,119 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const TransactionType: {
4
+ readonly TICKET_PURCHASE: "TICKET_PURCHASE";
5
+ readonly BOOKING_ESCROW: "BOOKING_ESCROW";
6
+ readonly ESCROW_RELEASE: "ESCROW_RELEASE";
7
+ readonly PLATFORM_FEE: "PLATFORM_FEE";
8
+ readonly PRODUCER_PAYOUT: "PRODUCER_PAYOUT";
9
+ readonly HOST_PAYOUT: "HOST_PAYOUT";
10
+ readonly REFUND: "REFUND";
11
+ };
12
+ type TransactionType = (typeof TransactionType)[keyof typeof TransactionType];
13
+ declare const TransactionStatus: {
14
+ readonly PENDING: "pending";
15
+ readonly SUCCESS: "success";
16
+ readonly FAILED: "failed";
17
+ readonly REVERSED: "reversed";
18
+ };
19
+ type TransactionStatus = (typeof TransactionStatus)[keyof typeof TransactionStatus];
20
+ declare const PayoutStatus: {
21
+ readonly PENDING: "pending";
22
+ readonly PROCESSING: "processing";
23
+ readonly COMPLETED: "completed";
24
+ readonly FAILED: "failed";
25
+ };
26
+ type PayoutStatus = (typeof PayoutStatus)[keyof typeof PayoutStatus];
27
+
28
+ declare const InitiatePaymentRequestSchema: z.ZodObject<{
29
+ eventId: z.ZodString;
30
+ amount: z.ZodNumber;
31
+ }, "strip", z.ZodTypeAny, {
32
+ eventId: string;
33
+ amount: number;
34
+ }, {
35
+ eventId: string;
36
+ amount: number;
37
+ }>;
38
+ declare const InitiatePaymentResponseSchema: z.ZodObject<{
39
+ authorizationUrl: z.ZodString;
40
+ reference: z.ZodString;
41
+ accessCode: z.ZodOptional<z.ZodString>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ reference: string;
44
+ authorizationUrl: string;
45
+ accessCode?: string | undefined;
46
+ }, {
47
+ reference: string;
48
+ authorizationUrl: string;
49
+ accessCode?: string | undefined;
50
+ }>;
51
+ declare const PayoutResponseSchema: z.ZodObject<{
52
+ id: z.ZodString;
53
+ userId: z.ZodString;
54
+ amount: z.ZodNumber;
55
+ currency: z.ZodString;
56
+ payoutType: z.ZodString;
57
+ eventId: z.ZodOptional<z.ZodString>;
58
+ bookingId: z.ZodOptional<z.ZodString>;
59
+ payoutStatus: z.ZodNativeEnum<{
60
+ readonly PENDING: "pending";
61
+ readonly PROCESSING: "processing";
62
+ readonly COMPLETED: "completed";
63
+ readonly FAILED: "failed";
64
+ }>;
65
+ providerReference: z.ZodOptional<z.ZodString>;
66
+ bankCode: z.ZodOptional<z.ZodString>;
67
+ accountNumber: z.ZodOptional<z.ZodString>;
68
+ accountName: z.ZodOptional<z.ZodString>;
69
+ scheduledAt: z.ZodOptional<z.ZodString>;
70
+ processedAt: z.ZodOptional<z.ZodString>;
71
+ completedAt: z.ZodOptional<z.ZodString>;
72
+ failedAt: z.ZodOptional<z.ZodString>;
73
+ failureReason: z.ZodOptional<z.ZodString>;
74
+ createdAt: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ id: string;
77
+ createdAt: string;
78
+ userId: string;
79
+ currency: string;
80
+ amount: number;
81
+ payoutType: string;
82
+ payoutStatus: "pending" | "failed" | "processing" | "completed";
83
+ eventId?: string | undefined;
84
+ completedAt?: string | undefined;
85
+ bookingId?: string | undefined;
86
+ providerReference?: string | undefined;
87
+ bankCode?: string | undefined;
88
+ accountNumber?: string | undefined;
89
+ accountName?: string | undefined;
90
+ scheduledAt?: string | undefined;
91
+ processedAt?: string | undefined;
92
+ failedAt?: string | undefined;
93
+ failureReason?: string | undefined;
94
+ }, {
95
+ id: string;
96
+ createdAt: string;
97
+ userId: string;
98
+ currency: string;
99
+ amount: number;
100
+ payoutType: string;
101
+ payoutStatus: "pending" | "failed" | "processing" | "completed";
102
+ eventId?: string | undefined;
103
+ completedAt?: string | undefined;
104
+ bookingId?: string | undefined;
105
+ providerReference?: string | undefined;
106
+ bankCode?: string | undefined;
107
+ accountNumber?: string | undefined;
108
+ accountName?: string | undefined;
109
+ scheduledAt?: string | undefined;
110
+ processedAt?: string | undefined;
111
+ failedAt?: string | undefined;
112
+ failureReason?: string | undefined;
113
+ }>;
114
+
115
+ type InitiatePaymentRequest = z.infer<typeof InitiatePaymentRequestSchema>;
116
+ type InitiatePaymentResponse = z.infer<typeof InitiatePaymentResponseSchema>;
117
+ type PayoutResponse = z.infer<typeof PayoutResponseSchema>;
118
+
119
+ export { type InitiatePaymentRequest, InitiatePaymentRequestSchema, type InitiatePaymentResponse, InitiatePaymentResponseSchema, type PayoutResponse, PayoutResponseSchema, PayoutStatus, TransactionStatus, TransactionType };
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkQ4VUDG2H_js=require('../chunk-Q4VUDG2H.js');Object.defineProperty(exports,"InitiatePaymentRequestSchema",{enumerable:true,get:function(){return chunkQ4VUDG2H_js.d}});Object.defineProperty(exports,"InitiatePaymentResponseSchema",{enumerable:true,get:function(){return chunkQ4VUDG2H_js.e}});Object.defineProperty(exports,"PayoutResponseSchema",{enumerable:true,get:function(){return chunkQ4VUDG2H_js.f}});Object.defineProperty(exports,"PayoutStatus",{enumerable:true,get:function(){return chunkQ4VUDG2H_js.c}});Object.defineProperty(exports,"TransactionStatus",{enumerable:true,get:function(){return chunkQ4VUDG2H_js.b}});Object.defineProperty(exports,"TransactionType",{enumerable:true,get:function(){return chunkQ4VUDG2H_js.a}});//# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,2 @@
1
+ export{d as InitiatePaymentRequestSchema,e as InitiatePaymentResponseSchema,f as PayoutResponseSchema,c as PayoutStatus,b as TransactionStatus,a as TransactionType}from'../chunk-SHD2H6WD.mjs';//# sourceMappingURL=index.mjs.map
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const StreamStatus: {
4
+ readonly PENDING: "pending";
5
+ readonly ACTIVE: "active";
6
+ readonly IDLE: "idle";
7
+ readonly ENDED: "ended";
8
+ readonly ERROR: "error";
9
+ };
10
+ type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
11
+ declare const IngestProtocol: {
12
+ readonly RTMPS: "RTMPS";
13
+ readonly SRT: "SRT";
14
+ };
15
+ type IngestProtocol = (typeof IngestProtocol)[keyof typeof IngestProtocol];
16
+
17
+ declare const PlaybackTokenResponseSchema: z.ZodObject<{
18
+ token: z.ZodString;
19
+ playbackUrl: z.ZodString;
20
+ expiresAt: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ token: string;
23
+ playbackUrl: string;
24
+ expiresAt: string;
25
+ }, {
26
+ token: string;
27
+ playbackUrl: string;
28
+ expiresAt: string;
29
+ }>;
30
+ declare const IngestCredentialsResponseSchema: z.ZodObject<{
31
+ ingestEndpoint: z.ZodString;
32
+ streamKey: z.ZodString;
33
+ protocol: z.ZodNativeEnum<{
34
+ readonly RTMPS: "RTMPS";
35
+ readonly SRT: "SRT";
36
+ }>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ ingestEndpoint: string;
39
+ streamKey: string;
40
+ protocol: "RTMPS" | "SRT";
41
+ }, {
42
+ ingestEndpoint: string;
43
+ streamKey: string;
44
+ protocol: "RTMPS" | "SRT";
45
+ }>;
46
+ declare const TelemetryReportRequestSchema: z.ZodObject<{
47
+ eventId: z.ZodString;
48
+ viewerCount: z.ZodOptional<z.ZodNumber>;
49
+ rebufferRate: z.ZodOptional<z.ZodNumber>;
50
+ bitrateKbps: z.ZodOptional<z.ZodNumber>;
51
+ latencyMs: z.ZodOptional<z.ZodNumber>;
52
+ playbackErrorRate: z.ZodOptional<z.ZodNumber>;
53
+ deviceType: z.ZodOptional<z.ZodString>;
54
+ region: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ eventId: string;
57
+ viewerCount?: number | undefined;
58
+ rebufferRate?: number | undefined;
59
+ bitrateKbps?: number | undefined;
60
+ latencyMs?: number | undefined;
61
+ playbackErrorRate?: number | undefined;
62
+ deviceType?: string | undefined;
63
+ region?: string | undefined;
64
+ }, {
65
+ eventId: string;
66
+ viewerCount?: number | undefined;
67
+ rebufferRate?: number | undefined;
68
+ bitrateKbps?: number | undefined;
69
+ latencyMs?: number | undefined;
70
+ playbackErrorRate?: number | undefined;
71
+ deviceType?: string | undefined;
72
+ region?: string | undefined;
73
+ }>;
74
+
75
+ type PlaybackTokenResponse = z.infer<typeof PlaybackTokenResponseSchema>;
76
+ type IngestCredentialsResponse = z.infer<typeof IngestCredentialsResponseSchema>;
77
+ type TelemetryReportRequest = z.infer<typeof TelemetryReportRequestSchema>;
78
+
79
+ export { type IngestCredentialsResponse, IngestCredentialsResponseSchema, IngestProtocol, type PlaybackTokenResponse, PlaybackTokenResponseSchema, StreamStatus, type TelemetryReportRequest, TelemetryReportRequestSchema };
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const StreamStatus: {
4
+ readonly PENDING: "pending";
5
+ readonly ACTIVE: "active";
6
+ readonly IDLE: "idle";
7
+ readonly ENDED: "ended";
8
+ readonly ERROR: "error";
9
+ };
10
+ type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
11
+ declare const IngestProtocol: {
12
+ readonly RTMPS: "RTMPS";
13
+ readonly SRT: "SRT";
14
+ };
15
+ type IngestProtocol = (typeof IngestProtocol)[keyof typeof IngestProtocol];
16
+
17
+ declare const PlaybackTokenResponseSchema: z.ZodObject<{
18
+ token: z.ZodString;
19
+ playbackUrl: z.ZodString;
20
+ expiresAt: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ token: string;
23
+ playbackUrl: string;
24
+ expiresAt: string;
25
+ }, {
26
+ token: string;
27
+ playbackUrl: string;
28
+ expiresAt: string;
29
+ }>;
30
+ declare const IngestCredentialsResponseSchema: z.ZodObject<{
31
+ ingestEndpoint: z.ZodString;
32
+ streamKey: z.ZodString;
33
+ protocol: z.ZodNativeEnum<{
34
+ readonly RTMPS: "RTMPS";
35
+ readonly SRT: "SRT";
36
+ }>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ ingestEndpoint: string;
39
+ streamKey: string;
40
+ protocol: "RTMPS" | "SRT";
41
+ }, {
42
+ ingestEndpoint: string;
43
+ streamKey: string;
44
+ protocol: "RTMPS" | "SRT";
45
+ }>;
46
+ declare const TelemetryReportRequestSchema: z.ZodObject<{
47
+ eventId: z.ZodString;
48
+ viewerCount: z.ZodOptional<z.ZodNumber>;
49
+ rebufferRate: z.ZodOptional<z.ZodNumber>;
50
+ bitrateKbps: z.ZodOptional<z.ZodNumber>;
51
+ latencyMs: z.ZodOptional<z.ZodNumber>;
52
+ playbackErrorRate: z.ZodOptional<z.ZodNumber>;
53
+ deviceType: z.ZodOptional<z.ZodString>;
54
+ region: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ eventId: string;
57
+ viewerCount?: number | undefined;
58
+ rebufferRate?: number | undefined;
59
+ bitrateKbps?: number | undefined;
60
+ latencyMs?: number | undefined;
61
+ playbackErrorRate?: number | undefined;
62
+ deviceType?: string | undefined;
63
+ region?: string | undefined;
64
+ }, {
65
+ eventId: string;
66
+ viewerCount?: number | undefined;
67
+ rebufferRate?: number | undefined;
68
+ bitrateKbps?: number | undefined;
69
+ latencyMs?: number | undefined;
70
+ playbackErrorRate?: number | undefined;
71
+ deviceType?: string | undefined;
72
+ region?: string | undefined;
73
+ }>;
74
+
75
+ type PlaybackTokenResponse = z.infer<typeof PlaybackTokenResponseSchema>;
76
+ type IngestCredentialsResponse = z.infer<typeof IngestCredentialsResponseSchema>;
77
+ type TelemetryReportRequest = z.infer<typeof TelemetryReportRequestSchema>;
78
+
79
+ export { type IngestCredentialsResponse, IngestCredentialsResponseSchema, IngestProtocol, type PlaybackTokenResponse, PlaybackTokenResponseSchema, StreamStatus, type TelemetryReportRequest, TelemetryReportRequestSchema };
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunk726BT6I5_js=require('../chunk-726BT6I5.js');Object.defineProperty(exports,"IngestCredentialsResponseSchema",{enumerable:true,get:function(){return chunk726BT6I5_js.d}});Object.defineProperty(exports,"IngestProtocol",{enumerable:true,get:function(){return chunk726BT6I5_js.b}});Object.defineProperty(exports,"PlaybackTokenResponseSchema",{enumerable:true,get:function(){return chunk726BT6I5_js.c}});Object.defineProperty(exports,"StreamStatus",{enumerable:true,get:function(){return chunk726BT6I5_js.a}});Object.defineProperty(exports,"TelemetryReportRequestSchema",{enumerable:true,get:function(){return chunk726BT6I5_js.e}});//# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,2 @@
1
+ export{d as IngestCredentialsResponseSchema,b as IngestProtocol,c as PlaybackTokenResponseSchema,a as StreamStatus,e as TelemetryReportRequestSchema}from'../chunk-6UTUVCOM.mjs';//# sourceMappingURL=index.mjs.map
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -0,0 +1,236 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const UserRole: {
4
+ readonly HOST: 1;
5
+ readonly PRODUCER: 2;
6
+ readonly VIEWER: 4;
7
+ readonly ADMIN: 8;
8
+ };
9
+ type UserRole = (typeof UserRole)[keyof typeof UserRole];
10
+ declare const AccountStatus: {
11
+ readonly ACTIVE: "active";
12
+ readonly SUSPENDED: "suspended";
13
+ readonly DEACTIVATED: "deactivated";
14
+ };
15
+ type AccountStatus = (typeof AccountStatus)[keyof typeof AccountStatus];
16
+ declare const KycStatus: {
17
+ readonly PENDING: "pending";
18
+ readonly SUBMITTED: "submitted";
19
+ readonly VERIFIED: "verified";
20
+ readonly REJECTED: "rejected";
21
+ };
22
+ type KycStatus = (typeof KycStatus)[keyof typeof KycStatus];
23
+ declare const ProducerVerificationStatus: {
24
+ readonly PENDING: "pending";
25
+ readonly VERIFIED: "verified";
26
+ readonly REJECTED: "rejected";
27
+ };
28
+ type ProducerVerificationStatus = (typeof ProducerVerificationStatus)[keyof typeof ProducerVerificationStatus];
29
+
30
+ declare const UserResponseSchema: z.ZodObject<{
31
+ id: z.ZodString;
32
+ email: z.ZodString;
33
+ phoneNumber: z.ZodOptional<z.ZodString>;
34
+ firstName: z.ZodOptional<z.ZodString>;
35
+ lastName: z.ZodOptional<z.ZodString>;
36
+ displayName: z.ZodOptional<z.ZodString>;
37
+ avatarUrl: z.ZodOptional<z.ZodString>;
38
+ roles: z.ZodNativeEnum<{
39
+ readonly HOST: 1;
40
+ readonly PRODUCER: 2;
41
+ readonly VIEWER: 4;
42
+ readonly ADMIN: 8;
43
+ }>;
44
+ accountStatus: z.ZodNativeEnum<{
45
+ readonly ACTIVE: "active";
46
+ readonly SUSPENDED: "suspended";
47
+ readonly DEACTIVATED: "deactivated";
48
+ }>;
49
+ kycStatus: z.ZodNativeEnum<{
50
+ readonly PENDING: "pending";
51
+ readonly SUBMITTED: "submitted";
52
+ readonly VERIFIED: "verified";
53
+ readonly REJECTED: "rejected";
54
+ }>;
55
+ paystackSubaccountCode: z.ZodOptional<z.ZodString>;
56
+ createdAt: z.ZodString;
57
+ updatedAt: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ id: string;
60
+ email: string;
61
+ roles: 1 | 2 | 4 | 8;
62
+ accountStatus: "active" | "suspended" | "deactivated";
63
+ kycStatus: "pending" | "submitted" | "verified" | "rejected";
64
+ createdAt: string;
65
+ updatedAt: string;
66
+ phoneNumber?: string | undefined;
67
+ firstName?: string | undefined;
68
+ lastName?: string | undefined;
69
+ displayName?: string | undefined;
70
+ avatarUrl?: string | undefined;
71
+ paystackSubaccountCode?: string | undefined;
72
+ }, {
73
+ id: string;
74
+ email: string;
75
+ roles: 1 | 2 | 4 | 8;
76
+ accountStatus: "active" | "suspended" | "deactivated";
77
+ kycStatus: "pending" | "submitted" | "verified" | "rejected";
78
+ createdAt: string;
79
+ updatedAt: string;
80
+ phoneNumber?: string | undefined;
81
+ firstName?: string | undefined;
82
+ lastName?: string | undefined;
83
+ displayName?: string | undefined;
84
+ avatarUrl?: string | undefined;
85
+ paystackSubaccountCode?: string | undefined;
86
+ }>;
87
+ declare const UpdateUserRequestSchema: z.ZodObject<{
88
+ firstName: z.ZodOptional<z.ZodString>;
89
+ lastName: z.ZodOptional<z.ZodString>;
90
+ displayName: z.ZodOptional<z.ZodString>;
91
+ avatarUrl: z.ZodOptional<z.ZodString>;
92
+ phoneNumber: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ phoneNumber?: string | undefined;
95
+ firstName?: string | undefined;
96
+ lastName?: string | undefined;
97
+ displayName?: string | undefined;
98
+ avatarUrl?: string | undefined;
99
+ }, {
100
+ phoneNumber?: string | undefined;
101
+ firstName?: string | undefined;
102
+ lastName?: string | undefined;
103
+ displayName?: string | undefined;
104
+ avatarUrl?: string | undefined;
105
+ }>;
106
+ declare const CreateHostProfileRequestSchema: z.ZodObject<{
107
+ businessName: z.ZodOptional<z.ZodString>;
108
+ businessRegNumber: z.ZodOptional<z.ZodString>;
109
+ taxId: z.ZodOptional<z.ZodString>;
110
+ defaultCurrency: z.ZodDefault<z.ZodString>;
111
+ settlementBankCode: z.ZodOptional<z.ZodString>;
112
+ settlementAccountNumber: z.ZodOptional<z.ZodString>;
113
+ settlementAccountName: z.ZodOptional<z.ZodString>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ defaultCurrency: string;
116
+ businessName?: string | undefined;
117
+ businessRegNumber?: string | undefined;
118
+ taxId?: string | undefined;
119
+ settlementBankCode?: string | undefined;
120
+ settlementAccountNumber?: string | undefined;
121
+ settlementAccountName?: string | undefined;
122
+ }, {
123
+ businessName?: string | undefined;
124
+ businessRegNumber?: string | undefined;
125
+ taxId?: string | undefined;
126
+ defaultCurrency?: string | undefined;
127
+ settlementBankCode?: string | undefined;
128
+ settlementAccountNumber?: string | undefined;
129
+ settlementAccountName?: string | undefined;
130
+ }>;
131
+ declare const HostProfileResponseSchema: z.ZodObject<{
132
+ id: z.ZodString;
133
+ userId: z.ZodString;
134
+ businessName: z.ZodString;
135
+ totalEvents: z.ZodNumber;
136
+ totalSpent: z.ZodNumber;
137
+ averageRating: z.ZodNumber;
138
+ createdAt: z.ZodString;
139
+ }, "strip", z.ZodTypeAny, {
140
+ id: string;
141
+ createdAt: string;
142
+ businessName: string;
143
+ userId: string;
144
+ totalEvents: number;
145
+ totalSpent: number;
146
+ averageRating: number;
147
+ }, {
148
+ id: string;
149
+ createdAt: string;
150
+ businessName: string;
151
+ userId: string;
152
+ totalEvents: number;
153
+ totalSpent: number;
154
+ averageRating: number;
155
+ }>;
156
+ declare const CreateProducerProfileRequestSchema: z.ZodObject<{
157
+ companyName: z.ZodOptional<z.ZodString>;
158
+ bio: z.ZodOptional<z.ZodString>;
159
+ yearsExperience: z.ZodOptional<z.ZodNumber>;
160
+ equipmentManifest: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
161
+ rateCard: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
162
+ serviceAreas: z.ZodArray<z.ZodString, "many">;
163
+ maxDistanceKm: z.ZodOptional<z.ZodNumber>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ equipmentManifest: Record<string, any>[];
166
+ serviceAreas: string[];
167
+ companyName?: string | undefined;
168
+ bio?: string | undefined;
169
+ yearsExperience?: number | undefined;
170
+ rateCard?: Record<string, any> | undefined;
171
+ maxDistanceKm?: number | undefined;
172
+ }, {
173
+ equipmentManifest: Record<string, any>[];
174
+ serviceAreas: string[];
175
+ companyName?: string | undefined;
176
+ bio?: string | undefined;
177
+ yearsExperience?: number | undefined;
178
+ rateCard?: Record<string, any> | undefined;
179
+ maxDistanceKm?: number | undefined;
180
+ }>;
181
+ declare const ProducerProfileResponseSchema: z.ZodObject<{
182
+ id: z.ZodString;
183
+ userId: z.ZodString;
184
+ companyName: z.ZodOptional<z.ZodString>;
185
+ bio: z.ZodOptional<z.ZodString>;
186
+ yearsExperience: z.ZodOptional<z.ZodNumber>;
187
+ equipmentManifest: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
188
+ serviceAreas: z.ZodArray<z.ZodString, "many">;
189
+ verificationStatus: z.ZodNativeEnum<{
190
+ readonly PENDING: "pending";
191
+ readonly VERIFIED: "verified";
192
+ readonly REJECTED: "rejected";
193
+ }>;
194
+ averageRating: z.ZodNumber;
195
+ totalReviews: z.ZodNumber;
196
+ completionRate: z.ZodNumber;
197
+ isAvailable: z.ZodBoolean;
198
+ createdAt: z.ZodString;
199
+ }, "strip", z.ZodTypeAny, {
200
+ id: string;
201
+ createdAt: string;
202
+ userId: string;
203
+ averageRating: number;
204
+ equipmentManifest: Record<string, any>[];
205
+ serviceAreas: string[];
206
+ verificationStatus: "pending" | "verified" | "rejected";
207
+ totalReviews: number;
208
+ completionRate: number;
209
+ isAvailable: boolean;
210
+ companyName?: string | undefined;
211
+ bio?: string | undefined;
212
+ yearsExperience?: number | undefined;
213
+ }, {
214
+ id: string;
215
+ createdAt: string;
216
+ userId: string;
217
+ averageRating: number;
218
+ equipmentManifest: Record<string, any>[];
219
+ serviceAreas: string[];
220
+ verificationStatus: "pending" | "verified" | "rejected";
221
+ totalReviews: number;
222
+ completionRate: number;
223
+ isAvailable: boolean;
224
+ companyName?: string | undefined;
225
+ bio?: string | undefined;
226
+ yearsExperience?: number | undefined;
227
+ }>;
228
+
229
+ type UserResponse = z.infer<typeof UserResponseSchema>;
230
+ type UpdateUserRequest = z.infer<typeof UpdateUserRequestSchema>;
231
+ type CreateHostProfileRequest = z.infer<typeof CreateHostProfileRequestSchema>;
232
+ type HostProfileResponse = z.infer<typeof HostProfileResponseSchema>;
233
+ type CreateProducerProfileRequest = z.infer<typeof CreateProducerProfileRequestSchema>;
234
+ type ProducerProfileResponse = z.infer<typeof ProducerProfileResponseSchema>;
235
+
236
+ export { AccountStatus, type CreateHostProfileRequest, CreateHostProfileRequestSchema, type CreateProducerProfileRequest, CreateProducerProfileRequestSchema, type HostProfileResponse, HostProfileResponseSchema, KycStatus, type ProducerProfileResponse, ProducerProfileResponseSchema, ProducerVerificationStatus, type UpdateUserRequest, UpdateUserRequestSchema, type UserResponse, UserResponseSchema, UserRole };