@stacksjs/types 0.70.87 → 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 +2 -2
- 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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.88",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@stacksjs/validation": "0.70.
|
|
68
|
+
"@stacksjs/validation": "0.70.88",
|
|
69
69
|
"@types/bun": "^1.3.11",
|
|
70
70
|
"meilisearch": "^0.59.0",
|
|
71
71
|
"typescript": "^7.0.2"
|
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>;
|
package/dist/analytics.d.ts
DELETED
|
@@ -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>;
|
package/dist/attributes.d.ts
DELETED
|
@@ -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';
|
package/dist/auto-imports.d.ts
DELETED
|
@@ -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
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
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>;
|