import type { Message } from '@bufbuild/protobuf'; import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2'; import type { Duration, DurationJson } from '@bufbuild/protobuf/wkt'; /** * Describes the file capabilities/networking/confidentialhttp/v1alpha/client.proto. */ export declare const file_capabilities_networking_confidentialhttp_v1alpha_client: GenFile; /** * @generated from message capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier */ export type SecretIdentifier = Message<'capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier'> & { /** * @generated from field: string key = 1; */ key: string; /** * @generated from field: string namespace = 2; */ namespace: string; /** * @generated from field: optional string owner = 3; */ owner?: string; }; /** * @generated from message capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier */ export type SecretIdentifierJson = { /** * @generated from field: string key = 1; */ key?: string; /** * @generated from field: string namespace = 2; */ namespace?: string; /** * @generated from field: optional string owner = 3; */ owner?: string; }; /** * Describes the message capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier. * Use `create(SecretIdentifierSchema)` to create a new message. */ export declare const SecretIdentifierSchema: GenMessage; /** * HeaderValues represents multiple values for a single header key. * * @generated from message capabilities.networking.confidentialhttp.v1alpha.HeaderValues */ export type HeaderValues = Message<'capabilities.networking.confidentialhttp.v1alpha.HeaderValues'> & { /** * @generated from field: repeated string values = 1; */ values: string[]; }; /** * HeaderValues represents multiple values for a single header key. * * @generated from message capabilities.networking.confidentialhttp.v1alpha.HeaderValues */ export type HeaderValuesJson = { /** * @generated from field: repeated string values = 1; */ values?: string[]; }; /** * Describes the message capabilities.networking.confidentialhttp.v1alpha.HeaderValues. * Use `create(HeaderValuesSchema)` to create a new message. */ export declare const HeaderValuesSchema: GenMessage; /** * HTTPRequest contains the HTTP fields used to make a request from the enclave. * * @generated from message capabilities.networking.confidentialhttp.v1alpha.HTTPRequest */ export type HTTPRequest = Message<'capabilities.networking.confidentialhttp.v1alpha.HTTPRequest'> & { /** * url is the endpoint to which the request is sent. * * @generated from field: string url = 1; */ url: string; /** * method is the HTTP method (GET, POST, PUT, DELETE, etc.). * * @generated from field: string method = 2; */ method: string; /** * body is the request body - either a string template or raw bytes. * * @generated from oneof capabilities.networking.confidentialhttp.v1alpha.HTTPRequest.body */ body: { /** * @generated from field: string body_string = 3; */ value: string; case: 'bodyString'; } | { /** * @generated from field: bytes body_bytes = 8; */ value: Uint8Array; case: 'bodyBytes'; } | { case: undefined; value?: undefined; }; /** * multi_headers are the request headers as name-value pairs. * Supports multiple values per header key. * * @generated from field: map multi_headers = 4; */ multiHeaders: { [key: string]: HeaderValues; }; /** * template_public_values are public values used to fill in request body and header templates. * * @generated from field: map template_public_values = 5; */ templatePublicValues: { [key: string]: string; }; /** * custom_root_ca_cert_pem is an optional custom root CA certificate (PEM format) * for verifying the external server's TLS certificate. * * @generated from field: bytes custom_root_ca_cert_pem = 6; */ customRootCaCertPem: Uint8Array; /** * timeout is the request timeout duration. * * @generated from field: google.protobuf.Duration timeout = 7; */ timeout?: Duration; /** * encrypt_output controls whether the enclave response should be encrypted. * If true, the response will be AES-GCM encrypted using the * "san_marino_aes_gcm_encryption_key" secret. * Default is false (response returned unencrypted). * * @generated from field: bool encrypt_output = 9; */ encryptOutput: boolean; }; /** * HTTPRequest contains the HTTP fields used to make a request from the enclave. * * @generated from message capabilities.networking.confidentialhttp.v1alpha.HTTPRequest */ export type HTTPRequestJson = { /** * url is the endpoint to which the request is sent. * * @generated from field: string url = 1; */ url?: string; /** * method is the HTTP method (GET, POST, PUT, DELETE, etc.). * * @generated from field: string method = 2; */ method?: string; /** * @generated from field: string body_string = 3; */ bodyString?: string; /** * @generated from field: bytes body_bytes = 8; */ bodyBytes?: string; /** * multi_headers are the request headers as name-value pairs. * Supports multiple values per header key. * * @generated from field: map multi_headers = 4; */ multiHeaders?: { [key: string]: HeaderValuesJson; }; /** * template_public_values are public values used to fill in request body and header templates. * * @generated from field: map template_public_values = 5; */ templatePublicValues?: { [key: string]: string; }; /** * custom_root_ca_cert_pem is an optional custom root CA certificate (PEM format) * for verifying the external server's TLS certificate. * * @generated from field: bytes custom_root_ca_cert_pem = 6; */ customRootCaCertPem?: string; /** * timeout is the request timeout duration. * * @generated from field: google.protobuf.Duration timeout = 7; */ timeout?: DurationJson; /** * encrypt_output controls whether the enclave response should be encrypted. * If true, the response will be AES-GCM encrypted using the * "san_marino_aes_gcm_encryption_key" secret. * Default is false (response returned unencrypted). * * @generated from field: bool encrypt_output = 9; */ encryptOutput?: boolean; }; /** * Describes the message capabilities.networking.confidentialhttp.v1alpha.HTTPRequest. * Use `create(HTTPRequestSchema)` to create a new message. */ export declare const HTTPRequestSchema: GenMessage; /** * HTTPResponse contains the HTTP response from the enclave. * * @generated from message capabilities.networking.confidentialhttp.v1alpha.HTTPResponse */ export type HTTPResponse = Message<'capabilities.networking.confidentialhttp.v1alpha.HTTPResponse'> & { /** * status_code is the HTTP status code. * * @generated from field: uint32 status_code = 1; */ statusCode: number; /** * body is the response body. * * @generated from field: bytes body = 2; */ body: Uint8Array; /** * multi_headers are the response headers. * Supports multiple values per header key. * * @generated from field: map multi_headers = 3; */ multiHeaders: { [key: string]: HeaderValues; }; }; /** * HTTPResponse contains the HTTP response from the enclave. * * @generated from message capabilities.networking.confidentialhttp.v1alpha.HTTPResponse */ export type HTTPResponseJson = { /** * status_code is the HTTP status code. * * @generated from field: uint32 status_code = 1; */ statusCode?: number; /** * body is the response body. * * @generated from field: bytes body = 2; */ body?: string; /** * multi_headers are the response headers. * Supports multiple values per header key. * * @generated from field: map multi_headers = 3; */ multiHeaders?: { [key: string]: HeaderValuesJson; }; }; /** * Describes the message capabilities.networking.confidentialhttp.v1alpha.HTTPResponse. * Use `create(HTTPResponseSchema)` to create a new message. */ export declare const HTTPResponseSchema: GenMessage; /** * ConfidentialHTTPRequest is the input provided to the confidential HTTP capability. * It combines an HTTPRequest with secrets from VaultDON. * * @generated from message capabilities.networking.confidentialhttp.v1alpha.ConfidentialHTTPRequest */ export type ConfidentialHTTPRequest = Message<'capabilities.networking.confidentialhttp.v1alpha.ConfidentialHTTPRequest'> & { /** * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier vault_don_secrets = 1; */ vaultDonSecrets: SecretIdentifier[]; /** * @generated from field: capabilities.networking.confidentialhttp.v1alpha.HTTPRequest request = 2; */ request?: HTTPRequest; }; /** * ConfidentialHTTPRequest is the input provided to the confidential HTTP capability. * It combines an HTTPRequest with secrets from VaultDON. * * @generated from message capabilities.networking.confidentialhttp.v1alpha.ConfidentialHTTPRequest */ export type ConfidentialHTTPRequestJson = { /** * @generated from field: repeated capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier vault_don_secrets = 1; */ vaultDonSecrets?: SecretIdentifierJson[]; /** * @generated from field: capabilities.networking.confidentialhttp.v1alpha.HTTPRequest request = 2; */ request?: HTTPRequestJson; }; /** * Describes the message capabilities.networking.confidentialhttp.v1alpha.ConfidentialHTTPRequest. * Use `create(ConfidentialHTTPRequestSchema)` to create a new message. */ export declare const ConfidentialHTTPRequestSchema: GenMessage; /** * @generated from service capabilities.networking.confidentialhttp.v1alpha.Client */ export declare const Client: GenService<{ /** * @generated from rpc capabilities.networking.confidentialhttp.v1alpha.Client.SendRequest */ sendRequest: { methodKind: 'unary'; input: typeof ConfidentialHTTPRequestSchema; output: typeof HTTPResponseSchema; }; }>;