@stacksjs/types 0.64.6 → 0.65.0

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 (87) hide show
  1. package/dist/ai.d.ts +15 -0
  2. package/dist/analytics.d.ts +15 -0
  3. package/dist/api.d.ts +67 -0
  4. package/dist/app.d.ts +135 -0
  5. package/dist/auto-imports.d.ts +1 -0
  6. package/dist/binary.d.ts +11 -0
  7. package/dist/build.d.ts +2 -0
  8. package/dist/cache.d.ts +62 -0
  9. package/dist/cdn.d.ts +16 -0
  10. package/dist/chat.d.ts +3 -0
  11. package/dist/cli.d.ts +246 -0
  12. package/dist/cloud.d.ts +69 -0
  13. package/dist/components.d.ts +60 -0
  14. package/dist/configure.d.ts +12 -0
  15. package/dist/cron-jobs.d.ts +43 -0
  16. package/dist/database.d.ts +47 -0
  17. package/dist/dependencies.d.ts +62 -0
  18. package/dist/deploy.d.ts +16 -0
  19. package/dist/dns.d.ts +175 -0
  20. package/dist/docs.d.ts +22 -0
  21. package/dist/email.d.ts +11 -0
  22. package/dist/env.d.ts +0 -0
  23. package/dist/errors.d.ts +70 -0
  24. package/dist/events.d.ts +30 -0
  25. package/dist/exit-code.d.ts +10 -0
  26. package/dist/file-systems.d.ts +60 -0
  27. package/dist/git.d.ts +128 -0
  28. package/dist/hashing.d.ts +100 -0
  29. package/dist/helpers.d.ts +1 -0
  30. package/dist/i18n.d.ts +19 -0
  31. package/dist/index.d.ts +61 -0
  32. package/dist/index.js +3 -2
  33. package/dist/index.js.map +11 -10
  34. package/dist/inspect.d.ts +9 -0
  35. package/dist/layout.d.ts +0 -0
  36. package/dist/library.d.ts +142 -0
  37. package/dist/logging.d.ts +28 -0
  38. package/dist/manifest.d.ts +9 -0
  39. package/dist/model-names.d.ts +1 -0
  40. package/dist/model.d.ts +144 -0
  41. package/dist/native.d.ts +0 -0
  42. package/dist/notifications.d.ts +106 -0
  43. package/dist/pages.d.ts +10 -0
  44. package/dist/payments.d.ts +60 -0
  45. package/dist/ports.d.ts +20 -0
  46. package/dist/promise.d.ts +1 -0
  47. package/dist/push.d.ts +31 -0
  48. package/dist/pwa.d.ts +7 -0
  49. package/dist/queue.d.ts +34 -0
  50. package/dist/reactivity.d.ts +1 -0
  51. package/dist/request.d.ts +30 -0
  52. package/dist/router.d.ts +55 -0
  53. package/dist/scheduler.d.ts +1 -0
  54. package/dist/search-engine.d.ts +114 -0
  55. package/dist/security.d.ts +18 -0
  56. package/dist/server.d.ts +6 -0
  57. package/dist/services.d.ts +29 -0
  58. package/dist/settings-config.d.ts +9 -0
  59. package/dist/sms.d.ts +0 -0
  60. package/dist/ssg.d.ts +2 -0
  61. package/dist/stacks.d.ts +204 -0
  62. package/dist/storage.d.ts +12 -0
  63. package/dist/tables.d.ts +52 -0
  64. package/dist/team.d.ts +8 -0
  65. package/dist/ui.d.ts +165 -0
  66. package/dist/utils.d.ts +30 -0
  67. package/package.json +19 -19
  68. package/src/api.ts +6 -6
  69. package/src/app.ts +1 -1
  70. package/src/chat.ts +1 -1
  71. package/src/cli.ts +7 -3
  72. package/src/cloud.ts +1 -1
  73. package/src/cron-jobs.ts +1 -0
  74. package/src/deploy.ts +1 -0
  75. package/src/errors.ts +50 -51
  76. package/src/git.ts +1 -1
  77. package/src/helpers.ts +3 -2
  78. package/src/index.ts +8 -7
  79. package/src/model-names.ts +1 -10
  80. package/src/model.ts +35 -19
  81. package/src/notifications.ts +1 -5
  82. package/src/request.ts +16 -15
  83. package/src/router.ts +1 -0
  84. package/src/search-engine.ts +3 -3
  85. package/src/server.ts +16 -0
  86. package/src/settings-config.ts +2 -2
  87. package/src/stacks.ts +0 -1
