@stacksjs/types 0.67.0 → 0.68.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 (76) hide show
  1. package/dist/ai.d.ts +17 -14
  2. package/dist/analytics.d.ts +12 -14
  3. package/dist/api.d.ts +25 -66
  4. package/dist/app.d.ts +29 -134
  5. package/dist/auto-imports.d.ts +1 -1
  6. package/dist/binary.d.ts +7 -10
  7. package/dist/build.d.ts +2 -2
  8. package/dist/cache.d.ts +48 -77
  9. package/dist/cdn.d.ts +3 -15
  10. package/dist/chat.d.ts +2 -2
  11. package/dist/cli.d.ts +252 -239
  12. package/dist/cloud.d.ts +305 -68
  13. package/dist/components.d.ts +11 -59
  14. package/dist/configure.d.ts +11 -11
  15. package/dist/cron-jobs.d.ts +34 -41
  16. package/dist/database.d.ts +50 -45
  17. package/dist/dependencies.d.ts +15 -61
  18. package/dist/deploy.d.ts +10 -16
  19. package/dist/dns.d.ts +349 -167
  20. package/dist/docs.d.ts +20 -19
  21. package/dist/email.d.ts +15 -10
  22. package/dist/errors.d.ts +87 -69
  23. package/dist/events.d.ts +3 -30
  24. package/dist/exit-code.d.ts +4 -9
  25. package/dist/file-systems.d.ts +52 -56
  26. package/dist/git.d.ts +54 -126
  27. package/dist/hashing.d.ts +30 -97
  28. package/dist/helpers.d.ts +1 -1
  29. package/dist/i18n.d.ts +10 -18
  30. package/dist/index.d.ts +62 -61
  31. package/dist/index.js +1 -1
  32. package/dist/inspect.d.ts +3 -9
  33. package/dist/library.d.ts +798 -139
  34. package/dist/logging.d.ts +5 -27
  35. package/dist/manifest.d.ts +6 -9
  36. package/dist/model-names.d.ts +1 -1
  37. package/dist/model.d.ts +150 -130
  38. package/dist/notifications.d.ts +150 -105
  39. package/dist/pages.d.ts +10 -10
  40. package/dist/payments.d.ts +84 -55
  41. package/dist/ports.d.ts +13 -20
  42. package/dist/promise.d.ts +1 -1
  43. package/dist/push.d.ts +34 -30
  44. package/dist/pwa.d.ts +3 -7
  45. package/dist/queue.d.ts +36 -33
  46. package/dist/reactivity.d.ts +1 -1
  47. package/dist/request.d.ts +39 -26
  48. package/dist/router.d.ts +51 -51
  49. package/dist/saas.d.ts +32 -0
  50. package/dist/scheduler.d.ts +1 -1
  51. package/dist/search-engine.d.ts +85 -111
  52. package/dist/security.d.ts +18 -16
  53. package/dist/server.d.ts +16 -6
  54. package/dist/services.d.ts +34 -28
  55. package/dist/settings-config.d.ts +8 -8
  56. package/dist/ssg.d.ts +3 -2
  57. package/dist/stacks.d.ts +53 -203
  58. package/dist/storage.d.ts +29 -36
  59. package/dist/tables.d.ts +34 -52
  60. package/dist/team.d.ts +7 -8
  61. package/dist/ui.d.ts +39 -162
  62. package/dist/utils.d.ts +20 -30
  63. package/package.json +8 -8
  64. package/src/cli.ts +2 -0
  65. package/src/cloud.ts +16 -4
  66. package/src/errors.ts +8 -0
  67. package/src/index.ts +1 -0
  68. package/src/model-names.ts +1 -1
  69. package/src/model.ts +6 -0
  70. package/src/payments.ts +32 -0
  71. package/src/saas.ts +33 -0
  72. package/src/stacks.ts +10 -0
  73. package/dist/env.d.ts +0 -0
  74. package/dist/layout.d.ts +0 -0
  75. package/dist/native.d.ts +0 -0
  76. package/dist/sms.d.ts +0 -0
