@plyaz/types 1.12.3 → 1.13.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.
@@ -0,0 +1,2 @@
1
+ export type * from './types';
2
+ export type * from './endpoints';
@@ -0,0 +1,265 @@
1
+ /**
2
+ * Infobip Email API Type Definitions
3
+ *
4
+ * Focused on essential email operations:
5
+ * - Send single email (with attachment support)
6
+ * - Email validation
7
+ * - Email bulk operations
8
+ *
9
+ * All types are generated from official Infobip OpenAPI specifications.
10
+ */
11
+ import type { HTTP_STATUS } from '@plyaz/config';
12
+ import type { operations as EmailOperations, components as EmailComponents } from './generated/email.generated';
13
+ /**
14
+ * Standard Infobip API error response structure
15
+ */
16
+ export type InfobipErrorResponse = EmailComponents['schemas']['ApiError'];
17
+ /**
18
+ * Error resource reference in error response
19
+ */
20
+ export type InfobipErrorResource = EmailComponents['schemas']['ApiErrorResource'];
21
+ /**
22
+ * Validation violation details in error response
23
+ */
24
+ export type InfobipViolation = EmailComponents['schemas']['ApiErrorViolation'];
25
+ /**
26
+ * Send email request - supports both simple text and HTML emails with attachments
27
+ * POST /email/3/send
28
+ */
29
+ export type InfobipSendEmailRequest = NonNullable<EmailOperations['send-fully-featured-email']['requestBody']>['content']['multipart/form-data'];
30
+ /**
31
+ * Send email response with message IDs and status
32
+ */
33
+ export type InfobipSendEmailResponse = EmailOperations['send-fully-featured-email']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
34
+ /**
35
+ * Send email error responses
36
+ */
37
+ export type InfobipSendEmailError400 = EmailOperations['send-fully-featured-email']['responses'][typeof HTTP_STATUS.BAD_REQUEST]['content']['application/json'];
38
+ export type InfobipSendEmailError401 = EmailOperations['send-fully-featured-email']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
39
+ export type InfobipSendEmailError403 = EmailOperations['send-fully-featured-email']['responses'][typeof HTTP_STATUS.FORBIDDEN];
40
+ export type InfobipSendEmailError500 = EmailOperations['send-fully-featured-email']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
41
+ /**
42
+ * Send advanced email request - supports full email customization
43
+ * POST /email/4/send
44
+ */
45
+ export type InfobipSendAdvancedEmailRequest = NonNullable<EmailOperations['send-email-messages-api']['requestBody']>['content']['application/json'];
46
+ /**
47
+ * Send advanced email response
48
+ */
49
+ export type InfobipSendAdvancedEmailResponse = EmailOperations['send-email-messages-api']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
50
+ /**
51
+ * Send advanced email error responses
52
+ */
53
+ export type InfobipSendAdvancedEmailError400 = EmailOperations['send-email-messages-api']['responses'][typeof HTTP_STATUS.BAD_REQUEST]['content']['application/json'];
54
+ export type InfobipSendAdvancedEmailError401 = EmailOperations['send-email-messages-api']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
55
+ export type InfobipSendAdvancedEmailError403 = EmailOperations['send-email-messages-api']['responses'][typeof HTTP_STATUS.FORBIDDEN];
56
+ export type InfobipSendAdvancedEmailError500 = EmailOperations['send-email-messages-api']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
57
+ /**
58
+ * Send email via MIME format
59
+ * POST /email/3/mime
60
+ */
61
+ export type InfobipSendEmailMimeRequest = EmailOperations['send-mime-email']['requestBody'];
62
+ /**
63
+ * Send MIME email response
64
+ */
65
+ export type InfobipSendEmailMimeResponse = EmailOperations['send-mime-email']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
66
+ /**
67
+ * Send MIME email error responses
68
+ */
69
+ export type InfobipSendEmailMimeError400 = EmailOperations['send-mime-email']['responses'][typeof HTTP_STATUS.BAD_REQUEST]['content']['application/json'];
70
+ export type InfobipSendEmailMimeError401 = EmailOperations['send-mime-email']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
71
+ export type InfobipSendEmailMimeError403 = EmailOperations['send-mime-email']['responses'][typeof HTTP_STATUS.FORBIDDEN];
72
+ export type InfobipSendEmailMimeError500 = EmailOperations['send-mime-email']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
73
+ /**
74
+ * Validate single email address
75
+ * POST /email/2/validation
76
+ */
77
+ export type InfobipValidateEmailRequest = NonNullable<EmailOperations['validate-email-addresses']['requestBody']>['content']['application/json'];
78
+ /**
79
+ * Email validation response with validity status
80
+ */
81
+ export type InfobipValidateEmailResponse = EmailOperations['validate-email-addresses']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
82
+ /**
83
+ * Validate email error responses
84
+ */
85
+ export type InfobipValidateEmailError400 = EmailOperations['validate-email-addresses']['responses'][typeof HTTP_STATUS.BAD_REQUEST]['content']['application/json'];
86
+ export type InfobipValidateEmailError401 = EmailOperations['validate-email-addresses']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
87
+ export type InfobipValidateEmailError403 = EmailOperations['validate-email-addresses']['responses'][typeof HTTP_STATUS.FORBIDDEN];
88
+ export type InfobipValidateEmailError500 = EmailOperations['validate-email-addresses']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
89
+ /**
90
+ * Request bulk email validation
91
+ * POST /email/2/validations
92
+ *
93
+ * Submit multiple email addresses for validation
94
+ */
95
+ export type InfobipBulkValidateEmailsRequest = NonNullable<EmailOperations['request-validations']['requestBody']>['content']['application/json'];
96
+ /**
97
+ * Bulk validation request accepted response
98
+ * Returns 202 with validation request ID
99
+ */
100
+ export type InfobipBulkValidateEmailsResponse = EmailOperations['request-validations']['responses'][typeof HTTP_STATUS.ACCEPTED]['content']['application/json'];
101
+ /**
102
+ * Bulk validate emails error responses
103
+ */
104
+ export type InfobipBulkValidateEmailsError400 = EmailOperations['request-validations']['responses'][typeof HTTP_STATUS.BAD_REQUEST]['content']['application/json'];
105
+ export type InfobipBulkValidateEmailsError401 = EmailOperations['request-validations']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
106
+ export type InfobipBulkValidateEmailsError403 = EmailOperations['request-validations']['responses'][typeof HTTP_STATUS.FORBIDDEN];
107
+ export type InfobipBulkValidateEmailsError429 = EmailOperations['request-validations']['responses'][typeof HTTP_STATUS.TOO_MANY_REQUESTS];
108
+ export type InfobipBulkValidateEmailsError500 = EmailOperations['request-validations']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
109
+ /**
110
+ * Query parameters for fetching validation results
111
+ */
112
+ export type InfobipGetValidationsParams = EmailOperations['get-validations']['parameters']['query'];
113
+ /**
114
+ * Get bulk validation results
115
+ * Retrieve results of bulk email validation requests
116
+ */
117
+ export type InfobipGetValidationsResponse = EmailOperations['get-validations']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
118
+ /**
119
+ * Get validations error responses
120
+ */
121
+ export type InfobipGetValidationsError401 = EmailOperations['get-validations']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
122
+ export type InfobipGetValidationsError403 = EmailOperations['get-validations']['responses'][typeof HTTP_STATUS.FORBIDDEN];
123
+ export type InfobipGetValidationsError429 = EmailOperations['get-validations']['responses'][typeof HTTP_STATUS.TOO_MANY_REQUESTS];
124
+ export type InfobipGetValidationsError500 = EmailOperations['get-validations']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
125
+ /**
126
+ * Query parameters for fetching email delivery reports
127
+ */
128
+ export type InfobipGetEmailReportsParams = EmailOperations['get-email-delivery-reports']['parameters']['query'];
129
+ /**
130
+ * Email delivery reports response
131
+ */
132
+ export type InfobipGetEmailReportsResponse = EmailOperations['get-email-delivery-reports']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
133
+ /**
134
+ * Get email reports error responses
135
+ */
136
+ export type InfobipGetEmailReportsError400 = EmailOperations['get-email-delivery-reports']['responses'][typeof HTTP_STATUS.BAD_REQUEST]['content']['application/json'];
137
+ export type InfobipGetEmailReportsError401 = EmailOperations['get-email-delivery-reports']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
138
+ export type InfobipGetEmailReportsError403 = EmailOperations['get-email-delivery-reports']['responses'][typeof HTTP_STATUS.FORBIDDEN];
139
+ export type InfobipGetEmailReportsError500 = EmailOperations['get-email-delivery-reports']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
140
+ /**
141
+ * Query parameters for fetching email logs
142
+ */
143
+ export type InfobipGetEmailLogsParams = EmailOperations['get-email-logs']['parameters']['query'];
144
+ /**
145
+ * Email logs response
146
+ */
147
+ export type InfobipGetEmailLogsResponse = EmailOperations['get-email-logs']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
148
+ /**
149
+ * Get email logs error responses
150
+ */
151
+ export type InfobipGetEmailLogsError401 = EmailOperations['get-email-logs']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
152
+ export type InfobipGetEmailLogsError403 = EmailOperations['get-email-logs']['responses'][typeof HTTP_STATUS.FORBIDDEN];
153
+ export type InfobipGetEmailLogsError429 = EmailOperations['get-email-logs']['responses'][typeof HTTP_STATUS.TOO_MANY_REQUESTS];
154
+ export type InfobipGetEmailLogsError500 = EmailOperations['get-email-logs']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
155
+ /**
156
+ * Query parameters for fetching scheduled email bulks
157
+ */
158
+ export type InfobipGetScheduledEmailsParams = EmailOperations['get-scheduled-emails']['parameters']['query'];
159
+ /**
160
+ * Scheduled emails response
161
+ */
162
+ export type InfobipGetScheduledEmailsResponse = EmailOperations['get-scheduled-emails']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
163
+ /**
164
+ * Get scheduled emails error responses
165
+ */
166
+ export type InfobipGetScheduledEmailsError401 = EmailOperations['get-scheduled-emails']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
167
+ export type InfobipGetScheduledEmailsError403 = EmailOperations['get-scheduled-emails']['responses'][typeof HTTP_STATUS.FORBIDDEN];
168
+ export type InfobipGetScheduledEmailsError500 = EmailOperations['get-scheduled-emails']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
169
+ /**
170
+ * Query parameters for fetching scheduled email status
171
+ */
172
+ export type InfobipGetScheduledEmailStatusesParams = EmailOperations['get-scheduled-email-statuses']['parameters']['query'];
173
+ /**
174
+ * Scheduled email status response
175
+ */
176
+ export type InfobipGetScheduledEmailStatusesResponse = EmailOperations['get-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
177
+ /**
178
+ * Get scheduled email status error responses
179
+ */
180
+ export type InfobipGetScheduledEmailStatusesError401 = EmailOperations['get-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
181
+ export type InfobipGetScheduledEmailStatusesError403 = EmailOperations['get-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.FORBIDDEN];
182
+ export type InfobipGetScheduledEmailStatusesError500 = EmailOperations['get-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
183
+ /**
184
+ * Path and query parameters for rescheduling emails
185
+ */
186
+ export type InfobipRescheduleEmailsParams = EmailOperations['reschedule-emails']['parameters']['query'];
187
+ /**
188
+ * Reschedule emails request body
189
+ */
190
+ export type InfobipRescheduleEmailsRequest = NonNullable<EmailOperations['reschedule-emails']['requestBody']>['content']['application/json'];
191
+ /**
192
+ * Reschedule emails response
193
+ */
194
+ export type InfobipRescheduleEmailsResponse = EmailOperations['reschedule-emails']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
195
+ /**
196
+ * Reschedule emails error responses
197
+ */
198
+ export type InfobipRescheduleEmailsError400 = EmailOperations['reschedule-emails']['responses'][typeof HTTP_STATUS.BAD_REQUEST]['content']['application/json'];
199
+ export type InfobipRescheduleEmailsError401 = EmailOperations['reschedule-emails']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
200
+ export type InfobipRescheduleEmailsError403 = EmailOperations['reschedule-emails']['responses'][typeof HTTP_STATUS.FORBIDDEN];
201
+ export type InfobipRescheduleEmailsError500 = EmailOperations['reschedule-emails']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
202
+ /**
203
+ * Query parameters for updating scheduled email status
204
+ */
205
+ export type InfobipUpdateScheduledEmailStatusesParams = EmailOperations['update-scheduled-email-statuses']['parameters']['query'];
206
+ /**
207
+ * Update scheduled email status request
208
+ */
209
+ export type InfobipUpdateScheduledEmailStatusesRequest = NonNullable<EmailOperations['update-scheduled-email-statuses']['requestBody']>['content']['application/json'];
210
+ /**
211
+ * Update scheduled email status response
212
+ */
213
+ export type InfobipUpdateScheduledEmailStatusesResponse = EmailOperations['update-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.OK]['content']['application/json'];
214
+ /**
215
+ * Update scheduled email status error responses
216
+ */
217
+ export type InfobipUpdateScheduledEmailStatusesError400 = EmailOperations['update-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.BAD_REQUEST]['content']['application/json'];
218
+ export type InfobipUpdateScheduledEmailStatusesError401 = EmailOperations['update-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.UNAUTHORIZED];
219
+ export type InfobipUpdateScheduledEmailStatusesError403 = EmailOperations['update-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.FORBIDDEN];
220
+ export type InfobipUpdateScheduledEmailStatusesError500 = EmailOperations['update-scheduled-email-statuses']['responses'][typeof HTTP_STATUS.INTERNAL_SERVER_ERROR];
221
+ /**
222
+ * Email message status
223
+ */
224
+ export type InfobipEmailStatus = EmailComponents['schemas']['34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1.MessageStatus'];
225
+ /**
226
+ * Email attachment
227
+ */
228
+ export type InfobipEmailAttachment = EmailComponents['schemas']['39bb6975d36d214ea076d974c69ec0b82edda805f4c6bf36a3f6f7d154c98fa0.Attachment'];
229
+ /**
230
+ * Email delivery report
231
+ */
232
+ export type InfobipEmailDeliveryReport = EmailComponents['schemas']['34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1.EmailDeliveryReport'];
233
+ /**
234
+ * Email price information
235
+ */
236
+ export type InfobipEmailPrice = EmailComponents['schemas']['34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1.MessagePrice'];
237
+ /**
238
+ * Bulk information for scheduled emails
239
+ */
240
+ export type InfobipEmailBulkInfo = EmailComponents['schemas']['34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1.BulkInfo'];
241
+ /**
242
+ * Bulk status for scheduled emails
243
+ */
244
+ export type InfobipEmailBulkStatus = EmailComponents['schemas']['34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1.BulkStatus'];
245
+ /**
246
+ * Email delivery report webhook payload
247
+ * Webhook: POST receive-email-delivery-reports
248
+ *
249
+ * Infobip sends this payload to your configured notifyUrl when an email delivery status changes.
250
+ */
251
+ export type InfobipEmailDeliveryReportWebhook = NonNullable<EmailOperations['receive-email-delivery-reports']['requestBody']>['content']['application/json'];
252
+ /**
253
+ * Email tracking events webhook payload
254
+ * Webhook: POST receive-email-tracking-reports
255
+ *
256
+ * Infobip sends tracking events (opened, clicked, complained, bounced, unsubscribed) to your configured endpoint.
257
+ */
258
+ export type InfobipEmailTrackingReportWebhook = NonNullable<EmailOperations['receive-email-tracking-reports']['requestBody']>['content']['application/json'];
259
+ /**
260
+ * Inbound email webhook payload
261
+ * Webhook: POST receive-inbound-email
262
+ *
263
+ * Infobip sends parsed inbound emails to your configured endpoint when emails are received on your domain.
264
+ */
265
+ export type InfobipInboundEmailWebhook = NonNullable<EmailOperations['receive-inbound-email']['requestBody']>['content']['multipart/form-data'];
@@ -1,5 +1,6 @@
1
1
  import type { CampaignEndpointTypes } from './campaigns';
2
2
  import type { PollingEndpointTypes } from './health';
3
+ import type { InfobipEndpointTypes } from './infobip';
3
4
  /**
4
5
  * Query parameters type - matches fetchff's flexible param handling
5
6
  * Supports objects, URLSearchParams, and arrays of name-value pairs
@@ -8,5 +9,5 @@ export type QueryParams = Record<string, string | number | boolean | string[] |
8
9
  /**
9
10
  * All endpoint types combined
10
11
  */
11
- export interface EndpointTypes extends CampaignEndpointTypes, PollingEndpointTypes {
12
+ export interface EndpointTypes extends CampaignEndpointTypes, PollingEndpointTypes, InfobipEndpointTypes {
12
13
  }
@@ -3,7 +3,8 @@
3
3
  * Following the Confluence architecture specifications
4
4
  */
5
5
  /**
6
- * Import ResponseError and RequestConfig types from fetchff
6
+ * Import and re-export ResponseError and RequestConfig types from fetchff
7
+ * These are 3rd party types that @plyaz/api wraps
7
8
  */
8
9
  import type { ResponseError, RequestConfig } from 'fetchff';
9
10
  import type { ERROR_CATEGORY, ErrorDetail, ErrorResponse } from '../../errors';
@@ -1,5 +1,85 @@
1
- import type { NETWORK_QUALITY, NetworkInfo } from '..';
1
+ /**
2
+ * Hook Types and Options
3
+ * TypeScript types for React Query hooks with API configuration support
4
+ */
5
+ import type { UseQueryOptions, UseMutationOptions, QueryKey, UseQueryResult, UseMutationResult } from '@tanstack/react-query';
6
+ import type { ApiConfig } from '../config';
7
+ import type { ApiClientWithEvents } from '../client';
8
+ import type { NETWORK_QUALITY, NetworkInfo } from '../network';
2
9
  import type { ConfigConflict, DebugInfo, MonitoringAlert } from '../debugger';
10
+ /**
11
+ * Options for query hooks (GET requests)
12
+ * Extends React Query's UseQueryOptions with API-specific options
13
+ *
14
+ * @template TData - The type of data returned by the query
15
+ * @template TError - The type of error that can be thrown (defaults to Error)
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const queryOptions: ApiQueryOptions<Campaign> = {
20
+ * staleTime: 5 * 60 * 1000,
21
+ * apiConfig: { timeout: 10000 },
22
+ * enabled: !!campaignId,
23
+ * };
24
+ * ```
25
+ */
26
+ export interface ApiQueryOptions<TData, TError = Error, ClientEventManager = unknown, OverrideEndpointsList = unknown> extends Omit<UseQueryOptions<TData, TError>, 'queryKey' | 'queryFn'> {
27
+ /**
28
+ * Optional API client instance to use for this query
29
+ * Overrides the default client instance
30
+ */
31
+ apiClient?: ApiClientWithEvents<ClientEventManager, OverrideEndpointsList>;
32
+ /**
33
+ * Optional API configuration for this specific query
34
+ * Applied temporarily using updateConfig({ strategy: 'temporary' })
35
+ */
36
+ apiConfig?: Partial<ApiConfig>;
37
+ }
38
+ /**
39
+ * Options for mutation hooks (POST, PUT, PATCH, DELETE)
40
+ * Extends React Query's UseMutationOptions with API-specific options
41
+ *
42
+ * @template TData - The type of data returned by the mutation
43
+ * @template TVariables - The type of variables passed to the mutation
44
+ * @template TError - The type of error that can be thrown (defaults to Error)
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ * const mutationOptions: ApiMutationOptions<Campaign, CreateCampaignDto> = {
49
+ * apiConfig: { timeout: 30000 },
50
+ * onSuccess: (data) => {
51
+ * console.log('Campaign created:', data.id);
52
+ * },
53
+ * };
54
+ * ```
55
+ */
56
+ export interface ApiMutationOptions<TData, TVariables, TError = Error, ClientEventManager = unknown, OverrideEndpointsList = unknown> extends Omit<UseMutationOptions<TData, TError, TVariables>, 'mutationFn'> {
57
+ /**
58
+ * Optional API client instance to use for this mutation
59
+ * Overrides the default client instance
60
+ */
61
+ apiClient?: ApiClientWithEvents<ClientEventManager, OverrideEndpointsList>;
62
+ /**
63
+ * Optional API configuration for this specific mutation
64
+ * Applied temporarily using updateConfig({ strategy: 'temporary' })
65
+ */
66
+ apiConfig?: Partial<ApiConfig>;
67
+ }
68
+ /**
69
+ * Return type for query hooks
70
+ * Re-export from React Query for convenience
71
+ */
72
+ export type { UseQueryResult };
73
+ /**
74
+ * Return type for mutation hooks
75
+ * Re-export from React Query for convenience
76
+ */
77
+ export type { UseMutationResult };
78
+ /**
79
+ * Query key type
80
+ * Re-export from React Query for convenience
81
+ */
82
+ export type { QueryKey };
3
83
  /**
4
84
  * Hook options for conflict monitoring
5
85
  */
@@ -12,7 +92,7 @@ export interface UseApiConfigConflictsOptions {
12
92
  onConflict?: (conflict: ConfigConflict) => void;
13
93
  }
14
94
  /**
15
- * Hook return value
95
+ * Hook return value for conflict monitoring
16
96
  */
17
97
  export interface UseApiConfigConflictsReturn {
18
98
  /** Current conflicts */
@@ -42,7 +122,7 @@ export interface UseApiDebugInfoOptions {
42
122
  onUpdate?: (debugInfo: DebugInfo) => void;
43
123
  }
44
124
  /**
45
- * Hook return value
125
+ * Hook return value for debug info monitoring
46
126
  */
47
127
  export interface UseApiDebugInfoReturn {
48
128
  /** Current debug information */
@@ -76,7 +156,7 @@ export interface UseApiMonitorOptions {
76
156
  onAlert?: (alert: MonitoringAlert) => void;
77
157
  }
78
158
  /**
79
- * Hook return value
159
+ * Hook return value for complete monitoring
80
160
  */
81
161
  export interface UseApiMonitorReturn {
82
162
  /** Current conflicts */
@@ -109,7 +189,7 @@ export interface UseApiMonitorReturn {
109
189
  lastDebugUpdate: Date | null;
110
190
  }
111
191
  /**
112
- * Hook return value
192
+ * Hook return value for network quality monitoring
113
193
  */
114
194
  export interface UseApiNetworkQualityReturn {
115
195
  /** Current network quality */
@@ -158,7 +158,7 @@ var ALL_EVENTS = {
158
158
  ...CACHE_EVENTS
159
159
  };
160
160
 
161
- // node_modules/.pnpm/@plyaz+config@1.6.4_next@15.4.7_react-dom@19.2.0_react@19.2.0_typescript@5.9.3_zod@3.25.76/node_modules/@plyaz/config/dist/index.mjs
161
+ // node_modules/.pnpm/@plyaz+config@1.6.5_@darraghor+eslint-plugin-nestjs-typed@6.9.3_@types+react@19.2.2_@typescri_x2zut4rwivkuvldn552zktqyt4/node_modules/@plyaz/config/dist/index.mjs
162
162
  globalThis.process.env.NODE_ENV === "development";
163
163
  globalThis.process.env.NODE_ENV === "production";
164
164
  globalThis.process.env.NODE_ENV === "test";
@@ -170,6 +170,8 @@ globalThis.process.env.NODE_ENV === "test";
170
170
  var Ue = { BAD_REQUEST: 400, UNAUTHORIZED: 401, FORBIDDEN: 403, NOT_FOUND: 404, REQUEST_TIMEOUT: 408, CONFLICT: 409, UNPROCESSABLE_ENTITY: 422, TOO_MANY_REQUESTS: 429, INTERNAL_SERVER_ERROR: 500, BAD_GATEWAY: 502, SERVICE_UNAVAILABLE: 503, GATEWAY_TIMEOUT: 504};
171
171
  var a = { unauthorized: { status: 401}, internal_server_error: { status: 500}};
172
172
  ({ InvalidInput: { timestamp: (/* @__PURE__ */ new Date()).toISOString() }, [a.internal_server_error.status]: { timestamp: (/* @__PURE__ */ new Date()).toISOString() }, [a.unauthorized.status]: { timestamp: (/* @__PURE__ */ new Date()).toISOString() } });
173
+ ({ SUPABASE_URL: globalThis.process.env.NEXT_PUBLIC_SUPABASE_URL ?? "", SUPABASE_ANON_KEY: globalThis.process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? "" });
174
+ globalThis.process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY ?? "";
173
175
 
174
176
  // src/errors/enums.ts
175
177
  var ERROR_CATEGORY = {