@stacksjs/types 0.70.88 → 0.70.91

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 (77) hide show
  1. package/dist/ai.d.ts +37 -0
  2. package/dist/analytics.d.ts +36 -0
  3. package/dist/api.d.ts +26 -0
  4. package/dist/app.d.ts +28 -0
  5. package/dist/attributes.d.ts +1 -0
  6. package/dist/auth.d.ts +62 -0
  7. package/dist/auto-imports.d.ts +8 -0
  8. package/dist/binary.d.ts +11 -0
  9. package/dist/cache.d.ts +88 -0
  10. package/dist/cdn.d.ts +4 -0
  11. package/dist/chat.d.ts +69 -0
  12. package/dist/cli.d.ts +316 -0
  13. package/dist/cloud.d.ts +366 -0
  14. package/dist/cms.d.ts +12 -0
  15. package/dist/commerce.d.ts +14 -0
  16. package/dist/components.d.ts +9 -0
  17. package/dist/configure.d.ts +12 -0
  18. package/dist/cors.d.ts +47 -0
  19. package/dist/cron-jobs.d.ts +61 -0
  20. package/dist/dashboard.d.ts +108 -0
  21. package/dist/database.d.ts +76 -0
  22. package/dist/dependencies.d.ts +17 -0
  23. package/dist/deploy.d.ts +16 -0
  24. package/dist/dns.d.ts +362 -0
  25. package/dist/docs.d.ts +23 -0
  26. package/dist/email.d.ts +207 -0
  27. package/dist/env.d.ts +1 -0
  28. package/dist/errors.d.ts +84 -0
  29. package/dist/events.d.ts +31 -0
  30. package/dist/exit-code.d.ts +10 -0
  31. package/dist/feature-flags.d.ts +17 -0
  32. package/dist/file-systems.d.ts +60 -0
  33. package/dist/git.d.ts +60 -0
  34. package/dist/hashing.d.ts +57 -0
  35. package/dist/helpers.d.ts +1 -0
  36. package/dist/i18n.d.ts +65 -0
  37. package/dist/index.d.ts +80 -0
  38. package/dist/index.js +2 -0
  39. package/dist/library.d.ts +799 -0
  40. package/dist/logging.d.ts +15 -0
  41. package/dist/manifest.d.ts +9 -0
  42. package/dist/marketing.d.ts +12 -0
  43. package/dist/model-dashboard-augmentation.d.ts +8 -0
  44. package/dist/model-names.d.ts +1 -0
  45. package/dist/model.d.ts +256 -0
  46. package/dist/monitoring.d.ts +12 -0
  47. package/dist/notifications.d.ts +126 -0
  48. package/dist/oauth.d.ts +290 -0
  49. package/dist/pages.d.ts +10 -0
  50. package/dist/payments.d.ts +322 -0
  51. package/dist/phone.d.ts +65 -0
  52. package/dist/ports.d.ts +20 -0
  53. package/dist/promise.d.ts +1 -0
  54. package/dist/push.d.ts +108 -0
  55. package/dist/queue.d.ts +312 -0
  56. package/dist/reactivity.d.ts +1 -0
  57. package/dist/realtime.d.ts +443 -0
  58. package/dist/request.d.ts +265 -0
  59. package/dist/response.d.ts +15 -0
  60. package/dist/router.d.ts +105 -0
  61. package/dist/saas.d.ts +32 -0
  62. package/dist/scheduler.d.ts +1 -0
  63. package/dist/search-engine.d.ts +129 -0
  64. package/dist/security.d.ts +18 -0
  65. package/dist/server.d.ts +16 -0
  66. package/dist/services.d.ts +149 -0
  67. package/dist/settings-config.d.ts +9 -0
  68. package/dist/sms.d.ts +144 -0
  69. package/dist/stack-extensions.d.ts +137 -0
  70. package/dist/stacks.d.ts +46 -0
  71. package/dist/storage.d.ts +104 -0
  72. package/dist/table-names.d.ts +1 -0
  73. package/dist/tables.d.ts +34 -0
  74. package/dist/team.d.ts +7 -0
  75. package/dist/ui.d.ts +55 -0
  76. package/dist/utils.d.ts +39 -0
  77. package/package.json +3 -3
