@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.
Files changed (151) hide show
  1. package/package.json +19 -5
  2. package/dist/ai.d.ts +0 -37
  3. package/dist/analytics.d.ts +0 -36
  4. package/dist/api.d.ts +0 -26
  5. package/dist/app.d.ts +0 -28
  6. package/dist/attributes.d.ts +0 -1
  7. package/dist/auth.d.ts +0 -56
  8. package/dist/auto-imports.d.ts +0 -8
  9. package/dist/binary.d.ts +0 -11
  10. package/dist/cache.d.ts +0 -88
  11. package/dist/cdn.d.ts +0 -4
  12. package/dist/chat.d.ts +0 -69
  13. package/dist/cli.d.ts +0 -316
  14. package/dist/cloud.d.ts +0 -366
  15. package/dist/cms.d.ts +0 -12
  16. package/dist/commerce.d.ts +0 -14
  17. package/dist/components.d.ts +0 -9
  18. package/dist/configure.d.ts +0 -12
  19. package/dist/cors.d.ts +0 -47
  20. package/dist/cron-jobs.d.ts +0 -61
  21. package/dist/dashboard.d.ts +0 -108
  22. package/dist/database.d.ts +0 -76
  23. package/dist/dependencies.d.ts +0 -17
  24. package/dist/deploy.d.ts +0 -16
  25. package/dist/dns.d.ts +0 -362
  26. package/dist/docs.d.ts +0 -23
  27. package/dist/email.d.ts +0 -207
  28. package/dist/env.d.ts +0 -1
  29. package/dist/errors.d.ts +0 -84
  30. package/dist/events.d.ts +0 -31
  31. package/dist/exit-code.d.ts +0 -10
  32. package/dist/file-systems.d.ts +0 -60
  33. package/dist/git.d.ts +0 -60
  34. package/dist/hashing.d.ts +0 -57
  35. package/dist/helpers.d.ts +0 -1
  36. package/dist/i18n.d.ts +0 -65
  37. package/dist/index.d.ts +0 -79
  38. package/dist/index.js +0 -2
  39. package/dist/library.d.ts +0 -799
  40. package/dist/logging.d.ts +0 -15
  41. package/dist/manifest.d.ts +0 -9
  42. package/dist/marketing.d.ts +0 -12
  43. package/dist/model-dashboard-augmentation.d.ts +0 -8
  44. package/dist/model-names.d.ts +0 -1
  45. package/dist/model.d.ts +0 -256
  46. package/dist/monitoring.d.ts +0 -12
  47. package/dist/notifications.d.ts +0 -126
  48. package/dist/oauth.d.ts +0 -290
  49. package/dist/pages.d.ts +0 -10
  50. package/dist/payments.d.ts +0 -322
  51. package/dist/phone.d.ts +0 -65
  52. package/dist/ports.d.ts +0 -20
  53. package/dist/promise.d.ts +0 -1
  54. package/dist/push.d.ts +0 -108
  55. package/dist/queue.d.ts +0 -312
  56. package/dist/reactivity.d.ts +0 -1
  57. package/dist/realtime.d.ts +0 -443
  58. package/dist/request.d.ts +0 -265
  59. package/dist/response.d.ts +0 -15
  60. package/dist/router.d.ts +0 -105
  61. package/dist/saas.d.ts +0 -32
  62. package/dist/scheduler.d.ts +0 -1
  63. package/dist/search-engine.d.ts +0 -129
  64. package/dist/security.d.ts +0 -18
  65. package/dist/server.d.ts +0 -16
  66. package/dist/services.d.ts +0 -149
  67. package/dist/settings-config.d.ts +0 -9
  68. package/dist/sms.d.ts +0 -144
  69. package/dist/stack-extensions.d.ts +0 -137
  70. package/dist/stacks.d.ts +0 -45
  71. package/dist/storage.d.ts +0 -104
  72. package/dist/table-names.d.ts +0 -1
  73. package/dist/tables.d.ts +0 -34
  74. package/dist/team.d.ts +0 -7
  75. package/dist/ui.d.ts +0 -55
  76. package/dist/utils.d.ts +0 -39
  77. package/src/ai.ts +0 -41
  78. package/src/analytics.ts +0 -58
  79. package/src/api.ts +0 -77
  80. package/src/app.ts +0 -189
  81. package/src/attributes.ts +0 -5
  82. package/src/auth.ts +0 -161
  83. package/src/auto-imports.ts +0 -8
  84. package/src/binary.ts +0 -13
  85. package/src/cache.ts +0 -325
  86. package/src/cdn.ts +0 -17
  87. package/src/chat.ts +0 -193
  88. package/src/cli.ts +0 -445
  89. package/src/cloud.ts +0 -381
  90. package/src/cms.ts +0 -14
  91. package/src/commerce.ts +0 -18
  92. package/src/components.ts +0 -62
  93. package/src/configure.ts +0 -13
  94. package/src/cors.ts +0 -86
  95. package/src/cron-jobs.ts +0 -146
  96. package/src/dashboard.ts +0 -218
  97. package/src/database.ts +0 -117
  98. package/src/dependencies.ts +0 -69
  99. package/src/deploy.ts +0 -17
  100. package/src/dns.ts +0 -470
  101. package/src/docs.ts +0 -27
  102. package/src/email.ts +0 -511
  103. package/src/env.ts +0 -1
  104. package/src/errors.ts +0 -110
  105. package/src/events.ts +0 -37
  106. package/src/exit-code.ts +0 -10
  107. package/src/file-systems.ts +0 -70
  108. package/src/git.ts +0 -133
  109. package/src/hashing.ts +0 -127
  110. package/src/helpers.ts +0 -9
  111. package/src/i18n.ts +0 -121
  112. package/src/index.ts +0 -80
  113. package/src/library.ts +0 -911
  114. package/src/logging.ts +0 -62
  115. package/src/manifest.ts +0 -9
  116. package/src/marketing.ts +0 -14
  117. package/src/model-dashboard-augmentation.ts +0 -51
  118. package/src/model-names.ts +0 -1
  119. package/src/model.ts +0 -353
  120. package/src/monitoring.ts +0 -14
  121. package/src/native.ts +0 -0
  122. package/src/notifications.ts +0 -153
  123. package/src/oauth.ts +0 -488
  124. package/src/pages.ts +0 -10
  125. package/src/payments.ts +0 -440
  126. package/src/phone.ts +0 -78
  127. package/src/ports.ts +0 -20
  128. package/src/promise.ts +0 -1
  129. package/src/push.ts +0 -143
  130. package/src/queue.ts +0 -413
  131. package/src/reactivity.ts +0 -1
  132. package/src/realtime.ts +0 -584
  133. package/src/request.ts +0 -541
  134. package/src/response.ts +0 -16
  135. package/src/router.ts +0 -124
  136. package/src/saas.ts +0 -33
  137. package/src/scheduler.ts +0 -1
  138. package/src/search-engine.ts +0 -251
  139. package/src/security.ts +0 -23
  140. package/src/server.ts +0 -16
  141. package/src/services.ts +0 -211
  142. package/src/settings-config.ts +0 -10
  143. package/src/sms.ts +0 -265
  144. package/src/stack-extensions.ts +0 -184
  145. package/src/stacks.ts +0 -339
  146. package/src/storage.ts +0 -173
  147. package/src/table-names.ts +0 -1
  148. package/src/tables.ts +0 -57
  149. package/src/team.ts +0 -8
  150. package/src/ui.ts +0 -197
  151. package/src/utils.ts +0 -46
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.70.86",
4
+ "version": "0.70.88",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -43,8 +43,7 @@
43
43
  "types": "dist/index.d.ts",
