@@ -65,6 +65,9 @@ export type FireFlyOrganizationFilter = operations['getNetworkOrgs']['parameters
65
65
export type FireFlyNodeFilter = operations [ 'getNetworkNodes' ] [ 'parameters' ] [ 'query' ] ;
66
66
export type FireFlyVerifierFilter = operations [ 'getVerifiers' ] [ 'parameters' ] [ 'query' ] ;
67
67
68
+ export type FireFlyIdentityResponse = Required <
69
+ operations [ 'getIdentityByID' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ]
70
+ > ;
68
71
export type FireFlyOrganizationResponse = Required <
69
72
operations [ 'getNetworkOrg' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ]
70
73
> ;
@@ -108,14 +111,13 @@ export interface FireFlyEphemeralSubscription extends FireFlySubscriptionBase {
108
111
}
109
112
110
113
export interface FireFlyEnrichedEvent extends FireFlyEventResponse {
111
- blockchainEvent ?: unknown ;
112
- contractAPI ?: unknown ;
113
- contractInterface ?: unknown ;
114
+ blockchainEvent ?: FireFlyBlockchainEventResponse ;
115
+ contractAPI ?: FireFlyContractAPIResponse ;
116
+ contractInterface ?: FireFlyContractInterfaceResponse ;
114
117
datatype ?: FireFlyDatatypeResponse ;
115
- identity ?: unknown ;
118
+ identity ?: FireFlyIdentityResponse ;
116
119
message ?: FireFlyMessageResponse ;
117
- namespaceDetails ?: unknown ;
118
- tokenApproval ?: unknown ;
120
+ tokenApproval ?: FireFlyTokenApprovalResponse ;
119
121
tokenPool ?: FireFlyTokenPoolResponse ;
120
122
tokenTransfer ?: FireFlyTokenTransferResponse ;
121
123
transaction ?: FireFlyTransactionResponse ;
@@ -201,9 +203,18 @@ export type FireFlyTokenTransferResponse = Required<
201
203
202
204
export type FireFlyTokenBalanceFilter = operations [ 'getTokenBalances' ] [ 'parameters' ] [ 'query' ] ;
203
205
204
- export type FireFlyTokenBalanceResponse = Required <
206
+ type BalancesList = Required <
205
207
operations [ 'getTokenBalances' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ]
206
208
> ;
209
+ const balances : BalancesList = [ ] ;
210
+ export type FireFlyTokenBalanceResponse = typeof balances [ 0 ] ;
211
+
212
+ // Token Approvals
213
+
214
+ type ApprovalsList =
215
+ operations [ 'getTokenApprovals' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ] ;
216
+ const approvals : ApprovalsList = [ ] ;
217
+ export type FireFlyTokenApprovalResponse = typeof approvals [ 0 ] ;
207
218
208
219
// Operations + Transactions
209
220
@@ -259,3 +270,9 @@ export type FireFlyContractAPIQueryRequest =
259
270
export type FireFlyContractQueryResponse = Required <
260
271
operations [ 'postContractQuery' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ]
261
272
> ;
273
+
274
+ // Blockchain Events
275
+
276
+ export type FireFlyBlockchainEventResponse = Required <
277
+ operations [ 'getBlockchainEventByID' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ]
278
+ > ;
0 commit comments