@hsuite/smart-engines-sdk 3.7.0 → 3.10.0
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/index.d.ts +57 -3
- package/dist/index.js +474 -103
- package/dist/index.js.map +1 -1
- package/dist/nestjs/index.d.ts +56 -2
- package/dist/nestjs/index.js +474 -103
- package/dist/nestjs/index.js.map +1 -1
- package/package.json +1 -1
package/dist/nestjs/index.d.ts
CHANGED
|
@@ -1722,7 +1722,7 @@ export interface AuthenticateResponse {
|
|
|
1722
1722
|
expiresAt: string;
|
|
1723
1723
|
message: string;
|
|
1724
1724
|
}
|
|
1725
|
-
export type SubscriptionTierName = "
|
|
1725
|
+
export type SubscriptionTierName = "builder" | "growth" | "scale" | "enterprise";
|
|
1726
1726
|
export type SubscriptionStatus = "pending_deposit" | "deposit_confirmed" | "active" | "expired" | "cancelled";
|
|
1727
1727
|
export type DepositWalletStatus = "pending" | "locked" | "expired" | "slashed" | "released";
|
|
1728
1728
|
export type SubscriptionTierInfo = {
|
|
@@ -3697,6 +3697,7 @@ export type BaasInitResponse = {
|
|
|
3697
3697
|
repository: string;
|
|
3698
3698
|
};
|
|
3699
3699
|
};
|
|
3700
|
+
export type BaasReissuePushCredentialsResponse = BaasInitResponse;
|
|
3700
3701
|
export type BaasDeployRequest = {
|
|
3701
3702
|
tag: string;
|
|
3702
3703
|
port?: number;
|
|
@@ -3756,6 +3757,8 @@ declare class DeploymentClient {
|
|
|
3756
3757
|
private readonly http;
|
|
3757
3758
|
constructor(http: HttpClient);
|
|
3758
3759
|
init(request: BaasInitRequest): Promise<BaasInitResponse>;
|
|
3760
|
+
pushCredentials(appId: string): Promise<BaasInitResponse>;
|
|
3761
|
+
reissuePushCredentials(appId: string): Promise<BaasReissuePushCredentialsResponse>;
|
|
3759
3762
|
uploadFrontend(appId: string, bundle: Blob | Buffer, filename?: string): Promise<BaasUploadFrontendResponse>;
|
|
3760
3763
|
deploy(appId: string, request: BaasDeployRequest): Promise<BaasDeployResponse>;
|
|
3761
3764
|
rollback(appId: string, request: BaasRollbackRequest): Promise<BaasDeployResponse>;
|
|
@@ -4893,7 +4896,7 @@ export type CustomerSessionInfo = {
|
|
|
4893
4896
|
customerAddress: string;
|
|
4894
4897
|
subscriptionContext?: {
|
|
4895
4898
|
nftSerial: number;
|
|
4896
|
-
tier: "
|
|
4899
|
+
tier: "builder" | "growth" | "scale" | "enterprise";
|
|
4897
4900
|
expiresAt: string;
|
|
4898
4901
|
allowedAutomations?: string[];
|
|
4899
4902
|
};
|
|
@@ -12288,17 +12291,40 @@ type CreateTokenRequest$1 = {
|
|
|
12288
12291
|
initialSupply?: string;
|
|
12289
12292
|
ruleRef: RuleRef;
|
|
12290
12293
|
memo?: string;
|
|
12294
|
+
securityMode?: EntitySecurityMode;
|
|
12295
|
+
payerAccountId?: string;
|
|
12296
|
+
fundWith?: FundWith;
|
|
12297
|
+
};
|
|
12298
|
+
export type EntitySecurityMode = "partial" | "full";
|
|
12299
|
+
export type PreparedEntityCreation = {
|
|
12300
|
+
entityId: string;
|
|
12301
|
+
chain: ChainType;
|
|
12302
|
+
address: string;
|
|
12303
|
+
reserveRequirement: string;
|
|
12304
|
+
prepared: PreparedTransaction[];
|
|
12291
12305
|
};
|
|
12306
|
+
export type FundWith = (prepared: PreparedTransaction[], ctx: {
|
|
12307
|
+
address: string;
|
|
12308
|
+
reserveRequirement: string;
|
|
12309
|
+
}) => Promise<{
|
|
12310
|
+
signedFundingBlob?: string;
|
|
12311
|
+
} | void>;
|
|
12292
12312
|
type CreateAccountRequest$1 = {
|
|
12293
12313
|
chain: ChainType;
|
|
12294
12314
|
ruleRef: RuleRef;
|
|
12295
12315
|
initialBalance?: string;
|
|
12296
12316
|
publicKey?: string;
|
|
12317
|
+
securityMode?: EntitySecurityMode;
|
|
12318
|
+
payerAccountId?: string;
|
|
12319
|
+
fundWith?: FundWith;
|
|
12297
12320
|
};
|
|
12298
12321
|
export type CreateTopicRequest = {
|
|
12299
12322
|
chain: ChainType;
|
|
12300
12323
|
ruleRef: RuleRef;
|
|
12301
12324
|
memo?: string;
|
|
12325
|
+
securityMode?: EntitySecurityMode;
|
|
12326
|
+
payerAccountId?: string;
|
|
12327
|
+
fundWith?: FundWith;
|
|
12302
12328
|
};
|
|
12303
12329
|
export type CreateAgentRequest = {
|
|
12304
12330
|
primaryChain: ChainType;
|
|
@@ -12358,8 +12384,34 @@ export type LaunchpadEntityResult = {
|
|
|
12358
12384
|
export declare class EntitiesClient {
|
|
12359
12385
|
private readonly http;
|
|
12360
12386
|
constructor(http: HttpClient);
|
|
12387
|
+
private static readonly PAYER_FUNDED_TOKEN_CHAINS;
|
|
12388
|
+
prepareCreateToken(req: Omit<CreateTokenRequest$1, "fundWith">): Promise<PreparedEntityCreation>;
|
|
12389
|
+
executeCreateToken(req: {
|
|
12390
|
+
entityId: string;
|
|
12391
|
+
chain: ChainType;
|
|
12392
|
+
securityMode?: EntitySecurityMode;
|
|
12393
|
+
createTxId?: string;
|
|
12394
|
+
signedFundingBlob?: string;
|
|
12395
|
+
}): Promise<EntityCreationResult>;
|
|
12361
12396
|
createToken(req: CreateTokenRequest$1): Promise<EntityCreationResult>;
|
|
12397
|
+
prepareCreateAccount(req: Omit<CreateAccountRequest$1, "fundWith">): Promise<PreparedEntityCreation>;
|
|
12398
|
+
executeCreateAccount(req: {
|
|
12399
|
+
entityId: string;
|
|
12400
|
+
chain: ChainType;
|
|
12401
|
+
securityMode?: EntitySecurityMode;
|
|
12402
|
+
signedFundingBlob?: string;
|
|
12403
|
+
createTxId?: string;
|
|
12404
|
+
}): Promise<EntityCreationResult>;
|
|
12405
|
+
private static readonly PAYER_FUNDED_CREATE_CHAINS;
|
|
12406
|
+
private static readonly FUNDING_BLOB_RELAY_CHAINS;
|
|
12362
12407
|
createAccount(req: CreateAccountRequest$1): Promise<EntityCreationResult>;
|
|
12408
|
+
prepareCreateTopic(req: Omit<CreateTopicRequest, "fundWith">): Promise<PreparedEntityCreation>;
|
|
12409
|
+
executeCreateTopic(req: {
|
|
12410
|
+
entityId: string;
|
|
12411
|
+
chain: ChainType;
|
|
12412
|
+
createTxId: string;
|
|
12413
|
+
securityMode?: EntitySecurityMode;
|
|
12414
|
+
}): Promise<EntityCreationResult>;
|
|
12363
12415
|
createTopic(req: CreateTopicRequest): Promise<EntityCreationResult>;
|
|
12364
12416
|
createAgent(req: CreateAgentRequest): Promise<EntityCreationResult>;
|
|
12365
12417
|
launchpad(req: LaunchpadEntityRequest): Promise<LaunchpadEntityResult>;
|
|
@@ -12398,6 +12450,7 @@ declare class BaasClient {
|
|
|
12398
12450
|
private readonly timeout;
|
|
12399
12451
|
private readonly allowInsecure;
|
|
12400
12452
|
private readonly http;
|
|
12453
|
+
private readonly txHttp;
|
|
12401
12454
|
private lastHttpError?;
|
|
12402
12455
|
private authContext?;
|
|
12403
12456
|
readonly db: DatabaseClient;
|
|
@@ -12409,6 +12462,7 @@ declare class BaasClient {
|
|
|
12409
12462
|
readonly customerSession: CustomerSessionClient;
|
|
12410
12463
|
readonly rules: RulesClient;
|
|
12411
12464
|
readonly entities: EntitiesClient;
|
|
12465
|
+
readonly transactions: TransactionsClient;
|
|
12412
12466
|
constructor(config: BaasClientConfig);
|
|
12413
12467
|
static connectToCluster(config: BaasConnectToClusterConfig): Promise<BaasClient>;
|
|
12414
12468
|
setAppId(appId: string): void;
|