44
44
  "files": [
45
45
  "README.md",
46
- "dist",
47
- "src"
46
+ "dist"
48
47
  ],
49
48
  "scripts": {
50
49
  "build": "bun build.ts",
@@ -66,10 +65,25 @@
66
65
  }
67
66
  },
68
67
  "devDependencies": {
69
- "@stacksjs/validation": "0.70.86",
68
+ "@stacksjs/validation": "0.70.88",
70
69
  "@types/bun": "^1.3.11",
71
70
  "meilisearch": "^0.59.0",
72
71
  "typescript": "^7.0.2"
73
72
  },
74
- "sideEffects": false
73
+ "sideEffects": false,
74
+ "publishConfig": {
75
+ "exports": {
76
+ ".": {
77
+ "types": "./dist/index.d.ts",
78
+ "bun": "./dist/index.js",
79
+ "import": "./dist/index.js",
80
+ "default": "./dist/index.js"
81
+ },
82
+ "./*": {
83
+ "bun": "./dist/*",
84
+ "import": "./dist/*",
85
+ "default": "./dist/*"
86
+ }
87
+ }
88
+ }
75
89
  }
package/dist/ai.d.ts DELETED
@@ -1,37 +0,0 @@
1
- /**
2
- * **AI Options**
3
- *
4
- * This configuration defines all of your AI options. Because Stacks is fully-typed, you
5
- * may 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 AiOptions {
9
- default: AiModel
10
- models: AiModel[]
11
- deploy: boolean
12
- }
13
- declare type AiModel = | 'amazon.titan-embed-text-v1'
14
- | 'amazon.titan-embed-text-v2:0'
15
- | 'amazon.titan-text-lite-v1'
16
- | 'amazon.titan-text-express-v1'
17
- | 'amazon.titan-text-premier-v1:0'
18
- | 'amazon.titan-embed-image-v1'
19
- | 'amazon.titan-image-generator-v1'
20
- | 'amazon.titan-image-generator-v2:0'
21
- // Anthropic Claude (current models via Bedrock)
22
- | 'anthropic.claude-sonnet-4-20250514-v1:0'
23
- | 'anthropic.claude-haiku-4-20250514-v1:0'
24
- | 'anthropic.claude-3-5-sonnet-20241022-v2:0'
25
- | 'anthropic.claude-3-5-haiku-20241022-v1:0'
26
- | 'anthropic.claude-3-opus-20240229-v1:0'
27
- | 'anthropic.claude-3-sonnet-20240229-v1:0'
28
- | 'anthropic.claude-3-haiku-20240307-v1:0'
29
- // Meta Llama 3
30
- | 'meta.llama3-8b-instruct-v1:0'
31
- | 'meta.llama3-70b-instruct-v1:0'
32
- | 'meta.llama3-1-8b-instruct-v1:0'
33
- | 'meta.llama3-1-70b-instruct-v1:0'
34
- | 'meta.llama3-1-405b-instruct-v1:0'
35
- // Allow custom model strings
36
- | (string & {});
37
- export type AiConfig = Partial<AiOptions>;
@@ -1,36 +0,0 @@
1
- /**
2
- * **Analytics Options**
3
- *
4
- * This configuration defines all of your Analytics options. Because Stacks is fully-typed, you
5
- * may 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 AnalyticsOptions {
9
- driver: 'google-analytics' | 'fathom' | 'plausible' | 'self-hosted'
10
- drivers: {
11
- googleAnalytics?: {
12
- trackingId: string
13
- debug?: boolean
14
- }
15
- fathom?: {
16
- siteId: string
17
- scriptUrl?: string
18
- honorDnt?: boolean
19
- spa?: boolean
20
- }
21
- plausible?: {
22
- domain: string
23
- scriptUrl?: string
24
- trackLocalhost?: boolean
25
- hashMode?: boolean
26
- }
27
- selfHosted?: {
28
- siteId: string
29
- apiEndpoint: string
30
- honorDnt?: boolean
31
- trackHashChanges?: boolean
32
- trackOutboundLinks?: boolean
33
- }
34
- }
35
- }
36
- export type AnalyticsConfig = Partial<AnalyticsOptions>;
package/dist/api.d.ts DELETED
@@ -1,26 +0,0 @@
1
- /**
2
- * **API Options**
3
- *
4
- * This configuration defines all of your API options. Because Stacks is fully-typed, you
5
- * may 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 ApiOptions {
9
- description: string
10
- prefix: string
11
- middleware: string[]
12
- routes:
13
- | {
14
- index: boolean
15
- show: boolean
16
- store: boolean
17
- update: boolean
18
- destroy: boolean
19
- }
20
- | boolean
21
- prewarm: boolean | number
22
- memorySize: number
23
- timeout: number
24
- deploy: boolean
25
- }
26
- export type ApiConfig = Partial<ApiOptions>;
package/dist/app.d.ts DELETED
@@ -1,28 +0,0 @@
1
- /**
2
- * **Application Options**
3
- *
4
- * This configuration defines all of your application options. Because Stacks is fully-typed,
5
- * you may hover any of the options below and the definitions will be provided. In case
6
- * you have any questions, feel free to reach out via Discord or GitHub Discussions.
7
- */
8
- export declare interface AppOptions {
9
- name: string
10
- description: string
11
- env: AppEnvType
12
- url: string
13
- redirectUrls: string | string[]
14
- debug: boolean
15
- maintenanceMode: boolean
16
- comingSoonMode?: boolean
17
- comingSoonSecret?: string
18
- key: string
19
- timezone: string
20
- locale: string
21
- fallbackLocale: 'en'
22
- cipher: string
23
- docMode: boolean
24
- primaryColor: string
25
- supportEmail: string
26
- }
27
- export type AppEnvType = 'local' | 'dev' | 'stage' | 'prod' | 'testing' | string;
28
- export type AppConfig = Partial<AppOptions>;
@@ -1 +0,0 @@
1
- export type * from '../../../types/attributes';
package/dist/auth.d.ts DELETED
@@ -1,56 +0,0 @@
1
- export declare interface AuthOptions {
2
- enabled?: boolean
3
- env?: string[]
4
- default: string
5
- guards: {
6
- [key: string]: {
7
- driver: 'session' | 'token'
8
- provider: string
9
- }
10
- }
11
- providers: {
12
- [key: string]: {
13
- driver: 'database'
14
- table: string
15
- }
16
- }
17
- username: string
18
- password: string
19
- tokenExpiry: number
20
- refreshTokenExpiry?: number
21
- tokenRotation: number
22
- defaultAbilities: string[]
23
- defaultTokenName: string
24
- passwordReset: {
25
- expire: number
26
- throttle: number
27
- url?: string
28
- }
29
- emailVerification?: {
30
- expire?: number
31
- url?: string
32
- }
33
- }
34
- export declare interface AuthInstance {
35
- guard: string
36
- provider: string
37
- user?: any
38
- token?: string
39
- }
40
- export declare interface AuthDriver {
41
- attempt: (credentials: any) => Promise<boolean>
42
- validate: (token: string) => Promise<boolean>
43
- login: (credentials: any) => Promise<{ token: string } | null>
44
- logout: () => Promise<void>
45
- user: () => Promise<any>
46
- token: () => string | null
47
- }
48
- export declare interface Authenticatable {
49
- getAuthIdentifier: () => any
50
- getAuthPassword: () => string
51
- getRememberToken: () => string
52
- setRememberToken: (token: string) => void
53
- }
54
- export type AuthConfig = Partial<AuthOptions>;
55
- export type GuardType = 'session' | 'token';
56
- export type ProviderType = 'database';
@@ -1,8 +0,0 @@
1
- // `unplugin-auto-import` isn't a runtime dependency of @stacksjs/types — we
2
- // only re-publish its option shape so users get autocomplete in user-land
3
- // configs. The local type intentionally mirrors the upstream `Options`
4
- // surface as an open record; if/when this package adopts unplugin-auto-import
5
- // as a real dependency, swap this for `import type { Options }` from there.
6
- export declare interface AutoImportsOptions {
7
- [key: string]: unknown
8
- }
package/dist/binary.d.ts DELETED
@@ -1,11 +0,0 @@
1
- /**
2
- * The Binary/CLI Options used in `./config/cli.ts`.
3
- */
4
- export declare interface BinaryOptions {
5
- name: string
6
- command: string
7
- description: string
8
- source: string
9
- deploy: boolean
10
- }
11
- export type BinaryConfig = Partial<BinaryOptions>;
package/dist/cache.d.ts DELETED
@@ -1,88 +0,0 @@
1
- /**
2
- * Cache Options - Configuration for the caching system
3
- */
4
- export declare interface CacheOptions {
5
- driver: 'memory' | 'redis' | 'singlestore'
6
- prefix: string
7
- ttl: number
8
- maxKeys?: number
9
- useClones?: boolean
10
- drivers: {
11
- redis?: {
12
- url?: string
13
- host: string
14
- port: number
15
- username?: string
16
- password?: string
17
- database?: number
18
- tls?: boolean
19
- }
20
- memory?: {
21
- maxKeys?: number
22
- checkPeriod?: number
23
- deleteOnExpire?: boolean
24
- }
25
- singlestore?: {
26
- host?: string
27
- port?: number
28
- username?: string
29
- password?: string
30
- database?: string
31
- table?: string
32
- ssl?: boolean
33
- }
34
- }
35
- }
36
- /**
37
- * Cache Driver Interface - Defines the API for all cache implementations
38
- */
39
- export declare interface CacheDriver {
40
- get: <T>(key: string) => Promise<T | undefined>
41
- mget: <T>(keys: string[]) => Promise<Record<string, T>>
42
- set: <T>(key: string, value: T, ttl?: number) => Promise<boolean>
43
- mset: <T>(entries: Array<{ key: string, value: T, ttl?: number }>) => Promise<boolean>
44
- setForever: <T>(key: string, value: T) => Promise<boolean>
45
- getOrSet: <T>(key: string, fetcher: () => T | Promise<T>, ttl?: number) => Promise<T>
46
- del: (keys: string | string[]) => Promise<number>
47
- has: (key: string) => Promise<boolean>
48
- missing: (key: string) => Promise<boolean>
49
- remove: (key: string) => Promise<void>
50
- deleteMany: (keys: string[]) => Promise<number>
51
- clear: () => Promise<void>
52
- flush: () => Promise<void>
53
- keys: (pattern?: string) => Promise<string[]>
54
- getTtl: (key: string) => Promise<number | undefined>
55
- ttl: (key: string, ttl: number) => Promise<boolean>
56
- take: <T>(key: string) => Promise<T | undefined>
57
- remember: <T>(key: string, ttl: number, callback: () => T | Promise<T>) => Promise<T>
58
- rememberForever: <T>(key: string, callback: () => T | Promise<T>) => Promise<T>
59
- getStats: () => Promise<CacheStats>
60
- close: () => Promise<void>
61
- disconnect: () => Promise<void>
62
- tags?: (tags: readonly string[]) => TaggedCacheScope
63
- }
64
- /**
65
- * Returned by `cache.tags(tags)`. Tag-scoped writes/reads with a
66
- * cascading `flush()`.
67
- */
68
- export declare interface TaggedCacheScope {
69
- put: <T>(key: string, value: T, ttl?: number) => Promise<boolean>
70
- set: <T>(key: string, value: T, ttl?: number) => Promise<boolean>
71
- setForever: <T>(key: string, value: T) => Promise<boolean>
72
- remember: <T>(key: string, ttl: number, callback: () => T | Promise<T>) => Promise<T>
73
- rememberForever: <T>(key: string, callback: () => T | Promise<T>) => Promise<T>
74
- get: <T>(key: string) => Promise<T | undefined>
75
- has: (key: string) => Promise<boolean>
76
- flush: () => Promise<number>
77
- }
78
- /**
79
- * Cache Statistics
80
- */
81
- export declare interface CacheStats {
82
- hits: number
83
- misses: number
84
- keys: number
85
- size?: number
86
- hitRate?: number
87
- }
88
- export type CacheConfig = Partial<CacheOptions>;
package/dist/cdn.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare interface CdnOptions {
2
- driver: string
3
- }
4
- export type CdnConfig = Partial<CdnOptions>;
package/dist/chat.d.ts DELETED
@@ -1,69 +0,0 @@
1
- /**
2
- * Configuration options for chat drivers
3
- */
4
- export declare interface ChatDriverConfig {
5
- maxRetries?: number
6
- retryTimeout?: number
7
- [key: string]: any
8
- }
9
- /**
10
- * Base chat message interface
11
- */
12
- export declare interface ChatMessage {
13
- to: string | string[]
14
- from?: {
15
- id?: string
16
- name?: string
17
- avatar?: string
18
- }
19
- subject?: string
20
- content?: string
21
- template?: string
22
- data?: Record<string, any>
23
- attachments?: ChatAttachment[]
24
- onSuccess?: () => void | Promise<void> | Partial<ChatResult>
25
- onError?: (error: Error) => void | Promise<void> | Partial<ChatResult>
26
- handle?: () => void | Promise<void> | Partial<ChatResult>
27
- [key: string]: any
28
- }
29
- /**
30
- * Structure for message attachments
31
- */
32
- export declare interface ChatAttachment {
33
- filename: string
34
- content: string | Uint8Array
35
- contentType: string
36
- options?: Record<string, any>
37
- }
38
- /**
39
- * Standard result object for chat operations
40
- */
41
- export declare interface ChatResult {
42
- success: boolean
43
- message: string
44
- provider: string
45
- messageId?: string
46
- data?: Record<string, any>
47
- }
48
- /**
49
- * Base chat driver interface
50
- */
51
- export declare interface ChatDriver {
52
- name: string
53
- configure: (config: ChatDriverConfig) => void
54
- send: (message: ChatMessage, options?: ChatOptions) => Promise<ChatResult>
55
- }
56
- /**
57
- * Slack-specific response
58
- */
59
- export declare interface SlackResponse {
60
- id: string
61
- channel?: string
62
- ts?: string
63
- [key: string]: any
64
- }
65
- export type ChatConfig = ChatOptions;
66
- /**
67
- * Chat driver options
68
- */
69
- export type ChatOptions = Record<string, any>;