@stacksjs/types 0.67.0 → 0.68.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.
- package/dist/ai.d.ts +17 -14
- package/dist/analytics.d.ts +12 -14
- package/dist/api.d.ts +25 -66
- package/dist/app.d.ts +29 -134
- package/dist/auto-imports.d.ts +1 -1
- package/dist/binary.d.ts +7 -10
- package/dist/build.d.ts +2 -2
- package/dist/cache.d.ts +48 -77
- package/dist/cdn.d.ts +3 -15
- package/dist/chat.d.ts +2 -2
- package/dist/cli.d.ts +252 -239
- package/dist/cloud.d.ts +305 -68
- package/dist/components.d.ts +11 -59
- package/dist/configure.d.ts +11 -11
- package/dist/cron-jobs.d.ts +34 -41
- package/dist/database.d.ts +50 -45
- package/dist/dependencies.d.ts +15 -61
- package/dist/deploy.d.ts +10 -16
- package/dist/dns.d.ts +349 -167
- package/dist/docs.d.ts +20 -19
- package/dist/email.d.ts +15 -10
- package/dist/errors.d.ts +87 -69
- package/dist/events.d.ts +3 -30
- package/dist/exit-code.d.ts +4 -9
- package/dist/file-systems.d.ts +52 -56
- package/dist/git.d.ts +54 -126
- package/dist/hashing.d.ts +30 -97
- package/dist/helpers.d.ts +1 -1
- package/dist/i18n.d.ts +10 -18
- package/dist/index.d.ts +62 -61
- package/dist/index.js +1 -1
- package/dist/inspect.d.ts +3 -9
- package/dist/library.d.ts +798 -139
- package/dist/logging.d.ts +5 -27
- package/dist/manifest.d.ts +6 -9
- package/dist/model-names.d.ts +1 -1
- package/dist/model.d.ts +150 -130
- package/dist/notifications.d.ts +150 -105
- package/dist/pages.d.ts +10 -10
- package/dist/payments.d.ts +84 -55
- package/dist/ports.d.ts +13 -20
- package/dist/promise.d.ts +1 -1
- package/dist/push.d.ts +34 -30
- package/dist/pwa.d.ts +3 -7
- package/dist/queue.d.ts +36 -33
- package/dist/reactivity.d.ts +1 -1
- package/dist/request.d.ts +39 -26
- package/dist/router.d.ts +51 -51
- package/dist/saas.d.ts +32 -0
- package/dist/scheduler.d.ts +1 -1
- package/dist/search-engine.d.ts +85 -111
- package/dist/security.d.ts +18 -16
- package/dist/server.d.ts +16 -6
- package/dist/services.d.ts +34 -28
- package/dist/settings-config.d.ts +8 -8
- package/dist/ssg.d.ts +3 -2
- package/dist/stacks.d.ts +53 -203
- package/dist/storage.d.ts +29 -36
- package/dist/tables.d.ts +34 -52
- package/dist/team.d.ts +7 -8
- package/dist/ui.d.ts +39 -162
- package/dist/utils.d.ts +20 -30
- package/package.json +8 -8
- package/src/cli.ts +2 -0
- package/src/cloud.ts +16 -4
- package/src/errors.ts +8 -0
- package/src/index.ts +1 -0
- package/src/model-names.ts +1 -1
- package/src/model.ts +6 -0
- package/src/payments.ts +32 -0
- package/src/saas.ts +33 -0
- package/src/stacks.ts +10 -0
- package/dist/env.d.ts +0 -0
- package/dist/layout.d.ts +0 -0
- package/dist/native.d.ts +0 -0
- package/dist/sms.d.ts +0 -0
package/dist/email.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
export interface EmailOptions {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export declare interface EmailOptions {
|
|
2
|
+
from: {
|
|
3
|
+
name: string
|
|
4
|
+
address: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
mailboxes: string[]
|
|
8
|
+
|
|
9
|
+
url: string
|
|
10
|
+
charset: string
|
|
11
|
+
|
|
12
|
+
server: {
|
|
13
|
+
scan?: boolean
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
|
-
export type EmailConfig = Partial<EmailOptions
|
|
16
|
+
export declare type EmailConfig = Partial<EmailOptions>
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,70 +1,88 @@
|
|
|
1
|
-
export type CommandError = Error
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"activeUrl": string;
|
|
9
|
-
"alpha": string;
|
|
10
|
-
"alphaNumeric": string;
|
|
11
|
-
"minLength": string;
|
|
12
|
-
"maxLength": string;
|
|
13
|
-
"fixedLength": string;
|
|
14
|
-
"confirmed": string;
|
|
15
|
-
"endsWith": string;
|
|
16
|
-
"startsWith": string;
|
|
17
|
-
"sameAs": string;
|
|
18
|
-
"notSameAs": string;
|
|
19
|
-
"in": string;
|
|
20
|
-
"notIn": string;
|
|
21
|
-
"ipAddress": string;
|
|
22
|
-
"uuid": string;
|
|
23
|
-
"ascii": string;
|
|
24
|
-
"creditCard": string;
|
|
25
|
-
"hexCode": string;
|
|
26
|
-
"iban": string;
|
|
27
|
-
"jwt": string;
|
|
28
|
-
"coordinates": string;
|
|
29
|
-
"mobile": string;
|
|
30
|
-
"passport": string;
|
|
31
|
-
"postalCode": string;
|
|
32
|
-
"boolean": string;
|
|
33
|
-
"number": string;
|
|
34
|
-
"min": string;
|
|
35
|
-
"max": string;
|
|
36
|
-
"range": string;
|
|
37
|
-
"positive": string;
|
|
38
|
-
"negative": string;
|
|
39
|
-
"decimal": string;
|
|
40
|
-
"withoutDecimals": string;
|
|
41
|
-
"date": string;
|
|
42
|
-
"date.equals": string;
|
|
43
|
-
"date.after": string;
|
|
44
|
-
"date.before": string;
|
|
45
|
-
"date.afterOrEqual": string;
|
|
46
|
-
"date.beforeOrEqual": string;
|
|
47
|
-
"date.sameAs": string;
|
|
48
|
-
"date.notSameAs": string;
|
|
49
|
-
"date.afterField": string;
|
|
50
|
-
"accepted": string;
|
|
51
|
-
"enum": string;
|
|
52
|
-
"literal": string;
|
|
53
|
-
"object": string;
|
|
54
|
-
"record": string;
|
|
55
|
-
"record.minLength": string;
|
|
56
|
-
"record.maxLength": string;
|
|
57
|
-
"record.fixedLength": string;
|
|
58
|
-
"array": string;
|
|
59
|
-
"array.minLength": string;
|
|
60
|
-
"array.maxLength": string;
|
|
61
|
-
"array.fixedLength": string;
|
|
62
|
-
"notEmpty": string;
|
|
63
|
-
"distinct": string;
|
|
64
|
-
"tuple": string;
|
|
65
|
-
"union": string;
|
|
66
|
-
"unionGroup": string;
|
|
67
|
-
"unionOfTypes": string;
|
|
68
|
-
};
|
|
1
|
+
export declare type CommandError = Error
|
|
2
|
+
export declare interface ErrorResponse {
|
|
3
|
+
status: number
|
|
4
|
+
errors: string | object
|
|
5
|
+
stack?: string
|
|
6
|
+
name: string
|
|
7
|
+
message: string
|
|
69
8
|
}
|
|
70
|
-
export
|
|
9
|
+
export declare interface ErrorOptions {
|
|
10
|
+
messages: {
|
|
11
|
+
'string': string
|
|
12
|
+
'email': string
|
|
13
|
+
'regex': string
|
|
14
|
+
'url': string
|
|
15
|
+
'activeUrl': string
|
|
16
|
+
'alpha': string
|
|
17
|
+
'alphaNumeric': string
|
|
18
|
+
'minLength': string
|
|
19
|
+
'maxLength': string
|
|
20
|
+
'fixedLength': string
|
|
21
|
+
'confirmed': string
|
|
22
|
+
'endsWith': string
|
|
23
|
+
'startsWith': string
|
|
24
|
+
'sameAs': string
|
|
25
|
+
'notSameAs': string
|
|
26
|
+
'in': string
|
|
27
|
+
'notIn': string
|
|
28
|
+
'ipAddress': string
|
|
29
|
+
'uuid': string
|
|
30
|
+
'ascii': string
|
|
31
|
+
'creditCard': string
|
|
32
|
+
'hexCode': string
|
|
33
|
+
'iban': string
|
|
34
|
+
'jwt': string
|
|
35
|
+
'coordinates': string
|
|
36
|
+
'mobile': string
|
|
37
|
+
'passport': string
|
|
38
|
+
'postalCode': string
|
|
39
|
+
|
|
40
|
+
'boolean': string
|
|
41
|
+
|
|
42
|
+
'number': string
|
|
43
|
+
'min': string
|
|
44
|
+
'max': string
|
|
45
|
+
'range': string
|
|
46
|
+
'positive': string
|
|
47
|
+
'negative': string
|
|
48
|
+
'decimal': string
|
|
49
|
+
'withoutDecimals': string
|
|
50
|
+
|
|
51
|
+
'date': string
|
|
52
|
+
'date.equals': string
|
|
53
|
+
'date.after': string
|
|
54
|
+
'date.before': string
|
|
55
|
+
'date.afterOrEqual': string
|
|
56
|
+
'date.beforeOrEqual': string
|
|
57
|
+
'date.sameAs': string
|
|
58
|
+
'date.notSameAs': string
|
|
59
|
+
'date.afterField': string
|
|
60
|
+
|
|
61
|
+
'accepted': string
|
|
62
|
+
|
|
63
|
+
'enum': string
|
|
64
|
+
|
|
65
|
+
'literal': string
|
|
66
|
+
|
|
67
|
+
'object': string
|
|
68
|
+
|
|
69
|
+
'record': string
|
|
70
|
+
'record.minLength': string
|
|
71
|
+
'record.maxLength': string
|
|
72
|
+
'record.fixedLength': string
|
|
73
|
+
|
|
74
|
+
'array': string
|
|
75
|
+
'array.minLength': string
|
|
76
|
+
'array.maxLength': string
|
|
77
|
+
'array.fixedLength': string
|
|
78
|
+
'notEmpty': string
|
|
79
|
+
'distinct': string
|
|
80
|
+
|
|
81
|
+
'tuple': string
|
|
82
|
+
|
|
83
|
+
'union': string
|
|
84
|
+
'unionGroup': string
|
|
85
|
+
'unionOfTypes': string
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export declare type ErrorConfig = Partial<ErrorOptions>
|
package/dist/events.d.ts
CHANGED
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* This configuration defines all of your events. Because Stacks is fully-typed, you may
|
|
5
|
-
* 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
|
-
* @example To fire an event, you may use any of the following approaches:
|
|
9
|
-
* ```ts
|
|
10
|
-
* dispatch('user:registered', { name: 'Chris', email: 'chris@stacksjs.org' })
|
|
11
|
-
*
|
|
12
|
-
* // alternatively, you may use the following:
|
|
13
|
-
* useEvent('user:registered', { name: 'Chris', email: 'chris@stacksjs.org' })
|
|
14
|
-
* events.emit('user:registered', { name: 'Chris', email: 'chris@stacksjs.org' })
|
|
15
|
-
* useEvents.emit('user:registered', { name: 'Chris', email: 'chris@stacksjs.org' })
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @example To capture an event, you may use any of the following approaches:
|
|
19
|
-
* ```ts
|
|
20
|
-
* listen('user:registered', (user) => sendWelcomeEmail(user))
|
|
21
|
-
*
|
|
22
|
-
* // alternatively, you may use the following:
|
|
23
|
-
* useListen('user:registered', (user) => sendWelcomeEmail(user))
|
|
24
|
-
* events.on('user:registered', (user) => sendWelcomeEmail(user))
|
|
25
|
-
* useEvents.on('user:registered', (user) => sendWelcomeEmail(user))
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export interface Events {
|
|
29
|
-
[key: string]: string[];
|
|
30
|
-
}
|
|
1
|
+
export declare interface Events {
|
|
2
|
+
[key: string]: string[]
|
|
3
|
+
}
|
package/dist/exit-code.d.ts
CHANGED
package/dist/file-systems.d.ts
CHANGED
|
@@ -1,60 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface TextFile {
|
|
5
|
-
path: string;
|
|
6
|
-
data: string;
|
|
1
|
+
export declare interface TextFile {
|
|
2
|
+
path: string
|
|
3
|
+
data: string
|
|
7
4
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
data: unknown;
|
|
14
|
-
indent: string;
|
|
15
|
-
newline: string | undefined;
|
|
5
|
+
export declare interface JsonFile {
|
|
6
|
+
path: string
|
|
7
|
+
data: unknown
|
|
8
|
+
indent: string
|
|
9
|
+
newline: string | undefined
|
|
16
10
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
version: string;
|
|
26
|
-
packageManager: string;
|
|
11
|
+
export declare interface PackageJson {
|
|
12
|
+
engines: {
|
|
13
|
+
node: string
|
|
14
|
+
pnpm: string
|
|
15
|
+
}
|
|
16
|
+
version: string
|
|
17
|
+
packageManager: string
|
|
27
18
|
}
|
|
28
|
-
export interface FileSystemOptions {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
19
|
+
export declare interface FileSystemOptions {
|
|
20
|
+
default: string
|
|
21
|
+
disks: {
|
|
22
|
+
local: {
|
|
23
|
+
driver: 'local'
|
|
24
|
+
root: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public: {
|
|
28
|
+
driver: 'public'
|
|
29
|
+
root: string
|
|
30
|
+
visibility?: 'public'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
private: {
|
|
34
|
+
driver: 'private'
|
|
35
|
+
root: string
|
|
36
|
+
visibility?: 'private'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
efs: {
|
|
40
|
+
driver: 'local'
|
|
41
|
+
root: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
s3: {
|
|
45
|
+
driver: 's3'
|
|
46
|
+
root: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[key: string]: {
|
|
50
|
+
driver: string
|
|
51
|
+
root: string
|
|
52
|
+
visibility?: 'public' | 'private'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
59
55
|
}
|
|
60
|
-
export type FileSystemConfig = Partial<FileSystemOptions
|
|
56
|
+
export declare type FileSystemConfig = Partial<FileSystemOptions>
|
package/dist/git.d.ts
CHANGED
|
@@ -1,128 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hooks: GitHooks;
|
|
25
|
-
/**
|
|
26
|
-
* **Git Commit Scopes**
|
|
27
|
-
*
|
|
28
|
-
* The git commit scopes to use.
|
|
29
|
-
*
|
|
30
|
-
* @see https://stacksjs.org/docs/git/scopes
|
|
31
|
-
* @example
|
|
32
|
-
* git: [
|
|
33
|
-
* scopes: [
|
|
34
|
-
* '', 'ci', 'deps', 'dx', 'release', 'readme', 'test', 'actions', 'build', 'cli',
|
|
35
|
-
* 'config', 'examples', 'functions', 'modules', 'views', 'router', 'scripts',
|
|
36
|
-
* 'ui', 'utils', 'arrays', 'collections', 'fs', 'objects', 'strings',
|
|
37
|
-
* ]
|
|
38
|
-
* ]
|
|
39
|
-
*/
|
|
40
|
-
scopes: string[];
|
|
41
|
-
/**
|
|
42
|
-
* **Git Commit Types**
|
|
43
|
-
*
|
|
44
|
-
* The git commit types to use.
|
|
45
|
-
*
|
|
46
|
-
* @default array
|
|
47
|
-
* @see https://stacksjs.org/docs/git/types
|
|
48
|
-
* @see https://www.conventionalcommits.org/en/v1.0.0/
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* git: [
|
|
52
|
-
* types: [
|
|
53
|
-
* 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test',
|
|
54
|
-
* ]
|
|
55
|
-
* ]
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
types: {
|
|
59
|
-
value: string;
|
|
60
|
-
name: string;
|
|
61
|
-
emoji: string;
|
|
62
|
-
}[];
|
|
63
|
-
/**
|
|
64
|
-
* **Messages—Options**
|
|
65
|
-
*
|
|
66
|
-
* The git messages/prompts to use.
|
|
67
|
-
*
|
|
68
|
-
* @default object
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* messages: {
|
|
72
|
-
* type: 'Select the type of change that you’re committing:',
|
|
73
|
-
* scope: 'Denote the SCOPE of this change:',
|
|
74
|
-
* subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
|
|
75
|
-
* body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
|
|
76
|
-
* breaking: 'List any BREAKING CHANGES (optional):\n',
|
|
77
|
-
* footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
|
|
78
|
-
* confirmCommit: 'Are you sure you want to proceed with the commit above?',
|
|
79
|
-
* }
|
|
80
|
-
* ```
|
|
81
|
-
* @see https://stacksjs.org/docs/git/messages
|
|
82
|
-
*/
|
|
83
|
-
messages: {
|
|
84
|
-
type: string;
|
|
85
|
-
scope: string;
|
|
86
|
-
customScope: string;
|
|
87
|
-
subject: string;
|
|
88
|
-
body: string;
|
|
89
|
-
breaking: string;
|
|
90
|
-
footerPrefixesSelect: string;
|
|
91
|
-
customFooterPrefixes: string;
|
|
92
|
-
footer: string;
|
|
93
|
-
confirmCommit: string;
|
|
94
|
-
};
|
|
1
|
+
export declare interface GitOptions {
|
|
2
|
+
hooks: GitHooks
|
|
3
|
+
|
|
4
|
+
scopes: string[]
|
|
5
|
+
|
|
6
|
+
types: {
|
|
7
|
+
value: string
|
|
8
|
+
name: string
|
|
9
|
+
emoji: string
|
|
10
|
+
}[]
|
|
11
|
+
|
|
12
|
+
messages: {
|
|
13
|
+
type: string
|
|
14
|
+
scope: string
|
|
15
|
+
customScope: string
|
|
16
|
+
subject: string
|
|
17
|
+
body: string
|
|
18
|
+
breaking: string
|
|
19
|
+
footerPrefixesSelect: string
|
|
20
|
+
customFooterPrefixes: string
|
|
21
|
+
footer: string
|
|
22
|
+
confirmCommit: string
|
|
23
|
+
}
|
|
95
24
|
}
|
|
96
|
-
interface Hooks {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
25
|
+
declare interface Hooks {
|
|
26
|
+
'applypatch-msg'?: string
|
|
27
|
+
'pre-applypatch'?: string
|
|
28
|
+
'post-applypatch'?: string
|
|
29
|
+
'pre-commit'?: string
|
|
30
|
+
'pre-merge-commit'?: string
|
|
31
|
+
'prepare-commit-msg'?: string
|
|
32
|
+
'commit-msg'?: string
|
|
33
|
+
'post-commit'?: string
|
|
34
|
+
'pre-rebase'?: string
|
|
35
|
+
'post-checkout'?: string
|
|
36
|
+
'post-merge'?: string
|
|
37
|
+
'pre-push'?: string
|
|
38
|
+
'pre-receive'?: string
|
|
39
|
+
'update'?: string
|
|
40
|
+
'proc-receive'?: string
|
|
41
|
+
'post-receive'?: string
|
|
42
|
+
'post-update'?: string
|
|
43
|
+
'reference-transaction'?: string
|
|
44
|
+
'push-to-checkout'?: string
|
|
45
|
+
'pre-auto-gc'?: string
|
|
46
|
+
'post-rewrite'?: string
|
|
47
|
+
'sendemail-validate'?: string
|
|
48
|
+
'fsmonitor-watchman'?: string
|
|
49
|
+
'p4-changelist'?: string
|
|
50
|
+
'p4-prepare-changelist'?: string
|
|
51
|
+
'p4-post-changelist'?: string
|
|
52
|
+
'p4-pre-submit'?: string
|
|
53
|
+
'post-index-change'?: string
|
|
125
54
|
}
|
|
126
|
-
export type GitConfig = Partial<GitOptions
|
|
127
|
-
export interface GitHooks extends Hooks {}
|
|
128
|
-
export {};
|
|
55
|
+
export declare type GitConfig = Partial<GitOptions>
|
|
56
|
+
export declare interface GitHooks extends Hooks {}
|
package/dist/hashing.d.ts
CHANGED
|
@@ -1,100 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* means that the time it takes to generate a hash can be increased as hardware power increases.
|
|
8
|
-
* When hashing passwords, slow is good. The longer an algorithm takes to hash a password, the
|
|
9
|
-
* longer it takes malicious users to generate "rainbow tables" of all possible string hash
|
|
10
|
-
* values that may be used in brute force attacks against applications.
|
|
11
|
-
*
|
|
12
|
-
* @see https://stacksjs.org/docs/hashing
|
|
13
|
-
*/
|
|
14
|
-
export interface HashingOptions {
|
|
15
|
-
/**
|
|
16
|
-
* **Hashing Driver**
|
|
17
|
-
*
|
|
18
|
-
* This option controls the default hash driver that will be used to hash
|
|
19
|
-
* passwords for your application. By default, the bcrypt algorithm is
|
|
20
|
-
* used; however, you remain free to modify this option if you wish.
|
|
21
|
-
*
|
|
22
|
-
* @see https://stacksjs.org/docs/hashing
|
|
23
|
-
*/
|
|
24
|
-
driver: "argon2" | "argon2id" | "argon2i" | "argon2d" | "bcrypt";
|
|
25
|
-
/**
|
|
26
|
-
* **Bcrypt Option**
|
|
27
|
-
*
|
|
28
|
-
* Here you may specify the configuration options that should be used when
|
|
29
|
-
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
30
|
-
* to control the amount of time it takes to hash the given password.
|
|
31
|
-
*
|
|
32
|
-
* @see https://stacksjs.org/docs/hashing
|
|
33
|
-
*/
|
|
34
|
-
bcrypt?: BcryptOptions;
|
|
35
|
-
/**
|
|
36
|
-
* **Argon Options**
|
|
37
|
-
*
|
|
38
|
-
* Here you may specify the configuration options that should be used when
|
|
39
|
-
* passwords are hashed using the Argon algorithm. These will allow you
|
|
40
|
-
* to control the amount of time it takes to hash the given password.
|
|
41
|
-
*
|
|
42
|
-
* @see https://stacksjs.org/docs/hashing
|
|
43
|
-
*/
|
|
44
|
-
argon2?: ArgonOptions;
|
|
1
|
+
export declare interface HashingOptions {
|
|
2
|
+
driver: 'argon2' | 'argon2id' | 'argon2i' | 'argon2d' | 'bcrypt'
|
|
3
|
+
|
|
4
|
+
bcrypt?: BcryptOptions
|
|
5
|
+
|
|
6
|
+
argon2?: ArgonOptions
|
|
45
7
|
}
|
|
46
|
-
export type HashingConfig = Partial<HashingOptions
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
52
|
-
* to control the amount of time it takes to hash the given password.
|
|
53
|
-
*
|
|
54
|
-
* @see https://stacksjs.org/docs/hashing
|
|
55
|
-
*/
|
|
56
|
-
export interface BcryptOptions {
|
|
57
|
-
/**
|
|
58
|
-
* Bcrypt salt rounds.
|
|
59
|
-
*
|
|
60
|
-
* @default number 10
|
|
61
|
-
* @see https://stacksjs.org/docs/hashing
|
|
62
|
-
*/
|
|
63
|
-
rounds: number;
|
|
64
|
-
/**
|
|
65
|
-
* Bcrypt cost. This is a number between 4-31.
|
|
66
|
-
* @default number 4
|
|
67
|
-
* @see https://stacksjs.org/docs/hashing
|
|
68
|
-
*/
|
|
69
|
-
cost: number;
|
|
8
|
+
export declare type HashingConfig = Partial<HashingOptions>
|
|
9
|
+
export declare interface BcryptOptions {
|
|
10
|
+
rounds: number
|
|
11
|
+
|
|
12
|
+
cost: number
|
|
70
13
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
* to control the amount of time it takes to hash the given password.
|
|
77
|
-
*
|
|
78
|
-
* @see https://stacksjs.org/docs/hashing
|
|
79
|
-
*/
|
|
80
|
-
export interface ArgonOptions {
|
|
81
|
-
/**
|
|
82
|
-
* **Argon Memory**
|
|
83
|
-
*
|
|
84
|
-
* Amount of memory (in kibibytes) to use.
|
|
85
|
-
*
|
|
86
|
-
* @default number 65536
|
|
87
|
-
* @see https://stacksjs.org/docs/hashing
|
|
88
|
-
*/
|
|
89
|
-
memory?: number;
|
|
90
|
-
/**
|
|
91
|
-
* **Argon time**
|
|
92
|
-
*
|
|
93
|
-
* Execution time.
|
|
94
|
-
*
|
|
95
|
-
* @default number 1
|
|
96
|
-
* @see https://stacksjs.org/docs/hashing
|
|
97
|
-
*/
|
|
98
|
-
time?: number;
|
|
14
|
+
export declare interface ArgonOptions {
|
|
15
|
+
memory?: number
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
time?: number
|
|
99
19
|
}
|
|
100
|
-
export type HashAlgorithm =
|
|
20
|
+
export declare type HashAlgorithm =
|
|
21
|
+
| 'md4'
|
|
22
|
+
| 'md5'
|
|
23
|
+
| 'sha1'
|
|
24
|
+
| 'sha256'
|
|
25
|
+
| 'sha384'
|
|
26
|
+
| 'sha512'
|
|
27
|
+
| 'ripemd128'
|
|
28
|
+
| 'ripemd160'
|
|
29
|
+
| 'tiger128'
|
|
30
|
+
| 'tiger160'
|
|
31
|
+
| 'tiger192'
|
|
32
|
+
| 'crc32'
|
|
33
|
+
| 'crc32b'
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getTypeName(v: any): string;
|
|
1
|
+
export declare function getTypeName(v: any): string;
|