@akashnetwork/chain-sdk 1.0.0-alpha.30 → 1.0.0-alpha.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/cjs/bla.cjs +7 -0
  2. package/dist/cjs/bla.cjs.map +7 -0
  3. package/dist/cjs/generated/createNodeSDK.cjs +95 -76
  4. package/dist/cjs/generated/createNodeSDK.cjs.map +2 -2
  5. package/dist/cjs/generated/protos/akash/bme/v1/params.cjs +18 -2
  6. package/dist/cjs/generated/protos/akash/bme/v1/params.cjs.map +2 -2
  7. package/dist/cjs/generated/protos/akash/bme/v1/types.cjs +65 -2
  8. package/dist/cjs/generated/protos/akash/bme/v1/types.cjs.map +2 -2
  9. package/dist/cjs/generated/protos/akash/deployment/v1/deployment.cjs +68 -2
  10. package/dist/cjs/generated/protos/akash/deployment/v1/deployment.cjs.map +2 -2
  11. package/dist/cjs/generated/protos/akash/deployment/v1beta4/deploymentmsg.cjs +17 -2
  12. package/dist/cjs/generated/protos/akash/deployment/v1beta4/deploymentmsg.cjs.map +2 -2
  13. package/dist/cjs/generated/protos/akash/discovery/v1/akash.cjs +64 -2
  14. package/dist/cjs/generated/protos/akash/discovery/v1/akash.cjs.map +2 -2
  15. package/dist/cjs/generated/protos/akash/discovery/v1/client_info.cjs +150 -1
  16. package/dist/cjs/generated/protos/akash/discovery/v1/client_info.cjs.map +2 -2
  17. package/dist/cjs/generated/protos/akash/discovery/v1/service.cjs +115 -0
  18. package/dist/cjs/generated/protos/akash/discovery/v1/service.cjs.map +7 -0
  19. package/dist/cjs/generated/protos/akash/discovery/v1/service_akash.cjs +39 -0
  20. package/dist/cjs/generated/protos/akash/discovery/v1/service_akash.cjs.map +7 -0
  21. package/dist/cjs/generated/protos/akash/market/v1/event.cjs +93 -0
  22. package/dist/cjs/generated/protos/akash/market/v1/event.cjs.map +3 -3
  23. package/dist/cjs/generated/protos/akash/market/v1/lease.cjs +32 -2
  24. package/dist/cjs/generated/protos/akash/market/v1/lease.cjs.map +2 -2
  25. package/dist/cjs/generated/protos/akash/market/v1/reclamation.cjs +138 -0
  26. package/dist/cjs/generated/protos/akash/market/v1/reclamation.cjs.map +7 -0
  27. package/dist/cjs/generated/protos/akash/market/v1beta5/bid.cjs +25 -2
  28. package/dist/cjs/generated/protos/akash/market/v1beta5/bid.cjs.map +2 -2
  29. package/dist/cjs/generated/protos/akash/market/v1beta5/bidmsg.cjs +18 -2
  30. package/dist/cjs/generated/protos/akash/market/v1beta5/bidmsg.cjs.map +2 -2
  31. package/dist/cjs/generated/protos/akash/market/v1beta5/leasemsg.cjs +103 -0
  32. package/dist/cjs/generated/protos/akash/market/v1beta5/leasemsg.cjs.map +2 -2
  33. package/dist/cjs/generated/protos/akash/market/v1beta5/order.cjs +18 -2
  34. package/dist/cjs/generated/protos/akash/market/v1beta5/order.cjs.map +2 -2
  35. package/dist/cjs/generated/protos/akash/market/v1beta5/params.cjs +39 -2
  36. package/dist/cjs/generated/protos/akash/market/v1beta5/params.cjs.map +2 -2
  37. package/dist/cjs/generated/protos/akash/market/v1beta5/service_akash.cjs +8 -0
  38. package/dist/cjs/generated/protos/akash/market/v1beta5/service_akash.cjs.map +2 -2
  39. package/dist/cjs/generated/protos/index.akash.v1.cjs +9 -0
  40. package/dist/cjs/generated/protos/index.akash.v1.cjs.map +2 -2
  41. package/dist/cjs/generated/protos/index.akash.v1beta5.cjs +2 -0
  42. package/dist/cjs/generated/protos/index.akash.v1beta5.cjs.map +2 -2
  43. package/dist/cjs/network/config.cjs +3 -7
  44. package/dist/cjs/network/config.cjs.map +2 -2
  45. package/dist/cjs/sdk/provider/auth/jwt/types.cjs.map +1 -1
  46. package/dist/cjs/sdk/provider/auth/jwt/validateJwtPayload.cjs +1058 -1259
  47. package/dist/cjs/sdk/provider/auth/jwt/validateJwtPayload.cjs.map +2 -2
  48. package/dist/cjs/sdl/index.cjs +0 -4
  49. package/dist/cjs/sdl/index.cjs.map +2 -2
  50. package/dist/cjs/sdl/manifest/generateManifest.cjs +2 -3
  51. package/dist/cjs/sdl/manifest/generateManifest.cjs.map +2 -2
  52. package/dist/cjs/sdl/validateSDL/validateSDL.cjs +4 -36
  53. package/dist/cjs/sdl/validateSDL/validateSDL.cjs.map +2 -2
  54. package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +49 -50
  55. package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
  56. package/dist/cjs/test.cjs +2 -0
  57. package/dist/cjs/test.cjs.map +7 -0
  58. package/dist/esm/{chunk-JAPXWQ3D.js → chunk-7XWZXYD2.js} +2 -2
  59. package/dist/esm/{chunk-5RTSSO7K.js → chunk-B7H4H62Z.js} +3 -3
  60. package/dist/esm/chunk-E4KEMLL4.js +413 -0
  61. package/dist/esm/chunk-E4KEMLL4.js.map +7 -0
  62. package/dist/esm/{chunk-H5WUFEMM.js → chunk-EG6EVQGI.js} +23 -5
  63. package/dist/esm/chunk-EG6EVQGI.js.map +7 -0
  64. package/dist/esm/{chunk-5YIS3XNX.js → chunk-EXKSXOV2.js} +2 -2
  65. package/dist/esm/{chunk-TXQ2BR6G.js → chunk-IFAXXMON.js} +126 -5
  66. package/dist/esm/chunk-IFAXXMON.js.map +7 -0
  67. package/dist/esm/chunk-IMR6WS6F.js +93 -0
  68. package/dist/esm/chunk-IMR6WS6F.js.map +7 -0
  69. package/dist/esm/{chunk-LKYHOABO.js → chunk-IPOIF4A2.js} +170 -37
  70. package/dist/esm/chunk-IPOIF4A2.js.map +7 -0
  71. package/dist/esm/{chunk-PFJG3V3A.js → chunk-ITPLCNJB.js} +84 -5
  72. package/dist/esm/chunk-ITPLCNJB.js.map +7 -0
  73. package/dist/esm/{chunk-YSOG5YCI.js → chunk-KM336UKV.js} +1203 -2125
  74. package/dist/esm/chunk-KM336UKV.js.map +7 -0
  75. package/dist/esm/{chunk-KFWTFROT.js → chunk-M5SAGBGR.js} +42 -3
  76. package/dist/esm/chunk-M5SAGBGR.js.map +7 -0
  77. package/dist/esm/{chunk-OHAEKHAC.js → chunk-NPGGO3JN.js} +37 -55
  78. package/dist/esm/chunk-NPGGO3JN.js.map +7 -0
  79. package/dist/esm/{chunk-HDAINZXA.js → chunk-RKOP2GYL.js} +50 -7
  80. package/dist/esm/chunk-RKOP2GYL.js.map +7 -0
  81. package/dist/esm/{chunk-VZZ4GN23.js → chunk-T5PKT4I6.js} +6 -4
  82. package/dist/esm/{chunk-VZZ4GN23.js.map → chunk-T5PKT4I6.js.map} +1 -1
  83. package/dist/esm/{chunk-B4MMOAAO.js → chunk-WI3EWXXI.js} +2 -2
  84. package/dist/esm/generated/protos/index.akash.v1.js +180 -182
  85. package/dist/esm/generated/protos/index.akash.v1.js.map +4 -4
  86. package/dist/esm/generated/protos/index.akash.v1beta1.js +7 -7
  87. package/dist/esm/generated/protos/index.akash.v1beta4.js +6 -4
  88. package/dist/esm/generated/protos/index.akash.v1beta5.js +10 -4
  89. package/dist/esm/generated/protos/index.akash.v1beta5.js.map +1 -1
  90. package/dist/esm/generated/protos/index.akash.v2.js +6 -6
  91. package/dist/esm/generated/protos/index.provider.akash.v1.js +16 -15
  92. package/dist/esm/index.js +10 -12
  93. package/dist/esm/index.web.js +9 -11
  94. package/dist/esm/{query_akash-3UBRLLRZ.js → query_akash-3IY2DKPB.js} +3 -3
  95. package/dist/esm/{query_akash-CKZRI7R6.js → query_akash-OKZLG4MG.js} +5 -3
  96. package/dist/esm/{query_akash-CKZRI7R6.js.map → query_akash-OKZLG4MG.js.map} +1 -1
  97. package/dist/esm/{query_akash-3LAHGVQJ.js → query_akash-ZITEPCYB.js} +6 -4
  98. package/dist/esm/{query_akash-3LAHGVQJ.js.map → query_akash-ZITEPCYB.js.map} +1 -1
  99. package/dist/esm/{service_akash-UFTUJDPM.js → service_akash-2CH5FJ4J.js} +3 -3
  100. package/dist/esm/{service_akash-5JSE44LJ.js → service_akash-BLDT6YCO.js} +5 -3
  101. package/dist/esm/{service_akash-5JSE44LJ.js.map → service_akash-BLDT6YCO.js.map} +1 -1
  102. package/dist/esm/{service_akash-QEN5EQUY.js → service_akash-DZETPXWM.js} +15 -4
  103. package/dist/esm/service_akash-DZETPXWM.js.map +7 -0
  104. package/dist/esm/service_akash-K7FWCKUQ.js +25 -0
  105. package/dist/esm/service_akash-K7FWCKUQ.js.map +7 -0
  106. package/dist/esm/{service_akash-FI6WXDZP.js → service_akash-VOFSDZEK.js} +4 -3
  107. package/dist/esm/{service_akash-FI6WXDZP.js.map → service_akash-VOFSDZEK.js.map} +1 -1
  108. package/dist/sdl-schema.yaml +1 -1
  109. package/dist/tsconfig.build.tsbuildinfo +1 -1
  110. package/dist/types/bla.d.ts +1 -0
  111. package/dist/types/generated/createNodeSDK.d.ts +30 -0
  112. package/dist/types/generated/protos/akash/bme/v1/params.d.ts +5 -0
  113. package/dist/types/generated/protos/akash/bme/v1/types.d.ts +19 -1
  114. package/dist/types/generated/protos/akash/deployment/v1/deployment.d.ts +15 -0
  115. package/dist/types/generated/protos/akash/deployment/v1beta4/deploymentmsg.d.ts +6 -1
  116. package/dist/types/generated/protos/akash/discovery/v1/akash.d.ts +16 -2
  117. package/dist/types/generated/protos/akash/discovery/v1/client_info.d.ts +18 -0
  118. package/dist/types/generated/protos/akash/discovery/v1/service.d.ts +12 -0
  119. package/dist/types/generated/protos/akash/discovery/v1/service_akash.d.ts +13 -0
  120. package/dist/types/generated/protos/akash/market/v1/event.d.ts +11 -0
  121. package/dist/types/generated/protos/akash/market/v1/lease.d.ts +8 -0
  122. package/dist/types/generated/protos/akash/market/v1/reclamation.d.ts +22 -0
  123. package/dist/types/generated/protos/akash/market/v1beta5/bid.d.ts +3 -0
  124. package/dist/types/generated/protos/akash/market/v1beta5/bidmsg.d.ts +7 -0
  125. package/dist/types/generated/protos/akash/market/v1beta5/leasemsg.d.ts +12 -0
  126. package/dist/types/generated/protos/akash/market/v1beta5/order.d.ts +6 -0
  127. package/dist/types/generated/protos/akash/market/v1beta5/params.d.ts +5 -0
  128. package/dist/types/generated/protos/akash/market/v1beta5/service_akash.d.ts +7 -1
  129. package/dist/types/generated/protos/index.akash.v1.d.ts +5 -3
  130. package/dist/types/generated/protos/index.akash.v1beta5.d.ts +1 -1
  131. package/dist/types/network/config.d.ts +4 -5
  132. package/dist/types/sdk/chain/createChainNodeSDK.d.ts +6 -0
  133. package/dist/types/sdk/chain/createChainNodeWebSDK.d.ts +6 -0
  134. package/dist/types/sdk/chain/helpers.d.ts +1 -1
  135. package/dist/types/sdk/provider/auth/jwt/types.d.ts +4 -58
  136. package/dist/types/sdk/provider/auth/jwt/validateJwtPayload.d.ts +273 -225
  137. package/dist/types/sdl/index.d.ts +0 -2
  138. package/dist/types/sdl/manifest/generateManifest.d.ts +1 -2
  139. package/dist/types/sdl/validateSDL/validateSDL.d.ts +2 -3
  140. package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +5 -5
  141. package/dist/types/test.d.ts +1 -0
  142. package/package.json +13 -15
  143. package/dist/cjs/sdl/SDL/SDL.cjs +0 -718
  144. package/dist/cjs/sdl/SDL/SDL.cjs.map +0 -7
  145. package/dist/cjs/sdl/SDL/SdlValidationError.cjs +0 -46
  146. package/dist/cjs/sdl/SDL/SdlValidationError.cjs.map +0 -7
  147. package/dist/esm/chunk-H5WUFEMM.js.map +0 -7
  148. package/dist/esm/chunk-HDAINZXA.js.map +0 -7
  149. package/dist/esm/chunk-KFWTFROT.js.map +0 -7
  150. package/dist/esm/chunk-LKYHOABO.js.map +0 -7
  151. package/dist/esm/chunk-OHAEKHAC.js.map +0 -7
  152. package/dist/esm/chunk-PFJG3V3A.js.map +0 -7
  153. package/dist/esm/chunk-TXQ2BR6G.js.map +0 -7
  154. package/dist/esm/chunk-YSOG5YCI.js.map +0 -7
  155. package/dist/esm/service_akash-QEN5EQUY.js.map +0 -7
  156. package/dist/types/sdl/SDL/SDL.d.ts +0 -439
  157. package/dist/types/sdl/SDL/SdlValidationError.d.ts +0 -18
  158. /package/dist/esm/{chunk-JAPXWQ3D.js.map → chunk-7XWZXYD2.js.map} +0 -0
  159. /package/dist/esm/{chunk-5RTSSO7K.js.map → chunk-B7H4H62Z.js.map} +0 -0
  160. /package/dist/esm/{chunk-5YIS3XNX.js.map → chunk-EXKSXOV2.js.map} +0 -0
  161. /package/dist/esm/{chunk-B4MMOAAO.js.map → chunk-WI3EWXXI.js.map} +0 -0
  162. /package/dist/esm/{query_akash-3UBRLLRZ.js.map → query_akash-3IY2DKPB.js.map} +0 -0
  163. /package/dist/esm/{service_akash-UFTUJDPM.js.map → service_akash-2CH5FJ4J.js.map} +0 -0