package/dist/ssg.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import type { ViteSSGContext } from ".";
2
+ export type UserModule = (ctx: ViteSSGContext) => void;
@@ -0,0 +1,204 @@
1
+ import type { AiConfig, AnalyticsConfig, AppConfig, BinaryConfig, CacheConfig, CloudConfig, DatabaseConfig, DnsConfig, DocsConfig, EmailConfig, ErrorConfig, GitConfig, HashingConfig, LibraryConfig, LoggingConfig, NotificationConfig, PaymentConfig, Ports, QueueConfig, SearchEngineConfig, SecurityConfig, ServicesConfig, StorageConfig, Team, UiConfig } from ".";
2
+ /**
3
+ * **Stacks Options**
4
+ *
5
+ * This configuration defines all of your Stacks 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 StacksOptions {
10
+ ai: AiConfig;
11
+ /**
12
+ * **Analytics Options**
13
+ *
14
+ * This configuration defines all of your Analytics options. Because Stacks is fully-typed, you
15
+ * may hover any of the options below and the definitions will be provided. In case you
16
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
17
+ */
18
+ analytics: AnalyticsConfig;
19
+ /**
20
+ * **Application Options**
21
+ *
22
+ * This configuration defines all of your Application options. Because Stacks is fully-typed,
23
+ * you may hover any of the options below and the definitions will be provided. In case
24
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
25
+ */
26
+ app: AppConfig;
27
+ /**
28
+ * **Cache Options**
29
+ *
30
+ * This configuration defines all of your Cache options. Because Stacks is fully-typed, you
31
+ * may hover any of the options below and the definitions will be provided. In case you
32
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
33
+ */
34
+ cache: CacheConfig;
35
+ /**
36
+ * **CLI / Binary Options**
37
+ *
38
+ * This configuration defines all of your Binary options. Because Stacks is fully-typed, you
39
+ * may hover any of the options below and the definitions will be provided. In case you
40
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
41
+ */
42
+ cli: BinaryConfig;
43
+ /**
44
+ * **Cloud Options**
45
+ *
46
+ * This configuration defines all of your Cloud options. Because Stacks is fully-typed, you
47
+ * may hover any of the options below and the definitions will be provided. In case you
48
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
49
+ */
50
+ cloud: CloudConfig;
51
+ /**
52
+ * **Database Options**
53
+ *
54
+ * This configuration defines all of your Database options. Because Stacks is fully-typed, you
55
+ * may hover any of the options below and the definitions will be provided. In case you
56
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
57
+ */
58
+ database: DatabaseConfig;
59
+ /**
60
+ * **DNS Options**
61
+ *
62
+ * This configuration defines all of your DNS options. Because Stacks is fully-typed, you
63
+ * may hover any of the options below and the definitions will be provided. In case you
64
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
65
+ */
66
+ dns: DnsConfig;
67
+ /**
68
+ * **Docs Options**
69
+ *
70
+ * This configuration defines all of your Docs options. Because Stacks is fully-typed, you
71
+ * may hover any of the options below and the definitions will be provided. In case you
72
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
73
+ */
74
+ docs: DocsConfig;
75
+ /**
76
+ * **Email Options**
77
+ *
78
+ * This configuration defines all of your Email options. Because Stacks is fully-typed, you
79
+ * may hover any of the options below and the definitions will be provided. In case you
80
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
81
+ */
82
+ email: EmailConfig;
83
+ /**
84
+ * **Errors Options**
85
+ *
86
+ * This configuration defines all of your Errors options. Because Stacks is fully-typed, you
87
+ * may hover any of the options below and the definitions will be provided. In case you
88
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
89
+ */
90
+ errors: ErrorConfig;
91
+ /**
92
+ * **Git Options**
93
+ *
94
+ * This configuration defines all of your Git options. Because Stacks is fully-typed, you
95
+ * may hover any of the options below and the definitions will be provided. In case you
96
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
97
+ */
98
+ git: GitConfig;
99
+ /**
100
+ * **Hashing Options**
101
+ *
102
+ * This configuration defines all of your Hashing options. Because Stacks is fully-typed, you
103
+ * may hover any of the options below and the definitions will be provided. In case you
104
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
105
+ */
106
+ hashing: HashingConfig;
107
+ /**
108
+ * **Library Options**
109
+ *
110
+ * This configuration defines all of your Library options. Because Stacks is fully-typed, you
111
+ * may hover any of the options below and the definitions will be provided. In case you
112
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
113
+ */
114
+ library: LibraryConfig;
115
+ /**
116
+ * **Logging Options**
117
+ *
118
+ * This configuration defines all of your logging options. Because Stacks is fully-typed, you
119
+ * may hover any of the options below and the definitions will be provided. In case you
120
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
121
+ */
122
+ logging: LoggingConfig;
123
+ /**
124
+ * **Notification Options**
125
+ *
126
+ * This configuration defines all of your Notification options. Because Stacks is fully-typed,
127
+ * you may hover any of the options below and the definitions will be provided. In case
128
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
129
+ */
130
+ notification: NotificationConfig;
131
+ /**
132
+ * **Payment Options**
133
+ *
134
+ * This configuration defines all of your Payment options. Because Stacks is fully-typed,
135
+ * you may hover any of the options below and the definitions will be provided. In case
136
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
137
+ */
138
+ payment: PaymentConfig;
139
+ /**
140
+ * **Ports**
141
+ *
142
+ * This configuration defines all of your Ports options. Because Stacks is fully-typed, you
143
+ * may hover any of the options below and the definitions will be provided. In case you
144
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
145
+ */
146
+ ports: Ports;
147
+ /**
148
+ * **Queue Options**
149
+ *
150
+ * This configuration defines all of your Queue options. Because Stacks is fully-typed,
151
+ * you may hover any of the options below and the definitions will be provided. In case
152
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
153
+ */
154
+ queue: QueueConfig;
155
+ /**
156
+ * **Search Engine Options**
157
+ *
158
+ * This configuration defines all of your Search Engine options. Because Stacks is fully-typed,
159
+ * you may hover any of the options below and the definitions will be provided. In case
160
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
161
+ */
162
+ security: SecurityConfig;
163
+ /**
164
+ * **Search Engine Options**
165
+ *
166
+ * This configuration defines all of your Search Engine options. Because Stacks is fully-typed,
167
+ * you may hover any of the options below and the definitions will be provided. In case
168
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
169
+ */
170
+ searchEngine: SearchEngineConfig;
171
+ /**
172
+ * **Services Options**
173
+ *
174
+ * This configuration defines all of your Services options. Because Stacks is fully-typed,
175
+ * you may hover any of the options below and the definitions will be provided. In case
176
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
177
+ */
178
+ services: ServicesConfig;
179
+ /**
180
+ * **Storage Options**
181
+ *
182
+ * This configuration defines all of your Storage options. Because Stacks is fully-typed,
183
+ * you may hover any of the options below and the definitions will be provided. In case
184
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
185
+ */
186
+ storage: StorageConfig;
187
+ /**
188
+ * **Team Members**
189
+ *
190
+ * This configuration defines all of your Team members. Because Stacks is fully-typed, you
191
+ * may hover any of the options below and the definitions will be provided. In case you
192
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
193
+ */
194
+ team: Team;
195
+ /**
196
+ * **UI Options**
197
+ *
198
+ * This configuration defines all of your UI options. Because Stacks is fully-typed, you
199
+ * may hover any of the options below and the definitions will be provided. In case you
200
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
201
+ */
202
+ ui: UiConfig;
203
+ }
204
+ export type StacksConfig = Partial<StacksOptions>;
@@ -0,0 +1,12 @@
1
+ export interface StorageOptions {
2
+ /**
3
+ * **Storage Driver**
4
+ *
5
+ * The storage driver to utilize.
6
+ *
7
+ * @default string 's3'
8
+ * @see https://stacksjs.org/docs/storage
9
+ */
10
+ driver: "s3" | "efs" | "local";
11
+ }
12
+ export type StorageConfig = Partial<StorageOptions>;
@@ -0,0 +1,52 @@
1
+ import type { Hits, SearchResponse } from "meilisearch";
2
+ /**
3
+ * the TableStore interface is primarily used to unify the persisting of data to localStorage
4
+ */
5
+ export interface TableStore {
6
+ /**
7
+ * The search engine index name.
8
+ * i.e. the type of table, like `users`, `posts`, `products`, etc.
9
+ */
10
+ index: string;
11
+ /**
12
+ * The search engine results object.
13
+ */
14
+ results?: SearchResponse<Record<string, any>>;
15
+ /**
16
+ * The search engine hits object.
17
+ */
18
+ hits?: Hits;
19
+ columns: string[];
20
+ source?: string;
21
+ password?: string;
22
+ searchable?: string | boolean;
23
+ query?: string;
24
+ sortable?: string | boolean;
25
+ sort?: string;
26
+ sorts?: string | string[];
27
+ filterable?: string | boolean;
28
+ filters?: string | string[];
29
+ filterValue?: any[];
30
+ actionable?: string | boolean;
31
+ actions?: string | string[];
32
+ perPage: number;
33
+ selectable?: string | boolean;
34
+ selectedRows?: number[] | string[];
35
+ selectedAll?: boolean;
36
+ goToNextPage: number;
37
+ goToPage: number;
38
+ goToPrevPage: number;
39
+ lastPageNumber: number;
40
+ searchFilters?: object;
41
+ searchParams?: object;
42
+ setTotalHits: number;
43
+ /**
44
+ *
45
+ * The current page number
46
+ * @default 1
47
+ * @type {number}
48
+ * @memberof TableStore
49
+ * @example 1
50
+ */
51
+ currentPage: number;
52
+ }
package/dist/team.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ type TeamMemberName = string;
2
+ type Email = string;
3
+ type TeamMembers = Record<TeamMemberName, Email>;
4
+ export interface Team {
5
+ name: string;
6
+ members?: TeamMembers;
7
+ }
8
+ export {};
package/dist/ui.d.ts ADDED
@@ -0,0 +1,165 @@
1
+ import type { UserConfig } from "@unocss/core";
2
+ import type { UserShortcuts } from "unocss";
3
+ export type Font = "inter" | "mona" | "hubot";
4
+ export type Icon = "heroicons";
5
+ export type WebFontsProviders = "google" | "bunny" | "fontshare";
6
+ export type Shortcuts = UserShortcuts;
7
+ export interface FontInfo {
8
+ title: string;
9
+ text: string;
10
+ }
11
+ export interface WebFontMeta {
12
+ name: string;
13
+ weights?: (string | number)[];
14
+ italic?: boolean;
15
+ provider?: WebFontsProviders;
16
+ }
17
+ /**
18
+ * **UI Engine Options**
19
+ *
20
+ * This type defines all of your UI Engine options. Because Stacks is fully-typed, you may
21
+ * hover any of the options below and the definitions will be provided. In case you
22
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
23
+ */
24
+ export interface UiOptions {
25
+ /**
26
+ * **Shortcuts**
27
+ *
28
+ * Shortcuts provide you with the ability to combine
29
+ * utility names for reusability purposes.
30
+ *
31
+ * @example
32
+ * ```
33
+ * config: {
34
+ * shortcuts: {
35
+ * 'btn': 'px-4 py-2 rounded text-white bg-blue-500',
36
+ * 'btn-lg': 'btn px-6 py-3',
37
+ * }
38
+ * }
39
+ * ```
40
+ */
41
+ shortcuts: Shortcuts;
42
+ /**
43
+ * **Safelist**
44
+ *
45
+ * Use the `safelist` option to ensure the generation of
46
+ * those utility classes. This is useful when certain
47
+ * class names don’t exist in your content files.
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * safelist: [
52
+ * 'btn',
53
+ * 'btn-lg',
54
+ * 'btn-blue',
55
+ * 'btn-blue-500',
56
+ * ]
57
+ */
58
+ safelist: string;
59
+ /**
60
+ * **Trigger String**
61
+ *
62
+ * The "trigger string" defines the class name markup
63
+ * you want to add into your components.
64
+ *
65
+ * @default ':stx:'
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * trigger: ':stx:'
70
+ * ```
71
+ */
72
+ trigger?: string;
73
+ /**
74
+ * **Class Prefix**
75
+ *
76
+ * The prefix for the compiled class name. When transforming
77
+ * all utility classes into a single class, this prefix
78
+ * will be added to the generated CSS class name.
79
+ *
80
+ * @default 'stx-'
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * prefix: 'stx-'
85
+ * ```
86
+ */
87
+ classPrefix?: string;
88
+ /**
89
+ * **Hash Function**
90
+ *
91
+ * The hash function used to generate the class name.
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * hash: (str: string) => {
96
+ * return str
97
+ * .split('')
98
+ * .reduce((a, b) => {
99
+ * a = ((a << 5) - a) + b.charCodeAt(0)
100
+ * return a & a
101
+ * }, 0)
102
+ * .toString(36)
103
+ * }
104
+ */
105
+ hashFn?: (str: string) => string;
106
+ /**
107
+ * **CSS Resets—Preset**
108
+ *
109
+ * Define a standard of reset CSS stylesheets. By default, the Tailwind
110
+ * reset styles are utilized. You may set this value to `null`
111
+ * if you prefer not applying any default stylesheets.
112
+ *
113
+ * @url https://www.npmjs.com/package/@unocss/reset
114
+ * @todo preset needs to be added via a Vite plugin on development & build
115
+ * @example
116
+ * ```ts
117
+ * reset: 'tailwind'
118
+ * ```
119
+ */
120
+ reset?: ResetPreset;
121
+ /**
122
+ * **Fonts**
123
+ *
124
+ * Define the fonts you want to use. By default, Stacks provides support
125
+ * for several local font providers. You may set this value to
126
+ * `null` if you prefer not utilize any local fonts.
127
+ *
128
+ * @see https://stacksjs.org/docs/fonts
129
+ * ```
130
+ */
131
+ fonts?: any;
132
+ useWebFonts?: boolean | WebFontsProviders;
133
+ /**
134
+ * **Icon Sets**
135
+ *
136
+ * This value defines the icon sets you want to use. When using icons, they
137
+ * are displayed utilizing a technique called "icons in pure css."
138
+ * Learn more here https://antfu.me/posts/icons-in-pure-css.
139
+ *
140
+ * @see https://stacks.ow3.org/config/icons — list of available icon sets
141
+ * @todo implement this into Vite build flow
142
+ * @example
143
+ * ```ts
144
+ * icons: ['heroicons']
145
+ * ```
146
+ * @example
147
+ * ```html
148
+ * <i class="i-heroicons-outline-book-open w-8 h-8 text-gray-500" aria-hidden="true" />
149
+ * ```
150
+ */
151
+ icons: Icon | Icon[];
152
+ theme: UserConfig["theme"];
153
+ variants: UserConfig["variants"];
154
+ layers: UserConfig["layers"];
155
+ }
156
+ export type UiConfig = Partial<UiOptions>;
157
+ /**
158
+ * **Style Reset — Preset**
159
+ *
160
+ * This value sets the "reset preset." A preset defines certain
161
+ * CSS defaults to be applied.
162
+ *
163
+ * @default "tailwind"
164
+ */
165
+ export type ResetPreset = "tailwind" | "normalize" | "sanitize" | "eric-meyer" | "antfu" | null;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Null or whatever.
3
+ */
4
+ export type Nullable<T> = T | null | undefined;
5
+ /**
6
+ * Function
7
+ */
8
+ export type Fn<T = void> = () => T;
9
+ /**
10
+ * Array, or not yet
11
+ */
12
+ export type Arrayable<T> = T | Array<T>;
13
+ /**
14
+ * Constructor.
15
+ */
16
+ export type Constructor<T = void> = new (...args: any[]) => T;
17
+ /**
18
+ * Defines an intersection type of all union items.
19
+ *
20
+ * @param U Union of any types that will be intersected.
21
+ * @returns U items intersected
22
+ * @see https://stackoverflow.com/a/50375286/9259330
23
+ */
24
+ export type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
25
+ export type MergeInsertions<T> = T extends object ? { [K in keyof T] : MergeInsertions<T[K]> } : T;
26
+ export type DeepMerge<
27
+ F,
28
+ S
29
+ > = MergeInsertions<{ [K in keyof F | keyof S] : K extends keyof S & keyof F ? DeepMerge<F[K], S[K]> : K extends keyof S ? S[K] : K extends keyof F ? F[K] : never }>;
30
+ export type DeepPartial<T> = { [P in keyof T]? : DeepPartial<T[P]> };
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.64.6",
4
+ "version": "0.65.0",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
+ "contributors": [
8
+ "Chris Breuer <chris@stacksjs.org>"
9
+ ],
7
10
  "license": "MIT",