package/dist/cli.d.ts CHANGED
@@ -1,253 +1,266 @@
1
- import type { BunFile } from "bun";
2
- import type { Ports } from "./ports";
3
- type ArrayBufferView = NodeJS.TypedArray | DataView;
4
- export type { ErrorLike, SpawnOptions, Subprocess, SyncSubprocess } from "bun";
5
- export type Readable = "pipe" | "inherit" | "ignore" | null | undefined | BunFile | ArrayBufferView | number;
6
- export type Writable = "pipe" | "inherit" | "ignore" | null | undefined | BunFile | ArrayBufferView | number | ReadableStream | Blob | Response | Request;
7
- export type In = Readable;
8
- export type Out = Writable;
9
- /**
10
- * The file descriptor for the standard input. It may be:
11
- *
12
- * - `"ignore"`, `null`, `undefined`: The process will have no standard input
13
- * - `"pipe"`: The process will have a new {@link FileSink} for standard input
14
- * - `"inherit"`: The process will inherit the standard input of the current process
15
- * - `ArrayBufferView`, `Blob`: The process will read from the buffer
16
- * - `number`: The process will read from the file descriptor
17
- *
18
- * @default "ignore"
19
- */
20
- export type stdin = "ignore" | "inherit" | "pipe" | ArrayBufferView | number | null | undefined;
21
- /**
22
- * The file descriptor for the standard output. It may be:
23
- *
24
- * - `"pipe"`, `undefined`: The process will have a {@link ReadableStream} for standard output/error
25
- * - `"ignore"`, `null`: The process will have no standard output/error
26
- * - `"inherit"`: The process will inherit the standard output/error of the current process
27
- * - `ArrayBufferView`: The process write to the preallocated buffer. Not implemented.
28
- * - `number`: The process will write to the file descriptor
29
- *
30
- * @default "pipe"
31
- */
32
- export type stdout = "ignore" | "inherit" | "pipe" | ArrayBufferView | number;
33
- /**
34
- * The file descriptor for the standard error. It may be:
35
- *
36
- * - `"pipe"`, `undefined`: The process will have a {@link ReadableStream} for standard output/error
37
- * - `"ignore"`, `null`: The process will have no standard output/error
38
- * - `"inherit"`: The process will inherit the standard output/error of the current process
39
- * - `ArrayBufferView`: The process write to the preallocated buffer. Not implemented.
40
- * - `number`: The process will write to the file descriptor
41
- *
42
- * @default "inherit" for `spawn`
43
- * "pipe" for `spawnSync`
44
- */
45
- export type stderr = "ignore" | "inherit" | "pipe" | ArrayBufferView | number;
46
- export interface OutroOptions extends CliOptions {
47
- type?: "success" | "error" | "warning" | "info";
48
- startTime?: number;
49
- useSeconds?: boolean;
50
- quiet?: boolean;
51
- message?: string;
1
+ import type { BunFile } from 'bun';
2
+ import type { Ports } from './ports';
3
+
4
+ export type { ErrorLike, SpawnOptions, Subprocess, SyncSubprocess } from 'bun';
5
+ export type { CAC as CLI } from 'cac';
6
+ declare type ArrayBufferView = NodeJS.TypedArray | DataView
7
+ export declare type Readable =
8
+ | 'pipe'
9
+ | 'inherit'
10
+ | 'ignore'
11
+ | null
12
+ | undefined
13
+ | BunFile
14
+ | ArrayBufferView
15
+ | number
16
+ export declare type Writable =
17
+ | 'pipe'
18
+ | 'inherit'
19
+ | 'ignore'
20
+ | null
21
+ | undefined
22
+ | BunFile
23
+ | ArrayBufferView
24
+ | number
25
+ | ReadableStream
26
+ | Blob
27
+ | Response
28
+ | Request
29
+ export declare type In = Readable
30
+ export type Out = Writable
31
+ export declare type stdin = 'ignore' | 'inherit' | 'pipe' | ArrayBufferView | number | null | undefined
32
+ export declare type stdout = 'ignore' | 'inherit' | 'pipe' | ArrayBufferView | number
33
+ export declare type stderr = 'ignore' | 'inherit' | 'pipe' | ArrayBufferView | number
34
+ export declare interface OutroOptions extends CliOptions {
35
+ type?: 'success' | 'error' | 'warning' | 'info'
36
+ startTime?: number
37
+ useSeconds?: boolean
38
+ quiet?: boolean
39
+ message?: string
52
40
  }
53
- export interface IntroOptions {
54
- /**
55
- * @default true
56
- */
57
- showPerformance?: boolean;
58
- /**
59
- * @default false
60
- */
61
- quiet: boolean;
41
+ export declare interface IntroOptions {
42
+ showPerformance?: boolean
43
+
44
+ quiet: boolean
62
45
  }
63
- export type CliOptionsKeys = keyof CliOptions;
64
- /**
65
- * The options to pass to the CLI.
66
- */
67
- export interface CliOptions {
68
- /**
69
- * **Verbose Output**
70
- *
71
- * When your application is in "verbose"-mode, a different level of,
72
- * information like useful outputs for debugging reasons, will be
73
- * shown. When disabled, it defaults to the "normal experience."
74
- *
75
- * @default false
76
- */
77
- verbose?: boolean;
78
- /**
79
- * **Silent Mode**
80
- *
81
- * When you are using "silent"-mode, the CLI will not output anything
82
- * to the console. This is useful when you want to run the CLI in
83
- * the background.
84
- *
85
- * @default false
86
- */
87
- silent?: boolean;
88
- /**
89
- * **Quiet Mode**
90
- *
91
- * When you are using "quiet"-mode, the CLI will output minimally
92
- * to the console.
93
- *
94
- * @default false
95
- */
96
- quiet?: boolean;
97
- /**
98
- * **Current Work Directory**
99
- *
100
- * Based on the `cwd` value, that's where the command...
101
- *
102
- * @default projectPath()
103
- */
104
- cwd?: string;
105
- stdio?: [In, Out, Out];
106
- /**
107
- * **stdio**
108
- *
109
- * The `stdio` option lets you configure the standard I/O of the spawned process.
110
- *
111
- */
112
- /**
113
- * @default 'pipe'
114
- */
115
- stdin?: stdin;
116
- /**
117
- * @default 'pipe'
118
- */
119
- stdout?: stdout;
120
- /**
121
- * @default 'inherit'
122
- */
123
- stderr?: stderr;
124
- env?: Record<string, string | undefined>;
125
- /**
126
- * Runs the action in interactive/detached mode.
127
- * @default false
128
- */
129
- background?: boolean;
130
- startTime?: number;
131
- /**
132
- * Include the localhost URL in the output.
133
- * @default false
134
- */
135
- withLocalhost?: boolean;
136
- input?: string | ArrayBufferView | ReadableStream | Blob | Response | Request;
137
- project?: string;
46
+ export declare type CliOptionsKeys = keyof CliOptions
47
+ export declare interface CliOptions {
48
+ verbose?: boolean
49
+
50
+ silent?: boolean
51
+
52
+ quiet?: boolean
53
+
54
+ cwd?: string
55
+
56
+ stdio?: [In, Out, Out]
57
+
58
+
59
+ stdin?: stdin
60
+
61
+ stdout?: stdout
62
+
63
+ stderr?: stderr
64
+
65
+ env?: Record<string, string | undefined>
66
+
67
+ background?: boolean
68
+
69
+ startTime?: number
70
+
71
+ withLocalhost?: boolean
72
+
73
+ input?: string | ArrayBufferView | ReadableStream | Blob | Response | Request
74
+
75
+ project?: string
138
76
  }
139
- export type CliConfig = CliOptions;
140
- export type ActionOption = "types" | "domains" | "count";
141
- /**
142
- * The options to pass to the Action.
143
- */
144
- export type ActionOptions = {
145
- types?: boolean;
146
- domains?: boolean;
147
- count?: number;
148
- dryRun?: boolean;
149
- } & CliOptions & DomainsOptions;
150
- export type BuildOption = "components" | "vueComponents" | "webComponents" | "elements" | "functions" | "docs" | "views" | "stacks" | "all" | "buddy" | "server";
151
- export type BuildOptions = { [key in BuildOption] : boolean } & CliOptions;
152
- export type AddOption = "table" | "calendar" | "all";
153
- export type AddOptions = { [key in AddOption]? : boolean } & CliOptions;
154
- export type CreateStringOption = "name";
155
- export type CreateBooleanOption = "ui" | "components" | "web-components" | "vue" | "views" | "functions" | "api" | "database";
156
- export type CreateOptions = { [key in CreateBooleanOption] : boolean } & { [key in CreateStringOption] : string } & CliOptions;
157
- export type DevOption = "components" | "docs" | "frontend" | "api" | "desktop" | "all" | "email" | "system-tray" | "interactive" | "verbose";
158
- export type DevOptions = { [key in DevOption] : boolean } & CliOptions;
159
- export type GeneratorOption = "types" | "entries" | "webTypes" | "customData" | "ideHelpers" | "componentMeta" | "coreSymlink" | "openApiSpec" | "pkgxConfig" | "openapi" | "modelFiles";
160
- export type GeneratorOptions = { [key in GeneratorOption]? : boolean } & CliOptions;
161
- export type LintOption = "fix";
162
- export type LintOptions = { [key in LintOption] : boolean } & CliOptions;
163
- export type MakeStringOption = "name" | "chat" | "sms" | "env";
164
- export type MakeBooleanOption = "component" | "page" | "function" | "language" | "database" | "migration" | "model" | "notification" | "stack";
165
- export type MakeOptions = { [key in MakeBooleanOption] : boolean } & { [key in MakeStringOption] : string } & CliOptions;
166
- export type UpgradeBoolean = "framework" | "dependencies" | "bun" | "shell" | "binary" | "all" | "force";
167
- export type UpgradeString = "version";
168
- export type UpgradeOptions = { [key in UpgradeBoolean] : boolean } & { [key in UpgradeString] : string } & CliOptions;
169
- export type ExamplesString = "version";
170
- export type ExamplesBoolean = "components" | "vue" | "webComponents" | "elements" | "all" | "force";
171
- export type ExamplesOption = ExamplesString & ExamplesBoolean;
172
- export type ExamplesOptions = { [key in ExamplesString] : string } & { [key in ExamplesBoolean] : boolean } & CliOptions;
173
- export type TestOptions = CliOptions & {
174
- ui?: boolean;
175
- feature?: boolean;
176
- unit?: boolean;
177
- };
178
- export type DomainsOptions = CliOptions & {
179
- domain?: string;
180
- yes?: boolean;
181
- years?: number;
182
- privacy?: boolean;
183
- autoRenew?: boolean;
184
- registrantFirstName?: string;
185
- registrantLastName?: string;
186
- registrantOrganization?: string;
187
- registrantAddress?: string;
188
- registrantCity?: string;
189
- registrantState?: string;
190
- registrantCountry?: string;
191
- registrantZip?: string;
192
- registrantPhone?: string;
193
- registrantEmail?: string;
194
- adminFirstName?: string;
195
- adminLastName?: string;
196
- adminOrganization?: string;
197
- adminAddress?: string;
198
- adminCity?: string;
199
- adminState?: string;
200
- adminCountry?: string;
201
- adminZip?: string;
202
- adminPhone?: string;
203
- adminEmail?: string;
204
- techFirstName?: string;
205
- techLastName?: string;
206
- techOrganization?: string;
207
- techAddress?: string;
208
- techCity?: string;
209
- techState?: string;
210
- techCountry?: string;
211
- techZip?: string;
212
- techPhone?: string;
213
- techEmail?: string;
214
- privacyAdmin?: boolean;
215
- privacyTech?: boolean;
216
- privacyRegistrant?: boolean;
217
- contactType?: string;
218
- };
219
- export interface CleanOptions extends CliOptions {}
77
+ export declare type CliConfig = CliOptions
78
+
79
+
80
+ export type ActionOption = 'types' | 'domains' | 'count'
81
+ export declare type ActionOptions = {
82
+ types?: boolean
83
+ domains?: boolean
84
+ count?: number
85
+ dryRun?: boolean
86
+ } & CliOptions &
87
+ DomainsOptions
88
+ export declare type BuildOption =
89
+ | 'components'
90
+ | 'vueComponents'
91
+ | 'webComponents'
92
+ | 'elements'
93
+ | 'functions'
94
+ | 'docs'
95
+ | 'views'
96
+ | 'stacks'
97
+ | 'all'
98
+ | 'buddy'
99
+ | 'server'
100
+ export declare type BuildOptions = {
101
+ [key in BuildOption]: boolean
102
+ } & CliOptions
103
+ export declare type AddOption = 'table' | 'calendar' | 'all'
104
+ export type AddOptions = {
105
+ [key in AddOption]?: boolean
106
+ } & CliOptions
107
+ export declare type CreateStringOption = 'name'
108
+ export type CreateBooleanOption =
109
+ | 'ui'
110
+ | 'components'
111
+ | 'web-components'
112
+ | 'vue'
113
+ | 'views'
114
+ | 'functions'
115
+ | 'api'
116
+ | 'database'
117
+ export declare type CreateOptions = {
118
+ [key in CreateBooleanOption]: boolean
119
+ } & {
120
+ [key in CreateStringOption]: string
121
+ } & CliOptions
122
+ export declare type DevOption =
123
+ | 'components'
124
+ | 'docs'
125
+ | 'frontend'
126
+ | 'api'
127
+ | 'desktop'
128
+ | 'all'
129
+ | 'email'
130
+ | 'system-tray'
131
+ | 'interactive'
132
+ | 'verbose'
133
+ export declare type DevOptions = {
134
+ [key in DevOption]: boolean
135
+ } & CliOptions
136
+ export declare type GeneratorOption =
137
+ | 'types'
138
+ | 'entries'
139
+ | 'webTypes'
140
+ | 'customData'
141
+ | 'ideHelpers'
142
+ | 'componentMeta'
143
+ | 'coreSymlink'
144
+ | 'openApiSpec'
145
+ | 'pkgxConfig'
146
+ | 'openapi'
147
+ | 'modelFiles'
148
+ export declare type GeneratorOptions = {
149
+ [key in GeneratorOption]?: boolean
150
+ } & CliOptions
151
+ export declare type LintOption = 'fix'
152
+ export type LintOptions = {
153
+ [key in LintOption]: boolean
154
+ } & CliOptions
155
+ export declare type MakeStringOption = 'name' | 'chat' | 'sms' | 'env'
156
+ export type MakeBooleanOption =
157
+ | 'component'
158
+ | 'page'
159
+ | 'function'
160
+ | 'language'
161
+ | 'database'
162
+ | 'migration'
163
+ | 'model'
164
+ | 'notification'
165
+ | 'stack'
166
+ export declare type MakeOptions = {
167
+ [key in MakeBooleanOption]: boolean
168
+ } & {
169
+ [key in MakeStringOption]: string
170
+ } & CliOptions
171
+ export declare type UpgradeBoolean = 'framework' | 'dependencies' | 'bun' | 'shell' | 'binary' | 'all' | 'force'
172
+ export declare type UpgradeString = 'version'
173
+ export declare type UpgradeOptions = {
174
+ [key in UpgradeBoolean]: boolean
175
+ } & {
176
+ [key in UpgradeString]: string
177
+ } & CliOptions
178
+ export declare type ExamplesString = 'version'
179
+ export type ExamplesBoolean = 'components' | 'vue' | 'webComponents' | 'elements' | 'all' | 'force'
180
+ export declare type ExamplesOption = ExamplesString & ExamplesBoolean
181
+ export type ExamplesOptions = {
182
+ [key in ExamplesString]: string
183
+ } & {
184
+ [key in ExamplesBoolean]: boolean
185
+ } & CliOptions
186
+ export declare type TestOptions = CliOptions & {
187
+ ui?: boolean
188
+ feature?: boolean
189
+ unit?: boolean
190
+ }
191
+ export declare type DomainsOptions = CliOptions & {
192
+ domain?: string
193
+ yes?: boolean
194
+ years?: number
195
+ privacy?: boolean
196
+ autoRenew?: boolean
197
+ registrantFirstName?: string
198
+ registrantLastName?: string
199
+ registrantOrganization?: string
200
+ registrantAddress?: string
201
+ registrantCity?: string
202
+ registrantState?: string
203
+ registrantCountry?: string
204
+ registrantZip?: string
205
+ registrantPhone?: string
206
+ registrantEmail?: string
207
+ adminFirstName?: string
208
+ adminLastName?: string
209
+ adminOrganization?: string
210
+ adminAddress?: string
211
+ adminCity?: string
212
+ adminState?: string
213
+ adminCountry?: string
214
+ adminZip?: string
215
+ adminPhone?: string
216
+ adminEmail?: string
217
+ techFirstName?: string
218
+ techLastName?: string
219
+ techOrganization?: string
220
+ techAddress?: string
221
+ techCity?: string
222
+ techState?: string
223
+ techCountry?: string
224
+ techZip?: string
225
+ techPhone?: string
226
+ techEmail?: string
227
+ privacyAdmin?: boolean
228
+ privacyTech?: boolean
229
+ privacyRegistrant?: boolean
230
+ contactType?: string
231
+ }
232
+ export declare interface CleanOptions extends CliOptions {}
233
+ export declare interface SaasOptions extends CliOptions {}
220
234
  export interface CloudCliOptions extends CliOptions {
221
- ssh?: boolean;
222
- connect?: boolean;
223
- jumpBox?: boolean;
224
- invalidateCache?: boolean;
225
- paths?: string;
226
- diff?: boolean;
235
+ ssh?: boolean
236
+ connect?: boolean
237
+ jumpBox?: boolean
238
+ invalidateCache?: boolean
239
+ paths?: string
240
+ diff?: boolean
227
241
  }
228
- export interface CommitOptions extends CliOptions {}
242
+ export declare interface CommitOptions extends CliOptions {}
229
243
  export interface KeyOptions extends CliOptions {}
230
- export interface FreshOptions extends CliOptions {
231
- dryRun?: boolean;
232
- quiet?: boolean;
244
+ export declare interface FreshOptions extends CliOptions {
245
+ dryRun?: boolean
246
+ quiet?: boolean
233
247
  }
234
- export interface MigrateOptions extends CliOptions {
235
- diff?: boolean;
248
+ export declare interface MigrateOptions extends CliOptions {
249
+ diff?: boolean
236
250
  }
237
- export interface InspireOptions extends CliOptions {}
251
+ export declare interface InspireOptions extends CliOptions {}
238
252
  export interface InstallOptions extends CliOptions {}
239
- export interface ReleaseOptions extends CliOptions {
240
- dryRun?: boolean;
253
+ export declare interface ReleaseOptions extends CliOptions {
254
+ dryRun?: boolean
241
255
  }
242
- export interface ProjectsOptions extends CliOptions {
243
- list?: boolean;
256
+ export declare interface ProjectsOptions extends CliOptions {
257
+ list?: boolean
244
258
  }
245
- export interface PreinstallOptions extends CliOptions {}
259
+ export declare interface PreinstallOptions extends CliOptions {}
246
260
  export interface PrepublishOptions extends CliOptions {}
247
- export interface PortsOptions extends CliOptions {
248
- ports?: Partial<Ports>;
261
+ export declare interface PortsOptions extends CliOptions {
262
+ ports?: Partial<Ports>
249
263
  }
250
- export interface TinkerOptions extends CliOptions {}
264
+ export declare interface TinkerOptions extends CliOptions {}
251
265
  export interface TypesOptions extends CliOptions {}
252
- export type LibEntryType = "vue-components" | "web-components" | "functions" | "all";
253
- export type { CAC as CLI } from "cac";
266
+ export declare type LibEntryType = 'vue-components' | 'web-components' | 'functions' | 'all'