@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/cli.ts DELETED
@@ -1,445 +0,0 @@
1
- import type { BunFile } from 'bun'
2
- import type { Ports } from './ports'
3
-
4
- type ArrayBufferView = NodeJS.TypedArray | DataView
5
-
6
- export type { ErrorLike, SpawnOptions, Subprocess, SyncSubprocess } from 'bun'
7
- export type Readable =
8
- | 'pipe'
9
- | 'inherit'
10
- | 'ignore'
11
- | null // equivalent to 'ignore'
12
- | undefined // to use default
13
- | BunFile
14
- | ArrayBufferView
15
- | number
16
-
17
- export type Writable =
18
- | 'pipe'
19
- | 'inherit'
20
- | 'ignore'
21
- | null // equivalent to 'ignore'
22
- | undefined // to use default
23
- | BunFile
24
- | ArrayBufferView
25
- | number
26
- | ReadableStream
27
- | Blob
28
- | Response
29
- | Request
30
-
31
- export type In = Readable
32
- export type Out = Writable
33
- // export type Err = Writable // TODO: find a workaround for this to not clash with our other Err export
34
-
35
- /**
36
- * The file descriptor for the standard input. It may be:
37
- *
38
- * - `"ignore"`, `null`, `undefined`: The process will have no standard input
39
- * - `"pipe"`: The process will have a new {@link FileSink} for standard input
40
- * - `"inherit"`: The process will inherit the standard input of the current process
41
- * - `ArrayBufferView`, `Blob`: The process will read from the buffer
42
- * - `number`: The process will read from the file descriptor
43
- *
44
- * @default "ignore"
45
- */
46
- export type stdin = 'ignore' | 'inherit' | 'pipe' | ArrayBufferView | number | null | undefined
47
-
48
- /**
49
- * The file descriptor for the standard output. It may be:
50
- *
51
- * - `"pipe"`, `undefined`: The process will have a {@link ReadableStream} for standard output/error
52
- * - `"ignore"`, `null`: The process will have no standard output/error
53
- * - `"inherit"`: The process will inherit the standard output/error of the current process
54
- * - `ArrayBufferView`: The process write to the preallocated buffer. Not implemented.
55
- * - `number`: The process will write to the file descriptor
56
- *
57
- * @default "pipe"
58
- */
59
- export type stdout = 'ignore' | 'inherit' | 'pipe' | ArrayBufferView | number
60
-
61
- /**
62
- * The file descriptor for the standard error. It may be:
63
- *
64
- * - `"pipe"`, `undefined`: The process will have a {@link ReadableStream} for standard output/error
65
- * - `"ignore"`, `null`: The process will have no standard output/error
66
- * - `"inherit"`: The process will inherit the standard output/error of the current process
67
- * - `ArrayBufferView`: The process write to the preallocated buffer. Not implemented.
68
- * - `number`: The process will write to the file descriptor
69
- *
70
- * @default "inherit" for `spawn`
71
- * "pipe" for `spawnSync`
72
- */
73
- export type stderr = 'ignore' | 'inherit' | 'pipe' | ArrayBufferView | number
74
-
75
- export interface OutroOptions extends CliOptions {
76
- type?: 'success' | 'error' | 'warning' | 'info'
77
- startTime?: number
78
- useSeconds?: boolean
79
- quiet?: boolean
80
- message?: string
81
- }
82
-
83
- export interface IntroOptions {
84
- /**
85
- * @default true
86
- */
87
- showPerformance?: boolean
88
-
89
- /**
90
- * @default false
91
- */
92
- quiet: boolean
93
- }
94
-
95
- // type SpinnerOptions = Ora
96
-
97
- export type CliOptionsKeys = keyof CliOptions
98
-
99
- /**
100
- * The options to pass to the CLI.
101
- */
102
- export interface CliOptions {
103
- /**
104
- * **Verbose Output**
105
- *
106
- * When your application is in "verbose"-mode, a different level of,
107
- * information like useful outputs for debugging reasons, will be
108
- * shown. When disabled, it defaults to the "normal experience."
109
- *
110
- * @default false
111
- */
112
- verbose?: boolean
113
-
114
- /**
115
- * **Silent Mode**
116
- *
117
- * When you are using "silent"-mode, the CLI will not output anything
118
- * to the console. This is useful when you want to run the CLI in
119
- * the background.
120
- *
121
- * @default false
122
- */
123
- silent?: boolean
124
-
125
- /**
126
- * **Quiet Mode**
127
- *
128
- * When you are using "quiet"-mode, the CLI will output minimally
129
- * to the console.
130
- *
131
- * @default false
132
- */
133
- quiet?: boolean
134
-
135
- /**
136
- * **Current Work Directory**
137
- *
138
- * Based on the `cwd` value, that's where the command...
139
- *
140
- * @default projectPath()
141
- */
142
- cwd?: string
143
-
144
- stdio?: [In, Out, Out]
145
-
146
- /**
147
- * **stdio**
148
- *
149
- * The `stdio` option lets you configure the standard I/O of the spawned process.
150
- *
151
- */
152
- // stdio?: [SpawnOptions.Writable, SpawnOptions.Readable, SpawnOptions.Readable]
153
-
154
- /**
155
- * @default 'pipe'
156
- */
157
- stdin?: stdin
158
-
159
- /**
160
- * @default 'pipe'
161
- */
162
- stdout?: stdout
163
-
164
- /**
165
- * @default 'inherit'
166
- */
167
- stderr?: stderr
168
-
169
- env?: Record<string, string | undefined>
170
-
171
- /**
172
- * Runs the action in interactive/detached mode.
173
- * @default false
174
- */
175
- background?: boolean
176
-
177
- timeoutMs?: number
178
-
179
- startTime?: number
180
-
181
- /**
182
- * Include the localhost URL in the output.
183
- * @default false
184
- */
185
- withLocalhost?: boolean
186
-
187
- input?: string | ArrayBufferView | ReadableStream | Blob | Response | Request
188
-
189
- project?: string // TODO: can create an action that automates creating a type for this
190
- }
191
-
192
- export type CliConfig = CliOptions
193
-
194
- // export type { Ora as SpinnerOptions } from 'ora'
195
-
196
- // the `domains` option is only available for the `deploy` command
197
- // the `count` option is only available for the `seed` command
198
- export type ActionOption = 'types' | 'domains' | 'count'
199
-
200
- /**
201
- * The options to pass to the Action.
202
- */
203
- export type ActionOptions = {
204
- types?: boolean
205
- domains?: boolean
206
- count?: number
207
- dryRun?: boolean // used in buddy release
208
- } & CliOptions &
209
- DomainsOptions
210
-
211
- export type BuildOption =
212
- | 'components'
213
- | 'webComponents'
214
- | 'elements'
215
- | 'functions'
216
- | 'docs'
217
- | 'views'
218
- | 'stacks'
219
- | 'all'
220
- | 'buddy'
221
- | 'server'
222
- export type BuildOptions = {
223
- [key in BuildOption]: boolean
224
- } & CliOptions
225
-
226
- export type AddOption = 'table' | 'calendar' | 'all'
227
- export type AddOptions = {
228
- [key in AddOption]?: boolean
229
- } & CliOptions
230
-
231
- export type CreateStringOption = 'name'
232
- export type CreateBooleanOption =
233
- | 'ui'
234
- | 'components'
235
- | 'web-components'
236
- | 'vue'
237
- | 'views'
238
- | 'functions'
239
- | 'api'
240
- | 'database'
241
- | 'minimal'
242
- export type CreateOptions = {
243
- [key in CreateBooleanOption]: boolean
244
- } & {
245
- [key in CreateStringOption]: string
246
- } & CliOptions
247
-
248
- export type DevOption =
249
- | 'components'
250
- | 'docs'
251
- | 'frontend'
252
- | 'api'
253
- | 'desktop'
254
- | 'native'
255
- | 'all'
256
- | 'email'
257
- | 'system-tray'
258
- | 'interactive'
259
- | 'verbose'
260
- export type DevOptions = {
261
- [key in DevOption]: boolean
262
- } & CliOptions
263
-
264
- export type GeneratorOption =
265
- | 'types'
266
- | 'entries'
267
- | 'webTypes'
268
- | 'customData'
269
- | 'ideHelpers'
270
- | 'componentMeta'
271
- | 'coreSymlink'
272
- | 'openApiSpec'
273
- | 'pantryConfig'
274
- | 'openapi'
275
- | 'modelFiles'
276
- export type GeneratorOptions = {
277
- [key in GeneratorOption]?: boolean
278
- } & CliOptions
279
-
280
- export type LintOption = 'fix'
281
- export type LintOptions = {
282
- [key in LintOption]: boolean
283
- } & CliOptions
284
-
285
- export type MakeStringOption = 'name' | 'chat' | 'sms' | 'env'
286
- export type MakeBooleanOption =
287
- | 'component'
288
- | 'page'
289
- | 'function'
290
- | 'language'
291
- | 'database'
292
- | 'migration'
293
- | 'model'
294
- | 'notification'
295
- | 'stack'
296
- | 'middleware'
297
- | 'dryRun'
298
- | 'withValidation'
299
- | 'withAuth'
300
- export type MakeOptions = {
301
- [key in MakeBooleanOption]: boolean
302
- } & {
303
- [key in MakeStringOption]: string
304
- } & CliOptions
305
-
306
- export type UpgradeBoolean = 'framework' | 'dependencies' | 'bun' | 'shell' | 'binary' | 'all' | 'force' | 'canary' | 'stable' | 'noPostinstall' | 'postinstall'
307
-
308
- export type UpgradeString = 'version' | 'from'
309
-
310
- export type UpgradeOptions = {
311
- [key in UpgradeBoolean]?: boolean
312
- } & {
313
- [key in UpgradeString]?: string
314
- } & CliOptions
315
-
316
- export type ExamplesString = 'version'
317
- export type ExamplesBoolean = 'components' | 'vue' | 'webComponents' | 'elements' | 'all' | 'force'
318
- export type ExamplesOption = ExamplesString & ExamplesBoolean
319
- export type ExamplesOptions = {
320
- [key in ExamplesString]: string
321
- } & {
322
- [key in ExamplesBoolean]: boolean
323
- } & CliOptions
324
- export type TestingOptions = CliOptions & {
325
- ui?: boolean
326
- feature?: boolean
327
- unit?: boolean
328
- }
329
- export type DomainsOptions = CliOptions & {
330
- domain?: string
331
- yes?: boolean
332
- years?: number
333
- privacy?: boolean
334
- autoRenew?: boolean
335
- registrantFirstName?: string
336
- registrantLastName?: string
337
- registrantOrganization?: string
338
- registrantAddress?: string
339
- registrantCity?: string
340
- registrantState?: string
341
- registrantCountry?: string
342
- registrantZip?: string
343
- registrantPhone?: string
344
- registrantEmail?: string
345
- adminFirstName?: string
346
- adminLastName?: string
347
- adminOrganization?: string
348
- adminAddress?: string
349
- adminCity?: string
350
- adminState?: string
351
- adminCountry?: string
352
- adminZip?: string
353
- adminPhone?: string
354
- adminEmail?: string
355
- techFirstName?: string
356
- techLastName?: string
357
- techOrganization?: string
358
- techAddress?: string
359
- techCity?: string
360
- techState?: string
361
- techCountry?: string
362
- techZip?: string
363
- techPhone?: string
364
- techEmail?: string
365
- privacyAdmin?: boolean
366
- privacyTech?: boolean
367
- privacyRegistrant?: boolean
368
- contactType?: string
369
- }
370
-
371
- export interface CleanOptions extends CliOptions {}
372
-
373
- export interface CloudCliOptions extends CliOptions {
374
- ssh?: boolean
375
- connect?: boolean
376
- jumpBox?: boolean
377
- invalidateCache?: boolean
378
- paths?: string
379
- diff?: boolean
380
- }
381
- export interface CommitOptions extends CliOptions {}
382
- export interface FreshOptions extends CliOptions {
383
- dryRun?: boolean
384
- quiet?: boolean
385
- }
386
-
387
- export interface InspireOptions extends CliOptions {}
388
- export interface InstallOptions extends CliOptions {}
389
-
390
- export interface KeyOptions extends CliOptions {}
391
-
392
- export interface MigrateOptions extends CliOptions {
393
- diff?: boolean
394
- }
395
-
396
- export interface CliQueueOptions extends CliOptions {
397
- queue?: string
398
- id?: string | number
399
- all?: boolean
400
- force?: boolean
401
- connection?: string
402
- }
403
-
404
- export interface ReleaseOptions extends CliOptions {
405
- dryRun?: boolean
406
- bump?: 'patch' | 'minor' | 'major' | 'prepatch' | 'preminor' | 'premajor' | 'prerelease' | string
407
- }
408
-
409
- export interface ChangelogOptions extends CliOptions {
410
- dryRun?: boolean
411
- from?: string
412
- to?: string
413
- version?: string
414
- }
415
-
416
- export interface ProjectsOptions extends CliOptions {
417
- list?: boolean
418
- }
419
- export interface PreinstallOptions extends CliOptions {}
420
- export interface PrepublishOptions extends CliOptions {}
421
- export interface PortsOptions extends CliOptions {
422
- ports?: Partial<Ports>
423
- }
424
-
425
- export interface SaasOptions extends CliOptions {}
426
-
427
- export interface SearchCommandOptions extends CliOptions {
428
- model: string
429
- settings: boolean
430
- flush: boolean
431
- }
432
-
433
- export interface ScheduleOptions extends CliOptions {}
434
-
435
- export interface TinkerOptions extends CliOptions {
436
- eval?: string | boolean
437
- print?: string | boolean
438
- noBanner?: boolean
439
- preload?: string
440
- }
441
- export interface TypesOptions extends CliOptions {}
442
-
443
- export type LibEntryType = 'web-components' | 'functions' | 'all'
444
-
445
- export type { CLI } from '@stacksjs/clapp'