{"version":3,"file":"subscription_service.client.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/subscription_service.client.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/subscription_service.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport type { RpcTransport } from '@protobuf-ts/runtime-rpc';\nimport type { ServiceInfo } from '@protobuf-ts/runtime-rpc';\nimport { SubscriptionService } from './subscription_service.js';\nimport { stackIntercept } from '@protobuf-ts/runtime-rpc';\nimport type { SubscribeCheckpointsResponse } from './subscription_service.js';\nimport type { SubscribeCheckpointsRequest } from './subscription_service.js';\nimport type { ServerStreamingCall } from '@protobuf-ts/runtime-rpc';\nimport type { RpcOptions } from '@protobuf-ts/runtime-rpc';\n/**\n * @generated from protobuf service sui.rpc.v2.SubscriptionService\n */\nexport interface ISubscriptionServiceClient {\n\t/**\n\t * Subscribe to the stream of checkpoints.\n\t *\n\t * This API provides a subscription to the checkpoint stream for the Sui\n\t * blockchain. When a subscription is initialized the stream will begin with\n\t * the latest executed checkpoint as seen by the server. Responses are\n\t * guaranteed to return checkpoints in-order and without gaps. This enables\n\t * clients to know exactly the last checkpoint they have processed and in the\n\t * event the subscription terminates (either by the client/server or by the\n\t * connection breaking), clients will be able to reinitialize a subscription\n\t * and then leverage other APIs in order to request data for the checkpoints\n\t * they missed.\n\t *\n\t * @generated from protobuf rpc: SubscribeCheckpoints(sui.rpc.v2.SubscribeCheckpointsRequest) returns (stream sui.rpc.v2.SubscribeCheckpointsResponse);\n\t */\n\tsubscribeCheckpoints(\n\t\tinput: SubscribeCheckpointsRequest,\n\t\toptions?: RpcOptions,\n\t): ServerStreamingCall<SubscribeCheckpointsRequest, SubscribeCheckpointsResponse>;\n}\n/**\n * @generated from protobuf service sui.rpc.v2.SubscriptionService\n */\nexport class SubscriptionServiceClient implements ISubscriptionServiceClient, ServiceInfo {\n\ttypeName = SubscriptionService.typeName;\n\tmethods = SubscriptionService.methods;\n\toptions = SubscriptionService.options;\n\tconstructor(private readonly _transport: RpcTransport) {}\n\t/**\n\t * Subscribe to the stream of checkpoints.\n\t *\n\t * This API provides a subscription to the checkpoint stream for the Sui\n\t * blockchain. When a subscription is initialized the stream will begin with\n\t * the latest executed checkpoint as seen by the server. Responses are\n\t * guaranteed to return checkpoints in-order and without gaps. This enables\n\t * clients to know exactly the last checkpoint they have processed and in the\n\t * event the subscription terminates (either by the client/server or by the\n\t * connection breaking), clients will be able to reinitialize a subscription\n\t * and then leverage other APIs in order to request data for the checkpoints\n\t * they missed.\n\t *\n\t * @generated from protobuf rpc: SubscribeCheckpoints(sui.rpc.v2.SubscribeCheckpointsRequest) returns (stream sui.rpc.v2.SubscribeCheckpointsResponse);\n\t */\n\tsubscribeCheckpoints(\n\t\tinput: SubscribeCheckpointsRequest,\n\t\toptions?: RpcOptions,\n\t): ServerStreamingCall<SubscribeCheckpointsRequest, SubscribeCheckpointsResponse> {\n\t\tconst method = this.methods[0],\n\t\t\topt = this._transport.mergeOptions(options);\n\t\treturn stackIntercept<SubscribeCheckpointsRequest, SubscribeCheckpointsResponse>(\n\t\t\t'serverStreaming',\n\t\t\tthis._transport,\n\t\t\tmethod,\n\t\t\topt,\n\t\t\tinput,\n\t\t);\n\t}\n}\n"],"mappings":";;;;;;;AA8CA,IAAa,4BAAb,MAA0F;CAIzF,YAAY,AAAiB,YAA0B;EAA1B;kBAHlB,oBAAoB;iBACrB,oBAAoB;iBACpB,oBAAoB;;;;;;;;;;;;;;;;;CAiB9B,qBACC,OACA,SACiF;EACjF,MAAM,SAAS,KAAK,QAAQ,IAC3B,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC5C,SAAO,eACN,mBACA,KAAK,YACL,QACA,KACA,MACA"}