@squidcloud/local-backend 1.0.69 → 1.0.70
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/common/src/secret.schemas.d.ts +1 -3
- package/dist/common/src/secret.schemas.js +1 -22
- package/dist/common/src/secret.schemas.js.map +1 -1
- package/dist/common/src/secret.types.d.ts +17 -1
- package/dist/common/src/secret.types.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { JSONSchemaType } from 'ajv';
|
|
2
|
-
import { DeleteApiKeyRequest,
|
|
3
|
-
export declare const SetSecretRequestSchema: JSONSchemaType<SetSecretRequest>;
|
|
4
|
-
export declare const DeleteSecretRequestSchema: JSONSchemaType<DeleteSecretRequest>;
|
|
2
|
+
import { DeleteApiKeyRequest, GenerateNewApiKeyRequest } from './secret.types';
|
|
5
3
|
export declare const DeleteApiKeyRequestSchema: JSONSchemaType<DeleteApiKeyRequest>;
|
|
6
4
|
export declare const GenerateNewApiKeyRequestSchema: JSONSchemaType<GenerateNewApiKeyRequest>;
|
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenerateNewApiKeyRequestSchema = exports.DeleteApiKeyRequestSchema =
|
|
4
|
-
exports.SetSecretRequestSchema = {
|
|
5
|
-
type: 'object',
|
|
6
|
-
required: ['key', 'value'],
|
|
7
|
-
properties: {
|
|
8
|
-
key: { type: 'string', pattern: '[a-zA-Z0-9-_+]', nullable: false },
|
|
9
|
-
value: {
|
|
10
|
-
anyOf: [
|
|
11
|
-
{ type: 'string', nullable: false },
|
|
12
|
-
{ type: 'number', nullable: false },
|
|
13
|
-
{ type: 'boolean', nullable: false },
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
exports.DeleteSecretRequestSchema = {
|
|
19
|
-
type: 'object',
|
|
20
|
-
required: ['key'],
|
|
21
|
-
properties: {
|
|
22
|
-
key: { type: 'string', pattern: '[a-zA-Z0-9-_]+', nullable: false, isSecret: {} },
|
|
23
|
-
},
|
|
24
|
-
};
|
|
3
|
+
exports.GenerateNewApiKeyRequestSchema = exports.DeleteApiKeyRequestSchema = void 0;
|
|
25
4
|
exports.DeleteApiKeyRequestSchema = {
|
|
26
5
|
type: 'object',
|
|
27
6
|
required: ['key'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret.schemas.js","sourceRoot":"","sources":["../../../../common/src/secret.schemas.ts"],"names":[],"mappings":";;;AAIa,QAAA,
|
|
1
|
+
{"version":3,"file":"secret.schemas.js","sourceRoot":"","sources":["../../../../common/src/secret.schemas.ts"],"names":[],"mappings":";;;AAIa,QAAA,yBAAyB,GAAwC;IAC5E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,UAAU,EAAE;QACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE;KACzG;CACF,CAAC;AAGW,QAAA,8BAA8B,GAA6C;IACtF,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,UAAU,EAAE;QACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;KAClF;CACF,CAAC"}
|
|
@@ -3,6 +3,10 @@ export type SecretValue = string | number | boolean;
|
|
|
3
3
|
export type SecretTimestamp = number;
|
|
4
4
|
export type ApiKeyName = string;
|
|
5
5
|
export type ApiKey = string;
|
|
6
|
+
export type SetSecretEntry = {
|
|
7
|
+
key: SecretKey;
|
|
8
|
+
value?: SecretValue;
|
|
9
|
+
};
|
|
6
10
|
export declare const BACKEND_API_KEY = "_BACKEND_API_KEY";
|
|
7
11
|
export declare const APP_API_KEY = "APP_API_KEY";
|
|
8
12
|
export interface ApplicationSecrets {
|
|
@@ -34,8 +38,20 @@ export interface SecretEntry<T extends SecretValue = SecretValue> extends Secret
|
|
|
34
38
|
export interface ApiKeyEntry extends SecretMetadata {
|
|
35
39
|
value: string;
|
|
36
40
|
}
|
|
37
|
-
export
|
|
41
|
+
export interface SetSecretRequest {
|
|
42
|
+
entries: Array<SetSecretRequestEntry>;
|
|
43
|
+
}
|
|
44
|
+
export interface SetSecretRequestEntry {
|
|
45
|
+
key: SecretKey;
|
|
46
|
+
value: SecretValue;
|
|
47
|
+
}
|
|
38
48
|
export interface DeleteSecretRequest {
|
|
49
|
+
keys: Array<SecretKey>;
|
|
50
|
+
}
|
|
51
|
+
export interface GetCustomSecretRequest {
|
|
52
|
+
key: SecretKey;
|
|
53
|
+
}
|
|
54
|
+
export interface GetApiKeyRequest {
|
|
39
55
|
key: SecretKey;
|
|
40
56
|
}
|
|
41
57
|
export type DeleteApiKeyRequest = Pick<SecretMetadata, 'key'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret.types.js","sourceRoot":"","sources":["../../../../common/src/secret.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"secret.types.js","sourceRoot":"","sources":["../../../../common/src/secret.types.ts"],"names":[],"mappings":";;;AAgBa,QAAA,eAAe,GAAG,kBAAkB,CAAC;AACrC,QAAA,WAAW,GAAG,aAAa,CAAC"}
|