@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.
- package/package.json +19 -5
- 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/src/ai.ts +0 -41
- package/src/analytics.ts +0 -58
- package/src/api.ts +0 -77
- package/src/app.ts +0 -189
- package/src/attributes.ts +0 -5
- package/src/auth.ts +0 -161
- package/src/auto-imports.ts +0 -8
- package/src/binary.ts +0 -13
- package/src/cache.ts +0 -325
- package/src/cdn.ts +0 -17
- package/src/chat.ts +0 -193
- package/src/cli.ts +0 -445
- package/src/cloud.ts +0 -381
- package/src/cms.ts +0 -14
- package/src/commerce.ts +0 -18
- package/src/components.ts +0 -62
- package/src/configure.ts +0 -13
- package/src/cors.ts +0 -86
- package/src/cron-jobs.ts +0 -146
- package/src/dashboard.ts +0 -218
- package/src/database.ts +0 -117
- package/src/dependencies.ts +0 -69
- package/src/deploy.ts +0 -17
- package/src/dns.ts +0 -470
- package/src/docs.ts +0 -27
- package/src/email.ts +0 -511
- package/src/env.ts +0 -1
- package/src/errors.ts +0 -110
- package/src/events.ts +0 -37
- package/src/exit-code.ts +0 -10
- package/src/file-systems.ts +0 -70
- package/src/git.ts +0 -133
- package/src/hashing.ts +0 -127
- package/src/helpers.ts +0 -9
- package/src/i18n.ts +0 -121
- package/src/index.ts +0 -80
- package/src/library.ts +0 -911
- package/src/logging.ts +0 -62
- package/src/manifest.ts +0 -9
- package/src/marketing.ts +0 -14
- package/src/model-dashboard-augmentation.ts +0 -51
- package/src/model-names.ts +0 -1
- package/src/model.ts +0 -353
- package/src/monitoring.ts +0 -14
- package/src/native.ts +0 -0
- package/src/notifications.ts +0 -153
- package/src/oauth.ts +0 -488
- package/src/pages.ts +0 -10
- package/src/payments.ts +0 -440
- package/src/phone.ts +0 -78
- package/src/ports.ts +0 -20
- package/src/promise.ts +0 -1
- package/src/push.ts +0 -143
- package/src/queue.ts +0 -413
- package/src/reactivity.ts +0 -1
- package/src/realtime.ts +0 -584
- package/src/request.ts +0 -541
- package/src/response.ts +0 -16
- package/src/router.ts +0 -124
- package/src/saas.ts +0 -33
- package/src/scheduler.ts +0 -1
- package/src/search-engine.ts +0 -251
- package/src/security.ts +0 -23
- package/src/server.ts +0 -16
- package/src/services.ts +0 -211
- package/src/settings-config.ts +0 -10
- package/src/sms.ts +0 -265
- package/src/stack-extensions.ts +0 -184
- package/src/stacks.ts +0 -339
- package/src/storage.ts +0 -173
- package/src/table-names.ts +0 -1
- package/src/tables.ts +0 -57
- package/src/team.ts +0 -8
- package/src/ui.ts +0 -197
- package/src/utils.ts +0 -46
package/dist/configure.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare interface ConfigureOptions {
|
|
2
|
-
aws: boolean
|
|
3
|
-
profile: string
|
|
4
|
-
project: boolean
|
|
5
|
-
verbose: boolean
|
|
6
|
-
accessKeyId: string
|
|
7
|
-
secretAccessKey: string
|
|
8
|
-
region: string
|
|
9
|
-
output: string
|
|
10
|
-
quiet: boolean
|
|
11
|
-
}
|
|
12
|
-
export type ConfigureConfig = Partial<ConfigureOptions>;
|
package/dist/cors.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CORS configuration types (stacksjs/stacks#1859 H-2).
|
|
3
|
-
*
|
|
4
|
-
* Lives in `@stacksjs/types` so userland `config/cors.ts` files can
|
|
5
|
-
* `import type { CorsConfig } from '@stacksjs/types'` and get full
|
|
6
|
-
* IntelliSense, and so the Cors middleware can read
|
|
7
|
-
* `config.cors` with proper typing instead of an `as any` cast.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Raw CORS configuration — every field optional. Defaults fill in
|
|
11
|
-
* any field that's missing when the middleware resolves config.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* // config/cors.ts
|
|
16
|
-
* import type { CorsConfig } from '@stacksjs/types'
|
|
17
|
-
*
|
|
18
|
-
* export default {
|
|
19
|
-
* origin: ['https://app.example.com', 'https://admin.example.com'],
|
|
20
|
-
* credentials: true,
|
|
21
|
-
* methods: ['GET', 'POST', 'PUT', 'DELETE'],
|
|
22
|
-
* allowedHeaders: ['Content-Type', 'Authorization', 'X-CSRF-Token'],
|
|
23
|
-
* maxAge: 600,
|
|
24
|
-
* } satisfies CorsConfig
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare interface CorsConfig {
|
|
28
|
-
origin?: '*' | string[] | ((origin: string) => boolean)
|
|
29
|
-
methods?: string[]
|
|
30
|
-
allowedHeaders?: string[]
|
|
31
|
-
exposedHeaders?: string[]
|
|
32
|
-
credentials?: boolean
|
|
33
|
-
maxAge?: number
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Resolved CORS configuration with all defaults applied. This is the
|
|
37
|
-
* shape the middleware passes through `applyCorsHeaders` /
|
|
38
|
-
* `buildPreflightResponse`.
|
|
39
|
-
*/
|
|
40
|
-
export declare interface ResolvedCorsConfig {
|
|
41
|
-
origin: '*' | string[] | ((origin: string) => boolean)
|
|
42
|
-
methods: string[]
|
|
43
|
-
allowedHeaders: string[]
|
|
44
|
-
exposedHeaders: string[]
|
|
45
|
-
credentials: boolean
|
|
46
|
-
maxAge: number
|
|
47
|
-
}
|
package/dist/cron-jobs.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { IntRange } from '@stacksjs/cron';
|
|
2
|
-
export declare interface JitterConfig {
|
|
3
|
-
enabled: boolean
|
|
4
|
-
factor?: number
|
|
5
|
-
minDelay?: number
|
|
6
|
-
maxDelay?: number
|
|
7
|
-
}
|
|
8
|
-
export declare interface BackoffConfig {
|
|
9
|
-
strategy: BackoffStrategy
|
|
10
|
-
initialDelay: number
|
|
11
|
-
factor?: number
|
|
12
|
-
maxDelay?: number
|
|
13
|
-
jitter?: JitterConfig
|
|
14
|
-
}
|
|
15
|
-
export declare interface JobOptions {
|
|
16
|
-
name?: string
|
|
17
|
-
handle?: string | JobHandler
|
|
18
|
-
action?: string
|
|
19
|
-
description?: string
|
|
20
|
-
queue?: string
|
|
21
|
-
timezone?: string
|
|
22
|
-
tries?: IntRange<0, 185>
|
|
23
|
-
backoff?: number | number[]
|
|
24
|
-
backoffConfig?: BackoffConfig
|
|
25
|
-
rate?: string | Every
|
|
26
|
-
enabled?: boolean
|
|
27
|
-
timeout?: number
|
|
28
|
-
key?: string
|
|
29
|
-
ttl?: number
|
|
30
|
-
immediate?: boolean
|
|
31
|
-
meta?: Record<string, any>
|
|
32
|
-
}
|
|
33
|
-
export type Job = JobOptions;
|
|
34
|
-
export type Jobs = Job[];
|
|
35
|
-
export type CronJob = Job;
|
|
36
|
-
export type CronJobs = Jobs;
|
|
37
|
-
export type JobHandler = (_data?: any) => Promise<any> | any;
|
|
38
|
-
/**
|
|
39
|
-
* Represents different backoff strategies for job retries
|
|
40
|
-
*/
|
|
41
|
-
declare type BackoffStrategy = 'fixed' | 'exponential' | 'linear' | 'random';
|
|
42
|
-
export declare enum Every {
|
|
43
|
-
Second = '* * * * * *',
|
|
44
|
-
FiveSeconds = '*/5 * * * * *',
|
|
45
|
-
TenSeconds = '*/10 * * * * *',
|
|
46
|
-
ThirtySeconds = '*/30 * * * * *',
|
|
47
|
-
Minute = '* * * * *',
|
|
48
|
-
TwoMinutes = '*/2 * * * *',
|
|
49
|
-
FiveMinutes = '*/5 * * * *',
|
|
50
|
-
TenMinutes = '*/10 * * * *',
|
|
51
|
-
FifteenMinutes = '*/15 * * * *',
|
|
52
|
-
ThirtyMinutes = '*/30 * * * *',
|
|
53
|
-
Hour = '0 * * * *',
|
|
54
|
-
HalfHour = '0,30 * * * *',
|
|
55
|
-
Day = '0 0 * * *',
|
|
56
|
-
Week = '0 0 * * 0',
|
|
57
|
-
Weekday = '0 0 * * 1-5',
|
|
58
|
-
Weekend = '0 0 * * 0,6',
|
|
59
|
-
Month = '0 0 1 * *',
|
|
60
|
-
Year = '0 0 1 1 *',
|
|
61
|
-
}
|
package/dist/dashboard.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* **Dashboard Options**
|
|
3
|
-
*
|
|
4
|
-
* Controls which sections render in the `buddy dev --dashboard` sidebar.
|
|
5
|
-
* Every section defaults to enabled — set a flag to `false` in
|
|
6
|
-
* `config/dashboard.ts` to hide it (for example, projects that don't
|
|
7
|
-
* use commerce features set `commerce.enabled: false`).
|
|
8
|
-
*
|
|
9
|
-
* The `data` section is always visible (it's where every project's
|
|
10
|
-
* userland models live). It exposes per-row toggles for the basic
|
|
11
|
-
* built-in rows so a project can drop, say, the newsletter Subscribers
|
|
12
|
-
* row when there's no newsletter without losing the model viewer.
|
|
13
|
-
*/
|
|
14
|
-
export declare interface DashboardOptions {
|
|
15
|
-
enabled?: boolean
|
|
16
|
-
env?: string[]
|
|
17
|
-
sections?: {
|
|
18
|
-
library?: { enabled?: boolean }
|
|
19
|
-
content?: { enabled?: boolean }
|
|
20
|
-
commerce?: { enabled?: boolean }
|
|
21
|
-
marketing?: { enabled?: boolean }
|
|
22
|
-
analytics?: { enabled?: boolean }
|
|
23
|
-
management?: { enabled?: boolean }
|
|
24
|
-
utilities?: { enabled?: boolean }
|
|
25
|
-
data?: {
|
|
26
|
-
dashboard?: { enabled?: boolean }
|
|
27
|
-
activity?: { enabled?: boolean }
|
|
28
|
-
users?: { enabled?: boolean }
|
|
29
|
-
teams?: { enabled?: boolean }
|
|
30
|
-
subscribers?: { enabled?: boolean }
|
|
31
|
-
allModels?: { enabled?: boolean }
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
ci?: {
|
|
35
|
-
enabled?: boolean
|
|
36
|
-
orgs?: string[]
|
|
37
|
-
runnerCaps?: Record<string, number>
|
|
38
|
-
runnerCapDefault?: number
|
|
39
|
-
ignoreRepos?: string[]
|
|
40
|
-
notifications?: {
|
|
41
|
-
enabled?: boolean
|
|
42
|
-
channels?: Array<'email' | 'sms' | 'chat' | 'database'>
|
|
43
|
-
recipients?: Array<{ email?: string, phone?: string, userId?: number }>
|
|
44
|
-
cooldownMinutes?: number
|
|
45
|
-
}
|
|
46
|
-
alerts?: {
|
|
47
|
-
enabled?: boolean
|
|
48
|
-
queuedThreshold?: number
|
|
49
|
-
windowMinutes?: number
|
|
50
|
-
channels?: Array<'email' | 'sms' | 'chat' | 'database'>
|
|
51
|
-
recipients?: Array<{ email?: string, phone?: string, userId?: number }>
|
|
52
|
-
retentionHours?: number
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Per-model dashboard configuration (stacksjs/stacks#1843).
|
|
58
|
-
*
|
|
59
|
-
* Attach to a model definition to influence how the model surfaces in the
|
|
60
|
-
* dashboard sidebar without touching the framework's dashboard internals:
|
|
61
|
-
*
|
|
62
|
-
* ```ts
|
|
63
|
-
* defineModel({
|
|
64
|
-
* name: 'AuditLog',
|
|
65
|
-
* table: 'audit_logs',
|
|
66
|
-
* dashboard: {
|
|
67
|
-
* section: 'management',
|
|
68
|
-
* icon: 'shield',
|
|
69
|
-
* roles: ['admin'],
|
|
70
|
-
* description: 'Append-only audit trail (admin-only)',
|
|
71
|
-
* },
|
|
72
|
-
* attributes: { … },
|
|
73
|
-
* })
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* Resolution chain (most specific → fallback):
|
|
77
|
-
*
|
|
78
|
-
* 1. `dashboard.enabled === false` → model is hidden from the sidebar
|
|
79
|
-
* entirely. The dynamic ORM viewer (`/models/<id>`) still works for
|
|
80
|
-
* direct navigation, but the row is suppressed.
|
|
81
|
-
* 2. `dashboard.section` → pins the model to that section, overriding
|
|
82
|
-
* the path-based auto-categorisation (commerce/, Content/, etc.).
|
|
83
|
-
* 3. `dashboard.label` / `dashboard.icon` → display overrides; fall back
|
|
84
|
-
* to the model name and `iconMap` lookup.
|
|
85
|
-
* 4. `dashboard.roles` → role-gates the sidebar row. The server-side
|
|
86
|
-
* sidebar builder emits the row with role metadata; the client filters
|
|
87
|
-
* it out for users who lack a matching role. Permissive default
|
|
88
|
-
* (unauthenticated viewers see everything — see `useRole.ts`).
|
|
89
|
-
*/
|
|
90
|
-
export declare interface DashboardModelOptions {
|
|
91
|
-
enabled?: boolean
|
|
92
|
-
label?: string
|
|
93
|
-
icon?: string
|
|
94
|
-
section?:
|
|
95
|
-
| 'home'
|
|
96
|
-
| 'library'
|
|
97
|
-
| 'content'
|
|
98
|
-
| 'commerce'
|
|
99
|
-
| 'marketing'
|
|
100
|
-
| 'analytics'
|
|
101
|
-
| 'management'
|
|
102
|
-
| 'utilities'
|
|
103
|
-
| 'data'
|
|
104
|
-
| 'app'
|
|
105
|
-
roles?: string[]
|
|
106
|
-
description?: string
|
|
107
|
-
}
|
|
108
|
-
export type DashboardConfig = Partial<DashboardOptions>;
|
package/dist/database.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import type { SupportedDialect } from 'bun-query-builder';
|
|
2
|
-
export declare interface DatabaseOptions {
|
|
3
|
-
default: SupportedDialect
|
|
4
|
-
logging?: boolean
|
|
5
|
-
connections: {
|
|
6
|
-
mysql?: {
|
|
7
|
-
url?: string
|
|
8
|
-
host?: string
|
|
9
|
-
port?: number
|
|
10
|
-
name?: string
|
|
11
|
-
username?: string
|
|
12
|
-
password?: string
|
|
13
|
-
prefix?: string
|
|
14
|
-
}
|
|
15
|
-
singlestore?: {
|
|
16
|
-
url?: string
|
|
17
|
-
host?: string
|
|
18
|
-
port?: number
|
|
19
|
-
name?: string
|
|
20
|
-
username?: string
|
|
21
|
-
password?: string
|
|
22
|
-
prefix?: string
|
|
23
|
-
ssl?: boolean
|
|
24
|
-
}
|
|
25
|
-
sqlite: {
|
|
26
|
-
url?: string
|
|
27
|
-
database?: string
|
|
28
|
-
prefix?: string
|
|
29
|
-
}
|
|
30
|
-
dynamodb?: {
|
|
31
|
-
key?: string
|
|
32
|
-
secret?: string
|
|
33
|
-
region?: string
|
|
34
|
-
prefix?: string
|
|
35
|
-
endpoint?: string
|
|
36
|
-
}
|
|
37
|
-
postgres?: {
|
|
38
|
-
url?: string
|
|
39
|
-
host?: string
|
|
40
|
-
port?: number
|
|
41
|
-
name?: string
|
|
42
|
-
username?: string
|
|
43
|
-
password?: string
|
|
44
|
-
prefix?: string
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
migrations: string
|
|
48
|
-
migrationLocks: string
|
|
49
|
-
safety?: {
|
|
50
|
-
confirmMigrate?: boolean
|
|
51
|
-
migrateFresh?: 'allow' | 'confirm' | 'disabled'
|
|
52
|
-
}
|
|
53
|
-
queryLogging?: {
|
|
54
|
-
enabled: boolean
|
|
55
|
-
slowThreshold: number
|
|
56
|
-
retention: number
|
|
57
|
-
pruneFrequency: number
|
|
58
|
-
excludedQueries?: string[]
|
|
59
|
-
analysis?: {
|
|
60
|
-
enabled: boolean
|
|
61
|
-
analyzeAll: boolean
|
|
62
|
-
explainPlan: boolean
|
|
63
|
-
suggestions: boolean
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export declare interface FactoryOptions {
|
|
68
|
-
name: string
|
|
69
|
-
count?: number
|
|
70
|
-
items: object
|
|
71
|
-
columns: object
|
|
72
|
-
}
|
|
73
|
-
export declare interface SchemaOptions {
|
|
74
|
-
database: string
|
|
75
|
-
}
|
|
76
|
-
export type DatabaseConfig = Partial<DatabaseOptions>;
|
package/dist/dependencies.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* **Dependencies Manager**
|
|
3
|
-
*
|
|
4
|
-
* This configuration defines all of your dependencies 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 DependenciesOptions {
|
|
9
|
-
'bun.sh': string | '0.7.1'
|
|
10
|
-
'sqlite.org'?: string | '^3.42.0'
|
|
11
|
-
'mysql.com'?: string | '^8.0.33'
|
|
12
|
-
'mariadb.org'?: string | '^10.6.5'
|
|
13
|
-
'postgresql.org'?: string | '^14.1'
|
|
14
|
-
'redis.io'?: string | '^7.0.11'
|
|
15
|
-
'aws.amazon.com/cli'?: string | '^2.12.7'
|
|
16
|
-
}
|
|
17
|
-
export type DependenciesConfig = DependenciesOptions;
|
package/dist/deploy.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CliOptions } from './cli';
|
|
2
|
-
/**
|
|
3
|
-
* **Deploy Options**
|
|
4
|
-
*
|
|
5
|
-
* This configuration defines all of your deployment 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 declare interface DeployOptions extends CliOptions {
|
|
10
|
-
domain?: string
|
|
11
|
-
deploy?: boolean
|
|
12
|
-
prod?: boolean
|
|
13
|
-
dev?: boolean
|
|
14
|
-
staging?: boolean
|
|
15
|
-
yes?: boolean
|
|
16
|
-
}
|
package/dist/dns.d.ts
DELETED
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
export declare interface ARecord {
|
|
2
|
-
name: string | '@' | '*'
|
|
3
|
-
address: string
|
|
4
|
-
ttl?: number | 'auto'
|
|
5
|
-
}
|
|
6
|
-
export declare interface CNameRecord {
|
|
7
|
-
name: string
|
|
8
|
-
target: string
|
|
9
|
-
ttl: number | 'auto'
|
|
10
|
-
}
|
|
11
|
-
export declare interface MXRecord {
|
|
12
|
-
name: string | '@'
|
|
13
|
-
mailServer: string
|
|
14
|
-
ttl: number | 'auto'
|
|
15
|
-
priority: number
|
|
16
|
-
}
|
|
17
|
-
export declare interface TxtRecord {
|
|
18
|
-
name: string | '@'
|
|
19
|
-
ttl: number | 'auto'
|
|
20
|
-
content: string
|
|
21
|
-
}
|
|
22
|
-
export declare interface AAAARecord {
|
|
23
|
-
name: string | '@' | '*'
|
|
24
|
-
address: string
|
|
25
|
-
ttl: number | 'auto'
|
|
26
|
-
}
|
|
27
|
-
export declare interface ExtraParam {
|
|
28
|
-
Name: ExtraParamName
|
|
29
|
-
Value: ExtraParamValue
|
|
30
|
-
}
|
|
31
|
-
export declare interface ContactInfo extends ContactDetail {
|
|
32
|
-
admin?: ContactDetail
|
|
33
|
-
tech?: ContactDetail
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* **DNS Options**
|
|
37
|
-
*
|
|
38
|
-
* This configuration defines all of your DNS options. Because Stacks is fully-typed,
|
|
39
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
40
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
41
|
-
*
|
|
42
|
-
* @see https://stacksjs.com/docs/dns
|
|
43
|
-
*/
|
|
44
|
-
export declare interface DnsOptions {
|
|
45
|
-
driver: 'aws'
|
|
46
|
-
a: ARecord[]
|
|
47
|
-
aaaa: AAAARecord[]
|
|
48
|
-
cname: CNameRecord[]
|
|
49
|
-
mx: MXRecord[]
|
|
50
|
-
txt: TxtRecord[]
|
|
51
|
-
nameservers: string[]
|
|
52
|
-
contactInfo: Partial<ContactInfo>
|
|
53
|
-
redirects: string[]
|
|
54
|
-
}
|
|
55
|
-
export declare interface ContactDetail {
|
|
56
|
-
firstName: string
|
|
57
|
-
lastName: string
|
|
58
|
-
contactType: 'PERSON' | 'COMPANY' | 'ASSOCIATION' | 'PUBLIC_BODY' | 'RESELLER' | string
|
|
59
|
-
organizationName: string
|
|
60
|
-
addressLine1: string
|
|
61
|
-
addressLine2: string
|
|
62
|
-
city: string
|
|
63
|
-
state: string
|
|
64
|
-
countryCode: CountryCode
|
|
65
|
-
zip: string
|
|
66
|
-
phoneNumber: string
|
|
67
|
-
email: string
|
|
68
|
-
fax: string
|
|
69
|
-
extraParams: string
|
|
70
|
-
privacy: boolean
|
|
71
|
-
privacyAdmin: boolean
|
|
72
|
-
privacyTech: boolean
|
|
73
|
-
privacyRegistrant: boolean
|
|
74
|
-
}
|
|
75
|
-
export type DnsRecord = ARecord | CNameRecord | MXRecord | TxtRecord | AAAARecord;
|
|
76
|
-
declare type CountryCode = | 'AC'
|
|
77
|
-
| 'AD'
|
|
78
|
-
| 'AE'
|
|
79
|
-
| 'AF'
|
|
80
|
-
| 'AG'
|
|
81
|
-
| 'AI'
|
|
82
|
-
| 'AL'
|
|
83
|
-
| 'AM'
|
|
84
|
-
| 'AN'
|
|
85
|
-
| 'AO'
|
|
86
|
-
| 'AQ'
|
|
87
|
-
| 'AR'
|
|
88
|
-
| 'AS'
|
|
89
|
-
| 'AT'
|
|
90
|
-
| 'AU'
|
|
91
|
-
| 'AW'
|
|
92
|
-
| 'AX'
|
|
93
|
-
| 'AZ'
|
|
94
|
-
| 'BA'
|
|
95
|
-
| 'BB'
|
|
96
|
-
| 'BD'
|
|
97
|
-
| 'BE'
|
|
98
|
-
| 'BF'
|
|
99
|
-
| 'BG'
|
|
100
|
-
| 'BH'
|
|
101
|
-
| 'BI'
|
|
102
|
-
| 'BJ'
|
|
103
|
-
| 'BL'
|
|
104
|
-
| 'BM'
|
|
105
|
-
| 'BN'
|
|
106
|
-
| 'BO'
|
|
107
|
-
| 'BQ'
|
|
108
|
-
| 'BR'
|
|
109
|
-
| 'BS'
|
|
110
|
-
| 'BT'
|
|
111
|
-
| 'BV'
|
|
112
|
-
| 'BW'
|
|
113
|
-
| 'BY'
|
|
114
|
-
| 'BZ'
|
|
115
|
-
| 'CA'
|
|
116
|
-
| 'CC'
|
|
117
|
-
| 'CD'
|
|
118
|
-
| 'CF'
|
|
119
|
-
| 'CG'
|
|
120
|
-
| 'CH'
|
|
121
|
-
| 'CI'
|
|
122
|
-
| 'CK'
|
|
123
|
-
| 'CL'
|
|
124
|
-
| 'CM'
|
|
125
|
-
| 'CN'
|
|
126
|
-
| 'CO'
|
|
127
|
-
| 'CR'
|
|
128
|
-
| 'CU'
|
|
129
|
-
| 'CV'
|
|
130
|
-
| 'CW'
|
|
131
|
-
| 'CX'
|
|
132
|
-
| 'CY'
|
|
133
|
-
| 'CZ'
|
|
134
|
-
| 'DE'
|
|
135
|
-
| 'DJ'
|
|
136
|
-
| 'DK'
|
|
137
|
-
| 'DM'
|
|
138
|
-
| 'DO'
|
|
139
|
-
| 'DZ'
|
|
140
|
-
| 'EC'
|
|
141
|
-
| 'EE'
|
|
142
|
-
| 'EG'
|
|
143
|
-
| 'EH'
|
|
144
|
-
| 'ER'
|
|
145
|
-
| 'ES'
|
|
146
|
-
| 'ET'
|
|
147
|
-
| 'FI'
|
|
148
|
-
| 'FJ'
|
|
149
|
-
| 'FK'
|
|
150
|
-
| 'FM'
|
|
151
|
-
| 'FO'
|
|
152
|
-
| 'FR'
|
|
153
|
-
| 'GA'
|
|
154
|
-
| 'GB'
|
|
155
|
-
| 'GD'
|
|
156
|
-
| 'GE'
|
|
157
|
-
| 'GF'
|
|
158
|
-
| 'GG'
|
|
159
|
-
| 'GH'
|
|
160
|
-
| 'GI'
|
|
161
|
-
| 'GL'
|
|
162
|
-
| 'GM'
|
|
163
|
-
| 'GN'
|
|
164
|
-
| 'GP'
|
|
165
|
-
| 'GQ'
|
|
166
|
-
| 'GR'
|
|
167
|
-
| 'GS'
|
|
168
|
-
| 'GT'
|
|
169
|
-
| 'GU'
|
|
170
|
-
| 'GW'
|
|
171
|
-
| 'GY'
|
|
172
|
-
| 'HK'
|
|
173
|
-
| 'HM'
|
|
174
|
-
| 'HN'
|
|
175
|
-
| 'HR'
|
|
176
|
-
| 'HT'
|
|
177
|
-
| 'HU'
|
|
178
|
-
| 'ID'
|
|
179
|
-
| 'IE'
|
|
180
|
-
| 'IL'
|
|
181
|
-
| 'IM'
|
|
182
|
-
| 'IN'
|
|
183
|
-
| 'IO'
|
|
184
|
-
| 'IQ'
|
|
185
|
-
| 'IR'
|
|
186
|
-
| 'IS'
|
|
187
|
-
| 'IT'
|
|
188
|
-
| 'JE'
|
|
189
|
-
| 'JM'
|
|
190
|
-
| 'JO'
|
|
191
|
-
| 'JP'
|
|
192
|
-
| 'KE'
|
|
193
|
-
| 'KG'
|
|
194
|
-
| 'KH'
|
|
195
|
-
| 'KI'
|
|
196
|
-
| 'KM'
|
|
197
|
-
| 'KN'
|
|
198
|
-
| 'KP'
|
|
199
|
-
| 'KR'
|
|
200
|
-
| 'KW'
|
|
201
|
-
| 'KY'
|
|
202
|
-
| 'KZ'
|
|
203
|
-
| 'LA'
|
|
204
|
-
| 'LB'
|
|
205
|
-
| 'LC'
|
|
206
|
-
| 'LI'
|
|
207
|
-
| 'LK'
|
|
208
|
-
| 'LR'
|
|
209
|
-
| 'LS'
|
|
210
|
-
| 'LT'
|
|
211
|
-
| 'LU'
|
|
212
|
-
| 'LV'
|
|
213
|
-
| 'LY'
|
|
214
|
-
| 'MA'
|
|
215
|
-
| 'MC'
|
|
216
|
-
| 'MD'
|
|
217
|
-
| 'ME'
|
|
218
|
-
| 'MF'
|
|
219
|
-
| 'MG'
|
|
220
|
-
| 'MH'
|
|
221
|
-
| 'MK'
|
|
222
|
-
| 'ML'
|
|
223
|
-
| 'MM'
|
|
224
|
-
| 'MN'
|
|
225
|
-
| 'MO'
|
|
226
|
-
| 'MP'
|
|
227
|
-
| 'MQ'
|
|
228
|
-
| 'MR'
|
|
229
|
-
| 'MS'
|
|
230
|
-
| 'MT'
|
|
231
|
-
| 'MU'
|
|
232
|
-
| 'MV'
|
|
233
|
-
| 'MW'
|
|
234
|
-
| 'MX'
|
|
235
|
-
| 'MY'
|
|
236
|
-
| 'MZ'
|
|
237
|
-
| 'NA'
|
|
238
|
-
| 'NC'
|
|
239
|
-
| 'NE'
|
|
240
|
-
| 'NF'
|
|
241
|
-
| 'NG'
|
|
242
|
-
| 'NI'
|
|
243
|
-
| 'NL'
|
|
244
|
-
| 'NO'
|
|
245
|
-
| 'NP'
|
|
246
|
-
| 'NR'
|
|
247
|
-
| 'NU'
|
|
248
|
-
| 'NZ'
|
|
249
|
-
| 'OM'
|
|
250
|
-
| 'PA'
|
|
251
|
-
| 'PE'
|
|
252
|
-
| 'PF'
|
|
253
|
-
| 'PG'
|
|
254
|
-
| 'PH'
|
|
255
|
-
| 'PK'
|
|
256
|
-
| 'PL'
|
|
257
|
-
| 'PM'
|
|
258
|
-
| 'PN'
|
|
259
|
-
| 'PR'
|
|
260
|
-
| 'PS'
|
|
261
|
-
| 'PT'
|
|
262
|
-
| 'PW'
|
|
263
|
-
| 'PY'
|
|
264
|
-
| 'QA'
|
|
265
|
-
| 'RE'
|
|
266
|
-
| 'RO'
|
|
267
|
-
| 'RS'
|
|
268
|
-
| 'RU'
|
|
269
|
-
| 'RW'
|
|
270
|
-
| 'SA'
|
|
271
|
-
| 'SB'
|
|
272
|
-
| 'SC'
|
|
273
|
-
| 'SD'
|
|
274
|
-
| 'SE'
|
|
275
|
-
| 'SG'
|
|
276
|
-
| 'SH'
|
|
277
|
-
| 'SI'
|
|
278
|
-
| 'SJ'
|
|
279
|
-
| 'SK'
|
|
280
|
-
| 'SL'
|
|
281
|
-
| 'SM'
|
|
282
|
-
| 'SN'
|
|
283
|
-
| 'SO'
|
|
284
|
-
| 'SR'
|
|
285
|
-
| 'SS'
|
|
286
|
-
| 'ST'
|
|
287
|
-
| 'SV'
|
|
288
|
-
| 'SX'
|
|
289
|
-
| 'SY'
|
|
290
|
-
| 'SZ'
|
|
291
|
-
| 'TC'
|
|
292
|
-
| 'TD'
|
|
293
|
-
| 'TF'
|
|
294
|
-
| 'TG'
|
|
295
|
-
| 'TH'
|
|
296
|
-
| 'TJ'
|
|
297
|
-
| 'TK'
|
|
298
|
-
| 'TL'
|
|
299
|
-
| 'TM'
|
|
300
|
-
| 'TN'
|
|
301
|
-
| 'TO'
|
|
302
|
-
| 'TP'
|
|
303
|
-
| 'TR'
|
|
304
|
-
| 'TT'
|
|
305
|
-
| 'TV'
|
|
306
|
-
| 'TW'
|
|
307
|
-
| 'TZ'
|
|
308
|
-
| 'UA'
|
|
309
|
-
| 'UG'
|
|
310
|
-
| 'US'
|
|
311
|
-
| 'UY'
|
|
312
|
-
| 'UZ'
|
|
313
|
-
| 'VA'
|
|
314
|
-
| 'VC'
|
|
315
|
-
| 'VE'
|
|
316
|
-
| 'VG'
|
|
317
|
-
| 'VI'
|
|
318
|
-
| 'VN'
|
|
319
|
-
| 'VU'
|
|
320
|
-
| 'WF'
|
|
321
|
-
| 'WS'
|
|
322
|
-
| 'YE'
|
|
323
|
-
| 'YT'
|
|
324
|
-
| 'ZA'
|
|
325
|
-
| 'ZM'
|
|
326
|
-
| 'ZW'
|
|
327
|
-
| string;
|
|
328
|
-
export type ExtraParamList = ExtraParam[];
|
|
329
|
-
export type ExtraParamName = | 'DUNS_NUMBER'
|
|
330
|
-
| 'BRAND_NUMBER'
|
|
331
|
-
| 'BIRTH_DEPARTMENT'
|
|
332
|
-
| 'BIRTH_DATE_IN_YYYY_MM_DD'
|
|
333
|
-
| 'BIRTH_COUNTRY'
|
|
334
|
-
| 'BIRTH_CITY'
|
|
335
|
-
| 'DOCUMENT_NUMBER'
|
|
336
|
-
| 'AU_ID_NUMBER'
|
|
337
|
-
| 'AU_ID_TYPE'
|
|
338
|
-
| 'CA_LEGAL_TYPE'
|
|
339
|
-
| 'CA_BUSINESS_ENTITY_TYPE'
|
|
340
|
-
| 'CA_LEGAL_REPRESENTATIVE'
|
|
341
|
-
| 'CA_LEGAL_REPRESENTATIVE_CAPACITY'
|
|
342
|
-
| 'ES_IDENTIFICATION'
|
|
343
|
-
| 'ES_IDENTIFICATION_TYPE'
|
|
344
|
-
| 'ES_LEGAL_FORM'
|
|
345
|
-
| 'FI_BUSINESS_NUMBER'
|
|
346
|
-
| 'FI_ID_NUMBER'
|
|
347
|
-
| 'FI_NATIONALITY'
|
|
348
|
-
| 'FI_ORGANIZATION_TYPE'
|
|
349
|
-
| 'IT_NATIONALITY'
|
|
350
|
-
| 'IT_PIN'
|
|
351
|
-
| 'IT_REGISTRANT_ENTITY_TYPE'
|
|
352
|
-
| 'RU_PASSPORT_DATA'
|
|
353
|
-
| 'SE_ID_NUMBER'
|
|
354
|
-
| 'SG_ID_NUMBER'
|
|
355
|
-
| 'VAT_NUMBER'
|
|
356
|
-
| 'UK_CONTACT_TYPE'
|
|
357
|
-
| 'UK_COMPANY_NUMBER'
|
|
358
|
-
| 'EU_COUNTRY_OF_CITIZENSHIP'
|
|
359
|
-
| 'AU_PRIORITY_TOKEN'
|
|
360
|
-
| string;
|
|
361
|
-
export type ExtraParamValue = string;
|
|
362
|
-
export type DnsConfig = Partial<DnsOptions>;
|