@stacksjs/types 0.70.86 → 0.70.87

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 (76) hide show
  1. package/package.json +19 -5
  2. package/src/ai.ts +0 -41
  3. package/src/analytics.ts +0 -58
  4. package/src/api.ts +0 -77
  5. package/src/app.ts +0 -189
  6. package/src/attributes.ts +0 -5
  7. package/src/auth.ts +0 -161
  8. package/src/auto-imports.ts +0 -8
  9. package/src/binary.ts +0 -13
  10. package/src/cache.ts +0 -325
  11. package/src/cdn.ts +0 -17
  12. package/src/chat.ts +0 -193
  13. package/src/cli.ts +0 -445
  14. package/src/cloud.ts +0 -381
  15. package/src/cms.ts +0 -14
  16. package/src/commerce.ts +0 -18
  17. package/src/components.ts +0 -62
  18. package/src/configure.ts +0 -13
  19. package/src/cors.ts +0 -86
  20. package/src/cron-jobs.ts +0 -146
  21. package/src/dashboard.ts +0 -218
  22. package/src/database.ts +0 -117
  23. package/src/dependencies.ts +0 -69
  24. package/src/deploy.ts +0 -17
  25. package/src/dns.ts +0 -470
  26. package/src/docs.ts +0 -27
  27. package/src/email.ts +0 -511
  28. package/src/env.ts +0 -1
  29. package/src/errors.ts +0 -110
  30. package/src/events.ts +0 -37
  31. package/src/exit-code.ts +0 -10
  32. package/src/file-systems.ts +0 -70
  33. package/src/git.ts +0 -133
  34. package/src/hashing.ts +0 -127
  35. package/src/helpers.ts +0 -9
  36. package/src/i18n.ts +0 -121
  37. package/src/index.ts +0 -80
  38. package/src/library.ts +0 -911
  39. package/src/logging.ts +0 -62
  40. package/src/manifest.ts +0 -9
  41. package/src/marketing.ts +0 -14
  42. package/src/model-dashboard-augmentation.ts +0 -51
  43. package/src/model-names.ts +0 -1
  44. package/src/model.ts +0 -353
  45. package/src/monitoring.ts +0 -14
  46. package/src/native.ts +0 -0
  47. package/src/notifications.ts +0 -153
  48. package/src/oauth.ts +0 -488
  49. package/src/pages.ts +0 -10
  50. package/src/payments.ts +0 -440
  51. package/src/phone.ts +0 -78
  52. package/src/ports.ts +0 -20
  53. package/src/promise.ts +0 -1
  54. package/src/push.ts +0 -143
  55. package/src/queue.ts +0 -413
  56. package/src/reactivity.ts +0 -1
  57. package/src/realtime.ts +0 -584
  58. package/src/request.ts +0 -541
  59. package/src/response.ts +0 -16
  60. package/src/router.ts +0 -124
  61. package/src/saas.ts +0 -33
  62. package/src/scheduler.ts +0 -1
  63. package/src/search-engine.ts +0 -251
  64. package/src/security.ts +0 -23
  65. package/src/server.ts +0 -16
  66. package/src/services.ts +0 -211
  67. package/src/settings-config.ts +0 -10
  68. package/src/sms.ts +0 -265
  69. package/src/stack-extensions.ts +0 -184
  70. package/src/stacks.ts +0 -339
  71. package/src/storage.ts +0 -173
  72. package/src/table-names.ts +0 -1
  73. package/src/tables.ts +0 -57
  74. package/src/team.ts +0 -8
  75. package/src/ui.ts +0 -197
  76. package/src/utils.ts +0 -46
