@settlemint/sdk-js 2.3.8 → 2.3.11-main0bf85b8a
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/README.md +19 -19
- package/dist/settlemint.d.cts +2658 -2668
- package/dist/settlemint.d.ts +35 -45
- package/package.json +2 -2
package/dist/settlemint.d.ts
CHANGED
|
@@ -102417,7 +102417,8 @@ declare module 'gql.tada' {
|
|
|
102417
102417
|
interface setupSchema {
|
|
102418
102418
|
introspection: introspection;
|
|
102419
102419
|
}
|
|
102420
|
-
}
|
|
102420
|
+
}
|
|
102421
|
+
//#endregion
|
|
102421
102422
|
//#region src/graphql/application-access-tokens.d.ts
|
|
102422
102423
|
declare const createApplicationAccessToken: gql_tada0.TadaDocumentNode<{
|
|
102423
102424
|
createApplicationAccessToken: {
|
|
@@ -102470,15 +102471,15 @@ declare const createApplicationAccessToken: gql_tada0.TadaDocumentNode<{
|
|
|
102470
102471
|
}, void>;
|
|
102471
102472
|
type CreateApplicationAccessTokenArgs = Omit<VariablesOf<typeof createApplicationAccessToken>, "applicationId"> & {
|
|
102472
102473
|
applicationUniqueName: string;
|
|
102473
|
-
};
|
|
102474
|
-
//#region src/graphql/application.d.ts
|
|
102475
|
-
|
|
102474
|
+
};
|
|
102476
102475
|
/**
|
|
102477
102476
|
* Creates a new application.
|
|
102478
102477
|
*
|
|
102479
102478
|
* @param gqlClient - The GraphQL client instance used to execute the mutation.
|
|
102480
102479
|
* @returns A function that accepts the arguments for creating an application and returns a promise resolving to the created application.
|
|
102481
102480
|
*/
|
|
102481
|
+
//#endregion
|
|
102482
|
+
//#region src/graphql/application.d.ts
|
|
102482
102483
|
/**
|
|
102483
102484
|
* GraphQL fragment containing core application fields.
|
|
102484
102485
|
*/
|
|
@@ -102524,9 +102525,6 @@ declare const createApplication: gql_tada1.TadaDocumentNode<{
|
|
|
102524
102525
|
type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "workspaceId"> & {
|
|
102525
102526
|
workspaceUniqueName: string;
|
|
102526
102527
|
};
|
|
102527
|
-
|
|
102528
|
-
//#endregion
|
|
102529
|
-
//#region src/graphql/blockchain-network.d.ts
|
|
102530
102528
|
/**
|
|
102531
102529
|
* Creates a function to list applications in a workspace.
|
|
102532
102530
|
*
|
|
@@ -102534,6 +102532,8 @@ type CreateApplicationArgs = Omit<VariablesOf<typeof createApplication>, "worksp
|
|
|
102534
102532
|
* @returns Function that fetches applications for a workspace
|
|
102535
102533
|
* @throws If the workspace cannot be found or the request fails
|
|
102536
102534
|
*/
|
|
102535
|
+
//#endregion
|
|
102536
|
+
//#region src/graphql/blockchain-network.d.ts
|
|
102537
102537
|
/**
|
|
102538
102538
|
* Fragment containing core blockchain network fields.
|
|
102539
102539
|
*/
|
|
@@ -129383,9 +129383,7 @@ declare const createBlockchainNetwork: gql_tada3.TadaDocumentNode<{
|
|
|
129383
129383
|
*/
|
|
129384
129384
|
type CreateBlockchainNetworkArgs = Omit<VariablesOf<typeof createBlockchainNetwork>, "applicationId"> & {
|
|
129385
129385
|
applicationUniqueName: string;
|
|
129386
|
-
};
|
|
129387
|
-
//#region src/graphql/blockchain-node.d.ts
|
|
129388
|
-
|
|
129386
|
+
};
|
|
129389
129387
|
/**
|
|
129390
129388
|
* Creates a function to list blockchain networks for a given application.
|
|
129391
129389
|
*
|
|
@@ -129393,6 +129391,8 @@ type CreateBlockchainNetworkArgs = Omit<VariablesOf<typeof createBlockchainNetwo
|
|
|
129393
129391
|
* @returns Function that fetches networks for an application
|
|
129394
129392
|
* @throws If the application cannot be found or the request fails
|
|
129395
129393
|
*/
|
|
129394
|
+
//#endregion
|
|
129395
|
+
//#region src/graphql/blockchain-node.d.ts
|
|
129396
129396
|
/**
|
|
129397
129397
|
* Fragment containing core blockchain node fields.
|
|
129398
129398
|
*/
|
|
@@ -146347,9 +146347,7 @@ declare const createBlockchainNode: gql_tada5.TadaDocumentNode<{
|
|
|
146347
146347
|
type CreateBlockchainNodeArgs = Omit<VariablesOf<typeof createBlockchainNode>, "applicationId" | "blockchainNetworkId"> & {
|
|
146348
146348
|
applicationUniqueName: string;
|
|
146349
146349
|
blockchainNetworkUniqueName: string;
|
|
146350
|
-
};
|
|
146351
|
-
//#region src/graphql/custom-deployment.d.ts
|
|
146352
|
-
|
|
146350
|
+
};
|
|
146353
146351
|
/**
|
|
146354
146352
|
* Creates a function to list blockchain nodes for an application.
|
|
146355
146353
|
*
|
|
@@ -146357,6 +146355,8 @@ type CreateBlockchainNodeArgs = Omit<VariablesOf<typeof createBlockchainNode>, "
|
|
|
146357
146355
|
* @returns Function that fetches blockchain nodes for an application
|
|
146358
146356
|
* @throws If the application cannot be found or the request fails
|
|
146359
146357
|
*/
|
|
146358
|
+
//#endregion
|
|
146359
|
+
//#region src/graphql/custom-deployment.d.ts
|
|
146360
146360
|
/**
|
|
146361
146361
|
* Fragment containing core custom deployment fields.
|
|
146362
146362
|
*/
|
|
@@ -146429,9 +146429,6 @@ declare const createCustomDeployment: gql_tada7.TadaDocumentNode<{
|
|
|
146429
146429
|
type CreateCustomDeploymentArgs = Omit<VariablesOf<typeof createCustomDeployment>, "applicationId"> & {
|
|
146430
146430
|
applicationUniqueName: string;
|
|
146431
146431
|
};
|
|
146432
|
-
|
|
146433
|
-
//#endregion
|
|
146434
|
-
//#region src/graphql/insights.d.ts
|
|
146435
146432
|
/**
|
|
146436
146433
|
* Creates a function to list custom deployments for an application.
|
|
146437
146434
|
*
|
|
@@ -146439,6 +146436,8 @@ type CreateCustomDeploymentArgs = Omit<VariablesOf<typeof createCustomDeployment
|
|
|
146439
146436
|
* @returns Function that fetches custom deployments for an application
|
|
146440
146437
|
* @throws If the application cannot be found or the request fails
|
|
146441
146438
|
*/
|
|
146439
|
+
//#endregion
|
|
146440
|
+
//#region src/graphql/insights.d.ts
|
|
146442
146441
|
/**
|
|
146443
146442
|
* GraphQL fragment containing core insights fields.
|
|
146444
146443
|
*/
|
|
@@ -146595,9 +146594,6 @@ type CreateInsightsArgs = Omit<VariablesOf<typeof createInsights>, "applicationI
|
|
|
146595
146594
|
blockchainNodeUniqueName?: string;
|
|
146596
146595
|
loadBalancerUniqueName?: string;
|
|
146597
146596
|
};
|
|
146598
|
-
|
|
146599
|
-
//#endregion
|
|
146600
|
-
//#region src/graphql/integration-tool.d.ts
|
|
146601
146597
|
/**
|
|
146602
146598
|
* Creates a function to list insights for an application.
|
|
146603
146599
|
*
|
|
@@ -146605,6 +146601,8 @@ type CreateInsightsArgs = Omit<VariablesOf<typeof createInsights>, "applicationI
|
|
|
146605
146601
|
* @returns Function that fetches insights for an application
|
|
146606
146602
|
* @throws If the application cannot be found or the request fails
|
|
146607
146603
|
*/
|
|
146604
|
+
//#endregion
|
|
146605
|
+
//#region src/graphql/integration-tool.d.ts
|
|
146608
146606
|
/**
|
|
146609
146607
|
* GraphQL fragment containing core integration fields.
|
|
146610
146608
|
*/
|
|
@@ -146757,9 +146755,6 @@ declare const createIntegration: gql_tada11.TadaDocumentNode<{
|
|
|
146757
146755
|
type CreateIntegrationToolArgs = Omit<VariablesOf<typeof createIntegration>, "applicationId"> & {
|
|
146758
146756
|
applicationUniqueName: string;
|
|
146759
146757
|
};
|
|
146760
|
-
|
|
146761
|
-
//#endregion
|
|
146762
|
-
//#region src/graphql/load-balancer.d.ts
|
|
146763
146758
|
/**
|
|
146764
146759
|
* Creates a function to list integration tools for an application.
|
|
146765
146760
|
*
|
|
@@ -146767,6 +146762,8 @@ type CreateIntegrationToolArgs = Omit<VariablesOf<typeof createIntegration>, "ap
|
|
|
146767
146762
|
* @returns Function that fetches integration tools for an application
|
|
146768
146763
|
* @throws If the application cannot be found or the request fails
|
|
146769
146764
|
*/
|
|
146765
|
+
//#endregion
|
|
146766
|
+
//#region src/graphql/load-balancer.d.ts
|
|
146770
146767
|
/**
|
|
146771
146768
|
* GraphQL fragment containing core load balancer fields.
|
|
146772
146769
|
*/
|
|
@@ -146858,9 +146855,6 @@ type CreateLoadBalancerArgs = Omit<VariablesOf<typeof createLoadBalancer>, "appl
|
|
|
146858
146855
|
blockchainNetworkUniqueName: string;
|
|
146859
146856
|
connectedNodesUniqueNames: string[];
|
|
146860
146857
|
};
|
|
146861
|
-
|
|
146862
|
-
//#endregion
|
|
146863
|
-
//#region src/graphql/middleware.d.ts
|
|
146864
146858
|
/**
|
|
146865
146859
|
* Creates a function to fetch a specific load balancer.
|
|
146866
146860
|
*
|
|
@@ -146868,6 +146862,8 @@ type CreateLoadBalancerArgs = Omit<VariablesOf<typeof createLoadBalancer>, "appl
|
|
|
146868
146862
|
* @returns Function that fetches a single load balancer by unique name
|
|
146869
146863
|
* @throws If the load balancer cannot be found or the request fails
|
|
146870
146864
|
*/
|
|
146865
|
+
//#endregion
|
|
146866
|
+
//#region src/graphql/middleware.d.ts
|
|
146871
146867
|
/**
|
|
146872
146868
|
* GraphQL fragment containing core middleware fields.
|
|
146873
146869
|
*/
|
|
@@ -147329,9 +147325,7 @@ type CreateMiddlewareArgs = Omit<VariablesOf<typeof createMiddleware>, "applicat
|
|
|
147329
147325
|
blockchainNodeUniqueName?: string;
|
|
147330
147326
|
loadBalancerUniqueName?: string;
|
|
147331
147327
|
storageUniqueName?: string;
|
|
147332
|
-
};
|
|
147333
|
-
//#region src/graphql/platform.d.ts
|
|
147334
|
-
|
|
147328
|
+
};
|
|
147335
147329
|
/**
|
|
147336
147330
|
* Creates a function to list middlewares for an application.
|
|
147337
147331
|
*
|
|
@@ -147339,6 +147333,8 @@ type CreateMiddlewareArgs = Omit<VariablesOf<typeof createMiddleware>, "applicat
|
|
|
147339
147333
|
* @returns Function that fetches middlewares for an application
|
|
147340
147334
|
* @throws If the application cannot be found or the request fails
|
|
147341
147335
|
*/
|
|
147336
|
+
//#endregion
|
|
147337
|
+
//#region src/graphql/platform.d.ts
|
|
147342
147338
|
/**
|
|
147343
147339
|
* GraphQL query to fetch platform configuration.
|
|
147344
147340
|
*/
|
|
@@ -147386,9 +147382,6 @@ declare const getPlatformConfigQuery: gql_tada18.TadaDocumentNode<{
|
|
|
147386
147382
|
* Type representing the platform configuration.
|
|
147387
147383
|
*/
|
|
147388
147384
|
type PlatformConfig = ResultOf<typeof getPlatformConfigQuery>["config"];
|
|
147389
|
-
|
|
147390
|
-
//#endregion
|
|
147391
|
-
//#region src/graphql/private-key.d.ts
|
|
147392
147385
|
/**
|
|
147393
147386
|
* Creates a function to fetch the platform configuration.
|
|
147394
147387
|
*
|
|
@@ -147396,6 +147389,8 @@ type PlatformConfig = ResultOf<typeof getPlatformConfigQuery>["config"];
|
|
|
147396
147389
|
* @returns Function that fetches the platform configuration
|
|
147397
147390
|
* @throws If the request fails
|
|
147398
147391
|
*/
|
|
147392
|
+
//#endregion
|
|
147393
|
+
//#region src/graphql/private-key.d.ts
|
|
147399
147394
|
/**
|
|
147400
147395
|
* GraphQL fragment containing core private key fields.
|
|
147401
147396
|
*/
|
|
@@ -148693,9 +148688,7 @@ type CreatePrivateKeyArgs = Omit<VariablesOf<typeof createPrivateKey>, "applicat
|
|
|
148693
148688
|
applicationUniqueName: string;
|
|
148694
148689
|
blockchainNodeUniqueNames?: string[];
|
|
148695
148690
|
relayerKeyUniqueName?: string;
|
|
148696
|
-
};
|
|
148697
|
-
//#region src/graphql/storage.d.ts
|
|
148698
|
-
|
|
148691
|
+
};
|
|
148699
148692
|
/**
|
|
148700
148693
|
* Creates a function to list private keys for an application.
|
|
148701
148694
|
*
|
|
@@ -148703,6 +148696,8 @@ type CreatePrivateKeyArgs = Omit<VariablesOf<typeof createPrivateKey>, "applicat
|
|
|
148703
148696
|
* @returns Function that fetches private keys for an application
|
|
148704
148697
|
* @throws If the application cannot be found or the request fails
|
|
148705
148698
|
*/
|
|
148699
|
+
//#endregion
|
|
148700
|
+
//#region src/graphql/storage.d.ts
|
|
148706
148701
|
/**
|
|
148707
148702
|
* GraphQL fragment containing core storage fields.
|
|
148708
148703
|
*/
|
|
@@ -148815,9 +148810,6 @@ declare const createStorage: gql_tada21.TadaDocumentNode<{
|
|
|
148815
148810
|
type CreateStorageArgs = Omit<VariablesOf<typeof createStorage>, "applicationId"> & {
|
|
148816
148811
|
applicationUniqueName: string;
|
|
148817
148812
|
};
|
|
148818
|
-
|
|
148819
|
-
//#endregion
|
|
148820
|
-
//#region src/graphql/workspace.d.ts
|
|
148821
148813
|
/**
|
|
148822
148814
|
* Creates a function to list storages for an application.
|
|
148823
148815
|
*
|
|
@@ -148825,6 +148817,8 @@ type CreateStorageArgs = Omit<VariablesOf<typeof createStorage>, "applicationId"
|
|
|
148825
148817
|
* @returns Function that fetches storages for an application
|
|
148826
148818
|
* @throws If the application cannot be found or the request fails
|
|
148827
148819
|
*/
|
|
148820
|
+
//#endregion
|
|
148821
|
+
//#region src/graphql/workspace.d.ts
|
|
148828
148822
|
/**
|
|
148829
148823
|
* GraphQL fragment containing core workspace fields.
|
|
148830
148824
|
*/
|
|
@@ -148874,9 +148868,6 @@ declare const createWorkspace: gql_tada23.TadaDocumentNode<{
|
|
|
148874
148868
|
addressLine1?: string | null | undefined;
|
|
148875
148869
|
}, void>;
|
|
148876
148870
|
type CreateWorkspaceArgs = VariablesOf<typeof createWorkspace>;
|
|
148877
|
-
|
|
148878
|
-
//#endregion
|
|
148879
|
-
//#region src/helpers/client-options.schema.d.ts
|
|
148880
148871
|
/**
|
|
148881
148872
|
* Creates a function to list all workspaces and their applications.
|
|
148882
148873
|
*
|
|
@@ -148884,6 +148875,8 @@ type CreateWorkspaceArgs = VariablesOf<typeof createWorkspace>;
|
|
|
148884
148875
|
* @returns Function that returns all workspaces sorted by name
|
|
148885
148876
|
* @throws If the request fails
|
|
148886
148877
|
*/
|
|
148878
|
+
//#endregion
|
|
148879
|
+
//#region src/helpers/client-options.schema.d.ts
|
|
148887
148880
|
/**
|
|
148888
148881
|
* Schema for validating SettleMint client options.
|
|
148889
148882
|
*/
|
|
@@ -148895,7 +148888,6 @@ declare const ClientOptionsSchema: z.ZodObject<{
|
|
|
148895
148888
|
* Type definition for SettleMint client options, inferred from ClientOptionsSchema.
|
|
148896
148889
|
*/
|
|
148897
148890
|
type ClientOptions = z.infer<typeof ClientOptionsSchema>;
|
|
148898
|
-
|
|
148899
148891
|
//#endregion
|
|
148900
148892
|
//#region src/pincode-verification.d.ts
|
|
148901
148893
|
interface PincodeVerificationChallengesArgs {
|
|
@@ -148915,9 +148907,6 @@ interface VerificationChallenge {
|
|
|
148915
148907
|
salt: string;
|
|
148916
148908
|
};
|
|
148917
148909
|
}
|
|
148918
|
-
|
|
148919
|
-
//#endregion
|
|
148920
|
-
//#region src/settlemint.d.ts
|
|
148921
148910
|
/**
|
|
148922
148911
|
* Get the pincode verification challenges for a user wallet address.
|
|
148923
148912
|
* @param userWalletAddress - The user's wallet address.
|
|
@@ -148926,6 +148915,8 @@ interface VerificationChallenge {
|
|
|
148926
148915
|
* @param nodeId - The node ID.
|
|
148927
148916
|
* @returns The pincode verification challenges.
|
|
148928
148917
|
*/
|
|
148918
|
+
//#endregion
|
|
148919
|
+
//#region src/settlemint.d.ts
|
|
148929
148920
|
/**
|
|
148930
148921
|
* Options for the Settlemint client.
|
|
148931
148922
|
*/
|
|
@@ -149048,7 +149039,6 @@ interface SettlemintClient {
|
|
|
149048
149039
|
* const workspace = await client.workspace.read('workspace-unique-name');
|
|
149049
149040
|
*/
|
|
149050
149041
|
declare function createSettleMintClient(options: SettlemintClientOptions): SettlemintClient;
|
|
149051
|
-
|
|
149052
149042
|
//#endregion
|
|
149053
149043
|
export { Application, BlockchainNetwork, BlockchainNode, CustomDeployment, Insights, IntegrationTool, LoadBalancer, Middleware, MiddlewareWithSubgraphs, PlatformConfig, PrivateKey, SettlemintClient, SettlemintClientOptions, Storage, VerificationChallenge, Workspace, createSettleMintClient };
|
|
149054
149044
|
//# sourceMappingURL=settlemint.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/sdk-js",
|
|
3
3
|
"description": "Core JavaScript SDK for integrating SettleMint's blockchain platform services into your applications",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.11-main0bf85b8a",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"license": "FSL-1.1-MIT",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"gql.tada": "^1",
|
|
56
56
|
"graphql-request": "^7",
|
|
57
57
|
"zod": "^3.25.0",
|
|
58
|
-
"@settlemint/sdk-utils": "2.3.
|
|
58
|
+
"@settlemint/sdk-utils": "2.3.11-main0bf85b8a"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {},
|
|
61
61
|
"engines": {
|