@serve.zone/interfaces 4.5.2 → 4.5.5

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.
@@ -0,0 +1,12 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as userInterfaces from '../data/user.js';
3
+ export interface IReq_Admin_LoginWithUsernameAndPassword extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_LoginWithUsernameAndPassword> {
4
+ method: 'adminLoginWithUsernameAndPassword';
5
+ request: {
6
+ username: string;
7
+ password: string;
8
+ };
9
+ response: {
10
+ identity: userInterfaces.IIdentity;
11
+ };
12
+ }
@@ -0,0 +1,3 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as userInterfaces from '../data/user.js';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRtaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3JlcXVlc3RzL2FkbWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxjQUFjLE1BQU0saUJBQWlCLENBQUMifQ==
@@ -4,8 +4,8 @@ import * as plugins from '../plugins.js';
4
4
  /**
5
5
  * get all clusters
6
6
  */
7
- export interface IRequest_GetAllClusters extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_GetAllClusters> {
8
- method: 'getAllClusters';
7
+ export interface IReq_Any_Cloudly_GetClusters extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetClusters> {
8
+ method: 'getClusters';
9
9
  request: {
10
10
  identity: userInterfaces.IIdentity;
11
11
  };
@@ -13,6 +13,16 @@ export interface IRequest_GetAllClusters extends plugins.typedrequestInterfaces.
13
13
  clusters: clusterInterfaces.ICluster[];
14
14
  };
15
15
  }
16
+ export interface IReq_Any_Cloudly_GetClusterById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetClusterById> {
17
+ method: 'getClusterById';
18
+ request: {
19
+ identity: userInterfaces.IIdentity;
20
+ clusterId: string;
21
+ };
22
+ response: {
23
+ cluster: clusterInterfaces.ICluster;
24
+ };
25
+ }
16
26
  export interface IRequest_CreateCluster extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_CreateCluster> {
17
27
  method: 'createCluster';
18
28
  request: {
@@ -20,32 +30,32 @@ export interface IRequest_CreateCluster extends plugins.typedrequestInterfaces.i
20
30
  clusterName: string;
21
31
  };
22
32
  response: {
23
- clusterConfig: clusterInterfaces.ICluster;
33
+ cluster: clusterInterfaces.ICluster;
24
34
  };
25
35
  }
26
36
  /**
27
37
  * updates a cluster
28
38
  */
