@opengeni/contracts 0.30.0 → 0.31.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.
@@ -6154,6 +6154,15 @@ var CapabilityPack = z7.preprocess(
6154
6154
  // in. At most one enabled pack per workspace may declare one; with none,
6155
6155
  // sessions use the deployment-wide image settings.
6156
6156
  sandboxImage: z7.string().trim().min(1).max(512).optional(),
6157
+ // Optional provider-native immutable identities for the exact logical
6158
+ // sandboxImage above. These avoid re-importing a private registry image on
6159
+ // every provider while preserving sandboxImage as the cross-provider image
6160
+ // provenance and lease-conflict identity.
6161
+ sandboxProviderImages: z7.object({
6162
+ modal: z7.object({
6163
+ imageId: z7.string().trim().regex(/^im-[A-Za-z0-9]{22}$/)
6164
+ }).strict().optional()
6165
+ }).strict().optional(),
6157
6166
  // Skills delivered into the sandbox skill index when the pack is enabled.
6158
6167
  skills: z7.array(CapabilityPackSkill).max(32).superRefine((skills, ctx) => {
6159
6168
  const seen = /* @__PURE__ */ new Set();
@@ -6175,6 +6184,25 @@ var CapabilityPack = z7.preprocess(
6175
6184
  scheduledTaskTemplates: z7.array(CapabilityPackScheduledTaskTemplate).default([]),
6176
6185
  variableSet: CapabilityPackVariableSet.optional(),
6177
6186
  metadata: z7.record(z7.string(), z7.unknown()).default({})
6187
+ }).superRefine((pack, ctx) => {
6188
+ if (!pack.sandboxProviderImages?.modal) {
6189
+ return;
6190
+ }
6191
+ if (!pack.sandboxImage) {
6192
+ ctx.addIssue({
6193
+ code: "custom",
6194
+ message: "sandboxProviderImages.modal requires sandboxImage",
6195
+ path: ["sandboxProviderImages", "modal"]
6196
+ });
6197
+ return;
6198
+ }
6199
+ if (!/@sha256:[0-9a-f]{64}$/i.test(pack.sandboxImage)) {
6200
+ ctx.addIssue({
6201
+ code: "custom",
6202
+ message: "sandboxProviderImages.modal requires sandboxImage to be pinned by an OCI sha256 digest",
6203
+ path: ["sandboxImage"]
6204
+ });
6205
+ }
6178
6206
  })
6179
6207
  );
6180
6208
  var RegisterCapabilityPackRequest = CapabilityPack;
@@ -10062,4 +10090,4 @@ export {
10062
10090
  ClientConfig,
10063
10091
  evaluateWorkspaceModelPolicy
10064
10092
  };
10065
- //# sourceMappingURL=chunk-YWKPXSLB.js.map
10093
+ //# sourceMappingURL=chunk-H4NRLOOX.js.map