@stacksjs/types 0.59.11 → 0.61.1

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 (85) hide show
  1. package/package.json +22 -25
  2. package/src/ai.ts +2 -1
  3. package/src/api.ts +12 -0
  4. package/src/chat.ts +1 -1
  5. package/src/cli.ts +76 -27
  6. package/src/cloud.ts +250 -27
  7. package/src/database.ts +18 -8
  8. package/src/dns.ts +286 -2
  9. package/src/email.ts +1 -3
  10. package/src/errors.ts +93 -0
  11. package/src/git.ts +1 -1
  12. package/src/hashing.ts +9 -9
  13. package/src/helpers.ts +2 -5
  14. package/src/index.ts +1 -0
  15. package/src/library.ts +765 -5
  16. package/src/model-names.ts +1 -0
  17. package/src/model.ts +92 -33
  18. package/src/notifications.ts +11 -1
  19. package/src/ports.ts +1 -0
  20. package/src/search-engine.ts +38 -13
  21. package/src/security.ts +1 -1
  22. package/src/services.ts +6 -6
  23. package/src/stacks.ts +11 -0
  24. package/src/tables.ts +1 -1
  25. package/src/ui.ts +1 -1
  26. package/src/utils.ts +6 -7
  27. package/dist/ai.d.ts +0 -15
  28. package/dist/analytics.d.ts +0 -19
  29. package/dist/api.d.ts +0 -59
  30. package/dist/app.d.ts +0 -135
  31. package/dist/auto-imports.d.ts +0 -1
  32. package/dist/binary.d.ts +0 -11
  33. package/dist/build.d.ts +0 -2
  34. package/dist/cache.d.ts +0 -88
  35. package/dist/cdn.d.ts +0 -16
  36. package/dist/chat.d.ts +0 -4
  37. package/dist/cli.d.ts +0 -278
  38. package/dist/cloud.d.ts +0 -69
  39. package/dist/components.d.ts +0 -60
  40. package/dist/configure.d.ts +0 -12
  41. package/dist/cron-jobs.d.ts +0 -43
  42. package/dist/database.d.ts +0 -37
  43. package/dist/dependencies.d.ts +0 -62
  44. package/dist/deploy.d.ts +0 -12
  45. package/dist/dns.d.ts +0 -175
  46. package/dist/docs.d.ts +0 -22
  47. package/dist/email.d.ts +0 -14
  48. package/dist/env.d.ts +0 -1
  49. package/dist/errors.d.ts +0 -1
  50. package/dist/events.d.ts +0 -30
  51. package/dist/exit-code.d.ts +0 -10
  52. package/dist/file-systems.d.ts +0 -60
  53. package/dist/git.d.ts +0 -129
  54. package/dist/hashing.d.ts +0 -109
  55. package/dist/helpers.d.ts +0 -1
  56. package/dist/i18n.d.ts +0 -19
  57. package/dist/index.d.ts +0 -58
  58. package/dist/inspect.d.ts +0 -9
  59. package/dist/library.d.ts +0 -134
  60. package/dist/logger.d.ts +0 -49
  61. package/dist/manifest.d.ts +0 -9
  62. package/dist/model.d.ts +0 -70
  63. package/dist/money.d.ts +0 -2
  64. package/dist/notifications.d.ts +0 -117
  65. package/dist/pages.d.ts +0 -10
  66. package/dist/payments.d.ts +0 -60
  67. package/dist/ports.d.ts +0 -19
  68. package/dist/promise.d.ts +0 -1
  69. package/dist/push.d.ts +0 -35
  70. package/dist/pwa.d.ts +0 -7
  71. package/dist/queue.d.ts +0 -36
  72. package/dist/reactivity.d.ts +0 -1
  73. package/dist/router.d.ts +0 -78
  74. package/dist/scheduler.d.ts +0 -1
  75. package/dist/search-engine.d.ts +0 -118
  76. package/dist/security.d.ts +0 -18
  77. package/dist/services.d.ts +0 -33
  78. package/dist/sms.d.ts +0 -1
  79. package/dist/ssg.d.ts +0 -2
  80. package/dist/stacks.d.ts +0 -196
  81. package/dist/storage.d.ts +0 -12
  82. package/dist/tables.d.ts +0 -52
  83. package/dist/team.d.ts +0 -8
  84. package/dist/ui.d.ts +0 -165
  85. package/dist/utils.d.ts +0 -33