29
- export interface IRequest_UpdateCluster extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_UpdateCluster> {
39
+ export interface IReq_Any_Cloudly_UpdateCluster extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_UpdateCluster> {
30
40
  method: 'updateCluster';
31
41
  request: {
32
42
  identity: userInterfaces.IIdentity;
33
- clusterConfig: clusterInterfaces.ICluster;
43
+ clusterData: clusterInterfaces.ICluster['data'];
34
44
  };
35
45
  response: {
36
- clusterConfig: clusterInterfaces.ICluster;
46
+ resultCluster: clusterInterfaces.ICluster;
37
47
  };
38
48
  }
39
49
  /**
40
50
  * deletes a cluster
41
51
  */
42
- export interface IRequest_DeleteCluster extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_DeleteCluster> {
43
- method: 'deleteCluster';
52
+ export interface IReq_Any_Cloudly_DeleteClusterById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeleteClusterById> {
53
+ method: 'deleteClusterById';
44
54
  request: {
45
55
  identity: userInterfaces.IIdentity;
46
56
  clusterId: string;
47
57
  };
48
58
  response: {
49
- success: boolean;
59
+ ok: boolean;
50
60
  };
51
61
  }
@@ -1,3 +1,4 @@
1
+ import * as adminRequests from './admin.js';
1
2
  import * as certificateRequests from './certificate.js';
2
3
  import * as clusterRequests from './cluster.js';
3
4
  import * as configRequests from './config.js';
@@ -7,10 +8,11 @@ import * as informRequests from './inform.js';
7
8
  import * as logRequests from './log.js';
8
9
  import * as networkRequests from './network.js';
9
10
  import * as routingRequests from './routing.js';
10
- import * as secretRequests from './secret.js';
11
+ import * as secretBundleRequests from './secretbundle.js';
12
+ import * as secretGroupRequests from './secretgroup.js';
11
13
  import * as serverRequests from './server.js';
12
14
  import * as serviceRequests from './service.js';
13
15
  import * as statusRequests from './status.js';
14
16
  import * as versionRequests from './version.js';
15
- export { certificateRequests as certificate, clusterRequests as cluster, configRequests as config, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, routingRequests as routing, secretRequests as secret, serverRequests as server, serviceRequests as service, statusRequests as status, versionRequests as version, };
17
+ export { adminRequests as admin, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, statusRequests as status, versionRequests as version, };
16
18
  export * from './inform.js';
@@ -1,4 +1,5 @@
1
1
  import * as plugins from '../plugins.js';
2
+ import * as adminRequests from './admin.js';
2
3
  import * as certificateRequests from './certificate.js';
3
4
  import * as clusterRequests from './cluster.js';
4
5
  import * as configRequests from './config.js';
@@ -8,11 +9,12 @@ import * as informRequests from './inform.js';
8
9
  import * as logRequests from './log.js';
9
10
  import * as networkRequests from './network.js';
10
11
  import * as routingRequests from './routing.js';
11
- import * as secretRequests from './secret.js';
12
+ import * as secretBundleRequests from './secretbundle.js';
13
+ import * as secretGroupRequests from './secretgroup.js';
12
14
  import * as serverRequests from './server.js';
13
15
  import * as serviceRequests from './service.js';
14
16
  import * as statusRequests from './status.js';
15
17
  import * as versionRequests from './version.js';
16
- export { certificateRequests as certificate, clusterRequests as cluster, configRequests as config, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, routingRequests as routing, secretRequests as secret, serverRequests as server, serviceRequests as service, statusRequests as status, versionRequests as version, };
18
+ export { adminRequests as admin, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, statusRequests as status, versionRequests as version, };
17
19
  export * from './inform.js';
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3JlcXVlc3RzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sS0FBSyxtQkFBbUIsTUFBTSxrQkFBa0IsQ0FBQztBQUN4RCxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUNoRCxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sZUFBZSxDQUFDO0FBQ2xELE9BQU8sS0FBSyxhQUFhLE1BQU0sWUFBWSxDQUFDO0FBQzVDLE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxXQUFXLE1BQU0sVUF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FlLElBQUksT0FBTyxFQUMxQixlQUFlLElBQUksT0FBTyxFQUMxQixvQkFBb0IsSUFBSSxZQUFZLEVBQ3BDLG1CQUFtQixJQUFJLFdBQVcsRUFDbEMsY0FBYyxJQUFJLE1BQU0sRUFDeEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsZUFBZSxJQUFJLE9BQU8sR0FDM0IsQ0FBQztBQUVGLGNBQWMsYUFBYSxDQUFDIn0=
@@ -0,0 +1,68 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as data from '../data/index.js';
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
+ export interface IReq_GetSecretBundles extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSecretBundles> {
21
+ method: 'getSecretBundles';
22
+ request: {
23
+ identity: userInterfaces.IIdentity;
24
+ };
25
+ response: {
26
+ secretBundles: data.ISecretBundle[];
27
+ };
28
+ }
29
+ export interface IReq_GetSecretBundleById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSecretBundleById> {
30
+ method: 'getSecretBundleById';
31
+ request: {
32
+ identity: userInterfaces.IIdentity;
33
+ secretBundleId: string;
34
+ };
35
+ response: {
36
+ secretBundle: data.ISecretBundle;
37
+ };
38
+ }
39
+ export interface IReq_CreateSecretBundle extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateSecretBundle> {
40
+ method: 'createSecretBundle';
41
+ request: {
42
+ identity: userInterfaces.IIdentity;
43
+ secretBundle: data.ISecretBundle;
44
+ };
45
+ response: {
46
+ resultSecretBundle: data.ISecretBundle;
47
+ };
48
+ }
49
+ export interface IReq_UpdateSecretBundle extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateSecretBundle> {
50
+ method: 'updateSecretBundle';
51
+ request: {
52
+ identity: userInterfaces.IIdentity;
53
+ secretBundle: data.ISecretBundle;
54
+ };
55
+ response: {
56
+ resultSecretBundle: data.ISecretBundle;
57
+ };
58
+ }
59
+ export interface IReq_DeleteSecretBundleById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteSecretBundleById> {
60
+ method: 'deleteSecretBundleById';
61
+ request: {
62
+ identity: userInterfaces.IIdentity;
63
+ secretBundleId: string;
64
+ };
65
+ response: {
66
+ ok: boolean;
67
+ };
68
+ }
@@ -0,0 +1,4 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as data from '../data/index.js';
3
+ import * as userInterfaces from '../data/user.js';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0YnVuZGxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHNfaW50ZXJmYWNlcy9yZXF1ZXN0cy9zZWNyZXRidW5kbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxLQUFLLElBQUksTUFBTSxrQkFBa0IsQ0FBQztBQUN6QyxPQUFPLEtBQUssY0FBYyxNQUFNLGlCQUFpQixDQUFDIn0=
@@ -0,0 +1,52 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as data from '../data/index.js';
3
+ import * as userInterfaces from '../data/user.js';
4
+ export interface IReq_GetSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSecretGroups> {
5
+ method: 'getSecretGroups';
6
+ request: {
7
+ identity: userInterfaces.IIdentity;
8
+ };
9
+ response: {
10
+ secretGroups: data.ISecretGroup[];
11
+ };
12
+ }
13
+ export interface IReq_GetSecretGroupById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetSecretGroupById> {
14
+ method: 'getSecretGroupById';
15
+ request: {
16
+ identity: userInterfaces.IIdentity;
17
+ secretGroupId: string;
18
+ };
19
+ response: {
20
+ secretGroup: data.ISecretGroup;
21
+ };
22
+ }
23
+ export interface IReq_CreateSecretGroup extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CreateSecretGroup> {
24
+ method: 'createSecretGroup';
25
+ request: {
26
+ identity: userInterfaces.IIdentity;
27
+ secretGroup: data.ISecretGroup;
28
+ };
29
+ response: {
30
+ resultSecretGroup: data.ISecretGroup;
31
+ };
32
+ }
33
+ export interface IReq_UpdateSecretGroup extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_UpdateSecretGroup> {
34
+ method: 'updateSecretGroup';
35
+ request: {
36
+ identity: userInterfaces.IIdentity;
37
+ secretGroup: data.ISecretGroup;
38
+ };
39
+ response: {
40
+ resultSecretGroup: data.ISecretGroup;
41
+ };
42
+ }
43
+ export interface IReq_DeleteSecretGroupById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_DeleteSecretGroupById> {
44
+ method: 'deleteSecretGroupById';
45
+ request: {
46
+ identity: userInterfaces.IIdentity;
47
+ secretGroupId: string;
48
+ };
49
+ response: {
50
+ ok: boolean;
51
+ };
52
+ }
@@ -0,0 +1,4 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as data from '../data/index.js';
3
+ import * as userInterfaces from '../data/user.js';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0Z3JvdXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3JlcXVlc3RzL3NlY3JldGdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxJQUFJLE1BQU0sa0JBQWtCLENBQUM7QUFDekMsT0FBTyxLQUFLLGNBQWMsTUFBTSxpQkFBaUIsQ0FBQyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "4.5.2",
3
+ "version": "4.5.5",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "exports": {
@@ -0,0 +1,16 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as userInterfaces from '../data/user.js';
3
+
4
+ export interface IReq_Admin_LoginWithUsernameAndPassword extends plugins.typedrequestInterfaces.implementsTR<
5
+ plugins.typedrequestInterfaces.ITypedRequest,
6
+ IReq_Admin_LoginWithUsernameAndPassword
7
+ > {
8
+ method: 'adminLoginWithUsernameAndPassword';
9
+ request: {
10
+ username: string;
11
+ password: string;
12
+ };
13
+ response: {
14
+ identity: userInterfaces.IIdentity;
15
+ }
16
+ }
@@ -5,11 +5,11 @@ import * as plugins from '../plugins.js';
5
5
  /**
6
6
  * get all clusters
7
7
  */
8
- export interface IRequest_GetAllClusters extends plugins.typedrequestInterfaces.implementsTR<
8
+ export interface IReq_Any_Cloudly_GetClusters extends plugins.typedrequestInterfaces.implementsTR<
9
9
  plugins.typedrequestInterfaces.ITypedRequest,
10
- IRequest_GetAllClusters
10
+ IReq_Any_Cloudly_GetClusters
11
11
  > {
12
- method: 'getAllClusters';
12
+ method: 'getClusters';
13
13
  request: {
14
14
  identity: userInterfaces.IIdentity;
15
15
  };
@@ -18,6 +18,21 @@ export interface IRequest_GetAllClusters extends plugins.typedrequestInterfaces.
18
18
  };
19
19
  }
20
20
 
21
+ export interface IReq_Any_Cloudly_GetClusterById
22
+ extends plugins.typedrequestInterfaces.implementsTR<
23
+ plugins.typedrequestInterfaces.ITypedRequest,
24
+ IReq_Any_Cloudly_GetClusterById
25
+ > {
26
+ method: 'getClusterById';
27
+ request: {
28
+ identity: userInterfaces.IIdentity;
29
+ clusterId: string;
30
+ };
31
+ response: {
32
+ cluster: clusterInterfaces.ICluster;
33
+ };
34
+ }
35
+
21
36
  export interface IRequest_CreateCluster extends plugins.typedrequestInterfaces.implementsTR<
22
37
  plugins.typedrequestInterfaces.ITypedRequest,
23
38
  IRequest_CreateCluster
@@ -28,40 +43,40 @@ export interface IRequest_CreateCluster extends plugins.typedrequestInterfaces.i
28
43
  clusterName: string;
29
44
  };
30
45
  response: {
31
- clusterConfig: clusterInterfaces.ICluster;
46
+ cluster: clusterInterfaces.ICluster;
32
47
  };
33
48
  }
