@settlemint/sdk-js
Advanced tools
Comparing version 0.4.31-prb15a71f to 0.4.31-preb3692c
@@ -0,3 +1,17 @@ | ||
/** | ||
* Creates a SettleMint client with methods to interact with various resources. | ||
* @returns An object containing methods to interact with SettleMint resources. | ||
* @throws {Error} If the environment variables are invalid. | ||
* @example | ||
* const client = createSettleMintClient(); | ||
* const blockchainNetworks = await client.blockchainNetwork.list(); | ||
*/ | ||
declare function createSettleMintClient(): { | ||
blockchainNetwork: { | ||
update?: ((uniqueName: string, data: never) => Promise<{ | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: string; | ||
chainId: string; | ||
}>) | undefined; | ||
list: () => Promise<{ | ||
@@ -17,2 +31,14 @@ uniqueName: string; | ||
blockchainNode: { | ||
update?: ((uniqueName: string, data: never) => Promise<{ | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: string; | ||
network: string; | ||
endpoints: { | ||
base: string; | ||
jsonRpc: string; | ||
jsonWs: string; | ||
graphQl: string; | ||
}; | ||
}>) | undefined; | ||
list: () => Promise<{ | ||
@@ -44,2 +70,29 @@ uniqueName: string; | ||
middleware: { | ||
update?: ((uniqueName: string, data: never) => Promise<{ | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: string; | ||
endpoints: { | ||
base: string; | ||
}; | ||
} | { | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: "SMART_CONTRACT_PORTAL"; | ||
endpoints: { | ||
base: string; | ||
jsonRpc: string; | ||
jsonWs: string; | ||
graphQl: string; | ||
}; | ||
} | { | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: "HA_GRAPH"; | ||
endpoints: { | ||
base: string; | ||
subgraph: string; | ||
defaultSubgraph: string; | ||
}; | ||
}>) | undefined; | ||
list: () => Promise<({ | ||
@@ -101,2 +154,21 @@ uniqueName: string; | ||
integrationTool: { | ||
update?: ((uniqueName: string, data: never) => Promise<{ | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: string; | ||
endpoints: { | ||
base: string; | ||
}; | ||
} | { | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: "HASURA"; | ||
endpoints: { | ||
base: string; | ||
graphQl: string; | ||
}; | ||
secrets: { | ||
adminSecret: string; | ||
}; | ||
}>) | undefined; | ||
list: () => Promise<({ | ||
@@ -142,2 +214,36 @@ uniqueName: string; | ||
storage: { | ||
update?: ((uniqueName: string, data: never) => Promise<{ | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: string; | ||
endpoints: { | ||
base: string; | ||
}; | ||
} | { | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: "IPFS"; | ||
endpoints: { | ||
base: string; | ||
api: string; | ||
gateway: string; | ||
clusterApi: string; | ||
pinning: string; | ||
}; | ||
secrets: { | ||
password: string; | ||
}; | ||
} | { | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: "MINIO"; | ||
endpoints: { | ||
base: string; | ||
s3Api: string; | ||
}; | ||
secrets: { | ||
accessKey: string; | ||
secretKey: string; | ||
}; | ||
}>) | undefined; | ||
list: () => Promise<({ | ||
@@ -213,2 +319,17 @@ uniqueName: string; | ||
privateKey: { | ||
update?: ((uniqueName: string, data: never) => Promise<{ | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: string; | ||
} | { | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: "HD_ECDSA_P256"; | ||
} | { | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: "MINIO"; | ||
address: string; | ||
publicKey: string; | ||
}>) | undefined; | ||
list: () => Promise<({ | ||
@@ -246,2 +367,11 @@ uniqueName: string; | ||
insights: { | ||
update?: ((uniqueName: string, data: never) => Promise<{ | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: string; | ||
endpoints: { | ||
base: string; | ||
}; | ||
protocol: string; | ||
}>) | undefined; | ||
list: () => Promise<{ | ||
@@ -267,2 +397,11 @@ uniqueName: string; | ||
customDeployment: { | ||
update?: ((uniqueName: string, data: never) => Promise<{ | ||
uniqueName: string; | ||
displayName: string; | ||
serviceSubType: string; | ||
endpoints: { | ||
base: string; | ||
}; | ||
protocol: string; | ||
}>) | undefined; | ||
list: () => Promise<{ | ||
@@ -269,0 +408,0 @@ uniqueName: string; |
{ | ||
"name": "@settlemint/sdk-js", | ||
"description": "SettleMint SDK, integrate SettleMint into your application with ease.", | ||
"version": "0.4.31-prb15a71f", | ||
"version": "0.4.31-preb3692c", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99947
1067