@appsemble/types 0.36.3-test.6 → 0.36.3
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/README.md +3 -3
- package/cli.d.ts +12 -1
- package/index.d.ts +12 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Types
|
|
2
2
|
|
|
3
3
|
> Reusable TypeScript types
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/types)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.36.3)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -26,5 +26,5 @@ not guaranteed.
|
|
|
26
26
|
|
|
27
27
|
## License
|
|
28
28
|
|
|
29
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.3
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.3/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
package/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AppVisibility } from './app.js';
|
|
2
|
-
import { type AppLock } from './index.js';
|
|
2
|
+
import { type AppLock, type AppTotp } from './index.js';
|
|
3
3
|
/**
|
|
4
4
|
* A `context` which can be specified using the `--context` command line argument.
|
|
5
5
|
*/
|
|
@@ -181,6 +181,17 @@ export interface AppsembleContext {
|
|
|
181
181
|
* Languages officially supported by the app
|
|
182
182
|
*/
|
|
183
183
|
supportedLanguages?: string[];
|
|
184
|
+
/**
|
|
185
|
+
* The TOTP (two-factor authentication) setting for the app.
|
|
186
|
+
*
|
|
187
|
+
* - `disabled`: TOTP is not available for app members.
|
|
188
|
+
* - `enabled`: TOTP is available but optional for app members.
|
|
189
|
+
* - `required`: TOTP is required for all app members. WARNING: Setting this will lock out
|
|
190
|
+
* existing users who have not yet enabled 2FA on their accounts.
|
|
191
|
+
*
|
|
192
|
+
* If `totp` is specified, this will override `--totp` passed on the command line.
|
|
193
|
+
*/
|
|
194
|
+
totp?: AppTotp;
|
|
184
195
|
}
|
|
185
196
|
export interface AppsembleRC {
|
|
186
197
|
/**
|
package/index.d.ts
CHANGED
|
@@ -169,6 +169,14 @@ export declare enum SubscriptionRenewalPeriod {
|
|
|
169
169
|
* A type to represent the app lock.
|
|
170
170
|
*/
|
|
171
171
|
export type AppLock = 'fullLock' | 'studioLock' | 'unlocked';
|
|
172
|
+
/**
|
|
173
|
+
* A type to represent the app TOTP requirement setting.
|
|
174
|
+
*
|
|
175
|
+
* - `disabled`: TOTP is not available for app members.
|
|
176
|
+
* - `enabled`: TOTP is available but optional for app members.
|
|
177
|
+
* - `required`: TOTP is required for all app members.
|
|
178
|
+
*/
|
|
179
|
+
export type AppTotp = 'disabled' | 'enabled' | 'required';
|
|
172
180
|
export interface SubscriptionResponseResource {
|
|
173
181
|
create: boolean;
|
|
174
182
|
update: boolean;
|
|
@@ -233,6 +241,10 @@ export interface App {
|
|
|
233
241
|
* Whether the app is currently locked.
|
|
234
242
|
*/
|
|
235
243
|
locked: AppLock;
|
|
244
|
+
/**
|
|
245
|
+
* The TOTP (two-factor authentication) setting for the app.
|
|
246
|
+
*/
|
|
247
|
+
totp: AppTotp;
|
|
236
248
|
/**
|
|
237
249
|
* Whether the app is a template.
|
|
238
250
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/types",
|
|
3
|
-
"version": "0.36.3
|
|
3
|
+
"version": "0.36.3",
|
|
4
4
|
"description": "TypeScript definitions reused within Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test": "vitest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@appsemble/lang-sdk": "0.36.3
|
|
43
|
+
"@appsemble/lang-sdk": "0.36.3",
|
|
44
44
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
45
45
|
"react": "^18.0.0"
|
|
46
46
|
}
|