34
49
 
35
50
  /**
36
51
  * updates a cluster
37
52
  */
38
- export interface IRequest_UpdateCluster extends plugins.typedrequestInterfaces.implementsTR<
53
+ export interface IReq_Any_Cloudly_UpdateCluster extends plugins.typedrequestInterfaces.implementsTR<
39
54
  plugins.typedrequestInterfaces.ITypedRequest,
40
- IRequest_UpdateCluster
55
+ IReq_Any_Cloudly_UpdateCluster
41
56
  > {
42
57
  method: 'updateCluster';
43
58
  request: {
44
59
  identity: userInterfaces.IIdentity;
45
- clusterConfig: clusterInterfaces.ICluster;
60
+ clusterData: clusterInterfaces.ICluster['data'];
46
61
  };
47
62
  response: {
48
- clusterConfig: clusterInterfaces.ICluster;
63
+ resultCluster: clusterInterfaces.ICluster;
49
64
  };
50
65
  }
51
66
 
52
67
  /**
53
68
  * deletes a cluster
54
69
  */
55
- export interface IRequest_DeleteCluster extends plugins.typedrequestInterfaces.implementsTR<
70
+ export interface IReq_Any_Cloudly_DeleteClusterById extends plugins.typedrequestInterfaces.implementsTR<
56
71
  plugins.typedrequestInterfaces.ITypedRequest,
