@manifest-network/manifestjs 2.3.0 → 2.4.1

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/dist/codegen/liftedinit/billing/v1/query.d.ts +107 -0
  2. package/dist/codegen/liftedinit/billing/v1/query.js +181 -1
  3. package/dist/codegen/liftedinit/billing/v1/query.js.map +1 -1
  4. package/dist/codegen/liftedinit/billing/v1/query.lcd.d.ts +2 -1
  5. package/dist/codegen/liftedinit/billing/v1/query.lcd.js +6 -0
  6. package/dist/codegen/liftedinit/billing/v1/query.lcd.js.map +1 -1
  7. package/dist/codegen/liftedinit/billing/v1/query.lcd.mjs +6 -0
  8. package/dist/codegen/liftedinit/billing/v1/query.mjs +180 -0
  9. package/dist/codegen/liftedinit/billing/v1/query.rpc.Query.d.ts +8 -1
  10. package/dist/codegen/liftedinit/billing/v1/query.rpc.Query.js +10 -0
  11. package/dist/codegen/liftedinit/billing/v1/query.rpc.Query.js.map +1 -1
  12. package/dist/codegen/liftedinit/billing/v1/query.rpc.Query.mjs +11 -1
  13. package/dist/codegen/liftedinit/billing/v1/tx.amino.d.ts +6 -1
  14. package/dist/codegen/liftedinit/billing/v1/tx.amino.js +5 -0
  15. package/dist/codegen/liftedinit/billing/v1/tx.amino.js.map +1 -1
  16. package/dist/codegen/liftedinit/billing/v1/tx.amino.mjs +6 -1
  17. package/dist/codegen/liftedinit/billing/v1/tx.d.ts +136 -0
  18. package/dist/codegen/liftedinit/billing/v1/tx.js +201 -1
  19. package/dist/codegen/liftedinit/billing/v1/tx.js.map +1 -1
  20. package/dist/codegen/liftedinit/billing/v1/tx.mjs +200 -0
  21. package/dist/codegen/liftedinit/billing/v1/tx.registry.d.ts +27 -1
  22. package/dist/codegen/liftedinit/billing/v1/tx.registry.js +31 -1
  23. package/dist/codegen/liftedinit/billing/v1/tx.registry.js.map +1 -1
  24. package/dist/codegen/liftedinit/billing/v1/tx.registry.mjs +32 -2
  25. package/dist/codegen/liftedinit/billing/v1/tx.rpc.msg.d.ts +10 -1
  26. package/dist/codegen/liftedinit/billing/v1/tx.rpc.msg.js +12 -0
  27. package/dist/codegen/liftedinit/billing/v1/tx.rpc.msg.js.map +1 -1
  28. package/dist/codegen/liftedinit/billing/v1/tx.rpc.msg.mjs +13 -1
  29. package/dist/codegen/liftedinit/billing/v1/types.d.ts +120 -0
  30. package/dist/codegen/liftedinit/billing/v1/types.js +144 -11
  31. package/dist/codegen/liftedinit/billing/v1/types.js.map +1 -1
  32. package/dist/codegen/liftedinit/billing/v1/types.mjs +143 -10
  33. package/dist/codegen/liftedinit/bundle.d.ts +120 -0
  34. package/dist/codegen/liftedinit/client.d.ts +5 -0
  35. package/dist/codegen/liftedinit/rpc.query.d.ts +1 -0
  36. package/package.json +1 -2
@@ -73,6 +73,16 @@ export interface Params {
73
73
  * Must be between 60 (1 minute) and 86400 (24 hours).
74
74
  */
75
75
  pendingTimeout: bigint;
76
+ /**
77
+ * reserved_domain_suffixes is the list of DNS suffixes (each beginning with `.`)
78
+ * that tenants are forbidden from claiming as a LeaseItem.custom_domain. These match
79
+ * provider wildcard zones (e.g. `.barney0.manifest0.net`) where the provider
80
+ * already serves auto-generated subdomains under a wildcard TLS cert. The match
81
+ * is a case-insensitive label-boundary suffix check and also covers the apex
82
+ * (e.g. `barney0.manifest0.net` itself). Tunable via MsgUpdateParams so new
83
+ * provider zones can be reserved without a chain upgrade.
84
+ */
85
+ reservedDomainSuffixes: string[];
76
86
  }
