diff --git a/packages/cre-sdk/src/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.ts b/packages/cre-sdk/src/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.ts index 584ec770..b29d57ee 100644 --- a/packages/cre-sdk/src/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.ts +++ b/packages/cre-sdk/src/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.ts @@ -1,5 +1,5 @@ import { create, fromJson } from '@bufbuild/protobuf' -import { type Any, AnySchema, anyPack, type Empty, EmptySchema } from '@bufbuild/protobuf/wkt' +import { type Any, AnySchema, anyPack } from '@bufbuild/protobuf/wkt' import { type BalanceAtReply, BalanceAtReplySchema, @@ -44,12 +44,6 @@ import { HeaderByNumberRequestSchema, type Log, LogSchema, - type RegisterLogTrackingRequest, - type RegisterLogTrackingRequestJson, - RegisterLogTrackingRequestSchema, - type UnregisterLogTrackingRequest, - type UnregisterLogTrackingRequestJson, - UnregisterLogTrackingRequestSchema, type WriteReportReply, WriteReportReplySchema, type WriteReportRequest, @@ -134,13 +128,17 @@ export class ClientCapability { 'binance_smart_chain-testnet-opbnb-1': 13274425992935471758n, 'ethereum-mainnet': 5009297550715157269n, 'ethereum-mainnet-arbitrum-1': 4949039107694359620n, + 'ethereum-mainnet-base-1': 15971525489660198786n, 'ethereum-mainnet-optimism-1': 3734403246176062136n, + 'ethereum-mainnet-zksync-1': 1562403441176082196n, 'ethereum-testnet-sepolia': 16015286601757825753n, 'ethereum-testnet-sepolia-arbitrum-1': 3478487238524512106n, 'ethereum-testnet-sepolia-base-1': 10344971235874465080n, 'ethereum-testnet-sepolia-optimism-1': 5224473277236331295n, + 'ethereum-testnet-sepolia-zksync-1': 6898391096552792247n, 'polygon-mainnet': 4051577828743386545n, 'polygon-testnet-amoy': 16281711391670634445n, + 'private-testnet-andesite': 6915682381028791124n, } as const constructor(private readonly ChainSelector: bigint) {} @@ -402,79 +400,6 @@ export class ClientCapability { } } - registerLogTracking( - runtime: Runtime, - input: RegisterLogTrackingRequest | RegisterLogTrackingRequestJson, - ): { result: () => Empty } { - // Handle input conversion - unwrap if it's a wrapped type, convert from JSON if needed - let payload: RegisterLogTrackingRequest - - if ((input as unknown as { $typeName?: string }).$typeName) { - // It's the original protobuf type - payload = input as RegisterLogTrackingRequest - } else { - // It's regular JSON, convert using fromJson - payload = fromJson(RegisterLogTrackingRequestSchema, input as RegisterLogTrackingRequestJson) - } - - // Include all labels in capability ID for routing when specified - const capabilityId = `${ClientCapability.CAPABILITY_NAME}:ChainSelector:${this.ChainSelector}@${ClientCapability.CAPABILITY_VERSION}` - - const capabilityResponse = runtime.callCapability({ - capabilityId, - method: 'RegisterLogTracking', - payload, - inputSchema: RegisterLogTrackingRequestSchema, - outputSchema: EmptySchema, - }) - - return { - result: () => { - const result = capabilityResponse.result() - - return result - }, - } - } - - unregisterLogTracking( - runtime: Runtime, - input: UnregisterLogTrackingRequest | UnregisterLogTrackingRequestJson, - ): { result: () => Empty } { - // Handle input conversion - unwrap if it's a wrapped type, convert from JSON if needed - let payload: UnregisterLogTrackingRequest - - if ((input as unknown as { $typeName?: string }).$typeName) { - // It's the original protobuf type - payload = input as UnregisterLogTrackingRequest - } else { - // It's regular JSON, convert using fromJson - payload = fromJson( - UnregisterLogTrackingRequestSchema, - input as UnregisterLogTrackingRequestJson, - ) - } - - // Include all labels in capability ID for routing when specified - const capabilityId = `${ClientCapability.CAPABILITY_NAME}:ChainSelector:${this.ChainSelector}@${ClientCapability.CAPABILITY_VERSION}` - - const capabilityResponse = runtime.callCapability({ - capabilityId, - method: 'UnregisterLogTracking', - payload, - inputSchema: UnregisterLogTrackingRequestSchema, - outputSchema: EmptySchema, - }) - - return { - result: () => { - const result = capabilityResponse.result() - - return result - }, - } - } - logTrigger(config: FilterLogTriggerRequestJson): ClientLogTrigger { // Include all labels in capability ID for routing when specified const capabilityId = `${ClientCapability.CAPABILITY_NAME}:ChainSelector:${this.ChainSelector}@${ClientCapability.CAPABILITY_VERSION}` diff --git a/packages/cre-sdk/src/generated/capabilities/blockchain/evm/v1alpha/client_pb.ts b/packages/cre-sdk/src/generated/capabilities/blockchain/evm/v1alpha/client_pb.ts index 4d1442da..baf78bc1 100644 --- a/packages/cre-sdk/src/generated/capabilities/blockchain/evm/v1alpha/client_pb.ts +++ b/packages/cre-sdk/src/generated/capabilities/blockchain/evm/v1alpha/client_pb.ts @@ -5,8 +5,6 @@ import type { Message } from '@bufbuild/protobuf' import type { GenEnum, GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2' import { enumDesc, fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2' -import type { EmptySchema } from '@bufbuild/protobuf/wkt' -import { file_google_protobuf_empty } from '@bufbuild/protobuf/wkt' import type { ReportResponse, ReportResponseJson } from '../../../../sdk/v1alpha/sdk_pb' import { file_sdk_v1alpha_sdk } from '../../../../sdk/v1alpha/sdk_pb' import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/generator/v1alpha/cre_metadata_pb' @@ -19,13 +17,8 @@ import { file_values_v1_values } from '../../../../values/v1/values_pb' export const file_capabilities_blockchain_evm_v1alpha_client: GenFile = /*@__PURE__*/ fileDesc( - 'CjBjYXBhYmlsaXRpZXMvYmxvY2tjaGFpbi9ldm0vdjFhbHBoYS9jbGllbnQucHJvdG8SI2NhcGFiaWxpdGllcy5ibG9ja2NoYWluLmV2bS52MWFscGhhIh0KC1RvcGljVmFsdWVzEg4KBnZhbHVlcxgBIAMoDCK4AQoXRmlsdGVyTG9nVHJpZ2dlclJlcXVlc3QSEQoJYWRkcmVzc2VzGAEgAygMEkAKBnRvcGljcxgCIAMoCzIwLmNhcGFiaWxpdGllcy5ibG9ja2NoYWluLmV2bS52MWFscGhhLlRvcGljVmFsdWVzEkgKCmNvbmZpZGVuY2UYAyABKA4yNC5jYXBhYmlsaXRpZXMuYmxvY2tjaGFpbi5ldm0udjFhbHBoYS5Db25maWRlbmNlTGV2ZWwiego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mNoZS1tYWlubmV0ENXnisDh1ZikWQojChZhdmFsYW5jaGUtdGVzdG5ldC1mdWppEJv5/JCi46j4zAEKLwojYmluYW5jZV9zbWFydF9jaGFpbi1tYWlubmV0LW9wYm5iLTEQia2P75PG17sGCjAKI2JpbmFuY2Vfc21hcnRfY2hhaW4tdGVzdG5ldC1vcGJuYi0xEI71hZHBg4+cuAEKHAoQZXRoZXJldW0tbWFpbm5ldBCV9vHkz7KmwkUKJwobZXRoZXJldW0tbWFpbm5ldC1hcmJpdHJ1bS0xEMTojc2Om6HXRAonChtldGhlcmV1bS1tYWlubmV0LW9wdGltaXNtLTEQuJWPw/f+0OkzCiUKGGV0aGVyZXVtLXRlc3RuZXQtc2Vwb2xpYRDZteTO/MnuoN4BCi8KI2V0aGVyZXVtLXRlc3RuZXQtc2Vwb2xpYS1hcmJpdHJ1bS0xEOrO7v/qtoSjMAosCh9ldGhlcmV1bS10ZXN0bmV0LXNlcG9saWEtYmFzZS0xELjKue/2kK7IjwEKLwojZXRoZXJldW0tdGVzdG5ldC1zZXBvbGlhLW9wdGltaXNtLTEQn4bFob7Yw8BIChsKD3BvbHlnb24tbWFpbm5ldBCxq+TwmpKGnTgKIQoUcG9seWdvbi10ZXN0bmV0LWFtb3kQzY/W3/HHkPrhAULlAQonY29tLmNhcGFiaWxpdGllcy5ibG9ja2NoYWluLmV2bS52MWFscGhhQgtDbGllbnRQcm90b1ABogIDQ0JFqgIjQ2FwYWJpbGl0aWVzLkJsb2NrY2hhaW4uRXZtLlYxYWxwaGHKAiNDYXBhYmlsaXRpZXNcQmxvY2tjaGFpblxFdm1cVjFhbHBoYeICL0NhcGFiaWxpdGllc1xCbG9ja2NoYWluXEV2bVxWMWFscGhhXEdQQk1ldGFkYXRh6gImQ2FwYWJpbGl0aWVzOjpCbG9ja2NoYWluOjpFdm06OlYxYWxwaGFiBnByb3RvMw', - [ - file_google_protobuf_empty, - file_sdk_v1alpha_sdk, - file_tools_generator_v1alpha_cre_metadata, - file_values_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5uZXQtYmFzZS0xEIL/q6L+uZDT3QEKJwobZXRoZXJldW0tbWFpbm5ldC1vcHRpbWlzbS0xELiVj8P3/tDpMwolChlldGhlcmV1bS1tYWlubmV0LXprc3luYy0xEJTul9nttLHXFQolChhldGhlcmV1bS10ZXN0bmV0LXNlcG9saWEQ2bXkzvzJ7qDeAQovCiNldGhlcmV1bS10ZXN0bmV0LXNlcG9saWEtYXJiaXRydW0tMRDqzu7/6raEozAKLAofZXRoZXJldW0tdGVzdG5ldC1zZXBvbGlhLWJhc2UtMRC4yrnv9pCuyI8BCi8KI2V0aGVyZXVtLXRlc3RuZXQtc2Vwb2xpYS1vcHRpbWlzbS0xEJ+GxaG+2MPASAotCiFldGhlcmV1bS10ZXN0bmV0LXNlcG9saWEtemtzeW5jLTEQt8H8/fLEgN5fChsKD3BvbHlnb24tbWFpbm5ldBCxq+TwmpKGnTgKIQoUcG9seWdvbi10ZXN0bmV0LWFtb3kQzY/W3/HHkPrhAQokChhwcml2YXRlLXRlc3RuZXQtYW5kZXNpdGUQ1KaYpcGP3PxfQuUBCidjb20uY2FwYWJpbGl0aWVzLmJsb2NrY2hhaW4uZXZtLnYxYWxwaGFCC0NsaWVudFByb3RvUAGiAgNDQkWqAiNDYXBhYmlsaXRpZXMuQmxvY2tjaGFpbi5Fdm0uVjFhbHBoYcoCI0NhcGFiaWxpdGllc1xCbG9ja2NoYWluXEV2bVxWMWFscGhh4gIvQ2FwYWJpbGl0aWVzXEJsb2NrY2hhaW5cRXZtXFYxYWxwaGFcR1BCTWV0YWRhdGHqAiZDYXBhYmlsaXRpZXM6OkJsb2NrY2hhaW46OkV2bTo6VjFhbHBoYWIGcHJvdG8z', + [file_sdk_v1alpha_sdk, file_tools_generator_v1alpha_cre_metadata, file_values_v1_values], ) /** @@ -1298,210 +1291,6 @@ export const HeaderSchema: GenMessage = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 22) -/** - * @generated from message capabilities.blockchain.evm.v1alpha.RegisterLogTrackingRequest - */ -export type RegisterLogTrackingRequest = - Message<'capabilities.blockchain.evm.v1alpha.RegisterLogTrackingRequest'> & { - /** - * @generated from field: capabilities.blockchain.evm.v1alpha.LPFilter filter = 1; - */ - filter?: LPFilter - } - -/** - * @generated from message capabilities.blockchain.evm.v1alpha.RegisterLogTrackingRequest - */ -export type RegisterLogTrackingRequestJson = { - /** - * @generated from field: capabilities.blockchain.evm.v1alpha.LPFilter filter = 1; - */ - filter?: LPFilterJson -} - -/** - * Describes the message capabilities.blockchain.evm.v1alpha.RegisterLogTrackingRequest. - * Use `create(RegisterLogTrackingRequestSchema)` to create a new message. - */ -export const RegisterLogTrackingRequestSchema: GenMessage< - RegisterLogTrackingRequest, - { jsonType: RegisterLogTrackingRequestJson } -> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 23) - -/** - * @generated from message capabilities.blockchain.evm.v1alpha.LPFilter - */ -export type LPFilter = Message<'capabilities.blockchain.evm.v1alpha.LPFilter'> & { - /** - * maximum number of logs to retain ( 0 = unlimited ) - * - * @generated from field: uint64 max_logs_kept = 1 [jstype = JS_NORMAL]; - */ - maxLogsKept: bigint - - /** - * maximum amount of time to retain logs in seconds - * - * @generated from field: int64 retention_time = 2 [jstype = JS_NORMAL]; - */ - retentionTime: bigint - - /** - * rate limit ( maximum # of logs per block, 0 = unlimited ) - * - * @generated from field: uint64 logs_per_block = 3 [jstype = JS_NORMAL]; - */ - logsPerBlock: bigint - - /** - * filter name, has to persist for removing filter - * - * @generated from field: string name = 4; - */ - name: string - - /** - * list of addresses to include in evm address [20]byte fix-sized array format - * - * @generated from field: repeated bytes addresses = 5; - */ - addresses: Uint8Array[] - - /** - * list of possible signatures (aka topic1), in [32]byte fix-sized array format - * - * @generated from field: repeated bytes event_sigs = 6; - */ - eventSigs: Uint8Array[] - - /** - * list of possible values for topic2, in [32]byte fix-sized array format - * - * @generated from field: repeated bytes topic2 = 7; - */ - topic2: Uint8Array[] - - /** - * list of possible values for topic3, in [32]byte fix-sized array format - * - * @generated from field: repeated bytes topic3 = 8; - */ - topic3: Uint8Array[] - - /** - * list of possible values for topic4, in [32]byte fix-sized array format - * - * @generated from field: repeated bytes topic4 = 9; - */ - topic4: Uint8Array[] -} - -/** - * @generated from message capabilities.blockchain.evm.v1alpha.LPFilter - */ -export type LPFilterJson = { - /** - * maximum number of logs to retain ( 0 = unlimited ) - * - * @generated from field: uint64 max_logs_kept = 1 [jstype = JS_NORMAL]; - */ - maxLogsKept?: string - - /** - * maximum amount of time to retain logs in seconds - * - * @generated from field: int64 retention_time = 2 [jstype = JS_NORMAL]; - */ - retentionTime?: string - - /** - * rate limit ( maximum # of logs per block, 0 = unlimited ) - * - * @generated from field: uint64 logs_per_block = 3 [jstype = JS_NORMAL]; - */ - logsPerBlock?: string - - /** - * filter name, has to persist for removing filter - * - * @generated from field: string name = 4; - */ - name?: string - - /** - * list of addresses to include in evm address [20]byte fix-sized array format - * - * @generated from field: repeated bytes addresses = 5; - */ - addresses?: string[] - - /** - * list of possible signatures (aka topic1), in [32]byte fix-sized array format - * - * @generated from field: repeated bytes event_sigs = 6; - */ - eventSigs?: string[] - - /** - * list of possible values for topic2, in [32]byte fix-sized array format - * - * @generated from field: repeated bytes topic2 = 7; - */ - topic2?: string[] - - /** - * list of possible values for topic3, in [32]byte fix-sized array format - * - * @generated from field: repeated bytes topic3 = 8; - */ - topic3?: string[] - - /** - * list of possible values for topic4, in [32]byte fix-sized array format - * - * @generated from field: repeated bytes topic4 = 9; - */ - topic4?: string[] -} - -/** - * Describes the message capabilities.blockchain.evm.v1alpha.LPFilter. - * Use `create(LPFilterSchema)` to create a new message. - */ -export const LPFilterSchema: GenMessage = - /*@__PURE__*/ - messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 24) - -/** - * @generated from message capabilities.blockchain.evm.v1alpha.UnregisterLogTrackingRequest - */ -export type UnregisterLogTrackingRequest = - Message<'capabilities.blockchain.evm.v1alpha.UnregisterLogTrackingRequest'> & { - /** - * @generated from field: string filter_name = 1; - */ - filterName: string - } - -/** - * @generated from message capabilities.blockchain.evm.v1alpha.UnregisterLogTrackingRequest - */ -export type UnregisterLogTrackingRequestJson = { - /** - * @generated from field: string filter_name = 1; - */ - filterName?: string -} - -/** - * Describes the message capabilities.blockchain.evm.v1alpha.UnregisterLogTrackingRequest. - * Use `create(UnregisterLogTrackingRequestSchema)` to create a new message. - */ -export const UnregisterLogTrackingRequestSchema: GenMessage< - UnregisterLogTrackingRequest, - { jsonType: UnregisterLogTrackingRequestJson } -> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 25) - /** * @generated from message capabilities.blockchain.evm.v1alpha.WriteReportRequest */ @@ -1550,7 +1339,7 @@ export type WriteReportRequestJson = { export const WriteReportRequestSchema: GenMessage< WriteReportRequest, { jsonType: WriteReportRequestJson } -> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 26) +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 23) /** * @generated from message capabilities.blockchain.evm.v1alpha.GasConfig @@ -1578,7 +1367,7 @@ export type GasConfigJson = { */ export const GasConfigSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 27) + messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 24) /** * @generated from message capabilities.blockchain.evm.v1alpha.WriteReportReply @@ -1647,7 +1436,7 @@ export type WriteReportReplyJson = { export const WriteReportReplySchema: GenMessage< WriteReportReply, { jsonType: WriteReportReplyJson } -> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 28) +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_evm_v1alpha_client, 25) /** * @generated from enum capabilities.blockchain.evm.v1alpha.ConfidenceLevel @@ -1806,22 +1595,6 @@ export const Client: GenService<{ input: typeof HeaderByNumberRequestSchema output: typeof HeaderByNumberReplySchema } - /** - * @generated from rpc capabilities.blockchain.evm.v1alpha.Client.RegisterLogTracking - */ - registerLogTracking: { - methodKind: 'unary' - input: typeof RegisterLogTrackingRequestSchema - output: typeof EmptySchema - } - /** - * @generated from rpc capabilities.blockchain.evm.v1alpha.Client.UnregisterLogTracking - */ - unregisterLogTracking: { - methodKind: 'unary' - input: typeof UnregisterLogTrackingRequestSchema - output: typeof EmptySchema - } /** * @generated from rpc capabilities.blockchain.evm.v1alpha.Client.LogTrigger */ diff --git a/packages/cre-sdk/src/generated/capabilities/blockchain/solana/v1alpha/client_pb.ts b/packages/cre-sdk/src/generated/capabilities/blockchain/solana/v1alpha/client_pb.ts new file mode 100644 index 00000000..2a277d62 --- /dev/null +++ b/packages/cre-sdk/src/generated/capabilities/blockchain/solana/v1alpha/client_pb.ts @@ -0,0 +1,3050 @@ +// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,import_extension=none,json_types=true,keep_empty_files=false" +// @generated from file capabilities/blockchain/solana/v1alpha/client.proto (package capabilities.blockchain.solana.v1alpha, syntax proto3) +/* eslint-disable */ + +import type { Message } from '@bufbuild/protobuf' +import type { GenEnum, GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2' +import { enumDesc, fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2' +import type { ReportResponse, ReportResponseJson } from '../../../../sdk/v1alpha/sdk_pb' +import { file_sdk_v1alpha_sdk } from '../../../../sdk/v1alpha/sdk_pb' +import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/generator/v1alpha/cre_metadata_pb' +import type { BigInt, BigIntJson } from '../../../../values/v1/values_pb' +import { file_values_v1_values } from '../../../../values/v1/values_pb' + +/** + * Describes the file capabilities/blockchain/solana/v1alpha/client.proto. + */ +export const file_capabilities_blockchain_solana_v1alpha_client: GenFile = + /*@__PURE__*/ + fileDesc( + 'CjNjYXBhYmlsaXRpZXMvYmxvY2tjaGFpbi9zb2xhbmEvdjFhbHBoYS9jbGllbnQucHJvdG8SJmNhcGFiaWxpdGllcy5ibG9ja2NoY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afrt0BChoKDnNvbGFuYS10ZXN0bmV0EK+a6tDFodO7V0L0AQoqY29tLmNhcGFiaWxpdGllcy5ibG9ja2NoYWluLnNvbGFuYS52MWFscGhhQgtDbGllbnRQcm90b1ABogIDQ0JTqgImQ2FwYWJpbGl0aWVzLkJsb2NrY2hhaW4uU29sYW5hLlYxYWxwaGHKAiZDYXBhYmlsaXRpZXNcQmxvY2tjaGFpblxTb2xhbmFcVjFhbHBoYeICMkNhcGFiaWxpdGllc1xCbG9ja2NoYWluXFNvbGFuYVxWMWFscGhhXEdQQk1ldGFkYXRh6gIpQ2FwYWJpbGl0aWVzOjpCbG9ja2NoYWluOjpTb2xhbmE6OlYxYWxwaGFiBnByb3RvMw', + [file_sdk_v1alpha_sdk, file_tools_generator_v1alpha_cre_metadata, file_values_v1_values], + ) + +/** + * On-chain account state. + * + * @generated from message capabilities.blockchain.solana.v1alpha.Account + */ +export type Account = Message<'capabilities.blockchain.solana.v1alpha.Account'> & { + /** + * balance in lamports (1e-9 SOL) + * + * @generated from field: uint64 lamports = 1 [jstype = JS_NORMAL]; + */ + lamports: bigint + + /** + * 32-byte program id (Pubkey) + * + * @generated from field: bytes owner = 2; + */ + owner: Uint8Array + + /** + * account data (encoded or JSON) + * + * @generated from field: capabilities.blockchain.solana.v1alpha.DataBytesOrJSON data = 3; + */ + data?: DataBytesOrJSON + + /** + * true if this is a program account + * + * @generated from field: bool executable = 4; + */ + executable: boolean + + /** + * next rent epoch + * + * @generated from field: values.v1.BigInt rent_epoch = 5; + */ + rentEpoch?: BigInt + + /** + * data length in bytes + * + * @generated from field: uint64 space = 6 [jstype = JS_NORMAL]; + */ + space: bigint +} + +/** + * On-chain account state. + * + * @generated from message capabilities.blockchain.solana.v1alpha.Account + */ +export type AccountJson = { + /** + * balance in lamports (1e-9 SOL) + * + * @generated from field: uint64 lamports = 1 [jstype = JS_NORMAL]; + */ + lamports?: string + + /** + * 32-byte program id (Pubkey) + * + * @generated from field: bytes owner = 2; + */ + owner?: string + + /** + * account data (encoded or JSON) + * + * @generated from field: capabilities.blockchain.solana.v1alpha.DataBytesOrJSON data = 3; + */ + data?: DataBytesOrJSONJson + + /** + * true if this is a program account + * + * @generated from field: bool executable = 4; + */ + executable?: boolean + + /** + * next rent epoch + * + * @generated from field: values.v1.BigInt rent_epoch = 5; + */ + rentEpoch?: BigIntJson + + /** + * data length in bytes + * + * @generated from field: uint64 space = 6 [jstype = JS_NORMAL]; + */ + space?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.Account. + * Use `create(AccountSchema)` to create a new message. + */ +export const AccountSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 0) + +/** + * Compute budget configuration when submitting txs. + * + * @generated from message capabilities.blockchain.solana.v1alpha.ComputeConfig + */ +export type ComputeConfig = Message<'capabilities.blockchain.solana.v1alpha.ComputeConfig'> & { + /** + * max CUs (approx per-tx limit) + * + * @generated from field: uint32 compute_limit = 1; + */ + computeLimit: number + + /** + * max lamports per CU + * + * @generated from field: uint64 compute_max_price = 2 [jstype = JS_NORMAL]; + */ + computeMaxPrice: bigint +} + +/** + * Compute budget configuration when submitting txs. + * + * @generated from message capabilities.blockchain.solana.v1alpha.ComputeConfig + */ +export type ComputeConfigJson = { + /** + * max CUs (approx per-tx limit) + * + * @generated from field: uint32 compute_limit = 1; + */ + computeLimit?: number + + /** + * max lamports per CU + * + * @generated from field: uint64 compute_max_price = 2 [jstype = JS_NORMAL]; + */ + computeMaxPrice?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.ComputeConfig. + * Use `create(ComputeConfigSchema)` to create a new message. + */ +export const ComputeConfigSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 1) + +/** + * Raw bytes vs parsed JSON (as returned by RPC). + * + * @generated from message capabilities.blockchain.solana.v1alpha.DataBytesOrJSON + */ +export type DataBytesOrJSON = Message<'capabilities.blockchain.solana.v1alpha.DataBytesOrJSON'> & { + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1; + */ + encoding: EncodingType + + /** + * @generated from oneof capabilities.blockchain.solana.v1alpha.DataBytesOrJSON.body + */ + body: + | { + /** + * program data (node’s base64/base58 decoded) + * + * @generated from field: bytes raw = 2; + */ + value: Uint8Array + case: 'raw' + } + | { + /** + * json: UTF-8 bytes of the jsonParsed payload. + * + * @generated from field: bytes json = 3; + */ + value: Uint8Array + case: 'json' + } + | { case: undefined; value?: undefined } +} + +/** + * Raw bytes vs parsed JSON (as returned by RPC). + * + * @generated from message capabilities.blockchain.solana.v1alpha.DataBytesOrJSON + */ +export type DataBytesOrJSONJson = { + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1; + */ + encoding?: EncodingTypeJson + + /** + * program data (node’s base64/base58 decoded) + * + * @generated from field: bytes raw = 2; + */ + raw?: string + + /** + * json: UTF-8 bytes of the jsonParsed payload. + * + * @generated from field: bytes json = 3; + */ + json?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.DataBytesOrJSON. + * Use `create(DataBytesOrJSONSchema)` to create a new message. + */ +export const DataBytesOrJSONSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 2) + +/** + * Return a slice of account data. + * + * @generated from message capabilities.blockchain.solana.v1alpha.DataSlice + */ +export type DataSlice = Message<'capabilities.blockchain.solana.v1alpha.DataSlice'> & { + /** + * start byte + * + * @generated from field: uint64 offset = 1 [jstype = JS_NORMAL]; + */ + offset: bigint + + /** + * number of bytes + * + * @generated from field: uint64 length = 2 [jstype = JS_NORMAL]; + */ + length: bigint +} + +/** + * Return a slice of account data. + * + * @generated from message capabilities.blockchain.solana.v1alpha.DataSlice + */ +export type DataSliceJson = { + /** + * start byte + * + * @generated from field: uint64 offset = 1 [jstype = JS_NORMAL]; + */ + offset?: string + + /** + * number of bytes + * + * @generated from field: uint64 length = 2 [jstype = JS_NORMAL]; + */ + length?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.DataSlice. + * Use `create(DataSliceSchema)` to create a new message. + */ +export const DataSliceSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 3) + +/** + * Options for GetAccountInfo. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts + */ +export type GetAccountInfoOpts = + Message<'capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts'> & { + /** + * data encoding + * + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1; + */ + encoding: EncodingType + + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment: CommitmentType + + /** + * optional slice window + * + * @generated from field: capabilities.blockchain.solana.v1alpha.DataSlice data_slice = 3; + */ + dataSlice?: DataSlice + + /** + * lower bound slot + * + * @generated from field: uint64 min_context_slot = 4 [jstype = JS_NORMAL]; + */ + minContextSlot: bigint + } + +/** + * Options for GetAccountInfo. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts + */ +export type GetAccountInfoOptsJson = { + /** + * data encoding + * + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1; + */ + encoding?: EncodingTypeJson + + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment?: CommitmentTypeJson + + /** + * optional slice window + * + * @generated from field: capabilities.blockchain.solana.v1alpha.DataSlice data_slice = 3; + */ + dataSlice?: DataSliceJson + + /** + * lower bound slot + * + * @generated from field: uint64 min_context_slot = 4 [jstype = JS_NORMAL]; + */ + minContextSlot?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts. + * Use `create(GetAccountInfoOptsSchema)` to create a new message. + */ +export const GetAccountInfoOptsSchema: GenMessage< + GetAccountInfoOpts, + { jsonType: GetAccountInfoOptsJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 4) + +/** + * Reply for GetAccountInfoWithOpts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsReply + */ +export type GetAccountInfoWithOptsReply = + Message<'capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsReply'> & { + /** + * read slot + * + * @generated from field: capabilities.blockchain.solana.v1alpha.RPCContext rpc_context = 1; + */ + rpcContext?: RPCContext + + /** + * account (may be empty) + * + * @generated from field: optional capabilities.blockchain.solana.v1alpha.Account value = 2; + */ + value?: Account + } + +/** + * Reply for GetAccountInfoWithOpts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsReply + */ +export type GetAccountInfoWithOptsReplyJson = { + /** + * read slot + * + * @generated from field: capabilities.blockchain.solana.v1alpha.RPCContext rpc_context = 1; + */ + rpcContext?: RPCContextJson + + /** + * account (may be empty) + * + * @generated from field: optional capabilities.blockchain.solana.v1alpha.Account value = 2; + */ + value?: AccountJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsReply. + * Use `create(GetAccountInfoWithOptsReplySchema)` to create a new message. + */ +export const GetAccountInfoWithOptsReplySchema: GenMessage< + GetAccountInfoWithOptsReply, + { jsonType: GetAccountInfoWithOptsReplyJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 5) + +/** + * Request for GetAccountInfoWithOpts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsRequest + */ +export type GetAccountInfoWithOptsRequest = + Message<'capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsRequest'> & { + /** + * 32-byte Pubkey + * + * @generated from field: bytes account = 1; + */ + account: Uint8Array + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts opts = 2; + */ + opts?: GetAccountInfoOpts + } + +/** + * Request for GetAccountInfoWithOpts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsRequest + */ +export type GetAccountInfoWithOptsRequestJson = { + /** + * 32-byte Pubkey + * + * @generated from field: bytes account = 1; + */ + account?: string + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts opts = 2; + */ + opts?: GetAccountInfoOptsJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsRequest. + * Use `create(GetAccountInfoWithOptsRequestSchema)` to create a new message. + */ +export const GetAccountInfoWithOptsRequestSchema: GenMessage< + GetAccountInfoWithOptsRequest, + { jsonType: GetAccountInfoWithOptsRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 6) + +/** + * Reply for GetBalance. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBalanceReply + */ +export type GetBalanceReply = Message<'capabilities.blockchain.solana.v1alpha.GetBalanceReply'> & { + /** + * lamports + * + * @generated from field: uint64 value = 1 [jstype = JS_NORMAL]; + */ + value: bigint +} + +/** + * Reply for GetBalance. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBalanceReply + */ +export type GetBalanceReplyJson = { + /** + * lamports + * + * @generated from field: uint64 value = 1 [jstype = JS_NORMAL]; + */ + value?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetBalanceReply. + * Use `create(GetBalanceReplySchema)` to create a new message. + */ +export const GetBalanceReplySchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 7) + +/** + * Request for GetBalance. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBalanceRequest + */ +export type GetBalanceRequest = + Message<'capabilities.blockchain.solana.v1alpha.GetBalanceRequest'> & { + /** + * 32-byte Pubkey + * + * @generated from field: bytes addr = 1; + */ + addr: Uint8Array + + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment: CommitmentType + } + +/** + * Request for GetBalance. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBalanceRequest + */ +export type GetBalanceRequestJson = { + /** + * 32-byte Pubkey + * + * @generated from field: bytes addr = 1; + */ + addr?: string + + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment?: CommitmentTypeJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetBalanceRequest. + * Use `create(GetBalanceRequestSchema)` to create a new message. + */ +export const GetBalanceRequestSchema: GenMessage< + GetBalanceRequest, + { jsonType: GetBalanceRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 8) + +/** + * Options for GetBlock. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockOpts + */ +export type GetBlockOpts = Message<'capabilities.blockchain.solana.v1alpha.GetBlockOpts'> & { + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 4; + */ + commitment: CommitmentType +} + +/** + * Options for GetBlock. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockOpts + */ +export type GetBlockOptsJson = { + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 4; + */ + commitment?: CommitmentTypeJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetBlockOpts. + * Use `create(GetBlockOptsSchema)` to create a new message. + */ +export const GetBlockOptsSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 9) + +/** + * Block response. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockReply + */ +export type GetBlockReply = Message<'capabilities.blockchain.solana.v1alpha.GetBlockReply'> & { + /** + * 32-byte block hash + * + * @generated from field: bytes blockhash = 1; + */ + blockhash: Uint8Array + + /** + * 32-byte parent hash + * + * @generated from field: bytes previous_blockhash = 2; + */ + previousBlockhash: Uint8Array + + /** + * @generated from field: uint64 parent_slot = 3 [jstype = JS_NORMAL]; + */ + parentSlot: bigint + + /** + * unix seconds, node may not report it + * + * @generated from field: optional int64 block_time = 4 [jstype = JS_NORMAL]; + */ + blockTime?: bigint + + /** + * chain height + * + * @generated from field: uint64 block_height = 5 [jstype = JS_NORMAL]; + */ + blockHeight: bigint +} + +/** + * Block response. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockReply + */ +export type GetBlockReplyJson = { + /** + * 32-byte block hash + * + * @generated from field: bytes blockhash = 1; + */ + blockhash?: string + + /** + * 32-byte parent hash + * + * @generated from field: bytes previous_blockhash = 2; + */ + previousBlockhash?: string + + /** + * @generated from field: uint64 parent_slot = 3 [jstype = JS_NORMAL]; + */ + parentSlot?: string + + /** + * unix seconds, node may not report it + * + * @generated from field: optional int64 block_time = 4 [jstype = JS_NORMAL]; + */ + blockTime?: string + + /** + * chain height + * + * @generated from field: uint64 block_height = 5 [jstype = JS_NORMAL]; + */ + blockHeight?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetBlockReply. + * Use `create(GetBlockReplySchema)` to create a new message. + */ +export const GetBlockReplySchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 10) + +/** + * Request for GetBlock. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockRequest + */ +export type GetBlockRequest = Message<'capabilities.blockchain.solana.v1alpha.GetBlockRequest'> & { + /** + * target slot + * + * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL]; + */ + slot: bigint + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.GetBlockOpts opts = 2; + */ + opts?: GetBlockOpts +} + +/** + * Request for GetBlock. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockRequest + */ +export type GetBlockRequestJson = { + /** + * target slot + * + * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL]; + */ + slot?: string + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.GetBlockOpts opts = 2; + */ + opts?: GetBlockOptsJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetBlockRequest. + * Use `create(GetBlockRequestSchema)` to create a new message. + */ +export const GetBlockRequestSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 11) + +/** + * Fee quote for a base58-encoded Message. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetFeeForMessageReply + */ +export type GetFeeForMessageReply = + Message<'capabilities.blockchain.solana.v1alpha.GetFeeForMessageReply'> & { + /** + * lamports + * + * @generated from field: uint64 fee = 1 [jstype = JS_NORMAL]; + */ + fee: bigint + } + +/** + * Fee quote for a base58-encoded Message. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetFeeForMessageReply + */ +export type GetFeeForMessageReplyJson = { + /** + * lamports + * + * @generated from field: uint64 fee = 1 [jstype = JS_NORMAL]; + */ + fee?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetFeeForMessageReply. + * Use `create(GetFeeForMessageReplySchema)` to create a new message. + */ +export const GetFeeForMessageReplySchema: GenMessage< + GetFeeForMessageReply, + { jsonType: GetFeeForMessageReplyJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 12) + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.GetFeeForMessageRequest + */ +export type GetFeeForMessageRequest = + Message<'capabilities.blockchain.solana.v1alpha.GetFeeForMessageRequest'> & { + /** + * must be base58-encoded Message + * + * @generated from field: string message = 1; + */ + message: string + + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment: CommitmentType + } + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.GetFeeForMessageRequest + */ +export type GetFeeForMessageRequestJson = { + /** + * must be base58-encoded Message + * + * @generated from field: string message = 1; + */ + message?: string + + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment?: CommitmentTypeJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetFeeForMessageRequest. + * Use `create(GetFeeForMessageRequestSchema)` to create a new message. + */ +export const GetFeeForMessageRequestSchema: GenMessage< + GetFeeForMessageRequest, + { jsonType: GetFeeForMessageRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 13) + +/** + * Options for GetMultipleAccounts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts + */ +export type GetMultipleAccountsOpts = + Message<'capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts'> & { + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1; + */ + encoding: EncodingType + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment: CommitmentType + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.DataSlice data_slice = 3; + */ + dataSlice?: DataSlice + + /** + * @generated from field: uint64 min_context_slot = 4 [jstype = JS_NORMAL]; + */ + minContextSlot: bigint + } + +/** + * Options for GetMultipleAccounts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts + */ +export type GetMultipleAccountsOptsJson = { + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1; + */ + encoding?: EncodingTypeJson + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment?: CommitmentTypeJson + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.DataSlice data_slice = 3; + */ + dataSlice?: DataSliceJson + + /** + * @generated from field: uint64 min_context_slot = 4 [jstype = JS_NORMAL]; + */ + minContextSlot?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts. + * Use `create(GetMultipleAccountsOptsSchema)` to create a new message. + */ +export const GetMultipleAccountsOptsSchema: GenMessage< + GetMultipleAccountsOpts, + { jsonType: GetMultipleAccountsOptsJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 14) + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper + */ +export type OptionalAccountWrapper = + Message<'capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper'> & { + /** + * @generated from field: optional capabilities.blockchain.solana.v1alpha.Account account = 1; + */ + account?: Account + } + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper + */ +export type OptionalAccountWrapperJson = { + /** + * @generated from field: optional capabilities.blockchain.solana.v1alpha.Account account = 1; + */ + account?: AccountJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper. + * Use `create(OptionalAccountWrapperSchema)` to create a new message. + */ +export const OptionalAccountWrapperSchema: GenMessage< + OptionalAccountWrapper, + { jsonType: OptionalAccountWrapperJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 15) + +/** + * Reply for GetMultipleAccountsWithOpts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsReply + */ +export type GetMultipleAccountsWithOptsReply = + Message<'capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsReply'> & { + /** + * read slot + * + * @generated from field: capabilities.blockchain.solana.v1alpha.RPCContext rpc_context = 1; + */ + rpcContext?: RPCContext + + /** + * accounts (nil entries allowed) + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper value = 2; + */ + value: OptionalAccountWrapper[] + } + +/** + * Reply for GetMultipleAccountsWithOpts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsReply + */ +export type GetMultipleAccountsWithOptsReplyJson = { + /** + * read slot + * + * @generated from field: capabilities.blockchain.solana.v1alpha.RPCContext rpc_context = 1; + */ + rpcContext?: RPCContextJson + + /** + * accounts (nil entries allowed) + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper value = 2; + */ + value?: OptionalAccountWrapperJson[] +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsReply. + * Use `create(GetMultipleAccountsWithOptsReplySchema)` to create a new message. + */ +export const GetMultipleAccountsWithOptsReplySchema: GenMessage< + GetMultipleAccountsWithOptsReply, + { jsonType: GetMultipleAccountsWithOptsReplyJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 16) + +/** + * Request for GetMultipleAccountsWithOpts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsRequest + */ +export type GetMultipleAccountsWithOptsRequest = + Message<'capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsRequest'> & { + /** + * list of 32-byte Pubkeys + * + * @generated from field: repeated bytes accounts = 1; + */ + accounts: Uint8Array[] + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts opts = 2; + */ + opts?: GetMultipleAccountsOpts + } + +/** + * Request for GetMultipleAccountsWithOpts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsRequest + */ +export type GetMultipleAccountsWithOptsRequestJson = { + /** + * list of 32-byte Pubkeys + * + * @generated from field: repeated bytes accounts = 1; + */ + accounts?: string[] + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts opts = 2; + */ + opts?: GetMultipleAccountsOptsJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsRequest. + * Use `create(GetMultipleAccountsWithOptsRequestSchema)` to create a new message. + */ +export const GetMultipleAccountsWithOptsRequestSchema: GenMessage< + GetMultipleAccountsWithOptsRequest, + { jsonType: GetMultipleAccountsWithOptsRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 17) + +/** + * Reply for GetSignatureStatuses. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesReply + */ +export type GetSignatureStatusesReply = + Message<'capabilities.blockchain.solana.v1alpha.GetSignatureStatusesReply'> & { + /** + * 1:1 with input + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult results = 1; + */ + results: GetSignatureStatusesResult[] + } + +/** + * Reply for GetSignatureStatuses. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesReply + */ +export type GetSignatureStatusesReplyJson = { + /** + * 1:1 with input + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult results = 1; + */ + results?: GetSignatureStatusesResultJson[] +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesReply. + * Use `create(GetSignatureStatusesReplySchema)` to create a new message. + */ +export const GetSignatureStatusesReplySchema: GenMessage< + GetSignatureStatusesReply, + { jsonType: GetSignatureStatusesReplyJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 18) + +/** + * Request for GetSignatureStatuses. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesRequest + */ +export type GetSignatureStatusesRequest = + Message<'capabilities.blockchain.solana.v1alpha.GetSignatureStatusesRequest'> & { + /** + * 64-byte signatures + * + * @generated from field: repeated bytes sigs = 1; + */ + sigs: Uint8Array[] + } + +/** + * Request for GetSignatureStatuses. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesRequest + */ +export type GetSignatureStatusesRequestJson = { + /** + * 64-byte signatures + * + * @generated from field: repeated bytes sigs = 1; + */ + sigs?: string[] +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesRequest. + * Use `create(GetSignatureStatusesRequestSchema)` to create a new message. + */ +export const GetSignatureStatusesRequestSchema: GenMessage< + GetSignatureStatusesRequest, + { jsonType: GetSignatureStatusesRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 19) + +/** + * Per-signature status. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult + */ +export type GetSignatureStatusesResult = + Message<'capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult'> & { + /** + * processed slot + * + * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL]; + */ + slot: bigint + + /** + * null->0 here + * + * @generated from field: optional uint64 confirmations = 2 [jstype = JS_NORMAL]; + */ + confirmations?: bigint + + /** + * error JSON string (empty on success) + * + * @generated from field: string err = 3; + */ + err: string + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.ConfirmationStatusType confirmation_status = 4; + */ + confirmationStatus: ConfirmationStatusType + } + +/** + * Per-signature status. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult + */ +export type GetSignatureStatusesResultJson = { + /** + * processed slot + * + * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL]; + */ + slot?: string + + /** + * null->0 here + * + * @generated from field: optional uint64 confirmations = 2 [jstype = JS_NORMAL]; + */ + confirmations?: string + + /** + * error JSON string (empty on success) + * + * @generated from field: string err = 3; + */ + err?: string + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.ConfirmationStatusType confirmation_status = 4; + */ + confirmationStatus?: ConfirmationStatusTypeJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult. + * Use `create(GetSignatureStatusesResultSchema)` to create a new message. + */ +export const GetSignatureStatusesResultSchema: GenMessage< + GetSignatureStatusesResult, + { jsonType: GetSignatureStatusesResultJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 20) + +/** + * Current “height” (blocks below latest). + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetSlotHeightReply + */ +export type GetSlotHeightReply = + Message<'capabilities.blockchain.solana.v1alpha.GetSlotHeightReply'> & { + /** + * @generated from field: uint64 height = 1 [jstype = JS_NORMAL]; + */ + height: bigint + } + +/** + * Current “height” (blocks below latest). + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetSlotHeightReply + */ +export type GetSlotHeightReplyJson = { + /** + * @generated from field: uint64 height = 1 [jstype = JS_NORMAL]; + */ + height?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetSlotHeightReply. + * Use `create(GetSlotHeightReplySchema)` to create a new message. + */ +export const GetSlotHeightReplySchema: GenMessage< + GetSlotHeightReply, + { jsonType: GetSlotHeightReplyJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 21) + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.GetSlotHeightRequest + */ +export type GetSlotHeightRequest = + Message<'capabilities.blockchain.solana.v1alpha.GetSlotHeightRequest'> & { + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 1; + */ + commitment: CommitmentType + } + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.GetSlotHeightRequest + */ +export type GetSlotHeightRequestJson = { + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 1; + */ + commitment?: CommitmentTypeJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetSlotHeightRequest. + * Use `create(GetSlotHeightRequestSchema)` to create a new message. + */ +export const GetSlotHeightRequestSchema: GenMessage< + GetSlotHeightRequest, + { jsonType: GetSlotHeightRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 22) + +/** + * Message header counts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.MessageHeader + */ +export type MessageHeader = Message<'capabilities.blockchain.solana.v1alpha.MessageHeader'> & { + /** + * signer count + * + * @generated from field: uint32 num_required_signatures = 1; + */ + numRequiredSignatures: number + + /** + * trailing signed RO + * + * @generated from field: uint32 num_readonly_signed_accounts = 2; + */ + numReadonlySignedAccounts: number + + /** + * trailing unsigned RO + * + * @generated from field: uint32 num_readonly_unsigned_accounts = 3; + */ + numReadonlyUnsignedAccounts: number +} + +/** + * Message header counts. + * + * @generated from message capabilities.blockchain.solana.v1alpha.MessageHeader + */ +export type MessageHeaderJson = { + /** + * signer count + * + * @generated from field: uint32 num_required_signatures = 1; + */ + numRequiredSignatures?: number + + /** + * trailing signed RO + * + * @generated from field: uint32 num_readonly_signed_accounts = 2; + */ + numReadonlySignedAccounts?: number + + /** + * trailing unsigned RO + * + * @generated from field: uint32 num_readonly_unsigned_accounts = 3; + */ + numReadonlyUnsignedAccounts?: number +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.MessageHeader. + * Use `create(MessageHeaderSchema)` to create a new message. + */ +export const MessageHeaderSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 23) + +/** + * Parsed message (no address tables). + * + * @generated from message capabilities.blockchain.solana.v1alpha.ParsedMessage + */ +export type ParsedMessage = Message<'capabilities.blockchain.solana.v1alpha.ParsedMessage'> & { + /** + * 32-byte Hash + * + * @generated from field: bytes recent_blockhash = 1; + */ + recentBlockhash: Uint8Array + + /** + * list of 32-byte Pubkeys + * + * @generated from field: repeated bytes account_keys = 2; + */ + accountKeys: Uint8Array[] + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.MessageHeader header = 3; + */ + header?: MessageHeader + + /** + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.CompiledInstruction instructions = 4; + */ + instructions: CompiledInstruction[] +} + +/** + * Parsed message (no address tables). + * + * @generated from message capabilities.blockchain.solana.v1alpha.ParsedMessage + */ +export type ParsedMessageJson = { + /** + * 32-byte Hash + * + * @generated from field: bytes recent_blockhash = 1; + */ + recentBlockhash?: string + + /** + * list of 32-byte Pubkeys + * + * @generated from field: repeated bytes account_keys = 2; + */ + accountKeys?: string[] + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.MessageHeader header = 3; + */ + header?: MessageHeaderJson + + /** + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.CompiledInstruction instructions = 4; + */ + instructions?: CompiledInstructionJson[] +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.ParsedMessage. + * Use `create(ParsedMessageSchema)` to create a new message. + */ +export const ParsedMessageSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 24) + +/** + * Parsed transaction (signatures + message). + * + * @generated from message capabilities.blockchain.solana.v1alpha.ParsedTransaction + */ +export type ParsedTransaction = + Message<'capabilities.blockchain.solana.v1alpha.ParsedTransaction'> & { + /** + * 64-byte signatures + * + * @generated from field: repeated bytes signatures = 1; + */ + signatures: Uint8Array[] + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.ParsedMessage message = 2; + */ + message?: ParsedMessage + } + +/** + * Parsed transaction (signatures + message). + * + * @generated from message capabilities.blockchain.solana.v1alpha.ParsedTransaction + */ +export type ParsedTransactionJson = { + /** + * 64-byte signatures + * + * @generated from field: repeated bytes signatures = 1; + */ + signatures?: string[] + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.ParsedMessage message = 2; + */ + message?: ParsedMessageJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.ParsedTransaction. + * Use `create(ParsedTransactionSchema)` to create a new message. + */ +export const ParsedTransactionSchema: GenMessage< + ParsedTransaction, + { jsonType: ParsedTransactionJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 25) + +/** + * Token amount (UI-friendly). + * + * @generated from message capabilities.blockchain.solana.v1alpha.UiTokenAmount + */ +export type UiTokenAmount = Message<'capabilities.blockchain.solana.v1alpha.UiTokenAmount'> & { + /** + * raw integer string + * + * @generated from field: string amount = 1; + */ + amount: string + + /** + * mint decimals + * + * @generated from field: uint32 decimals = 2; + */ + decimals: number + + /** + * amount / 10^decimals + * + * @generated from field: string ui_amount_string = 4; + */ + uiAmountString: string +} + +/** + * Token amount (UI-friendly). + * + * @generated from message capabilities.blockchain.solana.v1alpha.UiTokenAmount + */ +export type UiTokenAmountJson = { + /** + * raw integer string + * + * @generated from field: string amount = 1; + */ + amount?: string + + /** + * mint decimals + * + * @generated from field: uint32 decimals = 2; + */ + decimals?: number + + /** + * amount / 10^decimals + * + * @generated from field: string ui_amount_string = 4; + */ + uiAmountString?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.UiTokenAmount. + * Use `create(UiTokenAmountSchema)` to create a new message. + */ +export const UiTokenAmountSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 26) + +/** + * SPL token balance entry. + * + * @generated from message capabilities.blockchain.solana.v1alpha.TokenBalance + */ +export type TokenBalance = Message<'capabilities.blockchain.solana.v1alpha.TokenBalance'> & { + /** + * index in account_keys + * + * @generated from field: uint32 account_index = 1; + */ + accountIndex: number + + /** + * 32-byte owner (optional) + * + * @generated from field: optional bytes owner = 2; + */ + owner?: Uint8Array + + /** + * 32-byte token program (optional) + * + * @generated from field: optional bytes program_id = 3; + */ + programId?: Uint8Array + + /** + * 32-byte mint + * + * @generated from field: bytes mint = 4; + */ + mint: Uint8Array + + /** + * formatted amounts + * + * @generated from field: capabilities.blockchain.solana.v1alpha.UiTokenAmount ui = 5; + */ + ui?: UiTokenAmount +} + +/** + * SPL token balance entry. + * + * @generated from message capabilities.blockchain.solana.v1alpha.TokenBalance + */ +export type TokenBalanceJson = { + /** + * index in account_keys + * + * @generated from field: uint32 account_index = 1; + */ + accountIndex?: number + + /** + * 32-byte owner (optional) + * + * @generated from field: optional bytes owner = 2; + */ + owner?: string + + /** + * 32-byte token program (optional) + * + * @generated from field: optional bytes program_id = 3; + */ + programId?: string + + /** + * 32-byte mint + * + * @generated from field: bytes mint = 4; + */ + mint?: string + + /** + * formatted amounts + * + * @generated from field: capabilities.blockchain.solana.v1alpha.UiTokenAmount ui = 5; + */ + ui?: UiTokenAmountJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.TokenBalance. + * Use `create(TokenBalanceSchema)` to create a new message. + */ +export const TokenBalanceSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 27) + +/** + * Inner instruction list at a given outer instruction index. + * + * @generated from message capabilities.blockchain.solana.v1alpha.InnerInstruction + */ +export type InnerInstruction = + Message<'capabilities.blockchain.solana.v1alpha.InnerInstruction'> & { + /** + * outer ix index + * + * @generated from field: uint32 index = 1; + */ + index: number + + /** + * invoked ixs + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.CompiledInstruction instructions = 2; + */ + instructions: CompiledInstruction[] + } + +/** + * Inner instruction list at a given outer instruction index. + * + * @generated from message capabilities.blockchain.solana.v1alpha.InnerInstruction + */ +export type InnerInstructionJson = { + /** + * outer ix index + * + * @generated from field: uint32 index = 1; + */ + index?: number + + /** + * invoked ixs + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.CompiledInstruction instructions = 2; + */ + instructions?: CompiledInstructionJson[] +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.InnerInstruction. + * Use `create(InnerInstructionSchema)` to create a new message. + */ +export const InnerInstructionSchema: GenMessage< + InnerInstruction, + { jsonType: InnerInstructionJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 28) + +/** + * Address table lookups expanded by loader. + * + * @generated from message capabilities.blockchain.solana.v1alpha.LoadedAddresses + */ +export type LoadedAddresses = Message<'capabilities.blockchain.solana.v1alpha.LoadedAddresses'> & { + /** + * 32-byte Pubkeys + * + * @generated from field: repeated bytes readonly = 1; + */ + readonly: Uint8Array[] + + /** + * 32-byte Pubkeys + * + * @generated from field: repeated bytes writable = 2; + */ + writable: Uint8Array[] +} + +/** + * Address table lookups expanded by loader. + * + * @generated from message capabilities.blockchain.solana.v1alpha.LoadedAddresses + */ +export type LoadedAddressesJson = { + /** + * 32-byte Pubkeys + * + * @generated from field: repeated bytes readonly = 1; + */ + readonly?: string[] + + /** + * 32-byte Pubkeys + * + * @generated from field: repeated bytes writable = 2; + */ + writable?: string[] +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.LoadedAddresses. + * Use `create(LoadedAddressesSchema)` to create a new message. + */ +export const LoadedAddressesSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 29) + +/** + * Compiled (program) instruction. + * + * @generated from message capabilities.blockchain.solana.v1alpha.CompiledInstruction + */ +export type CompiledInstruction = + Message<'capabilities.blockchain.solana.v1alpha.CompiledInstruction'> & { + /** + * index into account_keys + * + * @generated from field: uint32 program_id_index = 1; + */ + programIdIndex: number + + /** + * indices into account_keys + * + * @generated from field: repeated uint32 accounts = 2; + */ + accounts: number[] + + /** + * program input bytes + * + * @generated from field: bytes data = 3; + */ + data: Uint8Array + + /** + * if recorded by node + * + * @generated from field: uint32 stack_height = 4; + */ + stackHeight: number + } + +/** + * Compiled (program) instruction. + * + * @generated from message capabilities.blockchain.solana.v1alpha.CompiledInstruction + */ +export type CompiledInstructionJson = { + /** + * index into account_keys + * + * @generated from field: uint32 program_id_index = 1; + */ + programIdIndex?: number + + /** + * indices into account_keys + * + * @generated from field: repeated uint32 accounts = 2; + */ + accounts?: number[] + + /** + * program input bytes + * + * @generated from field: bytes data = 3; + */ + data?: string + + /** + * if recorded by node + * + * @generated from field: uint32 stack_height = 4; + */ + stackHeight?: number +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.CompiledInstruction. + * Use `create(CompiledInstructionSchema)` to create a new message. + */ +export const CompiledInstructionSchema: GenMessage< + CompiledInstruction, + { jsonType: CompiledInstructionJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 30) + +/** + * Raw bytes with encoding tag. + * + * @generated from message capabilities.blockchain.solana.v1alpha.Data + */ +export type Data = Message<'capabilities.blockchain.solana.v1alpha.Data'> & { + /** + * raw bytes + * + * @generated from field: bytes content = 1; + */ + content: Uint8Array + + /** + * how it was encoded originally + * + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 2; + */ + encoding: EncodingType +} + +/** + * Raw bytes with encoding tag. + * + * @generated from message capabilities.blockchain.solana.v1alpha.Data + */ +export type DataJson = { + /** + * raw bytes + * + * @generated from field: bytes content = 1; + */ + content?: string + + /** + * how it was encoded originally + * + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 2; + */ + encoding?: EncodingTypeJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.Data. + * Use `create(DataSchema)` to create a new message. + */ +export const DataSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 31) + +/** + * Program return data. + * + * @generated from message capabilities.blockchain.solana.v1alpha.ReturnData + */ +export type ReturnData = Message<'capabilities.blockchain.solana.v1alpha.ReturnData'> & { + /** + * 32-byte Pubkey + * + * @generated from field: bytes program_id = 1; + */ + programId: Uint8Array + + /** + * raw return bytes + * + * @generated from field: capabilities.blockchain.solana.v1alpha.Data data = 2; + */ + data?: Data +} + +/** + * Program return data. + * + * @generated from message capabilities.blockchain.solana.v1alpha.ReturnData + */ +export type ReturnDataJson = { + /** + * 32-byte Pubkey + * + * @generated from field: bytes program_id = 1; + */ + programId?: string + + /** + * raw return bytes + * + * @generated from field: capabilities.blockchain.solana.v1alpha.Data data = 2; + */ + data?: DataJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.ReturnData. + * Use `create(ReturnDataSchema)` to create a new message. + */ +export const ReturnDataSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 32) + +/** + * Transaction execution metadata. + * + * @generated from message capabilities.blockchain.solana.v1alpha.TransactionMeta + */ +export type TransactionMeta = Message<'capabilities.blockchain.solana.v1alpha.TransactionMeta'> & { + /** + * error JSON (empty on success) + * + * @generated from field: string err_json = 1; + */ + errJson: string + + /** + * lamports + * + * @generated from field: uint64 fee = 2 [jstype = JS_NORMAL]; + */ + fee: bigint + + /** + * lamports per account + * + * @generated from field: repeated uint64 pre_balances = 3 [jstype = JS_NORMAL]; + */ + preBalances: bigint[] + + /** + * lamports per account + * + * @generated from field: repeated uint64 post_balances = 4 [jstype = JS_NORMAL]; + */ + postBalances: bigint[] + + /** + * runtime logs + * + * @generated from field: repeated string log_messages = 5; + */ + logMessages: string[] + + /** + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.TokenBalance pre_token_balances = 6; + */ + preTokenBalances: TokenBalance[] + + /** + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.TokenBalance post_token_balances = 7; + */ + postTokenBalances: TokenBalance[] + + /** + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.InnerInstruction inner_instructions = 8; + */ + innerInstructions: InnerInstruction[] + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.LoadedAddresses loaded_addresses = 9; + */ + loadedAddresses?: LoadedAddresses + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.ReturnData return_data = 10; + */ + returnData?: ReturnData + + /** + * CUs + * + * @generated from field: optional uint64 compute_units_consumed = 11 [jstype = JS_NORMAL]; + */ + computeUnitsConsumed?: bigint +} + +/** + * Transaction execution metadata. + * + * @generated from message capabilities.blockchain.solana.v1alpha.TransactionMeta + */ +export type TransactionMetaJson = { + /** + * error JSON (empty on success) + * + * @generated from field: string err_json = 1; + */ + errJson?: string + + /** + * lamports + * + * @generated from field: uint64 fee = 2 [jstype = JS_NORMAL]; + */ + fee?: string + + /** + * lamports per account + * + * @generated from field: repeated uint64 pre_balances = 3 [jstype = JS_NORMAL]; + */ + preBalances?: string[] + + /** + * lamports per account + * + * @generated from field: repeated uint64 post_balances = 4 [jstype = JS_NORMAL]; + */ + postBalances?: string[] + + /** + * runtime logs + * + * @generated from field: repeated string log_messages = 5; + */ + logMessages?: string[] + + /** + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.TokenBalance pre_token_balances = 6; + */ + preTokenBalances?: TokenBalanceJson[] + + /** + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.TokenBalance post_token_balances = 7; + */ + postTokenBalances?: TokenBalanceJson[] + + /** + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.InnerInstruction inner_instructions = 8; + */ + innerInstructions?: InnerInstructionJson[] + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.LoadedAddresses loaded_addresses = 9; + */ + loadedAddresses?: LoadedAddressesJson + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.ReturnData return_data = 10; + */ + returnData?: ReturnDataJson + + /** + * CUs + * + * @generated from field: optional uint64 compute_units_consumed = 11 [jstype = JS_NORMAL]; + */ + computeUnitsConsumed?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.TransactionMeta. + * Use `create(TransactionMetaSchema)` to create a new message. + */ +export const TransactionMetaSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 33) + +/** + * Transaction envelope: raw bytes or parsed struct. + * + * @generated from message capabilities.blockchain.solana.v1alpha.TransactionEnvelope + */ +export type TransactionEnvelope = + Message<'capabilities.blockchain.solana.v1alpha.TransactionEnvelope'> & { + /** + * @generated from oneof capabilities.blockchain.solana.v1alpha.TransactionEnvelope.transaction + */ + transaction: + | { + /** + * raw tx bytes (for RAW/base64) + * + * @generated from field: bytes raw = 1; + */ + value: Uint8Array + case: 'raw' + } + | { + /** + * parsed tx (for JSON_PARSED) + * + * @generated from field: capabilities.blockchain.solana.v1alpha.ParsedTransaction parsed = 2; + */ + value: ParsedTransaction + case: 'parsed' + } + | { case: undefined; value?: undefined } + } + +/** + * Transaction envelope: raw bytes or parsed struct. + * + * @generated from message capabilities.blockchain.solana.v1alpha.TransactionEnvelope + */ +export type TransactionEnvelopeJson = { + /** + * raw tx bytes (for RAW/base64) + * + * @generated from field: bytes raw = 1; + */ + raw?: string + + /** + * parsed tx (for JSON_PARSED) + * + * @generated from field: capabilities.blockchain.solana.v1alpha.ParsedTransaction parsed = 2; + */ + parsed?: ParsedTransactionJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.TransactionEnvelope. + * Use `create(TransactionEnvelopeSchema)` to create a new message. + */ +export const TransactionEnvelopeSchema: GenMessage< + TransactionEnvelope, + { jsonType: TransactionEnvelopeJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 34) + +/** + * GetTransaction reply. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetTransactionReply + */ +export type GetTransactionReply = + Message<'capabilities.blockchain.solana.v1alpha.GetTransactionReply'> & { + /** + * processed slot + * + * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL]; + */ + slot: bigint + + /** + * unix seconds + * + * @generated from field: optional int64 block_time = 2 [jstype = JS_NORMAL]; + */ + blockTime?: bigint + + /** + * tx bytes or parsed + * + * @generated from field: optional capabilities.blockchain.solana.v1alpha.TransactionEnvelope transaction = 3; + */ + transaction?: TransactionEnvelope + + /** + * may be omitted by node + * + * @generated from field: optional capabilities.blockchain.solana.v1alpha.TransactionMeta meta = 4; + */ + meta?: TransactionMeta + } + +/** + * GetTransaction reply. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetTransactionReply + */ +export type GetTransactionReplyJson = { + /** + * processed slot + * + * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL]; + */ + slot?: string + + /** + * unix seconds + * + * @generated from field: optional int64 block_time = 2 [jstype = JS_NORMAL]; + */ + blockTime?: string + + /** + * tx bytes or parsed + * + * @generated from field: optional capabilities.blockchain.solana.v1alpha.TransactionEnvelope transaction = 3; + */ + transaction?: TransactionEnvelopeJson + + /** + * may be omitted by node + * + * @generated from field: optional capabilities.blockchain.solana.v1alpha.TransactionMeta meta = 4; + */ + meta?: TransactionMetaJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetTransactionReply. + * Use `create(GetTransactionReplySchema)` to create a new message. + */ +export const GetTransactionReplySchema: GenMessage< + GetTransactionReply, + { jsonType: GetTransactionReplyJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 35) + +/** + * GetTransaction request. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetTransactionRequest + */ +export type GetTransactionRequest = + Message<'capabilities.blockchain.solana.v1alpha.GetTransactionRequest'> & { + /** + * 64-byte signature + * + * @generated from field: bytes signature = 1; + */ + signature: Uint8Array + } + +/** + * GetTransaction request. + * + * @generated from message capabilities.blockchain.solana.v1alpha.GetTransactionRequest + */ +export type GetTransactionRequestJson = { + /** + * 64-byte signature + * + * @generated from field: bytes signature = 1; + */ + signature?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.GetTransactionRequest. + * Use `create(GetTransactionRequestSchema)` to create a new message. + */ +export const GetTransactionRequestSchema: GenMessage< + GetTransactionRequest, + { jsonType: GetTransactionRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 36) + +/** + * RPC read context. + * + * @generated from message capabilities.blockchain.solana.v1alpha.RPCContext + */ +export type RPCContext = Message<'capabilities.blockchain.solana.v1alpha.RPCContext'> & { + /** + * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL]; + */ + slot: bigint +} + +/** + * RPC read context. + * + * @generated from message capabilities.blockchain.solana.v1alpha.RPCContext + */ +export type RPCContextJson = { + /** + * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL]; + */ + slot?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.RPCContext. + * Use `create(RPCContextSchema)` to create a new message. + */ +export const RPCContextSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 37) + +/** + * Simulation options. + * + * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXOpts + */ +export type SimulateTXOpts = Message<'capabilities.blockchain.solana.v1alpha.SimulateTXOpts'> & { + /** + * verify sigs + * + * @generated from field: bool sig_verify = 1; + */ + sigVerify: boolean + + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment: CommitmentType + + /** + * refresh blockhash + * + * @generated from field: bool replace_recent_blockhash = 3; + */ + replaceRecentBlockhash: boolean + + /** + * return accounts + * + * @generated from field: capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts accounts = 4; + */ + accounts?: SimulateTransactionAccountsOpts +} + +/** + * Simulation options. + * + * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXOpts + */ +export type SimulateTXOptsJson = { + /** + * verify sigs + * + * @generated from field: bool sig_verify = 1; + */ + sigVerify?: boolean + + /** + * read consistency + * + * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2; + */ + commitment?: CommitmentTypeJson + + /** + * refresh blockhash + * + * @generated from field: bool replace_recent_blockhash = 3; + */ + replaceRecentBlockhash?: boolean + + /** + * return accounts + * + * @generated from field: capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts accounts = 4; + */ + accounts?: SimulateTransactionAccountsOptsJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.SimulateTXOpts. + * Use `create(SimulateTXOptsSchema)` to create a new message. + */ +export const SimulateTXOptsSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 38) + +/** + * Simulation result. + * + * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXReply + */ +export type SimulateTXReply = Message<'capabilities.blockchain.solana.v1alpha.SimulateTXReply'> & { + /** + * empty on success + * + * @generated from field: string err = 1; + */ + err: string + + /** + * runtime logs + * + * @generated from field: repeated string logs = 2; + */ + logs: string[] + + /** + * returned accounts + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.Account accounts = 3; + */ + accounts: Account[] + + /** + * CUs + * + * @generated from field: uint64 units_consumed = 4 [jstype = JS_NORMAL]; + */ + unitsConsumed: bigint +} + +/** + * Simulation result. + * + * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXReply + */ +export type SimulateTXReplyJson = { + /** + * empty on success + * + * @generated from field: string err = 1; + */ + err?: string + + /** + * runtime logs + * + * @generated from field: repeated string logs = 2; + */ + logs?: string[] + + /** + * returned accounts + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.Account accounts = 3; + */ + accounts?: AccountJson[] + + /** + * CUs + * + * @generated from field: uint64 units_consumed = 4 [jstype = JS_NORMAL]; + */ + unitsConsumed?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.SimulateTXReply. + * Use `create(SimulateTXReplySchema)` to create a new message. + */ +export const SimulateTXReplySchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 39) + +/** + * Simulation request. + * + * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXRequest + */ +export type SimulateTXRequest = + Message<'capabilities.blockchain.solana.v1alpha.SimulateTXRequest'> & { + /** + * 32-byte program id (target) + * + * @generated from field: bytes receiver = 1; + */ + receiver: Uint8Array + + /** + * base64/base58 tx + * + * @generated from field: string encoded_transaction = 2; + */ + encodedTransaction: string + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.SimulateTXOpts opts = 3; + */ + opts?: SimulateTXOpts + } + +/** + * Simulation request. + * + * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXRequest + */ +export type SimulateTXRequestJson = { + /** + * 32-byte program id (target) + * + * @generated from field: bytes receiver = 1; + */ + receiver?: string + + /** + * base64/base58 tx + * + * @generated from field: string encoded_transaction = 2; + */ + encodedTransaction?: string + + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.SimulateTXOpts opts = 3; + */ + opts?: SimulateTXOptsJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.SimulateTXRequest. + * Use `create(SimulateTXRequestSchema)` to create a new message. + */ +export const SimulateTXRequestSchema: GenMessage< + SimulateTXRequest, + { jsonType: SimulateTXRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 40) + +/** + * Accounts to return during simulation. + * + * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts + */ +export type SimulateTransactionAccountsOpts = + Message<'capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts'> & { + /** + * account data encoding + * + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1; + */ + encoding: EncodingType + + /** + * 32-byte Pubkeys + * + * @generated from field: repeated bytes addresses = 2; + */ + addresses: Uint8Array[] + } + +/** + * Accounts to return during simulation. + * + * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts + */ +export type SimulateTransactionAccountsOptsJson = { + /** + * account data encoding + * + * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1; + */ + encoding?: EncodingTypeJson + + /** + * 32-byte Pubkeys + * + * @generated from field: repeated bytes addresses = 2; + */ + addresses?: string[] +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts. + * Use `create(SimulateTransactionAccountsOptsSchema)` to create a new message. + */ +export const SimulateTransactionAccountsOptsSchema: GenMessage< + SimulateTransactionAccountsOpts, + { jsonType: SimulateTransactionAccountsOptsJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 41) + +/** + * TODO PLEX-1828 + * + * @generated from message capabilities.blockchain.solana.v1alpha.FilterLogTriggerRequest + */ +export type FilterLogTriggerRequest = + Message<'capabilities.blockchain.solana.v1alpha.FilterLogTriggerRequest'> & {} + +/** + * TODO PLEX-1828 + * + * @generated from message capabilities.blockchain.solana.v1alpha.FilterLogTriggerRequest + */ +export type FilterLogTriggerRequestJson = {} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.FilterLogTriggerRequest. + * Use `create(FilterLogTriggerRequestSchema)` to create a new message. + */ +export const FilterLogTriggerRequestSchema: GenMessage< + FilterLogTriggerRequest, + { jsonType: FilterLogTriggerRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 42) + +/** + * TODO PLEX-1828 + * + * @generated from message capabilities.blockchain.solana.v1alpha.Log + */ +export type Log = Message<'capabilities.blockchain.solana.v1alpha.Log'> & {} + +/** + * TODO PLEX-1828 + * + * @generated from message capabilities.blockchain.solana.v1alpha.Log + */ +export type LogJson = {} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.Log. + * Use `create(LogSchema)` to create a new message. + */ +export const LogSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 43) + +/** + * All metas are non-signers. + * + * @generated from message capabilities.blockchain.solana.v1alpha.AccountMeta + */ +export type AccountMeta = Message<'capabilities.blockchain.solana.v1alpha.AccountMeta'> & { + /** + * 32 bytes account public key + * + * @generated from field: bytes public_key = 1; + */ + publicKey: Uint8Array + + /** + * write flag + * + * @generated from field: bool is_writable = 2; + */ + isWritable: boolean +} + +/** + * All metas are non-signers. + * + * @generated from message capabilities.blockchain.solana.v1alpha.AccountMeta + */ +export type AccountMetaJson = { + /** + * 32 bytes account public key + * + * @generated from field: bytes public_key = 1; + */ + publicKey?: string + + /** + * write flag + * + * @generated from field: bool is_writable = 2; + */ + isWritable?: boolean +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.AccountMeta. + * Use `create(AccountMetaSchema)` to create a new message. + */ +export const AccountMetaSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 44) + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.WriteReportRequest + */ +export type WriteReportRequest = + Message<'capabilities.blockchain.solana.v1alpha.WriteReportRequest'> & { + /** + * accounts that are required by the receiver to accept the report + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.AccountMeta remaining_accounts = 1; + */ + remainingAccounts: AccountMeta[] + + /** + * 32 bytes receiver + * + * @generated from field: bytes receiver = 2; + */ + receiver: Uint8Array + + /** + * @generated from field: optional capabilities.blockchain.solana.v1alpha.ComputeConfig compute_config = 3; + */ + computeConfig?: ComputeConfig + + /** + * @generated from field: sdk.v1alpha.ReportResponse report = 4; + */ + report?: ReportResponse + } + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.WriteReportRequest + */ +export type WriteReportRequestJson = { + /** + * accounts that are required by the receiver to accept the report + * + * @generated from field: repeated capabilities.blockchain.solana.v1alpha.AccountMeta remaining_accounts = 1; + */ + remainingAccounts?: AccountMetaJson[] + + /** + * 32 bytes receiver + * + * @generated from field: bytes receiver = 2; + */ + receiver?: string + + /** + * @generated from field: optional capabilities.blockchain.solana.v1alpha.ComputeConfig compute_config = 3; + */ + computeConfig?: ComputeConfigJson + + /** + * @generated from field: sdk.v1alpha.ReportResponse report = 4; + */ + report?: ReportResponseJson +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.WriteReportRequest. + * Use `create(WriteReportRequestSchema)` to create a new message. + */ +export const WriteReportRequestSchema: GenMessage< + WriteReportRequest, + { jsonType: WriteReportRequestJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 45) + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.WriteReportReply + */ +export type WriteReportReply = + Message<'capabilities.blockchain.solana.v1alpha.WriteReportReply'> & { + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.TxStatus tx_status = 1; + */ + txStatus: TxStatus + + /** + * @generated from field: optional capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus receiver_contract_execution_status = 2; + */ + receiverContractExecutionStatus?: ReceiverContractExecutionStatus + + /** + * @generated from field: optional bytes tx_signature = 3; + */ + txSignature?: Uint8Array + + /** + * @generated from field: optional uint64 transaction_fee = 4 [jstype = JS_NORMAL]; + */ + transactionFee?: bigint + + /** + * @generated from field: optional string error_message = 5; + */ + errorMessage?: string + } + +/** + * @generated from message capabilities.blockchain.solana.v1alpha.WriteReportReply + */ +export type WriteReportReplyJson = { + /** + * @generated from field: capabilities.blockchain.solana.v1alpha.TxStatus tx_status = 1; + */ + txStatus?: TxStatusJson + + /** + * @generated from field: optional capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus receiver_contract_execution_status = 2; + */ + receiverContractExecutionStatus?: ReceiverContractExecutionStatusJson + + /** + * @generated from field: optional bytes tx_signature = 3; + */ + txSignature?: string + + /** + * @generated from field: optional uint64 transaction_fee = 4 [jstype = JS_NORMAL]; + */ + transactionFee?: string + + /** + * @generated from field: optional string error_message = 5; + */ + errorMessage?: string +} + +/** + * Describes the message capabilities.blockchain.solana.v1alpha.WriteReportReply. + * Use `create(WriteReportReplySchema)` to create a new message. + */ +export const WriteReportReplySchema: GenMessage< + WriteReportReply, + { jsonType: WriteReportReplyJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 46) + +/** + * Account/tx data encodings. + * + * @generated from enum capabilities.blockchain.solana.v1alpha.EncodingType + */ +export enum EncodingType { + /** + * @generated from enum value: ENCODING_TYPE_NONE = 0; + */ + NONE = 0, + + /** + * for data <129 bytes + * + * @generated from enum value: ENCODING_TYPE_BASE58 = 1; + */ + BASE58 = 1, + + /** + * any size + * + * @generated from enum value: ENCODING_TYPE_BASE64 = 2; + */ + BASE64 = 2, + + /** + * zstd-compressed, base64-wrapped + * + * @generated from enum value: ENCODING_TYPE_BASE64_ZSTD = 3; + */ + BASE64_ZSTD = 3, + + /** + * program parsers; fallback to base64 if unknown + * + * @generated from enum value: ENCODING_TYPE_JSON_PARSED = 4; + */ + JSON_PARSED = 4, + + /** + * raw JSON (rare; prefer JSON_PARSED) + * + * @generated from enum value: ENCODING_TYPE_JSON = 5; + */ + JSON = 5, +} + +/** + * Account/tx data encodings. + * + * @generated from enum capabilities.blockchain.solana.v1alpha.EncodingType + */ +export type EncodingTypeJson = + | 'ENCODING_TYPE_NONE' + | 'ENCODING_TYPE_BASE58' + | 'ENCODING_TYPE_BASE64' + | 'ENCODING_TYPE_BASE64_ZSTD' + | 'ENCODING_TYPE_JSON_PARSED' + | 'ENCODING_TYPE_JSON' + +/** + * Describes the enum capabilities.blockchain.solana.v1alpha.EncodingType. + */ +export const EncodingTypeSchema: GenEnum = + /*@__PURE__*/ + enumDesc(file_capabilities_blockchain_solana_v1alpha_client, 0) + +/** + * Read consistency of queried state. + * + * @generated from enum capabilities.blockchain.solana.v1alpha.CommitmentType + */ +export enum CommitmentType { + /** + * @generated from enum value: COMMITMENT_TYPE_NONE = 0; + */ + NONE = 0, + + /** + * cluster-finalized + * + * @generated from enum value: COMMITMENT_TYPE_FINALIZED = 1; + */ + FINALIZED = 1, + + /** + * voted by supermajority + * + * @generated from enum value: COMMITMENT_TYPE_CONFIRMED = 2; + */ + CONFIRMED = 2, + + /** + * node’s latest + * + * @generated from enum value: COMMITMENT_TYPE_PROCESSED = 3; + */ + PROCESSED = 3, +} + +/** + * Read consistency of queried state. + * + * @generated from enum capabilities.blockchain.solana.v1alpha.CommitmentType + */ +export type CommitmentTypeJson = + | 'COMMITMENT_TYPE_NONE' + | 'COMMITMENT_TYPE_FINALIZED' + | 'COMMITMENT_TYPE_CONFIRMED' + | 'COMMITMENT_TYPE_PROCESSED' + +/** + * Describes the enum capabilities.blockchain.solana.v1alpha.CommitmentType. + */ +export const CommitmentTypeSchema: GenEnum = + /*@__PURE__*/ + enumDesc(file_capabilities_blockchain_solana_v1alpha_client, 1) + +/** + * Cluster confirmation status of a tx/signature. + * + * @generated from enum capabilities.blockchain.solana.v1alpha.ConfirmationStatusType + */ +export enum ConfirmationStatusType { + /** + * @generated from enum value: CONFIRMATION_STATUS_TYPE_NONE = 0; + */ + NONE = 0, + + /** + * @generated from enum value: CONFIRMATION_STATUS_TYPE_PROCESSED = 1; + */ + PROCESSED = 1, + + /** + * @generated from enum value: CONFIRMATION_STATUS_TYPE_CONFIRMED = 2; + */ + CONFIRMED = 2, + + /** + * @generated from enum value: CONFIRMATION_STATUS_TYPE_FINALIZED = 3; + */ + FINALIZED = 3, +} + +/** + * Cluster confirmation status of a tx/signature. + * + * @generated from enum capabilities.blockchain.solana.v1alpha.ConfirmationStatusType + */ +export type ConfirmationStatusTypeJson = + | 'CONFIRMATION_STATUS_TYPE_NONE' + | 'CONFIRMATION_STATUS_TYPE_PROCESSED' + | 'CONFIRMATION_STATUS_TYPE_CONFIRMED' + | 'CONFIRMATION_STATUS_TYPE_FINALIZED' + +/** + * Describes the enum capabilities.blockchain.solana.v1alpha.ConfirmationStatusType. + */ +export const ConfirmationStatusTypeSchema: GenEnum< + ConfirmationStatusType, + ConfirmationStatusTypeJson +> = /*@__PURE__*/ enumDesc(file_capabilities_blockchain_solana_v1alpha_client, 2) + +/** + * Transaction execution status returned by submitters/simulations. + * + * @generated from enum capabilities.blockchain.solana.v1alpha.TxStatus + */ +export enum TxStatus { + /** + * unrecoverable failure + * + * @generated from enum value: TX_STATUS_FATAL = 0; + */ + FATAL = 0, + + /** + * not executed / dropped + * + * @generated from enum value: TX_STATUS_ABORTED = 1; + */ + ABORTED = 1, + + /** + * executed successfully + * + * @generated from enum value: TX_STATUS_SUCCESS = 2; + */ + SUCCESS = 2, +} + +/** + * Transaction execution status returned by submitters/simulations. + * + * @generated from enum capabilities.blockchain.solana.v1alpha.TxStatus + */ +export type TxStatusJson = 'TX_STATUS_FATAL' | 'TX_STATUS_ABORTED' | 'TX_STATUS_SUCCESS' + +/** + * Describes the enum capabilities.blockchain.solana.v1alpha.TxStatus. + */ +export const TxStatusSchema: GenEnum = + /*@__PURE__*/ + enumDesc(file_capabilities_blockchain_solana_v1alpha_client, 3) + +/** + * @generated from enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus + */ +export enum ReceiverContractExecutionStatus { + /** + * @generated from enum value: RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS = 0; + */ + SUCCESS = 0, + + /** + * @generated from enum value: RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED = 1; + */ + REVERTED = 1, +} + +/** + * @generated from enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus + */ +export type ReceiverContractExecutionStatusJson = + | 'RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS' + | 'RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED' + +/** + * Describes the enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus. + */ +export const ReceiverContractExecutionStatusSchema: GenEnum< + ReceiverContractExecutionStatus, + ReceiverContractExecutionStatusJson +> = /*@__PURE__*/ enumDesc(file_capabilities_blockchain_solana_v1alpha_client, 4) + +/** + * @generated from service capabilities.blockchain.solana.v1alpha.Client + */ +export const Client: GenService<{ + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetAccountInfoWithOpts + */ + getAccountInfoWithOpts: { + methodKind: 'unary' + input: typeof GetAccountInfoWithOptsRequestSchema + output: typeof GetAccountInfoWithOptsReplySchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetBalance + */ + getBalance: { + methodKind: 'unary' + input: typeof GetBalanceRequestSchema + output: typeof GetBalanceReplySchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetBlock + */ + getBlock: { + methodKind: 'unary' + input: typeof GetBlockRequestSchema + output: typeof GetBlockReplySchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetFeeForMessage + */ + getFeeForMessage: { + methodKind: 'unary' + input: typeof GetFeeForMessageRequestSchema + output: typeof GetFeeForMessageReplySchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetMultipleAccountsWithOpts + */ + getMultipleAccountsWithOpts: { + methodKind: 'unary' + input: typeof GetMultipleAccountsWithOptsRequestSchema + output: typeof GetMultipleAccountsWithOptsReplySchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetSignatureStatuses + */ + getSignatureStatuses: { + methodKind: 'unary' + input: typeof GetSignatureStatusesRequestSchema + output: typeof GetSignatureStatusesReplySchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetSlotHeight + */ + getSlotHeight: { + methodKind: 'unary' + input: typeof GetSlotHeightRequestSchema + output: typeof GetSlotHeightReplySchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetTransaction + */ + getTransaction: { + methodKind: 'unary' + input: typeof GetTransactionRequestSchema + output: typeof GetTransactionReplySchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.LogTrigger + */ + logTrigger: { + methodKind: 'server_streaming' + input: typeof FilterLogTriggerRequestSchema + output: typeof LogSchema + } + /** + * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.WriteReport + */ + writeReport: { + methodKind: 'unary' + input: typeof WriteReportRequestSchema + output: typeof WriteReportReplySchema + } +}> = /*@__PURE__*/ serviceDesc(file_capabilities_blockchain_solana_v1alpha_client, 0) diff --git a/packages/cre-sdk/src/generated/capabilities/internal/consensus/v1beta/consensus_pb.ts b/packages/cre-sdk/src/generated/capabilities/internal/consensus/v1beta/consensus_pb.ts new file mode 100644 index 00000000..28e39f2e --- /dev/null +++ b/packages/cre-sdk/src/generated/capabilities/internal/consensus/v1beta/consensus_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,import_extension=none,json_types=true,keep_empty_files=false" +// @generated from file capabilities/internal/consensus/v1beta/consensus.proto (package capabilities.internal.consensus.v1, syntax proto3) +/* eslint-disable */ + +import type { GenFile, GenService } from '@bufbuild/protobuf/codegenv2' +import { fileDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2' +import type { + ReportRequestSchema, + ReportResponseSchema, + SimpleConsensusInputsSchema, +} from '../../../../sdk/v1beta/sdk_pb' +import { file_sdk_v1beta_sdk } from '../../../../sdk/v1beta/sdk_pb' +import { file_tools_generator_v1beta_cre_metadata } from '../../../../tools/generator/v1beta/cre_metadata_pb' +import type { ValueSchema } from '../../../../values/v1/values_pb' +import { file_values_v1_values } from '../../../../values/v1/values_pb' + +/** + * Describes the file capabilities/internal/consensus/v1beta/consensus.proto. + */ +export const file_capabilities_internal_consensus_v1beta_consensus: GenFile = + /*@__PURE__*/ + fileDesc( + 'CjZjYXBhYmlsaXRpZXMvaW50ZXJuYWwvY29uc2Vuc3VzL3YxYmV0YS9jb25zZW5zdXMucHJvdG8SImNhcGFiaWxpdGllcy5pbnRlcm5hbC5jb25zZW5zdXMudjEymAEKCUNvbnNlbnN1cxI5CgZTaW1wbGUSHS5zZGsudjEuU2ltcGxlQ29uc2Vuc3VzSW5wdXRzGhAudmFsdWVzLnYxLlZhbHVlEjcKBlJlcG9ydBIVLnNkay52MS5SZXBvcnRSZXF1ZXN0GhYuc2RrLnYxLlJlcG9ydFJlc3BvbnNlGheStRgTCAESD2NvbnNlbnN1c0AxLjAuMELjAQomY29tLmNhcGFiaWxpdGllcy5pbnRlcm5hbC5jb25zZW5zdXMudjFCDkNvbnNlbnN1c1Byb3RvUAGiAgNDSUOqAiJDYXBhYmlsaXRpZXMuSW50ZXJuYWwuQ29uc2Vuc3VzLlYxygIiQ2FwYWJpbGl0aWVzXEludGVybmFsXENvbnNlbnN1c1xWMeICLkNhcGFiaWxpdGllc1xJbnRlcm5hbFxDb25zZW5zdXNcVjFcR1BCTWV0YWRhdGHqAiVDYXBhYmlsaXRpZXM6OkludGVybmFsOjpDb25zZW5zdXM6OlYxYgZwcm90bzM', + [file_sdk_v1beta_sdk, file_tools_generator_v1beta_cre_metadata, file_values_v1_values], + ) + +/** + * @generated from service capabilities.internal.consensus.v1.Consensus + */ +export const Consensus: GenService<{ + /** + * @generated from rpc capabilities.internal.consensus.v1.Consensus.Simple + */ + simple: { + methodKind: 'unary' + input: typeof SimpleConsensusInputsSchema + output: typeof ValueSchema + } + /** + * @generated from rpc capabilities.internal.consensus.v1.Consensus.Report + */ + report: { + methodKind: 'unary' + input: typeof ReportRequestSchema + output: typeof ReportResponseSchema + } +}> = /*@__PURE__*/ serviceDesc(file_capabilities_internal_consensus_v1beta_consensus, 0) diff --git a/packages/cre-sdk/src/generated/capabilities/networking/confidentialhttp/v1alpha/client_pb.ts b/packages/cre-sdk/src/generated/capabilities/networking/confidentialhttp/v1alpha/client_pb.ts index 57ed33cf..4fa9aa48 100644 --- a/packages/cre-sdk/src/generated/capabilities/networking/confidentialhttp/v1alpha/client_pb.ts +++ b/packages/cre-sdk/src/generated/capabilities/networking/confidentialhttp/v1alpha/client_pb.ts @@ -2,11 +2,9 @@ // @generated from file capabilities/networking/confidentialhttp/v1alpha/client.proto (package capabilities.networking.confidentialhttp.v1alpha, syntax proto3) /* eslint-disable */ -import type { JsonObject, Message } from '@bufbuild/protobuf' +import type { Message } from '@bufbuild/protobuf' import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2' import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2' -import type { StructJson } from '@bufbuild/protobuf/wkt' -import { file_google_protobuf_struct } from '@bufbuild/protobuf/wkt' import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/generator/v1alpha/cre_metadata_pb' /** @@ -15,8 +13,8 @@ import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/gen export const file_capabilities_networking_confidentialhttp_v1alpha_client: GenFile = /*@__PURE__*/ fileDesc( - 'Cj1jYXBhYmlsaXRpZXMvbmV0d29ya2luZy9jb25maWRlbnRpYWxodHRwL3YxYWxwaGEvY2xpZW50LnByb3RvEjBjYXBhYmlsaXRpZXMubmV0d29ya2luZy5jb25maWRlbnRpYWxodHRwLnYxYWxwaGEiUAoQU2VjcmV0SWRlbnRpZmllchILCgNrZXkYASABKAkSEQoJbmFtZXNwYWNlGAIgASgJEhIKBW93bmVyGAMgASgJSACIAQFCCAoGX293bmVyIpoBCgdSZXF1ZXN0EgwKBGJvZHkYASABKAkSGgoSY3VzdG9tX2NlcnRfYnVuZGxlGAIgASgMEg8KB2hlYWRlcnMYAyADKAkSDgoGbWV0aG9kGAQgASgJEjcKFnB1YmxpY190ZW1wbGF0ZV92YWx1ZXMYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EgsKA3VybBgGIAEoCSKzAQoFSW5wdXQSSwoIcmVxdWVzdHMYASADKAsyOS5jYXBhYmlsaXRpZXMubmV0d29ya2luZy5jb25maWRlbnRpYWxodHRwLnYxYWxwaGEuUmVxdWVzdBJdChF2YXVsdF9kb25fc2VjcmV0cxgCIAMoCzJCLmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5TZWNyZXRJZGVudGlmaWVyIjwKE091dHB1dFJlc3BvbnNlc0VsZW0SDAoEYm9keRgBIAEoDBIXCgtzdGF0dXNfY29kZRgCIAEoA0ICMAAiYgoGT3V0cHV0ElgKCXJlc3BvbnNlcxgBIAMoCzJFLmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5PdXRwdXRSZXNwb25zZXNFbGVtMrsBCgZDbGllbnQSgQEKDFNlbmRSZXF1ZXN0cxI3LmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5JbnB1dBo4LmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5PdXRwdXQaLYK1GCkIAhIlY29uZmlkZW50aWFsLWh0dHAtYWN0aW9uc0AxLjAuMC1hbHBoYUKmAgo0Y29tLmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYUILQ2xpZW50UHJvdG9QAaICA0NOQ6oCMENhcGFiaWxpdGllcy5OZXR3b3JraW5nLkNvbmZpZGVudGlhbGh0dHAuVjFhbHBoYcoCMENhcGFiaWxpdGllc1xOZXR3b3JraW5nXENvbmZpZGVudGlhbGh0dHBcVjFhbHBoYeICPENhcGFiaWxpdGllc1xOZXR3b3JraW5nXENvbmZpZGVudGlhbGh0dHBcVjFhbHBoYVxHUEJNZXRhZGF0YeoCM0NhcGFiaWxpdGllczo6TmV0d29ya2luZzo6Q29uZmlkZW50aWFsaHR0cDo6VjFhbHBoYWIGcHJvdG8z', - [file_google_protobuf_struct, file_tools_generator_v1alpha_cre_metadata], + 'Cj1jYXBhYmlsaXRpZXMvbmV0d29ya2luZy9jb25maWRlbnRpYWxodHRwL3YxYWxwaGEvY2xpZW50LnByb3RvEjBjYXBhYmlsaXRpZXMubmV0d29ya2luZy5jb25maWRlbnRpYWxodHRwLnYxYWxwaGEiUAoQU2VjcmV0SWRlbnRpZmllchILCgNrZXkYASABKAkSEQoJbmFtZXNwYWNlGAIgASgJEhIKBW93bmVyGAMgASgJSACIAQFCCAoGX293bmVyIpMCCgdSZXF1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pbmcuY29uZmlkZW50aWFsaHR0cC52MWFscGhhLkVuY2xhdmVBY3Rpb25JbnB1dBpJLmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5IVFRQRW5jbGF2ZVJlc3BvbnNlRGF0YRolgrUYIQgCEh1jb25maWRlbnRpYWwtaHR0cEAxLjAuMC1hbHBoYUKmAgo0Y29tLmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYUILQ2xpZW50UHJvdG9QAaICA0NOQ6oCMENhcGFiaWxpdGllcy5OZXR3b3JraW5nLkNvbmZpZGVudGlhbGh0dHAuVjFhbHBoYcoCMENhcGFiaWxpdGllc1xOZXR3b3JraW5nXENvbmZpZGVudGlhbGh0dHBcVjFhbHBoYeICPENhcGFiaWxpdGllc1xOZXR3b3JraW5nXENvbmZpZGVudGlhbGh0dHBcVjFhbHBoYVxHUEJNZXRhZGF0YeoCM0NhcGFiaWxpdGllczo6TmV0d29ya2luZzo6Q29uZmlkZW50aWFsaHR0cDo6VjFhbHBoYWIGcHJvdG8z', + [file_tools_generator_v1alpha_cre_metadata], ) /** @@ -74,34 +72,34 @@ export const SecretIdentifierSchema: GenMessage< */ export type Request = Message<'capabilities.networking.confidentialhttp.v1alpha.Request'> & { /** - * @generated from field: string body = 1; + * @generated from field: string url = 1; */ - body: string + url: string /** - * @generated from field: bytes custom_cert_bundle = 2; + * @generated from field: string method = 2; */ - customCertBundle: Uint8Array + method: string /** - * @generated from field: repeated string headers = 3; + * @generated from field: string body = 3; */ - headers: string[] + body: string /** - * @generated from field: string method = 4; + * @generated from field: repeated string headers = 4; */ - method: string + headers: string[] /** - * @generated from field: google.protobuf.Struct public_template_values = 5; + * @generated from field: map public_template_values = 5; */ - publicTemplateValues?: JsonObject + publicTemplateValues: { [key: string]: string } /** - * @generated from field: string url = 6; + * @generated from field: bytes custom_cert_bundle = 6; */ - url: string + customCertBundle: Uint8Array } /** @@ -109,34 +107,34 @@ export type Request = Message<'capabilities.networking.confidentialhttp.v1alpha. */ export type RequestJson = { /** - * @generated from field: string body = 1; + * @generated from field: string url = 1; */ - body?: string + url?: string /** - * @generated from field: bytes custom_cert_bundle = 2; + * @generated from field: string method = 2; */ - customCertBundle?: string + method?: string /** - * @generated from field: repeated string headers = 3; + * @generated from field: string body = 3; */ - headers?: string[] + body?: string /** - * @generated from field: string method = 4; + * @generated from field: repeated string headers = 4; */ - method?: string + headers?: string[] /** - * @generated from field: google.protobuf.Struct public_template_values = 5; + * @generated from field: map public_template_values = 5; */ - publicTemplateValues?: StructJson + publicTemplateValues?: { [key: string]: string } /** - * @generated from field: string url = 6; + * @generated from field: bytes custom_cert_bundle = 6; */ - url?: string + customCertBundle?: string } /** @@ -148,110 +146,144 @@ export const RequestSchema: GenMessage = messageDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 1) /** - * @generated from message capabilities.networking.confidentialhttp.v1alpha.Input + * @generated from message capabilities.networking.confidentialhttp.v1alpha.ResponseTemplate + */ +export type ResponseTemplate = + Message<'capabilities.networking.confidentialhttp.v1alpha.ResponseTemplate'> & { + /** + * @generated from field: int64 status_code = 1 [jstype = JS_NORMAL]; + */ + statusCode: bigint + + /** + * @generated from field: bytes body = 2; + */ + body: Uint8Array + } + +/** + * @generated from message capabilities.networking.confidentialhttp.v1alpha.ResponseTemplate */ -export type Input = Message<'capabilities.networking.confidentialhttp.v1alpha.Input'> & { +export type ResponseTemplateJson = { /** - * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.Request requests = 1; + * @generated from field: int64 status_code = 1 [jstype = JS_NORMAL]; */ - requests: Request[] + statusCode?: string /** - * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier vault_don_secrets = 2; + * @generated from field: bytes body = 2; */ - vaultDonSecrets: SecretIdentifier[] + body?: string } /** - * @generated from message capabilities.networking.confidentialhttp.v1alpha.Input + * Describes the message capabilities.networking.confidentialhttp.v1alpha.ResponseTemplate. + * Use `create(ResponseTemplateSchema)` to create a new message. + */ +export const ResponseTemplateSchema: GenMessage< + ResponseTemplate, + { jsonType: ResponseTemplateJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 2) + +/** + * @generated from message capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveRequestData + */ +export type HTTPEnclaveRequestData = + Message<'capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveRequestData'> & { + /** + * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.Request requests = 1; + */ + requests: Request[] + } + +/** + * @generated from message capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveRequestData */ -export type InputJson = { +export type HTTPEnclaveRequestDataJson = { /** * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.Request requests = 1; */ requests?: RequestJson[] - - /** - * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier vault_don_secrets = 2; - */ - vaultDonSecrets?: SecretIdentifierJson[] } /** - * Describes the message capabilities.networking.confidentialhttp.v1alpha.Input. - * Use `create(InputSchema)` to create a new message. + * Describes the message capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveRequestData. + * Use `create(HTTPEnclaveRequestDataSchema)` to create a new message. */ -export const InputSchema: GenMessage = - /*@__PURE__*/ - messageDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 2) +export const HTTPEnclaveRequestDataSchema: GenMessage< + HTTPEnclaveRequestData, + { jsonType: HTTPEnclaveRequestDataJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 3) /** - * @generated from message capabilities.networking.confidentialhttp.v1alpha.OutputResponsesElem + * @generated from message capabilities.networking.confidentialhttp.v1alpha.EnclaveActionInput */ -export type OutputResponsesElem = - Message<'capabilities.networking.confidentialhttp.v1alpha.OutputResponsesElem'> & { +export type EnclaveActionInput = + Message<'capabilities.networking.confidentialhttp.v1alpha.EnclaveActionInput'> & { /** - * @generated from field: bytes body = 1; + * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier vault_don_secrets = 1; */ - body: Uint8Array + vaultDonSecrets: SecretIdentifier[] /** - * @generated from field: int64 status_code = 2 [jstype = JS_NORMAL]; + * @generated from field: capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveRequestData input = 2; */ - statusCode: bigint + input?: HTTPEnclaveRequestData } /** - * @generated from message capabilities.networking.confidentialhttp.v1alpha.OutputResponsesElem + * @generated from message capabilities.networking.confidentialhttp.v1alpha.EnclaveActionInput */ -export type OutputResponsesElemJson = { +export type EnclaveActionInputJson = { /** - * @generated from field: bytes body = 1; + * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier vault_don_secrets = 1; */ - body?: string + vaultDonSecrets?: SecretIdentifierJson[] /** - * @generated from field: int64 status_code = 2 [jstype = JS_NORMAL]; + * @generated from field: capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveRequestData input = 2; */ - statusCode?: string + input?: HTTPEnclaveRequestDataJson } /** - * Describes the message capabilities.networking.confidentialhttp.v1alpha.OutputResponsesElem. - * Use `create(OutputResponsesElemSchema)` to create a new message. + * Describes the message capabilities.networking.confidentialhttp.v1alpha.EnclaveActionInput. + * Use `create(EnclaveActionInputSchema)` to create a new message. */ -export const OutputResponsesElemSchema: GenMessage< - OutputResponsesElem, - { jsonType: OutputResponsesElemJson } -> = /*@__PURE__*/ messageDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 3) +export const EnclaveActionInputSchema: GenMessage< + EnclaveActionInput, + { jsonType: EnclaveActionInputJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 4) /** - * @generated from message capabilities.networking.confidentialhttp.v1alpha.Output + * @generated from message capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveResponseData */ -export type Output = Message<'capabilities.networking.confidentialhttp.v1alpha.Output'> & { - /** - * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.OutputResponsesElem responses = 1; - */ - responses: OutputResponsesElem[] -} +export type HTTPEnclaveResponseData = + Message<'capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveResponseData'> & { + /** + * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.ResponseTemplate responses = 1; + */ + responses: ResponseTemplate[] + } /** - * @generated from message capabilities.networking.confidentialhttp.v1alpha.Output + * @generated from message capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveResponseData */ -export type OutputJson = { +export type HTTPEnclaveResponseDataJson = { /** - * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.OutputResponsesElem responses = 1; + * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.ResponseTemplate responses = 1; */ - responses?: OutputResponsesElemJson[] + responses?: ResponseTemplateJson[] } /** - * Describes the message capabilities.networking.confidentialhttp.v1alpha.Output. - * Use `create(OutputSchema)` to create a new message. + * Describes the message capabilities.networking.confidentialhttp.v1alpha.HTTPEnclaveResponseData. + * Use `create(HTTPEnclaveResponseDataSchema)` to create a new message. */ -export const OutputSchema: GenMessage = - /*@__PURE__*/ - messageDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 4) +export const HTTPEnclaveResponseDataSchema: GenMessage< + HTTPEnclaveResponseData, + { jsonType: HTTPEnclaveResponseDataJson } +> = /*@__PURE__*/ messageDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 5) /** * @generated from service capabilities.networking.confidentialhttp.v1alpha.Client @@ -262,7 +294,7 @@ export const Client: GenService<{ */ sendRequests: { methodKind: 'unary' - input: typeof InputSchema - output: typeof OutputSchema + input: typeof EnclaveActionInputSchema + output: typeof HTTPEnclaveResponseDataSchema } }> = /*@__PURE__*/ serviceDesc(file_capabilities_networking_confidentialhttp_v1alpha_client, 0) diff --git a/packages/cre-sdk/src/generated/capabilities/networking/http/v1alpha/client_pb.ts b/packages/cre-sdk/src/generated/capabilities/networking/http/v1alpha/client_pb.ts index 1b797892..c96b03c0 100644 --- a/packages/cre-sdk/src/generated/capabilities/networking/http/v1alpha/client_pb.ts +++ b/packages/cre-sdk/src/generated/capabilities/networking/http/v1alpha/client_pb.ts @@ -5,6 +5,8 @@ import type { Message } from '@bufbuild/protobuf' import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2' import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2' +import type { Duration, DurationJson } from '@bufbuild/protobuf/wkt' +import { file_google_protobuf_duration } from '@bufbuild/protobuf/wkt' import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/generator/v1alpha/cre_metadata_pb' /** @@ -13,8 +15,8 @@ import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/gen export const file_capabilities_networking_http_v1alpha_client: GenFile = /*@__PURE__*/ fileDesc( - 'CjFjYXBhYmlsaXRpZXMvbmV0d29ya2luZy9odHRwL3YxYWxwaGEvY2xpZW50LnByb3RvEiRjYXBhYmlsaXRpZXMubmV0d29ya2luZy5odHRwLnYxYWxwaGEiPAoNQ2FjaGVTZXR0aW5ncxIXCg9yZWFkX2Zyb21fY2FjaGUYASABKAgSEgoKbWF4X2FnZV9tcxgCIAEoBSKSAgoHUmVxdWVzdBILCgN1cmwYASABKAkSDgoGbWV0aG9kGAIgASgJEksKB2hlYWRlcnMYAyADKAsyOi5jYXBhYmlsaXRpZXMubmV0d29ya2luZy5odHRwLnYxYWxwaGEuUmVxdWVzdC5IZWFkZXJzRW50cnkSDAoEYm9keRgEIAEoDBISCgp0aW1lb3V0X21zGAUgASgFEksKDmNhY2hlX3NldHRpbmdzGAYgASgLMjMuY2FwYWJpbGl0aWVzLm5ldHdvcmtpbmcuaHR0cC52MWFscGhhLkNhY2hlU2V0dGluZ3MaLgoMSGVhZGVyc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiqwEKCFJlc3BvbnNlEhMKC3N0YXR1c19jb2RlGAEgASgNEkwKB2hlYWRlcnMYAiADKAsyOy5jYXBhYm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,18 +26,18 @@ export const file_capabilities_networking_http_v1alpha_client: GenFile = */ export type CacheSettings = Message<'capabilities.networking.http.v1alpha.CacheSettings'> & { /** - * If true, attempt to read a cached response for the request. + * If true, cache the response. * - * @generated from field: bool read_from_cache = 1; + * @generated from field: bool store = 1; */ - readFromCache: boolean + store: boolean /** - * Maximum age of a cached response in milliseconds. + * Maximum age of a cached response. If zero, do not attempt to read from cache * - * @generated from field: int32 max_age_ms = 2; + * @generated from field: google.protobuf.Duration max_age = 2; */ - maxAgeMs: number + maxAge?: Duration } /** @@ -45,18 +47,18 @@ export type CacheSettings = Message<'capabilities.networking.http.v1alpha.CacheS */ export type CacheSettingsJson = { /** - * If true, attempt to read a cached response for the request. + * If true, cache the response. * - * @generated from field: bool read_from_cache = 1; + * @generated from field: bool store = 1; */ - readFromCache?: boolean + store?: boolean /** - * Maximum age of a cached response in milliseconds. + * Maximum age of a cached response. If zero, do not attempt to read from cache * - * @generated from field: int32 max_age_ms = 2; + * @generated from field: google.protobuf.Duration max_age = 2; */ - maxAgeMs?: number + maxAge?: DurationJson } /** @@ -92,9 +94,11 @@ export type Request = Message<'capabilities.networking.http.v1alpha.Request'> & body: Uint8Array /** - * @generated from field: int32 timeout_ms = 5; + * Request timeout duration + * + * @generated from field: google.protobuf.Duration timeout = 5; */ - timeoutMs: number + timeout?: Duration /** * @generated from field: capabilities.networking.http.v1alpha.CacheSettings cache_settings = 6; @@ -127,9 +131,11 @@ export type RequestJson = { body?: string /** - * @generated from field: int32 timeout_ms = 5; + * Request timeout duration + * + * @generated from field: google.protobuf.Duration timeout = 5; */ - timeoutMs?: number + timeout?: DurationJson /** * @generated from field: capabilities.networking.http.v1alpha.CacheSettings cache_settings = 6; diff --git a/packages/cre-sdk/src/generated/sdk/v1beta/sdk_pb.ts b/packages/cre-sdk/src/generated/sdk/v1beta/sdk_pb.ts new file mode 100644 index 00000000..ba9ff8a8 --- /dev/null +++ b/packages/cre-sdk/src/generated/sdk/v1beta/sdk_pb.ts @@ -0,0 +1,1150 @@ +// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,import_extension=none,json_types=true,keep_empty_files=false" +// @generated from file sdk/v1beta/sdk.proto (package sdk.v1, syntax proto3) +/* eslint-disable */ + +import type { Message } from '@bufbuild/protobuf' +import type { GenEnum, GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2' +import { enumDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv2' +import type { Any, AnyJson, Empty, EmptyJson } from '@bufbuild/protobuf/wkt' +import { file_google_protobuf_any, file_google_protobuf_empty } from '@bufbuild/protobuf/wkt' +import type { Value, ValueJson } from '../../values/v1/values_pb' +import { file_values_v1_values } from '../../values/v1/values_pb' + +/** + * Describes the file sdk/v1beta/sdk.proto. + */ +export const file_sdk_v1beta_sdk: GenFile = + /*@__PURE__*/ + fileDesc( + 'ChRzZGsvdjFiZXRhL3Nkay5wcm90bxIGc2RrLnYxIq8BChVTaW1wbGVDb25zZW5zdXNJbnB1dHMSIQoFdmFsdWUYASABKAsyEC52YWx1ZXMudjEuVmFsdWVIABIPCgVlcnJvchgCIAEoCUgAEjAKC2Rlc2NyaXB0b3JzGAMgASgLMhsuc2RrLnYxLkNvbnNlbnN1c0Rlc2NyaXB0b3ISIQoHZGVmYXVsdBgEIAEoCzIQLnZhbHVlcy52MS5WYWx1ZUINCgtvYnNlcnZhdGlvbiKGAQoJRmllbGRzTWFwEi0KBmZpZWxkcxgBIAMoCzIdLnNkay52MS5GaWVsZHNNYXAuRmllbGRzRW50cnkaSgoLRmllbGRzRW50cnkSCwoDa2V5GAEgASgJEioKBXZhbHVlGAIgASgLMhsuc2RrLnYxLkNvbnNlbnN1c0Rlc2NyaXB0b3I6AjgBInwKE0NvbnNlbnN1c0Rlc2NyaXB0b3ISLgoLYWdncmVnYXRpb24YASABKA4yFy5zZGsudjEuQWdncmVnYXRpb25UeXBlSAASJwoKZmllbGRzX21hcBgCIAEoCzIRLnNkay52MS5GaWVsZHNNYXBIAEIMCgpkZ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KCW5hbWVzcGFjZRgCIAEoCSJFCgZTZWNyZXQSCgoCaWQYASABKAkSEQoJbmFtZXNwYWNlGAIgASgJEg0KBW93bmVyGAMgASgJEg0KBXZhbHVlGAQgASgJIkoKC1NlY3JldEVycm9yEgoKAmlkGAEgASgJEhEKCW5hbWVzcGFjZRgCIAEoCRINCgVvd25lchgDIAEoCRINCgVlcnJvchgEIAEoCSJkCg5TZWNyZXRSZXNwb25zZRIgCgZzZWNyZXQYASABKAsyDi5zZGsudjEuU2VjcmV0SAASJAoFZXJyb3IYAiABKAsyEy5zZGsudjEuU2VjcmV0RXJyb3JIAEIKCghyZXNwb25zZSI8Cg9TZWNyZXRSZXNwb25zZXMSKQoJcmVzcG9uc2VzGAEgAygLMhYuc2RrLnYxLlNlY3JldFJlc3BvbnNlKrgBCg9BZ2dyZWdhdGlvblR5cGUSIAocQUdHUkVHQVRJT05fVFlQRV9VTlNQRUNJRklFRBAAEhsKF0FHR1JFR0FUSU9OX1RZUEVfTUVESUFOEAESHgoaQUdHUkVHQVRJT05fVFlQRV9JREVOVElDQUwQAhIiCh5BR0dSRUdBVElPTl9UWVBFX0NPTU1PTl9QUkVGSVgQAxIiCh5BR0dSRUdBVElPTl9UWVBFX0NPTU1PTl9TVUZGSVgQBCo5CgRNb2RlEhQKEE1PREVfVU5TUEVDSUZJRUQQABIMCghNT0RFX0RPThABEg0KCU1PREVfTk9ERRACQk8KCmNvbS5zZGsudjFCCFNka1Byb3RvUAGiAgNTWFiqAgZTZGsuVjHKAgZTZGtcVjHiAhJTZGtcVjFcR1BCTWV0YWRhdGHqAgdTZGs6OlYxYgZwcm90bzM', + [file_google_protobuf_any, file_google_protobuf_empty, file_values_v1_values], + ) + +/** + * @generated from message sdk.v1.SimpleConsensusInputs + */ +export type SimpleConsensusInputs = Message<'sdk.v1.SimpleConsensusInputs'> & { + /** + * @generated from oneof sdk.v1.SimpleConsensusInputs.observation + */ + observation: + | { + /** + * @generated from field: values.v1.Value value = 1; + */ + value: Value + case: 'value' + } + | { + /** + * @generated from field: string error = 2; + */ + value: string + case: 'error' + } + | { case: undefined; value?: undefined } + + /** + * @generated from field: sdk.v1.ConsensusDescriptor descriptors = 3; + */ + descriptors?: ConsensusDescriptor + + /** + * @generated from field: values.v1.Value default = 4; + */ + default?: Value +} + +/** + * @generated from message sdk.v1.SimpleConsensusInputs + */ +export type SimpleConsensusInputsJson = { + /** + * @generated from field: values.v1.Value value = 1; + */ + value?: ValueJson + + /** + * @generated from field: string error = 2; + */ + error?: string + + /** + * @generated from field: sdk.v1.ConsensusDescriptor descriptors = 3; + */ + descriptors?: ConsensusDescriptorJson + + /** + * @generated from field: values.v1.Value default = 4; + */ + default?: ValueJson +} + +/** + * Describes the message sdk.v1.SimpleConsensusInputs. + * Use `create(SimpleConsensusInputsSchema)` to create a new message. + */ +export const SimpleConsensusInputsSchema: GenMessage< + SimpleConsensusInputs, + { jsonType: SimpleConsensusInputsJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 0) + +/** + * @generated from message sdk.v1.FieldsMap + */ +export type FieldsMap = Message<'sdk.v1.FieldsMap'> & { + /** + * @generated from field: map fields = 1; + */ + fields: { [key: string]: ConsensusDescriptor } +} + +/** + * @generated from message sdk.v1.FieldsMap + */ +export type FieldsMapJson = { + /** + * @generated from field: map fields = 1; + */ + fields?: { [key: string]: ConsensusDescriptorJson } +} + +/** + * Describes the message sdk.v1.FieldsMap. + * Use `create(FieldsMapSchema)` to create a new message. + */ +export const FieldsMapSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 1) + +/** + * @generated from message sdk.v1.ConsensusDescriptor + */ +export type ConsensusDescriptor = Message<'sdk.v1.ConsensusDescriptor'> & { + /** + * @generated from oneof sdk.v1.ConsensusDescriptor.descriptor + */ + descriptor: + | { + /** + * @generated from field: sdk.v1.AggregationType aggregation = 1; + */ + value: AggregationType + case: 'aggregation' + } + | { + /** + * @generated from field: sdk.v1.FieldsMap fields_map = 2; + */ + value: FieldsMap + case: 'fieldsMap' + } + | { case: undefined; value?: undefined } +} + +/** + * @generated from message sdk.v1.ConsensusDescriptor + */ +export type ConsensusDescriptorJson = { + /** + * @generated from field: sdk.v1.AggregationType aggregation = 1; + */ + aggregation?: AggregationTypeJson + + /** + * @generated from field: sdk.v1.FieldsMap fields_map = 2; + */ + fieldsMap?: FieldsMapJson +} + +/** + * Describes the message sdk.v1.ConsensusDescriptor. + * Use `create(ConsensusDescriptorSchema)` to create a new message. + */ +export const ConsensusDescriptorSchema: GenMessage< + ConsensusDescriptor, + { jsonType: ConsensusDescriptorJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 2) + +/** + * @generated from message sdk.v1.ReportRequest + */ +export type ReportRequest = Message<'sdk.v1.ReportRequest'> & { + /** + * @generated from field: bytes encoded_payload = 1; + */ + encodedPayload: Uint8Array + + /** + * @generated from field: string encoder_name = 2; + */ + encoderName: string + + /** + * @generated from field: string signing_algo = 3; + */ + signingAlgo: string + + /** + * @generated from field: string hashing_algo = 4; + */ + hashingAlgo: string +} + +/** + * @generated from message sdk.v1.ReportRequest + */ +export type ReportRequestJson = { + /** + * @generated from field: bytes encoded_payload = 1; + */ + encodedPayload?: string + + /** + * @generated from field: string encoder_name = 2; + */ + encoderName?: string + + /** + * @generated from field: string signing_algo = 3; + */ + signingAlgo?: string + + /** + * @generated from field: string hashing_algo = 4; + */ + hashingAlgo?: string +} + +/** + * Describes the message sdk.v1.ReportRequest. + * Use `create(ReportRequestSchema)` to create a new message. + */ +export const ReportRequestSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 3) + +/** + * @generated from message sdk.v1.ReportResponse + */ +export type ReportResponse = Message<'sdk.v1.ReportResponse'> & { + /** + * @generated from field: bytes config_digest = 1; + */ + configDigest: Uint8Array + + /** + * @generated from field: uint64 seq_nr = 2 [jstype = JS_NORMAL]; + */ + seqNr: bigint + + /** + * combination of seq_nr and config_digest + * + * @generated from field: bytes report_context = 3; + */ + reportContext: Uint8Array + + /** + * @generated from field: bytes raw_report = 4; + */ + rawReport: Uint8Array + + /** + * @generated from field: repeated sdk.v1.AttributedSignature sigs = 5; + */ + sigs: AttributedSignature[] +} + +/** + * @generated from message sdk.v1.ReportResponse + */ +export type ReportResponseJson = { + /** + * @generated from field: bytes config_digest = 1; + */ + configDigest?: string + + /** + * @generated from field: uint64 seq_nr = 2 [jstype = JS_NORMAL]; + */ + seqNr?: string + + /** + * combination of seq_nr and config_digest + * + * @generated from field: bytes report_context = 3; + */ + reportContext?: string + + /** + * @generated from field: bytes raw_report = 4; + */ + rawReport?: string + + /** + * @generated from field: repeated sdk.v1.AttributedSignature sigs = 5; + */ + sigs?: AttributedSignatureJson[] +} + +/** + * Describes the message sdk.v1.ReportResponse. + * Use `create(ReportResponseSchema)` to create a new message. + */ +export const ReportResponseSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 4) + +/** + * @generated from message sdk.v1.AttributedSignature + */ +export type AttributedSignature = Message<'sdk.v1.AttributedSignature'> & { + /** + * @generated from field: bytes signature = 1; + */ + signature: Uint8Array + + /** + * @generated from field: uint32 signer_id = 2; + */ + signerId: number +} + +/** + * @generated from message sdk.v1.AttributedSignature + */ +export type AttributedSignatureJson = { + /** + * @generated from field: bytes signature = 1; + */ + signature?: string + + /** + * @generated from field: uint32 signer_id = 2; + */ + signerId?: number +} + +/** + * Describes the message sdk.v1.AttributedSignature. + * Use `create(AttributedSignatureSchema)` to create a new message. + */ +export const AttributedSignatureSchema: GenMessage< + AttributedSignature, + { jsonType: AttributedSignatureJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 5) + +/** + * @generated from message sdk.v1.CapabilityRequest + */ +export type CapabilityRequest = Message<'sdk.v1.CapabilityRequest'> & { + /** + * @generated from field: string id = 1; + */ + id: string + + /** + * @generated from field: google.protobuf.Any payload = 2; + */ + payload?: Any + + /** + * @generated from field: string method = 3; + */ + method: string + + /** + * @generated from field: int32 callback_id = 4; + */ + callbackId: number +} + +/** + * @generated from message sdk.v1.CapabilityRequest + */ +export type CapabilityRequestJson = { + /** + * @generated from field: string id = 1; + */ + id?: string + + /** + * @generated from field: google.protobuf.Any payload = 2; + */ + payload?: AnyJson + + /** + * @generated from field: string method = 3; + */ + method?: string + + /** + * @generated from field: int32 callback_id = 4; + */ + callbackId?: number +} + +/** + * Describes the message sdk.v1.CapabilityRequest. + * Use `create(CapabilityRequestSchema)` to create a new message. + */ +export const CapabilityRequestSchema: GenMessage< + CapabilityRequest, + { jsonType: CapabilityRequestJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 6) + +/** + * @generated from message sdk.v1.CapabilityResponse + */ +export type CapabilityResponse = Message<'sdk.v1.CapabilityResponse'> & { + /** + * @generated from oneof sdk.v1.CapabilityResponse.response + */ + response: + | { + /** + * @generated from field: google.protobuf.Any payload = 1; + */ + value: Any + case: 'payload' + } + | { + /** + * @generated from field: string error = 2; + */ + value: string + case: 'error' + } + | { case: undefined; value?: undefined } +} + +/** + * @generated from message sdk.v1.CapabilityResponse + */ +export type CapabilityResponseJson = { + /** + * @generated from field: google.protobuf.Any payload = 1; + */ + payload?: AnyJson + + /** + * @generated from field: string error = 2; + */ + error?: string +} + +/** + * Describes the message sdk.v1.CapabilityResponse. + * Use `create(CapabilityResponseSchema)` to create a new message. + */ +export const CapabilityResponseSchema: GenMessage< + CapabilityResponse, + { jsonType: CapabilityResponseJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 7) + +/** + * @generated from message sdk.v1.TriggerSubscription + */ +export type TriggerSubscription = Message<'sdk.v1.TriggerSubscription'> & { + /** + * @generated from field: string id = 1; + */ + id: string + + /** + * @generated from field: google.protobuf.Any payload = 2; + */ + payload?: Any + + /** + * @generated from field: string method = 3; + */ + method: string +} + +/** + * @generated from message sdk.v1.TriggerSubscription + */ +export type TriggerSubscriptionJson = { + /** + * @generated from field: string id = 1; + */ + id?: string + + /** + * @generated from field: google.protobuf.Any payload = 2; + */ + payload?: AnyJson + + /** + * @generated from field: string method = 3; + */ + method?: string +} + +/** + * Describes the message sdk.v1.TriggerSubscription. + * Use `create(TriggerSubscriptionSchema)` to create a new message. + */ +export const TriggerSubscriptionSchema: GenMessage< + TriggerSubscription, + { jsonType: TriggerSubscriptionJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 8) + +/** + * @generated from message sdk.v1.TriggerSubscriptionRequest + */ +export type TriggerSubscriptionRequest = Message<'sdk.v1.TriggerSubscriptionRequest'> & { + /** + * @generated from field: repeated sdk.v1.TriggerSubscription subscriptions = 1; + */ + subscriptions: TriggerSubscription[] +} + +/** + * @generated from message sdk.v1.TriggerSubscriptionRequest + */ +export type TriggerSubscriptionRequestJson = { + /** + * @generated from field: repeated sdk.v1.TriggerSubscription subscriptions = 1; + */ + subscriptions?: TriggerSubscriptionJson[] +} + +/** + * Describes the message sdk.v1.TriggerSubscriptionRequest. + * Use `create(TriggerSubscriptionRequestSchema)` to create a new message. + */ +export const TriggerSubscriptionRequestSchema: GenMessage< + TriggerSubscriptionRequest, + { jsonType: TriggerSubscriptionRequestJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 9) + +/** + * @generated from message sdk.v1.Trigger + */ +export type Trigger = Message<'sdk.v1.Trigger'> & { + /** + * @generated from field: uint64 id = 1 [jstype = JS_NORMAL]; + */ + id: bigint + + /** + * @generated from field: google.protobuf.Any payload = 2; + */ + payload?: Any +} + +/** + * @generated from message sdk.v1.Trigger + */ +export type TriggerJson = { + /** + * @generated from field: uint64 id = 1 [jstype = JS_NORMAL]; + */ + id?: string + + /** + * @generated from field: google.protobuf.Any payload = 2; + */ + payload?: AnyJson +} + +/** + * Describes the message sdk.v1.Trigger. + * Use `create(TriggerSchema)` to create a new message. + */ +export const TriggerSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 10) + +/** + * @generated from message sdk.v1.AwaitCapabilitiesRequest + */ +export type AwaitCapabilitiesRequest = Message<'sdk.v1.AwaitCapabilitiesRequest'> & { + /** + * @generated from field: repeated int32 ids = 1; + */ + ids: number[] +} + +/** + * @generated from message sdk.v1.AwaitCapabilitiesRequest + */ +export type AwaitCapabilitiesRequestJson = { + /** + * @generated from field: repeated int32 ids = 1; + */ + ids?: number[] +} + +/** + * Describes the message sdk.v1.AwaitCapabilitiesRequest. + * Use `create(AwaitCapabilitiesRequestSchema)` to create a new message. + */ +export const AwaitCapabilitiesRequestSchema: GenMessage< + AwaitCapabilitiesRequest, + { jsonType: AwaitCapabilitiesRequestJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 11) + +/** + * @generated from message sdk.v1.AwaitCapabilitiesResponse + */ +export type AwaitCapabilitiesResponse = Message<'sdk.v1.AwaitCapabilitiesResponse'> & { + /** + * @generated from field: map responses = 1; + */ + responses: { [key: number]: CapabilityResponse } +} + +/** + * @generated from message sdk.v1.AwaitCapabilitiesResponse + */ +export type AwaitCapabilitiesResponseJson = { + /** + * @generated from field: map responses = 1; + */ + responses?: { [key: number]: CapabilityResponseJson } +} + +/** + * Describes the message sdk.v1.AwaitCapabilitiesResponse. + * Use `create(AwaitCapabilitiesResponseSchema)` to create a new message. + */ +export const AwaitCapabilitiesResponseSchema: GenMessage< + AwaitCapabilitiesResponse, + { jsonType: AwaitCapabilitiesResponseJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 12) + +/** + * @generated from message sdk.v1.ExecuteRequest + */ +export type ExecuteRequest = Message<'sdk.v1.ExecuteRequest'> & { + /** + * @generated from field: bytes config = 1; + */ + config: Uint8Array + + /** + * @generated from oneof sdk.v1.ExecuteRequest.request + */ + request: + | { + /** + * @generated from field: google.protobuf.Empty subscribe = 2; + */ + value: Empty + case: 'subscribe' + } + | { + /** + * @generated from field: sdk.v1.Trigger trigger = 3; + */ + value: Trigger + case: 'trigger' + } + | { case: undefined; value?: undefined } + + /** + * @generated from field: uint64 max_response_size = 4 [jstype = JS_NORMAL]; + */ + maxResponseSize: bigint +} + +/** + * @generated from message sdk.v1.ExecuteRequest + */ +export type ExecuteRequestJson = { + /** + * @generated from field: bytes config = 1; + */ + config?: string + + /** + * @generated from field: google.protobuf.Empty subscribe = 2; + */ + subscribe?: EmptyJson + + /** + * @generated from field: sdk.v1.Trigger trigger = 3; + */ + trigger?: TriggerJson + + /** + * @generated from field: uint64 max_response_size = 4 [jstype = JS_NORMAL]; + */ + maxResponseSize?: string +} + +/** + * Describes the message sdk.v1.ExecuteRequest. + * Use `create(ExecuteRequestSchema)` to create a new message. + */ +export const ExecuteRequestSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 13) + +/** + * @generated from message sdk.v1.ExecutionResult + */ +export type ExecutionResult = Message<'sdk.v1.ExecutionResult'> & { + /** + * @generated from oneof sdk.v1.ExecutionResult.result + */ + result: + | { + /** + * @generated from field: values.v1.Value value = 1; + */ + value: Value + case: 'value' + } + | { + /** + * @generated from field: string error = 2; + */ + value: string + case: 'error' + } + | { + /** + * @generated from field: sdk.v1.TriggerSubscriptionRequest trigger_subscriptions = 3; + */ + value: TriggerSubscriptionRequest + case: 'triggerSubscriptions' + } + | { case: undefined; value?: undefined } +} + +/** + * @generated from message sdk.v1.ExecutionResult + */ +export type ExecutionResultJson = { + /** + * @generated from field: values.v1.Value value = 1; + */ + value?: ValueJson + + /** + * @generated from field: string error = 2; + */ + error?: string + + /** + * @generated from field: sdk.v1.TriggerSubscriptionRequest trigger_subscriptions = 3; + */ + triggerSubscriptions?: TriggerSubscriptionRequestJson +} + +/** + * Describes the message sdk.v1.ExecutionResult. + * Use `create(ExecutionResultSchema)` to create a new message. + */ +export const ExecutionResultSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 14) + +/** + * @generated from message sdk.v1.GetSecretsRequest + */ +export type GetSecretsRequest = Message<'sdk.v1.GetSecretsRequest'> & { + /** + * @generated from field: repeated sdk.v1.SecretRequest requests = 1; + */ + requests: SecretRequest[] + + /** + * @generated from field: int32 callback_id = 2; + */ + callbackId: number +} + +/** + * @generated from message sdk.v1.GetSecretsRequest + */ +export type GetSecretsRequestJson = { + /** + * @generated from field: repeated sdk.v1.SecretRequest requests = 1; + */ + requests?: SecretRequestJson[] + + /** + * @generated from field: int32 callback_id = 2; + */ + callbackId?: number +} + +/** + * Describes the message sdk.v1.GetSecretsRequest. + * Use `create(GetSecretsRequestSchema)` to create a new message. + */ +export const GetSecretsRequestSchema: GenMessage< + GetSecretsRequest, + { jsonType: GetSecretsRequestJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 15) + +/** + * @generated from message sdk.v1.AwaitSecretsRequest + */ +export type AwaitSecretsRequest = Message<'sdk.v1.AwaitSecretsRequest'> & { + /** + * @generated from field: repeated int32 ids = 1; + */ + ids: number[] +} + +/** + * @generated from message sdk.v1.AwaitSecretsRequest + */ +export type AwaitSecretsRequestJson = { + /** + * @generated from field: repeated int32 ids = 1; + */ + ids?: number[] +} + +/** + * Describes the message sdk.v1.AwaitSecretsRequest. + * Use `create(AwaitSecretsRequestSchema)` to create a new message. + */ +export const AwaitSecretsRequestSchema: GenMessage< + AwaitSecretsRequest, + { jsonType: AwaitSecretsRequestJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 16) + +/** + * @generated from message sdk.v1.AwaitSecretsResponse + */ +export type AwaitSecretsResponse = Message<'sdk.v1.AwaitSecretsResponse'> & { + /** + * @generated from field: map responses = 1; + */ + responses: { [key: number]: SecretResponses } +} + +/** + * @generated from message sdk.v1.AwaitSecretsResponse + */ +export type AwaitSecretsResponseJson = { + /** + * @generated from field: map responses = 1; + */ + responses?: { [key: number]: SecretResponsesJson } +} + +/** + * Describes the message sdk.v1.AwaitSecretsResponse. + * Use `create(AwaitSecretsResponseSchema)` to create a new message. + */ +export const AwaitSecretsResponseSchema: GenMessage< + AwaitSecretsResponse, + { jsonType: AwaitSecretsResponseJson } +> = /*@__PURE__*/ messageDesc(file_sdk_v1beta_sdk, 17) + +/** + * @generated from message sdk.v1.SecretRequest + */ +export type SecretRequest = Message<'sdk.v1.SecretRequest'> & { + /** + * @generated from field: string id = 1; + */ + id: string + + /** + * @generated from field: string namespace = 2; + */ + namespace: string +} + +/** + * @generated from message sdk.v1.SecretRequest + */ +export type SecretRequestJson = { + /** + * @generated from field: string id = 1; + */ + id?: string + + /** + * @generated from field: string namespace = 2; + */ + namespace?: string +} + +/** + * Describes the message sdk.v1.SecretRequest. + * Use `create(SecretRequestSchema)` to create a new message. + */ +export const SecretRequestSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 18) + +/** + * @generated from message sdk.v1.Secret + */ +export type Secret = Message<'sdk.v1.Secret'> & { + /** + * @generated from field: string id = 1; + */ + id: string + + /** + * @generated from field: string namespace = 2; + */ + namespace: string + + /** + * @generated from field: string owner = 3; + */ + owner: string + + /** + * @generated from field: string value = 4; + */ + value: string +} + +/** + * @generated from message sdk.v1.Secret + */ +export type SecretJson = { + /** + * @generated from field: string id = 1; + */ + id?: string + + /** + * @generated from field: string namespace = 2; + */ + namespace?: string + + /** + * @generated from field: string owner = 3; + */ + owner?: string + + /** + * @generated from field: string value = 4; + */ + value?: string +} + +/** + * Describes the message sdk.v1.Secret. + * Use `create(SecretSchema)` to create a new message. + */ +export const SecretSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 19) + +/** + * @generated from message sdk.v1.SecretError + */ +export type SecretError = Message<'sdk.v1.SecretError'> & { + /** + * @generated from field: string id = 1; + */ + id: string + + /** + * @generated from field: string namespace = 2; + */ + namespace: string + + /** + * @generated from field: string owner = 3; + */ + owner: string + + /** + * @generated from field: string error = 4; + */ + error: string +} + +/** + * @generated from message sdk.v1.SecretError + */ +export type SecretErrorJson = { + /** + * @generated from field: string id = 1; + */ + id?: string + + /** + * @generated from field: string namespace = 2; + */ + namespace?: string + + /** + * @generated from field: string owner = 3; + */ + owner?: string + + /** + * @generated from field: string error = 4; + */ + error?: string +} + +/** + * Describes the message sdk.v1.SecretError. + * Use `create(SecretErrorSchema)` to create a new message. + */ +export const SecretErrorSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 20) + +/** + * @generated from message sdk.v1.SecretResponse + */ +export type SecretResponse = Message<'sdk.v1.SecretResponse'> & { + /** + * @generated from oneof sdk.v1.SecretResponse.response + */ + response: + | { + /** + * @generated from field: sdk.v1.Secret secret = 1; + */ + value: Secret + case: 'secret' + } + | { + /** + * @generated from field: sdk.v1.SecretError error = 2; + */ + value: SecretError + case: 'error' + } + | { case: undefined; value?: undefined } +} + +/** + * @generated from message sdk.v1.SecretResponse + */ +export type SecretResponseJson = { + /** + * @generated from field: sdk.v1.Secret secret = 1; + */ + secret?: SecretJson + + /** + * @generated from field: sdk.v1.SecretError error = 2; + */ + error?: SecretErrorJson +} + +/** + * Describes the message sdk.v1.SecretResponse. + * Use `create(SecretResponseSchema)` to create a new message. + */ +export const SecretResponseSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 21) + +/** + * @generated from message sdk.v1.SecretResponses + */ +export type SecretResponses = Message<'sdk.v1.SecretResponses'> & { + /** + * @generated from field: repeated sdk.v1.SecretResponse responses = 1; + */ + responses: SecretResponse[] +} + +/** + * @generated from message sdk.v1.SecretResponses + */ +export type SecretResponsesJson = { + /** + * @generated from field: repeated sdk.v1.SecretResponse responses = 1; + */ + responses?: SecretResponseJson[] +} + +/** + * Describes the message sdk.v1.SecretResponses. + * Use `create(SecretResponsesSchema)` to create a new message. + */ +export const SecretResponsesSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_sdk_v1beta_sdk, 22) + +/** + * @generated from enum sdk.v1.AggregationType + */ +export enum AggregationType { + /** + * @generated from enum value: AGGREGATION_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: AGGREGATION_TYPE_MEDIAN = 1; + */ + MEDIAN = 1, + + /** + * @generated from enum value: AGGREGATION_TYPE_IDENTICAL = 2; + */ + IDENTICAL = 2, + + /** + * @generated from enum value: AGGREGATION_TYPE_COMMON_PREFIX = 3; + */ + COMMON_PREFIX = 3, + + /** + * @generated from enum value: AGGREGATION_TYPE_COMMON_SUFFIX = 4; + */ + COMMON_SUFFIX = 4, +} + +/** + * @generated from enum sdk.v1.AggregationType + */ +export type AggregationTypeJson = + | 'AGGREGATION_TYPE_UNSPECIFIED' + | 'AGGREGATION_TYPE_MEDIAN' + | 'AGGREGATION_TYPE_IDENTICAL' + | 'AGGREGATION_TYPE_COMMON_PREFIX' + | 'AGGREGATION_TYPE_COMMON_SUFFIX' + +/** + * Describes the enum sdk.v1.AggregationType. + */ +export const AggregationTypeSchema: GenEnum = + /*@__PURE__*/ + enumDesc(file_sdk_v1beta_sdk, 0) + +/** + * @generated from enum sdk.v1.Mode + */ +export enum Mode { + /** + * @generated from enum value: MODE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: MODE_DON = 1; + */ + DON = 1, + + /** + * @generated from enum value: MODE_NODE = 2; + */ + NODE = 2, +} + +/** + * @generated from enum sdk.v1.Mode + */ +export type ModeJson = 'MODE_UNSPECIFIED' | 'MODE_DON' | 'MODE_NODE' + +/** + * Describes the enum sdk.v1.Mode. + */ +export const ModeSchema: GenEnum = /*@__PURE__*/ enumDesc(file_sdk_v1beta_sdk, 1) diff --git a/packages/cre-sdk/src/generated/tools/generator/v1beta/cre_metadata_pb.ts b/packages/cre-sdk/src/generated/tools/generator/v1beta/cre_metadata_pb.ts new file mode 100644 index 00000000..7535d438 --- /dev/null +++ b/packages/cre-sdk/src/generated/tools/generator/v1beta/cre_metadata_pb.ts @@ -0,0 +1,341 @@ +// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,import_extension=none,json_types=true,keep_empty_files=false" +// @generated from file tools/generator/v1beta/cre_metadata.proto (package tools.generator.v1, syntax proto3) +/* eslint-disable */ + +import type { Message } from '@bufbuild/protobuf' +import type { GenExtension, GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2' +import { extDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv2' +import type { MethodOptions, ServiceOptions } from '@bufbuild/protobuf/wkt' +import { file_google_protobuf_descriptor } from '@bufbuild/protobuf/wkt' +import type { Mode, ModeJson } from '../../../sdk/v1beta/sdk_pb' +import { file_sdk_v1beta_sdk } from '../../../sdk/v1beta/sdk_pb' + +/** + * Describes the file tools/generator/v1beta/cre_metadata.proto. + */ +export const file_tools_generator_v1beta_cre_metadata: GenFile = + /*@__PURE__*/ + fileDesc( + 'Cil0b29scy9nZW5lcmF0b3IvdjFiZXRhL2NyZV9tZXRhZGF0YS5wcm90bxISdG9vbHMuZ2VuZXJhdG9yLnYxIn8KC1N0cmluZ0xhYmVsEj8KCGRlZmF1bHRzGAEgAygLMi0udG9vbHMuZ2VuZXJhdG9yLnYxLlN0cmluZ0xhYmVsLkRlZmF1bHRzRW50cnkaLwoNRGVmYXVsdHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIoMBCgtVaW50NjRMYWJlbBI/CghkZWZhdWx0cxgBIAMoCzItLnRvb2xzLmdlbmVyYXRvci52MS5VaW50NjRMYWJlbC5EZWZhdWx0c0VudHJ5GjMKDURlZmF1bHRzRW50cnkSCwoDa2V5GAEgASgJEhEKBXZhbHVlGAIgASgEQgIwADoCOAEifwoLVWludDMyTGFiZWwSPwoIZGVmYXVsdHMYASADKAsyLS50b29scy5nZW5lcmF0b3IudjEuVWludDMyTGFiZWwuRGVmYXVsdHNFbnRyeRovCg1EZWZhdWx0c0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDToCOAEigQEKCkludDY0TGFiZWwSPgoIZGVmYXVsdHMYASADKAsyLC50b29scy5nZW5lcmF0b3IudjEuSW50NjRMYWJlbC5EZWZhdWx0c0VudHJ5GjMKDURlZmF1bHR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0b3IudjEuQ2FwYWJpbGl0eU1ldGFkYXRhUgpjYXBhYmlsaXR5OmYKBm1ldGhvZBIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGNOGAyABKAsyLC50b29scy5nZW5lcmF0b3IudjEuQ2FwYWJpbGl0eU1ldGhvZE1ldGFkYXRhUgZtZXRob2RClgEKFmNvbS50b29scy5nZW5lcmF0b3IudjFCEENyZU1ldGFkYXRhUHJvdG9QAaICA1RHWKoCElRvb2xzLkdlbmVyYXRvci5WMcoCE1Rvb2xzXEdlbmVyYXRvcl9cVjHiAh9Ub29sc1xHZW5lcmF0b3JfXFYxXEdQQk1ldGFkYXRh6gIUVG9vbHM6OkdlbmVyYXRvcjo6VjFiBnByb3RvMw', + [file_google_protobuf_descriptor, file_sdk_v1beta_sdk], + ) + +/** + * @generated from message tools.generator.v1.StringLabel + */ +export type StringLabel = Message<'tools.generator.v1.StringLabel'> & { + /** + * @generated from field: map defaults = 1; + */ + defaults: { [key: string]: string } +} + +/** + * @generated from message tools.generator.v1.StringLabel + */ +export type StringLabelJson = { + /** + * @generated from field: map defaults = 1; + */ + defaults?: { [key: string]: string } +} + +/** + * Describes the message tools.generator.v1.StringLabel. + * Use `create(StringLabelSchema)` to create a new message. + */ +export const StringLabelSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_tools_generator_v1beta_cre_metadata, 0) + +/** + * @generated from message tools.generator.v1.Uint64Label + */ +export type Uint64Label = Message<'tools.generator.v1.Uint64Label'> & { + /** + * @generated from field: map defaults = 1; + */ + defaults: { [key: string]: bigint } +} + +/** + * @generated from message tools.generator.v1.Uint64Label + */ +export type Uint64LabelJson = { + /** + * @generated from field: map defaults = 1; + */ + defaults?: { [key: string]: string } +} + +/** + * Describes the message tools.generator.v1.Uint64Label. + * Use `create(Uint64LabelSchema)` to create a new message. + */ +export const Uint64LabelSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_tools_generator_v1beta_cre_metadata, 1) + +/** + * @generated from message tools.generator.v1.Uint32Label + */ +export type Uint32Label = Message<'tools.generator.v1.Uint32Label'> & { + /** + * @generated from field: map defaults = 1; + */ + defaults: { [key: string]: number } +} + +/** + * @generated from message tools.generator.v1.Uint32Label + */ +export type Uint32LabelJson = { + /** + * @generated from field: map defaults = 1; + */ + defaults?: { [key: string]: number } +} + +/** + * Describes the message tools.generator.v1.Uint32Label. + * Use `create(Uint32LabelSchema)` to create a new message. + */ +export const Uint32LabelSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_tools_generator_v1beta_cre_metadata, 2) + +/** + * @generated from message tools.generator.v1.Int64Label + */ +export type Int64Label = Message<'tools.generator.v1.Int64Label'> & { + /** + * @generated from field: map defaults = 1; + */ + defaults: { [key: string]: bigint } +} + +/** + * @generated from message tools.generator.v1.Int64Label + */ +export type Int64LabelJson = { + /** + * @generated from field: map defaults = 1; + */ + defaults?: { [key: string]: string } +} + +/** + * Describes the message tools.generator.v1.Int64Label. + * Use `create(Int64LabelSchema)` to create a new message. + */ +export const Int64LabelSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_tools_generator_v1beta_cre_metadata, 3) + +/** + * @generated from message tools.generator.v1.Int32Label + */ +export type Int32Label = Message<'tools.generator.v1.Int32Label'> & { + /** + * @generated from field: map defaults = 1; + */ + defaults: { [key: string]: number } +} + +/** + * @generated from message tools.generator.v1.Int32Label + */ +export type Int32LabelJson = { + /** + * @generated from field: map defaults = 1; + */ + defaults?: { [key: string]: number } +} + +/** + * Describes the message tools.generator.v1.Int32Label. + * Use `create(Int32LabelSchema)` to create a new message. + */ +export const Int32LabelSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_tools_generator_v1beta_cre_metadata, 4) + +/** + * @generated from message tools.generator.v1.Label + */ +export type Label = Message<'tools.generator.v1.Label'> & { + /** + * @generated from oneof tools.generator.v1.Label.kind + */ + kind: + | { + /** + * @generated from field: tools.generator.v1.StringLabel string_label = 1; + */ + value: StringLabel + case: 'stringLabel' + } + | { + /** + * @generated from field: tools.generator.v1.Uint64Label uint64_label = 2; + */ + value: Uint64Label + case: 'uint64Label' + } + | { + /** + * @generated from field: tools.generator.v1.Int64Label int64_label = 3; + */ + value: Int64Label + case: 'int64Label' + } + | { + /** + * @generated from field: tools.generator.v1.Uint32Label uint32_label = 4; + */ + value: Uint32Label + case: 'uint32Label' + } + | { + /** + * @generated from field: tools.generator.v1.Int32Label int32_label = 5; + */ + value: Int32Label + case: 'int32Label' + } + | { case: undefined; value?: undefined } +} + +/** + * @generated from message tools.generator.v1.Label + */ +export type LabelJson = { + /** + * @generated from field: tools.generator.v1.StringLabel string_label = 1; + */ + stringLabel?: StringLabelJson + + /** + * @generated from field: tools.generator.v1.Uint64Label uint64_label = 2; + */ + uint64Label?: Uint64LabelJson + + /** + * @generated from field: tools.generator.v1.Int64Label int64_label = 3; + */ + int64Label?: Int64LabelJson + + /** + * @generated from field: tools.generator.v1.Uint32Label uint32_label = 4; + */ + uint32Label?: Uint32LabelJson + + /** + * @generated from field: tools.generator.v1.Int32Label int32_label = 5; + */ + int32Label?: Int32LabelJson +} + +/** + * Describes the message tools.generator.v1.Label. + * Use `create(LabelSchema)` to create a new message. + */ +export const LabelSchema: GenMessage = + /*@__PURE__*/ + messageDesc(file_tools_generator_v1beta_cre_metadata, 5) + +/** + * @generated from message tools.generator.v1.CapabilityMetadata + */ +export type CapabilityMetadata = Message<'tools.generator.v1.CapabilityMetadata'> & { + /** + * @generated from field: sdk.v1.Mode mode = 1; + */ + mode: Mode + + /** + * @generated from field: string capability_id = 2; + */ + capabilityId: string + + /** + * @generated from field: map labels = 3; + */ + labels: { [key: string]: Label } +} + +/** + * @generated from message tools.generator.v1.CapabilityMetadata + */ +export type CapabilityMetadataJson = { + /** + * @generated from field: sdk.v1.Mode mode = 1; + */ + mode?: ModeJson + + /** + * @generated from field: string capability_id = 2; + */ + capabilityId?: string + + /** + * @generated from field: map labels = 3; + */ + labels?: { [key: string]: LabelJson } +} + +/** + * Describes the message tools.generator.v1.CapabilityMetadata. + * Use `create(CapabilityMetadataSchema)` to create a new message. + */ +export const CapabilityMetadataSchema: GenMessage< + CapabilityMetadata, + { jsonType: CapabilityMetadataJson } +> = /*@__PURE__*/ messageDesc(file_tools_generator_v1beta_cre_metadata, 6) + +/** + * @generated from message tools.generator.v1.CapabilityMethodMetadata + */ +export type CapabilityMethodMetadata = Message<'tools.generator.v1.CapabilityMethodMetadata'> & { + /** + * @generated from field: bool map_to_untyped_api = 1; + */ + mapToUntypedApi: boolean +} + +/** + * @generated from message tools.generator.v1.CapabilityMethodMetadata + */ +export type CapabilityMethodMetadataJson = { + /** + * @generated from field: bool map_to_untyped_api = 1; + */ + mapToUntypedApi?: boolean +} + +/** + * Describes the message tools.generator.v1.CapabilityMethodMetadata. + * Use `create(CapabilityMethodMetadataSchema)` to create a new message. + */ +export const CapabilityMethodMetadataSchema: GenMessage< + CapabilityMethodMetadata, + { jsonType: CapabilityMethodMetadataJson } +> = /*@__PURE__*/ messageDesc(file_tools_generator_v1beta_cre_metadata, 7) + +/** + * 50000-99999 is the range for custom options. + * + * @generated from extension: tools.generator.v1.CapabilityMetadata capability = 50002; + */ +export const capability: GenExtension = + /*@__PURE__*/ + extDesc(file_tools_generator_v1beta_cre_metadata, 0) + +/** + * 50000-99999 is the range for custom options. + * + * @generated from extension: tools.generator.v1.CapabilityMethodMetadata method = 50003; + */ +export const method: GenExtension = + /*@__PURE__*/ + extDesc(file_tools_generator_v1beta_cre_metadata, 1) diff --git a/packages/cre-sdk/src/sdk/utils/chain-selectors/get-network.test.ts b/packages/cre-sdk/src/sdk/utils/chain-selectors/get-network.test.ts index f2b24631..48387601 100644 --- a/packages/cre-sdk/src/sdk/utils/chain-selectors/get-network.test.ts +++ b/packages/cre-sdk/src/sdk/utils/chain-selectors/get-network.test.ts @@ -1,332 +1,332 @@ -import { describe, expect, it } from "bun:test"; -import { NetworkLookup } from "./network-lookup"; +import { describe, expect, it } from 'bun:test' +import { NetworkLookup } from './network-lookup' // Mock the generated networks module with deterministic fixtures const evmMain = { - chainId: "1", - chainSelector: { name: "EVM_MAIN", selector: 100n }, - chainFamily: "evm", - networkType: "mainnet", -} as const; + chainId: '1', + chainSelector: { name: 'EVM_MAIN', selector: 100n }, + chainFamily: 'evm', + networkType: 'mainnet', +} as const const evmTest = { - chainId: "5", - chainSelector: { name: "EVM_TEST", selector: 200n }, - chainFamily: "evm", - networkType: "testnet", -} as const; + chainId: '5', + chainSelector: { name: 'EVM_TEST', selector: 200n }, + chainFamily: 'evm', + networkType: 'testnet', +} as const const solMain = { - chainId: "sol-main", - chainSelector: { name: "SOL_MAIN", selector: 300n }, - chainFamily: "solana", - networkType: "mainnet", -} as const; + chainId: 'sol-main', + chainSelector: { name: 'SOL_MAIN', selector: 300n }, + chainFamily: 'solana', + networkType: 'mainnet', +} as const const solTest = { - chainId: "sol-test", - chainSelector: { name: "SOL_TEST", selector: 400n }, - chainFamily: "solana", - networkType: "testnet", -} as const; + chainId: 'sol-test', + chainSelector: { name: 'SOL_TEST', selector: 400n }, + chainFamily: 'solana', + networkType: 'testnet', +} as const // Create all maps required by getNetwork const mainnetBySelector = new Map([ - [evmMain.chainSelector.selector, evmMain], - [solMain.chainSelector.selector, solMain], -]); + [evmMain.chainSelector.selector, evmMain], + [solMain.chainSelector.selector, solMain], +]) const testnetBySelector = new Map([ - [evmTest.chainSelector.selector, evmTest], - [solTest.chainSelector.selector, solTest], -]); + [evmTest.chainSelector.selector, evmTest], + [solTest.chainSelector.selector, solTest], +]) const mainnetByName = new Map([ - [evmMain.chainSelector.name, evmMain], - [solMain.chainSelector.name, solMain], -]); + [evmMain.chainSelector.name, evmMain], + [solMain.chainSelector.name, solMain], +]) const testnetByName = new Map([ - [evmTest.chainSelector.name, evmTest], - [solTest.chainSelector.name, solTest], -]); + [evmTest.chainSelector.name, evmTest], + [solTest.chainSelector.name, solTest], +]) const mainnetBySelectorByFamily = { - evm: new Map([[evmMain.chainSelector.selector, evmMain]]), - solana: new Map([[solMain.chainSelector.selector, solMain]]), - aptos: new Map(), - sui: new Map(), - ton: new Map(), - tron: new Map(), -} as const; + evm: new Map([[evmMain.chainSelector.selector, evmMain]]), + solana: new Map([[solMain.chainSelector.selector, solMain]]), + aptos: new Map(), + sui: new Map(), + ton: new Map(), + tron: new Map(), +} as const const testnetBySelectorByFamily = { - evm: new Map([[evmTest.chainSelector.selector, evmTest]]), - solana: new Map([[solTest.chainSelector.selector, solTest]]), - aptos: new Map(), - sui: new Map(), - ton: new Map(), - tron: new Map(), -} as const; + evm: new Map([[evmTest.chainSelector.selector, evmTest]]), + solana: new Map([[solTest.chainSelector.selector, solTest]]), + aptos: new Map(), + sui: new Map(), + ton: new Map(), + tron: new Map(), +} as const const mainnetByNameByFamily = { - evm: new Map([[evmMain.chainSelector.name, evmMain]]), - solana: new Map([[solMain.chainSelector.name, solMain]]), - aptos: new Map(), - sui: new Map(), - ton: new Map(), - tron: new Map(), -} as const; + evm: new Map([[evmMain.chainSelector.name, evmMain]]), + solana: new Map([[solMain.chainSelector.name, solMain]]), + aptos: new Map(), + sui: new Map(), + ton: new Map(), + tron: new Map(), +} as const const testnetByNameByFamily = { - evm: new Map([[evmTest.chainSelector.name, evmTest]]), - solana: new Map([[solTest.chainSelector.name, solTest]]), - aptos: new Map(), - sui: new Map(), - ton: new Map(), - tron: new Map(), -} as const; + evm: new Map([[evmTest.chainSelector.name, evmTest]]), + solana: new Map([[solTest.chainSelector.name, solTest]]), + aptos: new Map(), + sui: new Map(), + ton: new Map(), + tron: new Map(), +} as const const lookup = new NetworkLookup({ - mainnetByName, - mainnetByNameByFamily, - mainnetBySelector, - mainnetBySelectorByFamily, - testnetByName, - testnetByNameByFamily, - testnetBySelector, - testnetBySelectorByFamily, -}); - -const getNetwork = (opts: any) => lookup.find(opts); - -describe("getNetwork", () => { - it("returns undefined when neither chainSelector nor chainSelectorName provided", () => { - expect(getNetwork({})).toBeUndefined(); - }); - - // chainFamily + chainSelector - it("uses family+selector with isTestnet=true (testnet family map)", () => { - const result = getNetwork({ - chainFamily: "evm", - chainSelector: 200n, - isTestnet: true, - }); - expect(result).toEqual(evmTest); - }); - - it("uses family+selector with isTestnet=false (mainnet family map)", () => { - const result = getNetwork({ - chainFamily: "evm", - chainSelector: 100n, - isTestnet: false, - }); - expect(result).toEqual(evmMain); - }); - - it("uses family+selector with isTestnet undefined defaults to mainnet map", () => { - const result = getNetwork({ chainFamily: "solana", chainSelector: 300n }); - expect(result).toEqual(solMain); - }); - - it("uses family+selector with isTestnet undefined prefers testnet when present", () => { - const result = getNetwork({ chainFamily: "evm", chainSelector: 200n }); - expect(result).toEqual(evmTest); - }); - - it("family+selector returns undefined when selector not in that family", () => { - const result = getNetwork({ - chainFamily: "evm", - chainSelector: 300n, - isTestnet: false, - }); - expect(result).toBeUndefined(); - }); - - // chainFamily + chainSelectorName - it("uses family+name with isTestnet=true (testnet family map)", () => { - const result = getNetwork({ - chainFamily: "solana", - chainSelectorName: "SOL_TEST", - isTestnet: true, - }); - expect(result).toEqual(solTest); - }); - - it("uses family+name with isTestnet=false (mainnet family map)", () => { - const result = getNetwork({ - chainFamily: "solana", - chainSelectorName: "SOL_MAIN", - isTestnet: false, - }); - expect(result).toEqual(solMain); - }); - - it("uses family+name with isTestnet undefined defaults to mainnet map", () => { - const result = getNetwork({ - chainFamily: "evm", - chainSelectorName: "EVM_MAIN", - }); - expect(result).toEqual(evmMain); - }); - - it("uses family+name with isTestnet undefined prefers testnet when present", () => { - const result = getNetwork({ - chainFamily: "evm", - chainSelectorName: "EVM_TEST", - }); - expect(result).toEqual(evmTest); - }); - - it("family+name returns undefined when name not in that family", () => { - const result = getNetwork({ - chainFamily: "solana", - chainSelectorName: "EVM_MAIN", - isTestnet: false, - }); - expect(result).toBeUndefined(); - }); - - // selector only - it("selector only with isTestnet=false returns mainnet", () => { - const result = getNetwork({ chainSelector: 100n, isTestnet: false }); - expect(result).toEqual(evmMain); - }); - - it("selector only with isTestnet=true returns testnet", () => { - const result = getNetwork({ chainSelector: 200n, isTestnet: true }); - expect(result).toEqual(evmTest); - }); - - it("selector only with isTestnet undefined prefers testnet if exists", () => { - // create duplicate selector present in both maps to assert preference - const dupMain = { - ...evmMain, - chainSelector: { - ...evmMain.chainSelector, - selector: 900n, - name: "DUP_MAIN", - }, - }; - const dupTest = { - ...evmTest, - chainSelector: { - ...evmTest.chainSelector, - selector: 900n, - name: "DUP_TEST", - }, - }; - mainnetBySelector.set(900n, dupMain); - testnetBySelector.set(900n, dupTest); - - const result = getNetwork({ chainSelector: 900n }); - expect(result).toEqual(dupTest); - }); - - it("selector only with isTestnet undefined falls back to mainnet if not in testnet", () => { - const result = getNetwork({ chainSelector: 300n }); - expect(result).toEqual(solMain); - }); - - it("selector only returns undefined when not found anywhere", () => { - const result = getNetwork({ chainSelector: 9999n }); - expect(result).toBeUndefined(); - }); - - // both selector and name provided - selector takes precedence - it("both selector and name provided without family uses selector path", () => { - const result = getNetwork({ - chainSelector: 100n, - chainSelectorName: "SOL_MAIN", - isTestnet: false, - }); - expect(result).toEqual(evmMain); - }); - - it("both selector and name provided with family uses selector path", () => { - const result = getNetwork({ - chainFamily: "solana", - chainSelector: 300n, - chainSelectorName: "EVM_MAIN", - }); - expect(result).toEqual(solMain); - }); - - it("both selector and name provided prefers testnet by selector when isTestnet undefined", () => { - // ensure duplicate in both maps like earlier - const dupMain = { - ...evmMain, - chainSelector: { - ...evmMain.chainSelector, - selector: 901n, - name: "DUP2_MAIN", - }, - }; - const dupTest = { - ...evmTest, - chainSelector: { - ...evmTest.chainSelector, - selector: 901n, - name: "DUP2_TEST", - }, - }; - mainnetBySelector.set(901n, dupMain); - testnetBySelector.set(901n, dupTest); - - const result = getNetwork({ - chainSelector: 901n, - chainSelectorName: "DUP2_MAIN", - }); - expect(result).toEqual(dupTest); - }); - - // name only - it("name only with isTestnet=false returns mainnet", () => { - const result = getNetwork({ - chainSelectorName: "EVM_MAIN", - isTestnet: false, - }); - expect(result).toEqual(evmMain); - }); - - it("name only with isTestnet=true returns testnet", () => { - const result = getNetwork({ - chainSelectorName: "EVM_TEST", - isTestnet: true, - }); - expect(result).toEqual(evmTest); - }); - - it("name only with isTestnet undefined prefers testnet if exists", () => { - // For names, ensure both entries exist for a shared name key - mainnetByName.set("DUP", evmMain); - testnetByName.set("DUP", evmTest); - const result = getNetwork({ chainSelectorName: "DUP" }); - expect(result).toEqual(evmTest); - }); - - it("name only with isTestnet undefined falls back to mainnet if not in testnet", () => { - const result = getNetwork({ chainSelectorName: "SOL_MAIN" }); - expect(result).toEqual(solMain); - }); - - it("returns undefined for non-existent chainSelectorName", () => { - const result = getNetwork({ chainSelectorName: "UNKNOWN_NAME" }); - expect(result).toBeUndefined(); - }); - - it("returns undefined for unsupported family when maps are empty (selector)", () => { - const result = getNetwork({ - chainFamily: "aptos", - chainSelector: 100n, - isTestnet: false, - }); - expect(result).toBeUndefined(); - }); - - it("returns undefined for unsupported family when maps are empty (name)", () => { - const result = getNetwork({ - chainFamily: "aptos", - chainSelectorName: "EVM_MAIN", - isTestnet: false, - }); - expect(result).toBeUndefined(); - }); -}); + mainnetByName, + mainnetByNameByFamily, + mainnetBySelector, + mainnetBySelectorByFamily, + testnetByName, + testnetByNameByFamily, + testnetBySelector, + testnetBySelectorByFamily, +}) + +const getNetwork = (opts: any) => lookup.find(opts) + +describe('getNetwork', () => { + it('returns undefined when neither chainSelector nor chainSelectorName provided', () => { + expect(getNetwork({})).toBeUndefined() + }) + + // chainFamily + chainSelector + it('uses family+selector with isTestnet=true (testnet family map)', () => { + const result = getNetwork({ + chainFamily: 'evm', + chainSelector: 200n, + isTestnet: true, + }) + expect(result).toEqual(evmTest) + }) + + it('uses family+selector with isTestnet=false (mainnet family map)', () => { + const result = getNetwork({ + chainFamily: 'evm', + chainSelector: 100n, + isTestnet: false, + }) + expect(result).toEqual(evmMain) + }) + + it('uses family+selector with isTestnet undefined defaults to mainnet map', () => { + const result = getNetwork({ chainFamily: 'solana', chainSelector: 300n }) + expect(result).toEqual(solMain) + }) + + it('uses family+selector with isTestnet undefined prefers testnet when present', () => { + const result = getNetwork({ chainFamily: 'evm', chainSelector: 200n }) + expect(result).toEqual(evmTest) + }) + + it('family+selector returns undefined when selector not in that family', () => { + const result = getNetwork({ + chainFamily: 'evm', + chainSelector: 300n, + isTestnet: false, + }) + expect(result).toBeUndefined() + }) + + // chainFamily + chainSelectorName + it('uses family+name with isTestnet=true (testnet family map)', () => { + const result = getNetwork({ + chainFamily: 'solana', + chainSelectorName: 'SOL_TEST', + isTestnet: true, + }) + expect(result).toEqual(solTest) + }) + + it('uses family+name with isTestnet=false (mainnet family map)', () => { + const result = getNetwork({ + chainFamily: 'solana', + chainSelectorName: 'SOL_MAIN', + isTestnet: false, + }) + expect(result).toEqual(solMain) + }) + + it('uses family+name with isTestnet undefined defaults to mainnet map', () => { + const result = getNetwork({ + chainFamily: 'evm', + chainSelectorName: 'EVM_MAIN', + }) + expect(result).toEqual(evmMain) + }) + + it('uses family+name with isTestnet undefined prefers testnet when present', () => { + const result = getNetwork({ + chainFamily: 'evm', + chainSelectorName: 'EVM_TEST', + }) + expect(result).toEqual(evmTest) + }) + + it('family+name returns undefined when name not in that family', () => { + const result = getNetwork({ + chainFamily: 'solana', + chainSelectorName: 'EVM_MAIN', + isTestnet: false, + }) + expect(result).toBeUndefined() + }) + + // selector only + it('selector only with isTestnet=false returns mainnet', () => { + const result = getNetwork({ chainSelector: 100n, isTestnet: false }) + expect(result).toEqual(evmMain) + }) + + it('selector only with isTestnet=true returns testnet', () => { + const result = getNetwork({ chainSelector: 200n, isTestnet: true }) + expect(result).toEqual(evmTest) + }) + + it('selector only with isTestnet undefined prefers testnet if exists', () => { + // create duplicate selector present in both maps to assert preference + const dupMain = { + ...evmMain, + chainSelector: { + ...evmMain.chainSelector, + selector: 900n, + name: 'DUP_MAIN', + }, + } + const dupTest = { + ...evmTest, + chainSelector: { + ...evmTest.chainSelector, + selector: 900n, + name: 'DUP_TEST', + }, + } + mainnetBySelector.set(900n, dupMain) + testnetBySelector.set(900n, dupTest) + + const result = getNetwork({ chainSelector: 900n }) + expect(result).toEqual(dupTest) + }) + + it('selector only with isTestnet undefined falls back to mainnet if not in testnet', () => { + const result = getNetwork({ chainSelector: 300n }) + expect(result).toEqual(solMain) + }) + + it('selector only returns undefined when not found anywhere', () => { + const result = getNetwork({ chainSelector: 9999n }) + expect(result).toBeUndefined() + }) + + // both selector and name provided - selector takes precedence + it('both selector and name provided without family uses selector path', () => { + const result = getNetwork({ + chainSelector: 100n, + chainSelectorName: 'SOL_MAIN', + isTestnet: false, + }) + expect(result).toEqual(evmMain) + }) + + it('both selector and name provided with family uses selector path', () => { + const result = getNetwork({ + chainFamily: 'solana', + chainSelector: 300n, + chainSelectorName: 'EVM_MAIN', + }) + expect(result).toEqual(solMain) + }) + + it('both selector and name provided prefers testnet by selector when isTestnet undefined', () => { + // ensure duplicate in both maps like earlier + const dupMain = { + ...evmMain, + chainSelector: { + ...evmMain.chainSelector, + selector: 901n, + name: 'DUP2_MAIN', + }, + } + const dupTest = { + ...evmTest, + chainSelector: { + ...evmTest.chainSelector, + selector: 901n, + name: 'DUP2_TEST', + }, + } + mainnetBySelector.set(901n, dupMain) + testnetBySelector.set(901n, dupTest) + + const result = getNetwork({ + chainSelector: 901n, + chainSelectorName: 'DUP2_MAIN', + }) + expect(result).toEqual(dupTest) + }) + + // name only + it('name only with isTestnet=false returns mainnet', () => { + const result = getNetwork({ + chainSelectorName: 'EVM_MAIN', + isTestnet: false, + }) + expect(result).toEqual(evmMain) + }) + + it('name only with isTestnet=true returns testnet', () => { + const result = getNetwork({ + chainSelectorName: 'EVM_TEST', + isTestnet: true, + }) + expect(result).toEqual(evmTest) + }) + + it('name only with isTestnet undefined prefers testnet if exists', () => { + // For names, ensure both entries exist for a shared name key + mainnetByName.set('DUP', evmMain) + testnetByName.set('DUP', evmTest) + const result = getNetwork({ chainSelectorName: 'DUP' }) + expect(result).toEqual(evmTest) + }) + + it('name only with isTestnet undefined falls back to mainnet if not in testnet', () => { + const result = getNetwork({ chainSelectorName: 'SOL_MAIN' }) + expect(result).toEqual(solMain) + }) + + it('returns undefined for non-existent chainSelectorName', () => { + const result = getNetwork({ chainSelectorName: 'UNKNOWN_NAME' }) + expect(result).toBeUndefined() + }) + + it('returns undefined for unsupported family when maps are empty (selector)', () => { + const result = getNetwork({ + chainFamily: 'aptos', + chainSelector: 100n, + isTestnet: false, + }) + expect(result).toBeUndefined() + }) + + it('returns undefined for unsupported family when maps are empty (name)', () => { + const result = getNetwork({ + chainFamily: 'aptos', + chainSelectorName: 'EVM_MAIN', + isTestnet: false, + }) + expect(result).toBeUndefined() + }) +}) diff --git a/submodules/chainlink-protos b/submodules/chainlink-protos index 7289f054..30236dee 160000 --- a/submodules/chainlink-protos +++ b/submodules/chainlink-protos @@ -1 +1 @@ -Subproject commit 7289f054f53ddf202869d29a35849ea2f9f5d888 +Subproject commit 30236deecda8a69a74217f3d6f9438d33bc734a5