57
- IRequest_DeleteCluster
72
+ IReq_Any_Cloudly_DeleteClusterById
58
73
  > {
59
- method: 'deleteCluster';
74
+ method: 'deleteClusterById';
60
75
  request: {
61
76
  identity: userInterfaces.IIdentity;
62
77
  clusterId: string;
63
78
  };
64
79
  response: {
65
- success: boolean;
80
+ ok: boolean;
66
81
  };
67
82
  }
@@ -1,5 +1,6 @@
1
1
  import * as plugins from '../plugins.js';
2
2
 
3
+ import * as adminRequests from './admin.js';
3
4
  import * as certificateRequests from './certificate.js';
4
5
  import * as clusterRequests from './cluster.js';
5
6
  import * as configRequests from './config.js';
@@ -9,13 +10,15 @@ import * as informRequests from './inform.js';
9
10
  import * as logRequests from './log.js';
10
11
  import * as networkRequests from './network.js';
11
12
  import * as routingRequests from './routing.js';
12
- import * as secretRequests from './secret.js';
13
+ import * as secretBundleRequests from './secretbundle.js';
14
+ import * as secretGroupRequests from './secretgroup.js';
13
15
  import * as serverRequests from './server.js';
14
16
  import * as serviceRequests from './service.js';
15
17
  import * as statusRequests from './status.js';
