@silvana-one/api 0.1.0 → 0.1.2
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/node/client/client.gen.d.ts +12 -0
- package/dist/node/client/client.gen.js +6 -0
- package/dist/node/client/client.gen.js.map +1 -0
- package/dist/node/client/sdk.gen.d.ts +53 -26
- package/dist/node/client/sdk.gen.js +322 -48
- package/dist/node/client/sdk.gen.js.map +1 -1
- package/dist/node/client/types.gen.d.ts +1815 -621
- package/dist/node/config.js +3 -3
- package/dist/node/config.js.map +1 -1
- package/dist/node/index.cjs +319 -51
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/client/client.gen.d.ts +12 -0
- package/dist/web/client/client.gen.js +6 -0
- package/dist/web/client/client.gen.js.map +1 -0
- package/dist/web/client/sdk.gen.d.ts +53 -26
- package/dist/web/client/sdk.gen.js +322 -48
- package/dist/web/client/sdk.gen.js.map +1 -1
- package/dist/web/client/types.gen.d.ts +1815 -621
- package/dist/web/config.js +3 -3
- package/dist/web/config.js.map +1 -1
- package/package.json +4 -5
- package/src/client/client.gen.ts +18 -0
- package/src/client/sdk.gen.ts +362 -72
- package/src/client/types.gen.ts +1829 -584
- package/src/config.ts +3 -3
package/dist/web/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { client } from "./client/
|
|
1
|
+
import { client } from "./client/client.gen.js";
|
|
2
2
|
export function config({ apiKey, chain, throwOnError, }) {
|
|
3
3
|
client.setConfig({
|
|
4
4
|
headers: {
|
|
@@ -7,8 +7,8 @@ export function config({ apiKey, chain, throwOnError, }) {
|
|
|
7
7
|
baseUrl: chain === "zeko"
|
|
8
8
|
? "https://zekotokens.com/api/v1/"
|
|
9
9
|
: chain === "devnet"
|
|
10
|
-
? "https://devnet.
|
|
11
|
-
: "https://
|
|
10
|
+
? "https://devnet.minatokens.com/api/v1/"
|
|
11
|
+
: "https://minatokens.com/api/v1/",
|
|
12
12
|
throwOnError: throwOnError ?? true,
|
|
13
13
|
});
|
|
14
14
|
}
|
package/dist/web/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,UAAU,MAAM,CAAC,EACrB,MAAM,EACN,KAAK,EACL,YAAY,GAKb;IACC,MAAM,CAAC,SAAS,CAAC;QACf,OAAO,EAAE;YACP,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EACL,KAAK,KAAK,MAAM;YACd,CAAC,CAAC,gCAAgC;YAClC,CAAC,CAAC,KAAK,KAAK,QAAQ;gBACpB,CAAC,CAAC,uCAAuC;gBACzC,CAAC,CAAC,gCAAgC;QACtC,YAAY,EAAE,YAAY,IAAI,IAAI;KACnC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silvana-one/api",
|
|
3
3
|
"description": "Silvana API",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"author": "DFST",
|
|
6
6
|
"bugs": "https://github.com/SilvanaOne/silvana-lib/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@hey-api/client-fetch": "^0.
|
|
8
|
+
"@hey-api/client-fetch": "^0.8.1"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@hey-api/openapi-ts": "^0.
|
|
11
|
+
"@hey-api/openapi-ts": "^0.64.4",
|
|
12
12
|
"@types/node": "^22.10.2",
|
|
13
|
-
"esbuild": "^0.
|
|
13
|
+
"esbuild": "^0.25.0",
|
|
14
14
|
"typescript": "^5.7.2"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
],
|
|
46
46
|
"license": "Apache-2.0",
|
|
47
47
|
"main": "dist/web/index.js",
|
|
48
|
-
"peerDependencies": {},
|
|
49
48
|
"publishConfig": {
|
|
50
49
|
"access": "public"
|
|
51
50
|
},
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import type { ClientOptions } from './types.gen.js';
|
|
4
|
+
import { type Config, type ClientOptions as DefaultClientOptions, createClient, createConfig } from '@hey-api/client-fetch';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The `createClientConfig()` function will be called on client initialization
|
|
8
|
+
* and the returned object will become the client's initial configuration.
|
|
9
|
+
*
|
|
10
|
+
* You may want to initialize your client this way instead of calling
|
|
11
|
+
* `setConfig()`. This is useful for example if you're using Next.js
|
|
12
|
+
* to ensure your client always has the correct values.
|
|
13
|
+
*/
|
|
14
|
+
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
|
|
15
|
+
|
|
16
|
+
export const client = createClient(createConfig<ClientOptions>({
|
|
17
|
+
baseUrl: 'https://minatokens.com/api/v1/'
|
|
18
|
+
}));
|