8
11
  "funding": "https://github.com/sponsors/chrisbbreuer",
9
12
  "homepage": "https://github.com/stacksjs/stacks/tree/main/stacks/types#readme",
@@ -31,27 +34,24 @@
31
34
  },
32
35
  "module": "dist/index.js",
33
36
  "types": "dist/index.d.ts",
34
- "contributors": [
35
- "Chris Breuer <chris@stacksjs.org>"
36
- ],
37
37
  "files": [
38
38
  "README.md",
39
39
  "dist",
40
40
  "src"
41
41
  ],
42
42
  "scripts": {
43
- "build": "bun --bun build.ts",
44
- "typecheck": "bun --bun tsc --noEmit",
43
+ "build": "bun build.ts",
44
+ "typecheck": "bun tsc --noEmit",
45
45
  "prepublishOnly": "bun run build"
46
46
  },
47
47
  "dependencies": {
48
48
  "@mdit-vue/plugin-component": "^2.1.3",
49
49
  "@mdit-vue/plugin-frontmatter": "^2.1.3",
50
50
  "@mdit-vue/types": "^2.1.0",
51
- "@rollup/pluginutils": "^5.1.0",
52
- "@stacksjs/validation": "latest",
51
+ "@rollup/pluginutils": "^5.1.2",
52
+ "@stacksjs/validation": "0.64.6",
53
53
  "@types/aws4": "^1.11.6",
54
- "@types/bun": "^1.1.8",
54
+ "@types/bun": "^1.1.11",
55
55
  "@types/crypto-js": "^4.2.2",
56
56
  "@types/fs-extra": "^11.0.4",
57
57
  "@types/markdown-it-link-attributes": "^3.0.5",
@@ -60,21 +60,21 @@
60
60
  "@vinejs/vine": "^2.1.0",
61
61
  "cac": "^6.7.14",
62
62
  "markdown-it": "^14.1.0",
63
- "meilisearch": "^0.42.0",
64
- "neverthrow": "^7.0.1",
63
+ "meilisearch": "^0.44.1",
64
+ "neverthrow": "^8.0.0",
65
65
  "ora": "^8.1.0",
66
- "unocss": "0.62.3",
67
- "unplugin-auto-import": "^0.18.2",
66
+ "unocss": "0.61.0",
67
+ "unplugin-auto-import": "^0.18.3",
68
68
  "unplugin-vue-components": "^0.27.4",
69
- "vite": "^5.4.2",
69
+ "vite": "^5.4.8",
70
70
  "vite-plugin-inspect": "^0.8.7",
71
- "vite-plugin-pwa": "^0.20.1",
71
+ "vite-plugin-pwa": "^0.20.5",
72
72
  "vite-ssg": "^0.23.8",
73
- "vitepress": "1.3.4",
74
- "vue": "^3.4.38"
73
+ "vitepress": "1.4.0",
74
+ "vue": "^3.5.11"
75
75
  },
