@akashnetwork/chain-sdk 1.0.0-alpha.44 → 1.0.0-alpha.45
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/sdl/manifest/generateManifest.cjs +19 -31
- package/dist/cjs/sdl/manifest/generateManifest.cjs.map +2 -2
- package/dist/cjs/sdl/manifest/manifestUtils.cjs +46 -23
- package/dist/cjs/sdl/manifest/manifestUtils.cjs.map +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +1402 -1369
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
- package/dist/esm/{chunk-6MIQPNOR.js → chunk-JN5DGAQY.js} +1465 -1424
- package/dist/esm/chunk-JN5DGAQY.js.map +7 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.web.js +1 -1
- package/dist/sdl-schema.yaml +15 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/sdl/manifest/manifestUtils.d.ts +12 -0
- package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +19 -1
- package/package.json +1 -1
- package/dist/esm/chunk-6MIQPNOR.js.map +0 -7
|
@@ -13,6 +13,7 @@ type SDLStorageVolume = SDLStorage extends (infer T)[] ? T : SDLStorage;
|
|
|
13
13
|
type SDLGpuAttributes = NonNullable<NonNullable<SDLCompute["resources"]["gpu"]>["attributes"]>;
|
|
14
14
|
export type { SDLCompute, SDLExpose, SDLExposeTo, SDLGpuAttributes, SDLHttpOptions, SDLService, SDLStorage, SDLStorageVolume };
|
|
15
15
|
export declare function computeEndpointSequenceNumbers(services: SDLInput["services"]): Record<string, number>;
|
|
16
|
+
export declare function compareStrings(a: string, b: string): number;
|
|
16
17
|
export declare function isIngress(proto: string, global: boolean, externalPort: number, port: number): boolean;
|
|
17
18
|
export declare const INTERCONNECT_GROUP_AUTO = "auto";
|
|
18
19
|
export declare function resolveInterconnectGroup(interconnect: SDLGpuAttributes["interconnect"]): string;
|
|
@@ -20,6 +21,17 @@ export declare function transformGpuAttributes(attributes: SDLGpuAttributes): At
|
|
|
20
21
|
export declare function buildHttpOptions(httpOptions?: SDLHttpOptions): ServiceExposeHTTPOptions;
|
|
21
22
|
export declare function buildStorageAttributes(attributes?: StorageAttributesValidation): Attribute[];
|
|
22
23
|
export declare function parseServiceProto(proto?: string): string;
|
|
24
|
+
export interface ExposeSortKey {
|
|
25
|
+
service: string;
|
|
26
|
+
port: number;
|
|
27
|
+
proto: string;
|
|
28
|
+
global: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function compareExposes(a: ExposeSortKey, b: ExposeSortKey): number;
|
|
31
|
+
export declare function sortedExposeTargets(service: SDLService): {
|
|
32
|
+
expose: SDLExpose;
|
|
33
|
+
to: SDLExposeTo;
|
|
34
|
+
}[];
|
|
23
35
|
export declare function buildServiceEndpoints(service: SDLService, endpointSequenceNumbers: Record<string, number>): Endpoint[];
|
|
24
36
|
export declare function parseCpuUnits(cpu: SDLCompute["resources"]["cpu"]): bigint;
|
|
25
37
|
export declare function parseMemoryBytes(memory: SDLCompute["resources"]["memory"]): bigint;
|
|
@@ -63,8 +63,18 @@ export interface SDLInput {
|
|
|
63
63
|
[k: string]: {
|
|
64
64
|
resources: {
|
|
65
65
|
cpu: {
|
|
66
|
+
/**
|
|
67
|
+
* CPU attributes. `arch` is the only recognised key, and it
|
|
68
|
+
* is optional: omitting it leaves the group spec with zero
|
|
69
|
+
* CPU attributes, which is what every pre-arch deployment
|
|
70
|
+
* already has. There is deliberately no default — writing an
|
|
71
|
+
* implicit `amd64` would change the group spec of every
|
|
72
|
+
* existing deployment and break bid matching.
|
|
73
|
+
* Mirrors `v2CPUAttributes.UnmarshalYAML` in go/sdl/cpu.go.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
66
76
|
attributes?: {
|
|
67
|
-
|
|
77
|
+
arch?: "amd64" | "arm64";
|
|
68
78
|
};
|
|
69
79
|
units: string | number;
|
|
70
80
|
};
|
|
@@ -525,6 +535,14 @@ declare var schema: {
|
|
|
525
535
|
additionalProperties: boolean;
|
|
526
536
|
properties: {
|
|
527
537
|
attributes: {
|
|
538
|
+
additionalProperties: boolean;
|
|
539
|
+
description: string;
|
|
540
|
+
properties: {
|
|
541
|
+
arch: {
|
|
542
|
+
enum: string[];
|
|
543
|
+
type: string;
|
|
544
|
+
};
|
|
545
|
+
};
|
|
528
546
|
type: string;
|
|
529
547
|
};
|
|
530
548
|
units: {
|