@serve.zone/interfaces 22.0.0 → 23.0.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/changelog.md +19 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/appstore/types.d.ts +31 -16
- package/dist_ts/appstore/types.js +208 -11
- package/dist_ts/data/coremail.runtime.d.ts +3 -2
- package/dist_ts/data/coremail.runtime.js +10 -5
- package/dist_ts/data/deploymentoperation.js +6 -20
- package/dist_ts/data/deploymentpreflight.d.ts +2 -6
- package/dist_ts/data/deploymentpreflight.js +1 -1
- package/dist_ts/data/hostedapp.d.ts +40 -14
- package/dist_ts/data/hostedapp.js +90 -1
- package/dist_ts/data/immutableimage.d.ts +30 -1
- package/dist_ts/data/immutableimage.js +103 -1
- package/dist_ts/data/index.d.ts +0 -2
- package/dist_ts/data/index.js +1 -3
- package/dist_ts/data/secret.d.ts +186 -13
- package/dist_ts/data/secret.js +543 -45
- package/dist_ts/data/service.d.ts +0 -39
- package/dist_ts/data/service.js +1 -77
- package/dist_ts/data/settings.d.ts +62 -43
- package/dist_ts/data/settings.js +34 -2
- package/dist_ts/platform/storage.d.ts +13 -14
- package/dist_ts/platform/storage.js +1 -1
- package/dist_ts/platform/storagemigration.d.ts +8 -8
- package/dist_ts/platform/storagemigration.golden.d.ts +2 -2
- package/dist_ts/platform/storagemigration.golden.js +19 -88
- package/dist_ts/platform/storagemigration.js +46 -58
- package/dist_ts/platform/types.d.ts +5 -19
- package/dist_ts/plugins.d.ts +2 -1
- package/dist_ts/plugins.js +3 -2
- package/dist_ts/requests/hostedapp.d.ts +12 -9
- package/dist_ts/requests/hostedapp.js +38 -1
- package/dist_ts/requests/index.d.ts +1 -3
- package/dist_ts/requests/index.js +2 -4
- package/dist_ts/requests/platform.d.ts +0 -1
- package/dist_ts/requests/secret.d.ts +23 -17
- package/dist_ts/requests/secret.js +161 -2
- package/dist_ts/requests/service.d.ts +0 -13
- package/dist_ts/requests/settings.d.ts +3 -3
- package/dist_ts/runtime.d.ts +78 -26
- package/dist_ts/runtime.js +219 -19
- package/package.json +2 -1
- package/readme.md +110 -29
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/appstore/types.ts +251 -25
- package/ts/data/coremail.runtime.ts +18 -4
- package/ts/data/deploymentoperation.ts +7 -31
- package/ts/data/deploymentpreflight.ts +2 -5
- package/ts/data/hostedapp.ts +144 -18
- package/ts/data/immutableimage.ts +150 -1
- package/ts/data/index.ts +0 -2
- package/ts/data/secret.ts +775 -53
- package/ts/data/service.ts +0 -118
- package/ts/data/settings.ts +70 -80
- package/ts/platform/storage.ts +15 -16
- package/ts/platform/storagemigration.golden.ts +18 -95
- package/ts/platform/storagemigration.ts +57 -87
- package/ts/platform/types.ts +6 -19
- package/ts/plugins.ts +2 -0
- package/ts/requests/hostedapp.ts +50 -9
- package/ts/requests/index.ts +0 -4
- package/ts/requests/platform.ts +0 -1
- package/ts/requests/secret.ts +204 -9
- package/ts/requests/service.ts +0 -16
- package/ts/requests/settings.ts +3 -3
- package/ts/runtime.ts +314 -41
- package/dist_ts/data/secretbundle.d.ts +0 -57
- package/dist_ts/data/secretbundle.js +0 -2
- package/dist_ts/data/secretgroup.d.ts +0 -52
- package/dist_ts/data/secretgroup.js +0 -2
- package/dist_ts/requests/secretbundle.d.ts +0 -75
- package/dist_ts/requests/secretbundle.js +0 -4
- package/dist_ts/requests/secretgroup.d.ts +0 -52
- package/dist_ts/requests/secretgroup.js +0 -4
- package/ts/data/secretbundle.ts +0 -65
- package/ts/data/secretgroup.ts +0 -58
- package/ts/requests/secretbundle.ts +0 -103
- package/ts/requests/secretgroup.ts +0 -74
package/ts/data/secretbundle.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Compatibility-only persisted shape. Service-owned Secrets and
|
|
3
|
-
* explicit same-organization SecretSets replace this model.
|
|
4
|
-
*/
|
|
5
|
-
export interface ISecretBundle {
|
|
6
|
-
id: string;
|
|
7
|
-
data: {
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* determines if the secret is a service or an external secret
|
|
13
|
-
* if external secret additional checks are put in place to protect the secret
|
|
14
|
-
*
|
|
15
|
-
* * service:
|
|
16
|
-
* the bundle belongs to a service and can only be used by that service
|
|
17
|
-
* * npmci:
|
|
18
|
-
* the bundle is a secret bundle that is used by an npmci pipeline
|
|
19
|
-
* production secrets will be omitted in any case
|
|
20
|
-
* * gitzone:
|
|
21
|
-
* the bundle is a secret bundle that is used by a gitzone.
|
|
22
|
-
* Only local environment variables are allowed
|
|
23
|
-
* * external:
|
|
24
|
-
* the bundle is a secret bundle that is used by an external service
|
|
25
|
-
*/
|
|
26
|
-
type: 'service' | 'npmci' | 'gitzone' | 'external';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* set this if the secretBundle belongs to a service
|
|
31
|
-
*/
|
|
32
|
-
serviceId?: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* You can add specific secret groups using this
|
|
36
|
-
*/
|
|
37
|
-
includedSecretGroupIds: string[];
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* access to this secretBundle also grants access to resources with matching tags
|
|
41
|
-
*/
|
|
42
|
-
includedTags: {
|
|
43
|
-
key: string;
|
|
44
|
-
value?: string;
|
|
45
|
-
}[];
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* access to this secretBundle also grants access to the images
|
|
49
|
-
*/
|
|
50
|
-
imageClaims: {
|
|
51
|
-
imageId: string;
|
|
52
|
-
permissions: ('read' | 'write')[];
|
|
53
|
-
}[];
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* authrozations select a specific environment of a config bundle
|
|
57
|
-
*/
|
|
58
|
-
authorizations: Array<ISecretBundleAuthorization>;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface ISecretBundleAuthorization {
|
|
63
|
-
secretAccessKey: string;
|
|
64
|
-
environment: string;
|
|
65
|
-
}
|
package/ts/data/secretgroup.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Compatibility-only persisted shape. Migrate to ISecretMetadata
|
|
3
|
-
* and immutable SecretVersion records; do not create new SecretGroups.
|
|
4
|
-
*/
|
|
5
|
-
export interface ISecretGroup {
|
|
6
|
-
/**
|
|
7
|
-
* the insatnce id. This should be a random id, except for default
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
|
|
11
|
-
data: {
|
|
12
|
-
name: string;
|
|
13
|
-
description: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* the key of the secretgroup like CI_RUNNER_TOKEN
|
|
17
|
-
*/
|
|
18
|
-
key: string;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* the priority of the secretgroup
|
|
22
|
-
* will be used to determine which secretgroup will be used
|
|
23
|
-
* when there are multiple secretgroups with the same key
|
|
24
|
-
*/
|
|
25
|
-
priority?: number;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* any tags that can be used to filter the secretgroup
|
|
29
|
-
* can be used for putting secrets into projects
|
|
30
|
-
*/
|
|
31
|
-
tags: {
|
|
32
|
-
key: string;
|
|
33
|
-
value: string;
|
|
34
|
-
}[];
|
|
35
|
-
/**
|
|
36
|
-
* the values for this secretGroup
|
|
37
|
-
*/
|
|
38
|
-
environments: {
|
|
39
|
-
[key: string]: {
|
|
40
|
-
value: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* can be used to update the value
|
|
44
|
-
*/
|
|
45
|
-
updateToken?: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* the linux timestamp of the last update
|
|
49
|
-
*/
|
|
50
|
-
lastUpdated: number;
|
|
51
|
-
history: {
|
|
52
|
-
timestamp: string;
|
|
53
|
-
value: string;
|
|
54
|
-
}[];
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
}
|
|
@@ -1,103 +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_GetSecretBundles extends plugins.typedrequestInterfaces.implementsTR<
|
|
6
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
7
|
-
IReq_GetSecretBundles
|
|
8
|
-
> {
|
|
9
|
-
method: 'getSecretBundles';
|
|
10
|
-
request: {
|
|
11
|
-
identity: userInterfaces.IIdentity;
|
|
12
|
-
};
|
|
13
|
-
response: {
|
|
14
|
-
secretBundles: data.ISecretBundle[];
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface IReq_GetSecretBundleById extends plugins.typedrequestInterfaces.implementsTR<
|
|
20
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
21
|
-
IReq_GetSecretBundleById
|
|
22
|
-
> {
|
|
23
|
-
method: 'getSecretBundleById';
|
|
24
|
-
request: {
|
|
25
|
-
identity: userInterfaces.IIdentity;
|
|
26
|
-
secretBundleId: string;
|
|
27
|
-
};
|
|
28
|
-
response: {
|
|
29
|
-
secretBundle: data.ISecretBundle;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IReq_CreateSecretBundle extends plugins.typedrequestInterfaces.implementsTR<
|
|
35
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
36
|
-
IReq_CreateSecretBundle
|
|
37
|
-
> {
|
|
38
|
-
method: 'createSecretBundle';
|
|
39
|
-
request: {
|
|
40
|
-
identity: userInterfaces.IIdentity;
|
|
41
|
-
secretBundle: data.ISecretBundle;
|
|
42
|
-
};
|
|
43
|
-
response: {
|
|
44
|
-
resultSecretBundle: data.ISecretBundle;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface IReq_UpdateSecretBundle extends plugins.typedrequestInterfaces.implementsTR<
|
|
49
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
50
|
-
IReq_UpdateSecretBundle
|
|
51
|
-
> {
|
|
52
|
-
method: 'updateSecretBundle';
|
|
53
|
-
request: {
|
|
54
|
-
identity: userInterfaces.IIdentity;
|
|
55
|
-
secretBundle: data.ISecretBundle;
|
|
56
|
-
};
|
|
57
|
-
response: {
|
|
58
|
-
resultSecretBundle: data.ISecretBundle;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface IReq_DeleteSecretBundleById extends plugins.typedrequestInterfaces.implementsTR<
|
|
63
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
64
|
-
IReq_DeleteSecretBundleById
|
|
65
|
-
> {
|
|
66
|
-
method: 'deleteSecretBundleById';
|
|
67
|
-
request: {
|
|
68
|
-
identity: userInterfaces.IIdentity;
|
|
69
|
-
secretBundleId: string;
|
|
70
|
-
};
|
|
71
|
-
response: {
|
|
72
|
-
ok: boolean;
|
|
73
|
-
};
|
|
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
|
-
}
|
|
@@ -1,74 +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_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
|
-
}
|