@serve.zone/interfaces 32.22.0 → 32.24.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 +76 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/corestorelegacyadoption.d.ts +182 -0
- package/dist_ts/data/corestorelegacyadoption.js +292 -0
- package/dist_ts/data/index.d.ts +2 -0
- package/dist_ts/data/index.js +3 -1
- package/dist_ts/data/networkprotection.d.ts +13 -0
- package/dist_ts/data/networkprotection.js +8 -2
- package/dist_ts/data/runtimelocalstorageclaim.d.ts +73 -10
- package/dist_ts/data/runtimelocalstorageclaim.js +89 -2
- package/dist_ts/data/service.d.ts +15 -1
- package/dist_ts/data/service.js +1 -1
- package/dist_ts/data/serviceruntime.d.ts +8 -3
- package/dist_ts/data/serviceruntime.js +3 -2
- package/dist_ts/data/servicevolumeinitialization.d.ts +91 -0
- package/dist_ts/data/servicevolumeinitialization.js +93 -0
- package/dist_ts/platform/types.d.ts +45 -0
- package/dist_ts/platform/types.js +27 -2
- package/dist_ts/requests/corestore.d.ts +60 -0
- package/dist_ts/requests/corestore.js +1 -1
- package/dist_ts/requests/platform.d.ts +6 -1
- package/dist_ts/requests/service.d.ts +23 -0
- package/package.json +1 -1
- package/readme.md +186 -16
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/corestorelegacyadoption.ts +481 -0
- package/ts/data/index.ts +2 -0
- package/ts/data/networkprotection.ts +20 -1
- package/ts/data/runtimelocalstorageclaim.ts +169 -10
- package/ts/data/service.ts +16 -0
- package/ts/data/serviceruntime.ts +8 -2
- package/ts/data/servicevolumeinitialization.ts +159 -0
- package/ts/platform/types.ts +75 -0
- package/ts/requests/corestore.ts +79 -0
- package/ts/requests/platform.ts +6 -0
- package/ts/requests/service.ts +28 -0
package/ts/requests/platform.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
IPlatformCapability,
|
|
6
6
|
IPlatformProviderConfig,
|
|
7
7
|
TPlatformBindingStatus,
|
|
8
|
+
TPlatformBindingStatusReason,
|
|
8
9
|
} from '../platform/types.js';
|
|
9
10
|
|
|
10
11
|
export interface IReq_Any_Cloudly_GetPlatformDesiredState
|
|
@@ -162,6 +163,11 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
162
163
|
endpoints?: IPlatformBinding['endpoints'];
|
|
163
164
|
/** Reports the exact provider-returned bucket for an objectstorage binding. */
|
|
164
165
|
objectstorageBucketName?: IPlatformBinding['objectstorageBucketName'];
|
|
166
|
+
/**
|
|
167
|
+
* Why the binding holds `status`; `validatePlatformBindingStatusReason` pairs each reason with
|
|
168
|
+
* its one status. Absent clears a stored reason.
|
|
169
|
+
*/
|
|
170
|
+
statusReason?: TPlatformBindingStatusReason;
|
|
165
171
|
errorText?: string;
|
|
166
172
|
};
|
|
167
173
|
response: {
|
package/ts/requests/service.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as plugins from '../plugins.js';
|
|
|
2
2
|
import type { IService } from '../data/service.js';
|
|
3
3
|
import type { TServiceUpdateWritableData, TServiceWritableData } from '../data/service.js';
|
|
4
4
|
import type { IServicePlacement } from '../data/service.js';
|
|
5
|
+
import type { TServiceVolumeInitialization } from '../data/servicevolumeinitialization.js';
|
|
5
6
|
import type { IRegistryTarget } from '../data/registry.js';
|
|
6
7
|
import type { IIdentity, IIdentityCredential } from '../data/user.js';
|
|
7
8
|
import type { IServiceRessources } from '../data/docker.js';
|
|
@@ -390,6 +391,33 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
390
391
|
};
|
|
391
392
|
}
|
|
392
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Sets how one declared volume's node-local storage claim starts, the only write of
|
|
396
|
+
* `IServiceVolume.initialization`.
|
|
397
|
+
*
|
|
398
|
+
* The volume is named by its exact declared `mountPath`. `expected` is the initialization the
|
|
399
|
+
* caller read, or `null` when the volume has none; any other stored value refuses as `conflict`.
|
|
400
|
+
* While a bound local storage claim of the volume exists, a different initialization refuses as
|
|
401
|
+
* `volume-initialization-bound`. Refusals travel as `IServiceVolumeInitializationErrorData`.
|
|
402
|
+
*/
|
|
403
|
+
export interface IRequest_Any_Cloudly_SetServiceVolumeInitialization
|
|
404
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
405
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
406
|
+
IRequest_Any_Cloudly_SetServiceVolumeInitialization
|
|
407
|
+
> {
|
|
408
|
+
method: 'setServiceVolumeInitialization';
|
|
409
|
+
request: {
|
|
410
|
+
identity: IIdentity;
|
|
411
|
+
serviceId: string;
|
|
412
|
+
mountPath: string;
|
|
413
|
+
expected: TServiceVolumeInitialization | null;
|
|
414
|
+
initialization: TServiceVolumeInitialization;
|
|
415
|
+
};
|
|
416
|
+
response: {
|
|
417
|
+
service: IService;
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
|
|
393
421
|
/**
|
|
394
422
|
* Writes the complete runtime spec of one service.
|
|
395
423
|
*
|