package/dist/deploy.d.ts DELETED
@@ -1,12 +0,0 @@
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 interface DeployOptions extends CliOptions {
10
- domain?: string;
11
- deploy?: boolean;
12
- }
package/dist/dns.d.ts DELETED
@@ -1,175 +0,0 @@
1
- export interface ARecord {
2
- name: string | '@' | '*';
3
- address: string;
4
- ttl?: number | 'auto';
5
- }
6
- export interface CNameRecord {
7
- name: string;
8
- target: string;
9
- ttl: number | 'auto';
10
- }
11
- export interface MXRecord {
12
- name: string | '@';
13
- mailServer: string;
14
- ttl: number | 'auto';
15
- priority: number;
16
- }
17
- export interface TxtRecord {
18
- name: string | '@';
19
- ttl: number | 'auto';
20
- content: string;
21
- }
22
- export interface AAAARecord {
23
- name: string | '@' | '*';
24
- address: string;
25
- ttl: number | 'auto';
26
- }
27
- export type DnsRecord = ARecord | CNameRecord | MXRecord | TxtRecord | AAAARecord;
28
- type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AN' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TP' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | string;
29
- export interface ExtraParam {
30
- /**
31
- * The name of an additional parameter that is required by a top-level domain.
32
- * Here are the top-level domains that require additional parameters and the names of the parameters that they require:
33
- * .com.au and .net.au AU_ID_NUMBER AU_ID_TYPE
34
- * Valid values include the following: ABN (Australian business number) ACN (Australian company number) TM (Trademark number) .ca BRAND_NUMBER CA_BUSINESS_ENTITY_TYPE
35
- * 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
36
- * 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)
37
- * 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
38
- * The value of ES_IDENTIFICATION depends on the following values: The value of ES_LEGAL_FORM The value of ES_IDENTIFICATION_TYPE
39
- * If ES_LEGAL_FORM is any value other than INDIVIDUAL: Specify 1 letter + 8 numbers (CIF [Certificado de Identificación Fiscal]) Example: B12345678
40
- * If ES_LEGAL_FORM is INDIVIDUAL, the value that you specify for ES_IDENTIFICATION depends on the value of ES_IDENTIFICATION_TYPE:
41
- * 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
42
- * 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
43
- * 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
44
- * 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
45
- * 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
46
- * 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
47
- * 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
48
- * 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
49
- * 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
50
- * In addition, many TLDs require a VAT_NUMBER.
51
- */
52
- Name: ExtraParamName;
53
- /**
54
- * The value that corresponds with the name of an extra parameter.
55
- */
56
- Value: ExtraParamValue;
57
- }
58
- export type ExtraParamList = ExtraParam[];
59
- export type ExtraParamName = 'DUNS_NUMBER' | 'BRAND_NUMBER' | 'BIRTH_DEPARTMENT' | 'BIRTH_DATE_IN_YYYY_MM_DD' | 'BIRTH_COUNTRY' | 'BIRTH_CITY' | 'DOCUMENT_NUMBER' | 'AU_ID_NUMBER' | 'AU_ID_TYPE' | 'CA_LEGAL_TYPE' | 'CA_BUSINESS_ENTITY_TYPE' | 'CA_LEGAL_REPRESENTATIVE' | 'CA_LEGAL_REPRESENTATIVE_CAPACITY' | 'ES_IDENTIFICATION' | 'ES_IDENTIFICATION_TYPE' | 'ES_LEGAL_FORM' | 'FI_BUSINESS_NUMBER' | 'FI_ID_NUMBER' | 'FI_NATIONALITY' | 'FI_ORGANIZATION_TYPE' | 'IT_NATIONALITY' | 'IT_PIN' | 'IT_REGISTRANT_ENTITY_TYPE' | 'RU_PASSPORT_DATA' | 'SE_ID_NUMBER' | 'SG_ID_NUMBER' | 'VAT_NUMBER' | 'UK_CONTACT_TYPE' | 'UK_COMPANY_NUMBER' | 'EU_COUNTRY_OF_CITIZENSHIP' | 'AU_PRIORITY_TOKEN' | string;
60
- export type ExtraParamValue = string;
61
- export interface ContactInfo extends ContactDetail {
62
- admin?: ContactDetail;
63
- tech?: ContactDetail;
64
- }
65
- /**
66
- * **DNS Options**
67
- *
68
- * This configuration defines all of your DNS options. Because Stacks is fully-typed,
69
- * you may hover any of the options below and the definitions will be provided. In case
70
- * you have any questions, feel free to reach out via Discord or GitHub Discussions.
71
- *
72
- * @see https://stacksjs.org/docs/dns
73
- */
74
- export interface DnsOptions {
75
- driver: 'aws';
76
- a: ARecord[];
77
- aaaa: AAAARecord[];
78
- cname: CNameRecord[];
79
- mx: MXRecord[];
80
- txt: TxtRecord[];
81
- nameservers: string[];
82
- contactInfo: Partial<ContactInfo>;
83
- redirects: string[];
84
- }
85
- export type DnsConfig = Partial<DnsOptions>;
86
- export interface ContactDetail {
87
- /**
88
- * First name of contact.
89
- */
90
- firstName: string;
91
- /**
92
- * Last name of contact.
93
- */
94
- lastName: string;
95
- /**
96
- * Indicates whether the contact is a person, company, association, or public organization.
97
- *
98
- * Note the following:
99
- * If you specify a value other than PERSON, you must also specify a value for OrganizationName.
100
- * For some TLDs, the privacy protection available depends on the value that you specify for Contact Type.
101
- * 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
102
- * For .es domains, the value of ContactType must be PERSON for all three contacts.
103
- *
104
- * @default PERSON
105
- */
106
- contactType: 'PERSON' | 'COMPANY' | 'ASSOCIATION' | 'PUBLIC_BODY' | 'RESELLER' | string;
107
- /**
108
- * Name of the organization for contact types other than PERSON.
109
- */
110
- organizationName: string;
111
- /**
112
- * First line of the contact's address.
113
- */
114
- addressLine1: string;
115
- /**
116
- * Second line of contact's address, if any.
117
- */
118
- addressLine2: string;
119
- /**
120
- * The city of the contact's address.
121
- */
122
- city: string;
123
- /**
124
- * The state or province of the contact's city.
125
- */
126
- state: string;
127
- /**
128
- * Code for the country of the contact's address.
129
- */
130
- countryCode: CountryCode;
131
- /**
132
- * The zip or postal code of the contact's address.
133
- */
134
- zip: string;
135
- /**
136
- * The phone number of the contact.
137
- * Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code&gt;]".
138
- * For example, a US phone number might appear as "+1.1234567890".
139
- * @example +1.1234567890
140
- */
141
- phoneNumber: string;
142
- /**
143
- * Email address of the contact.
144
- */
145
- email: string;
146
- /**
147
- * 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".
148
- */
149
- fax: string;
150
- /**
151
- * A list of name-value pairs for parameters required by certain top-level domains.
152
- */
153
- extraParams: string;
154
- /**
155
- * Enable privacy protection for this domain.
156
- * @default true
157
- */
158
- privacy: boolean;
159
- /**
160
- * Enable privacy protection for the admin contact.
161
- * @default true
162
- */
163
- privacyAdmin: boolean;
164
- /**
165
- * Enable privacy protection for the tech contact.
166
- * @default true
167
- */
168
- privacyTech: boolean;
169
- /**
170
- * Enable privacy protection for the registrant contact.
171
- * @default true
172
- */
173
- privacyRegistrant: boolean;
174
- }
175
- export {};
package/dist/docs.d.ts DELETED
@@ -1,22 +0,0 @@
1
- import type { UserConfig } from 'vitepress';
2
- export interface DocsUserConfig extends UserConfig {
3
- deploy: boolean;
4
- }
5
- export type DocsConfig = DocsUserConfig;
6
- export type DocsOptions = Partial<DocsConfig>;
7
- export interface SocialLink {
8
- icon: SocialLinkIcon;
9
- link: string;
10
- ariaLabel?: string;
11
- }
12
- export declare enum SocialLinkIcon {
13
- Discord = "discord",
14
- Facebook = "facebook",
15
- GitHub = "github",
16
- Instagram = "instagram",
17
- LinkedIn = "linkedin",
18
- Mastodon = "mastodon",
19
- Slack = "slack",
20
- Twitter = "twitter",
21
- YouTube = "youtube"
22
- }
package/dist/email.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import type { IEmailOptions } from '@novu/stateless';
2
- export type EmailOptions = Omit<IEmailOptions, 'from'> & {
3
- from: {
4
- name: string;
5
- address: string;
6
- };
7
- mailboxes: string[];
8
- url: string;
9
- charset: string;
10
- server: {
11
- scan?: boolean;
12
- };
13
- };
14
- export type EmailConfig = Partial<EmailOptions>;
package/dist/env.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/errors.d.ts DELETED
@@ -1 +0,0 @@
1
- export type CommandError = Error;
package/dist/events.d.ts DELETED
@@ -1,30 +0,0 @@
1
- /**
2
- * **Events**
3
- *
4
- * This configuration defines all of your events. Because Stacks is fully-typed, you may
5
- * hover any of the options below and the definitions will be provided. In case you
6
- * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
- *
8
- * @example To fire an event, you may use any of the following approaches:
9
- * ```ts
10
- * dispatch('user:registered', { name: 'Chris', email: 'chris@stacksjs.org' })
11
- *
12
- * // alternatively, you may use the following:
13
- * useEvent('user:registered', { name: 'Chris', email: 'chris@stacksjs.org' })
14
- * events.emit('user:registered', { name: 'Chris', email: 'chris@stacksjs.org' })
15
- * useEvents.emit('user:registered', { name: 'Chris', email: 'chris@stacksjs.org' })
16
- * ```
17
- *
18
- * @example To capture an event, you may use any of the following approaches:
19
- * ```ts
20
- * listen('user:registered', (user) => sendWelcomeEmail(user))
21
- *
22
- * // alternatively, you may use the following:
23
- * useListen('user:registered', (user) => sendWelcomeEmail(user))
24
- * events.on('user:registered', (user) => sendWelcomeEmail(user))
25
- * useEvents.on('user:registered', (user) => sendWelcomeEmail(user))
26
- * ```
27
- */
28
- export interface Events {
29
- [key: string]: string[];
30
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * CLI exit codes.
3
- *
4
- * @see https://nodejs.org/api/process.html#process_exit_codes
5
- */
6
- export declare enum ExitCode {
7
- Success = 0,
8
- FatalError = 1,
9
- InvalidArgument = 9
10
- }
@@ -1,60 +0,0 @@
1
- /**
2
- * Describes a plain-text file.
3
- */
4
- export interface TextFile {
5
- path: string;
6
- data: string;
7
- }
8
- /**
9
- * Describes a JSON file.
10
- */
11
- export interface JsonFile {
12
- path: string;
13
- data: unknown;
14
- indent: string;
15
- newline: string | undefined;
16
- }
17
- /**
18
- * Describes a package.json file.
19
- */
20
- export interface PackageJson {
21
- engines: {
22
- node: string;
23
- pnpm: string;
24
- };
25
- version: string;
26
- packageManager: string;
27
- }
28
- export interface FileSystemOptions {
29
- default: string;
30
- disks: {
31
- local: {
32
- driver: 'local';
33
- root: string;
34
- };
35
- public: {
36
- driver: 'public';
37
- root: string;
38
- visibility?: 'public';
39
- };
40
- private: {
41
- driver: 'private';
42
- root: string;
43
- visibility?: 'private';
44
- };
45
- efs: {
46
- driver: 'local';
47
- root: string;
48
- };
49
- s3: {
50
- driver: 's3';
51
- root: string;
52
- };
53
- [key: string]: {
54
- driver: string;
55
- root: string;
56
- visibility?: 'public' | 'private';
57
- };
58
- };
59
- }
60
- export type FileSystemConfig = Partial<FileSystemOptions>;
package/dist/git.d.ts DELETED
@@ -1,129 +0,0 @@
1
- /**
2
- * **Git Options**
3
- *
4
- * This configuration defines all of your git options. Because Stacks is fully-typed, you may
5
- * hover any of the options below and the definitions will be provided. In case you
6
- * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
- */
8
- export interface GitOptions {
9
- /**
10
- * **Git Hooks**
11
- *
12
- * The git hooks to use.
13
- *
14
- * @see https://git-scm.com/docs/githooks
15
- * @example
16
- * ```ts
17
- * git: {
18
- * hooks: {
19
- * 'pre-commit': 'lint-staged',
20
- * }
21
- * }
22
- * ```
23
- */
24
- hooks: GitHooks;
25
- /**
26
- * **Git Commit Scopes**
27
- *
28
- * The git commit scopes to use.
29
- *
30
- * @see https://stacksjs.org/docs/git/scopes
31
- * @example
32
- * git: [
33
- * scopes: [
34
- * '', 'ci', 'deps', 'dx', 'release', 'readme', 'test', 'actions', 'build', 'cli',
35
- * 'config', 'examples', 'functions', 'modules', 'views', 'router', 'scripts',
36
- * 'ui', 'utils', 'arrays', 'collections', 'fs', 'objects', 'strings',
37
- * ]
38
- * ]
39
- */
40
- scopes: string[];
41
- /**
42
- * **Git Commit Types**
43
- *
44
- * The git commit types to use.
45
- *
46
- * @default array
47
- * @see https://stacksjs.org/docs/git/types
48
- * @see https://www.conventionalcommits.org/en/v1.0.0/
49
- * @example
50
- * ```ts
51
- * git: [
52
- * types: [
53
- * 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test',
54
- * ]
55
- * ]
56
- * ```
57
- */
58
- types: {
59
- value: string;
60
- name: string;
61
- emoji: string;
62
- }[];
63
- /**
64
- * **Messages—Options**
65
- *
66
- * The git messages/prompts to use.
67
- *
68
- * @default object
69
- * @example
70
- * ```ts
71
- * messages: {
72
- * type: 'Select the type of change that you’re committing:',
73
- * scope: 'Denote the SCOPE of this change:',
74
- * subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
75
- * body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
76
- * breaking: 'List any BREAKING CHANGES (optional):\n',
77
- * footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
78
- * confirmCommit: 'Are you sure you want to proceed with the commit above?',
79
- * }
80
- * ```
81
- * @see https://stacksjs.org/docs/git/messages
82
- */
83
- messages: {
84
- type: string;
85
- scope: string;
86
- customScope: string;
87
- subject: string;
88
- body: string;
89
- breaking: string;
90
- footerPrefixesSelect: string;
91
- customFooterPrefixes: string;
92
- footer: string;
93
- confirmCommit: string;
94
- };
95
- }
96
- interface Hooks {
97
- 'applypatch-msg'?: string;
98
- 'pre-applypatch'?: string;
99
- 'post-applypatch'?: string;
100
- 'pre-commit'?: string;
101
- 'pre-merge-commit'?: string;
102
- 'prepare-commit-msg'?: string;
103
- 'commit-msg'?: string;
104
- 'post-commit'?: string;
105
- 'pre-rebase'?: string;
106
- 'post-checkout'?: string;
107
- 'post-merge'?: string;
108
- 'pre-push'?: string;
109
- 'pre-receive'?: string;
110
- 'update'?: string;
111
- 'proc-receive'?: string;
112
- 'post-receive'?: string;
113
- 'post-update'?: string;
114
- 'reference-transaction'?: string;
115
- 'push-to-checkout'?: string;
116
- 'pre-auto-gc'?: string;
117
- 'post-rewrite'?: string;
118
- 'sendemail-validate'?: string;
119
- 'fsmonitor-watchman'?: string;
120
- 'p4-changelist'?: string;
121
- 'p4-prepare-changelist'?: string;
122
- 'p4-post-changelist'?: string;
123
- 'p4-pre-submit'?: string;
124
- 'post-index-change'?: string;
125
- }
126
- export type GitConfig = Partial<GitOptions>;
127
- export interface GitHooks extends Hooks {
128
- }
129
- export {};
package/dist/hashing.d.ts DELETED
@@ -1,109 +0,0 @@
1
- /**
2
- * The Stacks runtime provides secure Bcrypt & Argon2 hashing for storing user passwords.
3
- * If you are using one of the Laravel application starter kits, Bcrypt will be used for
4
- * registration and authentication by default.
5
- *
6
- * Bcrypt is a great choice for hashing passwords because its "work factor" is adjustable, which
7
- * means that the time it takes to generate a hash can be increased as hardware power increases.
8
- * When hashing passwords, slow is good. The longer an algorithm takes to hash a password, the
9
- * longer it takes malicious users to generate "rainbow tables" of all possible string hash
10
- * values that may be used in brute force attacks against applications.
11
- *
12
- * @see https://stacksjs.org/docs/hashing
13
- */
14
- export interface HashingOptions {
15
- /**
16
- * **Hashing Driver**
17
- *
18
- * This option controls the default hash driver that will be used to hash
19
- * passwords for your application. By default, the bcrypt algorithm is
20
- * used; however, you remain free to modify this option if you wish.
21
- *
22
- * @see https://stacksjs.org/docs/hashing
23
- */
24
- driver: 'argon2' | 'argon2id' | 'argon2i' | 'argon2d' | 'bcrypt';
25
- /**
26
- * **Bcrypt Option**
27
- *
28
- * Here you may specify the configuration options that should be used when
29
- * passwords are hashed using the Bcrypt algorithm. This will allow you
30
- * to control the amount of time it takes to hash the given password.
31
- *
32
- * @see https://stacksjs.org/docs/hashing
33
- */
34
- bcrypt?: BcryptOptions;
35
- /**
36
- * **Argon Options**
37
- *
38
- * Here you may specify the configuration options that should be used when
39
- * passwords are hashed using the Argon algorithm. These will allow you
40
- * to control the amount of time it takes to hash the given password.
41
- *
42
- * @see https://stacksjs.org/docs/hashing
43
- */
44
- argon2?: ArgonOptions;
45
- }
46
- export type HashingConfig = Partial<HashingOptions>;
47
- /**
48
- * **Bcrypt Options**
49
- *
50
- * Here you may specify the configuration options that should be used when
51
- * passwords are hashed using the Bcrypt algorithm. This will allow you
52
- * to control the amount of time it takes to hash the given password.
53
- *
54
- * @see https://stacksjs.org/docs/hashing
55
- */
56
- export interface BcryptOptions {
57
- /**
58
- * Bcrypt salt rounds.
59
- *
60
- * @default number 10
61
- * @see https://stacksjs.org/docs/hashing
62
- */
63
- rounds: number;
64
- /**
65
- * Bcrypt cost. This is a number between 4-31.
66
- * @default number 4
67
- * @see https://stacksjs.org/docs/hashing
68
- */
69
- cost: number;
70
- }
71
- /**
72
- * **Argon Options**
73
- *
74
- * Here you may specify the configuration options that should be used when
75
- * passwords are hashed using the Argon algorithm. These will allow you
76
- * to control the amount of time it takes to hash the given password.
77
- *
78
- * @see https://stacksjs.org/docs/hashing
79
- */
80
- export interface ArgonOptions {
81
- /**
82
- * **Argon Memory**
83
- *
84
- * Amount of memory (in kibibytes) to use.
85
- *
86
- * @default number 65536
87
- * @see https://stacksjs.org/docs/hashing
88
- */
89
- memory?: number;
90
- /**
91
- * **Argon Parallelism**
92
- *
93
- * Degree of parallelism (i.e. number of threads).
94
- *
95
- * @default number 1
96
- * @see https://stacksjs.org/docs/hashing
97
- */
98
- threads?: number;
99
- /**
100
- * **Argon time**
101
- *
102
- * Execution time.
103
- *
104
- * @default number 1
105
- * @see https://stacksjs.org/docs/hashing
106
- */
107
- time?: number;
108
- }
109
- export type HashAlgorithm = 'md4' | 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'ripemd128' | 'ripemd160' | 'tiger128' | 'tiger160' | 'tiger192' | 'crc32' | 'crc32b';
package/dist/helpers.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function getTypeName(v: any): string;
package/dist/i18n.d.ts DELETED
@@ -1,19 +0,0 @@
1
- interface VitePluginVueI18nOptions {
2
- forceStringify?: boolean;
3
- runtimeOnly?: boolean;
4
- compositionOnly?: boolean;
5
- fullInstall?: boolean;
6
- include?: string | string[];
7
- defaultSFCLang?: 'json' | 'json5' | 'yml' | 'yaml';
8
- globalSFCScope?: boolean;
9
- useVueI18nImportName?: boolean;
10
- }
11
- /**
12
- * **Internationalization Options**
13
- *
14
- * The i18n option.
15
- *
16
- * @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
17
- */
18
- export type i18nOptions = VitePluginVueI18nOptions;
19
- export {};
package/dist/index.d.ts DELETED
@@ -1,58 +0,0 @@
1
- export * from './ai';
2
- export * from './analytics';
3
- export * from './api';
4
- export * from './app';
5
- export * from './auto-imports';
6
- export * from './binary';
7
- export * from './build';
8
- export * from './cache';
9
- export * from './cdn';
10
- export * from './chat';
11
- export * from './cli';
12
- export * from './cloud';
13
- export * from './components';
14
- export * from './configure';
15
- export * from './cron-jobs';
16
- export * from './database';
17
- export * from './dependencies';
18
- export * from './deploy';
19
- export * from './dns';
20
- export * from './docs';
21
- export * from './errors';
22
- export * from './email';
23
- export * from './env';
24
- export * from './events';
25
- export * from './exit-code';
26
- export * from './file-systems';
27
- export * from './git';
28
- export * from './hashing';
29
- export * from './i18n';
30
- export * from './inspect';
31
- export * from './library';
32
- export * from './logger';
33
- export * from './manifest';
34
- export * from './model';
35
- export * from './money';
36
- export * from './notifications';
37
- export * from './pages';
38
- export * from './payments';
39
- export * from './ports';
40
- export * from './promise';
41
- export * from './pwa';
42
- export * from './push';
43
- export * from './queue';
44
- export * from './reactivity';
45
- export * from './router';
46
- export * from './scheduler';
47
- export * from './search-engine';
48
- export * from './security';
49
- export * from './services';
50
- export * from './sms';
51
- export * from './ssg';
52
- export * from './storage';
53
- export * from './stacks';
54
- export * from './team';
55
- export * from './tables';
56
- export * from './ui';
57
- export * from './utils';
58
- export * from './helpers';
package/dist/inspect.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { Options } from 'vite-plugin-inspect';
2
- /**
3
- * **Inspect Options**
4
- *
5
- * The inspect options.
6
- *
7
- * @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
8
- */
9
- export type InspectOptions = Options;