@stacksjs/types 0.70.86 → 0.70.88
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.
- package/package.json +19 -5
- package/dist/ai.d.ts +0 -37
- package/dist/analytics.d.ts +0 -36
- package/dist/api.d.ts +0 -26
- package/dist/app.d.ts +0 -28
- package/dist/attributes.d.ts +0 -1
- package/dist/auth.d.ts +0 -56
- package/dist/auto-imports.d.ts +0 -8
- package/dist/binary.d.ts +0 -11
- package/dist/cache.d.ts +0 -88
- package/dist/cdn.d.ts +0 -4
- package/dist/chat.d.ts +0 -69
- package/dist/cli.d.ts +0 -316
- package/dist/cloud.d.ts +0 -366
- package/dist/cms.d.ts +0 -12
- package/dist/commerce.d.ts +0 -14
- package/dist/components.d.ts +0 -9
- package/dist/configure.d.ts +0 -12
- package/dist/cors.d.ts +0 -47
- package/dist/cron-jobs.d.ts +0 -61
- package/dist/dashboard.d.ts +0 -108
- package/dist/database.d.ts +0 -76
- package/dist/dependencies.d.ts +0 -17
- package/dist/deploy.d.ts +0 -16
- package/dist/dns.d.ts +0 -362
- package/dist/docs.d.ts +0 -23
- package/dist/email.d.ts +0 -207
- package/dist/env.d.ts +0 -1
- package/dist/errors.d.ts +0 -84
- package/dist/events.d.ts +0 -31
- package/dist/exit-code.d.ts +0 -10
- package/dist/file-systems.d.ts +0 -60
- package/dist/git.d.ts +0 -60
- package/dist/hashing.d.ts +0 -57
- package/dist/helpers.d.ts +0 -1
- package/dist/i18n.d.ts +0 -65
- package/dist/index.d.ts +0 -79
- package/dist/index.js +0 -2
- package/dist/library.d.ts +0 -799
- package/dist/logging.d.ts +0 -15
- package/dist/manifest.d.ts +0 -9
- package/dist/marketing.d.ts +0 -12
- package/dist/model-dashboard-augmentation.d.ts +0 -8
- package/dist/model-names.d.ts +0 -1
- package/dist/model.d.ts +0 -256
- package/dist/monitoring.d.ts +0 -12
- package/dist/notifications.d.ts +0 -126
- package/dist/oauth.d.ts +0 -290
- package/dist/pages.d.ts +0 -10
- package/dist/payments.d.ts +0 -322
- package/dist/phone.d.ts +0 -65
- package/dist/ports.d.ts +0 -20
- package/dist/promise.d.ts +0 -1
- package/dist/push.d.ts +0 -108
- package/dist/queue.d.ts +0 -312
- package/dist/reactivity.d.ts +0 -1
- package/dist/realtime.d.ts +0 -443
- package/dist/request.d.ts +0 -265
- package/dist/response.d.ts +0 -15
- package/dist/router.d.ts +0 -105
- package/dist/saas.d.ts +0 -32
- package/dist/scheduler.d.ts +0 -1
- package/dist/search-engine.d.ts +0 -129
- package/dist/security.d.ts +0 -18
- package/dist/server.d.ts +0 -16
- package/dist/services.d.ts +0 -149
- package/dist/settings-config.d.ts +0 -9
- package/dist/sms.d.ts +0 -144
- package/dist/stack-extensions.d.ts +0 -137
- package/dist/stacks.d.ts +0 -45
- package/dist/storage.d.ts +0 -104
- package/dist/table-names.d.ts +0 -1
- package/dist/tables.d.ts +0 -34
- package/dist/team.d.ts +0 -7
- package/dist/ui.d.ts +0 -55
- package/dist/utils.d.ts +0 -39
- package/src/ai.ts +0 -41
- package/src/analytics.ts +0 -58
- package/src/api.ts +0 -77
- package/src/app.ts +0 -189
- package/src/attributes.ts +0 -5
- package/src/auth.ts +0 -161
- package/src/auto-imports.ts +0 -8
- package/src/binary.ts +0 -13
- package/src/cache.ts +0 -325
- package/src/cdn.ts +0 -17
- package/src/chat.ts +0 -193
- package/src/cli.ts +0 -445
- package/src/cloud.ts +0 -381
- package/src/cms.ts +0 -14
- package/src/commerce.ts +0 -18
- package/src/components.ts +0 -62
- package/src/configure.ts +0 -13
- package/src/cors.ts +0 -86
- package/src/cron-jobs.ts +0 -146
- package/src/dashboard.ts +0 -218
- package/src/database.ts +0 -117
- package/src/dependencies.ts +0 -69
- package/src/deploy.ts +0 -17
- package/src/dns.ts +0 -470
- package/src/docs.ts +0 -27
- package/src/email.ts +0 -511
- package/src/env.ts +0 -1
- package/src/errors.ts +0 -110
- package/src/events.ts +0 -37
- package/src/exit-code.ts +0 -10
- package/src/file-systems.ts +0 -70
- package/src/git.ts +0 -133
- package/src/hashing.ts +0 -127
- package/src/helpers.ts +0 -9
- package/src/i18n.ts +0 -121
- package/src/index.ts +0 -80
- package/src/library.ts +0 -911
- package/src/logging.ts +0 -62
- package/src/manifest.ts +0 -9
- package/src/marketing.ts +0 -14
- package/src/model-dashboard-augmentation.ts +0 -51
- package/src/model-names.ts +0 -1
- package/src/model.ts +0 -353
- package/src/monitoring.ts +0 -14
- package/src/native.ts +0 -0
- package/src/notifications.ts +0 -153
- package/src/oauth.ts +0 -488
- package/src/pages.ts +0 -10
- package/src/payments.ts +0 -440
- package/src/phone.ts +0 -78
- package/src/ports.ts +0 -20
- package/src/promise.ts +0 -1
- package/src/push.ts +0 -143
- package/src/queue.ts +0 -413
- package/src/reactivity.ts +0 -1
- package/src/realtime.ts +0 -584
- package/src/request.ts +0 -541
- package/src/response.ts +0 -16
- package/src/router.ts +0 -124
- package/src/saas.ts +0 -33
- package/src/scheduler.ts +0 -1
- package/src/search-engine.ts +0 -251
- package/src/security.ts +0 -23
- package/src/server.ts +0 -16
- package/src/services.ts +0 -211
- package/src/settings-config.ts +0 -10
- package/src/sms.ts +0 -265
- package/src/stack-extensions.ts +0 -184
- package/src/stacks.ts +0 -339
- package/src/storage.ts +0 -173
- package/src/table-names.ts +0 -1
- package/src/tables.ts +0 -57
- package/src/team.ts +0 -8
- package/src/ui.ts +0 -197
- package/src/utils.ts +0 -46
package/dist/docs.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/email.d.ts
DELETED
|
@@ -1,207 +0,0 @@
|
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/errors.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
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>;
|
package/dist/events.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type * from '../../../types/events';
|
|
2
|
-
/**
|
|
3
|
-
* **Events**
|
|
4
|
-
*
|
|
5
|
-
* This configuration defines all of your events. Because Stacks is fully-typed, you may
|
|
6
|
-
* hover any of the options below and the definitions will be provided. In case you
|
|
7
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
8
|
-
*
|
|
9
|
-
* @example To fire an event, you may use any of the following approaches:
|
|
10
|
-
* ```ts
|
|
11
|
-
* dispatch('user:registered', { name: 'Chris', email: 'chris@stacksjs.com' })
|
|
12
|
-
*
|
|
13
|
-
* // alternatively, you may use the following:
|
|
14
|
-
* useEvent('user:registered', { name: 'Chris', email: 'chris@stacksjs.com' })
|
|
15
|
-
* events.emit('user:registered', { name: 'Chris', email: 'chris@stacksjs.com' })
|
|
16
|
-
* useEvents.emit('user:registered', { name: 'Chris', email: 'chris@stacksjs.com' })
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @example To capture an event, you may use any of the following approaches:
|
|
20
|
-
* ```ts
|
|
21
|
-
* listen('user:registered', (user) => sendWelcomeEmail(user))
|
|
22
|
-
*
|
|
23
|
-
* // alternatively, you may use the following:
|
|
24
|
-
* useListen('user:registered', (user) => sendWelcomeEmail(user))
|
|
25
|
-
* events.on('user:registered', (user) => sendWelcomeEmail(user))
|
|
26
|
-
* useEvents.on('user:registered', (user) => sendWelcomeEmail(user))
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare interface Events {
|
|
30
|
-
[key: string]: string[]
|
|
31
|
-
}
|
package/dist/exit-code.d.ts
DELETED
package/dist/file-systems.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Describes a plain-text file.
|
|
3
|
-
*/
|
|
4
|
-
export declare interface TextFile {
|
|
5
|
-
path: string
|
|
6
|
-
data: string
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Describes a JSON file.
|
|
10
|
-
*/
|
|
11
|
-
export declare 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 declare interface PackageJson {
|
|
21
|
-
engines: {
|
|
22
|
-
node: string
|
|
23
|
-
pnpm: string
|
|
24
|
-
}
|
|
25
|
-
version: string
|
|
26
|
-
packageManager: string
|
|
27
|
-
}
|
|
28
|
-
export declare 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,60 +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 declare interface GitOptions {
|
|
9
|
-
hooks: GitHooks
|
|
10
|
-
scopes: string[]
|
|
11
|
-
types: {
|
|
12
|
-
value: string
|
|
13
|
-
name: string
|
|
14
|
-
emoji: string
|
|
15
|
-
}[]
|
|
16
|
-
messages: {
|
|
17
|
-
type: string
|
|
18
|
-
scope: string
|
|
19
|
-
customScope: string
|
|
20
|
-
subject: string
|
|
21
|
-
body: string
|
|
22
|
-
breaking: string
|
|
23
|
-
footerPrefixesSelect: string
|
|
24
|
-
customFooterPrefixes: string
|
|
25
|
-
footer: string
|
|
26
|
-
confirmCommit: string
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
declare interface Hooks {
|
|
30
|
-
'applypatch-msg'?: string
|
|
31
|
-
'pre-applypatch'?: string
|
|
32
|
-
'post-applypatch'?: string
|
|
33
|
-
'pre-commit'?: string
|
|
34
|
-
'pre-merge-commit'?: string
|
|
35
|
-
'prepare-commit-msg'?: string
|
|
36
|
-
'commit-msg'?: string
|
|
37
|
-
'post-commit'?: string
|
|
38
|
-
'pre-rebase'?: string
|
|
39
|
-
'post-checkout'?: string
|
|
40
|
-
'post-merge'?: string
|
|
41
|
-
'pre-push'?: string
|
|
42
|
-
'pre-receive'?: string
|
|
43
|
-
'update'?: string
|
|
44
|
-
'proc-receive'?: string
|
|
45
|
-
'post-receive'?: string
|
|
46
|
-
'post-update'?: string
|
|
47
|
-
'reference-transaction'?: string
|
|
48
|
-
'push-to-checkout'?: string
|
|
49
|
-
'pre-auto-gc'?: string
|
|
50
|
-
'post-rewrite'?: string
|
|
51
|
-
'sendemail-validate'?: string
|
|
52
|
-
'fsmonitor-watchman'?: string
|
|
53
|
-
'p4-changelist'?: string
|
|
54
|
-
'p4-prepare-changelist'?: string
|
|
55
|
-
'p4-post-changelist'?: string
|
|
56
|
-
'p4-pre-submit'?: string
|
|
57
|
-
'post-index-change'?: string
|
|
58
|
-
}
|
|
59
|
-
export declare interface GitHooks extends Hooks {}
|
|
60
|
-
export type GitConfig = Partial<GitOptions>;
|
package/dist/hashing.d.ts
DELETED
|
@@ -1,57 +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.com/docs/hashing
|
|
13
|
-
*/
|
|
14
|
-
export declare interface HashingOptions {
|
|
15
|
-
driver: 'argon2' | 'argon2id' | 'argon2i' | 'argon2d' | 'bcrypt'
|
|
16
|
-
bcrypt?: BcryptOptions
|
|
17
|
-
argon2?: ArgonOptions
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* **Bcrypt Options**
|
|
21
|
-
*
|
|
22
|
-
* Here you may specify the configuration options that should be used when
|
|
23
|
-
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
24
|
-
* to control the amount of time it takes to hash the given password.
|
|
25
|
-
*
|
|
26
|
-
* @see https://stacksjs.com/docs/hashing
|
|
27
|
-
*/
|
|
28
|
-
export declare interface BcryptOptions {
|
|
29
|
-
rounds: number
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* **Argon Options**
|
|
33
|
-
*
|
|
34
|
-
* Here you may specify the configuration options that should be used when
|
|
35
|
-
* passwords are hashed using the Argon algorithm. These will allow you
|
|
36
|
-
* to control the amount of time it takes to hash the given password.
|
|
37
|
-
*
|
|
38
|
-
* @see https://stacksjs.com/docs/hashing
|
|
39
|
-
*/
|
|
40
|
-
export declare interface ArgonOptions {
|
|
41
|
-
memory?: number
|
|
42
|
-
time?: number
|
|
43
|
-
}
|
|
44
|
-
export type HashingConfig = Partial<HashingOptions>;
|
|
45
|
-
export type HashAlgorithm = | 'md4'
|
|
46
|
-
| 'md5'
|
|
47
|
-
| 'sha1'
|
|
48
|
-
| 'sha256'
|
|
49
|
-
| 'sha384'
|
|
50
|
-
| 'sha512'
|
|
51
|
-
| 'ripemd128'
|
|
52
|
-
| 'ripemd160'
|
|
53
|
-
| 'tiger128'
|
|
54
|
-
| 'tiger160'
|
|
55
|
-
| 'tiger192'
|
|
56
|
-
| 'crc32'
|
|
57
|
-
| '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,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite plugin options for Vue I18n
|
|
3
|
-
*/
|
|
4
|
-
declare interface VitePluginVueI18nOptions {
|
|
5
|
-
forceStringify?: boolean
|
|
6
|
-
runtimeOnly?: boolean
|
|
7
|
-
compositionOnly?: boolean
|
|
8
|
-
fullInstall?: boolean
|
|
9
|
-
include?: string | string[]
|
|
10
|
-
defaultSFCLang?: 'json' | 'json5' | 'yml' | 'yaml'
|
|
11
|
-
globalSFCScope?: boolean
|
|
12
|
-
useVueI18nImportName?: boolean
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* **Internationalization Options**
|
|
16
|
-
*
|
|
17
|
-
* Configuration for the i18n system.
|
|
18
|
-
*/
|
|
19
|
-
export declare interface I18nOptions {
|
|
20
|
-
locale: string
|
|
21
|
-
fallbackLocale: string
|
|
22
|
-
availableLocales?: string[]
|
|
23
|
-
langDir?: string
|
|
24
|
-
messages?: Translations
|
|
25
|
-
warnMissing?: boolean
|
|
26
|
-
keySeparator?: string
|
|
27
|
-
pluralSeparator?: string
|
|
28
|
-
dateTimeFormats?: DateTimeFormats
|
|
29
|
-
numberFormats?: NumberFormats
|
|
30
|
-
vite?: VitePluginVueI18nOptions
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Translation messages - can be nested objects or strings
|
|
34
|
-
*/
|
|
35
|
-
export type TranslationMessages = {
|
|
36
|
-
[key: string]: string | TranslationMessages
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* All translations keyed by locale
|
|
40
|
-
*/
|
|
41
|
-
export type Translations = {
|
|
42
|
-
[locale: string]: TranslationMessages
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Date/time format configurations per locale
|
|
46
|
-
*/
|
|
47
|
-
export type DateTimeFormats = {
|
|
48
|
-
[locale: string]: {
|
|
49
|
-
[formatName: string]: Intl.DateTimeFormatOptions
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Number format configurations per locale
|
|
54
|
-
*/
|
|
55
|
-
export type NumberFormats = {
|
|
56
|
-
[locale: string]: {
|
|
57
|
-
[formatName: string]: Intl.NumberFormatOptions
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export type I18nConfig = Partial<I18nOptions>;
|
|
61
|
-
/**
|
|
62
|
-
* Legacy alias
|
|
63
|
-
* @deprecated Use I18nOptions instead
|
|
64
|
-
*/
|
|
65
|
-
export type i18nOptions = VitePluginVueI18nOptions;
|
package/dist/index.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export * from './ai';
|
|
2
|
-
export * from './analytics';
|
|
3
|
-
export * from './api';
|
|
4
|
-
export * from './app';
|
|
5
|
-
export * from './attributes';
|
|
6
|
-
export * from './auth';
|
|
7
|
-
export * from './oauth';
|
|
8
|
-
export * from './auto-imports';
|
|
9
|
-
export * from './binary';
|
|
10
|
-
// `./build` removed — exposed `vite` / `vite-ssg` types we no longer use
|
|
11
|
-
// (Stacks builds with Bun). The same applies to `./inspect`, `./pwa`,
|
|
12
|
-
// `./ssg`, and `./layout` which all wrapped vite-* plugins.
|
|
13
|
-
export * from './cache';
|
|
14
|
-
export * from './cdn';
|
|
15
|
-
export * from './chat';
|
|
16
|
-
export * from './cli';
|
|
17
|
-
export * from './cloud';
|
|
18
|
-
export * from './cms';
|
|
19
|
-
export * from './commerce';
|
|
20
|
-
export * from './components';
|
|
21
|
-
export * from './configure';
|
|
22
|
-
export * from './cors';
|
|
23
|
-
export * from './cron-jobs';
|
|
24
|
-
export * from './dashboard';
|
|
25
|
-
// Module-augments bun-query-builder's BrowserModelDefinition with the
|
|
26
|
-
// stacks `dashboard` slot. Importing this file (transitively via the
|
|
27
|
-
// barrel) is what makes `defineModel({ dashboard: {...} })` typecheck.
|
|
28
|
-
export * from './model-dashboard-augmentation';
|
|
29
|
-
export * from './database';
|
|
30
|
-
export * from './dependencies';
|
|
31
|
-
export * from './deploy';
|
|
32
|
-
export * from './dns';
|
|
33
|
-
export * from './docs';
|
|
34
|
-
export * from './email';
|
|
35
|
-
export * from './env';
|
|
36
|
-
export * from './errors';
|
|
37
|
-
export * from './events';
|
|
38
|
-
export * from './exit-code';
|
|
39
|
-
export * from './file-systems';
|
|
40
|
-
export * from './git';
|
|
41
|
-
export * from './hashing';
|
|
42
|
-
export * from './helpers';
|
|
43
|
-
export * from './i18n';
|
|
44
|
-
export * from './library';
|
|
45
|
-
export * from './logging';
|
|
46
|
-
export * from './manifest';
|
|
47
|
-
export * from './marketing';
|
|
48
|
-
export * from './model';
|
|
49
|
-
export * from './model-names';
|
|
50
|
-
export * from './monitoring';
|
|
51
|
-
export * from './notifications';
|
|
52
|
-
export * from './pages';
|
|
53
|
-
export * from './payments';
|
|
54
|
-
export * from './phone';
|
|
55
|
-
export * from './ports';
|
|
56
|
-
export * from './promise';
|
|
57
|
-
export * from './push';
|
|
58
|
-
export * from './queue';
|
|
59
|
-
export * from './reactivity';
|
|
60
|
-
export * from './realtime';
|
|
61
|
-
export * from './request';
|
|
62
|
-
export * from './response';
|
|
63
|
-
export * from './router';
|
|
64
|
-
export * from './saas';
|
|
65
|
-
export * from './scheduler';
|
|
66
|
-
export * from './search-engine';
|
|
67
|
-
export * from './security';
|
|
68
|
-
export * from './server';
|
|
69
|
-
export * from './services';
|
|
70
|
-
export * from './settings-config';
|
|
71
|
-
export * from './sms';
|
|
72
|
-
export * from './stack-extensions';
|
|
73
|
-
export * from './stacks';
|
|
74
|
-
export * from './storage';
|
|
75
|
-
export * from './table-names';
|
|
76
|
-
export * from './tables';
|
|
77
|
-
export * from './team';
|
|
78
|
-
export * from './ui';
|
|
79
|
-
export * from './utils';
|