77
87
  export interface ParamsProtoMsg {
78
88
  typeUrl: "/liftedinit.billing.v1.Params";
@@ -113,6 +123,16 @@ export interface ParamsAmino {
113
123
  * Must be between 60 (1 minute) and 86400 (24 hours).
114
124
  */
115
125
  pending_timeout?: string;
126
+ /**
127
+ * reserved_domain_suffixes is the list of DNS suffixes (each beginning with `.`)
128
+ * that tenants are forbidden from claiming as a LeaseItem.custom_domain. These match
129
+ * provider wildcard zones (e.g. `.barney0.manifest0.net`) where the provider
130
+ * already serves auto-generated subdomains under a wildcard TLS cert. The match
131
+ * is a case-insensitive label-boundary suffix check and also covers the apex
132
+ * (e.g. `barney0.manifest0.net` itself). Tunable via MsgUpdateParams so new
133
+ * provider zones can be reserved without a chain upgrade.
134
+ */
135
+ reserved_domain_suffixes?: string[];
116
136
  }
117
137
  export interface ParamsAminoMsg {
118
138
  type: "lifted/billing/Params";
@@ -126,6 +146,7 @@ export interface ParamsSDKType {
126
146
  min_lease_duration: bigint;
127
147
  max_pending_leases_per_tenant: bigint;
128
148
  pending_timeout: bigint;
149
+ reserved_domain_suffixes: string[];
129
150
  }
130
151
  /** LeaseItem represents a single SKU item within a lease. */
131
152
  export interface LeaseItem {
@@ -144,8 +165,26 @@ export interface LeaseItem {
144
165
  * must not start or end with a hyphen (e.g., "web", "db", "my-service-1").
145
166
  * When used, all items must have a service_name and uniqueness shifts from sku_uuid to service_name,
146
167
  * allowing the same SKU to appear multiple times (e.g., "web" and "db" both using docker-small).
168
+ *
169
+ * COMPUTE-SPECIFIC: this field belongs in a future x/deployment module rather
170
+ * than the generic billing lease. It lives here today as a pragmatic shortcut
171
+ * alongside LeaseItem.custom_domain. When a non-compute lease kind ships,
172
+ * migrate this (and custom_domain) into x/deployment via a state migration.
173
+ * Tracked: ENG-80.
147
174
  */
148
175
  serviceName: string;
176
+ /**
177
+ * custom_domain is the optional FQDN the tenant has assigned to this item.
178
+ * When set, requests to this domain are routed to this item's container by
179
+ * the provider, with a TLS cert provisioned via HTTP-01.
180
+ *
181
+ * COMPUTE-SPECIFIC: this field belongs in a future x/deployment module rather
182
+ * than the generic billing lease. It lives here today as a pragmatic shortcut
183
+ * alongside LeaseItem.service_name. When a non-compute lease kind ships,
184
+ * migrate this (and service_name) into x/deployment via a state migration.
185
+ * Tracked: ENG-80.
186
+ */
187
+ customDomain: string;
149
188
  }
150
189
  export interface LeaseItemProtoMsg {
151
190
  typeUrl: "/liftedinit.billing.v1.LeaseItem";
@@ -168,8 +207,26 @@ export interface LeaseItemAmino {
168
207
  * must not start or end with a hyphen (e.g., "web", "db", "my-service-1").
169
208
  * When used, all items must have a service_name and uniqueness shifts from sku_uuid to service_name,
170
209
  * allowing the same SKU to appear multiple times (e.g., "web" and "db" both using docker-small).
210
+ *
211
+ * COMPUTE-SPECIFIC: this field belongs in a future x/deployment module rather
212
+ * than the generic billing lease. It lives here today as a pragmatic shortcut
213
+ * alongside LeaseItem.custom_domain. When a non-compute lease kind ships,
214
+ * migrate this (and custom_domain) into x/deployment via a state migration.
215
+ * Tracked: ENG-80.
171
216
  */
172
217
  service_name?: string;
218
+ /**
219
+ * custom_domain is the optional FQDN the tenant has assigned to this item.
220
+ * When set, requests to this domain are routed to this item's container by
221
+ * the provider, with a TLS cert provisioned via HTTP-01.
222
+ *
223
+ * COMPUTE-SPECIFIC: this field belongs in a future x/deployment module rather
224
+ * than the generic billing lease. It lives here today as a pragmatic shortcut
225
+ * alongside LeaseItem.service_name. When a non-compute lease kind ships,
226
+ * migrate this (and service_name) into x/deployment via a state migration.
227
+ * Tracked: ENG-80.
228
+ */
229
+ custom_domain?: string;
173
230
  }
174
231
  export interface LeaseItemAminoMsg {
175
232
  type: "lifted/billing/LeaseItem";
@@ -181,6 +238,7 @@ export interface LeaseItemSDKType {
181
238
  quantity: bigint;
182
239
  locked_price: CoinSDKType;
183
240
  service_name: string;
241
+ custom_domain: string;
184
242
  }
185
243
  /** Lease represents a billing lease between a tenant and provider. */
186
244
  export interface Lease {
@@ -334,6 +392,51 @@ export interface LeaseSDKType {
334
392
  meta_hash: Uint8Array;
335
393
  min_lease_duration_at_creation: bigint;
336
394
  }
395
+ /**
396
+ * CustomDomainTarget identifies which lease + item a custom_domain resolves to.
397
+ * Used as the value type of the CustomDomainIndex reverse-lookup map so that
398
+ * queries by domain return the routing target without iterating lease items.
399
+ */
400
+ export interface CustomDomainTarget {
401
+ /** lease_uuid is the UUID of the lease that holds the domain claim. */
402
+ leaseUuid: string;
403
+ /**
404
+ * service_name is the addressing key of the LeaseItem within that lease.
405
+ * For a 1-item legacy lease (item.service_name == ""), this is "".
406
+ */
407
+ serviceName: string;
408
+ }
409
+ export interface CustomDomainTargetProtoMsg {
410
+ typeUrl: "/liftedinit.billing.v1.CustomDomainTarget";
411
+ value: Uint8Array;
412
+ }
413
+ /**
414
+ * CustomDomainTarget identifies which lease + item a custom_domain resolves to.
415
+ * Used as the value type of the CustomDomainIndex reverse-lookup map so that
416
+ * queries by domain return the routing target without iterating lease items.
417
+ */
418
+ export interface CustomDomainTargetAmino {
419
+ /** lease_uuid is the UUID of the lease that holds the domain claim. */
420
+ lease_uuid?: string;
421
+ /**
422
+ * service_name is the addressing key of the LeaseItem within that lease.
423
+ * For a 1-item legacy lease (item.service_name == ""), this is "".
424
+ */
425
+ service_name?: string;
426
+ }
427
+ export interface CustomDomainTargetAminoMsg {
428
+ type: "/liftedinit.billing.v1.CustomDomainTarget";
429
+ value: CustomDomainTargetAmino;
430
+ }
431
+ /**
432
+ * CustomDomainTarget identifies which lease + item a custom_domain resolves to.
433
+ * Used as the value type of the CustomDomainIndex reverse-lookup map so that
434
+ * queries by domain return the routing target without iterating lease items.
435
+ */
436
+ export interface CustomDomainTargetSDKType {
437
+ lease_uuid: string;
438
+ service_name: string;
439
+ }
337
440
  /**
338
441
  * CreditAccount represents a tenant's credit account.
339
442
  * The actual balance is tracked by the bank module at the credit_address.
@@ -456,6 +559,23 @@ export declare const Lease: {
456
559
  toProto(message: Lease): Uint8Array;
457
560
  toProtoMsg(message: Lease): LeaseProtoMsg;
458
561
  };
562
+ export declare const CustomDomainTarget: {
563
+ typeUrl: string;
564
+ is(o: any): o is CustomDomainTarget;
565
+ isSDK(o: any): o is CustomDomainTargetSDKType;
566
+ isAmino(o: any): o is CustomDomainTargetAmino;
567
+ encode(message: CustomDomainTarget, writer?: BinaryWriter): BinaryWriter;
568
+ decode(input: BinaryReader | Uint8Array, length?: number): CustomDomainTarget;
569
+ fromJSON(object: any): CustomDomainTarget;
570
+ toJSON(message: CustomDomainTarget): JsonSafe<CustomDomainTarget>;
571
+ fromPartial<I extends Exact<DeepPartial<CustomDomainTarget>, I>>(object: I): CustomDomainTarget;
572
+ fromAmino(object: CustomDomainTargetAmino): CustomDomainTarget;
573
+ toAmino(message: CustomDomainTarget): CustomDomainTargetAmino;
574
+ fromAminoMsg(object: CustomDomainTargetAminoMsg): CustomDomainTarget;
575
+ fromProtoMsg(message: CustomDomainTargetProtoMsg): CustomDomainTarget;
576
+ toProto(message: CustomDomainTarget): Uint8Array;
577
+ toProtoMsg(message: CustomDomainTarget): CustomDomainTargetProtoMsg;
578
+ };
459
579
  export declare const CreditAccount: {
460
580
  typeUrl: string;
461
581
  aminoType: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreditAccount = exports.Lease = exports.LeaseItem = exports.Params = exports.LeaseStateAmino = exports.LeaseStateSDKType = exports.LeaseState = void 0;
3
+ exports.CreditAccount = exports.CustomDomainTarget = exports.Lease = exports.LeaseItem = exports.Params = exports.LeaseStateAmino = exports.LeaseStateSDKType = exports.LeaseState = void 0;
4
4
  exports.leaseStateFromJSON = leaseStateFromJSON;
5
5
  exports.leaseStateToJSON = leaseStateToJSON;
6
6
  const coin_1 = require("../../../cosmos/base/v1beta1/coin");
@@ -95,20 +95,21 @@ function createBaseParams() {
95
95
  maxItemsPerLease: BigInt(0),
96
96
  minLeaseDuration: BigInt(0),
97
97
  maxPendingLeasesPerTenant: BigInt(0),
98
- pendingTimeout: BigInt(0)
98
+ pendingTimeout: BigInt(0),
99
+ reservedDomainSuffixes: []
99
100
  };
100
101
  }
101
102
  exports.Params = {
102
103
  typeUrl: "/liftedinit.billing.v1.Params",
103
104
  aminoType: "lifted/billing/Params",
104
105
  is(o) {
105
- return o && (o.$typeUrl === exports.Params.typeUrl || typeof o.maxLeasesPerTenant === "bigint" && Array.isArray(o.allowedList) && (!o.allowedList.length || typeof o.allowedList[0] === "string") && typeof o.maxItemsPerLease === "bigint" && typeof o.minLeaseDuration === "bigint" && typeof o.maxPendingLeasesPerTenant === "bigint" && typeof o.pendingTimeout === "bigint");
106
+ return o && (o.$typeUrl === exports.Params.typeUrl || typeof o.maxLeasesPerTenant === "bigint" && Array.isArray(o.allowedList) && (!o.allowedList.length || typeof o.allowedList[0] === "string") && typeof o.maxItemsPerLease === "bigint" && typeof o.minLeaseDuration === "bigint" && typeof o.maxPendingLeasesPerTenant === "bigint" && typeof o.pendingTimeout === "bigint" && Array.isArray(o.reservedDomainSuffixes) && (!o.reservedDomainSuffixes.length || typeof o.reservedDomainSuffixes[0] === "string"));
106
107
  },
107
108
  isSDK(o) {
108
- return o && (o.$typeUrl === exports.Params.typeUrl || typeof o.max_leases_per_tenant === "bigint" && Array.isArray(o.allowed_list) && (!o.allowed_list.length || typeof o.allowed_list[0] === "string") && typeof o.max_items_per_lease === "bigint" && typeof o.min_lease_duration === "bigint" && typeof o.max_pending_leases_per_tenant === "bigint" && typeof o.pending_timeout === "bigint");
109
+ return o && (o.$typeUrl === exports.Params.typeUrl || typeof o.max_leases_per_tenant === "bigint" && Array.isArray(o.allowed_list) && (!o.allowed_list.length || typeof o.allowed_list[0] === "string") && typeof o.max_items_per_lease === "bigint" && typeof o.min_lease_duration === "bigint" && typeof o.max_pending_leases_per_tenant === "bigint" && typeof o.pending_timeout === "bigint" && Array.isArray(o.reserved_domain_suffixes) && (!o.reserved_domain_suffixes.length || typeof o.reserved_domain_suffixes[0] === "string"));
109
110
  },
110
111
  isAmino(o) {
111
- return o && (o.$typeUrl === exports.Params.typeUrl || typeof o.max_leases_per_tenant === "bigint" && Array.isArray(o.allowed_list) && (!o.allowed_list.length || typeof o.allowed_list[0] === "string") && typeof o.max_items_per_lease === "bigint" && typeof o.min_lease_duration === "bigint" && typeof o.max_pending_leases_per_tenant === "bigint" && typeof o.pending_timeout === "bigint");
112
+ return o && (o.$typeUrl === exports.Params.typeUrl || typeof o.max_leases_per_tenant === "bigint" && Array.isArray(o.allowed_list) && (!o.allowed_list.length || typeof o.allowed_list[0] === "string") && typeof o.max_items_per_lease === "bigint" && typeof o.min_lease_duration === "bigint" && typeof o.max_pending_leases_per_tenant === "bigint" && typeof o.pending_timeout === "bigint" && Array.isArray(o.reserved_domain_suffixes) && (!o.reserved_domain_suffixes.length || typeof o.reserved_domain_suffixes[0] === "string"));
112
113
  },
113
114
  encode(message, writer = binary_1.BinaryWriter.create()) {
114
115
  if (message.maxLeasesPerTenant !== BigInt(0)) {
@@ -129,6 +130,9 @@ exports.Params = {
129
130
  if (message.pendingTimeout !== BigInt(0)) {
130
131
  writer.uint32(48).uint64(message.pendingTimeout);
131
132
  }
133
+ for (const v of message.reservedDomainSuffixes) {
134
+ writer.uint32(58).string(v);
135
+ }
132
136
  return writer;
133
137
  },
134
138
  decode(input, length) {
@@ -156,6 +160,9 @@ exports.Params = {
156
160
  case 6:
157
161
  message.pendingTimeout = reader.uint64();
158
162
  break;
163
+ case 7:
164
+ message.reservedDomainSuffixes.push(reader.string());
165
+ break;
159
166
  default:
160
167
  reader.skipType(tag & 7);
161
168
  break;
@@ -170,7 +177,8 @@ exports.Params = {
170
177
  maxItemsPerLease: (0, helpers_1.isSet)(object.maxItemsPerLease) ? BigInt(object.maxItemsPerLease.toString()) : BigInt(0),
171
178
  minLeaseDuration: (0, helpers_1.isSet)(object.minLeaseDuration) ? BigInt(object.minLeaseDuration.toString()) : BigInt(0),
172
179
  maxPendingLeasesPerTenant: (0, helpers_1.isSet)(object.maxPendingLeasesPerTenant) ? BigInt(object.maxPendingLeasesPerTenant.toString()) : BigInt(0),
173
- pendingTimeout: (0, helpers_1.isSet)(object.pendingTimeout) ? BigInt(object.pendingTimeout.toString()) : BigInt(0)
180
+ pendingTimeout: (0, helpers_1.isSet)(object.pendingTimeout) ? BigInt(object.pendingTimeout.toString()) : BigInt(0),
181
+ reservedDomainSuffixes: Array.isArray(object?.reservedDomainSuffixes) ? object.reservedDomainSuffixes.map((e) => String(e)) : []
174
182
  };
175
183
  },
176
184
  toJSON(message) {
@@ -186,6 +194,12 @@ exports.Params = {
186
194
  message.minLeaseDuration !== undefined && (obj.minLeaseDuration = (message.minLeaseDuration || BigInt(0)).toString());
187
195
  message.maxPendingLeasesPerTenant !== undefined && (obj.maxPendingLeasesPerTenant = (message.maxPendingLeasesPerTenant || BigInt(0)).toString());
188
196
  message.pendingTimeout !== undefined && (obj.pendingTimeout = (message.pendingTimeout || BigInt(0)).toString());
197
+ if (message.reservedDomainSuffixes) {
198
+ obj.reservedDomainSuffixes = message.reservedDomainSuffixes.map(e => e);
199
+ }
200
+ else {
201
+ obj.reservedDomainSuffixes = [];
202
+ }
189
203
  return obj;
190
204
  },
191
205
  fromPartial(object) {
@@ -196,6 +210,7 @@ exports.Params = {
196
210
  message.minLeaseDuration = object.minLeaseDuration !== undefined && object.minLeaseDuration !== null ? BigInt(object.minLeaseDuration.toString()) : BigInt(0);
197
211
  message.maxPendingLeasesPerTenant = object.maxPendingLeasesPerTenant !== undefined && object.maxPendingLeasesPerTenant !== null ? BigInt(object.maxPendingLeasesPerTenant.toString()) : BigInt(0);
198
212
  message.pendingTimeout = object.pendingTimeout !== undefined && object.pendingTimeout !== null ? BigInt(object.pendingTimeout.toString()) : BigInt(0);
213
+ message.reservedDomainSuffixes = object.reservedDomainSuffixes?.map(e => e) || [];
199
214
  return message;
200
215
  },
201
216
  fromAmino(object) {
@@ -216,6 +231,7 @@ exports.Params = {
216
231
  if (object.pending_timeout !== undefined && object.pending_timeout !== null) {
217
232
  message.pendingTimeout = BigInt(object.pending_timeout);
218
233
  }
234
+ message.reservedDomainSuffixes = object.reserved_domain_suffixes?.map(e => e) || [];
219
235
  return message;
220
236
  },
221
237
  toAmino(message) {
@@ -231,6 +247,12 @@ exports.Params = {
231
247
  obj.min_lease_duration = message.minLeaseDuration !== BigInt(0) ? message.minLeaseDuration?.toString() : undefined;
232
248
  obj.max_pending_leases_per_tenant = message.maxPendingLeasesPerTenant !== BigInt(0) ? message.maxPendingLeasesPerTenant?.toString() : undefined;
233
249
  obj.pending_timeout = message.pendingTimeout !== BigInt(0) ? message.pendingTimeout?.toString() : undefined;
250
+ if (message.reservedDomainSuffixes) {
251
+ obj.reserved_domain_suffixes = message.reservedDomainSuffixes.map(e => e);
252
+ }
253
+ else {
254
+ obj.reserved_domain_suffixes = message.reservedDomainSuffixes;
255
+ }
234
256
  return obj;
235
257
  },
236
258
  fromAminoMsg(object) {
@@ -262,20 +284,21 @@ function createBaseLeaseItem() {
262
284
  skuUuid: "",
263
285
  quantity: BigInt(0),
264
286
  lockedPrice: coin_1.Coin.fromPartial({}),
265
- serviceName: ""
287
+ serviceName: "",
288
+ customDomain: ""
266
289
  };
267
290
  }
268
291
  exports.LeaseItem = {
269
292
  typeUrl: "/liftedinit.billing.v1.LeaseItem",
270
293
  aminoType: "lifted/billing/LeaseItem",
271
294
  is(o) {
272
- return o && (o.$typeUrl === exports.LeaseItem.typeUrl || typeof o.skuUuid === "string" && typeof o.quantity === "bigint" && coin_1.Coin.is(o.lockedPrice) && typeof o.serviceName === "string");
295
+ return o && (o.$typeUrl === exports.LeaseItem.typeUrl || typeof o.skuUuid === "string" && typeof o.quantity === "bigint" && coin_1.Coin.is(o.lockedPrice) && typeof o.serviceName === "string" && typeof o.customDomain === "string");
273
296
  },
274
297
  isSDK(o) {
275
- return o && (o.$typeUrl === exports.LeaseItem.typeUrl || typeof o.sku_uuid === "string" && typeof o.quantity === "bigint" && coin_1.Coin.isSDK(o.locked_price) && typeof o.service_name === "string");
298
+ return o && (o.$typeUrl === exports.LeaseItem.typeUrl || typeof o.sku_uuid === "string" && typeof o.quantity === "bigint" && coin_1.Coin.isSDK(o.locked_price) && typeof o.service_name === "string" && typeof o.custom_domain === "string");
276
299
  },
277
300
  isAmino(o) {
278
- return o && (o.$typeUrl === exports.LeaseItem.typeUrl || typeof o.sku_uuid === "string" && typeof o.quantity === "bigint" && coin_1.Coin.isAmino(o.locked_price) && typeof o.service_name === "string");
301
+ return o && (o.$typeUrl === exports.LeaseItem.typeUrl || typeof o.sku_uuid === "string" && typeof o.quantity === "bigint" && coin_1.Coin.isAmino(o.locked_price) && typeof o.service_name === "string" && typeof o.custom_domain === "string");
279
302
  },
280
303
  encode(message, writer = binary_1.BinaryWriter.create()) {
281
304
  if (message.skuUuid !== "") {
@@ -290,6 +313,9 @@ exports.LeaseItem = {
290
313
  if (message.serviceName !== "") {
291
314
  writer.uint32(34).string(message.serviceName);
292
315
  }
316
+ if (message.customDomain !== "") {
317
+ writer.uint32(42).string(message.customDomain);
318
+ }
293
319
  return writer;
294
320
  },
295
321
  decode(input, length) {
@@ -311,6 +337,9 @@ exports.LeaseItem = {
311
337
  case 4:
312
338
  message.serviceName = reader.string();
313
339
  break;
340
+ case 5:
341
+ message.customDomain = reader.string();
342
+ break;
314
343
  default:
315
344
  reader.skipType(tag & 7);
316
345
  break;
@@ -323,7 +352,8 @@ exports.LeaseItem = {
323
352
  skuUuid: (0, helpers_1.isSet)(object.skuUuid) ? String(object.skuUuid) : "",
324
353
  quantity: (0, helpers_1.isSet)(object.quantity) ? BigInt(object.quantity.toString()) : BigInt(0),
325
354
  lockedPrice: (0, helpers_1.isSet)(object.lockedPrice) ? coin_1.Coin.fromJSON(object.lockedPrice) : undefined,
326
- serviceName: (0, helpers_1.isSet)(object.serviceName) ? String(object.serviceName) : ""
355
+ serviceName: (0, helpers_1.isSet)(object.serviceName) ? String(object.serviceName) : "",
356
+ customDomain: (0, helpers_1.isSet)(object.customDomain) ? String(object.customDomain) : ""
327
357
  };
328
358
  },
329
359
  toJSON(message) {
@@ -332,6 +362,7 @@ exports.LeaseItem = {
332
362
  message.quantity !== undefined && (obj.quantity = (message.quantity || BigInt(0)).toString());
333
363
  message.lockedPrice !== undefined && (obj.lockedPrice = message.lockedPrice ? coin_1.Coin.toJSON(message.lockedPrice) : undefined);
334
364
  message.serviceName !== undefined && (obj.serviceName = message.serviceName);
365
+ message.customDomain !== undefined && (obj.customDomain = message.customDomain);
335
366
  return obj;
336
367
  },
337
368
  fromPartial(object) {
@@ -340,6 +371,7 @@ exports.LeaseItem = {
340
371
  message.quantity = object.quantity !== undefined && object.quantity !== null ? BigInt(object.quantity.toString()) : BigInt(0);
341
372
  message.lockedPrice = object.lockedPrice !== undefined && object.lockedPrice !== null ? coin_1.Coin.fromPartial(object.lockedPrice) : undefined;
342
373
  message.serviceName = object.serviceName ?? "";
374
+ message.customDomain = object.customDomain ?? "";
343
375
  return message;
344
376
  },
345
377
  fromAmino(object) {
@@ -356,6 +388,9 @@ exports.LeaseItem = {
356
388
  if (object.service_name !== undefined && object.service_name !== null) {
357
389
  message.serviceName = object.service_name;
358
390
  }
391
+ if (object.custom_domain !== undefined && object.custom_domain !== null) {
392
+ message.customDomain = object.custom_domain;
393
+ }
359
394
  return message;
360
395
  },
361
396
  toAmino(message) {
@@ -364,6 +399,7 @@ exports.LeaseItem = {
364
399
  obj.quantity = message.quantity !== BigInt(0) ? message.quantity?.toString() : undefined;
365
400
  obj.locked_price = message.lockedPrice ? coin_1.Coin.toAmino(message.lockedPrice) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
366
401
  obj.service_name = message.serviceName === "" ? undefined : message.serviceName;
402
+ obj.custom_domain = message.customDomain === "" ? undefined : message.customDomain;
367
403
  return obj;
368
404
  },
369
405
  fromAminoMsg(object) {
@@ -685,6 +721,103 @@ exports.Lease = {
685
721
  };
686
722
  registry_1.GlobalDecoderRegistry.register(exports.Lease.typeUrl, exports.Lease);
687
723
  registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.Lease.aminoType, exports.Lease.typeUrl);
724
+ function createBaseCustomDomainTarget() {
725
+ return {
726
+ leaseUuid: "",
727
+ serviceName: ""
728
+ };
729
+ }
730
+ exports.CustomDomainTarget = {
731
+ typeUrl: "/liftedinit.billing.v1.CustomDomainTarget",
732
+ is(o) {
733
+ return o && (o.$typeUrl === exports.CustomDomainTarget.typeUrl || typeof o.leaseUuid === "string" && typeof o.serviceName === "string");
734
+ },
735
+ isSDK(o) {
736
+ return o && (o.$typeUrl === exports.CustomDomainTarget.typeUrl || typeof o.lease_uuid === "string" && typeof o.service_name === "string");
737
+ },
738
+ isAmino(o) {
739
+ return o && (o.$typeUrl === exports.CustomDomainTarget.typeUrl || typeof o.lease_uuid === "string" && typeof o.service_name === "string");
740
+ },
741
+ encode(message, writer = binary_1.BinaryWriter.create()) {
742
+ if (message.leaseUuid !== "") {
743
+ writer.uint32(10).string(message.leaseUuid);
744
+ }
745
+ if (message.serviceName !== "") {
746
+ writer.uint32(18).string(message.serviceName);
747
+ }
748
+ return writer;
749
+ },
750
+ decode(input, length) {
751
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
752
+ let end = length === undefined ? reader.len : reader.pos + length;
753
+ const message = createBaseCustomDomainTarget();
754
+ while (reader.pos < end) {
755
+ const tag = reader.uint32();
756
+ switch (tag >>> 3) {
757
+ case 1:
758
+ message.leaseUuid = reader.string();
759
+ break;
760
+ case 2:
761
+ message.serviceName = reader.string();
762
+ break;
763
+ default:
764
+ reader.skipType(tag & 7);
765
+ break;
766
+ }
767
+ }
768
+ return message;
769
+ },
770
+ fromJSON(object) {
771
+ return {
772
+ leaseUuid: (0, helpers_1.isSet)(object.leaseUuid) ? String(object.leaseUuid) : "",
773
+ serviceName: (0, helpers_1.isSet)(object.serviceName) ? String(object.serviceName) : ""
774
+ };
775
+ },
776
+ toJSON(message) {
777
+ const obj = {};
778
+ message.leaseUuid !== undefined && (obj.leaseUuid = message.leaseUuid);
779
+ message.serviceName !== undefined && (obj.serviceName = message.serviceName);
780
+ return obj;
781
+ },
782
+ fromPartial(object) {
783
+ const message = createBaseCustomDomainTarget();
784
+ message.leaseUuid = object.leaseUuid ?? "";
785
+ message.serviceName = object.serviceName ?? "";
786
+ return message;
787
+ },
788
+ fromAmino(object) {
789
+ const message = createBaseCustomDomainTarget();
790
+ if (object.lease_uuid !== undefined && object.lease_uuid !== null) {
791
+ message.leaseUuid = object.lease_uuid;
792
+ }
793
+ if (object.service_name !== undefined && object.service_name !== null) {
794
+ message.serviceName = object.service_name;
795
+ }
796
+ return message;
797
+ },
798
+ toAmino(message) {
799
+ const obj = {};
800
+ obj.lease_uuid = message.leaseUuid === "" ? undefined : message.leaseUuid;
801
+ obj.service_name = message.serviceName === "" ? undefined : message.serviceName;
802
+ return obj;
803
+ },
804
+ fromAminoMsg(object) {
805
+ return exports.CustomDomainTarget.fromAmino(object.value);
806
+ },
807
+ fromProtoMsg(message) {
808
+ return exports.CustomDomainTarget.decode(message.value);
809
+ },
810
+ toProto(message) {
811
+ return exports.CustomDomainTarget.encode(message).finish();
812
+ },
813
+ toProtoMsg(message) {
814
+ return {
815
+ typeUrl: "/liftedinit.billing.v1.CustomDomainTarget",
816
+ value: exports.CustomDomainTarget.encode(message).finish()
817
+ };
818
+ }
819
+ };
820
+ registry_1.GlobalDecoderRegistry.register(exports.CustomDomainTarget.typeUrl, exports.CustomDomainTarget);
688
821
  function createBaseCreditAccount() {
689
822
  return {
690
823
  tenant: "",