@@ -0,0 +1,17 @@
1
+ /**
2
+ * **Dependencies Manager**
3
+ *
4
+ * This configuration defines all of your dependencies options. Because Stacks is fully-typed,
5
+ * you may hover any of the options below and the definitions will be provided. In case
6
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
7
+ */
8
+ export declare interface DependenciesOptions {
9
+ 'bun.sh': string | '0.7.1'
10
+ 'sqlite.org'?: string | '^3.42.0'
11
+ 'mysql.com'?: string | '^8.0.33'
12
+ 'mariadb.org'?: string | '^10.6.5'
13
+ 'postgresql.org'?: string | '^14.1'
14
+ 'redis.io'?: string | '^7.0.11'
15
+ 'aws.amazon.com/cli'?: string | '^2.12.7'
16
+ }
17
+ export type DependenciesConfig = DependenciesOptions;
@@ -0,0 +1,16 @@
1
+ import type { CliOptions } from './cli';
2
+ /**
3
+ * **Deploy Options**
4
+ *
5
+ * This configuration defines all of your deployment options. Because Stacks is fully-typed,
6
+ * you may hover any of the options below and the definitions will be provided. In case
7
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
8
+ */
9
+ export declare interface DeployOptions extends CliOptions {
10
+ domain?: string
11
+ deploy?: boolean
12
+ prod?: boolean
13
+ dev?: boolean
14
+ staging?: boolean
15
+ yes?: boolean
16
+ }
package/dist/dns.d.ts ADDED
@@ -0,0 +1,362 @@
1
+ export declare interface ARecord {
2
+ name: string | '@' | '*'
3
+ address: string
4
+ ttl?: number | 'auto'
5
+ }
6
+ export declare interface CNameRecord {
7
+ name: string
8
+ target: string
9
+ ttl: number | 'auto'
10
+ }
11
+ export declare interface MXRecord {
12
+ name: string | '@'
13
+ mailServer: string
14
+ ttl: number | 'auto'
15
+ priority: number
16
+ }
17
+ export declare interface TxtRecord {
18
+ name: string | '@'
19
+ ttl: number | 'auto'
20
+ content: string
21
+ }
22
+ export declare interface AAAARecord {
23
+ name: string | '@' | '*'
24
+ address: string
25
+ ttl: number | 'auto'
26
+ }
27
+ export declare interface ExtraParam {
28
+ Name: ExtraParamName
29
+ Value: ExtraParamValue
30
+ }
31
+ export declare interface ContactInfo extends ContactDetail {
32
+ admin?: ContactDetail
33
+ tech?: ContactDetail
34
+ }
35
+ /**
36
+ * **DNS Options**
37
+ *
38
+ * This configuration defines all of your DNS options. Because Stacks is fully-typed,
39
+ * you may hover any of the options below and the definitions will be provided. In case
40
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
41
+ *
42
+ * @see https://stacksjs.com/docs/dns
43
+ */
44
+ export declare interface DnsOptions {
45
+ driver: 'aws'
46
+ a: ARecord[]
47
+ aaaa: AAAARecord[]
48
+ cname: CNameRecord[]
49
+ mx: MXRecord[]
50
+ txt: TxtRecord[]
51
+ nameservers: string[]
52
+ contactInfo: Partial<ContactInfo>
53
+ redirects: string[]
54
+ }
55
+ export declare interface ContactDetail {
56
+ firstName: string
57
+ lastName: string
58
+ contactType: 'PERSON' | 'COMPANY' | 'ASSOCIATION' | 'PUBLIC_BODY' | 'RESELLER' | string
59
+ organizationName: string
60
+ addressLine1: string
61
+ addressLine2: string
62
+ city: string
63
+ state: string
64
+ countryCode: CountryCode
65
+ zip: string
66
+ phoneNumber: string
67
+ email: string
68
+ fax: string
69
+ extraParams: string
70
+ privacy: boolean
71
+ privacyAdmin: boolean
72
+ privacyTech: boolean
73
+ privacyRegistrant: boolean
74
+ }
75
+ export type DnsRecord = ARecord | CNameRecord | MXRecord | TxtRecord | AAAARecord;
76
+ declare type CountryCode = | 'AC'
77
+ | 'AD'
78
+ | 'AE'
79
+ | 'AF'
80
+ | 'AG'
81
+ | 'AI'
82
+ | 'AL'
83
+ | 'AM'
84
+ | 'AN'
85
+ | 'AO'
86
+ | 'AQ'
87
+ | 'AR'
88
+ | 'AS'
89
+ | 'AT'
90
+ | 'AU'
91
+ | 'AW'
92
+ | 'AX'
93
+ | 'AZ'
94
+ | 'BA'
95
+ | 'BB'
96
+ | 'BD'
97
+ | 'BE'
98
+ | 'BF'
99
+ | 'BG'
100
+ | 'BH'
101
+ | 'BI'
102
+ | 'BJ'
103
+ | 'BL'
104
+ | 'BM'
105
+ | 'BN'
106
+ | 'BO'
107
+ | 'BQ'
108
+ | 'BR'
109
+ | 'BS'
110
+ | 'BT'
111
+ | 'BV'
112
+ | 'BW'
113
+ | 'BY'
114
+ | 'BZ'
115
+ | 'CA'
116
+ | 'CC'
117
+ | 'CD'
118
+ | 'CF'
119
+ | 'CG'
120
+ | 'CH'
121
+ | 'CI'
122
+ | 'CK'
123
+ | 'CL'
124
+ | 'CM'
125
+ | 'CN'
126
+ | 'CO'
127
+ | 'CR'
128
+ | 'CU'
129
+ | 'CV'
130
+ | 'CW'
131
+ | 'CX'
132
+ | 'CY'
133
+ | 'CZ'
134
+ | 'DE'
135
+ | 'DJ'
136
+ | 'DK'
137
+ | 'DM'
138
+ | 'DO'
139
+ | 'DZ'
140
+ | 'EC'
141
+ | 'EE'
142
+ | 'EG'
143
+ | 'EH'
144
+ | 'ER'
145
+ | 'ES'
146
+ | 'ET'
147
+ | 'FI'
148
+ | 'FJ'
149
+ | 'FK'
150
+ | 'FM'
151
+ | 'FO'
152
+ | 'FR'
153
+ | 'GA'
154
+ | 'GB'
155
+ | 'GD'
156
+ | 'GE'
157
+ | 'GF'
158
+ | 'GG'
159
+ | 'GH'
160
+ | 'GI'
161
+ | 'GL'
162
+ | 'GM'
163
+ | 'GN'
164
+ | 'GP'
165
+ | 'GQ'
166
+ | 'GR'
167
+ | 'GS'
168
+ | 'GT'
169
+ | 'GU'
170
+ | 'GW'
171
+ | 'GY'
172
+ | 'HK'
173
+ | 'HM'
174
+ | 'HN'
175
+ | 'HR'
176
+ | 'HT'
177
+ | 'HU'
178
+ | 'ID'
179
+ | 'IE'
180
+ | 'IL'
181
+ | 'IM'
182
+ | 'IN'
183
+ | 'IO'
184
+ | 'IQ'
185
+ | 'IR'
186
+ | 'IS'
187
+ | 'IT'
188
+ | 'JE'
189
+ | 'JM'
190
+ | 'JO'
191
+ | 'JP'
192
+ | 'KE'
193
+ | 'KG'
194
+ | 'KH'
195
+ | 'KI'
196
+ | 'KM'
197
+ | 'KN'
198
+ | 'KP'
199
+ | 'KR'
200
+ | 'KW'
201
+ | 'KY'
202
+ | 'KZ'
203
+ | 'LA'
204
+ | 'LB'
205
+ | 'LC'
206
+ | 'LI'
207
+ | 'LK'
208
+ | 'LR'
209
+ | 'LS'
210
+ | 'LT'
211
+ | 'LU'
212
+ | 'LV'
213
+ | 'LY'
214
+ | 'MA'
215
+ | 'MC'
216
+ | 'MD'
217
+ | 'ME'
218
+ | 'MF'
219
+ | 'MG'
220
+ | 'MH'
221
+ | 'MK'
222
+ | 'ML'
223
+ | 'MM'
224
+ | 'MN'
225
+ | 'MO'
226
+ | 'MP'
227
+ | 'MQ'
228
+ | 'MR'
229
+ | 'MS'
230
+ | 'MT'
231
+ | 'MU'
232
+ | 'MV'
233
+ | 'MW'
234
+ | 'MX'
235
+ | 'MY'
236
+ | 'MZ'
237
+ | 'NA'
238
+ | 'NC'
239
+ | 'NE'
240
+ | 'NF'
241
+ | 'NG'
242
+ | 'NI'
243
+ | 'NL'
244
+ | 'NO'
245
+ | 'NP'
246
+ | 'NR'
247
+ | 'NU'
248
+ | 'NZ'
249
+ | 'OM'
250
+ | 'PA'
251
+ | 'PE'
252
+ | 'PF'
253
+ | 'PG'
254
+ | 'PH'
255
+ | 'PK'
256
+ | 'PL'
257
+ | 'PM'
258
+ | 'PN'
259
+ | 'PR'
260
+ | 'PS'
261
+ | 'PT'
262
+ | 'PW'
263
+ | 'PY'
264
+ | 'QA'
265
+ | 'RE'
266
+ | 'RO'
267
+ | 'RS'
268
+ | 'RU'
269
+ | 'RW'
270
+ | 'SA'
271
+ | 'SB'
272
+ | 'SC'
273
+ | 'SD'
274
+ | 'SE'
275
+ | 'SG'
276
+ | 'SH'
277
+ | 'SI'
278
+ | 'SJ'
279
+ | 'SK'
280
+ | 'SL'
281
+ | 'SM'
282
+ | 'SN'
283
+ | 'SO'
284
+ | 'SR'
285
+ | 'SS'
286
+ | 'ST'
287
+ | 'SV'
288
+ | 'SX'
289
+ | 'SY'
290
+ | 'SZ'
291
+ | 'TC'
292
+ | 'TD'
293
+ | 'TF'
294
+ | 'TG'
295
+ | 'TH'
296
+ | 'TJ'
297
+ | 'TK'
298
+ | 'TL'
299
+ | 'TM'
300
+ | 'TN'
301
+ | 'TO'
302
+ | 'TP'
303
+ | 'TR'
304
+ | 'TT'
305
+ | 'TV'
306
+ | 'TW'
307
+ | 'TZ'
308
+ | 'UA'
309
+ | 'UG'
310
+ | 'US'
311
+ | 'UY'
312
+ | 'UZ'
313
+ | 'VA'
314
+ | 'VC'
315
+ | 'VE'
316
+ | 'VG'
317
+ | 'VI'
318
+ | 'VN'
319
+ | 'VU'
320
+ | 'WF'
321
+ | 'WS'
322
+ | 'YE'
323
+ | 'YT'
324
+ | 'ZA'
325
+ | 'ZM'
326
+ | 'ZW'
327
+ | string;
328
+ export type ExtraParamList = ExtraParam[];
329
+ export type ExtraParamName = | 'DUNS_NUMBER'
330
+ | 'BRAND_NUMBER'
331
+ | 'BIRTH_DEPARTMENT'
332
+ | 'BIRTH_DATE_IN_YYYY_MM_DD'
333
+ | 'BIRTH_COUNTRY'
334
+ | 'BIRTH_CITY'
335
+ | 'DOCUMENT_NUMBER'
336
+ | 'AU_ID_NUMBER'
337
+ | 'AU_ID_TYPE'
338
+ | 'CA_LEGAL_TYPE'
339
+ | 'CA_BUSINESS_ENTITY_TYPE'
340
+ | 'CA_LEGAL_REPRESENTATIVE'
341
+ | 'CA_LEGAL_REPRESENTATIVE_CAPACITY'
342
+ | 'ES_IDENTIFICATION'
343
+ | 'ES_IDENTIFICATION_TYPE'
344
+ | 'ES_LEGAL_FORM'
345
+ | 'FI_BUSINESS_NUMBER'
346
+ | 'FI_ID_NUMBER'
347
+ | 'FI_NATIONALITY'
348
+ | 'FI_ORGANIZATION_TYPE'
349
+ | 'IT_NATIONALITY'
350
+ | 'IT_PIN'
351
+ | 'IT_REGISTRANT_ENTITY_TYPE'
352
+ | 'RU_PASSPORT_DATA'
353
+ | 'SE_ID_NUMBER'
354
+ | 'SG_ID_NUMBER'
355
+ | 'VAT_NUMBER'
356
+ | 'UK_CONTACT_TYPE'
357
+ | 'UK_COMPANY_NUMBER'
358
+ | 'EU_COUNTRY_OF_CITIZENSHIP'
359
+ | 'AU_PRIORITY_TOKEN'
360
+ | string;
361
+ export type ExtraParamValue = string;
362
+ export type DnsConfig = Partial<DnsOptions>;
package/dist/docs.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import type { BunPressOptions } from '@stacksjs/bunpress';
2
+ export declare interface DocsUserConfig extends BunPressOptions {
3
+ deploy?: boolean
4
+ }
5
+ export declare interface SocialLink {
6
+ icon: SocialLinkIcon
7
+ link: string
8
+ ariaLabel?: string
9
+ }
10
+ export type DocsConfig = DocsUserConfig;
11
+ export type DocsOptions = Partial<DocsConfig>;
12
+ export declare enum SocialLinkIcon {
13
+ Bluesky = 'bluesky',
14
+ Discord = 'discord',
15
+ Facebook = 'facebook',
16
+ GitHub = 'github',
17
+ Instagram = 'instagram',
18
+ LinkedIn = 'linkedin',
19
+ Mastodon = 'mastodon',
20
+ Slack = 'slack',
21
+ Twitter = 'twitter',
22
+ YouTube = 'youtube',
23
+ }
@@ -0,0 +1,207 @@
1
+ /**
2
+ * i18n bag passed to STX email templates at render time. Stacks emails
3
+ * are STX, not vue-email — keys/values are user-defined per template.
4
+ * The shape is intentionally open: each template declares its own
5
+ * placeholders and the renderer interpolates them as-is.
6
+ */
7
+ export declare interface I18n {
8
+ [key: string]: unknown
9
+ }
10
+ export declare interface AutoResponderConfig {
11
+ enabled: boolean
12
+ subject: string
13
+ body: string
14
+ schedule?: {
15
+ start?: string
16
+ end?: string
17
+ }
18
+ }
19
+ export declare interface EmailFilterRule {
20
+ field: 'from' | 'to' | 'subject' | 'body'
21
+ operator: 'contains' | 'equals' | 'startsWith' | 'endsWith' | 'regex'
22
+ value: string
23
+ action: 'move' | 'delete' | 'forward' | 'label'
24
+ actionValue?: string
25
+ }
26
+ export declare interface MailboxConfig {
27
+ email?: string
28
+ address?: string
29
+ displayName?: string
30
+ password?: string
31
+ forwardTo?: string[]
32
+ autoResponder?: AutoResponderConfig
33
+ filters?: EmailFilterRule[]
34
+ }
35
+ export declare interface MailServerInstanceConfig {
36
+ type?: 't4g.nano' | 't4g.micro' | 't4g.small' | 't4g.medium' | 't3.nano' | 't3.micro' | 't3.small' | 't3.medium' | 't3.large' | 't3.xlarge'
37
+ spot?: boolean
38
+ diskSize?: number
39
+ keyPair?: string
40
+ }
41
+ export declare interface MailServerPortsConfig {
42
+ smtp?: number
43
+ smtps?: number
44
+ submission?: number
45
+ imap?: number
46
+ imaps?: number
47
+ pop3?: number
48
+ pop3s?: number
49
+ smtpStartTls?: number
50
+ }
51
+ export declare interface MailServerFeaturesConfig {
52
+ imap?: boolean
53
+ pop3?: boolean
54
+ webmail?: boolean
55
+ calDAV?: boolean
56
+ cardDAV?: boolean
57
+ activeSync?: boolean
58
+ }
59
+ /**
60
+ * Patterns for matching emails to categories
61
+ */
62
+ export declare interface CategoryPatterns {
63
+ domains?: string[]
64
+ substrings?: string[]
65
+ headers?: Record<string, string[]>
66
+ }
67
+ /**
68
+ * Configuration for automatic email categorization
69
+ */
70
+ export declare interface EmailCategorizationConfig {
71
+ enabled?: boolean
72
+ social?: CategoryPatterns
73
+ forums?: CategoryPatterns
74
+ updates?: CategoryPatterns
75
+ promotions?: CategoryPatterns
76
+ }
77
+ export declare interface EmailServerConfig {
78
+ enabled: boolean
79
+ scan?: boolean
80
+ mode?: 'serverless' | 'server'
81
+ storage?: {
82
+ bucket?: string
83
+ retentionDays?: number
84
+ archiveAfterDays?: number
85
+ }
86
+ forwarding?: Record<string, string[]>
87
+ autoResponders?: AutoResponderConfig[]
88
+ instance?: MailServerInstanceConfig
89
+ ports?: MailServerPortsConfig
90
+ features?: MailServerFeaturesConfig
91
+ subdomain?: string
92
+ categorization?: EmailCategorizationConfig
93
+ }
94
+ export declare interface EmailNotificationsConfig {
95
+ newEmail?: boolean
96
+ bounces?: boolean
97
+ complaints?: boolean
98
+ }
99
+ export declare interface EmailOptions {
100
+ from: {
101
+ name: string
102
+ address: string
103
+ }
104
+ mailboxes: string[] | MailboxConfig[]
105
+ forwards?: Record<string, string[]>
106
+ domain?: string
107
+ url: string
108
+ charset: string
109
+ server: EmailServerConfig
110
+ notifications?: EmailNotificationsConfig
111
+ default: 'log' | 'capture' | 'ses' | 'sendgrid' | 'mailgun' | 'mailtrap' | 'smtp'
112
+ suppressionPolicy?: 'strict' | 'transactional-allowed' | 'off'
113
+ unsubscribeRoute?: string
114
+ }
115
+ export declare interface MailtrapConfig extends EmailDriverConfig {
116
+ token: string
117
+ inboxId?: number
118
+ }
119
+ export declare interface EmailResult {
120
+ message: string
121
+ success: boolean
122
+ provider: string
123
+ messageId?: string
124
+ metadata?: Record<string, unknown>
125
+ }
126
+ // Base configuration interface
127
+ export declare interface EmailDriverConfig {
128
+ maxRetries?: number
129
+ retryTimeout?: number
130
+ }
131
+ /** Options for email template rendering */
132
+ export declare interface EmailTemplateOptions {
133
+ variables?: Record<string, string | number | boolean | undefined | null>
134
+ layout?: string | false
135
+ subject?: string
136
+ }
137
+ // Email driver interface
138
+ export declare interface EmailDriver {
139
+ name: string
140
+ send: (message: EmailMessage, options?: EmailTemplateOptions) => Promise<EmailResult>
141
+ configure: (config: EmailDriverConfig) => void
142
+ }
143
+ export declare interface EmailMessage {
144
+ from?: EmailAddress
145
+ to: string | string[] | EmailAddress[]
146
+ cc?: string | string[] | EmailAddress[]
147
+ bcc?: string | string[] | EmailAddress[]
148
+ replyTo?: EmailAddress | EmailAddress[] | string | string[]
149
+ subject: string
150
+ template?: string
151
+ html?: string
152
+ text?: string
153
+ attachments?: EmailAttachment[]
154
+ headers?: Record<string, string>
155
+ onSuccess?: () => Promise<{ message: string }> | { message: string }
156
+ onError?: (error: Error) => Promise<{ message: string }> | { message: string }
157
+ handle?: () => Promise<{ message: string }> | { message: string }
158
+ idempotencyKey?: string
159
+ tag?: 'transactional' | 'broadcast'
160
+ }
161
+ // Email interfaces
162
+ export declare interface EmailAddress {
163
+ address: string
164
+ name?: string
165
+ }
166
+ export declare interface EmailAttachment {
167
+ filename: string
168
+ content: string | Uint8Array
169
+ contentType?: string
170
+ encoding?: 'base64' | 'binary' | 'hex' | 'utf8'
171
+ }
172
+ // Helper functions for all drivers
173
+ export declare interface SESConfig extends EmailDriverConfig {
174
+ region: string
175
+ credentials?: {
176
+ accessKeyId: string
177
+ secretAccessKey: string
178
+ }
179
+ }
180
+ // SendGrid implementation
181
+ export declare interface SendGridConfig extends EmailDriverConfig {
182
+ apiKey: string
183
+ }
184
+ export declare interface RenderOptions {
185
+ props?: Record<string, unknown>
186
+ i18n?: I18n
187
+ }
188
+ export declare interface MailtrapSuccessResponse {
189
+ success: boolean
190
+ message_ids: string[]
191
+ errors?: never
192
+ }
193
+ export declare interface MailtrapErrorResponse {
194
+ success: false
195
+ errors: {
196
+ email?: string[]
197
+ message?: string[]
198
+ [key: string]: string[] | undefined
199
+ }
200
+ message_ids?: never
201
+ }
202
+ /**
203
+ * Email category types for automatic email categorization (Gmail-style)
204
+ */
205
+ export type EmailCategory = 'social' | 'forums' | 'updates' | 'promotions' | 'primary';
206
+ export type EmailConfig = Partial<EmailOptions>;
207
+ export type MailtrapResponse = MailtrapSuccessResponse | MailtrapErrorResponse;
package/dist/env.d.ts ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,84 @@
1
+ export declare interface ErrorResponse {
2
+ status: number
3
+ errors: string | object
4
+ stack?: string
5
+ name: string
6
+ message: string
7
+ }
8
+ export declare interface ErrorOptions {
9
+ messages: {
10
+ 'string': string
11
+ 'email': string
12
+ 'regex': string
13
+ 'url': string
14
+ 'activeUrl': string
15
+ 'alpha': string
16
+ 'alphaNumeric': string
17
+ 'maxLength': string
18
+ 'fixedLength': string
19
+ 'confirmed': string
20
+ 'endsWith': string
21
+ 'startsWith': string
22
+ 'sameAs': string
23
+ 'notSameAs': string
24
+ 'in': string
25
+ 'notIn': string
26
+ 'ipAddress': string
27
+ 'uuid': string
28
+ 'ascii': string
29
+ 'creditCard': string
30
+ 'hexCode': string
31
+ 'iban': string
32
+ 'jwt': string
33
+ 'coordinates': string
34
+ 'mobile': string
35
+ 'passport': string
36
+ 'postalCode': string
37
+ 'boolean': string
38
+ 'number': string
39
+ 'min': string
40
+ 'max': string
41
+ 'range': string
42
+ 'positive': string
43
+ 'negative': string
44
+ 'decimal': string
45
+ 'withoutDecimals': string
46
+ 'date': string
47
+ 'date.equals': string
48
+ 'date.after': string
49
+ 'date.before': string
50
+ 'date.afterOrEqual': string
51
+ 'date.beforeOrEqual': string
52
+ 'date.sameAs': string
53
+ 'date.notSameAs': string
54
+ 'date.afterField': string
55
+ 'accepted': string
56
+ 'enum': string
57
+ 'literal': string
58
+ 'object': string
59
+ 'record': string
60
+ 'record.min': string
61
+ 'record.maxLength': string
62
+ 'record.fixedLength': string
63
+ 'array': string
64
+ 'array.min': string
65
+ 'array.maxLength': string
66
+ 'array.fixedLength': string
67
+ 'notEmpty': string
68
+ 'distinct': string
69
+ 'tuple': string
70
+ 'union': string
71
+ 'unionGroup': string
72
+ 'unionOfTypes': string
73
+ }
74
+ }
75
+ // export declare class ValidationError extends Error {
76
+ // messages: any
77
+ // status: number
78
+ // code: string
79
+ // constructor(messages: any, options?: ErrorOptions)
80
+ // get [Symbol.toStringTag](): string
81
+ // toString(): string
82
+ // }
83
+ export type CommandError = Error;
84
+ export type ErrorConfig = Partial<ErrorOptions>;