@serve.zone/interfaces 4.6.0 → 4.7.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_ts_interfaces/data/index.d.ts +0 -1
- package/dist_ts_interfaces/data/index.js +1 -2
- package/dist_ts_interfaces/data/secretbundle.d.ts +5 -4
- package/dist_ts_interfaces/requests/secretbundle.d.ts +23 -16
- package/package.json +1 -1
- package/ts_interfaces/data/index.ts +0 -1
- package/ts_interfaces/data/secretbundle.ts +6 -4
- package/ts_interfaces/requests/secretbundle.ts +29 -20
- package/dist_ts_interfaces/data/env.d.ts +0 -7
- package/dist_ts_interfaces/data/env.js +0 -2
- package/ts_interfaces/data/env.ts +0 -6
|
@@ -3,7 +3,6 @@ export * from './cluster.js';
|
|
|
3
3
|
export * from './config.js';
|
|
4
4
|
export * from './deployment.js';
|
|
5
5
|
export * from './docker.js';
|
|
6
|
-
export * from './env.js';
|
|
7
6
|
export * from './event.js';
|
|
8
7
|
export * from './image.js';
|
|
9
8
|
export * from './secretbundle.js';
|
|
@@ -14,4 +13,4 @@ export * from './status.js';
|
|
|
14
13
|
export * from './traffic.js';
|
|
15
14
|
export * from './user.js';
|
|
16
15
|
export * from './version.js';
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL2RhdGEvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxrQkFBa0IsQ0FBQTtBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGNBQWMsQ0FBQyJ9
|
|
@@ -40,9 +40,10 @@ export interface ISecretBundle {
|
|
|
40
40
|
/**
|
|
41
41
|
* authrozations select a specific environment of a config bundle
|
|
42
42
|
*/
|
|
43
|
-
authorizations: Array<
|
|
44
|
-
secretAccessKey: string;
|
|
45
|
-
environment: string;
|
|
46
|
-
}>;
|
|
43
|
+
authorizations: Array<ISecretBundleAuthorization>;
|
|
47
44
|
};
|
|
48
45
|
}
|
|
46
|
+
export interface ISecretBundleAuthorization {
|
|
47
|
+
secretAccessKey: string;
|
|
48
|
+
environment: string;
|
|
49
|
+
}
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as data from '../data/index.js';
|
|
3
3
|
import * as userInterfaces from '../data/user.js';
|
|
4
|
-
/**
|
|
5
|
-
* when retrieving secrets for actual use, you do this in the form of an envBundle.
|
|
6
|
-
*/
|
|
7
|
-
export interface IReq_GetEnvBundle extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEnvBundle> {
|
|
8
|
-
method: 'getEnvBundle';
|
|
9
|
-
request: {
|
|
10
|
-
authorization: string;
|
|
11
|
-
/**
|
|
12
|
-
* specify this if you want to get a warning, if the envBundle is for an unexpected environment
|
|
13
|
-
*/
|
|
14
|
-
environment?: string;
|
|
15
|
-
};
|
|
16
|
-
response: {
|
|
17
|
-
envBundle: data.IEnvBundle;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
4
|
export interface IReq_GetSecretBundles extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSecretBundles> {
|
|
21
5
|
method: 'getSecretBundles';
|
|
22
6
|
request: {
|
|
@@ -66,3 +50,26 @@ export interface IReq_DeleteSecretBundleById extends plugins.typedrequestInterfa
|
|
|
66
50
|
ok: boolean;
|
|
67
51
|
};
|
|
68
52
|
}
|
|
53
|
+
export interface IReq_GetSecretBundleByAuthorization extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSecretBundleByAuthorization> {
|
|
54
|
+
method: 'getSecretBundleByAuthorization';
|
|
55
|
+
request: {
|
|
56
|
+
identity: userInterfaces.IIdentity;
|
|
57
|
+
secretBundleAuthorization: data.ISecretBundleAuthorization;
|
|
58
|
+
};
|
|
59
|
+
response: {
|
|
60
|
+
secretBundle: data.ISecretBundle;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export interface IReq_GetFlatKeyValueObject extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetFlatKeyValueObject> {
|
|
64
|
+
method: 'getFlatKeyValueObject';
|
|
65
|
+
request: {
|
|
66
|
+
identity: userInterfaces.IIdentity;
|
|
67
|
+
seccretBundleId: string;
|
|
68
|
+
secretBundleAuthorization: data.ISecretBundleAuthorization;
|
|
69
|
+
};
|
|
70
|
+
response: {
|
|
71
|
+
flatKeyValueObject: {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}
|
package/package.json
CHANGED
|
@@ -45,9 +45,11 @@ export interface ISecretBundle {
|
|
|
45
45
|
/**
|
|
46
46
|
* authrozations select a specific environment of a config bundle
|
|
47
47
|
*/
|
|
48
|
-
authorizations: Array<
|
|
49
|
-
secretAccessKey: string;
|
|
50
|
-
environment: string;
|
|
51
|
-
}>;
|
|
48
|
+
authorizations: Array<ISecretBundleAuthorization>;
|
|
52
49
|
};
|
|
53
50
|
}
|
|
51
|
+
|
|
52
|
+
export interface ISecretBundleAuthorization {
|
|
53
|
+
secretAccessKey: string;
|
|
54
|
+
environment: string;
|
|
55
|
+
}
|
|
@@ -2,26 +2,6 @@ import * as plugins from '../plugins.js';
|
|
|
2
2
|
import * as data from '../data/index.js';
|
|
3
3
|
import * as userInterfaces from '../data/user.js';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* when retrieving secrets for actual use, you do this in the form of an envBundle.
|
|
7
|
-
*/
|
|
8
|
-
export interface IReq_GetEnvBundle extends plugins.typedrequestInterfaces.implementsTR<
|
|
9
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
10
|
-
IReq_GetEnvBundle
|
|
11
|
-
> {
|
|
12
|
-
method: 'getEnvBundle';
|
|
13
|
-
request: {
|
|
14
|
-
authorization: string;
|
|
15
|
-
/**
|
|
16
|
-
* specify this if you want to get a warning, if the envBundle is for an unexpected environment
|
|
17
|
-
*/
|
|
18
|
-
environment?: string;
|
|
19
|
-
};
|
|
20
|
-
response: {
|
|
21
|
-
envBundle: data.IEnvBundle;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
5
|
export interface IReq_GetSecretBundles extends plugins.typedrequestInterfaces.implementsTR<
|
|
26
6
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
27
7
|
IReq_GetSecretBundles
|
|
@@ -92,3 +72,32 @@ export interface IReq_DeleteSecretBundleById extends plugins.typedrequestInterfa
|
|
|
92
72
|
ok: boolean;
|
|
93
73
|
};
|
|
94
74
|
}
|
|
75
|
+
|
|
76
|
+
export interface IReq_GetSecretBundleByAuthorization extends plugins.typedrequestInterfaces.implementsTR<
|
|
77
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
78
|
+
IReq_GetSecretBundleByAuthorization
|
|
79
|
+
> {
|
|
80
|
+
method: 'getSecretBundleByAuthorization';
|
|
81
|
+
request: {
|
|
82
|
+
identity: userInterfaces.IIdentity;
|
|
83
|
+
secretBundleAuthorization: data.ISecretBundleAuthorization;
|
|
84
|
+
};
|
|
85
|
+
response: {
|
|
86
|
+
secretBundle: data.ISecretBundle;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface IReq_GetFlatKeyValueObject extends plugins.typedrequestInterfaces.implementsTR<
|
|
91
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
92
|
+
IReq_GetFlatKeyValueObject
|
|
93
|
+
> {
|
|
94
|
+
method: 'getFlatKeyValueObject';
|
|
95
|
+
request: {
|
|
96
|
+
identity: userInterfaces.IIdentity;
|
|
97
|
+
seccretBundleId: string;
|
|
98
|
+
secretBundleAuthorization: data.ISecretBundleAuthorization;
|
|
99
|
+
};
|
|
100
|
+
response: {
|
|
101
|
+
flatKeyValueObject: {[key: string]: string};
|
|
102
|
+
};
|
|
103
|
+
}
|