@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.
Files changed (36) hide show
  1. package/changelog.md +76 -0
  2. package/dist_ts/00_commitinfo_data.js +1 -1
  3. package/dist_ts/data/corestorelegacyadoption.d.ts +182 -0
  4. package/dist_ts/data/corestorelegacyadoption.js +292 -0
  5. package/dist_ts/data/index.d.ts +2 -0
  6. package/dist_ts/data/index.js +3 -1
  7. package/dist_ts/data/networkprotection.d.ts +13 -0
  8. package/dist_ts/data/networkprotection.js +8 -2
  9. package/dist_ts/data/runtimelocalstorageclaim.d.ts +73 -10
  10. package/dist_ts/data/runtimelocalstorageclaim.js +89 -2
  11. package/dist_ts/data/service.d.ts +15 -1
  12. package/dist_ts/data/service.js +1 -1
  13. package/dist_ts/data/serviceruntime.d.ts +8 -3
  14. package/dist_ts/data/serviceruntime.js +3 -2
  15. package/dist_ts/data/servicevolumeinitialization.d.ts +91 -0
  16. package/dist_ts/data/servicevolumeinitialization.js +93 -0
  17. package/dist_ts/platform/types.d.ts +45 -0
  18. package/dist_ts/platform/types.js +27 -2
  19. package/dist_ts/requests/corestore.d.ts +60 -0
  20. package/dist_ts/requests/corestore.js +1 -1
  21. package/dist_ts/requests/platform.d.ts +6 -1
  22. package/dist_ts/requests/service.d.ts +23 -0
  23. package/package.json +1 -1
  24. package/readme.md +186 -16
  25. package/ts/00_commitinfo_data.ts +1 -1
  26. package/ts/data/corestorelegacyadoption.ts +481 -0
  27. package/ts/data/index.ts +2 -0
  28. package/ts/data/networkprotection.ts +20 -1
  29. package/ts/data/runtimelocalstorageclaim.ts +169 -10
  30. package/ts/data/service.ts +16 -0
  31. package/ts/data/serviceruntime.ts +8 -2
  32. package/ts/data/servicevolumeinitialization.ts +159 -0
  33. package/ts/platform/types.ts +75 -0
  34. package/ts/requests/corestore.ts +79 -0
  35. package/ts/requests/platform.ts +6 -0
  36. package/ts/requests/service.ts +28 -0
@@ -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: {
@@ -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
  *