@hsuite/smart-engines-sdk 3.7.0 → 3.11.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 +147 -49
- package/dist/index.js +629 -162
- package/dist/index.js.map +1 -1
- package/dist/nestjs/index.d.ts +146 -48
- package/dist/nestjs/index.js +629 -162
- package/dist/nestjs/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.8.0 — 2026-06-17
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`BaasClient` now exposes `transactions` (prepare/execute), validator-routed.** The host-routed `BaasClient` gains a `transactions` arm (`TransactionsClient`) so showcase/CLI consumers can drive the sovereignty prepare/execute flow without constructing a separate `SmartEngineClient`. It targets the validator's `/api/transactions/*` routes — a sibling of the `/host` BaaS surface, rooted at the raw gateway/ingress origin (`hostUrl`), NOT under the `pathPrefix`. The prepare endpoints accept an explicit `payerAccountId` (session-less payer) OR carry the web3-auth session token for the JWT-wallet payer path; the token is kept in lock-step with the main client's via `authenticate` / `reauthenticate` / `logout`.
|
|
8
|
+
|
|
3
9
|
## 3.6.1 — 2026-06-15
|
|
4
10
|
|
|
5
11
|
### Fixed
|
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ await baas.authenticate({
|
|
|
54
54
|
},
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
// 4. Initialise a
|
|
57
|
+
// 4. Initialise a smart-app via the four-step deploy flow
|
|
58
58
|
// (init → docker push → optional uploadFrontend → deploy). `init` runs
|
|
59
59
|
// the per-entity DKG ceremony on the cluster and returns the DKG entityId
|
|
60
60
|
// as `appId`, plus ephemeral push credentials for the cluster's per-tenant
|
package/dist/index.d.ts
CHANGED
|
@@ -1954,14 +1954,19 @@ export declare class ClusterDiscoveryClient {
|
|
|
1954
1954
|
private verifyAgainstTrustAnchor;
|
|
1955
1955
|
private pickRandomIndex;
|
|
1956
1956
|
}
|
|
1957
|
+
export type HttpCallOptions = {
|
|
1958
|
+
customerToken?: string;
|
|
1959
|
+
headers?: Record<string, string>;
|
|
1960
|
+
};
|
|
1957
1961
|
export type HttpClient = {
|
|
1958
|
-
post<T = any>(path: string, body: unknown): Promise<T>;
|
|
1959
|
-
get<T = any>(path: string): Promise<T>;
|
|
1960
|
-
put<T = any>(path: string, body: unknown): Promise<T>;
|
|
1961
|
-
patch<T = any>(path: string, body: unknown): Promise<T>;
|
|
1962
|
-
delete<T = any>(path: string): Promise<T>;
|
|
1963
|
-
getText(path: string): Promise<string>;
|
|
1964
|
-
|
|
1962
|
+
post<T = any>(path: string, body: unknown, opts?: HttpCallOptions): Promise<T>;
|
|
1963
|
+
get<T = any>(path: string, opts?: HttpCallOptions): Promise<T>;
|
|
1964
|
+
put<T = any>(path: string, body: unknown, opts?: HttpCallOptions): Promise<T>;
|
|
1965
|
+
patch<T = any>(path: string, body: unknown, opts?: HttpCallOptions): Promise<T>;
|
|
1966
|
+
delete<T = any>(path: string, opts?: HttpCallOptions): Promise<T>;
|
|
1967
|
+
getText(path: string, opts?: HttpCallOptions): Promise<string>;
|
|
1968
|
+
getBinary(path: string, opts?: HttpCallOptions): Promise<Uint8Array>;
|
|
1969
|
+
upload<T = any>(path: string, file: Blob | Buffer, filename: string, metadata?: Record<string, string>, fieldName?: string, opts?: HttpCallOptions): Promise<T>;
|
|
1965
1970
|
setAuthToken(token: string | undefined): void;
|
|
1966
1971
|
getAuthToken(): string | undefined;
|
|
1967
1972
|
};
|
|
@@ -2164,7 +2169,7 @@ export type Web3Signer = {
|
|
|
2164
2169
|
wallet: Wallet;
|
|
2165
2170
|
};
|
|
2166
2171
|
export declare function createXrplWeb3Signer(seed: string): Web3Signer;
|
|
2167
|
-
export type SubscriptionTierName = "
|
|
2172
|
+
export type SubscriptionTierName = "builder" | "growth" | "scale" | "enterprise";
|
|
2168
2173
|
export type SubscriptionStatus = "pending_deposit" | "deposit_confirmed" | "active" | "expired" | "cancelled";
|
|
2169
2174
|
export type DepositWalletStatus = "pending" | "locked" | "expired" | "slashed" | "released";
|
|
2170
2175
|
export type SubscriptionTierInfo = {
|
|
@@ -3874,45 +3879,66 @@ export type AgentWithdrawRequest = {
|
|
|
3874
3879
|
amount: string;
|
|
3875
3880
|
destination: string;
|
|
3876
3881
|
};
|
|
3882
|
+
export type AgentExecuteRequest = {
|
|
3883
|
+
capability: string;
|
|
3884
|
+
chain?: string;
|
|
3885
|
+
params: Record<string, unknown>;
|
|
3886
|
+
};
|
|
3887
|
+
export type AgentExecuteStepResult = {
|
|
3888
|
+
kind: "onchain" | "offchain";
|
|
3889
|
+
status: string;
|
|
3890
|
+
transactionBytes?: string;
|
|
3891
|
+
ref?: string;
|
|
3892
|
+
detail?: Record<string, unknown>;
|
|
3893
|
+
};
|
|
3894
|
+
export type AgentExecuteResponse = {
|
|
3895
|
+
capability: string;
|
|
3896
|
+
steps: AgentExecuteStepResult[];
|
|
3897
|
+
awaitingApproval?: boolean;
|
|
3898
|
+
pendingOpId?: string;
|
|
3899
|
+
};
|
|
3877
3900
|
export type AgentPreparedTransactionResponse = PreparedTransactionResponse & {
|
|
3878
3901
|
success: true;
|
|
3879
3902
|
};
|
|
3880
3903
|
export declare class AgentsClient {
|
|
3881
3904
|
private readonly http;
|
|
3882
3905
|
constructor(http: HttpClient);
|
|
3883
|
-
register(request: AgentRegisterRequest): Promise<AgentInfo>;
|
|
3884
|
-
get(agentId: string): Promise<AgentInfo>;
|
|
3885
|
-
list(): Promise<{
|
|
3906
|
+
register(request: AgentRegisterRequest, opts?: HttpCallOptions): Promise<AgentInfo>;
|
|
3907
|
+
get(agentId: string, opts?: HttpCallOptions): Promise<AgentInfo>;
|
|
3908
|
+
list(opts?: HttpCallOptions): Promise<{
|
|
3886
3909
|
agents: AgentInfo[];
|
|
3887
3910
|
total: number;
|
|
3888
3911
|
}>;
|
|
3889
|
-
fund(agentId: string, request: AgentFundRequest): Promise<AgentPreparedTransactionResponse>;
|
|
3890
|
-
trade(agentId: string, request: AgentTradeRequest): Promise<AgentPreparedTransactionResponse>;
|
|
3891
|
-
withdraw(agentId: string, request: AgentWithdrawRequest): Promise<AgentPreparedTransactionResponse>;
|
|
3892
|
-
|
|
3912
|
+
fund(agentId: string, request: AgentFundRequest, opts?: HttpCallOptions): Promise<AgentPreparedTransactionResponse>;
|
|
3913
|
+
trade(agentId: string, request: AgentTradeRequest, opts?: HttpCallOptions): Promise<AgentPreparedTransactionResponse>;
|
|
3914
|
+
withdraw(agentId: string, request: AgentWithdrawRequest, opts?: HttpCallOptions): Promise<AgentPreparedTransactionResponse>;
|
|
3915
|
+
execute(agentId: string, request: AgentExecuteRequest, opts?: HttpCallOptions): Promise<AgentExecuteResponse & {
|
|
3916
|
+
success: true;
|
|
3917
|
+
}>;
|
|
3918
|
+
pause(agentId: string, opts?: HttpCallOptions): Promise<{
|
|
3893
3919
|
success: boolean;
|
|
3894
3920
|
status: string;
|
|
3895
3921
|
}>;
|
|
3896
|
-
resume(agentId: string): Promise<{
|
|
3922
|
+
resume(agentId: string, opts?: HttpCallOptions): Promise<{
|
|
3897
3923
|
success: boolean;
|
|
3898
3924
|
status: string;
|
|
3899
3925
|
}>;
|
|
3900
|
-
revoke(agentId: string): Promise<{
|
|
3926
|
+
revoke(agentId: string, opts?: HttpCallOptions): Promise<{
|
|
3901
3927
|
success: boolean;
|
|
3902
3928
|
status: string;
|
|
3903
3929
|
}>;
|
|
3904
|
-
updateRules(agentId: string, rules: Partial<AgentRules
|
|
3905
|
-
getEvents(agentId: string): Promise<{
|
|
3930
|
+
updateRules(agentId: string, rules: Partial<AgentRules>, opts?: HttpCallOptions): Promise<AgentInfo>;
|
|
3931
|
+
getEvents(agentId: string, opts?: HttpCallOptions): Promise<{
|
|
3906
3932
|
events: AgentEvent[];
|
|
3907
3933
|
total: number;
|
|
3908
3934
|
}>;
|
|
3909
|
-
getBalances(agentId: string): Promise<{
|
|
3935
|
+
getBalances(agentId: string, opts?: HttpCallOptions): Promise<{
|
|
3910
3936
|
balances: AgentBalance[];
|
|
3911
3937
|
}>;
|
|
3912
|
-
approve(agentId: string, operationId: string): Promise<{
|
|
3938
|
+
approve(agentId: string, operationId: string, opts?: HttpCallOptions): Promise<{
|
|
3913
3939
|
success: boolean;
|
|
3914
3940
|
}>;
|
|
3915
|
-
reject(agentId: string, operationId: string): Promise<{
|
|
3941
|
+
reject(agentId: string, operationId: string, opts?: HttpCallOptions): Promise<{
|
|
3916
3942
|
success: boolean;
|
|
3917
3943
|
}>;
|
|
3918
3944
|
}
|
|
@@ -4128,6 +4154,13 @@ export type BaasFunctionResources = {
|
|
|
4128
4154
|
timeout: number;
|
|
4129
4155
|
maxConcurrency?: number;
|
|
4130
4156
|
};
|
|
4157
|
+
export type BaasSignedCode = {
|
|
4158
|
+
code: string;
|
|
4159
|
+
signature: string;
|
|
4160
|
+
publicKey: string;
|
|
4161
|
+
timestamp: string;
|
|
4162
|
+
hash: string;
|
|
4163
|
+
};
|
|
4131
4164
|
export type BaasFunctionDeployRequest = {
|
|
4132
4165
|
name: string;
|
|
4133
4166
|
description?: string;
|
|
@@ -4141,6 +4174,15 @@ export type BaasFunctionDeployRequest = {
|
|
|
4141
4174
|
}>;
|
|
4142
4175
|
resources?: Partial<BaasFunctionResources>;
|
|
4143
4176
|
environment?: Record<string, string>;
|
|
4177
|
+
signedCode?: BaasSignedCode;
|
|
4178
|
+
};
|
|
4179
|
+
export type BaasFunctionEvalRequest = {
|
|
4180
|
+
name?: string;
|
|
4181
|
+
code: string;
|
|
4182
|
+
runtime?: BaasFunctionRuntime;
|
|
4183
|
+
resources?: Partial<BaasFunctionResources>;
|
|
4184
|
+
input?: Record<string, unknown>;
|
|
4185
|
+
signedCode?: BaasSignedCode;
|
|
4144
4186
|
};
|
|
4145
4187
|
export type BaasFunctionDeployResult = {
|
|
4146
4188
|
functionId: string;
|
|
@@ -4249,6 +4291,7 @@ export type BaasInitResponse = {
|
|
|
4249
4291
|
repository: string;
|
|
4250
4292
|
};
|
|
4251
4293
|
};
|
|
4294
|
+
export type BaasReissuePushCredentialsResponse = BaasInitResponse;
|
|
4252
4295
|
export type BaasDeployRequest = {
|
|
4253
4296
|
tag: string;
|
|
4254
4297
|
port?: number;
|
|
@@ -4319,6 +4362,8 @@ export declare class DeploymentClient {
|
|
|
4319
4362
|
private readonly http;
|
|
4320
4363
|
constructor(http: HttpClient);
|
|
4321
4364
|
init(request: BaasInitRequest): Promise<BaasInitResponse>;
|
|
4365
|
+
pushCredentials(appId: string): Promise<BaasInitResponse>;
|
|
4366
|
+
reissuePushCredentials(appId: string): Promise<BaasReissuePushCredentialsResponse>;
|
|
4322
4367
|
uploadFrontend(appId: string, bundle: Blob | Buffer, filename?: string): Promise<BaasUploadFrontendResponse>;
|
|
4323
4368
|
deploy(appId: string, request: BaasDeployRequest): Promise<BaasDeployResponse>;
|
|
4324
4369
|
rollback(appId: string, request: BaasRollbackRequest): Promise<BaasDeployResponse>;
|
|
@@ -5407,21 +5452,21 @@ export declare class StorageClient {
|
|
|
5407
5452
|
private readonly http;
|
|
5408
5453
|
private readonly getAppId;
|
|
5409
5454
|
constructor(http: HttpClient, getAppId: () => string);
|
|
5410
|
-
upload(file: Blob | Buffer, filename: string, metadata?: Record<string, string
|
|
5411
|
-
download(cid: string): Promise<
|
|
5412
|
-
getMetadata(cid: string): Promise<BaasFileMetadata>;
|
|
5413
|
-
delete(cid: string): Promise<{
|
|
5455
|
+
upload(file: Blob | Buffer, filename: string, metadata?: Record<string, string>, opts?: HttpCallOptions): Promise<BaasUploadResult>;
|
|
5456
|
+
download(cid: string, opts?: HttpCallOptions): Promise<Uint8Array>;
|
|
5457
|
+
getMetadata(cid: string, opts?: HttpCallOptions): Promise<BaasFileMetadata>;
|
|
5458
|
+
delete(cid: string, opts?: HttpCallOptions): Promise<{
|
|
5414
5459
|
success: boolean;
|
|
5415
5460
|
}>;
|
|
5416
5461
|
listFiles(pagination?: {
|
|
5417
5462
|
limit?: number;
|
|
5418
5463
|
offset?: number;
|
|
5419
|
-
}): Promise<{
|
|
5464
|
+
}, opts?: HttpCallOptions): Promise<{
|
|
5420
5465
|
files: BaasFileInfo[];
|
|
5421
5466
|
total: number;
|
|
5422
5467
|
}>;
|
|
5423
|
-
getUsage(): Promise<BaasStorageUsage>;
|
|
5424
|
-
exists(cid: string): Promise<{
|
|
5468
|
+
getUsage(opts?: HttpCallOptions): Promise<BaasStorageUsage>;
|
|
5469
|
+
exists(cid: string, opts?: HttpCallOptions): Promise<{
|
|
5425
5470
|
exists: boolean;
|
|
5426
5471
|
cid: string;
|
|
5427
5472
|
}>;
|
|
@@ -5430,57 +5475,59 @@ export declare class FunctionsClient {
|
|
|
5430
5475
|
private readonly http;
|
|
5431
5476
|
private readonly getAppId;
|
|
5432
5477
|
constructor(http: HttpClient, getAppId: () => string);
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5478
|
+
signCode(code: string): Promise<BaasSignedCode>;
|
|
5479
|
+
deploy(request: BaasFunctionDeployRequest, opts?: HttpCallOptions): Promise<BaasFunctionDeployResult>;
|
|
5480
|
+
invoke(functionId: string, payload?: unknown, opts?: HttpCallOptions): Promise<BaasFunctionResult>;
|
|
5481
|
+
eval(request: BaasFunctionEvalRequest, opts?: HttpCallOptions): Promise<BaasFunctionResult>;
|
|
5482
|
+
list(opts?: HttpCallOptions): Promise<{
|
|
5436
5483
|
functions: BaasFunctionInfo[];
|
|
5437
5484
|
total: number;
|
|
5438
5485
|
}>;
|
|
5439
|
-
get(functionId: string): Promise<BaasFunctionInfo>;
|
|
5440
|
-
update(functionId: string, updates: Partial<BaasFunctionDeployRequest
|
|
5441
|
-
delete(functionId: string): Promise<{
|
|
5486
|
+
get(functionId: string, opts?: HttpCallOptions): Promise<BaasFunctionInfo>;
|
|
5487
|
+
update(functionId: string, updates: Partial<BaasFunctionDeployRequest>, opts?: HttpCallOptions): Promise<BaasFunctionInfo>;
|
|
5488
|
+
delete(functionId: string, opts?: HttpCallOptions): Promise<{
|
|
5442
5489
|
success: boolean;
|
|
5443
5490
|
}>;
|
|
5444
|
-
getLogs(functionId: string, options?: BaasFunctionLogOptions): Promise<{
|
|
5491
|
+
getLogs(functionId: string, options?: BaasFunctionLogOptions, opts?: HttpCallOptions): Promise<{
|
|
5445
5492
|
logs: BaasFunctionLog[];
|
|
5446
5493
|
total: number;
|
|
5447
5494
|
}>;
|
|
5448
|
-
getStats(): Promise<any>;
|
|
5495
|
+
getStats(opts?: HttpCallOptions): Promise<any>;
|
|
5449
5496
|
}
|
|
5450
5497
|
export declare class MessagingClient {
|
|
5451
5498
|
private readonly http;
|
|
5452
5499
|
private readonly getAppId;
|
|
5453
5500
|
constructor(http: HttpClient, getAppId: () => string);
|
|
5454
|
-
createChannel(config: BaasChannelConfig): Promise<BaasChannelConfig & {
|
|
5501
|
+
createChannel(config: BaasChannelConfig, opts?: HttpCallOptions): Promise<BaasChannelConfig & {
|
|
5455
5502
|
channelId: string;
|
|
5456
5503
|
}>;
|
|
5457
|
-
deleteChannel(channelId: string): Promise<{
|
|
5504
|
+
deleteChannel(channelId: string, opts?: HttpCallOptions): Promise<{
|
|
5458
5505
|
success: boolean;
|
|
5459
5506
|
}>;
|
|
5460
|
-
getChannel(channelId: string): Promise<BaasChannelConfig & {
|
|
5507
|
+
getChannel(channelId: string, opts?: HttpCallOptions): Promise<BaasChannelConfig & {
|
|
5461
5508
|
channelId: string;
|
|
5462
5509
|
messageCount: number;
|
|
5463
5510
|
}>;
|
|
5464
|
-
listChannels(): Promise<{
|
|
5511
|
+
listChannels(opts?: HttpCallOptions): Promise<{
|
|
5465
5512
|
channels: Array<BaasChannelConfig & {
|
|
5466
5513
|
channelId: string;
|
|
5467
5514
|
}>;
|
|
5468
5515
|
total: number;
|
|
5469
5516
|
}>;
|
|
5470
|
-
publish(channel: string, message: Record<string, unknown>, metadata?: Record<string, unknown
|
|
5471
|
-
getHistory(channel: string, options?: BaasHistoryOptions): Promise<{
|
|
5517
|
+
publish(channel: string, message: Record<string, unknown>, metadata?: Record<string, unknown>, opts?: HttpCallOptions): Promise<BaasPublishResult>;
|
|
5518
|
+
getHistory(channel: string, options?: BaasHistoryOptions, opts?: HttpCallOptions): Promise<{
|
|
5472
5519
|
messages: BaasMessage[];
|
|
5473
5520
|
total: number;
|
|
5474
5521
|
hasMore: boolean;
|
|
5475
5522
|
}>;
|
|
5476
|
-
setPresence(channel: string, member: BaasPresenceMember): Promise<{
|
|
5523
|
+
setPresence(channel: string, member: BaasPresenceMember, opts?: HttpCallOptions): Promise<{
|
|
5477
5524
|
success: boolean;
|
|
5478
5525
|
}>;
|
|
5479
|
-
removePresence(channel: string, clientId: string): Promise<{
|
|
5526
|
+
removePresence(channel: string, clientId: string, opts?: HttpCallOptions): Promise<{
|
|
5480
5527
|
success: boolean;
|
|
5481
5528
|
}>;
|
|
5482
|
-
getPresence(channel: string): Promise<BaasPresenceInfo>;
|
|
5483
|
-
getStats(): Promise<any>;
|
|
5529
|
+
getPresence(channel: string, opts?: HttpCallOptions): Promise<BaasPresenceInfo>;
|
|
5530
|
+
getStats(opts?: HttpCallOptions): Promise<any>;
|
|
5484
5531
|
}
|
|
5485
5532
|
export type CustomerSessionChallenge = {
|
|
5486
5533
|
challenge: string;
|
|
@@ -5507,7 +5554,7 @@ export type CustomerSessionInfo = {
|
|
|
5507
5554
|
customerAddress: string;
|
|
5508
5555
|
subscriptionContext?: {
|
|
5509
5556
|
nftSerial: number;
|
|
5510
|
-
tier: "
|
|
5557
|
+
tier: "builder" | "growth" | "scale" | "enterprise";
|
|
5511
5558
|
expiresAt: string;
|
|
5512
5559
|
allowedAutomations?: string[];
|
|
5513
5560
|
};
|
|
@@ -25151,17 +25198,40 @@ type CreateTokenRequest$1 = {
|
|
|
25151
25198
|
initialSupply?: string;
|
|
25152
25199
|
ruleRef: RuleRef;
|
|
25153
25200
|
memo?: string;
|
|
25201
|
+
securityMode?: EntitySecurityMode;
|
|
25202
|
+
payerAccountId?: string;
|
|
25203
|
+
fundWith?: FundWith;
|
|
25154
25204
|
};
|
|
25205
|
+
export type EntitySecurityMode = "partial" | "full";
|
|
25206
|
+
export type PreparedEntityCreation = {
|
|
25207
|
+
entityId: string;
|
|
25208
|
+
chain: ChainType;
|
|
25209
|
+
address: string;
|
|
25210
|
+
reserveRequirement: string;
|
|
25211
|
+
prepared: PreparedTransaction[];
|
|
25212
|
+
};
|
|
25213
|
+
export type FundWith = (prepared: PreparedTransaction[], ctx: {
|
|
25214
|
+
address: string;
|
|
25215
|
+
reserveRequirement: string;
|
|
25216
|
+
}) => Promise<{
|
|
25217
|
+
signedFundingBlob?: string;
|
|
25218
|
+
} | void>;
|
|
25155
25219
|
type CreateAccountRequest$1 = {
|
|
25156
25220
|
chain: ChainType;
|
|
25157
25221
|
ruleRef: RuleRef;
|
|
25158
25222
|
initialBalance?: string;
|
|
25159
25223
|
publicKey?: string;
|
|
25224
|
+
securityMode?: EntitySecurityMode;
|
|
25225
|
+
payerAccountId?: string;
|
|
25226
|
+
fundWith?: FundWith;
|
|
25160
25227
|
};
|
|
25161
25228
|
export type CreateTopicRequest = {
|
|
25162
25229
|
chain: ChainType;
|
|
25163
25230
|
ruleRef: RuleRef;
|
|
25164
25231
|
memo?: string;
|
|
25232
|
+
securityMode?: EntitySecurityMode;
|
|
25233
|
+
payerAccountId?: string;
|
|
25234
|
+
fundWith?: FundWith;
|
|
25165
25235
|
};
|
|
25166
25236
|
export type CreateAgentRequest = {
|
|
25167
25237
|
primaryChain: ChainType;
|
|
@@ -25221,8 +25291,34 @@ export type LaunchpadEntityResult = {
|
|
|
25221
25291
|
export declare class EntitiesClient {
|
|
25222
25292
|
private readonly http;
|
|
25223
25293
|
constructor(http: HttpClient);
|
|
25294
|
+
private static readonly PAYER_FUNDED_TOKEN_CHAINS;
|
|
25295
|
+
prepareCreateToken(req: Omit<CreateTokenRequest$1, "fundWith">): Promise<PreparedEntityCreation>;
|
|
25296
|
+
executeCreateToken(req: {
|
|
25297
|
+
entityId: string;
|
|
25298
|
+
chain: ChainType;
|
|
25299
|
+
securityMode?: EntitySecurityMode;
|
|
25300
|
+
createTxId?: string;
|
|
25301
|
+
signedFundingBlob?: string;
|
|
25302
|
+
}): Promise<EntityCreationResult>;
|
|
25224
25303
|
createToken(req: CreateTokenRequest$1): Promise<EntityCreationResult>;
|
|
25304
|
+
prepareCreateAccount(req: Omit<CreateAccountRequest$1, "fundWith">): Promise<PreparedEntityCreation>;
|
|
25305
|
+
executeCreateAccount(req: {
|
|
25306
|
+
entityId: string;
|
|
25307
|
+
chain: ChainType;
|
|
25308
|
+
securityMode?: EntitySecurityMode;
|
|
25309
|
+
signedFundingBlob?: string;
|
|
25310
|
+
createTxId?: string;
|
|
25311
|
+
}): Promise<EntityCreationResult>;
|
|
25312
|
+
private static readonly PAYER_FUNDED_CREATE_CHAINS;
|
|
25313
|
+
private static readonly FUNDING_BLOB_RELAY_CHAINS;
|
|
25225
25314
|
createAccount(req: CreateAccountRequest$1): Promise<EntityCreationResult>;
|
|
25315
|
+
prepareCreateTopic(req: Omit<CreateTopicRequest, "fundWith">): Promise<PreparedEntityCreation>;
|
|
25316
|
+
executeCreateTopic(req: {
|
|
25317
|
+
entityId: string;
|
|
25318
|
+
chain: ChainType;
|
|
25319
|
+
createTxId: string;
|
|
25320
|
+
securityMode?: EntitySecurityMode;
|
|
25321
|
+
}): Promise<EntityCreationResult>;
|
|
25226
25322
|
createTopic(req: CreateTopicRequest): Promise<EntityCreationResult>;
|
|
25227
25323
|
createAgent(req: CreateAgentRequest): Promise<EntityCreationResult>;
|
|
25228
25324
|
launchpad(req: LaunchpadEntityRequest): Promise<LaunchpadEntityResult>;
|
|
@@ -25261,6 +25357,7 @@ export declare class BaasClient {
|
|
|
25261
25357
|
private readonly timeout;
|
|
25262
25358
|
private readonly allowInsecure;
|
|
25263
25359
|
private readonly http;
|
|
25360
|
+
private readonly txHttp;
|
|
25264
25361
|
private lastHttpError?;
|
|
25265
25362
|
private authContext?;
|
|
25266
25363
|
readonly db: DatabaseClient;
|
|
@@ -25272,6 +25369,7 @@ export declare class BaasClient {
|
|
|
25272
25369
|
readonly customerSession: CustomerSessionClient;
|
|
25273
25370
|
readonly rules: RulesClient;
|
|
25274
25371
|
readonly entities: EntitiesClient;
|
|
25372
|
+
readonly transactions: TransactionsClient;
|
|
25275
25373
|
constructor(config: BaasClientConfig);
|
|
25276
25374
|
static connectToCluster(config: BaasConnectToClusterConfig): Promise<BaasClient>;
|
|
25277
25375
|
setAppId(appId: string): void;
|
|
@@ -25488,7 +25586,7 @@ declare namespace personhood {
|
|
|
25488
25586
|
export { PERSONHOOD_VERIFIER_NOT_CONFIGURED, PersonhoodAttestationMethod, PersonhoodCert, PersonhoodClient, PersonhoodProof, PersonhoodVerifyParams, isPersonhoodVerifierNotConfigured };
|
|
25489
25587
|
}
|
|
25490
25588
|
declare namespace baas {
|
|
25491
|
-
export { AgentBalance, AgentEvent, AgentFundRequest, AgentInfo, AgentOperation, AgentRegisterRequest, AgentRules, AgentRulesValidationResult, AgentStatus, AgentTradeRequest, AgentWithdrawRequest, AgentsClient, AuthenticateOptions, BaasAppListResponse, BaasAuthConfig, BaasAuthResult, BaasChallengeRequest, BaasChallengeResponse, BaasChannelConfig, BaasClient, BaasClientConfig, BaasConnectToClusterConfig, BaasDeleteResult, BaasDeployRequest, BaasDeployResponse, BaasDocument, BaasEndpoints, BaasError, BaasErrorDetails, BaasErrorResponse, BaasFileInfo, BaasFileMetadata, BaasFindResult, BaasFunctionDeployRequest, BaasFunctionDeployResult, BaasFunctionInfo, BaasFunctionLog, BaasFunctionLogOptions, BaasFunctionResources, BaasFunctionResult, BaasFunctionRuntime, BaasHistoryOptions, BaasInitRequest, BaasInitResponse, BaasInsertResult, BaasMerkleProof, BaasMessage, BaasPresenceInfo, BaasPresenceMember, BaasPublishResult, BaasQueryOptions, BaasRevokeKekResponse, BaasRollbackRequest, BaasRotateKekResponse, BaasRuntimeStatus, BaasService, BaasSessionInfo, BaasSetWebhookResponse, BaasStateTransition, BaasStorageUsage, BaasSupportedChain, BaasTriggerType, BaasUpdateResult, BaasUploadFrontendResponse, BaasUploadResult, BaasVerifyRequest, ChannelSubscription, CreateAccountRequest$1 as BaasCreateAccountRequest, CreateAgentRequest, CreateTokenRequest$1 as CreateTokenRequest, CreateTopicRequest, DatabaseClient, DatabaseStatsResponse, DbComparisonOperator, DbDocument, DbQuery, DeployedApp, DeployedAppInfo, DeployedAppLimits, DeployedAppStatus, DeployedAppUsage, DeploymentClient, DeprecateRuleResponse, DocumentProofResponse, EntitiesClient, EntityCreationResult, EntityInfo, EntityType$1 as BaasEntityType, FunctionsClient, LaunchpadEntityRequest, LaunchpadEntityResult, ListEntitiesFilter, ListEntitiesResponse, ListRulesFilter, ListRulesResponse, MessageHandler, MessagingClient, PublishRuleResponse, RulesClient, SimulateRuleRequest, StateRootResponse, StateTransitionsResponse, StorageClient, ValidationResult, VersionHistoryResponse, validateAgentRules };
|
|
25589
|
+
export { AgentBalance, AgentEvent, AgentFundRequest, AgentInfo, AgentOperation, AgentRegisterRequest, AgentRules, AgentRulesValidationResult, AgentStatus, AgentTradeRequest, AgentWithdrawRequest, AgentsClient, AuthenticateOptions, BaasAppListResponse, BaasAuthConfig, BaasAuthResult, BaasChallengeRequest, BaasChallengeResponse, BaasChannelConfig, BaasClient, BaasClientConfig, BaasConnectToClusterConfig, BaasDeleteResult, BaasDeployRequest, BaasDeployResponse, BaasDocument, BaasEndpoints, BaasError, BaasErrorDetails, BaasErrorResponse, BaasFileInfo, BaasFileMetadata, BaasFindResult, BaasFunctionDeployRequest, BaasFunctionDeployResult, BaasFunctionEvalRequest, BaasFunctionInfo, BaasFunctionLog, BaasFunctionLogOptions, BaasFunctionResources, BaasFunctionResult, BaasFunctionRuntime, BaasHistoryOptions, BaasInitRequest, BaasInitResponse, BaasInsertResult, BaasMerkleProof, BaasMessage, BaasPresenceInfo, BaasPresenceMember, BaasPublishResult, BaasQueryOptions, BaasReissuePushCredentialsResponse, BaasRevokeKekResponse, BaasRollbackRequest, BaasRotateKekResponse, BaasRuntimeStatus, BaasService, BaasSessionInfo, BaasSetWebhookResponse, BaasSignedCode, BaasStateTransition, BaasStorageUsage, BaasSupportedChain, BaasTriggerType, BaasUpdateResult, BaasUploadFrontendResponse, BaasUploadResult, BaasVerifyRequest, ChannelSubscription, CreateAccountRequest$1 as BaasCreateAccountRequest, CreateAgentRequest, CreateTokenRequest$1 as CreateTokenRequest, CreateTopicRequest, DatabaseClient, DatabaseStatsResponse, DbComparisonOperator, DbDocument, DbQuery, DeployedApp, DeployedAppInfo, DeployedAppLimits, DeployedAppStatus, DeployedAppUsage, DeploymentClient, DeprecateRuleResponse, DocumentProofResponse, EntitiesClient, EntityCreationResult, EntityInfo, EntitySecurityMode, EntityType$1 as BaasEntityType, FunctionsClient, FundWith, LaunchpadEntityRequest, LaunchpadEntityResult, ListEntitiesFilter, ListEntitiesResponse, ListRulesFilter, ListRulesResponse, MessageHandler, MessagingClient, PreparedEntityCreation, PublishRuleResponse, RulesClient, SimulateRuleRequest, StateRootResponse, StateTransitionsResponse, StorageClient, ValidationResult, VersionHistoryResponse, validateAgentRules };
|
|
25492
25590
|
}
|
|
25493
25591
|
declare namespace pqcVerify {
|
|
25494
25592
|
export { FetchRegistryOptions, PqcCertV1, PqcCertV1Schema, PqcCertV1Signer, ValidatorRegistrySnapshot, VerifyResult, fetchRegistrySnapshot, parsePqcCert, verifyPqcAttestation };
|