@lace-cloud/proto 0.13.0 → 0.14.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/dist/index.d.mts CHANGED
@@ -91,8 +91,7 @@ interface Use {
91
91
  /**
92
92
  * A module call's `providers = {}` map (child-local name → root ref).
93
93
  * Each entry targets the child's default provider slot for that name;
94
- * aliased child slots are not expressible in this message
95
- * (ProviderRequirement carries no configuration_aliases).
94
+ * this map has no way to target an aliased child slot.
96
95
  */
97
96
  providers: {
98
97
  [key: string]: string;
@@ -176,6 +175,7 @@ declare const TerraformBlock: MessageFns$1<TerraformBlock>;
176
175
  interface ProviderRequirement {
177
176
  source: string;
178
177
  version: string;
178
+ configuration_aliases: string[];
179
179
  }
180
180
  declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
181
181
  interface BackendConfig {
package/dist/index.d.ts CHANGED
@@ -91,8 +91,7 @@ interface Use {
91
91
  /**
92
92
  * A module call's `providers = {}` map (child-local name → root ref).
93
93
  * Each entry targets the child's default provider slot for that name;
94
- * aliased child slots are not expressible in this message
95
- * (ProviderRequirement carries no configuration_aliases).
94
+ * this map has no way to target an aliased child slot.
96
95
  */
97
96
  providers: {
98
97
  [key: string]: string;
@@ -176,6 +175,7 @@ declare const TerraformBlock: MessageFns$1<TerraformBlock>;
176
175
  interface ProviderRequirement {
177
176
  source: string;
178
177
  version: string;
178
+ configuration_aliases: string[];
179
179
  }
180
180
  declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
181
181
  interface BackendConfig {
package/dist/index.mjs CHANGED
@@ -3310,7 +3310,7 @@ var TerraformBlock_RequiredProvidersEntry = {
3310
3310
  }
3311
3311
  };
3312
3312
  function createBaseProviderRequirement() {
3313
- return { source: "", version: "" };
3313
+ return { source: "", version: "", configuration_aliases: [] };
3314
3314
  }
3315
3315
  var ProviderRequirement = {
3316
3316
  encode(message, writer = new BinaryWriter2()) {
@@ -3320,6 +3320,9 @@ var ProviderRequirement = {
3320
3320
  if (message.version !== "") {
3321
3321
  writer.uint32(18).string(message.version);
3322
3322
  }
3323
+ for (const v of message.configuration_aliases) {
3324
+ writer.uint32(26).string(v);
3325
+ }
3323
3326
  return writer;
3324
3327
  },
3325
3328
  decode(input, length) {
@@ -3343,6 +3346,13 @@ var ProviderRequirement = {
3343
3346
  message.version = reader.string();
3344
3347
  continue;
3345
3348
  }
3349
+ case 3: {
3350
+ if (tag !== 26) {
3351
+ break;
3352
+ }
3353
+ message.configuration_aliases.push(reader.string());
3354
+ continue;
3355
+ }
3346
3356
  }
3347
3357
  if ((tag & 7) === 4 || tag === 0) {
3348
3358
  break;
@@ -3354,7 +3364,8 @@ var ProviderRequirement = {
3354
3364
  fromJSON(object) {
3355
3365
  return {
3356
3366
  source: isSet2(object.source) ? globalThis.String(object.source) : "",
3357
- version: isSet2(object.version) ? globalThis.String(object.version) : ""
3367
+ version: isSet2(object.version) ? globalThis.String(object.version) : "",
3368
+ configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
3358
3369
  };
3359
3370
  },
3360
3371
  toJSON(message) {
@@ -3365,6 +3376,9 @@ var ProviderRequirement = {
3365
3376
  if (message.version !== "") {
3366
3377
  obj.version = message.version;
3367
3378
  }
3379
+ if (message.configuration_aliases?.length) {
3380
+ obj.configurationAliases = message.configuration_aliases;
3381
+ }
3368
3382
  return obj;
3369
3383
  },
3370
3384
  create(base) {
@@ -3374,6 +3388,7 @@ var ProviderRequirement = {
3374
3388
  const message = createBaseProviderRequirement();
3375
3389
  message.source = object.source ?? "";
3376
3390
  message.version = object.version ?? "";
3391
+ message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
3377
3392
  return message;
3378
3393
  }
3379
3394
  };