@highstate/cilium 0.9.33 → 0.9.35

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sourceHashes": {
3
- "./dist/index.js": 3312509378,
4
- "./dist/unit/index.js": 457756677
3
+ "./dist/index.js": 3328777807,
4
+ "./dist/unit/index.js": 3148681176
5
5
  }
6
6
  }
package/dist/index.js CHANGED
@@ -18727,39 +18727,6 @@ var fileMetaSchema = external_exports.object({
18727
18727
  size: external_exports.number().optional(),
18728
18728
  mode: external_exports.number().optional()
18729
18729
  });
18730
- var unitArtifactSchema = external_exports.object({
18731
- [
18732
- "d55c63ac-3174-4756-808f-f778e99af0d1"
18733
- /* Artifact */
18734
- ]: external_exports.literal(true),
18735
- hash: external_exports.string(),
18736
- meta: commonObjectMetaSchema.optional()
18737
- });
18738
- var fileContentSchema = external_exports.union([
18739
- external_exports.object({
18740
- type: external_exports.literal("embedded"),
18741
- /**
18742
- * Whether the content is binary or not.
18743
- *
18744
- * If true, the `value` will be a base64 encoded string.
18745
- */
18746
- isBinary: external_exports.boolean().optional(),
18747
- /**
18748
- * The content of the file.
18749
- *
18750
- * If `isBinary` is true, this will be a base64 encoded string.
18751
- */
18752
- value: external_exports.string()
18753
- }),
18754
- external_exports.object({
18755
- type: external_exports.literal("artifact"),
18756
- ...unitArtifactSchema.shape
18757
- })
18758
- ]);
18759
- var fileSchema = external_exports.object({
18760
- meta: fileMetaSchema,
18761
- content: fileContentSchema
18762
- });
18763
18730
  var instanceStatusFieldValueSchema = external_exports.union([
18764
18731
  external_exports.string(),
18765
18732
  external_exports.number(),
@@ -18811,6 +18778,95 @@ zod_default.object({
18811
18778
  */
18812
18779
  secrets: zod_default.record(zod_default.string(), componentSecretSchema)
18813
18780
  });
18781
+ var triggerSpecSchema = external_exports.union([
18782
+ external_exports.object({
18783
+ type: external_exports.literal("before-destroy")
18784
+ })
18785
+ ]);
18786
+ external_exports.object({
18787
+ name: external_exports.string(),
18788
+ meta: objectMetaSchema.pick({
18789
+ title: true,
18790
+ globalTitle: true,
18791
+ description: true,
18792
+ icon: true,
18793
+ iconColor: true
18794
+ }).required({ title: true }),
18795
+ /**
18796
+ * The specification of the trigger.
18797
+ *
18798
+ * Defines the type of trigger and its behavior.
18799
+ */
18800
+ spec: triggerSpecSchema
18801
+ });
18802
+ var triggerInvocationSchema = external_exports.object({
18803
+ /**
18804
+ * The name of the trigger being invoked.
18805
+ */
18806
+ name: external_exports.string()
18807
+ });
18808
+ external_exports.object({
18809
+ /**
18810
+ * The ID of the instance.
18811
+ */
18812
+ instanceId: external_exports.string(),
18813
+ /**
18814
+ * The record of argument values for the unit.
18815
+ */
18816
+ args: external_exports.record(external_exports.string(), external_exports.unknown()),
18817
+ /**
18818
+ * The record of input references for the unit.
18819
+ */
18820
+ inputs: external_exports.record(external_exports.string(), instanceInputSchema.array()),
18821
+ /**
18822
+ * The list of triggers that have been invoked for this unit.
18823
+ */
18824
+ invokedTriggers: triggerInvocationSchema.array(),
18825
+ /**
18826
+ * The list of secret names that exists and provided to the unit.
18827
+ */
18828
+ secretNames: external_exports.string().array(),
18829
+ /**
18830
+ * The map of instance ID to state ID in order to resolve instance references.
18831
+ */
18832
+ stateIdMap: external_exports.record(instanceIdSchema, external_exports.string())
18833
+ });
18834
+ var unitArtifactId = Symbol("unitArtifactId");
18835
+ var unitArtifactSchema = external_exports.object({
18836
+ [
18837
+ "d55c63ac-3174-4756-808f-f778e99af0d1"
18838
+ /* Artifact */
18839
+ ]: external_exports.literal(true),
18840
+ // only for internal use
18841
+ [unitArtifactId]: external_exports.string().optional(),
18842
+ hash: external_exports.string(),
18843
+ meta: commonObjectMetaSchema.optional()
18844
+ });
18845
+ var fileContentSchema = external_exports.union([
18846
+ external_exports.object({
18847
+ type: external_exports.literal("embedded"),
18848
+ /**
18849
+ * Whether the content is binary or not.
18850
+ *
18851
+ * If true, the `value` will be a base64 encoded string.
18852
+ */
18853
+ isBinary: external_exports.boolean().optional(),
18854
+ /**
18855
+ * The content of the file.
18856
+ *
18857
+ * If `isBinary` is true, this will be a base64 encoded string.
18858
+ */
18859
+ value: external_exports.string()
18860
+ }),
18861
+ external_exports.object({
18862
+ type: external_exports.literal("artifact"),
18863
+ ...unitArtifactSchema.shape
18864
+ })
18865
+ ]);
18866
+ var fileSchema = external_exports.object({
18867
+ meta: fileMetaSchema,
18868
+ content: fileContentSchema
18869
+ });
18814
18870
  var terminalSpecSchema = external_exports.object({
18815
18871
  /**
18816
18872
  * The Docker image to run the terminal.
@@ -18874,33 +18930,6 @@ external_exports.object({
18874
18930
  }).required({ title: true }),
18875
18931
  content: pageBlockSchema.array()
18876
18932
  });
18877
- var triggerSpecSchema = external_exports.union([
18878
- external_exports.object({
18879
- type: external_exports.literal("before-destroy")
18880
- })
18881
- ]);
18882
- external_exports.object({
18883
- name: external_exports.string(),
18884
- meta: objectMetaSchema.pick({
18885
- title: true,
18886
- globalTitle: true,
18887
- description: true,
18888
- icon: true,
18889
- iconColor: true
18890
- }).required({ title: true }),
18891
- /**
18892
- * The specification of the trigger.
18893
- *
18894
- * Defines the type of trigger and its behavior.
18895
- */
18896
- spec: triggerSpecSchema
18897
- });
18898
- var triggerInvocationSchema = external_exports.object({
18899
- /**
18900
- * The name of the trigger being invoked.
18901
- */
18902
- name: external_exports.string()
18903
- });
18904
18933
  external_exports.object({
18905
18934
  name: external_exports.string(),
18906
18935
  image: external_exports.string(),
@@ -18927,32 +18956,6 @@ external_exports.object({
18927
18956
  function check2(schema, value) {
18928
18957
  return schema.safeParse(value).success;
18929
18958
  }
18930
- external_exports.object({
18931
- /**
18932
- * The ID of the instance.
18933
- */
18934
- instanceId: external_exports.string(),
18935
- /**
18936
- * The record of argument values for the unit.
18937
- */
18938
- args: external_exports.record(external_exports.string(), external_exports.unknown()),
18939
- /**
18940
- * The record of input references for the unit.
18941
- */
18942
- inputs: external_exports.record(external_exports.string(), instanceInputSchema.array()),
18943
- /**
18944
- * The list of triggers that have been invoked for this unit.
18945
- */
18946
- invokedTriggers: triggerInvocationSchema.array(),
18947
- /**
18948
- * The list of secret names that exists and provided to the unit.
18949
- */
18950
- secretNames: external_exports.string().array(),
18951
- /**
18952
- * The map of instance ID to state ID in order to resolve instance references.
18953
- */
18954
- stateIdMap: external_exports.record(instanceIdSchema, external_exports.string())
18955
- });
18956
18959
  var CiliumNetworkPolicy = class _CiliumNetworkPolicy extends ComponentResource {
18957
18960
  /**
18958
18961
  * The underlying Cilium network policy resource.