@@ -1,63 +1,9 @@
1
- export type AccessScope = "send-manifest" | "get-manifest" | "logs" | "shell" | "events" | "status" | "restart" | "hostname-migrate" | "ip-migrate";
2
- export interface JwtTokenPayload {
3
- /** Version of the JWT specification (currently fixed at v1). */
4
- version: "v1";
5
- /** Akash address of the lease(s) owner, e.g., akash1abcd... (44 characters) */
6
- iss: string;
7
- /** Token issuance timestamp as Unix time (seconds since 1970-01-01T00:00:00Z). Should be <= exp and >= nbf. */
8
- iat: number;
9
- /** Not valid before timestamp as Unix time (seconds since 1970-01-01T00:00:00Z). Should be <= iat. */
10
- nbf: number;
11
- /** Expiration timestamp as Unix time (seconds since 1970-01-01T00:00:00Z). Should be >= iat. */
12
- exp: number;
13
- /** Unique identifier for the JWT, used to prevent token reuse. */
14
- jti?: string;
15
- /** Access level for the lease: 'full' for unrestricted access to all actions, 'granular' for provider-specific permissions. */
16
- leases: FullAccess | ScopedAccess | GranularAccess;
17
- }
18
- interface FullAccess {
19
- access: "full";
20
- }
21
- interface ScopedAccess {
22
- access: "scoped";
23
- /** Global list of permitted actions across all owned leases (no duplicates). */
24
- scope: AccessScope[];
25
- }
26
- interface GranularAccess {
27
- access: "granular";
28
- /** Defines provider-specific permissions. */
29
- permissions: LeasePermission[];
30
- }
1
+ import type { ActionScope as GlobalPermissionScopes, JwtTokenPayload, LeasePermissionFull, LeasePermissionGranular, LeasePermissionScoped } from "./validateJwtPayload.ts";
2
+ export type AccessScope = GlobalPermissionScopes[number];
31
3
  export interface JWTHeader {
32
4
  alg: string;
33
5
  typ: string;
34
6
  }