package/src/dns.ts DELETED
@@ -1,470 +0,0 @@
1
- export interface ARecord {
2
- name: string | '@' | '*'
3
- address: string // IPv4
4
- ttl?: number | 'auto'
5
- }
6
-
7
- export interface CNameRecord {
8
- name: string
9
- target: string
10
- ttl: number | 'auto'
11
- }
12
-
13
- export interface MXRecord {
14
- name: string | '@'
15
- mailServer: string
16
- ttl: number | 'auto'
17
- priority: number // 0-65535
18
- }
19
-
20
- export interface TxtRecord {
21
- name: string | '@'
22
- ttl: number | 'auto'
23
- content: string
24
- }
25
-
26
- export interface AAAARecord {
27
- name: string | '@' | '*'
28
- address: string // IPv6
29
- ttl: number | 'auto'
30
- }
31
-
32
- export type DnsRecord = ARecord | CNameRecord | MXRecord | TxtRecord | AAAARecord
33
-
34
- type CountryCode =
35
- | 'AC'
36
- | 'AD'
37
- | 'AE'
38
- | 'AF'
39
- | 'AG'
40
- | 'AI'
41
- | 'AL'
42
- | 'AM'
43
- | 'AN'
44
- | 'AO'
45
- | 'AQ'
46
- | 'AR'
47
- | 'AS'
48
- | 'AT'
49
- | 'AU'
50
- | 'AW'
51
- | 'AX'
52
- | 'AZ'
53
- | 'BA'
54
- | 'BB'
55
- | 'BD'
56
- | 'BE'
57
- | 'BF'
58
- | 'BG'
59
- | 'BH'
60
- | 'BI'
61
- | 'BJ'
62
- | 'BL'
63
- | 'BM'
64
- | 'BN'
65
- | 'BO'
66
- | 'BQ'
67
- | 'BR'
68
- | 'BS'
69
- | 'BT'
70
- | 'BV'
71
- | 'BW'
72
- | 'BY'
73
- | 'BZ'
74
- | 'CA'
75
- | 'CC'
76
- | 'CD'
77
- | 'CF'
78
- | 'CG'
79
- | 'CH'
80
- | 'CI'
81
- | 'CK'
82
- | 'CL'
83
- | 'CM'
84
- | 'CN'
85
- | 'CO'
86
- | 'CR'
87
- | 'CU'
88
- | 'CV'
89
- | 'CW'
90
- | 'CX'
91
- | 'CY'
92
- | 'CZ'
93
- | 'DE'
94
- | 'DJ'
95
- | 'DK'
96
- | 'DM'
97
- | 'DO'
98
- | 'DZ'
99
- | 'EC'
100
- | 'EE'
101
- | 'EG'
102
- | 'EH'
103
- | 'ER'
104
- | 'ES'
105
- | 'ET'
106
- | 'FI'
107
- | 'FJ'
108
- | 'FK'
109
- | 'FM'
110
- | 'FO'
111
- | 'FR'
112
- | 'GA'
113
- | 'GB'
114
- | 'GD'
115
- | 'GE'
116
- | 'GF'
117
- | 'GG'
118
- | 'GH'
119
- | 'GI'
120
- | 'GL'
121
- | 'GM'
122
- | 'GN'
123
- | 'GP'
124
- | 'GQ'
125
- | 'GR'
126
- | 'GS'
127
- | 'GT'
128
- | 'GU'
129
- | 'GW'
130
- | 'GY'
131
- | 'HK'
132
- | 'HM'
133
- | 'HN'
134
- | 'HR'
135
- | 'HT'
136
- | 'HU'
137
- | 'ID'
138
- | 'IE'
139
- | 'IL'
140
- | 'IM'
141
- | 'IN'
142
- | 'IO'
143
- | 'IQ'
144
- | 'IR'
145
- | 'IS'
146
- | 'IT'
147
- | 'JE'
148
- | 'JM'
149
- | 'JO'
150
- | 'JP'
151
- | 'KE'
152
- | 'KG'
153
- | 'KH'
154
- | 'KI'
155
- | 'KM'
156
- | 'KN'
157
- | 'KP'
158
- | 'KR'
159
- | 'KW'
160
- | 'KY'
161
- | 'KZ'
162
- | 'LA'
163
- | 'LB'
164
- | 'LC'
165
- | 'LI'
166
- | 'LK'
167
- | 'LR'
168
- | 'LS'
169
- | 'LT'
170
- | 'LU'
171
- | 'LV'
172
- | 'LY'
173
- | 'MA'
174
- | 'MC'
175
- | 'MD'
176
- | 'ME'
177
- | 'MF'
178
- | 'MG'
179
- | 'MH'
180
- | 'MK'
181
- | 'ML'
182
- | 'MM'
183
- | 'MN'
184
- | 'MO'
185
- | 'MP'
186
- | 'MQ'
187
- | 'MR'
188
- | 'MS'
189
- | 'MT'
190
- | 'MU'
191
- | 'MV'
192
- | 'MW'
193
- | 'MX'
194
- | 'MY'
195
- | 'MZ'
196
- | 'NA'
197
- | 'NC'
198
- | 'NE'
199
- | 'NF'
200
- | 'NG'
201
- | 'NI'
202
- | 'NL'
203
- | 'NO'
204
- | 'NP'
205
- | 'NR'
206
- | 'NU'
207
- | 'NZ'
208
- | 'OM'
209
- | 'PA'
210
- | 'PE'
211
- | 'PF'
212
- | 'PG'
213
- | 'PH'
214
- | 'PK'
215
- | 'PL'
216
- | 'PM'
217
- | 'PN'
218
- | 'PR'
219
- | 'PS'
220
- | 'PT'
221
- | 'PW'
222
- | 'PY'
223
- | 'QA'
224
- | 'RE'
225
- | 'RO'
226
- | 'RS'
227
- | 'RU'
228
- | 'RW'
229
- | 'SA'
230
- | 'SB'
231
- | 'SC'
232
- | 'SD'
233
- | 'SE'
234
- | 'SG'
235
- | 'SH'
236
- | 'SI'
237
- | 'SJ'
238
- | 'SK'
239
- | 'SL'
240
- | 'SM'
241
- | 'SN'
242
- | 'SO'
243
- | 'SR'
244
- | 'SS'
245
- | 'ST'
246
- | 'SV'
247
- | 'SX'
248
- | 'SY'
249
- | 'SZ'
250
- | 'TC'
251
- | 'TD'
252
- | 'TF'
253
- | 'TG'
254
- | 'TH'
255
- | 'TJ'
256
- | 'TK'
257
- | 'TL'
258
- | 'TM'
259
- | 'TN'
260
- | 'TO'
261
- | 'TP'
262
- | 'TR'
263
- | 'TT'
264
- | 'TV'
265
- | 'TW'
266
- | 'TZ'
267
- | 'UA'
268
- | 'UG'
269
- | 'US'
270
- | 'UY'
271
- | 'UZ'
272
- | 'VA'
273
- | 'VC'
274
- | 'VE'
275
- | 'VG'
276
- | 'VI'
277
- | 'VN'
278
- | 'VU'
279
- | 'WF'
280
- | 'WS'
281
- | 'YE'
282
- | 'YT'
283
- | 'ZA'
284
- | 'ZM'
285
- | 'ZW'
286
- | string
287
-
288
- export interface ExtraParam {
289
- /**
290
- * The name of an additional parameter that is required by a top-level domain.
291
- * Here are the top-level domains that require additional parameters and the names of the parameters that they require:
292
- * .com.au and .net.au AU_ID_NUMBER AU_ID_TYPE
293
- * Valid values include the following: ABN (Australian business number) ACN (Australian company number) TM (Trademark number) .ca BRAND_NUMBER CA_BUSINESS_ENTITY_TYPE
294
- * Valid values include the following: BANK (Bank) COMMERCIAL_COMPANY (Commercial company) COMPANY (Company) COOPERATION (Cooperation) COOPERATIVE (Cooperative) COOPRIX (Cooprix) CORP (Corporation) CREDIT_UNION (Credit union) FOMIA (Federation of mutual insurance associations) INC (Incorporated) LTD (Limited) LTEE (Limitée) LLC (Limited liability corporation) LLP (Limited liability partnership) LTE (Lte.) MBA (Mutual benefit association) MIC (Mutual insurance company) NFP (Not-for-profit corporation) SA (S.A.) SAVINGS_COMPANY (Savings company) SAVINGS_UNION (Savings union) SARL (Société à responsabilité limitée) TRUST (Trust) ULC (Unlimited liability corporation) CA_LEGAL_TYPE
295
- * When ContactType is PERSON, valid values include the following: ABO (Aboriginal Peoples indigenous to Canada) CCT (Canadian citizen) LGR (Legal Representative of a Canadian Citizen or Permanent Resident) RES (Permanent resident of Canada)
296
- * When ContactType is a value other than PERSON, valid values include the following: ASS (Canadian unincorporated association) CCO (Canadian corporation) EDU (Canadian educational institution) GOV (Government or government entity in Canada) HOP (Canadian Hospital) INB (Indian Band recognized by the Indian Act of Canada) LAM (Canadian Library, Archive, or Museum) MAJ (Her/His Majesty the Queen/King) OMK (Official mark registered in Canada) PLT (Canadian Political Party) PRT (Partnership Registered in Canada) TDM (Trademark registered in Canada) TRD (Canadian Trade Union) TRS (Trust established in Canada) .es ES_IDENTIFICATION
297
- * The value of ES_IDENTIFICATION depends on the following values: The value of ES_LEGAL_FORM The value of ES_IDENTIFICATION_TYPE
298
- * If ES_LEGAL_FORM is any value other than INDIVIDUAL: Specify 1 letter + 8 numbers (CIF [Certificado de Identificación Fiscal]) Example: B12345678
299
- * If ES_LEGAL_FORM is INDIVIDUAL, the value that you specify for ES_IDENTIFICATION depends on the value of ES_IDENTIFICATION_TYPE:
300
- * If ES_IDENTIFICATION_TYPE is DNI_AND_NIF (for Spanish contacts): Specify 8 numbers + 1 letter (DNI [Documento Nacional de Identidad], NIF [Número de Identificación Fiscal]) Example: 12345678M
301
- * If ES_IDENTIFICATION_TYPE is NIE (for foreigners with legal residence): Specify 1 letter + 7 numbers + 1 letter ( NIE [Número de Identidad de Extranjero]) Example: Y1234567X
302
- * If ES_IDENTIFICATION_TYPE is OTHER (for contacts outside of Spain): Specify a passport number, drivers license number, or national identity card number ES_IDENTIFICATION_TYPE
303
- * Valid values include the following: DNI_AND_NIF (For Spanish contacts) NIE (For foreigners with legal residence) OTHER (For contacts outside of Spain) ES_LEGAL_FORM
304
- * Valid values include the following: ASSOCIATION CENTRAL_GOVERNMENT_BODY CIVIL_SOCIETY COMMUNITY_OF_OWNERS COMMUNITY_PROPERTY CONSULATE COOPERATIVE DESIGNATION_OF_ORIGIN_SUPERVISORY_COUNCIL ECONOMIC_INTEREST_GROUP EMBASSY ENTITY_MANAGING_NATURAL_AREAS FARM_PARTNERSHIP FOUNDATION GENERAL_AND_LIMITED_PARTNERSHIP GENERAL_PARTNERSHIP INDIVIDUAL LIMITED_COMPANY LOCAL_AUTHORITY LOCAL_PUBLIC_ENTITY MUTUAL_INSURANCE_COMPANY NATIONAL_PUBLIC_ENTITY ORDER_OR_RELIGIOUS_INSTITUTION
305
- * OTHERS (Only for contacts outside of Spain) POLITICAL_PARTY PROFESSIONAL_ASSOCIATION PUBLIC_LAW_ASSOCIATION PUBLIC_LIMITED_COMPANY REGIONAL_GOVERNMENT_BODY REGIONAL_PUBLIC_ENTITY SAVINGS_BANK SPANISH_OFFICE SPORTS_ASSOCIATION SPORTS_FEDERATION SPORTS_LIMITED_COMPANY TEMPORARY_ALLIANCE_OF_ENTERPRISES TRADE_UNION WORKER_OWNED_COMPANY WORKER_OWNED_LIMITED_COMPANY .eu EU_COUNTRY_OF_CITIZENSHIP .fi BIRTH_DATE_IN_YYYY_MM_DD FI_BUSINESS_NUMBER FI_ID_NUMBER FI_NATIONALITY
306
- * Valid values include the following: FINNISH NOT_FINNISH FI_ORGANIZATION_TYPE Valid values include the following: COMPANY CORPORATION GOVERNMENT INSTITUTION POLITICAL_PARTY PUBLIC_COMMUNITY TOWNSHIP .it IT_NATIONALITY IT_PIN IT_REGISTRANT_ENTITY_TYPE
307
- * Valid values include the following: FOREIGNERS FREELANCE_WORKERS (Freelance workers and professionals) ITALIAN_COMPANIES (Italian companies and one-person companies) NON_PROFIT_ORGANIZATIONS OTHER_SUBJECTS PUBLIC_ORGANIZATIONS .ru BIRTH_DATE_IN_YYYY_MM_DD RU_PASSPORT_DATA .se BIRTH_COUNTRY SE_ID_NUMBER .sg SG_ID_NUMBER .uk, .co.uk, .me.uk, and .org.uk UK_CONTACT_TYPE
308
- * Valid values include the following: CRC (UK Corporation by Royal Charter) FCORP (Non-UK Corporation) FIND (Non-UK Individual, representing self) FOTHER (Non-UK Entity that does not fit into any other category) GOV (UK Government Body) IND (UK Individual (representing self)) IP (UK Industrial/Provident Registered Company) LLP (UK Limited Liability Partnership) LTD (UK Limited Company) OTHER (UK Entity that does not fit into any other category) PLC (UK Public Limited Company) PTNR (UK Partnership) RCHAR (UK Registered Charity) SCH (UK School) STAT (UK Statutory Body) STRA (UK Sole Trader) UK_COMPANY_NUMBER
309
- * In addition, many TLDs require a VAT_NUMBER.
310
- */
311
- Name: ExtraParamName
312
- /**
313
- * The value that corresponds with the name of an extra parameter.
314
- */
315
- Value: ExtraParamValue
316
- }
317
- export type ExtraParamList = ExtraParam[]
318
- export type ExtraParamName =
319
- | 'DUNS_NUMBER'
320
- | 'BRAND_NUMBER'
321
- | 'BIRTH_DEPARTMENT'
322
- | 'BIRTH_DATE_IN_YYYY_MM_DD'
323
- | 'BIRTH_COUNTRY'
324
- | 'BIRTH_CITY'
325
- | 'DOCUMENT_NUMBER'
326
- | 'AU_ID_NUMBER'
327
- | 'AU_ID_TYPE'
328
- | 'CA_LEGAL_TYPE'
329
- | 'CA_BUSINESS_ENTITY_TYPE'
330
- | 'CA_LEGAL_REPRESENTATIVE'
331
- | 'CA_LEGAL_REPRESENTATIVE_CAPACITY'
332
- | 'ES_IDENTIFICATION'
333
- | 'ES_IDENTIFICATION_TYPE'
334
- | 'ES_LEGAL_FORM'
335
- | 'FI_BUSINESS_NUMBER'
336
- | 'FI_ID_NUMBER'
337
- | 'FI_NATIONALITY'
338
- | 'FI_ORGANIZATION_TYPE'
339
- | 'IT_NATIONALITY'
340
- | 'IT_PIN'
341
- | 'IT_REGISTRANT_ENTITY_TYPE'
342
- | 'RU_PASSPORT_DATA'
343
- | 'SE_ID_NUMBER'
344
- | 'SG_ID_NUMBER'
345
- | 'VAT_NUMBER'
346
- | 'UK_CONTACT_TYPE'
347
- | 'UK_COMPANY_NUMBER'
348
- | 'EU_COUNTRY_OF_CITIZENSHIP'
349
- | 'AU_PRIORITY_TOKEN'
350
- | string
351
- export type ExtraParamValue = string
352
-
353
- export interface ContactInfo extends ContactDetail {
354
- admin?: ContactDetail // defaults to registrant
355
- tech?: ContactDetail // defaults to registrant
356
- }
357
-
358
- /**
359
- * **DNS Options**
360
- *
361
- * This configuration defines all of your DNS options. Because Stacks is fully-typed,
362
- * you may hover any of the options below and the definitions will be provided. In case
363
- * you have any questions, feel free to reach out via Discord or GitHub Discussions.
364
- *
365
- * @see https://stacksjs.com/docs/dns
366
- */
367
- export interface DnsOptions {
368
- driver: 'aws'
369
- a: ARecord[]
370
- aaaa: AAAARecord[]
371
- cname: CNameRecord[]
372
- mx: MXRecord[]
373
- txt: TxtRecord[]
374
- nameservers: string[]
375
- contactInfo: Partial<ContactInfo>
376
- redirects: string[]
377
- }
378
-
379
- export type DnsConfig = Partial<DnsOptions>
380
-
381
- export interface ContactDetail {
382
- /**
383
- * First name of contact.
384
- */
385
- firstName: string
386
- /**
387
- * Last name of contact.
388
- */
389
- lastName: string
390
- /**
391
- * Indicates whether the contact is a person, company, association, or public organization.
392
- *
393
- * Note the following:
394
- * If you specify a value other than PERSON, you must also specify a value for OrganizationName.
395
- * For some TLDs, the privacy protection available depends on the value that you specify for Contact Type.
396
- * For the privacy protection settings for your TLD, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide
397
- * For .es domains, the value of ContactType must be PERSON for all three contacts.
398
- *
399
- * @default PERSON
400
- */
401
- contactType: 'PERSON' | 'COMPANY' | 'ASSOCIATION' | 'PUBLIC_BODY' | 'RESELLER' | string
402
- /**
403
- * Name of the organization for contact types other than PERSON.
404
- */
405
- organizationName: string
406
- /**
407
- * First line of the contact's address.
408
- */
409
- addressLine1: string
410
- /**
411
- * Second line of contact's address, if any.
412
- */
413
- addressLine2: string
414
- /**
415
- * The city of the contact's address.
416
- */
417
- city: string
418
- /**
419
- * The state or province of the contact's city.
420
- */
421
- state: string
422
- /**
423
- * Code for the country of the contact's address.
424
- */
425
- countryCode: CountryCode
426
- /**
427
- * The zip or postal code of the contact's address.
428
- */
429
- zip: string
430
- /**
431
- * The phone number of the contact.
432
- * Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code&gt;]".
433
- * For example, a US phone number might appear as "+1.1234567890".
434
- * @example +1.1234567890
435
- */
436
- phoneNumber: string
437
- /**
438
- * Email address of the contact.
439
- */
440
- email: string
441
- /**
442
- * Fax number of the contact. Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code]". For example, a US phone number might appear as "+1.1234567890".
443
- */
444
- fax: string
445
- /**
446
- * A list of name-value pairs for parameters required by certain top-level domains.
447
- */
448
- extraParams: string
449
-
450
- /**
451
- * Enable privacy protection for this domain.
452
- * @default true
453
- */
454
- privacy: boolean
455
- /**
456
- * Enable privacy protection for the admin contact.
457
- * @default true
458
- */
459
- privacyAdmin: boolean
460
- /**
461
- * Enable privacy protection for the tech contact.
462
- * @default true
463
- */
464
- privacyTech: boolean
465
- /**
466
- * Enable privacy protection for the registrant contact.
467
- * @default true
468
- */
469
- privacyRegistrant: boolean
470
- }
package/src/docs.ts DELETED
@@ -1,27 +0,0 @@
1
- import type { BunPressOptions } from '@stacksjs/bunpress'
2
-
3
- export interface DocsUserConfig extends BunPressOptions {
4
- deploy?: boolean
5
- }
6
-
7
- export type DocsConfig = DocsUserConfig
8
- export type DocsOptions = Partial<DocsConfig>
9
-
10
- export interface SocialLink {
11
- icon: SocialLinkIcon
12
- link: string
13
- ariaLabel?: string
14
- }
15
-
16
- export enum SocialLinkIcon {
17
- Bluesky = 'bluesky',
18
- Discord = 'discord',
19
- Facebook = 'facebook',
20
- GitHub = 'github',
21
- Instagram = 'instagram',
22
- LinkedIn = 'linkedin',
23
- Mastodon = 'mastodon',
24
- Slack = 'slack',
25
- Twitter = 'twitter',
26
- YouTube = 'youtube',
27
- }