16
18
  import * as versionRequests from './version.js';
17
19
 
18
20
  export {
21
+ adminRequests as admin,
19
22
  certificateRequests as certificate,
20
23
  clusterRequests as cluster,
21
24
  configRequests as config,
@@ -25,7 +28,8 @@ export {
25
28
  logRequests as log,
26
29
  networkRequests as network,
27
30
  routingRequests as routing,
28
- secretRequests as secret,
31
+ secretBundleRequests as secretbundle,
32
+ secretGroupRequests as secretgroup,
29
33
  serverRequests as server,
30
34
  serviceRequests as service,
31
35
  statusRequests as status,
@@ -0,0 +1,94 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as data from '../data/index.js';
3
+ import * as userInterfaces from '../data/user.js';
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
+ export interface IReq_GetSecretBundles extends plugins.typedrequestInterfaces.implementsTR<
26
+ plugins.typedrequestInterfaces.ITypedRequest,
27
+ IReq_GetSecretBundles
28
+ > {
29
+ method: 'getSecretBundles';
30
+ request: {
31
+ identity: userInterfaces.IIdentity;
32
+ };
33
+ response: {
34
+ secretBundles: data.ISecretBundle[];
35
+ };
36
+
37
+ }
38
+
39
+ export interface IReq_GetSecretBundleById extends plugins.typedrequestInterfaces.implementsTR<
40
+ plugins.typedrequestInterfaces.ITypedRequest,
41
+ IReq_GetSecretBundleById
42
+ > {
43
+ method: 'getSecretBundleById';
44
+ request: {
45
+ identity: userInterfaces.IIdentity;
46
+ secretBundleId: string;
47
+ };
48
+ response: {
49
+ secretBundle: data.ISecretBundle;
50
+ };
51
+
52
+ }
53
+
54
+ export interface IReq_CreateSecretBundle extends plugins.typedrequestInterfaces.implementsTR<
55
+ plugins.typedrequestInterfaces.ITypedRequest,
56
+ IReq_CreateSecretBundle
57
+ > {
58
+ method: 'createSecretBundle';
59
+ request: {
60
+ identity: userInterfaces.IIdentity;
61
+ secretBundle: data.ISecretBundle;
62
+ };
63
+ response: {
64
+ resultSecretBundle: data.ISecretBundle;
65
+ };
66
+ }
67
+
68
+ export interface IReq_UpdateSecretBundle extends plugins.typedrequestInterfaces.implementsTR<
69
+ plugins.typedrequestInterfaces.ITypedRequest,
70
+ IReq_UpdateSecretBundle
71
+ > {
72
+ method: 'updateSecretBundle';
73
+ request: {
74
+ identity: userInterfaces.IIdentity;
75
+ secretBundle: data.ISecretBundle;
76
+ };
77
+ response: {
78
+ resultSecretBundle: data.ISecretBundle;
79
+ };
80
+ }
81
+
82
+ export interface IReq_DeleteSecretBundleById extends plugins.typedrequestInterfaces.implementsTR<
83
+ plugins.typedrequestInterfaces.ITypedRequest,
84
+ IReq_DeleteSecretBundleById
85
+ > {
86
+ method: 'deleteSecretBundleById';
87
+ request: {
88
+ identity: userInterfaces.IIdentity;
89
+ secretBundleId: string;
90
+ };
91
+ response: {
92
+ ok: boolean;
93
+ };
94
+ }
@@ -0,0 +1,74 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as data from '../data/index.js';
3
+ import * as userInterfaces from '../data/user.js';
4
+
5
+ export interface IReq_GetSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
6
+ plugins.typedrequestInterfaces.ITypedRequest,
7
+ IReq_GetSecretGroups
8
+ > {
9
+ method: 'getSecretGroups';
10
+ request: {
11
+ identity: userInterfaces.IIdentity;
12
+ };
13
+ response: {
14
+ secretGroups: data.ISecretGroup[];
15
+ };
16
+
17
+ }
18
+
19
+ export interface IReq_GetSecretGroupById extends plugins.typedrequestInterfaces.implementsTR<
20
+ plugins.typedrequestInterfaces.ITypedRequest,
21
+ IReq_GetSecretGroupById
22
+ > {
23
+ method: 'getSecretGroupById';
24
+ request: {
25
+ identity: userInterfaces.IIdentity;
26
+ secretGroupId: string;
27
+ };
28
+ response: {
29
+ secretGroup: data.ISecretGroup;
30
+ };
31
+
32
+ }
33
+
34
+ export interface IReq_CreateSecretGroup extends plugins.typedrequestInterfaces.implementsTR<
35
+ plugins.typedrequestInterfaces.ITypedRequest,
36
+ IReq_CreateSecretGroup
37
+ > {
38
+ method: 'createSecretGroup';
39
+ request: {
40
+ identity: userInterfaces.IIdentity;
41
+ secretGroup: data.ISecretGroup;
42
+ };
43
+ response: {
44
+ resultSecretGroup: data.ISecretGroup;
45
+ };
46
+ }
47
+
48
+ export interface IReq_UpdateSecretGroup extends plugins.typedrequestInterfaces.implementsTR<
49
+ plugins.typedrequestInterfaces.ITypedRequest,
50
+ IReq_UpdateSecretGroup
51
+ > {
52
+ method: 'updateSecretGroup';
53
+ request: {
54
+ identity: userInterfaces.IIdentity;
55
+ secretGroup: data.ISecretGroup;
56
+ };
57
+ response: {
58
+ resultSecretGroup: data.ISecretGroup;
59
+ };
60
+ }
61
+
62
+ export interface IReq_DeleteSecretGroupById extends plugins.typedrequestInterfaces.implementsTR<
63
+ plugins.typedrequestInterfaces.ITypedRequest,
64
+ IReq_DeleteSecretGroupById
65
+ > {
66
+ method: 'deleteSecretGroupById';
67
+ request: {
68
+ identity: userInterfaces.IIdentity;
69
+ secretGroupId: string;
70
+ };
71
+ response: {
72
+ ok: boolean;
73
+ };
74
+ }
@@ -1,69 +0,0 @@
1
- import * as plugins from '../plugins.js';
2
- import * as data from '../data/index.js';
3
- import * as userInterfaces from '../data/user.js';
4
- export interface IReq_GetEnvBundle extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEnvBundle> {
5
- method: 'getEnvBundle';
6
- request: {
7
- authorization: string;
8
- /**
9
- * specify this if you want to get a warning, if the envBundle is for an unexpected environment
10
- */
11
- environment?: string;
12
- };
13
- response: {
14
- envBundle: data.IEnvBundle;
15
- };
16
- }
17
- export interface IReq_Admin_LoginWithUsernameAndPassword extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_LoginWithUsernameAndPassword> {
18
- method: 'adminLoginWithUsernameAndPassword';
19
- request: {
20
- username: string;
21
- password: string;
22
- };
23
- response: {
24
- identity: userInterfaces.IIdentity;
25
- };
26
- }
27
- export interface IReq_Admin_GetConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_GetConfigBundlesAndSecretGroups> {
28
- method: 'adminGetConfigBundlesAndSecretGroups';
29
- request: {
30
- identity: userInterfaces.IIdentity;
31
- };
32
- response: {
33
- secretBundles: data.ISecretBundle[];
34
- secretGroups: data.ISecretGroup[];
35
- };
36
- }
37
- export interface IReq_Admin_CreateConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_CreateConfigBundlesAndSecretGroups> {
38
- method: 'adminCreateConfigBundlesAndSecretGroups';
39
- request: {
40
- identity: userInterfaces.IIdentity;
41
- secretBundles: data.ISecretBundle[];
42
- secretGroups: data.ISecretGroup[];
43
- };
44
- response: {
45
- ok: boolean;
46
- };
47
- }
48
- export interface IReq_Admin_UpdateConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_UpdateConfigBundlesAndSecretGroups> {
49
- method: 'adminUpdateConfigBundlesAndSecretGroups';
50
- request: {
51
- identity: userInterfaces.IIdentity;
52
- configBundles: data.ISecretBundle[];
53
- secretGroups: data.ISecretGroup[];
54
- };
55
- response: {
56
- ok: boolean;
57
- };
58
- }
59
- export interface IReq_Admin_DeleteConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_DeleteConfigBundlesAndSecretGroups> {
60
- method: 'adminDeleteConfigBundlesAndSecretGroups';
61
- request: {
62
- identity: userInterfaces.IIdentity;
63
- secretBundleIds: string[];
64
- secretGroupIds: string[];
65
- };
66
- response: {
67
- ok: boolean;
68
- };
69
- }
@@ -1,4 +0,0 @@
1
- import * as plugins from '../plugins.js';
2
- import * as data from '../data/index.js';
3
- import * as userInterfaces from '../data/user.js';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHNfaW50ZXJmYWNlcy9yZXF1ZXN0cy9zZWNyZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxLQUFLLElBQUksTUFBTSxrQkFBa0IsQ0FBQztBQUN6QyxPQUFPLEtBQUssY0FBYyxNQUFNLGlCQUFpQixDQUFDIn0=
@@ -1,94 +0,0 @@
1
- import * as plugins from '../plugins.js';
2
- import * as data from '../data/index.js';
3
- import * as userInterfaces from '../data/user.js';
4
-
5
- export interface IReq_GetEnvBundle extends plugins.typedrequestInterfaces.implementsTR<
6
- plugins.typedrequestInterfaces.ITypedRequest,
7
- IReq_GetEnvBundle
8
- > {
9
- method: 'getEnvBundle';
10
- request: {
11
- authorization: string;
12
- /**
13
- * specify this if you want to get a warning, if the envBundle is for an unexpected environment
14
- */
15
- environment?: string;
16
- };
17
- response: {
18
- envBundle: data.IEnvBundle;
19
- };
20
- }
21
-
22
- export interface IReq_Admin_LoginWithUsernameAndPassword extends plugins.typedrequestInterfaces.implementsTR<
23
- plugins.typedrequestInterfaces.ITypedRequest,
24
- IReq_Admin_LoginWithUsernameAndPassword
25
- > {
26
- method: 'adminLoginWithUsernameAndPassword';
27
- request: {
28
- username: string;
29
- password: string;
30
- };
31
- response: {
32
- identity: userInterfaces.IIdentity;
33
- }
34
- }
35
-
36
- export interface IReq_Admin_GetConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
37
- plugins.typedrequestInterfaces.ITypedRequest,
38
- IReq_Admin_GetConfigBundlesAndSecretGroups
39
- > {
40
- method: 'adminGetConfigBundlesAndSecretGroups';
41
- request: {
42
- identity: userInterfaces.IIdentity;
43
- };
44
- response: {
45
- secretBundles: data.ISecretBundle[];
46
- secretGroups: data.ISecretGroup[];
47
- };
48
-
49
- }
50
-
51
- export interface IReq_Admin_CreateConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
52
- plugins.typedrequestInterfaces.ITypedRequest,
53
- IReq_Admin_CreateConfigBundlesAndSecretGroups
54
- > {
55
- method: 'adminCreateConfigBundlesAndSecretGroups';
56
- request: {
57
- identity: userInterfaces.IIdentity;
58
- secretBundles: data.ISecretBundle[];
59
- secretGroups: data.ISecretGroup[];
60
- };
61
- response: {
62
- ok: boolean;
63
- };
64
- }
65
-
66
- export interface IReq_Admin_UpdateConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
67
- plugins.typedrequestInterfaces.ITypedRequest,
68
- IReq_Admin_UpdateConfigBundlesAndSecretGroups
69
- > {
70
- method: 'adminUpdateConfigBundlesAndSecretGroups';
71
- request: {
72
- identity: userInterfaces.IIdentity;
73
- configBundles: data.ISecretBundle[];
74
- secretGroups: data.ISecretGroup[];
75
- };
76
- response: {
77
- ok: boolean;
78
- };
79
- }
80
-
81
- export interface IReq_Admin_DeleteConfigBundlesAndSecretGroups extends plugins.typedrequestInterfaces.implementsTR<
82
- plugins.typedrequestInterfaces.ITypedRequest,
83
- IReq_Admin_DeleteConfigBundlesAndSecretGroups
84
- > {
85
- method: 'adminDeleteConfigBundlesAndSecretGroups';
86
- request: {
87
- identity: userInterfaces.IIdentity;
88
- secretBundleIds: string[];
89
- secretGroupIds: string[];
90
- };
91
- response: {
92
- ok: boolean;
93
- };
94
- }