35
- export type LeasePermission = FullAccessPermission | ScopedAccessPermission | GranularAccessPermission;
36
- interface BaseLeasePermission {
37
- /** Provider address, e.g., akash1xyz... (44 characters). */
38
- provider: string;
39
- }
40
- interface FullAccessPermission extends BaseLeasePermission {
41
- access: "full";
42
- }
43
- interface ScopedAccessPermission extends BaseLeasePermission {
44
- access: "scoped";
45
- scope: AccessScope[];
46
- }
47
- interface GranularAccessPermission extends BaseLeasePermission {
48
- access: "granular";
49
- deployments: Array<{
50
- /** Deployment sequence number. */
51
- dseq: number;
52
- /** Deployment-level list of permitted actions (no duplicates). */
53
- scope: AccessScope[];
54
- /** Group sequence number (requires dseq). */
55
- gseq?: number;
56
- /** Order sequence number (requires dseq and gseq). */
57
- oseq?: number;
58
- /** List of service names (requires dseq). */
59
- services?: string[];
60
- }>;
61
- }
7
+ export type LeasePermission = LeasePermissionFull | LeasePermissionScoped | LeasePermissionGranular;
62
8
  export type AnyRecord = Record<string, any>;
63
- export {};
9
+ export type { JwtTokenPayload, };
@@ -1,3 +1,140 @@
1
+ /**
2
+ * Access level for the lease: 'full' for unrestricted access to all actions, 'scoped' for specific actions across all provider leases, 'granular' for provider-specific permissions.
3
+ */
4
+ export type Leases = LeasesFull | LeasesScoped | LeasesGranular;
5
+ /**
6
+ * Global list of permitted actions across all owned leases (no duplicates).
7
+ *
8
+ * @minItems 1
9
+ */
10
+ export type ActionScope = ("send-manifest" | "get-manifest" | "logs" | "shell" | "events" | "status" | "restart" | "hostname-migrate" | "ip-migrate")[];
11
+ /**
12
+ * Provider-level access: 'full' for all actions, 'scoped' for specific actions across all provider leases, 'granular' for deployment-specific actions.
13
+ */
14
+ export type LeasePermission = LeasePermissionFull | LeasePermissionScoped | LeasePermissionGranular;
15
+ /**
16
+ * Provider-level list of permitted actions (no duplicates).
17
+ *
18
+ * @minItems 1
19
+ */
20
+ export type ActionScope1 = ("send-manifest" | "get-manifest" | "logs" | "shell" | "events" | "status" | "restart" | "hostname-migrate" | "ip-migrate")[];
21
+ /**
22
+ * Deployment-level list of permitted actions (no duplicates).
23
+ *
24
+ * @minItems 1
25
+ */
26
+ export type ActionScope2 = ("send-manifest" | "get-manifest" | "logs" | "shell" | "events" | "status" | "restart" | "hostname-migrate" | "ip-migrate")[];
27
+ /**
28
+ * JSON Schema for JWT used in the Akash Provider API.
29
+ */
30
+ export interface JwtTokenPayload {
31
+ /**
32
+ * Akash address of the lease(s) owner, e.g., akash1abcd... (44 characters)
33
+ */
34
+ iss: string;
35
+ /**
36
+ * Token issuance timestamp as Unix time (seconds since 1970-01-01T00:00:00Z). Should be <= exp and >= nbf.
37
+ */
38
+ iat: number;
39
+ /**
40
+ * Not valid before timestamp as Unix time (seconds since 1970-01-01T00:00:00Z). Should be <= iat.
41
+ */
42
+ nbf: number;
43
+ /**
44
+ * Expiration timestamp as Unix time (seconds since 1970-01-01T00:00:00Z). Should be >= iat.
45
+ */
46
+ exp: number;
47
+ /**
48
+ * Unique identifier for the JWT, used to prevent token reuse.
49
+ */
50
+ jti?: string;
51
+ /**
52
+ * Version of the JWT specification (currently fixed at v1).
53
+ */
54
+ version: "v1";
55
+ leases: Leases;
56
+ }
57
+ export interface LeasesFull {
58
+ /**
59
+ * Unrestricted access to all actions on all leases.
60
+ */
61
+ access: "full";
62
+ }
63
+ export interface LeasesScoped {
64
+ /**
65
+ * Specific actions across all provider leases.
66
+ */
67
+ access: "scoped";
68
+ scope: ActionScope;
69
+ }
70
+ export interface LeasesGranular {
71
+ /**
72
+ * Provider-specific permissions.
73
+ */
74
+ access: "granular";
75
+ /**
76
+ * Defines provider-specific permissions. The provider address must be unique across all permissions entries.
77
+ *
78
+ * @minItems 1
79
+ */
80
+ permissions: LeasePermission[];
81
+ }
82
+ export interface LeasePermissionFull {
83
+ /**
84
+ * Provider address, e.g., akash1xyz... (44 characters).
85
+ */
86
+ provider: string;
87
+ /**
88
+ * Full access to all actions on this provider's leases.
89
+ */
90
+ access: "full";
91
+ }
92
+ export interface LeasePermissionScoped {
93
+ /**
94
+ * Provider address, e.g., akash1xyz... (44 characters).
95
+ */
96
+ provider: string;
97
+ /**
98
+ * Specific actions across all this provider's leases.
99
+ */
100
+ access: "scoped";
101
+ scope: ActionScope1;
102
+ }
103
+ export interface LeasePermissionGranular {
104
+ /**
105
+ * Provider address, e.g., akash1xyz... (44 characters).
106
+ */
107
+ provider: string;
108
+ /**
109
+ * Deployment-specific actions.
110
+ */
111
+ access: "granular";
112
+ /**
113
+ * @minItems 1
114
+ */
115
+ deployments: LeasePermissionDeployment[];
116
+ }
117
+ export interface LeasePermissionDeployment {
118
+ /**
119
+ * Deployment sequence number.
120
+ */
121
+ dseq: number;
122
+ scope: ActionScope2;
123
+ /**
124
+ * Group sequence number (requires dseq).
125
+ */
126
+ gseq?: number;
127
+ /**
128
+ * Order sequence number (requires dseq and gseq).
129
+ */
130
+ oseq?: number;
131
+ /**
132
+ * List of service names (requires dseq).
133
+ *
134
+ * @minItems 1
135
+ */
136
+ services: string[];
137
+ }
1
138
  declare var validate: typeof validate10;
