@stacksjs/types 0.58.72 → 0.59.1
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 +15 -0
- package/dist/analytics.d.ts +19 -0
- package/dist/api.d.ts +59 -0
- package/dist/app.d.ts +135 -0
- package/dist/auto-imports.d.ts +1 -0
- package/dist/binary.d.ts +11 -0
- package/dist/build.d.ts +2 -0
- package/dist/cache.d.ts +88 -0
- package/dist/cdn.d.ts +16 -0
- package/dist/chat.d.ts +4 -0
- package/dist/cli.d.ts +278 -0
- package/dist/cloud.d.ts +69 -0
- package/dist/components.d.ts +60 -0
- package/dist/configure.d.ts +12 -0
- package/dist/cron-jobs.d.ts +43 -0
- package/dist/database.d.ts +37 -0
- package/dist/dependencies.d.ts +62 -0
- package/dist/deploy.d.ts +12 -0
- package/dist/dns.d.ts +175 -0
- package/dist/docs.d.ts +22 -0
- package/dist/email.d.ts +14 -0
- package/dist/env.d.ts +1 -0
- package/dist/errors.d.ts +1 -0
- package/dist/events.d.ts +30 -0
- package/dist/exit-code.d.ts +10 -0
- package/dist/file-systems.d.ts +60 -0
- package/dist/git.d.ts +129 -0
- package/dist/hashing.d.ts +109 -0
- package/dist/helpers.d.ts +1 -0
- package/dist/i18n.d.ts +19 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.js +14 -1791
- package/dist/inspect.d.ts +9 -0
- package/dist/library.d.ts +134 -0
- package/dist/logger.d.ts +49 -0
- package/dist/manifest.d.ts +9 -0
- package/dist/model.d.ts +70 -0
- package/dist/money.d.ts +2 -0
- package/dist/notifications.d.ts +117 -0
- package/dist/pages.d.ts +10 -0
- package/dist/payments.d.ts +60 -0
- package/dist/ports.d.ts +19 -0
- package/dist/promise.d.ts +1 -0
- package/dist/push.d.ts +35 -0
- package/dist/pwa.d.ts +7 -0
- package/dist/queue.d.ts +36 -0
- package/dist/reactivity.d.ts +1 -0
- package/dist/router.d.ts +78 -0
- package/dist/scheduler.d.ts +1 -0
- package/dist/search-engine.d.ts +118 -0
- package/dist/security.d.ts +18 -0
- package/dist/services.d.ts +33 -0
- package/dist/sms.d.ts +1 -0
- package/dist/ssg.d.ts +2 -0
- package/dist/stacks.d.ts +196 -0
- package/dist/storage.d.ts +12 -0
- package/dist/tables.d.ts +52 -0
- package/dist/team.d.ts +8 -0
- package/dist/ui.d.ts +165 -0
- package/dist/utils.d.ts +33 -0
- package/package.json +9 -10
- package/src/app.ts +0 -21
- package/src/chat.ts +1 -2
- package/src/cli.ts +21 -3
- package/src/cloud.ts +2 -0
- package/src/email.ts +5 -2
- package/src/index.ts +1 -1
- package/src/model.ts +19 -9
- package/src/ports.ts +19 -0
- package/src/router.ts +24 -4
- package/src/scheduler.ts +1 -1
- package/src/services.ts +0 -4
- package/src/sms.ts +3 -3
- package/src/stacks.ts +10 -0
- package/src/request.ts +0 -3
package/dist/git.d.ts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **Git Options**
|
|
3
|
+
*
|
|
4
|
+
* This configuration defines all of your git options. 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
|
+
export interface GitOptions {
|
|
9
|
+
/**
|
|
10
|
+
* **Git Hooks**
|
|
11
|
+
*
|
|
12
|
+
* The git hooks to use.
|
|
13
|
+
*
|
|
14
|
+
* @see https://git-scm.com/docs/githooks
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* git: {
|
|
18
|
+
* hooks: {
|
|
19
|
+
* 'pre-commit': 'lint-staged',
|
|
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
|
+
};
|
|
95
|
+
}
|
|
96
|
+
interface Hooks {
|
|
97
|
+
'applypatch-msg'?: string;
|
|
98
|
+
'pre-applypatch'?: string;
|
|
99
|
+
'post-applypatch'?: string;
|
|
100
|
+
'pre-commit'?: string;
|
|
101
|
+
'pre-merge-commit'?: string;
|
|
102
|
+
'prepare-commit-msg'?: string;
|
|
103
|
+
'commit-msg'?: string;
|
|
104
|
+
'post-commit'?: string;
|
|
105
|
+
'pre-rebase'?: string;
|
|
106
|
+
'post-checkout'?: string;
|
|
107
|
+
'post-merge'?: string;
|
|
108
|
+
'pre-push'?: string;
|
|
109
|
+
'pre-receive'?: string;
|
|
110
|
+
'update'?: string;
|
|
111
|
+
'proc-receive'?: string;
|
|
112
|
+
'post-receive'?: string;
|
|
113
|
+
'post-update'?: string;
|
|
114
|
+
'reference-transaction'?: string;
|
|
115
|
+
'push-to-checkout'?: string;
|
|
116
|
+
'pre-auto-gc'?: string;
|
|
117
|
+
'post-rewrite'?: string;
|
|
118
|
+
'sendemail-validate'?: string;
|
|
119
|
+
'fsmonitor-watchman'?: string;
|
|
120
|
+
'p4-changelist'?: string;
|
|
121
|
+
'p4-prepare-changelist'?: string;
|
|
122
|
+
'p4-post-changelist'?: string;
|
|
123
|
+
'p4-pre-submit'?: string;
|
|
124
|
+
'post-index-change'?: string;
|
|
125
|
+
}
|
|
126
|
+
export type GitConfig = Partial<GitOptions>;
|
|
127
|
+
export interface GitHooks extends Hooks {
|
|
128
|
+
}
|
|
129
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Stacks runtime provides secure Bcrypt & Argon2 hashing for storing user passwords.
|
|
3
|
+
* If you are using one of the Laravel application starter kits, Bcrypt will be used for
|
|
4
|
+
* registration and authentication by default.
|
|
5
|
+
*
|
|
6
|
+
* Bcrypt is a great choice for hashing passwords because its "work factor" is adjustable, which
|
|
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;
|
|
45
|
+
}
|
|
46
|
+
export type HashingConfig = Partial<HashingOptions>;
|
|
47
|
+
/**
|
|
48
|
+
* **Bcrypt Options**
|
|
49
|
+
*
|
|
50
|
+
* Here you may specify the configuration options that should be used when
|
|
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;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* **Argon Options**
|
|
73
|
+
*
|
|
74
|
+
* Here you may specify the configuration options that should be used when
|
|
75
|
+
* passwords are hashed using the Argon algorithm. These will allow you
|
|
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 Parallelism**
|
|
92
|
+
*
|
|
93
|
+
* Degree of parallelism (i.e. number of threads).
|
|
94
|
+
*
|
|
95
|
+
* @default number 1
|
|
96
|
+
* @see https://stacksjs.org/docs/hashing
|
|
97
|
+
*/
|
|
98
|
+
threads?: number;
|
|
99
|
+
/**
|
|
100
|
+
* **Argon time**
|
|
101
|
+
*
|
|
102
|
+
* Execution time.
|
|
103
|
+
*
|
|
104
|
+
* @default number 1
|
|
105
|
+
* @see https://stacksjs.org/docs/hashing
|
|
106
|
+
*/
|
|
107
|
+
time?: number;
|
|
108
|
+
}
|
|
109
|
+
export type HashAlgorithm = 'md4' | 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'ripemd128' | 'ripemd160' | 'tiger128' | 'tiger160' | 'tiger192' | 'crc32' | 'crc32b';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getTypeName(v: any): string;
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface VitePluginVueI18nOptions {
|
|
2
|
+
forceStringify?: boolean;
|
|
3
|
+
runtimeOnly?: boolean;
|
|
4
|
+
compositionOnly?: boolean;
|
|
5
|
+
fullInstall?: boolean;
|
|
6
|
+
include?: string | string[];
|
|
7
|
+
defaultSFCLang?: 'json' | 'json5' | 'yml' | 'yaml';
|
|
8
|
+
globalSFCScope?: boolean;
|
|
9
|
+
useVueI18nImportName?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* **Internationalization Options**
|
|
13
|
+
*
|
|
14
|
+
* The i18n option.
|
|
15
|
+
*
|
|
16
|
+
* @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
|
|
17
|
+
*/
|
|
18
|
+
export type i18nOptions = VitePluginVueI18nOptions;
|
|
19
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export * from './ai';
|
|
2
|
+
export * from './analytics';
|
|
3
|
+
export * from './api';
|
|
4
|
+
export * from './app';
|
|
5
|
+
export * from './auto-imports';
|
|
6
|
+
export * from './binary';
|
|
7
|
+
export * from './build';
|
|
8
|
+
export * from './cache';
|
|
9
|
+
export * from './cdn';
|
|
10
|
+
export * from './chat';
|
|
11
|
+
export * from './cli';
|
|
12
|
+
export * from './cloud';
|
|
13
|
+
export * from './components';
|
|
14
|
+
export * from './configure';
|
|
15
|
+
export * from './cron-jobs';
|
|
16
|
+
export * from './database';
|
|
17
|
+
export * from './dependencies';
|
|
18
|
+
export * from './deploy';
|
|
19
|
+
export * from './dns';
|
|
20
|
+
export * from './docs';
|
|
21
|
+
export * from './errors';
|
|
22
|
+
export * from './email';
|
|
23
|
+
export * from './env';
|
|
24
|
+
export * from './events';
|
|
25
|
+
export * from './exit-code';
|
|
26
|
+
export * from './file-systems';
|
|
27
|
+
export * from './git';
|
|
28
|
+
export * from './hashing';
|
|
29
|
+
export * from './i18n';
|
|
30
|
+
export * from './inspect';
|
|
31
|
+
export * from './library';
|
|
32
|
+
export * from './logger';
|
|
33
|
+
export * from './manifest';
|
|
34
|
+
export * from './model';
|
|
35
|
+
export * from './money';
|
|
36
|
+
export * from './notifications';
|
|
37
|
+
export * from './pages';
|
|
38
|
+
export * from './payments';
|
|
39
|
+
export * from './ports';
|
|
40
|
+
export * from './promise';
|
|
41
|
+
export * from './pwa';
|
|
42
|
+
export * from './push';
|
|
43
|
+
export * from './queue';
|
|
44
|
+
export * from './reactivity';
|
|
45
|
+
export * from './router';
|
|
46
|
+
export * from './scheduler';
|
|
47
|
+
export * from './search-engine';
|
|
48
|
+
export * from './security';
|
|
49
|
+
export * from './services';
|
|
50
|
+
export * from './sms';
|
|
51
|
+
export * from './ssg';
|
|
52
|
+
export * from './storage';
|
|
53
|
+
export * from './stacks';
|
|
54
|
+
export * from './team';
|
|
55
|
+
export * from './tables';
|
|
56
|
+
export * from './ui';
|
|
57
|
+
export * from './utils';
|
|
58
|
+
export * from './helpers';
|