76
76
  "devDependencies": {
77
- "aws-cdk-lib": "^2.154.1",
78
- "typescript": "^5.5.4"
77
+ "aws-cdk-lib": "^2.161.1",
78
+ "typescript": "^5.6.3"
79
79
  }
80
80
  }
package/src/api.ts CHANGED
@@ -31,12 +31,12 @@ export interface ApiOptions {
31
31
 
32
32
  routes:
33
33
  | {
34
- index: boolean
35
- show: boolean
36
- store: boolean
37
- update: boolean
38
- destroy: boolean
39
- }
34
+ index: boolean
35
+ show: boolean
36
+ store: boolean
37
+ update: boolean
38
+ destroy: boolean
39
+ }
40
40
  | boolean
41
41
 
42
42
  /**
package/src/app.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type AppEnvType = 'local' | 'dev' | 'stage' | 'prod' | string
1
+ export type AppEnvType = 'local' | 'dev' | 'stage' | 'prod' | 'testing' | string
2
2
 
3
3
  /**
4
4
  * **Application Options**
package/src/chat.ts CHANGED
@@ -1,4 +1,4 @@
1
- type ChatOptions = {}
1
+ interface ChatOptions {}
2
2
  export type { ChatOptions }
3
3
 
4
4
  export type ChatConfig = ChatOptions
package/src/cli.ts CHANGED
@@ -3,7 +3,7 @@ import type { Ports } from './ports'
3
3
 
4
4
  type ArrayBufferView = NodeJS.TypedArray | DataView
5
5
 
6
- export type { Subprocess, SyncSubprocess } from 'bun'
6
+ export type { ErrorLike, SpawnOptions, Subprocess, SyncSubprocess } from 'bun'
7
7
  export type Readable =
8
8
  | 'pipe'
9
9
  | 'inherit'
@@ -194,7 +194,7 @@ export type ActionOptions = {
194
194
  count?: number
195
195
  dryRun?: boolean // used in buddy release
196
196
  } & CliOptions &
197
- DomainsOptions
197
+ DomainsOptions
198
198
 
199
199
  export type BuildOption =
200
200
  | 'components'
@@ -256,8 +256,10 @@ export type GeneratorOption =
256
256
  | 'ideHelpers'
257
257
  | 'componentMeta'
258
258
  | 'coreSymlink'
259
+ | 'openApiSpec'
259
260
  | 'pkgxConfig'
260
261
  | 'openapi'
262
+ | 'modelFiles'
261
263
  export type GeneratorOptions = {
262
264
  [key in GeneratorOption]?: boolean
263
265
  } & CliOptions
@@ -303,7 +305,9 @@ export type ExamplesOptions = {
303
305
  [key in ExamplesBoolean]: boolean
304
306
  } & CliOptions
305
307
  export type TestOptions = CliOptions & {
306
- showReport?: boolean
308
+ ui?: boolean
309
+ feature?: boolean
310
+ unit?: boolean
307
311
  }
308
312
  export type DomainsOptions = CliOptions & {
309
313
  domain?: string
package/src/cloud.ts CHANGED
@@ -261,7 +261,7 @@ export interface CloudOptions {
261
261
 
262
262
  api: ApiConfig
263
263
 
264
- storage: {}
264
+ storage: object
265
265
 
266
266
  /**
267
267
  * **Firewall Settings**
package/src/cron-jobs.ts CHANGED
@@ -9,6 +9,7 @@ export interface JobOptions {
9
9
  */
10
10
  name?: string
11
11
 
12
+ // eslint-disable-next-line ts/no-unsafe-function-type
12
13
  handle?: string | Function
13
14
  action?: string
14
15
  description?: string
package/src/deploy.ts CHANGED
@@ -13,4 +13,5 @@ export interface DeployOptions extends CliOptions {
13
13
  prod?: boolean
14
14
  dev?: boolean
15
15
  staging?: boolean
16
+ yes?: boolean
16
17
  }