2
139
  declare var stdin_default: typeof validate10;
3
140
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
@@ -14,8 +151,7 @@ declare var schema: {
14
151
  required: string[];
15
152
  properties: {
16
153
  iss: {
17
- type: string;
18
- pattern: string;
154
+ $ref: string;
19
155
  description: string;
20
156
  };
21
157
  iat: {
@@ -44,23 +180,63 @@ declare var schema: {
44
180
  description: string;
45
181
  };
46
182
  leases: {
183
+ $ref: string;
184
+ };
185
+ };
186
+ definitions: {
187
+ "akash-address": {
188
+ type: string;
189
+ pattern: string;
190
+ };
191
+ "action-scope": {
192
+ type: string;
193
+ minItems: number;
194
+ uniqueItems: boolean;
195
+ items: {
196
+ type: string;
197
+ enum: string[];
198
+ };
199
+ };
200
+ leases: {
201
+ type: string;
202
+ description: string;
203
+ oneOf: {
204
+ $ref: string;
205
+ }[];
206
+ };
207
+ "leases-full": {
47
208
  type: string;
48
209
  additionalProperties: boolean;
49
210
  required: string[];
50
211
  properties: {
51
212
  access: {
52
- type: string;
53
- enum: string[];
213
+ const: string;
214
+ description: string;
215
+ };
216
+ };
217
+ };
218
+ "leases-scoped": {
219
+ type: string;
220
+ additionalProperties: boolean;
221
+ required: string[];
222
+ properties: {
223
+ access: {
224
+ const: string;
54
225
  description: string;
55
226
  };
56
227
  scope: {
57
- type: string;
58
- minItems: number;
59
- uniqueItems: boolean;
60
- items: {
61
- type: string;
62
- enum: string[];
63
- };
228
+ $ref: string;
229
+ description: string;
230
+ };
231
+ };
232
+ };
233
+ "leases-granular": {
234
+ type: string;
235
+ additionalProperties: boolean;
236
+ required: string[];
237
+ properties: {
238
+ access: {
239
+ const: string;
64
240
  description: string;
65
241
  };
66
242
  permissions: {
@@ -68,241 +244,113 @@ declare var schema: {
68
244
  description: string;
69
245
  minItems: number;
70
246
  items: {
71
- type: string;
72
- additionalProperties: boolean;
73
- required: string[];
74
- properties: {
75
- provider: {
76
- type: string;
77
- pattern: string;
78
- description: string;
79
- };
80
- access: {
81
- type: string;
82
- enum: string[];
83
- description: string;
84
- };
85
- scope: {
86
- type: string;
87
- minItems: number;
88
- uniqueItems: boolean;
89
- items: {
90
- type: string;
91
- enum: string[];
92
- };
93
- description: string;
94
- };
95
- deployments: {
96
- type: string;
97
- minItems: number;
98
- items: {
99
- type: string;
100
- additionalProperties: boolean;
101
- required: string[];
102
- properties: {
103
- dseq: {
104
- type: string;
105
- minimum: number;
106
- description: string;
107
- };
108
- scope: {
109
- type: string;
110
- minItems: number;
111
- uniqueItems: boolean;
112
- items: {
113
- type: string;
114
- enum: string[];
115
- };
116
- description: string;
117
- };
118
- gseq: {
119
- type: string;
120
- minimum: number;
121
- description: string;
122
- };
123
- oseq: {
124
- type: string;
125
- minimum: number;
126
- description: string;
127
- };
128
- services: {
129
- type: string;
130
- minItems: number;
131
- uniqueItems: boolean;
132
- items: {
133
- type: string;
134
- minLength: number;
135
- };
136
- description: string;
137
- };
138
- };
139
- dependencies: {
140
- gseq: string[];
141
- oseq: string[];
142
- services: string[];
143
- };
144
- };
145
- };
146
- };
147
- allOf: ({
148
- if: {
149
- properties: {
150
- access: {
151
- const: string;
152
- };
153
- };
154
- };
155
- then: {
156
- required: string[];
157
- properties: {
158
- scope: {
159
- minItems: number;
160
- };
161
- deployments: boolean;
162
- };
163
- };
164
- } | {
165
- if: {
166
- properties: {
167
- access: {
168
- const: string;
169
- };
170
- };
171
- };
172
- then: {
173
- required: string[];
174
- properties: {
175
- scope: boolean;
176
- deployments?: undefined;
177
- };
178
- };
179
- } | {
180
- if: {
181
- properties: {
182
- access: {
183
- const: string;
184
- };
185
- };
186
- };
187
- then: {
188
- properties: {
189
- scope: boolean;
190
- deployments: boolean;
191
- };
192
- required?: undefined;
193
- };
194
- })[];
247
+ $ref: string;
195
248
  };
196
249
  };
197
250
  };
198
- allOf: ({
199
- if: {
200
- properties: {
201
- access: {
202
- const: string;
203
- };
204
- };
205
- required?: undefined;
206
- };
207
- then: {
208
- properties: {
209
- permissions: boolean;
210
- scope: boolean;
211
- };
212
- required?: undefined;
213
- };
214
- } | {
215
- if: {
216
- properties: {
217
- access: {
218
- const: string;
219
- };
220
- };
221
- required?: undefined;
222
- };
223
- then: {
224
- required: string[];
225
- properties: {
226
- scope: {
227
- minItems: number;
228
- };
229
- permissions: boolean;
230
- };
231
- };
232
- } | {
233
- if: {
234
- properties: {
235
- access: {
236
- const: string;
237
- };
238
- };
239
- required: string[];
240
- };
241
- then: {
242
- required: string[];
243
- properties: {
244
- scope: boolean;
245
- permissions?: undefined;
246
- };
247
- };
248
- })[];
249
251
  };
250
- };
251
- allOf: ({
252
- if: {
252
+ "lease-permission": {
253
+ type: string;
254
+ description: string;
255
+ oneOf: {
256
+ $ref: string;
257
+ }[];
258
+ };
259
+ "lease-permission-full": {
260
+ type: string;
261
+ additionalProperties: boolean;
262
+ required: string[];
253
263
  properties: {
254
- leases: {
255
- properties: {
256
- access: {
257
- const: string;
258
- };
259
- permissions?: undefined;
260
- };
261
- required: string[];
264
+ provider: {
265
+ $ref: string;
266
+ description: string;
267
+ };
268
+ access: {
269
+ const: string;
270
+ description: string;
262
271
  };
263
272
  };
264
- required: string[];
265
273
  };
266
- then: {
274
+ "lease-permission-scoped": {
275
+ type: string;
276
+ additionalProperties: boolean;
277
+ required: string[];
267
278
  properties: {
268
- leases: {
269
- required: string[];
270
- properties: {
271
- scope: boolean;
272
- access?: undefined;
273
- };
279
+ provider: {
280
+ $ref: string;
281
+ description: string;
282
+ };
283
+ access: {
284
+ const: string;
285
+ description: string;
286
+ };
287
+ scope: {
288
+ $ref: string;
289
+ description: string;
274
290
  };
275
291
  };
276
292
  };
277
- } | {
278
- if: {
293
+ "lease-permission-granular": {
294
+ type: string;
295
+ additionalProperties: boolean;
296
+ required: string[];
279
297
  properties: {
280
- leases: {
281
- properties: {
282
- permissions: {
283
- type: string;
284
- minItems: number;
285
- };
286
- access?: undefined;
298
+ provider: {
299
+ $ref: string;
300
+ description: string;
301
+ };
302
+ access: {
303
+ const: string;
304
+ description: string;
305
+ };
306
+ deployments: {
307
+ type: string;
308
+ minItems: number;
309
+ items: {
310
+ $ref: string;
287
311
  };
288
- required: string[];
289
312
  };
290
313
  };
291
- required: string[];
292
314
  };
293
- then: {
315
+ "lease-permission-deployment": {
316
+ type: string;
317
+ additionalProperties: boolean;
318
+ required: string[];
294
319
  properties: {
295
- leases: {
296
- properties: {
297
- access: {
298
- const: string;
299
- };
300
- scope?: undefined;
320
+ dseq: {
321
+ type: string;
322
+ minimum: number;
323
+ description: string;
324
+ };
325
+ scope: {
326
+ $ref: string;
327
+ description: string;
328
+ };
329
+ gseq: {
330
+ type: string;
331
+ minimum: number;
332
+ description: string;
333
+ };
334
+ oseq: {
335
+ type: string;
336
+ minimum: number;
337
+ description: string;
338
+ };
339
+ services: {
340
+ type: string;
341
+ minItems: number;
342
+ uniqueItems: boolean;
343
+ items: {
344
+ type: string;
345
+ minLength: number;
301
346
  };
302
- required: string[];
347
+ description: string;
303
348
  };
304
349
  };
350
+ dependencies: {
351
+ oseq: string[];
352
+ };
305
353
  };
306
- })[];
354
+ };
307
355
  };
308
356
  export { stdin_default as default, schema, validate };
@@ -22,12 +22,10 @@
22
22
  * const manifest = sdl.manifest();
23
23
  * ```
24
24
  */
25
- export { SDL } from "./SDL/SDL.ts";
26
25
  export { validateSDL, validationSDLSchema } from "./validateSDL/validateSDL.ts";
27
26
  export type { SDLInput } from "./validateSDL/validateSDLInput.ts";
28
27
  export type { ValidationError } from "../utils/jsonSchemaValidation.ts";
29
28
  export * from "./types.ts";
30
- export { SdlValidationError } from "./SDL/SdlValidationError.ts";
31
29
  export { generateManifest } from "./manifest/generateManifest.ts";
32
30
  export type { Manifest, GenerateManifestResult } from "./manifest/generateManifest.ts";
33
31
  export { generateManifestVersion, manifestToSortedJSON } from "./manifest/generateManifestVersion.ts";
@@ -1,6 +1,5 @@
1
1
  import { GroupSpec } from "../../generated/protos/akash/deployment/v1beta4/groupspec.ts";
2
2
  import { Group } from "../../generated/protos/akash/manifest/v2beta3/group.ts";
3
- import type { NetworkId } from "../../network/types.ts";
4
3
  import type { ValidationError } from "../../utils/jsonSchemaValidation.ts";
5
4
  import type { SDLInput } from "../validateSDL/validateSDL.ts";
6
5
  export interface GenerateManifestOkResult {
@@ -15,4 +14,4 @@ export type GenerateManifestResult = {
15
14
  ok: true;
16
15
  value: GenerateManifestOkResult;
17
16
  };
18
- export declare function generateManifest(sdl: SDLInput, networkId?: NetworkId): GenerateManifestResult;
17
+ export declare function generateManifest(sdl: SDLInput): GenerateManifestResult;
@@ -1,6 +1,5 @@
1
- import { type NetworkId } from "../../network/index.ts";
2
1
  import type { ValidationError } from "../../utils/jsonSchemaValidation.ts";
3
2
  import { schema as validationSDLSchema, type SDLInput } from "./validateSDLInput.ts";
4
- export type { SDLInput };
5
3
  export { validationSDLSchema };
6
- export declare function validateSDL(sdl: SDLInput, networkId: NetworkId): undefined | ValidationError[];
4
+ export type { SDLInput };
5
+ export declare function validateSDL(sdl: SDLInput): undefined | ValidationError[];
@@ -184,11 +184,11 @@ export interface StorageRamClassMustNotBePersistent {
184
184
  */
185
185
  export interface PriceCoin {
186
186
  amount: string | number;
187
- denom: string;
187
+ denom: "uakt" | "uact";
188
188
  }
189
- declare var validate: typeof validate11;
190
- declare var stdin_default: typeof validate11;
191
- declare function validate11(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
189
+ declare var validate: typeof validate27;
190
+ declare var stdin_default: typeof validate27;
191
+ declare function validate27(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
192
192
  instancePath?: string | undefined;
193
193
  rootData?: any;
194
194
  }): boolean;
@@ -238,7 +238,7 @@ declare var schema: {
238
238
  })[];
239
239
  };
240
240
  denom: {
241
- pattern: string;
241
+ enum: string[];
242
242
  type: string;
243
243
  };
244
244
  };
@@ -0,0 +1 @@
1
+ export {};