@akashnetwork/chain-sdk 1.0.0-alpha.29 → 1.0.0-alpha.30
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/cjs/generated/protos/akash/provider/v1/service_akash.cjs +2 -0
- package/dist/cjs/generated/protos/akash/provider/v1/service_akash.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/provider/v1/validation.cjs +8 -8
- package/dist/cjs/generated/protos/akash/provider/v1/validation.cjs.map +2 -2
- package/dist/cjs/sdl/types.cjs.map +1 -1
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
- package/dist/esm/{chunk-JZTFWLSX.js → chunk-6XT7T2UE.js} +9 -9
- package/dist/esm/{chunk-JZTFWLSX.js.map → chunk-6XT7T2UE.js.map} +2 -2
- package/dist/esm/{chunk-C7JHIHHY.js → chunk-YSOG5YCI.js} +3 -3
- package/dist/esm/chunk-YSOG5YCI.js.map +7 -0
- package/dist/esm/generated/protos/index.provider.akash.v1.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.web.js +1 -1
- package/dist/esm/{service_akash-UDPD4GFX.js → service_akash-LJSRCT2X.js} +4 -2
- package/dist/esm/{service_akash-UDPD4GFX.js.map → service_akash-LJSRCT2X.js.map} +2 -2
- package/dist/sdl-schema.yaml +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/generated/createProviderSDK.d.ts +2 -0
- package/dist/types/generated/protos/akash/provider/v1/service_akash.d.ts +2 -0
- package/dist/types/generated/protos/akash/provider/v1/validation.d.ts +2 -2
- package/dist/types/sdl/types.d.ts +1 -1
- package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +1 -1
- package/package.json +1 -1
- package/dist/esm/chunk-C7JHIHHY.js.map +0 -7
|
@@ -831,7 +831,7 @@ var BidScreeningRequest = {
|
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
833
|
function createBaseBidScreeningResponse() {
|
|
834
|
-
return { passed: false, reasons: [],
|
|
834
|
+
return { passed: false, reasons: [], resourceOffers: [], price: void 0 };
|
|
835
835
|
}
|
|
836
836
|
var BidScreeningResponse = {
|
|
837
837
|
$type: "akash.provider.v1.BidScreeningResponse",
|
|
@@ -842,8 +842,8 @@ var BidScreeningResponse = {
|
|
|
842
842
|
for (const v of message.reasons) {
|
|
843
843
|
writer.uint32(18).string(v);
|
|
844
844
|
}
|
|
845
|
-
|
|
846
|
-
ResourceOffer.encode(
|
|
845
|
+
for (const v of message.resourceOffers) {
|
|
846
|
+
ResourceOffer.encode(v, writer.uint32(26).fork()).join();
|
|
847
847
|
}
|
|
848
848
|
if (message.price !== void 0) {
|
|
849
849
|
DecCoin.encode(message.price, writer.uint32(34).fork()).join();
|
|
@@ -875,7 +875,7 @@ var BidScreeningResponse = {
|
|
|
875
875
|
if (tag !== 26) {
|
|
876
876
|
break;
|
|
877
877
|
}
|
|
878
|
-
message.
|
|
878
|
+
message.resourceOffers.push(ResourceOffer.decode(reader, reader.uint32()));
|
|
879
879
|
continue;
|
|
880
880
|
}
|
|
881
881
|
case 4: {
|
|
@@ -897,7 +897,7 @@ var BidScreeningResponse = {
|
|
|
897
897
|
return {
|
|
898
898
|
passed: isSet(object.passed) ? globalThis.Boolean(object.passed) : false,
|
|
899
899
|
reasons: globalThis.Array.isArray(object?.reasons) ? object.reasons.map((e) => globalThis.String(e)) : [],
|
|
900
|
-
|
|
900
|
+
resourceOffers: globalThis.Array.isArray(object?.resource_offers) ? object.resource_offers.map((e) => ResourceOffer.fromJSON(e)) : [],
|
|
901
901
|
price: isSet(object.price) ? DecCoin.fromJSON(object.price) : void 0
|
|
902
902
|
};
|
|
903
903
|
},
|
|
@@ -909,8 +909,8 @@ var BidScreeningResponse = {
|
|
|
909
909
|
if (message.reasons?.length) {
|
|
910
910
|
obj.reasons = message.reasons;
|
|
911
911
|
}
|
|
912
|
-
if (message.
|
|
913
|
-
obj.
|
|
912
|
+
if (message.resourceOffers?.length) {
|
|
913
|
+
obj.resource_offers = message.resourceOffers.map((e) => ResourceOffer.toJSON(e));
|
|
914
914
|
}
|
|
915
915
|
if (message.price !== void 0) {
|
|
916
916
|
obj.price = DecCoin.toJSON(message.price);
|
|
@@ -921,7 +921,7 @@ var BidScreeningResponse = {
|
|
|
921
921
|
const message = createBaseBidScreeningResponse();
|
|
922
922
|
message.passed = object.passed ?? false;
|
|
923
923
|
message.reasons = object.reasons?.map((e) => e) || [];
|
|
924
|
-
message.
|
|
924
|
+
message.resourceOffers = object.resourceOffers?.map((e) => ResourceOffer.fromPartial(e)) || [];
|
|
925
925
|
message.price = object.price !== void 0 && object.price !== null ? DecCoin.fromPartial(object.price) : void 0;
|
|
926
926
|
return message;
|
|
927
927
|
}
|
|
@@ -940,4 +940,4 @@ export {
|
|
|
940
940
|
BidScreeningRequest,
|
|
941
941
|
BidScreeningResponse
|
|
942
942
|
};
|
|
943
|
-
//# sourceMappingURL=chunk-
|
|
943
|
+
//# sourceMappingURL=chunk-6XT7T2UE.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/generated/protos/akash/provider/v1/status.ts", "../../src/generated/protos/akash/provider/v1/validation.ts"],
|
|
4
|
-
"sourcesContent": ["import { toTimestamp, fromTimestamp, fromJsonTimestamp, numberToLong, isObject, isSet } from \"../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/provider/v1/status.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.ts\";\nimport { Quantity } from \"../../../k8s.io/apimachinery/pkg/api/resource/generated.ts\";\nimport { Cluster } from \"../../inventory/v1/cluster.ts\";\n\n/** ResourceMetrics */\nexport interface ResourcesMetric {\n cpu: Quantity | undefined;\n memory: Quantity | undefined;\n gpu: Quantity | undefined;\n ephemeralStorage: Quantity | undefined;\n storage: { [key: string]: Quantity };\n}\n\nexport interface ResourcesMetric_StorageEntry {\n key: string;\n value: Quantity | undefined;\n}\n\n/** Leases */\nexport interface Leases {\n active: number;\n}\n\n/** ReservationsMetric */\nexport interface ReservationsMetric {\n count: number;\n resources: ResourcesMetric | undefined;\n}\n\n/** Reservations */\nexport interface Reservations {\n pending: ReservationsMetric | undefined;\n active: ReservationsMetric | undefined;\n}\n\n/** Inventory */\nexport interface Inventory {\n cluster: Cluster | undefined;\n reservations: Reservations | undefined;\n}\n\n/** ClusterStatus */\nexport interface ClusterStatus {\n leases: Leases | undefined;\n inventory: Inventory | undefined;\n}\n\n/** BidEngineStatus */\nexport interface BidEngineStatus {\n orders: number;\n}\n\n/** ManifestStatus */\nexport interface ManifestStatus {\n deployments: number;\n}\n\n/** Status */\nexport interface Status {\n errors: string[];\n cluster: ClusterStatus | undefined;\n bidEngine: BidEngineStatus | undefined;\n manifest: ManifestStatus | undefined;\n publicHostnames: string[];\n timestamp: Date | undefined;\n}\n\nfunction createBaseResourcesMetric(): ResourcesMetric {\n return { cpu: undefined, memory: undefined, gpu: undefined, ephemeralStorage: undefined, storage: {} };\n}\n\nexport const ResourcesMetric: MessageFns<ResourcesMetric, \"akash.provider.v1.ResourcesMetric\"> = {\n $type: \"akash.provider.v1.ResourcesMetric\" as const,\n\n encode(message: ResourcesMetric, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.cpu !== undefined) {\n Quantity.encode(message.cpu, writer.uint32(10).fork()).join();\n }\n if (message.memory !== undefined) {\n Quantity.encode(message.memory, writer.uint32(18).fork()).join();\n }\n if (message.gpu !== undefined) {\n Quantity.encode(message.gpu, writer.uint32(26).fork()).join();\n }\n if (message.ephemeralStorage !== undefined) {\n Quantity.encode(message.ephemeralStorage, writer.uint32(34).fork()).join();\n }\n Object.entries(message.storage).forEach(([key, value]) => {\n ResourcesMetric_StorageEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();\n });\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResourcesMetric {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResourcesMetric();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.cpu = Quantity.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.memory = Quantity.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.gpu = Quantity.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.ephemeralStorage = Quantity.decode(reader, reader.uint32());\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n const entry5 = ResourcesMetric_StorageEntry.decode(reader, reader.uint32());\n if (entry5.value !== undefined) {\n message.storage[entry5.key] = entry5.value;\n }\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResourcesMetric {\n return {\n cpu: isSet(object.cpu) ? Quantity.fromJSON(object.cpu) : undefined,\n memory: isSet(object.memory) ? Quantity.fromJSON(object.memory) : undefined,\n gpu: isSet(object.gpu) ? Quantity.fromJSON(object.gpu) : undefined,\n ephemeralStorage: isSet(object.ephemeral_storage) ? Quantity.fromJSON(object.ephemeral_storage) : undefined,\n storage: isObject(object.storage)\n ? Object.entries(object.storage).reduce<{ [key: string]: Quantity }>((acc, [key, value]) => {\n acc[key] = Quantity.fromJSON(value);\n return acc;\n }, {})\n : {},\n };\n },\n\n toJSON(message: ResourcesMetric): unknown {\n const obj: any = {};\n if (message.cpu !== undefined) {\n obj.cpu = Quantity.toJSON(message.cpu);\n }\n if (message.memory !== undefined) {\n obj.memory = Quantity.toJSON(message.memory);\n }\n if (message.gpu !== undefined) {\n obj.gpu = Quantity.toJSON(message.gpu);\n }\n if (message.ephemeralStorage !== undefined) {\n obj.ephemeral_storage = Quantity.toJSON(message.ephemeralStorage);\n }\n if (message.storage) {\n const entries = Object.entries(message.storage);\n if (entries.length > 0) {\n obj.storage = {};\n entries.forEach(([k, v]) => {\n obj.storage[k] = Quantity.toJSON(v);\n });\n }\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ResourcesMetric>): ResourcesMetric {\n const message = createBaseResourcesMetric();\n message.cpu = (object.cpu !== undefined && object.cpu !== null) ? Quantity.fromPartial(object.cpu) : undefined;\n message.memory = (object.memory !== undefined && object.memory !== null)\n ? Quantity.fromPartial(object.memory)\n : undefined;\n message.gpu = (object.gpu !== undefined && object.gpu !== null) ? Quantity.fromPartial(object.gpu) : undefined;\n message.ephemeralStorage = (object.ephemeralStorage !== undefined && object.ephemeralStorage !== null)\n ? Quantity.fromPartial(object.ephemeralStorage)\n : undefined;\n message.storage = Object.entries(object.storage ?? {}).reduce<{ [key: string]: Quantity }>((acc, [key, value]) => {\n if (value !== undefined) {\n acc[key] = Quantity.fromPartial(value);\n }\n return acc;\n }, {});\n return message;\n },\n};\n\nfunction createBaseResourcesMetric_StorageEntry(): ResourcesMetric_StorageEntry {\n return { key: \"\", value: undefined };\n}\n\nexport const ResourcesMetric_StorageEntry: MessageFns<\n ResourcesMetric_StorageEntry,\n \"akash.provider.v1.ResourcesMetric.StorageEntry\"\n> = {\n $type: \"akash.provider.v1.ResourcesMetric.StorageEntry\" as const,\n\n encode(message: ResourcesMetric_StorageEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.key !== \"\") {\n writer.uint32(10).string(message.key);\n }\n if (message.value !== undefined) {\n Quantity.encode(message.value, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResourcesMetric_StorageEntry {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResourcesMetric_StorageEntry();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.key = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.value = Quantity.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResourcesMetric_StorageEntry {\n return {\n key: isSet(object.key) ? globalThis.String(object.key) : \"\",\n value: isSet(object.value) ? Quantity.fromJSON(object.value) : undefined,\n };\n },\n\n toJSON(message: ResourcesMetric_StorageEntry): unknown {\n const obj: any = {};\n if (message.key !== \"\") {\n obj.key = message.key;\n }\n if (message.value !== undefined) {\n obj.value = Quantity.toJSON(message.value);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ResourcesMetric_StorageEntry>): ResourcesMetric_StorageEntry {\n const message = createBaseResourcesMetric_StorageEntry();\n message.key = object.key ?? \"\";\n message.value = (object.value !== undefined && object.value !== null)\n ? Quantity.fromPartial(object.value)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseLeases(): Leases {\n return { active: 0 };\n}\n\nexport const Leases: MessageFns<Leases, \"akash.provider.v1.Leases\"> = {\n $type: \"akash.provider.v1.Leases\" as const,\n\n encode(message: Leases, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.active !== 0) {\n writer.uint32(8).uint32(message.active);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Leases {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseLeases();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.active = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Leases {\n return { active: isSet(object.active) ? globalThis.Number(object.active) : 0 };\n },\n\n toJSON(message: Leases): unknown {\n const obj: any = {};\n if (message.active !== 0) {\n obj.active = Math.round(message.active);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Leases>): Leases {\n const message = createBaseLeases();\n message.active = object.active ?? 0;\n return message;\n },\n};\n\nfunction createBaseReservationsMetric(): ReservationsMetric {\n return { count: 0, resources: undefined };\n}\n\nexport const ReservationsMetric: MessageFns<ReservationsMetric, \"akash.provider.v1.ReservationsMetric\"> = {\n $type: \"akash.provider.v1.ReservationsMetric\" as const,\n\n encode(message: ReservationsMetric, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.count !== 0) {\n writer.uint32(8).uint32(message.count);\n }\n if (message.resources !== undefined) {\n ResourcesMetric.encode(message.resources, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ReservationsMetric {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseReservationsMetric();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.count = reader.uint32();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.resources = ResourcesMetric.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ReservationsMetric {\n return {\n count: isSet(object.count) ? globalThis.Number(object.count) : 0,\n resources: isSet(object.resources) ? ResourcesMetric.fromJSON(object.resources) : undefined,\n };\n },\n\n toJSON(message: ReservationsMetric): unknown {\n const obj: any = {};\n if (message.count !== 0) {\n obj.count = Math.round(message.count);\n }\n if (message.resources !== undefined) {\n obj.resources = ResourcesMetric.toJSON(message.resources);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ReservationsMetric>): ReservationsMetric {\n const message = createBaseReservationsMetric();\n message.count = object.count ?? 0;\n message.resources = (object.resources !== undefined && object.resources !== null)\n ? ResourcesMetric.fromPartial(object.resources)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseReservations(): Reservations {\n return { pending: undefined, active: undefined };\n}\n\nexport const Reservations: MessageFns<Reservations, \"akash.provider.v1.Reservations\"> = {\n $type: \"akash.provider.v1.Reservations\" as const,\n\n encode(message: Reservations, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.pending !== undefined) {\n ReservationsMetric.encode(message.pending, writer.uint32(10).fork()).join();\n }\n if (message.active !== undefined) {\n ReservationsMetric.encode(message.active, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Reservations {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseReservations();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.pending = ReservationsMetric.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.active = ReservationsMetric.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Reservations {\n return {\n pending: isSet(object.pending) ? ReservationsMetric.fromJSON(object.pending) : undefined,\n active: isSet(object.active) ? ReservationsMetric.fromJSON(object.active) : undefined,\n };\n },\n\n toJSON(message: Reservations): unknown {\n const obj: any = {};\n if (message.pending !== undefined) {\n obj.pending = ReservationsMetric.toJSON(message.pending);\n }\n if (message.active !== undefined) {\n obj.active = ReservationsMetric.toJSON(message.active);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Reservations>): Reservations {\n const message = createBaseReservations();\n message.pending = (object.pending !== undefined && object.pending !== null)\n ? ReservationsMetric.fromPartial(object.pending)\n : undefined;\n message.active = (object.active !== undefined && object.active !== null)\n ? ReservationsMetric.fromPartial(object.active)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseInventory(): Inventory {\n return { cluster: undefined, reservations: undefined };\n}\n\nexport const Inventory: MessageFns<Inventory, \"akash.provider.v1.Inventory\"> = {\n $type: \"akash.provider.v1.Inventory\" as const,\n\n encode(message: Inventory, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.cluster !== undefined) {\n Cluster.encode(message.cluster, writer.uint32(10).fork()).join();\n }\n if (message.reservations !== undefined) {\n Reservations.encode(message.reservations, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Inventory {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseInventory();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.cluster = Cluster.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.reservations = Reservations.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Inventory {\n return {\n cluster: isSet(object.cluster) ? Cluster.fromJSON(object.cluster) : undefined,\n reservations: isSet(object.reservations) ? Reservations.fromJSON(object.reservations) : undefined,\n };\n },\n\n toJSON(message: Inventory): unknown {\n const obj: any = {};\n if (message.cluster !== undefined) {\n obj.cluster = Cluster.toJSON(message.cluster);\n }\n if (message.reservations !== undefined) {\n obj.reservations = Reservations.toJSON(message.reservations);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Inventory>): Inventory {\n const message = createBaseInventory();\n message.cluster = (object.cluster !== undefined && object.cluster !== null)\n ? Cluster.fromPartial(object.cluster)\n : undefined;\n message.reservations = (object.reservations !== undefined && object.reservations !== null)\n ? Reservations.fromPartial(object.reservations)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseClusterStatus(): ClusterStatus {\n return { leases: undefined, inventory: undefined };\n}\n\nexport const ClusterStatus: MessageFns<ClusterStatus, \"akash.provider.v1.ClusterStatus\"> = {\n $type: \"akash.provider.v1.ClusterStatus\" as const,\n\n encode(message: ClusterStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.leases !== undefined) {\n Leases.encode(message.leases, writer.uint32(10).fork()).join();\n }\n if (message.inventory !== undefined) {\n Inventory.encode(message.inventory, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ClusterStatus {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseClusterStatus();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.leases = Leases.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.inventory = Inventory.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ClusterStatus {\n return {\n leases: isSet(object.leases) ? Leases.fromJSON(object.leases) : undefined,\n inventory: isSet(object.inventory) ? Inventory.fromJSON(object.inventory) : undefined,\n };\n },\n\n toJSON(message: ClusterStatus): unknown {\n const obj: any = {};\n if (message.leases !== undefined) {\n obj.leases = Leases.toJSON(message.leases);\n }\n if (message.inventory !== undefined) {\n obj.inventory = Inventory.toJSON(message.inventory);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ClusterStatus>): ClusterStatus {\n const message = createBaseClusterStatus();\n message.leases = (object.leases !== undefined && object.leases !== null)\n ? Leases.fromPartial(object.leases)\n : undefined;\n message.inventory = (object.inventory !== undefined && object.inventory !== null)\n ? Inventory.fromPartial(object.inventory)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseBidEngineStatus(): BidEngineStatus {\n return { orders: 0 };\n}\n\nexport const BidEngineStatus: MessageFns<BidEngineStatus, \"akash.provider.v1.BidEngineStatus\"> = {\n $type: \"akash.provider.v1.BidEngineStatus\" as const,\n\n encode(message: BidEngineStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.orders !== 0) {\n writer.uint32(8).uint32(message.orders);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): BidEngineStatus {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseBidEngineStatus();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.orders = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): BidEngineStatus {\n return { orders: isSet(object.orders) ? globalThis.Number(object.orders) : 0 };\n },\n\n toJSON(message: BidEngineStatus): unknown {\n const obj: any = {};\n if (message.orders !== 0) {\n obj.orders = Math.round(message.orders);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<BidEngineStatus>): BidEngineStatus {\n const message = createBaseBidEngineStatus();\n message.orders = object.orders ?? 0;\n return message;\n },\n};\n\nfunction createBaseManifestStatus(): ManifestStatus {\n return { deployments: 0 };\n}\n\nexport const ManifestStatus: MessageFns<ManifestStatus, \"akash.provider.v1.ManifestStatus\"> = {\n $type: \"akash.provider.v1.ManifestStatus\" as const,\n\n encode(message: ManifestStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.deployments !== 0) {\n writer.uint32(8).uint32(message.deployments);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ManifestStatus {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseManifestStatus();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.deployments = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ManifestStatus {\n return { deployments: isSet(object.deployments) ? globalThis.Number(object.deployments) : 0 };\n },\n\n toJSON(message: ManifestStatus): unknown {\n const obj: any = {};\n if (message.deployments !== 0) {\n obj.deployments = Math.round(message.deployments);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ManifestStatus>): ManifestStatus {\n const message = createBaseManifestStatus();\n message.deployments = object.deployments ?? 0;\n return message;\n },\n};\n\nfunction createBaseStatus(): Status {\n return {\n errors: [],\n cluster: undefined,\n bidEngine: undefined,\n manifest: undefined,\n publicHostnames: [],\n timestamp: undefined,\n };\n}\n\nexport const Status: MessageFns<Status, \"akash.provider.v1.Status\"> = {\n $type: \"akash.provider.v1.Status\" as const,\n\n encode(message: Status, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n for (const v of message.errors) {\n writer.uint32(10).string(v!);\n }\n if (message.cluster !== undefined) {\n ClusterStatus.encode(message.cluster, writer.uint32(18).fork()).join();\n }\n if (message.bidEngine !== undefined) {\n BidEngineStatus.encode(message.bidEngine, writer.uint32(26).fork()).join();\n }\n if (message.manifest !== undefined) {\n ManifestStatus.encode(message.manifest, writer.uint32(34).fork()).join();\n }\n for (const v of message.publicHostnames) {\n writer.uint32(42).string(v!);\n }\n if (message.timestamp !== undefined) {\n Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(50).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Status {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseStatus();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.errors.push(reader.string());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.cluster = ClusterStatus.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.bidEngine = BidEngineStatus.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.manifest = ManifestStatus.decode(reader, reader.uint32());\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.publicHostnames.push(reader.string());\n continue;\n }\n case 6: {\n if (tag !== 50) {\n break;\n }\n\n message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Status {\n return {\n errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e: any) => globalThis.String(e)) : [],\n cluster: isSet(object.cluster) ? ClusterStatus.fromJSON(object.cluster) : undefined,\n bidEngine: isSet(object.bid_engine) ? BidEngineStatus.fromJSON(object.bid_engine) : undefined,\n manifest: isSet(object.manifest) ? ManifestStatus.fromJSON(object.manifest) : undefined,\n publicHostnames: globalThis.Array.isArray(object?.public_hostnames)\n ? object.public_hostnames.map((e: any) => globalThis.String(e))\n : [],\n timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,\n };\n },\n\n toJSON(message: Status): unknown {\n const obj: any = {};\n if (message.errors?.length) {\n obj.errors = message.errors;\n }\n if (message.cluster !== undefined) {\n obj.cluster = ClusterStatus.toJSON(message.cluster);\n }\n if (message.bidEngine !== undefined) {\n obj.bid_engine = BidEngineStatus.toJSON(message.bidEngine);\n }\n if (message.manifest !== undefined) {\n obj.manifest = ManifestStatus.toJSON(message.manifest);\n }\n if (message.publicHostnames?.length) {\n obj.public_hostnames = message.publicHostnames;\n }\n if (message.timestamp !== undefined) {\n obj.timestamp = message.timestamp.toISOString();\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Status>): Status {\n const message = createBaseStatus();\n message.errors = object.errors?.map((e) => e) || [];\n message.cluster = (object.cluster !== undefined && object.cluster !== null)\n ? ClusterStatus.fromPartial(object.cluster)\n : undefined;\n message.bidEngine = (object.bidEngine !== undefined && object.bidEngine !== null)\n ? BidEngineStatus.fromPartial(object.bidEngine)\n : undefined;\n message.manifest = (object.manifest !== undefined && object.manifest !== null)\n ? ManifestStatus.fromPartial(object.manifest)\n : undefined;\n message.publicHostnames = object.publicHostnames?.map((e) => e) || [];\n message.timestamp = object.timestamp ?? undefined;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_toTimestamp(date: Date): Timestamp {\n const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));\n const nanos = (date.getTime() % 1_000) * 1_000_000;\n return { seconds, nanos };\n}\n\nfunction _unused_fromTimestamp(t: Timestamp): Date {\n let millis = (t.seconds.toNumber() || 0) * 1_000;\n millis += (t.nanos || 0) / 1_000_000;\n return new globalThis.Date(millis);\n}\n\nfunction _unused_fromJsonTimestamp(o: any): Date {\n if (o instanceof globalThis.Date) {\n return o;\n } else if (typeof o === \"string\") {\n return new globalThis.Date(o);\n } else {\n return fromTimestamp(Timestamp.fromJSON(o));\n }\n}\n\nfunction _unused_numberToLong(number: number) {\n return Long.fromNumber(number);\n}\n\nfunction _unused_isObject(value: any): boolean {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/provider/v1/validation.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { DecCoin } from \"../../../cosmos/base/v1beta1/coin.ts\";\nimport { GroupSpec } from \"../../deployment/v1beta4/groupspec.ts\";\nimport { ResourceOffer } from \"../../market/v1beta5/resourcesoffer.ts\";\n\n/**\n * BidScreeningRequest represents a request to screen a deployment group\n * specification for bid eligibility against the provider's capabilities.\n */\nexport interface BidScreeningRequest {\n /** GroupSpec is the deployment group specification to screen for bid eligibility. */\n groupSpec:\n | GroupSpec\n | undefined;\n /** Hostnames is the list of hostnames requested by the deployment. */\n hostnames: string[];\n}\n\n/**\n * BidScreeningResponse represents the result of screening a deployment group\n * specification for bid eligibility against the provider's capabilities.\n */\nexport interface BidScreeningResponse {\n /** Passed indicates whether the deployment group passed bid screening. */\n passed: boolean;\n /** Reasons contains explanations when screening fails. */\n reasons: string[];\n /** ResourceOffer is the provider's resource offer for the screened group, if passed. */\n resourceOffer:\n | ResourceOffer\n | undefined;\n /** Price is the minimum bid price for the screened group. */\n price: DecCoin | undefined;\n}\n\nfunction createBaseBidScreeningRequest(): BidScreeningRequest {\n return { groupSpec: undefined, hostnames: [] };\n}\n\nexport const BidScreeningRequest: MessageFns<BidScreeningRequest, \"akash.provider.v1.BidScreeningRequest\"> = {\n $type: \"akash.provider.v1.BidScreeningRequest\" as const,\n\n encode(message: BidScreeningRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.groupSpec !== undefined) {\n GroupSpec.encode(message.groupSpec, writer.uint32(10).fork()).join();\n }\n for (const v of message.hostnames) {\n writer.uint32(18).string(v!);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): BidScreeningRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseBidScreeningRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.groupSpec = GroupSpec.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.hostnames.push(reader.string());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): BidScreeningRequest {\n return {\n groupSpec: isSet(object.group_spec) ? GroupSpec.fromJSON(object.group_spec) : undefined,\n hostnames: globalThis.Array.isArray(object?.hostnames)\n ? object.hostnames.map((e: any) => globalThis.String(e))\n : [],\n };\n },\n\n toJSON(message: BidScreeningRequest): unknown {\n const obj: any = {};\n if (message.groupSpec !== undefined) {\n obj.group_spec = GroupSpec.toJSON(message.groupSpec);\n }\n if (message.hostnames?.length) {\n obj.hostnames = message.hostnames;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<BidScreeningRequest>): BidScreeningRequest {\n const message = createBaseBidScreeningRequest();\n message.groupSpec = (object.groupSpec !== undefined && object.groupSpec !== null)\n ? GroupSpec.fromPartial(object.groupSpec)\n : undefined;\n message.hostnames = object.hostnames?.map((e) => e) || [];\n return message;\n },\n};\n\nfunction createBaseBidScreeningResponse(): BidScreeningResponse {\n return { passed: false, reasons: [], resourceOffer: undefined, price: undefined };\n}\n\nexport const BidScreeningResponse: MessageFns<BidScreeningResponse, \"akash.provider.v1.BidScreeningResponse\"> = {\n $type: \"akash.provider.v1.BidScreeningResponse\" as const,\n\n encode(message: BidScreeningResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.passed !== false) {\n writer.uint32(8).bool(message.passed);\n }\n for (const v of message.reasons) {\n writer.uint32(18).string(v!);\n }\n if (message.resourceOffer !== undefined) {\n ResourceOffer.encode(message.resourceOffer, writer.uint32(26).fork()).join();\n }\n if (message.price !== undefined) {\n DecCoin.encode(message.price, writer.uint32(34).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): BidScreeningResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseBidScreeningResponse();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.passed = reader.bool();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.reasons.push(reader.string());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.resourceOffer = ResourceOffer.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.price = DecCoin.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): BidScreeningResponse {\n return {\n passed: isSet(object.passed) ? globalThis.Boolean(object.passed) : false,\n reasons: globalThis.Array.isArray(object?.reasons) ? object.reasons.map((e: any) => globalThis.String(e)) : [],\n resourceOffer: isSet(object.resource_offer) ? ResourceOffer.fromJSON(object.resource_offer) : undefined,\n price: isSet(object.price) ? DecCoin.fromJSON(object.price) : undefined,\n };\n },\n\n toJSON(message: BidScreeningResponse): unknown {\n const obj: any = {};\n if (message.passed !== false) {\n obj.passed = message.passed;\n }\n if (message.reasons?.length) {\n obj.reasons = message.reasons;\n }\n if (message.resourceOffer !== undefined) {\n obj.resource_offer = ResourceOffer.toJSON(message.resourceOffer);\n }\n if (message.price !== undefined) {\n obj.price = DecCoin.toJSON(message.price);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<BidScreeningResponse>): BidScreeningResponse {\n const message = createBaseBidScreeningResponse();\n message.passed = object.passed ?? false;\n message.reasons = object.reasons?.map((e) => e) || [];\n message.resourceOffer = (object.resourceOffer !== undefined && object.resourceOffer !== null)\n ? ResourceOffer.fromPartial(object.resourceOffer)\n : undefined;\n message.price = (object.price !== undefined && object.price !== null)\n ? DecCoin.fromPartial(object.price)\n : undefined;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,cAAc,oBAAoB;AAC3C,OAAO,UAAU;AAoEjB,SAAS,4BAA6C;AACpD,SAAO,EAAE,KAAK,QAAW,QAAQ,QAAW,KAAK,QAAW,kBAAkB,QAAW,SAAS,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AAA,EACT;AACF;",
|
|
4
|
+
"sourcesContent": ["import { toTimestamp, fromTimestamp, fromJsonTimestamp, numberToLong, isObject, isSet } from \"../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/provider/v1/status.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.ts\";\nimport { Quantity } from \"../../../k8s.io/apimachinery/pkg/api/resource/generated.ts\";\nimport { Cluster } from \"../../inventory/v1/cluster.ts\";\n\n/** ResourceMetrics */\nexport interface ResourcesMetric {\n cpu: Quantity | undefined;\n memory: Quantity | undefined;\n gpu: Quantity | undefined;\n ephemeralStorage: Quantity | undefined;\n storage: { [key: string]: Quantity };\n}\n\nexport interface ResourcesMetric_StorageEntry {\n key: string;\n value: Quantity | undefined;\n}\n\n/** Leases */\nexport interface Leases {\n active: number;\n}\n\n/** ReservationsMetric */\nexport interface ReservationsMetric {\n count: number;\n resources: ResourcesMetric | undefined;\n}\n\n/** Reservations */\nexport interface Reservations {\n pending: ReservationsMetric | undefined;\n active: ReservationsMetric | undefined;\n}\n\n/** Inventory */\nexport interface Inventory {\n cluster: Cluster | undefined;\n reservations: Reservations | undefined;\n}\n\n/** ClusterStatus */\nexport interface ClusterStatus {\n leases: Leases | undefined;\n inventory: Inventory | undefined;\n}\n\n/** BidEngineStatus */\nexport interface BidEngineStatus {\n orders: number;\n}\n\n/** ManifestStatus */\nexport interface ManifestStatus {\n deployments: number;\n}\n\n/** Status */\nexport interface Status {\n errors: string[];\n cluster: ClusterStatus | undefined;\n bidEngine: BidEngineStatus | undefined;\n manifest: ManifestStatus | undefined;\n publicHostnames: string[];\n timestamp: Date | undefined;\n}\n\nfunction createBaseResourcesMetric(): ResourcesMetric {\n return { cpu: undefined, memory: undefined, gpu: undefined, ephemeralStorage: undefined, storage: {} };\n}\n\nexport const ResourcesMetric: MessageFns<ResourcesMetric, \"akash.provider.v1.ResourcesMetric\"> = {\n $type: \"akash.provider.v1.ResourcesMetric\" as const,\n\n encode(message: ResourcesMetric, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.cpu !== undefined) {\n Quantity.encode(message.cpu, writer.uint32(10).fork()).join();\n }\n if (message.memory !== undefined) {\n Quantity.encode(message.memory, writer.uint32(18).fork()).join();\n }\n if (message.gpu !== undefined) {\n Quantity.encode(message.gpu, writer.uint32(26).fork()).join();\n }\n if (message.ephemeralStorage !== undefined) {\n Quantity.encode(message.ephemeralStorage, writer.uint32(34).fork()).join();\n }\n Object.entries(message.storage).forEach(([key, value]) => {\n ResourcesMetric_StorageEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();\n });\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResourcesMetric {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResourcesMetric();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.cpu = Quantity.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.memory = Quantity.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.gpu = Quantity.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.ephemeralStorage = Quantity.decode(reader, reader.uint32());\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n const entry5 = ResourcesMetric_StorageEntry.decode(reader, reader.uint32());\n if (entry5.value !== undefined) {\n message.storage[entry5.key] = entry5.value;\n }\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResourcesMetric {\n return {\n cpu: isSet(object.cpu) ? Quantity.fromJSON(object.cpu) : undefined,\n memory: isSet(object.memory) ? Quantity.fromJSON(object.memory) : undefined,\n gpu: isSet(object.gpu) ? Quantity.fromJSON(object.gpu) : undefined,\n ephemeralStorage: isSet(object.ephemeral_storage) ? Quantity.fromJSON(object.ephemeral_storage) : undefined,\n storage: isObject(object.storage)\n ? Object.entries(object.storage).reduce<{ [key: string]: Quantity }>((acc, [key, value]) => {\n acc[key] = Quantity.fromJSON(value);\n return acc;\n }, {})\n : {},\n };\n },\n\n toJSON(message: ResourcesMetric): unknown {\n const obj: any = {};\n if (message.cpu !== undefined) {\n obj.cpu = Quantity.toJSON(message.cpu);\n }\n if (message.memory !== undefined) {\n obj.memory = Quantity.toJSON(message.memory);\n }\n if (message.gpu !== undefined) {\n obj.gpu = Quantity.toJSON(message.gpu);\n }\n if (message.ephemeralStorage !== undefined) {\n obj.ephemeral_storage = Quantity.toJSON(message.ephemeralStorage);\n }\n if (message.storage) {\n const entries = Object.entries(message.storage);\n if (entries.length > 0) {\n obj.storage = {};\n entries.forEach(([k, v]) => {\n obj.storage[k] = Quantity.toJSON(v);\n });\n }\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ResourcesMetric>): ResourcesMetric {\n const message = createBaseResourcesMetric();\n message.cpu = (object.cpu !== undefined && object.cpu !== null) ? Quantity.fromPartial(object.cpu) : undefined;\n message.memory = (object.memory !== undefined && object.memory !== null)\n ? Quantity.fromPartial(object.memory)\n : undefined;\n message.gpu = (object.gpu !== undefined && object.gpu !== null) ? Quantity.fromPartial(object.gpu) : undefined;\n message.ephemeralStorage = (object.ephemeralStorage !== undefined && object.ephemeralStorage !== null)\n ? Quantity.fromPartial(object.ephemeralStorage)\n : undefined;\n message.storage = Object.entries(object.storage ?? {}).reduce<{ [key: string]: Quantity }>((acc, [key, value]) => {\n if (value !== undefined) {\n acc[key] = Quantity.fromPartial(value);\n }\n return acc;\n }, {});\n return message;\n },\n};\n\nfunction createBaseResourcesMetric_StorageEntry(): ResourcesMetric_StorageEntry {\n return { key: \"\", value: undefined };\n}\n\nexport const ResourcesMetric_StorageEntry: MessageFns<\n ResourcesMetric_StorageEntry,\n \"akash.provider.v1.ResourcesMetric.StorageEntry\"\n> = {\n $type: \"akash.provider.v1.ResourcesMetric.StorageEntry\" as const,\n\n encode(message: ResourcesMetric_StorageEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.key !== \"\") {\n writer.uint32(10).string(message.key);\n }\n if (message.value !== undefined) {\n Quantity.encode(message.value, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResourcesMetric_StorageEntry {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResourcesMetric_StorageEntry();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.key = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.value = Quantity.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResourcesMetric_StorageEntry {\n return {\n key: isSet(object.key) ? globalThis.String(object.key) : \"\",\n value: isSet(object.value) ? Quantity.fromJSON(object.value) : undefined,\n };\n },\n\n toJSON(message: ResourcesMetric_StorageEntry): unknown {\n const obj: any = {};\n if (message.key !== \"\") {\n obj.key = message.key;\n }\n if (message.value !== undefined) {\n obj.value = Quantity.toJSON(message.value);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ResourcesMetric_StorageEntry>): ResourcesMetric_StorageEntry {\n const message = createBaseResourcesMetric_StorageEntry();\n message.key = object.key ?? \"\";\n message.value = (object.value !== undefined && object.value !== null)\n ? Quantity.fromPartial(object.value)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseLeases(): Leases {\n return { active: 0 };\n}\n\nexport const Leases: MessageFns<Leases, \"akash.provider.v1.Leases\"> = {\n $type: \"akash.provider.v1.Leases\" as const,\n\n encode(message: Leases, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.active !== 0) {\n writer.uint32(8).uint32(message.active);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Leases {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseLeases();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.active = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Leases {\n return { active: isSet(object.active) ? globalThis.Number(object.active) : 0 };\n },\n\n toJSON(message: Leases): unknown {\n const obj: any = {};\n if (message.active !== 0) {\n obj.active = Math.round(message.active);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Leases>): Leases {\n const message = createBaseLeases();\n message.active = object.active ?? 0;\n return message;\n },\n};\n\nfunction createBaseReservationsMetric(): ReservationsMetric {\n return { count: 0, resources: undefined };\n}\n\nexport const ReservationsMetric: MessageFns<ReservationsMetric, \"akash.provider.v1.ReservationsMetric\"> = {\n $type: \"akash.provider.v1.ReservationsMetric\" as const,\n\n encode(message: ReservationsMetric, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.count !== 0) {\n writer.uint32(8).uint32(message.count);\n }\n if (message.resources !== undefined) {\n ResourcesMetric.encode(message.resources, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ReservationsMetric {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseReservationsMetric();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.count = reader.uint32();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.resources = ResourcesMetric.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ReservationsMetric {\n return {\n count: isSet(object.count) ? globalThis.Number(object.count) : 0,\n resources: isSet(object.resources) ? ResourcesMetric.fromJSON(object.resources) : undefined,\n };\n },\n\n toJSON(message: ReservationsMetric): unknown {\n const obj: any = {};\n if (message.count !== 0) {\n obj.count = Math.round(message.count);\n }\n if (message.resources !== undefined) {\n obj.resources = ResourcesMetric.toJSON(message.resources);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ReservationsMetric>): ReservationsMetric {\n const message = createBaseReservationsMetric();\n message.count = object.count ?? 0;\n message.resources = (object.resources !== undefined && object.resources !== null)\n ? ResourcesMetric.fromPartial(object.resources)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseReservations(): Reservations {\n return { pending: undefined, active: undefined };\n}\n\nexport const Reservations: MessageFns<Reservations, \"akash.provider.v1.Reservations\"> = {\n $type: \"akash.provider.v1.Reservations\" as const,\n\n encode(message: Reservations, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.pending !== undefined) {\n ReservationsMetric.encode(message.pending, writer.uint32(10).fork()).join();\n }\n if (message.active !== undefined) {\n ReservationsMetric.encode(message.active, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Reservations {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseReservations();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.pending = ReservationsMetric.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.active = ReservationsMetric.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Reservations {\n return {\n pending: isSet(object.pending) ? ReservationsMetric.fromJSON(object.pending) : undefined,\n active: isSet(object.active) ? ReservationsMetric.fromJSON(object.active) : undefined,\n };\n },\n\n toJSON(message: Reservations): unknown {\n const obj: any = {};\n if (message.pending !== undefined) {\n obj.pending = ReservationsMetric.toJSON(message.pending);\n }\n if (message.active !== undefined) {\n obj.active = ReservationsMetric.toJSON(message.active);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Reservations>): Reservations {\n const message = createBaseReservations();\n message.pending = (object.pending !== undefined && object.pending !== null)\n ? ReservationsMetric.fromPartial(object.pending)\n : undefined;\n message.active = (object.active !== undefined && object.active !== null)\n ? ReservationsMetric.fromPartial(object.active)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseInventory(): Inventory {\n return { cluster: undefined, reservations: undefined };\n}\n\nexport const Inventory: MessageFns<Inventory, \"akash.provider.v1.Inventory\"> = {\n $type: \"akash.provider.v1.Inventory\" as const,\n\n encode(message: Inventory, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.cluster !== undefined) {\n Cluster.encode(message.cluster, writer.uint32(10).fork()).join();\n }\n if (message.reservations !== undefined) {\n Reservations.encode(message.reservations, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Inventory {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseInventory();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.cluster = Cluster.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.reservations = Reservations.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Inventory {\n return {\n cluster: isSet(object.cluster) ? Cluster.fromJSON(object.cluster) : undefined,\n reservations: isSet(object.reservations) ? Reservations.fromJSON(object.reservations) : undefined,\n };\n },\n\n toJSON(message: Inventory): unknown {\n const obj: any = {};\n if (message.cluster !== undefined) {\n obj.cluster = Cluster.toJSON(message.cluster);\n }\n if (message.reservations !== undefined) {\n obj.reservations = Reservations.toJSON(message.reservations);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Inventory>): Inventory {\n const message = createBaseInventory();\n message.cluster = (object.cluster !== undefined && object.cluster !== null)\n ? Cluster.fromPartial(object.cluster)\n : undefined;\n message.reservations = (object.reservations !== undefined && object.reservations !== null)\n ? Reservations.fromPartial(object.reservations)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseClusterStatus(): ClusterStatus {\n return { leases: undefined, inventory: undefined };\n}\n\nexport const ClusterStatus: MessageFns<ClusterStatus, \"akash.provider.v1.ClusterStatus\"> = {\n $type: \"akash.provider.v1.ClusterStatus\" as const,\n\n encode(message: ClusterStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.leases !== undefined) {\n Leases.encode(message.leases, writer.uint32(10).fork()).join();\n }\n if (message.inventory !== undefined) {\n Inventory.encode(message.inventory, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ClusterStatus {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseClusterStatus();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.leases = Leases.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.inventory = Inventory.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ClusterStatus {\n return {\n leases: isSet(object.leases) ? Leases.fromJSON(object.leases) : undefined,\n inventory: isSet(object.inventory) ? Inventory.fromJSON(object.inventory) : undefined,\n };\n },\n\n toJSON(message: ClusterStatus): unknown {\n const obj: any = {};\n if (message.leases !== undefined) {\n obj.leases = Leases.toJSON(message.leases);\n }\n if (message.inventory !== undefined) {\n obj.inventory = Inventory.toJSON(message.inventory);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ClusterStatus>): ClusterStatus {\n const message = createBaseClusterStatus();\n message.leases = (object.leases !== undefined && object.leases !== null)\n ? Leases.fromPartial(object.leases)\n : undefined;\n message.inventory = (object.inventory !== undefined && object.inventory !== null)\n ? Inventory.fromPartial(object.inventory)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseBidEngineStatus(): BidEngineStatus {\n return { orders: 0 };\n}\n\nexport const BidEngineStatus: MessageFns<BidEngineStatus, \"akash.provider.v1.BidEngineStatus\"> = {\n $type: \"akash.provider.v1.BidEngineStatus\" as const,\n\n encode(message: BidEngineStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.orders !== 0) {\n writer.uint32(8).uint32(message.orders);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): BidEngineStatus {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseBidEngineStatus();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.orders = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): BidEngineStatus {\n return { orders: isSet(object.orders) ? globalThis.Number(object.orders) : 0 };\n },\n\n toJSON(message: BidEngineStatus): unknown {\n const obj: any = {};\n if (message.orders !== 0) {\n obj.orders = Math.round(message.orders);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<BidEngineStatus>): BidEngineStatus {\n const message = createBaseBidEngineStatus();\n message.orders = object.orders ?? 0;\n return message;\n },\n};\n\nfunction createBaseManifestStatus(): ManifestStatus {\n return { deployments: 0 };\n}\n\nexport const ManifestStatus: MessageFns<ManifestStatus, \"akash.provider.v1.ManifestStatus\"> = {\n $type: \"akash.provider.v1.ManifestStatus\" as const,\n\n encode(message: ManifestStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.deployments !== 0) {\n writer.uint32(8).uint32(message.deployments);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ManifestStatus {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseManifestStatus();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.deployments = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ManifestStatus {\n return { deployments: isSet(object.deployments) ? globalThis.Number(object.deployments) : 0 };\n },\n\n toJSON(message: ManifestStatus): unknown {\n const obj: any = {};\n if (message.deployments !== 0) {\n obj.deployments = Math.round(message.deployments);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ManifestStatus>): ManifestStatus {\n const message = createBaseManifestStatus();\n message.deployments = object.deployments ?? 0;\n return message;\n },\n};\n\nfunction createBaseStatus(): Status {\n return {\n errors: [],\n cluster: undefined,\n bidEngine: undefined,\n manifest: undefined,\n publicHostnames: [],\n timestamp: undefined,\n };\n}\n\nexport const Status: MessageFns<Status, \"akash.provider.v1.Status\"> = {\n $type: \"akash.provider.v1.Status\" as const,\n\n encode(message: Status, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n for (const v of message.errors) {\n writer.uint32(10).string(v!);\n }\n if (message.cluster !== undefined) {\n ClusterStatus.encode(message.cluster, writer.uint32(18).fork()).join();\n }\n if (message.bidEngine !== undefined) {\n BidEngineStatus.encode(message.bidEngine, writer.uint32(26).fork()).join();\n }\n if (message.manifest !== undefined) {\n ManifestStatus.encode(message.manifest, writer.uint32(34).fork()).join();\n }\n for (const v of message.publicHostnames) {\n writer.uint32(42).string(v!);\n }\n if (message.timestamp !== undefined) {\n Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(50).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Status {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseStatus();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.errors.push(reader.string());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.cluster = ClusterStatus.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.bidEngine = BidEngineStatus.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.manifest = ManifestStatus.decode(reader, reader.uint32());\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.publicHostnames.push(reader.string());\n continue;\n }\n case 6: {\n if (tag !== 50) {\n break;\n }\n\n message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Status {\n return {\n errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e: any) => globalThis.String(e)) : [],\n cluster: isSet(object.cluster) ? ClusterStatus.fromJSON(object.cluster) : undefined,\n bidEngine: isSet(object.bid_engine) ? BidEngineStatus.fromJSON(object.bid_engine) : undefined,\n manifest: isSet(object.manifest) ? ManifestStatus.fromJSON(object.manifest) : undefined,\n publicHostnames: globalThis.Array.isArray(object?.public_hostnames)\n ? object.public_hostnames.map((e: any) => globalThis.String(e))\n : [],\n timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,\n };\n },\n\n toJSON(message: Status): unknown {\n const obj: any = {};\n if (message.errors?.length) {\n obj.errors = message.errors;\n }\n if (message.cluster !== undefined) {\n obj.cluster = ClusterStatus.toJSON(message.cluster);\n }\n if (message.bidEngine !== undefined) {\n obj.bid_engine = BidEngineStatus.toJSON(message.bidEngine);\n }\n if (message.manifest !== undefined) {\n obj.manifest = ManifestStatus.toJSON(message.manifest);\n }\n if (message.publicHostnames?.length) {\n obj.public_hostnames = message.publicHostnames;\n }\n if (message.timestamp !== undefined) {\n obj.timestamp = message.timestamp.toISOString();\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Status>): Status {\n const message = createBaseStatus();\n message.errors = object.errors?.map((e) => e) || [];\n message.cluster = (object.cluster !== undefined && object.cluster !== null)\n ? ClusterStatus.fromPartial(object.cluster)\n : undefined;\n message.bidEngine = (object.bidEngine !== undefined && object.bidEngine !== null)\n ? BidEngineStatus.fromPartial(object.bidEngine)\n : undefined;\n message.manifest = (object.manifest !== undefined && object.manifest !== null)\n ? ManifestStatus.fromPartial(object.manifest)\n : undefined;\n message.publicHostnames = object.publicHostnames?.map((e) => e) || [];\n message.timestamp = object.timestamp ?? undefined;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_toTimestamp(date: Date): Timestamp {\n const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));\n const nanos = (date.getTime() % 1_000) * 1_000_000;\n return { seconds, nanos };\n}\n\nfunction _unused_fromTimestamp(t: Timestamp): Date {\n let millis = (t.seconds.toNumber() || 0) * 1_000;\n millis += (t.nanos || 0) / 1_000_000;\n return new globalThis.Date(millis);\n}\n\nfunction _unused_fromJsonTimestamp(o: any): Date {\n if (o instanceof globalThis.Date) {\n return o;\n } else if (typeof o === \"string\") {\n return new globalThis.Date(o);\n } else {\n return fromTimestamp(Timestamp.fromJSON(o));\n }\n}\n\nfunction _unused_numberToLong(number: number) {\n return Long.fromNumber(number);\n}\n\nfunction _unused_isObject(value: any): boolean {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/provider/v1/validation.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { DecCoin } from \"../../../cosmos/base/v1beta1/coin.ts\";\nimport { GroupSpec } from \"../../deployment/v1beta4/groupspec.ts\";\nimport { ResourceOffer } from \"../../market/v1beta5/resourcesoffer.ts\";\n\n/**\n * BidScreeningRequest represents a request to screen a deployment group\n * specification for bid eligibility against the provider's capabilities.\n */\nexport interface BidScreeningRequest {\n /** GroupSpec is the deployment group specification to screen for bid eligibility. */\n groupSpec:\n | GroupSpec\n | undefined;\n /** Hostnames is the list of hostnames requested by the deployment. */\n hostnames: string[];\n}\n\n/**\n * BidScreeningResponse represents the result of screening a deployment group\n * specification for bid eligibility against the provider's capabilities.\n */\nexport interface BidScreeningResponse {\n /** Passed indicates whether the deployment group passed bid screening. */\n passed: boolean;\n /** Reasons contains explanations when screening fails. */\n reasons: string[];\n /** ResourceOffers contains the provider's resource offers for the screened group, one per service in the GroupSpec. */\n resourceOffers: ResourceOffer[];\n /** Price is the minimum bid price for the screened group. */\n price: DecCoin | undefined;\n}\n\nfunction createBaseBidScreeningRequest(): BidScreeningRequest {\n return { groupSpec: undefined, hostnames: [] };\n}\n\nexport const BidScreeningRequest: MessageFns<BidScreeningRequest, \"akash.provider.v1.BidScreeningRequest\"> = {\n $type: \"akash.provider.v1.BidScreeningRequest\" as const,\n\n encode(message: BidScreeningRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.groupSpec !== undefined) {\n GroupSpec.encode(message.groupSpec, writer.uint32(10).fork()).join();\n }\n for (const v of message.hostnames) {\n writer.uint32(18).string(v!);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): BidScreeningRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseBidScreeningRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.groupSpec = GroupSpec.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.hostnames.push(reader.string());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): BidScreeningRequest {\n return {\n groupSpec: isSet(object.group_spec) ? GroupSpec.fromJSON(object.group_spec) : undefined,\n hostnames: globalThis.Array.isArray(object?.hostnames)\n ? object.hostnames.map((e: any) => globalThis.String(e))\n : [],\n };\n },\n\n toJSON(message: BidScreeningRequest): unknown {\n const obj: any = {};\n if (message.groupSpec !== undefined) {\n obj.group_spec = GroupSpec.toJSON(message.groupSpec);\n }\n if (message.hostnames?.length) {\n obj.hostnames = message.hostnames;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<BidScreeningRequest>): BidScreeningRequest {\n const message = createBaseBidScreeningRequest();\n message.groupSpec = (object.groupSpec !== undefined && object.groupSpec !== null)\n ? GroupSpec.fromPartial(object.groupSpec)\n : undefined;\n message.hostnames = object.hostnames?.map((e) => e) || [];\n return message;\n },\n};\n\nfunction createBaseBidScreeningResponse(): BidScreeningResponse {\n return { passed: false, reasons: [], resourceOffers: [], price: undefined };\n}\n\nexport const BidScreeningResponse: MessageFns<BidScreeningResponse, \"akash.provider.v1.BidScreeningResponse\"> = {\n $type: \"akash.provider.v1.BidScreeningResponse\" as const,\n\n encode(message: BidScreeningResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.passed !== false) {\n writer.uint32(8).bool(message.passed);\n }\n for (const v of message.reasons) {\n writer.uint32(18).string(v!);\n }\n for (const v of message.resourceOffers) {\n ResourceOffer.encode(v!, writer.uint32(26).fork()).join();\n }\n if (message.price !== undefined) {\n DecCoin.encode(message.price, writer.uint32(34).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): BidScreeningResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseBidScreeningResponse();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.passed = reader.bool();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.reasons.push(reader.string());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.resourceOffers.push(ResourceOffer.decode(reader, reader.uint32()));\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.price = DecCoin.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): BidScreeningResponse {\n return {\n passed: isSet(object.passed) ? globalThis.Boolean(object.passed) : false,\n reasons: globalThis.Array.isArray(object?.reasons) ? object.reasons.map((e: any) => globalThis.String(e)) : [],\n resourceOffers: globalThis.Array.isArray(object?.resource_offers)\n ? object.resource_offers.map((e: any) => ResourceOffer.fromJSON(e))\n : [],\n price: isSet(object.price) ? DecCoin.fromJSON(object.price) : undefined,\n };\n },\n\n toJSON(message: BidScreeningResponse): unknown {\n const obj: any = {};\n if (message.passed !== false) {\n obj.passed = message.passed;\n }\n if (message.reasons?.length) {\n obj.reasons = message.reasons;\n }\n if (message.resourceOffers?.length) {\n obj.resource_offers = message.resourceOffers.map((e) => ResourceOffer.toJSON(e));\n }\n if (message.price !== undefined) {\n obj.price = DecCoin.toJSON(message.price);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<BidScreeningResponse>): BidScreeningResponse {\n const message = createBaseBidScreeningResponse();\n message.passed = object.passed ?? false;\n message.reasons = object.reasons?.map((e) => e) || [];\n message.resourceOffers = object.resourceOffers?.map((e) => ResourceOffer.fromPartial(e)) || [];\n message.price = (object.price !== undefined && object.price !== null)\n ? DecCoin.fromPartial(object.price)\n : undefined;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,cAAc,oBAAoB;AAC3C,OAAO,UAAU;AAoEjB,SAAS,4BAA6C;AACpD,SAAO,EAAE,KAAK,QAAW,QAAQ,QAAW,KAAK,QAAW,kBAAkB,QAAW,SAAS,CAAC,EAAE;AACvG;AAEO,IAAM,kBAAoF;AAAA,EAC/F,OAAO;AAAA,EAEP,OAAO,SAA0B,SAAuB,IAAI,aAAa,GAAiB;AACxF,QAAI,QAAQ,QAAQ,QAAW;AAC7B,eAAS,OAAO,QAAQ,KAAK,OAAO,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,KAAK;AAAA,IAC9D;AACA,QAAI,QAAQ,WAAW,QAAW;AAChC,eAAS,OAAO,QAAQ,QAAQ,OAAO,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,KAAK;AAAA,IACjE;AACA,QAAI,QAAQ,QAAQ,QAAW;AAC7B,eAAS,OAAO,QAAQ,KAAK,OAAO,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,KAAK;AAAA,IAC9D;AACA,QAAI,QAAQ,qBAAqB,QAAW;AAC1C,eAAS,OAAO,QAAQ,kBAAkB,OAAO,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,KAAK;AAAA,IAC3E;AACA,WAAO,QAAQ,QAAQ,OAAO,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AACxD,mCAA6B,OAAO,EAAE,KAAiB,MAAM,GAAG,OAAO,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,KAAK;AAAA,IACjG,CAAC;AACD,WAAO;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,eAAe,IAAI,CAAC,MAAM,cAAc,OAAO,CAAC,CAAC;AAAA,IACjF;AACA,QAAI,QAAQ,UAAU,QAAW;AAC/B,UAAI,QAAQ,QAAQ,OAAO,QAAQ,KAAK;AAAA,IAC1C;AACA,WAAO;AAAA,EACT;AAAA,EACA,YAAY,QAAiE;AAC3E,UAAM,UAAU,+BAA+B;AAC/C,YAAQ,SAAS,OAAO,UAAU;AAClC,YAAQ,UAAU,OAAO,SAAS,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;AACpD,YAAQ,iBAAiB,OAAO,gBAAgB,IAAI,CAAC,MAAM,cAAc,YAAY,CAAC,CAAC,KAAK,CAAC;AAC7F,YAAQ,QAAS,OAAO,UAAU,UAAa,OAAO,UAAU,OAC5D,QAAQ,YAAY,OAAO,KAAK,IAChC;AACJ,WAAO;AAAA,EACT;AACF;",
|
|
6
6
|
"names": ["BinaryReader", "BinaryWriter", "BinaryWriter", "BinaryReader"]
|
|
7
7
|
}
|
|
@@ -75,7 +75,7 @@ var require_ucs2length = __commonJS({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
var validate = validate11;
|
|
78
|
-
var schema12 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "description": "Schema for Akash Stack Definition Language (SDL) YAML input files.\n\nNote: This schema validates structure only. Semantic validations (cross-references,\nunused endpoints, profile references, etc.) are performed at runtime by the Go parser.\nSee README.md for details.\n", "definitions": { "stringArrayOrNull": { "description": "String array or null value (used for command args and env vars)", "oneOf": [{ "items": { "type": "string" }, "type": "array" }, { "type": "null" }] }, "portNumber": { "description": "Valid TCP/UDP port number (1-65535)", "type": "integer", "minimum": 1, "maximum": 65535 }, "httpErrorCode": { "description": "HTTP error codes for proxy retry logic", "enum": ["error", "timeout", "500", "502", "503", "504", "403", "404", "429", "off"], "type": "string" }, "priceCoin": { "description": "Price definition with amount and denomination", "additionalProperties": false, "properties": { "amount": { "oneOf": [{ "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?$", "description": "Positive number as string" }, { "type": "number", "minimum": 0, "description": "Positive number" }] }, "denom": { "pattern": "^(uakt|uact|ibc/.*)$", "type": "string" } }, "required": ["denom", "amount"], "type": "object" }, "storageRamClassMustNotBePersistent": { "description": "RAM storage class must not have persistent=true", "not": { "properties": { "class": { "const": "ram" }, "persistent": { "oneOf": [{ "const": true }, { "const": "true" }] } }, "required": ["class", "persistent"] } }, "storageNonRamClassRequiresPersistent": { "description": "Non-RAM storage classes (beta1, beta2, beta3, default) require persistent=true", "if": { "properties": { "class": { "enum": ["beta1", "beta2", "beta3", "default"] } }, "required": ["class"] }, "then": { "properties": { "persistent": { "oneOf": [{ "const": true }, { "const": "true" }] } }, "required": ["persistent"] } }, "storageAttributesValidation": { "description": "Storage attributes validation:\n1. RAM class must not be persistent\n2. Non-RAM classes (beta1, beta2, beta3, default) require persistent=true\n", "additionalProperties": false, "properties": { "class": { "type": "string" }, "persistent": { "oneOf": [{ "type": "boolean" }, { "type": "string" }] } }, "allOf": [{ "$ref": "#/definitions/storageRamClassMustNotBePersistent" }, { "$ref": "#/definitions/storageNonRamClassRequiresPersistent" }], "required": ["class", "persistent"], "type": "object" }, "storageVolume": { "description": "Storage volume definition with size and optional attributes", "additionalProperties": false, "properties": { "attributes": { "$ref": "#/definitions/storageAttributesValidation" }, "name": { "type": "string" }, "size": { "type": "string" } }, "required": ["size"], "type": "object" }, "absolutePath": { "description": "Absolute filesystem path starting with /", "type": "string", "minLength": 1, "pattern": "^/" }, "gpuUnitsGt0RequiresAttributes": { "description": "GPU units > 0 requires attributes to be present", "if": { "properties": { "units": { "oneOf": [{ "type": "number", "exclusiveMinimum": 0 }, { "type": "string", "not": { "pattern": "^0+(\\.0+)?$" } }] } }, "required": ["units"] }, "then": { "required": ["attributes"] } }, "gpuAttributesRequireUnitsGt0": { "description": "GPU attributes present requires units > 0", "if": { "required": ["attributes"] }, "then": { "properties": { "units": { "oneOf": [{ "type": "number", "exclusiveMinimum": 0 }, { "type": "string", "not": { "pattern": "^0+(\\.0+)?$" } }] } }, "required": ["units"] } }, "exposeToWithIpEnforcesGlobal": { "description": "Expose to with IP enforces global", "if": { "properties": { "ip": { "type": "string", "minLength": 1 } }, "required": ["ip"] }, "then": { "properties": { "global": { "const": true } }, "required": ["global"] } } }, "properties": { "deployment": { "additionalProperties": { "additionalProperties": { "additionalProperties": false, "properties": { "count": { "minimum": 1, "type": "integer" }, "profile": { "type": "string" } }, "required": ["profile", "count"], "type": "object" }, "type": "object" }, "type": "object" }, "endpoints": { "additionalProperties": false, "patternProperties": { "^[a-z]+[-_0-9a-z]+$": { "additionalProperties": false, "properties": { "kind": { "enum": ["ip"], "type": "string" } }, "required": ["kind"], "type": "object" } }, "type": "object" }, "include": { "description": "Optional list of files to include", "items": { "type": "string" }, "type": "array" }, "profiles": { "additionalProperties": false, "properties": { "compute": { "additionalProperties": { "additionalProperties": false, "properties": { "resources": { "additionalProperties": false, "properties": { "cpu": { "additionalProperties": false, "properties": { "attributes": { "type": "object" }, "units": { "oneOf": [{ "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?[a-zA-Z]*$", "not": { "pattern": "^0+(\\.0+)?m?$" } }, { "type": "number", "exclusiveMinimum": 0 }] } }, "required": ["units"], "type": "object" }, "gpu": { "description": "GPU resource specification.\n- units defaults to 0 if omitted\n- Bidirectional validation: units > 0 requires attributes, and attributes require units > 0\n", "additionalProperties": false, "properties": { "attributes": { "additionalProperties": false, "properties": { "vendor": { "additionalProperties": false, "minProperties": 1, "properties": { "nvidia": { "oneOf": [{ "type": "array", "items": { "additionalProperties": false, "properties": { "interface": { "enum": ["pcie", "sxm"], "type": "string" }, "model": { "type": "string" }, "ram": { "type": "string" } }, "type": "object" } }, { "type": "null" }] } }, "type": "object" } }, "type": "object" }, "units": { "oneOf": [{ "type": "string" }, { "type": "number" }] } }, "allOf": [{ "$ref": "#/definitions/gpuUnitsGt0RequiresAttributes" }, { "$ref": "#/definitions/gpuAttributesRequireUnitsGt0" }], "type": "object" }, "memory": { "additionalProperties": false, "properties": { "size": { "type": "string" } }, "required": ["size"], "type": "object" }, "storage": { "oneOf": [{ "$ref": "#/definitions/storageVolume" }, { "items": { "$ref": "#/definitions/storageVolume" }, "type": "array" }] } }, "required": ["cpu", "memory", "storage"], "type": "object" } }, "required": ["resources"], "type": "object" }, "type": "object" }, "placement": { "additionalProperties": { "additionalProperties": false, "properties": { "attributes": { "type": "object" }, "pricing": { "additionalProperties": { "$ref": "#/definitions/priceCoin" }, "type": "object" }, "signedBy": { "additionalProperties": false, "properties": { "allOf": { "items": { "type": "string" }, "type": "array" }, "anyOf": { "items": { "type": "string" }, "type": "array" } }, "type": "object" } }, "required": ["pricing"], "type": "object" }, "type": "object" } }, "required": ["compute", "placement"], "type": "object" }, "services": { "additionalProperties": { "properties": { "args": { "$ref": "#/definitions/stringArrayOrNull" }, "command": { "$ref": "#/definitions/stringArrayOrNull" }, "credentials": { "additionalProperties": false, "properties": { "email": { "type": "string", "minLength": 5 }, "host": { "type": "string", "minLength": 1 }, "password": { "type": "string", "minLength": 6 }, "username": { "type": "string", "minLength": 1 } }, "required": ["host", "username", "password"], "type": "object" }, "dependencies": { "items": { "additionalProperties": false, "properties": { "service": { "type": "string" } }, "type": "object" }, "type": "array" }, "env": { "$ref": "#/definitions/stringArrayOrNull" }, "expose": { "oneOf": [{ "type": "array", "items": { "additionalProperties": false, "properties": { "accept": { "items": { "type": "string" }, "type": "array" }, "as": { "$ref": "#/definitions/portNumber" }, "http_options": { "additionalProperties": false, "properties": { "max_body_size": { "type": "integer", "minimum": 0, "maximum": 104857600, "description": "Maximum body size in bytes (max 100 MB)" }, "next_cases": { "oneOf": [{ "type": "array", "items": { "$ref": "#/definitions/httpErrorCode" }, "contains": { "const": "off" }, "maxItems": 1, "minItems": 1 }, { "type": "array", "items": { "$ref": "#/definitions/httpErrorCode" }, "not": { "contains": { "const": "off" } } }] }, "next_timeout": { "type": "integer", "minimum": 0 }, "next_tries": { "type": "integer", "minimum": 0 }, "read_timeout": { "type": "integer", "minimum": 0, "maximum": 6e4, "description": "Read timeout in milliseconds (max 60 seconds)" }, "send_timeout": { "type": "integer", "minimum": 0, "maximum": 6e4, "description": "Send timeout in milliseconds (max 60 seconds)" } }, "type": "object" }, "port": { "$ref": "#/definitions/portNumber" }, "proto": { "enum": ["TCP", "UDP", "tcp", "udp"], "type": "string" }, "to": { "items": { "additionalProperties": false, "properties": { "global": { "type": "boolean" }, "ip": { "minLength": 1, "type": "string" }, "service": { "type": "string" } }, "allOf": [{ "$ref": "#/definitions/exposeToWithIpEnforcesGlobal" }], "type": "object" }, "type": "array" } }, "required": ["port"], "type": "object" } }, { "type": "null" }] }, "image": { "type": "string", "minLength": 1 }, "params": { "additionalProperties": false, "properties": { "storage": { "additionalProperties": { "additionalProperties": false, "properties": { "mount": { "$ref": "#/definitions/absolutePath" }, "readOnly": { "type": "boolean" } }, "type": "object" }, "type": "object" }, "permissions": { "additionalProperties": false, "properties": { "read": { "items": { "type": "string", "enum": ["deployment", "logs"] }, "type": "array" } }, "type": "object" } }, "type": "object" } }, "required": ["image"], "type": "object", "additionalProperties": false }, "type": "object" }, "version": { "description": "SDL version", "enum": ["2.0", "2.1"], "type": "string" } }, "required": ["version", "services", "profiles", "deployment"], "title": "Akash SDL Input Schema", "type": "object" };
|
|
78
|
+
var schema12 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "description": "Schema for Akash Stack Definition Language (SDL) YAML input files.\n\nNote: This schema validates structure only. Semantic validations (cross-references,\nunused endpoints, profile references, etc.) are performed at runtime by the Go parser.\nSee README.md for details.\n", "definitions": { "stringArrayOrNull": { "description": "String array or null value (used for command args and env vars)", "oneOf": [{ "items": { "type": "string" }, "type": "array" }, { "type": "null" }] }, "portNumber": { "description": "Valid TCP/UDP port number (1-65535)", "type": "integer", "minimum": 1, "maximum": 65535 }, "httpErrorCode": { "description": "HTTP error codes for proxy retry logic", "enum": ["error", "timeout", "500", "502", "503", "504", "403", "404", "429", "off"], "type": "string" }, "priceCoin": { "description": "Price definition with amount and denomination", "additionalProperties": false, "properties": { "amount": { "oneOf": [{ "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?$", "description": "Positive number as string" }, { "type": "number", "minimum": 0, "description": "Positive number" }] }, "denom": { "pattern": "^(uakt|uact|ibc/.*)$", "type": "string" } }, "required": ["denom", "amount"], "type": "object" }, "storageRamClassMustNotBePersistent": { "description": "RAM storage class must not have persistent=true", "not": { "properties": { "class": { "const": "ram" }, "persistent": { "oneOf": [{ "const": true }, { "const": "true" }] } }, "required": ["class", "persistent"] } }, "storageNonRamClassRequiresPersistent": { "description": "Non-RAM storage classes (beta1, beta2, beta3, default) require persistent=true", "if": { "properties": { "class": { "enum": ["beta1", "beta2", "beta3", "default"] } }, "required": ["class"] }, "then": { "properties": { "persistent": { "oneOf": [{ "const": true }, { "const": "true" }] } }, "required": ["persistent"] } }, "storageAttributesValidation": { "description": "Storage attributes validation:\n1. RAM class must not be persistent\n2. Non-RAM classes (beta1, beta2, beta3, default) require persistent=true\n", "additionalProperties": false, "properties": { "class": { "type": "string" }, "persistent": { "oneOf": [{ "type": "boolean" }, { "type": "string" }] } }, "allOf": [{ "$ref": "#/definitions/storageRamClassMustNotBePersistent" }, { "$ref": "#/definitions/storageNonRamClassRequiresPersistent" }], "required": ["class", "persistent"], "type": "object" }, "storageVolume": { "description": "Storage volume definition with size and optional attributes", "additionalProperties": false, "properties": { "attributes": { "$ref": "#/definitions/storageAttributesValidation" }, "name": { "type": "string" }, "size": { "type": "string" } }, "required": ["size"], "type": "object" }, "absolutePath": { "description": "Absolute filesystem path starting with /", "type": "string", "minLength": 1, "pattern": "^/" }, "gpuUnitsGt0RequiresAttributes": { "description": "GPU units > 0 requires attributes to be present", "if": { "properties": { "units": { "oneOf": [{ "type": "number", "exclusiveMinimum": 0 }, { "type": "string", "not": { "pattern": "^0+(\\.0+)?$" } }] } }, "required": ["units"] }, "then": { "required": ["attributes"] } }, "gpuAttributesRequireUnitsGt0": { "description": "GPU attributes present requires units > 0", "if": { "required": ["attributes"] }, "then": { "properties": { "units": { "oneOf": [{ "type": "number", "exclusiveMinimum": 0 }, { "type": "string", "not": { "pattern": "^0+(\\.0+)?$" } }] } }, "required": ["units"] } }, "exposeToWithIpEnforcesGlobal": { "description": "Expose to with IP enforces global", "if": { "properties": { "ip": { "type": "string", "minLength": 1 } }, "required": ["ip"] }, "then": { "properties": { "global": { "const": true } }, "required": ["global"] } } }, "properties": { "deployment": { "additionalProperties": { "additionalProperties": { "additionalProperties": false, "properties": { "count": { "minimum": 1, "type": "integer" }, "profile": { "type": "string" } }, "required": ["profile", "count"], "type": "object" }, "type": "object" }, "type": "object" }, "endpoints": { "additionalProperties": false, "patternProperties": { "^[a-z]+[-_0-9a-z]+$": { "additionalProperties": false, "properties": { "kind": { "enum": ["ip"], "type": "string" } }, "required": ["kind"], "type": "object" } }, "type": "object" }, "include": { "description": "Optional list of files to include", "items": { "type": "string" }, "type": "array" }, "profiles": { "additionalProperties": false, "properties": { "compute": { "additionalProperties": { "additionalProperties": false, "properties": { "resources": { "additionalProperties": false, "properties": { "cpu": { "additionalProperties": false, "properties": { "attributes": { "type": "object" }, "units": { "oneOf": [{ "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?[a-zA-Z]*$", "not": { "pattern": "^0+(\\.0+)?m?$" } }, { "type": "number", "exclusiveMinimum": 0 }] } }, "required": ["units"], "type": "object" }, "gpu": { "description": "GPU resource specification.\n- units defaults to 0 if omitted\n- Bidirectional validation: units > 0 requires attributes, and attributes require units > 0\n", "additionalProperties": false, "properties": { "attributes": { "additionalProperties": false, "properties": { "vendor": { "additionalProperties": false, "minProperties": 1, "properties": { "nvidia": { "oneOf": [{ "type": "array", "items": { "additionalProperties": false, "properties": { "interface": { "enum": ["pcie", "sxm"], "type": "string" }, "model": { "type": "string" }, "ram": { "type": "string" } }, "type": "object" } }, { "type": "null" }] } }, "type": "object" } }, "type": "object" }, "units": { "oneOf": [{ "type": "string" }, { "type": "number" }] } }, "allOf": [{ "$ref": "#/definitions/gpuUnitsGt0RequiresAttributes" }, { "$ref": "#/definitions/gpuAttributesRequireUnitsGt0" }], "type": "object" }, "memory": { "additionalProperties": false, "properties": { "size": { "type": "string" } }, "required": ["size"], "type": "object" }, "storage": { "oneOf": [{ "$ref": "#/definitions/storageVolume" }, { "items": { "$ref": "#/definitions/storageVolume" }, "type": "array" }] } }, "required": ["cpu", "memory", "storage"], "type": "object" } }, "required": ["resources"], "type": "object" }, "type": "object" }, "placement": { "additionalProperties": { "additionalProperties": false, "properties": { "attributes": { "type": "object" }, "pricing": { "additionalProperties": { "$ref": "#/definitions/priceCoin" }, "type": "object" }, "signedBy": { "additionalProperties": false, "properties": { "allOf": { "items": { "type": "string" }, "type": "array" }, "anyOf": { "items": { "type": "string" }, "type": "array" } }, "type": "object" } }, "required": ["pricing"], "type": "object" }, "type": "object" } }, "required": ["compute", "placement"], "type": "object" }, "services": { "additionalProperties": { "properties": { "args": { "$ref": "#/definitions/stringArrayOrNull" }, "command": { "$ref": "#/definitions/stringArrayOrNull" }, "credentials": { "additionalProperties": false, "properties": { "email": { "type": "string", "minLength": 5 }, "host": { "type": "string", "minLength": 1 }, "password": { "type": "string", "minLength": 6 }, "username": { "type": "string", "minLength": 1 } }, "required": ["host", "username", "password"], "type": "object" }, "dependencies": { "items": { "additionalProperties": false, "properties": { "service": { "type": "string" } }, "type": "object" }, "type": "array" }, "env": { "$ref": "#/definitions/stringArrayOrNull" }, "expose": { "oneOf": [{ "type": "array", "items": { "additionalProperties": false, "properties": { "accept": { "items": { "type": "string" }, "type": "array" }, "as": { "$ref": "#/definitions/portNumber" }, "http_options": { "additionalProperties": false, "properties": { "max_body_size": { "type": "integer", "minimum": 0, "maximum": 104857600, "description": "Maximum body size in bytes (max 100 MB)" }, "next_cases": { "oneOf": [{ "type": "array", "items": { "$ref": "#/definitions/httpErrorCode" }, "contains": { "const": "off" }, "maxItems": 1, "minItems": 1 }, { "type": "array", "items": { "$ref": "#/definitions/httpErrorCode" }, "not": { "contains": { "const": "off" } } }] }, "next_timeout": { "type": "integer", "minimum": 0 }, "next_tries": { "type": "integer", "minimum": 0 }, "read_timeout": { "type": "integer", "minimum": 0, "maximum": 6e4, "description": "Read timeout in milliseconds (max 60 seconds)" }, "send_timeout": { "type": "integer", "minimum": 0, "maximum": 6e4, "description": "Send timeout in milliseconds (max 60 seconds)" } }, "type": "object" }, "port": { "$ref": "#/definitions/portNumber" }, "proto": { "enum": ["TCP", "UDP", "tcp", "udp"], "type": "string" }, "to": { "items": { "additionalProperties": false, "properties": { "global": { "type": "boolean" }, "ip": { "minLength": 1, "type": "string" }, "service": { "type": "string" } }, "allOf": [{ "$ref": "#/definitions/exposeToWithIpEnforcesGlobal" }], "type": "object" }, "type": "array" } }, "required": ["port"], "type": "object" } }, { "type": "null" }] }, "image": { "type": "string", "minLength": 1 }, "params": { "additionalProperties": false, "properties": { "storage": { "additionalProperties": { "additionalProperties": false, "properties": { "mount": { "$ref": "#/definitions/absolutePath" }, "readOnly": { "type": "boolean" } }, "type": "object" }, "type": "object" }, "permissions": { "additionalProperties": false, "properties": { "read": { "items": { "type": "string", "enum": ["deployment", "logs", "events"] }, "type": "array" } }, "type": "object" } }, "type": "object" } }, "required": ["image"], "type": "object", "additionalProperties": false }, "type": "object" }, "version": { "description": "SDL version", "enum": ["2.0", "2.1"], "type": "string" } }, "required": ["version", "services", "profiles", "deployment"], "title": "Akash SDL Input Schema", "type": "object" };
|
|
79
79
|
var schema24 = { "description": "HTTP error codes for proxy retry logic", "enum": ["error", "timeout", "500", "502", "503", "504", "403", "404", "429", "off"], "type": "string" };
|
|
80
80
|
var pattern2 = new RegExp("^[a-z]+[-_0-9a-z]+$", "u");
|
|
81
81
|
var pattern4 = new RegExp("^0+(\\.0+)?m?$", "u");
|
|
@@ -3347,7 +3347,7 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3347
3347
|
}
|
|
3348
3348
|
errors++;
|
|
3349
3349
|
}
|
|
3350
|
-
if (!(data93 === "deployment" || data93 === "logs")) {
|
|
3350
|
+
if (!(data93 === "deployment" || data93 === "logs" || data93 === "events")) {
|
|
3351
3351
|
const err214 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/permissions/read/" + i16, schemaPath: "#/properties/services/additionalProperties/properties/params/properties/permissions/properties/read/items/enum", keyword: "enum", params: { allowedValues: schema12.properties.services.additionalProperties.properties.params.properties.permissions.properties.read.items.enum }, message: "must be equal to one of the allowed values" };
|
|
3352
3352
|
if (vErrors === null) {
|
|
3353
3353
|
vErrors = [err214];
|
|
@@ -9931,4 +9931,4 @@ export {
|
|
|
9931
9931
|
isRetryEnabled,
|
|
9932
9932
|
createTxTransport
|
|
9933
9933
|
};
|
|
9934
|
-
//# sourceMappingURL=chunk-
|
|
9934
|
+
//# sourceMappingURL=chunk-YSOG5YCI.js.map
|