@lace-cloud/canvas 0.39.0 → 0.40.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.
@@ -9960,12 +9960,22 @@ var namedActorSchema = reads()(
9960
9960
  name: z.string().nullable()
9961
9961
  })
9962
9962
  );
9963
- var stackSourceSchema = z.object({
9963
+ var gitStackSourceSchema = z.object({
9964
9964
  kind: z.literal("git"),
9965
9965
  repoUrl: z.string(),
9966
9966
  ref: z.string().optional(),
9967
9967
  path: z.string().optional()
9968
9968
  });
9969
+ var stackSourceSchema = z.discriminatedUnion("kind", [
9970
+ gitStackSourceSchema,
9971
+ z.object({
9972
+ kind: z.literal("module_version"),
9973
+ author: z.string(),
9974
+ name: z.string(),
9975
+ system: z.string(),
9976
+ version: z.string()
9977
+ })
9978
+ ]);
9969
9979
  var stackSchema = reads()(
9970
9980
  z.object({
9971
9981
  id: z.string(),
@@ -9976,6 +9986,7 @@ var stackSchema = reads()(
9976
9986
  name: z.string(),
9977
9987
  description: z.string().nullable(),
9978
9988
  source: stackSourceSchema.nullable(),
9989
+ variables: z.record(z.string(), z.unknown()).nullable(),
9979
9990
  stateSerial: z.number(),
9980
9991
  stateLineage: z.string().nullable(),
9981
9992
  stateVersion: z.number().nullable(),
@@ -10042,7 +10053,9 @@ var stackDescribeSchema = reads()(
10042
10053
  resourcesByType: z.record(z.string(), z.number()),
10043
10054
  resources: z.array(z.object({ address: z.string(), type: z.string() }))
10044
10055
  }).nullable(),
10045
- drift: driftSchema
10056
+ drift: driftSchema,
10057
+ // The sentence the organization's plan holds the stack with; null while it holds nothing.
10058
+ planHold: z.string().nullable()
10046
10059
  })
10047
10060
  );
10048
10061
  var policyBindingSchema = reads()(
@@ -10453,7 +10466,7 @@ var SCHEMAS = {
10453
10466
  "stack destroy": runEventSchema,
10454
10467
  "drift scan": driftScanSchema,
10455
10468
  "stack create": stackSchema,
10456
- "stack validate": stackSourceSchema,
10469
+ "stack validate": gitStackSourceSchema,
10457
10470
  "module import": moduleImportSchema,
10458
10471
  "run get": runSchema,
10459
10472
  "run plan": runPlanSchema,
@@ -12490,4 +12503,4 @@ export {
12490
12503
  autosave,
12491
12504
  Reason5 as Reason
12492
12505
  };
12493
- //# sourceMappingURL=chunk-C6QJEJO5.mjs.map
12506
+ //# sourceMappingURL=chunk-TGXBVAPM.mjs.map