UNPKG

@okutrade/account-api

Version:

TypeScript client for OKU Account API using Connect-ES

77 lines (76 loc) 4.33 kB
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; /** * Describes the file google/bytestream/bytestream.proto. */ export const file_google_bytestream_bytestream = /*@__PURE__*/ fileDesc("CiJnb29nbGUvYnl0ZXN0cmVhbS9ieXRlc3RyZWFtLnByb3RvEhFnb29nbGUuYnl0ZXN0cmVhbSJNCgtSZWFkUmVxdWVzdBIVCg1yZXNvdXJjZV9uYW1lGAEgASgJEhMKC3JlYWRfb2Zmc2V0GAIgASgDEhIKCnJlYWRfbGltaXQYAyABKAMiHAoMUmVhZFJlc3BvbnNlEgwKBGRhdGEYCiABKAwiXwoMV3JpdGVSZXF1ZXN0EhUKDXJlc291cmNlX25hbWUYASABKAkSFAoMd3JpdGVfb2Zmc2V0GAIgASgDEhQKDGZpbmlzaF93cml0ZRgDIAEoCBIMCgRkYXRhGAogASgMIicKDVdyaXRlUmVzcG9uc2USFgoOY29tbWl0dGVkX3NpemUYASABKAMiMAoXUXVlcnlXcml0ZVN0YXR1c1JlcXVlc3QSFQoNcmVzb3VyY2VfbmFtZRgBIAEoCSJEChhRdWVyeVdyaXRlU3RhdHVzUmVzcG9uc2USFgoOY29tbWl0dGVkX3NpemUYASABKAMSEAoIY29tcGxldGUYAiABKAgykgIKCkJ5dGVTdHJlYW0SSQoEUmVhZBIeLmdvb2dsZS5ieXRlc3RyZWFtLlJlYWRSZXF1ZXN0Gh8uZ29vZ2xlLmJ5dGVzdHJlYW0uUmVhZFJlc3BvbnNlMAESTAoFV3JpdGUSHy5nb29nbGUuYnl0ZXN0cmVhbS5Xcml0ZVJlcXVlc3QaIC5nb29nbGUuYnl0ZXN0cmVhbS5Xcml0ZVJlc3BvbnNlKAESawoQUXVlcnlXcml0ZVN0YXR1cxIqLmdvb2dsZS5ieXRlc3RyZWFtLlF1ZXJ5V3JpdGVTdGF0dXNSZXF1ZXN0GisuZ29vZ2xlLmJ5dGVzdHJlYW0uUXVlcnlXcml0ZVN0YXR1c1Jlc3BvbnNlQmUKFWNvbS5nb29nbGUuYnl0ZXN0cmVhbUIPQnl0ZVN0cmVhbVByb3RvWjtnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2J5dGVzdHJlYW07Ynl0ZXN0cmVhbWIGcHJvdG8z"); /** * Describes the message google.bytestream.ReadRequest. * Use `create(ReadRequestSchema)` to create a new message. */ export const ReadRequestSchema = /*@__PURE__*/ messageDesc(file_google_bytestream_bytestream, 0); /** * Describes the message google.bytestream.ReadResponse. * Use `create(ReadResponseSchema)` to create a new message. */ export const ReadResponseSchema = /*@__PURE__*/ messageDesc(file_google_bytestream_bytestream, 1); /** * Describes the message google.bytestream.WriteRequest. * Use `create(WriteRequestSchema)` to create a new message. */ export const WriteRequestSchema = /*@__PURE__*/ messageDesc(file_google_bytestream_bytestream, 2); /** * Describes the message google.bytestream.WriteResponse. * Use `create(WriteResponseSchema)` to create a new message. */ export const WriteResponseSchema = /*@__PURE__*/ messageDesc(file_google_bytestream_bytestream, 3); /** * Describes the message google.bytestream.QueryWriteStatusRequest. * Use `create(QueryWriteStatusRequestSchema)` to create a new message. */ export const QueryWriteStatusRequestSchema = /*@__PURE__*/ messageDesc(file_google_bytestream_bytestream, 4); /** * Describes the message google.bytestream.QueryWriteStatusResponse. * Use `create(QueryWriteStatusResponseSchema)` to create a new message. */ export const QueryWriteStatusResponseSchema = /*@__PURE__*/ messageDesc(file_google_bytestream_bytestream, 5); /** * #### Introduction * * The Byte Stream API enables a client to read and write a stream of bytes to * and from a resource. Resources have names, and these names are supplied in * the API calls below to identify the resource that is being read from or * written to. * * All implementations of the Byte Stream API export the interface defined here: * * * `Read()`: Reads the contents of a resource. * * * `Write()`: Writes the contents of a resource. The client can call `Write()` * multiple times with the same resource and can check the status of the write * by calling `QueryWriteStatus()`. * * #### Service parameters and metadata * * The ByteStream API provides no direct way to access/modify any metadata * associated with the resource. * * #### Errors * * The errors returned by the service are in the Google canonical error space. * * @generated from service google.bytestream.ByteStream */ export const ByteStream = /*@__PURE__*/ serviceDesc(file_google_bytestream_bytestream, 0);