@serve.zone/interfaces 32.120.0 → 32.121.0
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 +6 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/deploymentoperation.js +29 -4
- package/dist_ts/data/deploymentpreflight.d.ts +5 -2
- package/dist_ts/data/deploymentpreflight.js +1 -1
- package/dist_ts/data/secret.d.ts +2 -2
- package/dist_ts/data/secret.js +4 -4
- package/dist_ts/data/serviceruntime.d.ts +1 -1
- package/dist_ts/data/serviceruntime.js +2 -1
- package/dist_ts/data/settings.d.ts +4 -0
- package/dist_ts/data/settings.js +5 -1
- package/dist_ts/platform/identity.d.ts +99 -0
- package/dist_ts/platform/identity.js +185 -0
- package/dist_ts/platform/identityenvironment.d.ts +40 -0
- package/dist_ts/platform/identityenvironment.js +101 -0
- package/dist_ts/platform/index.d.ts +5 -1
- package/dist_ts/platform/index.js +6 -2
- package/dist_ts/platform/types.d.ts +4 -1
- package/dist_ts/platform/types.js +1 -1
- package/dist_ts/requests/identity.d.ts +87 -0
- package/dist_ts/requests/identity.js +1 -1
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/deploymentoperation.ts +24 -2
- package/ts/data/deploymentpreflight.ts +5 -2
- package/ts/data/secret.ts +5 -3
- package/ts/data/serviceruntime.ts +1 -0
- package/ts/data/settings.ts +4 -0
- package/ts/platform/identity.ts +304 -0
- package/ts/platform/identityenvironment.ts +151 -0
- package/ts/platform/index.ts +6 -0
- package/ts/platform/types.ts +4 -0
- package/ts/requests/identity.ts +127 -1
package/ts/requests/identity.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
-
import * as userInterfaces from '../data/user.js'
|
|
2
|
+
import * as userInterfaces from '../data/user.js';
|
|
3
|
+
import type {
|
|
4
|
+
IPlatformIdentityProviderStatus,
|
|
5
|
+
IPlatformIdentityServiceBindingView,
|
|
6
|
+
ISealedPlatformIdentityCredentialEnvelope,
|
|
7
|
+
} from '../platform/identity.js';
|
|
3
8
|
|
|
4
9
|
// ========
|
|
5
10
|
// IDENTITY
|
|
@@ -25,3 +30,124 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
25
30
|
identity: userInterfaces.IIdentity;
|
|
26
31
|
};
|
|
27
32
|
}
|
|
33
|
+
|
|
34
|
+
/** Read Cloudly's platform identity provider status and RSA-OAEP-256 recipient public key. */
|
|
35
|
+
export interface IReq_Admin_GetPlatformIdentityProviderStatus
|
|
36
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
37
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
38
|
+
IReq_Admin_GetPlatformIdentityProviderStatus
|
|
39
|
+
> {
|
|
40
|
+
method: 'getPlatformIdentityProviderStatus';
|
|
41
|
+
request: {
|
|
42
|
+
identity: userInterfaces.IIdentityCredential;
|
|
43
|
+
};
|
|
44
|
+
response: {
|
|
45
|
+
status: IPlatformIdentityProviderStatus;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Install or replace Cloudly's sealed platform registration credential (admin-only, fresh sign-in).
|
|
51
|
+
* The credential arrives sealed RSA-OAEP-256 to Cloudly's recipient public key and is stored only
|
|
52
|
+
* in Cloudly's system secret store.
|
|
53
|
+
*/
|
|
54
|
+
export interface IReq_Admin_InstallPlatformIdentityCredential
|
|
55
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
56
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
57
|
+
IReq_Admin_InstallPlatformIdentityCredential
|
|
58
|
+
> {
|
|
59
|
+
method: 'installPlatformIdentityCredential';
|
|
60
|
+
request: {
|
|
61
|
+
identity: userInterfaces.IIdentityCredential;
|
|
62
|
+
issuer: string;
|
|
63
|
+
principalId?: string;
|
|
64
|
+
principalLabel?: string;
|
|
65
|
+
sealedCredential: ISealedPlatformIdentityCredentialEnvelope;
|
|
66
|
+
};
|
|
67
|
+
response: {
|
|
68
|
+
status: IPlatformIdentityProviderStatus;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Self-rotate Cloudly's platform registration credential upstream on idp.global (admin-only, fresh sign-in). */
|
|
73
|
+
export interface IReq_Admin_RotatePlatformIdentityCredential
|
|
74
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
75
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
76
|
+
IReq_Admin_RotatePlatformIdentityCredential
|
|
77
|
+
> {
|
|
78
|
+
method: 'rotatePlatformIdentityCredential';
|
|
79
|
+
request: {
|
|
80
|
+
identity: userInterfaces.IIdentityCredential;
|
|
81
|
+
};
|
|
82
|
+
response: {
|
|
83
|
+
status: IPlatformIdentityProviderStatus;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Revoke and remove Cloudly's stored platform registration credential (admin-only, fresh sign-in). */
|
|
88
|
+
export interface IReq_Admin_RevokePlatformIdentityCredential
|
|
89
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
90
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
91
|
+
IReq_Admin_RevokePlatformIdentityCredential
|
|
92
|
+
> {
|
|
93
|
+
method: 'revokePlatformIdentityCredential';
|
|
94
|
+
request: {
|
|
95
|
+
identity: userInterfaces.IIdentityCredential;
|
|
96
|
+
};
|
|
97
|
+
response: {
|
|
98
|
+
status: IPlatformIdentityProviderStatus;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** Inspect one service's platform identity binding state and managed secret keys (value-free). */
|
|
103
|
+
export interface IReq_Admin_GetServiceIdentityBinding
|
|
104
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
105
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
106
|
+
IReq_Admin_GetServiceIdentityBinding
|
|
107
|
+
> {
|
|
108
|
+
method: 'getServiceIdentityBinding';
|
|
109
|
+
request: {
|
|
110
|
+
identity: userInterfaces.IIdentityCredential;
|
|
111
|
+
serviceId: string;
|
|
112
|
+
};
|
|
113
|
+
response: {
|
|
114
|
+
binding: IPlatformIdentityServiceBindingView | null;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** Trigger reconciliation of one service's platform identity binding (admin-only). */
|
|
119
|
+
export interface IReq_Admin_ReconcileServiceIdentityBinding
|
|
120
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
121
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
122
|
+
IReq_Admin_ReconcileServiceIdentityBinding
|
|
123
|
+
> {
|
|
124
|
+
method: 'reconcileServiceIdentityBinding';
|
|
125
|
+
request: {
|
|
126
|
+
identity: userInterfaces.IIdentityCredential;
|
|
127
|
+
serviceId: string;
|
|
128
|
+
};
|
|
129
|
+
response: {
|
|
130
|
+
binding: IPlatformIdentityServiceBindingView | null;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Explicitly rotate one service's OIDC client secret upstream on idp.global and write the new
|
|
136
|
+
* secret into Cloudly's managed secret store (admin-only, fresh sign-in, fenced by generation).
|
|
137
|
+
*/
|
|
138
|
+
export interface IReq_Admin_RotateServiceIdentityClientSecret
|
|
139
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
140
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
141
|
+
IReq_Admin_RotateServiceIdentityClientSecret
|
|
142
|
+
> {
|
|
143
|
+
method: 'rotateServiceIdentityClientSecret';
|
|
144
|
+
request: {
|
|
145
|
+
identity: userInterfaces.IIdentityCredential;
|
|
146
|
+
serviceId: string;
|
|
147
|
+
expectedGeneration: number;
|
|
148
|
+
gracePeriodSeconds?: number;
|
|
149
|
+
};
|
|
150
|
+
response: {
|
|
151
|
+
binding: IPlatformIdentityServiceBindingView;
|
|
152
|
+
};
|
|
153
|
+
}
|