Skip to content

Commit 1ef0e67

Browse files
committed
[AUTOMATED] Update: api/proto/clients/api.gen.ts
1 parent d98eec5 commit 1ef0e67

File tree

1 file changed

+132
-2
lines changed

1 file changed

+132
-2
lines changed

packages/api/src/api.gen.ts

Lines changed: 132 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
// sequence-api v0.4.0 01e4e5d5ce5e7b85514f2db2fb5b346229db727c
2+
// sequence-api v0.4.0 6b7fcc42d4305cdb3ebaf2b4a17b5c81da3b9edd
33
// --
44
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
55
//
@@ -16,7 +16,7 @@ export const WebRPCVersion = 'v1'
1616
export const WebRPCSchemaVersion = 'v0.4.0'
1717

1818
// Schema hash generated from your RIDL schema
19-
export const WebRPCSchemaHash = '01e4e5d5ce5e7b85514f2db2fb5b346229db727c'
19+
export const WebRPCSchemaHash = '6b7fcc42d4305cdb3ebaf2b4a17b5c81da3b9edd'
2020

2121
type WebrpcGenVersions = {
2222
webrpcGenVersion: string
@@ -240,10 +240,20 @@ export interface IntentConfig {
240240
mainSigner: string
241241
calls: Array<IntentCallsPayload>
242242
preconditions: Array<IntentPrecondition>
243+
executionStatus?: string
244+
metaTxnId?: string
245+
txnHash?: string
243246
updatedAt?: string
244247
createdAt?: string
245248
}
246249

250+
export interface MetaTxnReceipt {
251+
metaTxID: string
252+
status: string
253+
txnReceipt?: string
254+
revertReason?: string
255+
}
256+
247257
export interface InviteCode {
248258
usesLeft: number
249259
ownerAccount: string
@@ -1271,6 +1281,23 @@ export interface API {
12711281
*/
12721282
getCCTPTransfer(args: GetCCTPTransferArgs, headers?: object, signal?: AbortSignal): Promise<GetCCTPTransferReturn>
12731283
queueCCTPTransfer(args: QueueCCTPTransferArgs, headers?: object, signal?: AbortSignal): Promise<QueueCCTPTransferReturn>
1284+
/**
1285+
*
1286+
* Intent Machine Worker
1287+
*
1288+
*/
1289+
queueIntentConfigExecution(
1290+
args: QueueIntentConfigExecutionArgs,
1291+
headers?: object,
1292+
signal?: AbortSignal
1293+
): Promise<QueueIntentConfigExecutionReturn>
1294+
getIntentConfigExecutionStatus(
1295+
args: GetIntentConfigExecutionStatusArgs,
1296+
headers?: object,
1297+
signal?: AbortSignal
1298+
): Promise<GetIntentConfigExecutionStatusReturn>
1299+
listIntentConfigs(args: ListIntentConfigsArgs, headers?: object, signal?: AbortSignal): Promise<ListIntentConfigsReturn>
1300+
queueMetaTxnReceipt(args: QueueMetaTxnReceiptArgs, headers?: object, signal?: AbortSignal): Promise<QueueMetaTxnReceiptReturn>
12741301
}
12751302

12761303
export interface PingArgs {}
@@ -1996,6 +2023,36 @@ export interface QueueCCTPTransferArgs {
19962023
export interface QueueCCTPTransferReturn {
19972024
transfer: CCTPTransfer
19982025
}
2026+
export interface QueueIntentConfigExecutionArgs {
2027+
intentConfigId: number
2028+
}
2029+
2030+
export interface QueueIntentConfigExecutionReturn {
2031+
status: boolean
2032+
}
2033+
export interface GetIntentConfigExecutionStatusArgs {
2034+
intentConfigId: number
2035+
}
2036+
2037+
export interface GetIntentConfigExecutionStatusReturn {
2038+
executionStatus: string
2039+
}
2040+
export interface ListIntentConfigsArgs {
2041+
page?: Page
2042+
executionStatus?: string
2043+
}
2044+
2045+
export interface ListIntentConfigsReturn {
2046+
page: Page
2047+
intentConfigs: Array<IntentConfig>
2048+
}
2049+
export interface QueueMetaTxnReceiptArgs {
2050+
metaTxID: string
2051+
}
2052+
2053+
export interface QueueMetaTxnReceiptReturn {
2054+
status: boolean
2055+
}
19992056

20002057
//
20012058
// Client
@@ -3561,6 +3618,79 @@ export class API implements API {
35613618
}
35623619
)
35633620
}
3621+
3622+
queueIntentConfigExecution = (
3623+
args: QueueIntentConfigExecutionArgs,
3624+
headers?: object,
3625+
signal?: AbortSignal
3626+
): Promise<QueueIntentConfigExecutionReturn> => {
3627+
return this.fetch(this.url('QueueIntentConfigExecution'), createHTTPRequest(args, headers, signal)).then(
3628+
res => {
3629+
return buildResponse(res).then(_data => {
3630+
return {
3631+
status: <boolean>_data.status
3632+
}
3633+
})
3634+
},
3635+
error => {
3636+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
3637+
}
3638+
)
3639+
}
3640+
3641+
getIntentConfigExecutionStatus = (
3642+
args: GetIntentConfigExecutionStatusArgs,
3643+
headers?: object,
3644+
signal?: AbortSignal
3645+
): Promise<GetIntentConfigExecutionStatusReturn> => {
3646+
return this.fetch(this.url('GetIntentConfigExecutionStatus'), createHTTPRequest(args, headers, signal)).then(
3647+
res => {
3648+
return buildResponse(res).then(_data => {
3649+
return {
3650+
executionStatus: <string>_data.executionStatus
3651+
}
3652+
})
3653+
},
3654+
error => {
3655+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
3656+
}
3657+
)
3658+
}
3659+
3660+
listIntentConfigs = (args: ListIntentConfigsArgs, headers?: object, signal?: AbortSignal): Promise<ListIntentConfigsReturn> => {
3661+
return this.fetch(this.url('ListIntentConfigs'), createHTTPRequest(args, headers, signal)).then(
3662+
res => {
3663+
return buildResponse(res).then(_data => {
3664+
return {
3665+
page: <Page>_data.page,
3666+
intentConfigs: <Array<IntentConfig>>_data.intentConfigs
3667+
}
3668+
})
3669+
},
3670+
error => {
3671+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
3672+
}
3673+
)
3674+
}
3675+
3676+
queueMetaTxnReceipt = (
3677+
args: QueueMetaTxnReceiptArgs,
3678+
headers?: object,
3679+
signal?: AbortSignal
3680+
): Promise<QueueMetaTxnReceiptReturn> => {
3681+
return this.fetch(this.url('QueueMetaTxnReceipt'), createHTTPRequest(args, headers, signal)).then(
3682+
res => {
3683+
return buildResponse(res).then(_data => {
3684+
return {
3685+
status: <boolean>_data.status
3686+
}
3687+
})
3688+
},
3689+
error => {
3690+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
3691+
}
3692+
)
3693+
}
35643694
}
35653695

35663696
const createHTTPRequest = (body: object = {}, headers: object = {}, signal: AbortSignal | null = null): object => {

0 commit comments

Comments
 (0)